农科院框架改造-tas中间件-广州政务的使用

2025-01-09 15:53:21 阅读:11 编辑

兼容php,不使用laravel框架

复制public/image目录及子文件
public/framework/zhyphp/base.php(209行)
if(isset($_SESSION['admin']['name']) && $_SESSION['admin']['code'] == "admin"){
                $_W['user'] = true;
            }else{
                $_W['user'] = false;
            }
application/admin/view/index/indexstyle2.html
<a href="/addons/zhyshop_sun/admin/sublogout.php" title="退出系统" style="font-size: 20px; ">
                            <i class="fa fa-home"></i>
                        </a>
framework/components/image.php(75行)
 connection_url='/image/connection.php?{$url_parameter}'
                       upload_files_url='/image/upload_image.php?{$url_parameter}'
                       download_files_url='/image/download.php?{$url_parameter}'
隐身admin
application/admin/controller/Crbac.php(344行)
$where["code"] =["","admin"];

public/index.php

<?php $url = sprintf("Location: %s://%s/addons/zhyshop_sun/pc.php?i=1", isset($_SERVER["REQUEST_SCHEME"]) ? $_SERVER["REQUEST_SCHEME"]:"http", $_SERVER["HTTP_HOST"]);
header($url);
exit();

application/index/view/index/index.html(登录链接修改)

<div class="guanliduan" onclick="window.location.href='/addons/zhyshop_sun/admin/index.php?uniacid=1';">管理端登录

http://210.76.78.64:8888/tas-console tas目录

/opt/TAS

启动:

cd bin
ReStartTAS.sh
StartTAS.sh

tas配置 1.创建应用 1)。选择应用路径,填项目的public路径 2)。应用上下文,填/ 3).其它用默认值

sftp应用 通过(RIS数据中心风险洞察系统)-直接登入sftp