2004/12/17 20:14
robotgod2000
Just popping in
Posts: 21
Since: 2004/11/18
// above this line is the standard XOOPS footer.php // below is the new function and link added function Encrypt($string, $key="xxxxxx") { $result = ''; for($i=1; $i<=strlen($string); $i++) { $char = substr($string, $i-1, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } return $result; } echo ".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>Click To Go To Timesheet"; ?>
2004/12/17 21:17
ackbarr
Posts: 1449
Since: 2002/10/2
[color=008000][b]global $xoopsUser;[/b][/color] // below is the new function and link added function Encrypt($string, $key="xxxxxx") { $result = ''; for($i=1; $i<=strlen($string); $i++) { $char = substr($string, $i-1, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } return $result; } echo ".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>Click To Go To Timesheet";
2004/12/17 22:01
Advanced Search
370 user(s) are online (324 user(s) are browsing Support Forums)
Members: 0
Guests: 370