Re: no editing will help – we are stuck!

Home Page Forums Network Management ZeroShell Captive Portal webpage editing Re: no editing will help – we are stuck!

#45440

webwarrior
Member

The custom html login screen cannot be edited accept for the headers that it allows you.

All the funtionality for the redirect stuff is in a compiled programm called:
/usr/local/apache2/cgi-bin/zscp.

this dynamically creates the web page on the fly, and handles the redirect to the original web page.

We are stuffed, unless we can rewrite, and recompile this program.

It generates code like this, which cannot be edited in any file:

/*
//commented out to stop any redirect in the forum//
function RedirectSite() {
var WO=window.opener
if (WO!=null) {
WO.location=”http://www.google.co.nz/”;
}
}
function loaded() {
NoDisconnectionWarning=false;
window.onbeforeunload = DontCloseW;
ReNew();
setNormalRenew();
setTimeout(“doNotCloseMsg()”,5000);
RedirectSite();
}

*/

This hard coding of the redirect happens on the fy by this program.

Anybody got a C-compiler??