Example #1
0
         $portXdmQuery = "177";
     } else {
         $portXdmQuery = $_POST['XdmPortQuery'];
     }
     if (!isset($_POST['XdmDomainQuery'])) {
         $domainXdmQuery = "localhost";
     } else {
         $domainXdmQuery = $_POST['XdmDomainQuery'];
     }
     if (!isset($_POST['XdmPortBroadCast'])) {
         $portXdmBroadcast = "177";
     } else {
         $portXdmBroadcast = $_POST['XdmPortBroadCast'];
     }
     if (!UpdateXdmOption($_POST['hiddenId'], $_POST['xdmMode'], $portXdmList, $domainXdmList, $portXdmQuery, $domainXdmQuery, $portXdmBroadcast)) {
         if (!InsertXdmOption($_POST['hiddenId'], $_POST['xdmMode'], $portXdmList, $domainXdmList, $portXdmQuery, $domainXdmQuery, $portXdmBroadcast)) {
             $error = true;
             $messageType = "XDMUpdateError";
         } else {
             $messageType = "UpdateXdmDone";
         }
     }
     break;
 case 'custom':
     if (!isset($_POST['customCommand'])) {
         $cusCom = "";
     } else {
         $cusCom = $_POST['customCommand'];
     }
     if (!isset($_POST['disableX'])) {
         $disX = "true";
Example #2
0
     if (!isset($_POST['XdmPortQuery'])) {
         $portXdmQuery = "177";
     } else {
         $portXdmQuery = $_POST['XdmPortQuery'];
     }
     if (!isset($_POST['XdmDomainQuery'])) {
         $domainXdmQuery = "localhost";
     } else {
         $domainXdmQuery = $_POST['XdmDomainQuery'];
     }
     if (!isset($_POST['XdmPortBroadCast'])) {
         $portXdmBroadcast = "177";
     } else {
         $portXdmBroadcast = $_POST['XdmPortBroadCast'];
     }
     if (!InsertXdmOption($lastSessionID, $_POST['xdmMode'], $portXdmList, $domainXdmList, $portXdmQuery, $domainXdmQuery, $portXdmBroadcast)) {
         $error = true;
         $messageType = "XDMInsertError";
     }
     break;
 case 'custom':
     if (!isset($_POST['customCommand'])) {
         $cusCom = "";
     } else {
         $cusCom = $_POST['customCommand'];
     }
     if (!isset($_POST['disableX'])) {
         $disX = "true";
     } else {
         $disX = $_POST['disableX'];
     }