init web ems all
This commit is contained in:
64
wxc2_omc/frame/contents/default.php
Executable file
64
wxc2_omc/frame/contents/default.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20>ļ<EFBFBD>˵<EFBFBD><CBB5>:
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>:OMC<4D><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>
|
||||
|
||||
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ:<3A><><EFBFBD><EFBFBD>:header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:ʵ<>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD>ҳ<EFBFBD><D2B3>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>:
|
||||
$OmcTypeNo <09><>config.inc<6E>ж<EFBFBD><D0B6><EFBFBD>;
|
||||
$myPrivilege <09><><EFBFBD>û<EFBFBD><C3BB><EFBFBD>session<6F><6E>ȡ<EFBFBD><C8A1>
|
||||
|
||||
<20><><EFBFBD><EFBFBD>:
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>:
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
ʱ<EFBFBD><EFBFBD>:
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>:
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
|
||||
$DEBUG=0;
|
||||
$pubDb = 'OMC_PUB';
|
||||
$OmcTypeNo = (isset($thisOmcType)?$thisOmcType:0);
|
||||
$level_1 = $_REQUEST['level_1'];
|
||||
|
||||
$level_1 = ($level_1 > 0 ?$level_1 :1);
|
||||
//$myPrivilege = $user_info["permission"];
|
||||
$myPrivilege = 9;
|
||||
$max_layer=5;
|
||||
if($selectedLanguage == 'eng'){
|
||||
$menuName = "name_2";
|
||||
$menuRemark = "remark_2";
|
||||
}else{
|
||||
$menuName = "name_1";
|
||||
$menuRemark = "remark_1";
|
||||
}
|
||||
|
||||
//menuTypeNo level_1 level_2 level_3 level_4 level_5 name_1 name_2 link_1 link_2 privilege remark_1 remark_2
|
||||
$menuSql = "SELECT $menuName,httpLink,$menuRemark
|
||||
FROM sysMenuConf
|
||||
WHERE menuTypeNo = '$OmcTypeNo' AND privilege <= '$myPrivilege' AND privilege >= '0'
|
||||
AND level_1='$level_1'
|
||||
ORDER BY level_1,level_2,level_3,level_4,level_5
|
||||
LIMIT 0,1
|
||||
";
|
||||
if($DEBUG) echo "<br>menuSql = $menuSql";
|
||||
$menuResult = mysqli_query($pubConn,$menuSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$menuRowsNum = mysqli_num_rows($menuResult);
|
||||
$menuRow=mysqli_fetch_array($menuResult);
|
||||
if($DEBUG) echo "<br>menuName=$menuRow[$menuName]";
|
||||
if($DEBUG) echo "<br>httpLink=$menuRow[httpLink]";
|
||||
if($DEBUG) echo "<br>menuRemark=$menuRow[$menuRemark]";
|
||||
$httpLink=$menuRow['httpLink'];
|
||||
if($DEBUG) exit();
|
||||
if(strlen($httpLink) > 5){
|
||||
echo " <meta http-equiv=\"refresh\" content=\"0; url=$httpLink\"> ";
|
||||
}else{
|
||||
echo "Error httpLink";
|
||||
}
|
||||
?>
|
||||
</html>
|
||||
Reference in New Issue
Block a user