正在调试中!!"; //************ $url_temp=$_SERVER["REQUEST_URI"]; //echo "This page URL:$url_temp
"; ?> "; //===============delete the local prefix by instanceNo========== $database="OMC_PUB"; $setsql = "update OBJ_380.param_99 set initValue='$white_list_number_default_value' where level_1=2 and level_2=1 and level_3=2 and instanceNo={$white_list_number_instanceNo_tmp[$i]} "; if($DEBUG) echo "setsql=$setsql
"; mysqli_query($pubConn,$setsql); echo mysqli_error($pubConn); } echo "\n\n"; } $sysId = '380_99_99'; $sqltable_sccp = 'OBJ_223.param_99'; $sysStatTable='OMC_PUB.sysStat'; $sqltable = 'OBJ_380.param_99'; $pubDb = 'OMC_PUB'; $sysinfo = 'OMC_PUB.sysInfo'; $sysTypeNo = '322'; $mtp3_sqlTable = 'OBJ_222.param_99'; $sysId_arr = array( //array('222_99_99',array('2.2','2.3'),'mtp3'), //array('223_99_99',array("2.1.9"),'sccp'), array('oid'=>'2.1.9','sysid'=>'223_99_99', 'selectsysid'=>'-1'), array('oid'=>'2.1.2','sysid'=>'380_99_99', 'selectsysid'=>'-1') ); $NI_arr=array('International','International spare','National','National spare'); $SaveArr=array( //array('oidstr'=>'2.2.2', 'setvalue'=>'01' ,'sysid'=>'380_99_99'), array('oidstr'=>'3.2', 'setvalue'=>'02' ,'sysid'=>'223_99_99') ); $backurl = "./eir.php"; //loading if($load_flag == 1) { echo "
Loading"; GetParam($sysId_arr,1);//1 means return to overview if getting parameters fails. echo ""; } if(isset($doingOtherFlag)) { {//get system ip for($i=0; $i < 2; $i++) { $getsql = "SELECT ip FROM $sysinfo where sysTypeNo = $sysTypeNo and sysNo = '$i'"; if($DEBUG) echo "getsql = $getsql
"; $ip_init = @mysqli_query($pubConn,$getsql); $ip_init = mysqli_fetch_array($ip_init); $ip_init = $ip_init[0]; $ip_array = explode('.',$ip_init); for($j = 0;$j < sizeof($ip_array);$j++) { $ip = $ip_array[$j]; $mss_ip[$i] .= omc_keep_length(dechex($ip),'0','2'); } } $mss_ip[0] = strtoupper(omc_keep_length($mss_ip[0],'0','8')); $mss_ip[1] = strtoupper(omc_keep_length($mss_ip[1],'0','8')); $sysId = "223_99_99"; }//end get system ip if($setEirGtt==1) { //scf_map $oidStr = "2.1.9"; setParamValue($mss_ip[0],$sysId,$oidStr,3); setParamValue($mss_ip[1],$sysId,$oidStr,4); } exit; } if($_SERVER['REQUEST_METHOD'] == "POST") { if(isset($setSys) || isset($getSys)) { if(isset($setSys)) { // echo "
Getting parameters
"; // GetParam(0,1); echo "
Setting parameters
"; SetParam($sysId_arr); session_register("acSetFlag"); $showType="Set"; echo "
Sending save command
"; SaveParam($SaveArr); echo ""; //exit(); } else { echo "
Getting parameters
"; session_register("GetFlag"); GetParam($sysId_arr); $showType="Get"; } } echo ""; exit(); } //========================================================== //输出并显示数据 //========================================================== echo "
"; ?> "; echo ""; echo ""; echo "Configuration > Network > EIR"; echo ""; $helpId = '2.1.1.7'; //showHelp($helpId); echo ""; echo ""; echo ""; echo "
"; { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
 "; //echo "Equipment Identity Register:  "; echo ""; echo ""; echo "   "; echo ""; echo ""; echo "

$strBack"; echo "

"; } ?> indicator = {$indicator[0]}
"; for($i = 0; $i < 4; $i++) { $flag = getBitValue($indicator[0],"0.$i"); if ($flag == 0) $spc_index[$i] = $i; else $spc_index[$i] = $i+4; } for($i = 0; $i < 4; $i ++) { $levelWhere = getLevelWhere($spcTree_array[$spc_index[$i]][3]); $getsql = "select initValue from $mtp3_sqlTable where $levelWhere"; $result = mysqli_query($pubConn,$getsql); $row[$i] = mysqli_fetch_array($result); $row[$i] = hexdec($row[$i][0]); if($DEBUG)echo "getsql = $getsql
"; if($DEBUG)echo "spc_$i=$row[$i]
"; } } echo "" ; echo ""; echo ""; echo ""; {//gtt echo ""; echo ""; }//end gtt /* {//license echo "" ; echo ""; echo ""; echo ""; }//end license */ //==================white list numbers=================== { //===========get the default value== $database="OBJ_380"; $sql="select initValue from paramConf where level_1=2 and level_2=1 and level_3=2 "; $result=@mysqli_query($pubConn,$sql); $rows=@mysqli_fetch_array($result); $white_list_number_default_value=$rows[initValue]; //====set every record to the default value============ /* $updSql = "UPDATE param_99 SET initValue = '$white_list_number_default_value' WHERE level_1=2 and level_2=1 and level_3=2 "; mysqli_query($pubConn,$updSql); echo mysqli_error($pubConn); */ //=================================================== //===================get the count of white list numbers======================== $database="OBJ_380"; $sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=2 "; $result=@mysqli_query($pubConn,$sql); $rows=@mysqli_fetch_array($result); $white_list_number_count=0; do{ $initValue_tmp=$rows[initValue]; if(strcmp($initValue_tmp,$white_list_number_default_value)!=0) { $white_list_number_instanceNo[$white_list_number_count]=$rows[instanceNo]; $start_type[$white_list_number_count]=getBitValue($rows[initValue],'0.0-2.7'); $end_type[$white_list_number_count]=getBitValue($rows[initValue],'8.0-10.7'); $start_final[$white_list_number_count]=getBitValue($rows[initValue],'3.0-3.7'); $end_final[$white_list_number_count]=getBitValue($rows[initValue],'11.0-11.7'); $start_serial[$white_list_number_count]=getBitValue($rows[initValue],'4.0-6.7'); $end_serial[$white_list_number_count]=getBitValue($rows[initValue],'12.0-14.7'); $start_software[$white_list_number_count]=getBitValue($rows[initValue],'7.0-7.7'); $end_software[$white_list_number_count]=getBitValue($rows[initValue],'15.0-15.7'); $white_list_number_count++; } }while($rows=mysqli_fetch_array($result)); //====================get the unused instanceNo of local prefix==== $database="OBJ_380"; $sql="select instanceNo,initValue from param_99 where level_1=2 and level_2=1 and level_3=2 "; $result=@mysqli_query($pubConn,$sql); $rows=@mysqli_fetch_array($result); do{ $initValue_tmp=$rows[initValue]; if(strcmp($initValue_tmp,$white_list_number_default_value)==0) { $unused_white_list_number_instanceNo=$rows[instanceNo]; break; } }while($rows=mysqli_fetch_array($result)); //=======show the white list number echo ""; echo ""; echo ""; } echo "
Signaling point code"; for($i=0; $i<4; $i++) echo ""; echo "
{$spcTree_array[$i][0]} : {$spcTree_array[$spc_index[$i]][1]} : $row[$i]
$strE164Number"; $sysId = "223_99_99"; $oidStr = "2.1.9"; $instanceNo=0; echo ""; echo ""; echo "
"; $doingOtherUlr="$PHP_SELF?doingOtherFlag=1&setEirGtt=1"; showParameter($sysId,$oidStr,2,1,$instanceNo,$doingOtherUlr); echo ""; showParameter($sysId,$oidStr,1,1); echo "
License control "; $sysIdd = '380_99_99'; $oidStrr = "2.2.4"; //showParameter($sysIdd,$oidStrr,1,1,0,'','','Update'); showParameter($sysIdd,$oidStrr,1,1,0,'','','Update'); echo "
White List Number        "; echo "+"; echo ""; echo ""; if($white_list_number_count==0) { echo ""; echo ""; } else { echo ""; echo ""; } if($white_list_number_count==0) { echo ""; } else { for($i=0;$i<$white_list_number_count;$i++) { if($i>3) echo ""; else echo ""; //=====white list number instanceNo=== echo ""; //=====start type ============= echo ""; //=====end type ============= echo ""; //======delete select box========= echo ""; echo ""; } //======more and hide button================ if($white_list_number_count>4) { echo ""; echo ""; } } echo "
No.Start IMEI Type Approval CodeStart IMEI Final Assembly CodeDelete"; echo "
No.Start IMEI Type Approval CodeEnd IMEI Type Approval CodeDelete"; echo "
--
{$white_list_number_instanceNo[$i]}{$start_type[$i]}{$end_type[$i]}
More >>
Hide >>
"; echo "
"; ?> "; ?>