valueLen=$valueLen"; for($j=0;$j<$valueLen;$j++){ $temValue[$j] = substr($showValue[$i],$j,1); $temValue[$j] = omc_keep_length(DecHex(Ord($temValue[$j])),0,2); } $aNum = $j; $tValue = ''; for($j=0;$j<$aNum;$j++){ $tValue = $tValue.$temValue[$j]; } if($DEBUG)echo "
tValue=$tValue"; if($i == 1) $showValue[$i] = omc_keep_length($tValue,0,32,0); elseif($i == 2) $showValue[$i] = omc_keep_length($tValue,0,30,0); elseif($i == 3) $showValue[$i] = omc_keep_length($tValue,0,16,0); } $showValue[4] = omc_keep_length($showValue[4],E,16,0);//Service number for($i=1;$i<$udtNum;$i++){ if($oType==2&&$i==11) continue; $udtSql = " UPDATE $tb_2 SET initValue = '$showValue[$i]' WHERE subSysNo = '99' AND level_2 = '$oType' AND level_3 = '$i' AND instanceNo = '$iNum' ".$wSc; //echo "
udtSql=$udtSql"; $udtRes = @mysqli_query($pubConn,$udtSql); echo mysqli_error($pubConn); } echo ""; } /************select value to see************/ $scSql = " SELECT level_2,level_3,instanceNo,initValue,editValue,readValue FROM $tb_2 WHERE subSysNo = '99' AND level_2 = '$oType' AND instanceNo = '$iNum' ".$wSc." ORDER BY level_3 "; if($DEBUG) echo "
scSql=$scSql"; $scRes = @mysqli_query($pubConn,$scSql); $scRow = @mysqli_fetch_array($scRes); echo mysqli_error($pubConn); do { $level_2 = $scRow[level_2]; $level_3 = $scRow[level_3]; if($DEBUG)echo "
level_3=$level_3"; $instanceNo = $scRow[instanceNo]; //$showValue[$level_3] = $scRow[initValue]; //if($DEBUG)echo "
showValue[$level_3]={$showValue[$level_3]}"; if($level_3 > 0 && $level_3 < 4){ $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = substr($scRow[initValue],$i*2,2); if($temValue[$i] == '00'){ break; }else{ $temValue[$i] = Chr(HexDec($temValue[$i])); } } $aNum = $i; $tValue = ''; for($i=0;$i<$aNum;$i++){ $tValue = $tValue.$temValue[$i]; } //echo "
tValue=$tValue"; $showValue[$level_3] = $tValue; }elseif($level_3 == 4){ $p4 = explode("E",$scRow[initValue]); $showValue[$level_3] = $p4[0]; }elseif($level_3 == 6){ if($level_2 == 2){ $p6 = explode("E",$scRow[initValue]); $showValue[$level_3] = $p6[0]; }elseif($level_2 == 3){ $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = HexDec(substr($scRow[initValue],$i*2,2)); } $showValue[$level_3] = $temValue[0].".".$temValue[1].".".$temValue[2].".".$temValue[3]; } }elseif($level_3 == 7){ if($level_2 == 2){ $showValue[$level_3] = HexDec($scRow[initValue]); }else{ $valueLen = floor(strLen($scRow[initValue])/2); for($i=0;$i<$valueLen;$i++){ $temValue[$i] = HexDec(substr($scRow[initValue],$i*2,2)); } $showValue[$level_3] = $temValue[0].".".$temValue[1].".".$temValue[2].".".$temValue[3]; } }else{ $showValue[$level_3] = HexDec($scRow[initValue]); } }while($scRow = @mysqli_fetch_array($scRes)); echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if($oType == 2){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $arr_DCS=array( array('num' => '0', 'remark' => 'To smpp=7bit,default=7bit'), array('num' => '1', 'remark' => 'To smpp=8bit,default=7bit'), array('num' => '16', 'remark' => 'To smpp=7bit,default=8bit'), array('num' => '17', 'remark' => 'To smpp=8bit,default=8bit') ); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } elseif($oType == 3) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $arr_DCS=array( array('num' => '0', 'remark' => 'To smpp=7bit,default=7bit'), array('num' => '1', 'remark' => 'To smpp=8bit,default=7bit'), array('num' => '16', 'remark' => 'To smpp=7bit,default=8bit'), array('num' => '17', 'remark' => 'To smpp=8bit,default=8bit') ); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
$pTypeArr[$oType] $iNum
Name
System ID
Password
Service number
GTT number
Session timer
Enquire link timer
Inactivity timer
Response timer
DCS"; echo ""; echo "
Time to live
Service IP
Local IP
Session timer
Enquire link timer
Inactivity timer
Response timer
DCS"; echo ""; echo "
Time to live
"; echo "
"; echo ""; echo "  "; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; ?> Remarks:

Name: Name of the SMPP connection, can be any name, generally use the name of the connected device

System ID: Character string used to identify a SMPP connection. The System ID must be same as that of the connected device

Password: Password for setting up the SMPP connection. The password must be same as that of the connected device

Service number: SMSC number used for MO number display on MT MS, can be any number

GTT number: E.164 number of the connected device, only for UDP SMPP

Service IP: IP address of the connected device, only for TCP SMPP

Local IP: IP address of the connected device, only for TCP SMPP

Session timer: Specify the time lapse allowed between a network connection being established and a bind_transmitter or bind_receiver request being sent to the SMSC

Enquire link timer: Specify the time lapse allowed between operations after which an SMPP entity should interrogate whether it's peer still has an active session

Inactivity timer: Specify the maximum time lapse allowed between transactions, after which period of inactivity, an SMPP entity may assume that the session is no longer active

Response timer: Specify the time lapse allowed between an SMPP request and the corresponding SMPP response