init web ems all

This commit is contained in:
agtuser
2024-09-27 17:13:36 +08:00
parent 81c97acbe9
commit 5cc56f8078
4263 changed files with 798779 additions and 0 deletions

View File

@@ -0,0 +1,174 @@
<?php
/*********************************************************
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9A9>mssBak<61><6B>ʱ<EFBFBD><CAB1><EFBFBD>ء<EFBFBD>
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2004-11-23
<EFBFBD>޸<EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
NO.1
Name:
Date:
Description:
*********************************************************/
require("../../inc/header.inc");
$DEBUG = 0;
$helpId = "5.1.5";
$ThisPage="$strMaintenance&nbsp;>&nbsp;MSS Backup Download";
$blank4 .="&nbsp;&nbsp;&nbsp;&nbsp;";
$db = 'OMC_PUB';
$elementTable='elementExistConf';
/********** FUNCTION START::TREEOLD *************/
function treeOld($directory,$blank,$sys_name)
{
$DEBUG=0;
$mydir=@dir($directory);
if(!$mydir){
echo "<br><br><font size=\"3\" color=\"#FF0000\"><b>Error: can't open this directory: \"$directory\" .It's not exist!</b></font>";
exit();
}
$blank .="<img border=\"0\" src=\"../../images/blank.gif\">"; //<2F><>һ<EFBFBD><D2BB><EFBFBD>հ<EFBFBD>ͼƬ<CDBC><C6AC>ʾÿ<CABE><C3BF>Ŀ¼<C4BF><C2BC><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
$k=0;
while($file=$mydir->read()){
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")){
continue;
}elseif($file =="." || $file ==".."){
continue;
}else{
if (strstr($file,$sys_name) == NULL) continue;
if (strstr($file,"tgz") == NULL) continue;
if(substr("$directory/$file",-2) == 'gz'){
$type_image="<img border=\"0\" src=\"../../images/zip_file.gif\">";
}elseif(substr("$directory/$file",-3) == 'csv'){
$type_image="<img border=\"0\" src=\"../../images/csv_file.gif\">";
}else{
$type_image="<img border=\"0\" src=\"../../images/unknown_file.gif\">";
}
$fileList[$k] ="<tr><td width=\"50%\">$blank $type_image <a href=\"$directory/$file\" >$file</a></td>";
$filemod = filemtime("$directory/$file");
$filemodtime = date("Y-m-d h:i:s ", $filemod);
$fileTimeList[$k] ="<td width=\"50%\">$filemodtime</td>";
$k++;
}
}//end of while
$mydir->close();
for($h=0;$h<sizeof($fileList);$h++){
echo "{$fileList[$h]}";
echo "{$fileTimeList[$h]}";
}
} //end the program
/********** FUNCTION END:: TREEOLD *************/
?>
<body leftmargin="15" rightmargin="10" onload="javascript:adjust();" onresize="javascript:adjust();" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
adjust_head();
adjust_title_head();
echo "<TABLE id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<TR>";
echo "<TD width=\"50%\" align=\"left\">";
echo "$ThisPage";
echo "</TD>";
echo "<TD width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</TD>";
echo "</TR>";
echo "</TABLE>";
adjust_title_tail();
adjust_content_head();
/**************** TABLE START:: DISPLAY DETAILS ************************/
echo "<TABLE width=\"100%\">";
echo "<BR>";
$blank='';
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='AUC' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>AUC</b></TD></TR>\n";
treeold("../../../mssBakData/auc",$blank,"Auc");
}
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='EIR' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>EIR</b></TD></TR>\n";
treeold("../../../mssBakData/eir",$blank,"Eir");
}
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='HLR' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>HLR</b></TD></TR>\n";
treeold("../../../mssBakData/hlr",$blank,"Hlr");
}
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='PPS' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>PPS Subscriber</b></TD></TR>\n";
treeold("../../../mssBakData/pps",$blank,"ppsSubs");
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>PPS Recharge Card</b></TD></TR>\n";
treeold("../../../mssBakData/pps",$blank,"ppsRechargeCard");
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>PPS Tariff</b></TD></TR>\n";
treeold("../../../mssBakData/pps",$blank,"ppsTariff");
}
//MNP
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='MNP' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>MNP</b></TD></TR>\n";
treeold("../../../mssBakData/mnp",$blank,"npdbMem");
}
//opr
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='OPPS' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>OPR</b></TD></TR>\n";
treeold("../../../mssBakData/opr",$blank,"Opr");
}
//iPALIM
$tmpSql = " SELECT * FROM elementExistConf WHERE elementName='iPALIM' AND existFlag='1'";
if($DEBUG) echo "<br>tmpSql=$tmpSql";
$tmpRes = mysqli_query($pubConn,$tmpSql);
if(mysqli_num_rows($tmpRes)>0){
$blank="<img border=\"0\" src=\"../../images/blank.gif\">";
echo "<TR><TD colspan=\"4\">$blank<img border=\"0\" src=\"../../images/open.gif\">&nbsp;&nbsp;<b>iPALIM</b></TD></TR>\n";
treeold("../../../mssBakData/palim",$blank,"palim");
}
echo "</TABLE>";
adjust_content_tail();
/**************** TABLE END:: DISPLAY DETAILS ************************/
?>
</body>
</html>