Ejemplo n.º 1
0
         if ($_POST['winComp'] == "3") {
             $_POST['winComp'] = "4";
         } elseif ($_POST['winComp'] == "1") {
             $_POST['winComp'] = "-1";
         }
     }
     //vnc display
     if (isset($_POST['useVncJpg'])) {
         if ($_POST['encodType'] == "3") {
             $_POST['encodType'] = "4";
         } elseif ($_POST['encodType'] == "1") {
             $_POST['encodType'] = "-1";
         }
     }
     if (!UpdateDisplayOption($_POST['hiddenId'], $rExt, $bStore, $cSite, $_POST['compressionType'], $_POST['encodType'], $_POST['jpegQuality'], $_POST['winComp'], $sharedMem, $sPix, $_POST['rdpQuality'], $rCache, $_POST['jpegQualityRdp'], $_POST['jpegQualityVnc'])) {
         if (!InsertDisplayOption($_POST['hiddenId'], $rExt, $bStore, $cSite, $_POST['compressionType'], $eType, $_POST['jpegQuality'], $_POST['winComp'], $sharedMem, $sPix, $_POST['rdpQuality'], $rCache, $_POST['jpegQualityRdp'], $_POST['jpegQualityVnc'])) {
             $error = true;
             $messageType = "DisplayUpdateError";
         } else {
             $messageType = "DisplayUploadDone";
         }
     }
 }
 //end if($_POST['CustomDisplaySettings']!=0)
 if ($htproxy == 'true') {
     if (!UpdateHttpProxy($_POST['hiddenId'], $_POST['proxyHost'], $_POST['proxyPort'], $_POST['userNameProxy'], $_POST['passwordProxy'], $_POST['rememberProxyAuth'])) {
         if (!insertHttpProxy($_POST['hiddenId'], $_POST['proxyHost'], $_POST['proxyPort'], $_POST['userNameProxy'], $_POST['passwordProxy'], $_POST['rememberProxyAuth'])) {
             $error = true;
             $messageType = "ProxyUpdateError";
         } else {
             $messageType = "UpdateProxyDone";
Ejemplo n.º 2
0
     if (isset($_POST['useRdpJpg'])) {
         if ($_POST['winComp'] == "3") {
             $_POST['winComp'] = "4";
         } elseif ($_POST['winComp'] == "1") {
             $_POST['winComp'] = "-1";
         }
     }
     //vnc display
     if (isset($_POST['useVncJpg'])) {
         if ($_POST['encodType'] == "3") {
             $_POST['encodType'] = "4";
         } elseif ($_POST['encodType'] == "1") {
             $_POST['encodType'] = "-1";
         }
     }
     if (!InsertDisplayOption($lastSessionID, $rExt, $bStore, $cSite, $_POST['compressionType'], $_POST['encodType'], $_POST['jpegQuality'], $_POST['winComp'], $sharedMem, $sPix, $_POST['rdpQuality'], $rCache, $_POST['jpegQualityRdp'], $_POST['jpegQualityVnc'])) {
         $error = true;
         $messageType = "DisplayInsertError";
     }
 }
 //end if($_POST['CustomDisplaySettings']!=0)
 if ($_POST['HttpProxy'] == 'true') {
     if (!insertHttpProxy($lastSessionID, $_POST['proxyHost'], $_POST['proxyPort'], $_POST['userNameProxy'], $_POST['passwordProxy'], $_POST['rememberProxyAuth'])) {
         $error = true;
         $messageType = "ProxyInsertError";
     }
 }
 if ($_POST['useFontServer'] == 'true') {
     if (!insertFontServer($lastSessionID, $_POST['fontServerHost'], $_POST['fontServerPort'])) {
         $error = true;
         $messageType = "FontInsertError";