1
我试图检查用户是否登录并显示外部whmcs文件夹的名字。我正在使用Feed。我已经在feeds文件夹中创建了checkifloggedin.php。创建whmcs 6饲料来检查客户是否登录
<?php
require("../init.php");
if (isset($_SESSION['uid'])) {
/*i can get the the id of the user but i cannot display the first
name of the logged in user. tried several methods but i cannot
make it work.*/
widgetoutput();
}
else {
widgetoutput('logged out');
}
function widgetoutput($value) {
echo "document.write('".addslashes($value)."');";
exit;
}
?>
任何帮助,你们都会如此赞赏。
非常感谢。