Example #1
0
     } else {
         $winRem = $_POST['RememberPasswordWindows'];
     }
     if (!isset($_POST['runWindowsType'])) {
         $winAppType = "false";
     } else {
         $winAppType = $_POST['runWindowsType'];
     }
     if (!isset($_POST['applicationWindows'])) {
         $winApp = "";
     } else {
         $winApp = $_POST['applicationWindows'];
     }
     $checkUp = UpdateRdpOption($_POST['hiddenId'], $winSer, $winDom, $_POST['RdpCredential'], $winUser, $winPass, $winRem, $winAppType, addslashes($winApp));
     if ($checkUp < 1) {
         if (!InsertRdpOption($_POST['hiddenId'], $winSer, $winDom, $_POST['RdpCredential'], $winUser, $winPass, $winRem, $winAppType, $winApp)) {
             $error = true;
             $messageType = "RDPUpdateError";
         } else {
             $messageType = "UpdateWinDone";
         }
     } else {
         $messageType = "UpdateWinDone";
     }
 } elseif ($_POST['sessionType'] == "vnc") {
     if (!isset($_POST['VncHost'])) {
         $vncH = "";
     } else {
         $vncH = $_POST['VncHost'];
     }
     if (!isset($_POST['VncPort'])) {
Example #2
0
     if (!isset($_POST['RememberPasswordWindows'])) {
         $winRem = "false";
     } else {
         $winRem = $_POST['RememberPasswordWindows'];
     }
     if (!isset($_POST['runWindowsType'])) {
         $winAppType = "false";
     } else {
         $winAppType = $_POST['runWindowsType'];
     }
     if (!isset($_POST['applicationWindows'])) {
         $winApp = "";
     } else {
         $winApp = $_POST['applicationWindows'];
     }
     if (!InsertRdpOption($lastSessionID, $winSer, $winDom, $_POST['RdpCredential'], $winUser, $winPass, $winRem, $winAppType, addslashes($winApp))) {
         $error = true;
         $messageType = "RDPInsertError";
     }
 } elseif ($_POST['sessionType'] == "vnc") {
     if (!isset($_POST['VncHost'])) {
         $vncH = "";
     } else {
         $vncH = $_POST['VncHost'];
     }
     if (!isset($_POST['VncPort'])) {
         $portVnc = "";
     } else {
         $portVnc = $_POST['VncPort'];
     }
     if (!isset($_POST['vncPassword'])) {