// // ------------------------------------------------------------------------- // // Original Author: The Xoops Project // Author Website : http://www.xoops.org // License Type : GPL: See /manual/LICENSES/GPL.txt // ------------------------------------------------------------------------- // $xoopsOption['pagetype'] = "admin"; include_once("mainfile.php"); include_once(XOOPS_ROOT_PATH."/include/cp_functions.php"); /*********************************************************/ /* Admin Authentication */ /*********************************************************/ $admintest = 0; if ($xoopsUser) { if ( !$xoopsUser->isAdmin() ) { redirect_header("index.php", 2, _NOPERM); exit(); } $admintest = 1; } else { redirect_header("index.php", 2, _NOPERM); exit(); } $op = "list"; if ( !empty($_GET['op']) ) { $op = $_GET['op']; } if ( !empty($_POST['op']) ) { $op = $_POST['op']; } if ($admintest == 1) { switch ($op) { case "list": xoops_cp_header(); OpenTable(); if ( @is_writable(XOOPS_ROOT_PATH."/mainfile.php" ) ) { echo " ".sprintf(_FILEWARN, XOOPS_ROOT_PATH."/mainfile.php")."

"; } if ( @is_dir(XOOPS_ROOT_PATH."/_install" ) ) { echo " ".sprintf(_INSTALLWARN, XOOPS_ROOT_PATH."/_install/").""; } $sql = "SELECT * FROM ".$db->prefix("users")." WHERE level>0 ORDER BY uid DESC"; $result = $db->query($sql, 10, 0); echo "

"._AD_LASTTENUSERS."

"; echo "
"; while ( $myrow = $db->fetchArray($result) ) { $myuser = new XoopsUser($myrow); $user_image = $myuser->getVar("user_avatar") ? "" : ' '; echo " "; } echo "
"._AD_NICKNAME.""._EMAIL.""._AD_AVATAR.""._AD_COMMENTS.""._AD_REGISTERED.""._AD_ACTION."
".$myuser->getVar("uname")." ".$myuser->getVar("email")." ".$user_image." ".$myuser->getVar("posts")." ".formatTimestamp($myuser->getVar("user_regdate"))." "._EDIT." "._DELETE."

"; ?>

Contribute to, or support bcoos


Feature wishes
Report bugs - bugs@bcoos.net