Slackbot
09/19/2022, 2:55 PMAndrew Gresbach
09/19/2022, 2:56 PMRay Davis
09/19/2022, 3:29 PMDennis Parker
09/19/2022, 6:59 PMRay Davis
09/20/2022, 4:11 PMDennis Parker
09/21/2022, 4:14 PMRay Davis
09/21/2022, 4:14 PMDennis Parker
09/21/2022, 4:22 PM$('.changeclient-currently-using.detail-text').html("If you are on a computer where you cannot install applications, for example a hotel kiosk, you may use the \"light\" version of Citrix to access your ProZone applications. Note that some features of your applications may not function properly in Light mode");
$("#procirrus-changeclient-use-full-version").on("click", function() {
//alert( "Handler for .click() called." );
var csrfToken = Cookies.get("CsrfToken");
Cookies.set("CtxsUserPreferredClient", "Native", { expires: 400, path: csrfToken.path });
$( "#procirrus-changeclient-use-full-version" ).hide();
$( "#menuConnectBtn" ).hide();
$( "#menuDisconnectBtn" ).hide();
return false;
});
$(".procirrus-use-full-version").html("You are currently in light mode which reduces your functionality. It is intended for use when working from a computer where you can't install the ProZone, like a hotel kiosk. If you are in this mode by accident, please click anywhere in this message to return to normal mode.")
Some commands in the ADC, not 100% sure if all of these were required or some were just for testing...
add rewrite action InsertPreferredClient insert_http_header Set-Cookie "\"CtxsUserPreferredClient=Native; expires=\" + SYS.TIME.ADD(33557600 ).TYPECAST_TIME_AT"
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT1 insert_before_all "HTTP.RES.BODY(100000).SET_TEXT_MODE(ignorecase)" "\"<div>test</div>\"" -search "text(\"html\")"
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT3 insert_before_all "HTTP.RES.BODY(100000).SET_TEXT_MODE(ignorecase)" "\"<div>test</div>\"" -pattern q/"<section class=\"scrollable storeViewSection\">"/
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT5 replace_all "HTTP.RES.BODY(50000000)" "\"procirrus\"" -search "text(\"scrollable\")"
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT2 insert_before "HTTP.RES.BODY(100000).BEFORE_STR(\"scrollable\")" "\"procirrus \""
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT4 insert_before_all "HTTP.RES.BODY(100000000).SET_TEXT_MODE(ignorecase)" q{"<div id=\"procirrus-changeclient-use-full-version\"><a class=\"procirrus-use-full-version web-screen-link\"></a></div>"} -search q/text("<div class=\"store-apps-container\">")/
add rewrite action NOTIFY_LIGHTMODE_STOREFRONT insert_after_all "HTTP.RES.BODY(100000000).SET_TEXT_MODE(ignorecase)" q{"<div id=\"procirrus-changeclient-use-full-version\"><a class=\"procirrus-use-full-version web-screen-link\"></a></div>"} -search q/text("<section class=\"scrollable storeViewSection\">")/
add rewrite policy NOTIFY_IF_LIGHTMODE "IS_RECEIVER_CONNECTION.NOT&&HTTP.REQ.COOKIE.NAMES.CONTAINS(\"CtxsUserPreferredClient\").NOT&&HTTP.RES.HEADER(\"Content-Type\").CONTAINS(\"text/html\")" NOTIFY_LIGHTMODE_STOREFRONT
add responder action RESPONDER_REDIRECT_LIGHTMODE redirect "\"https://lightmode.procirrus.com\"" -responseStatusCode 301Ray Davis
09/22/2022, 11:31 AM