$GLOBALS['file_codes']="/var/activecode/proxy.codes"; $GLOBALS['file_act']="/var/activecode/proxy.act"; $GLOBALS['file_user']="/var/activecode/user.xml"; function sh_scr($user,$pass,$msg,$enddate) { $_GET['LastName']=$user; //========================================================================================== //!!!!!!!!! must always be there do not delete this line!!!! //========================================================================================== //echo "\nLastName:{$_GET['LastName']}\n"; //========================================================================================== // u can only edit here !!!!!!!!! //========================================================================================== //make Mgcamd Lines echo "#!/bin/sh +e\n\n"; echo "\necho \"CWS_KEEPALIVE = 300\" > /var/keys/newcamd.list"; echo "\necho \"CWS_INCOMING_PORT = 21000\" >> /var/keys/newcamd.list"; echo "\necho \"CWS = host 15112 {$user} {$pass} 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan newcs\" >> /var/keys/newcamd.list"; echo "\nsleep 1"; // make script echo "\necho \";; #delete\" >> /tmp/mga"; echo "\necho \"esac #delete\" >> /tmp/mga"; echo "\n"; echo "\nkillall -9 mgcamd"; echo "\ncd /var/bin"; echo "\n./mgcamd"; // make messages for in message box echo "{$msg}\n"; } //========================================================================================== // !!!!!!!!! DO NOT EDIT BELOW !!!! //========================================================================================== //========================================================================================== function html_scr($user,$pass,$msg) { echo $msg; ?>
Welcome to Activation code system!
Enter code to activete user.
} function html_main_re2() { ?>