<?php include "system.php"; include_once '../simantz/class/User.inc.php'; $o = new User(); $s = new XoopsSecurity(); $action = $_REQUEST['action']; $isadmin = $xoopsUser->isAdmin(); $uid = $xoopsUser->getVar('uid'); switch ($action) { case "search": //return xml table to grid $wherestring = " WHERE uid>0"; $o->showUser($wherestring); exit; //after return xml shall not run more code. break; case "save": //process submited xml data from grid $o->saveUser(); case "searchsetting": //return xml table to grid $wherestring = " WHERE usersetting_id>0"; $o->showSetting($wherestring); exit; //after return xml shall not run more code. break; case "savesetting": //process submited xml data from grid $o->saveSetting(); case "lookup":
<?php include "header.php"; $loggedUser = new User(); $loggedUser->loadFromDB($conn, $_SESSION["user_id"]); if (isset($_GET["user_id"]) == true) { $userToShow = new User(); $userToShow->loadFromDB($conn, $_GET["user_id"]); $userToShow->showUser(); } else { $loggedUser->showUser(); } include "footer.php";