1
Hi,
I've got a custom php block that links to a non-xoops application, passing the XOOPS user id and password to this other application. It works great, BUT I can't seem to get the php code to take in formatting from my .css. I'd like this left custom block to match my left user menu.
This is the code.
global $xoopsUser;
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 "<a class=menuTop id=usermenu href='/timesheet/index_user.php?login=".Encrypt($xoopsUser->getVar('uname'))."&password=".Encrypt($xoopsUser->getVar('pass'))."&ref=".Encrypt($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'])."'>My Timesheet</a>";
Note this part of it isn't taking:
echo "<a class=menuTop id=usermenu
What am I missing? Is there a global I need to include?
Thx