Beispiel #1
0
<?php

$html = '<ul id="subtab">';
$html .= '<li><a href="module.setting.php?appid=' . $appid . '">模块设置</a></li>';
if (file_exists(VI_ROOT . 'module/' . $appid . '/navigate.php')) {
    $html .= '<li><a href="module.navigate.php?appid=' . $appid . '">导航设置</a></li>';
}
$html .= '</ul>';
echo str_replace('<li><a href="' . GetCurFile(), '<li class="active"><a href="' . GetCurFile(), $html);
Beispiel #2
0
 public static function check_page()
 {
     global $_G;
     //当前模块
     $appid = str_replace(VI_BASE . 'module/', '', dirname($_SERVER["REQUEST_URI"]));
     if ($appid == "system" && array_key_exists(GetCurFile(), $_G['project']['page']) && !array_key_exists(GetCurFile(), $_G['group']) && !array_key_exists("*", $_G['group'])) {
         header("Location:" . VI_BASE . "module/system/serve.error.php?action=page&page=" . GetCurFile());
         exit;
     }
 }