forgot to add includes/MySmarty.class.php :(
moved a couple of things into an override of Smarty::display()
This commit is contained in:
parent
137d715568
commit
db7808688f
17 changed files with 61 additions and 53 deletions
|
@ -109,7 +109,6 @@ else if ($action == "edit") {
|
|||
$approved = $row["approved"];
|
||||
$userisadmin = $row["admin"];
|
||||
}
|
||||
mysql_free_result($rs);
|
||||
}
|
||||
else if ($action == "") {
|
||||
$username = "";
|
||||
|
@ -197,7 +196,6 @@ $users = array();
|
|||
while ($row = $stmt->fetch()) {
|
||||
$users[] = $row;
|
||||
}
|
||||
mysql_free_result($rs);
|
||||
|
||||
$smarty->assign('action', $action);
|
||||
$smarty->assign('username', $username);
|
||||
|
@ -223,7 +221,5 @@ if (isset($message)) {
|
|||
$smarty->assign('message', $message);
|
||||
}
|
||||
$smarty->assign('userid', $userid);
|
||||
$smarty->assign('isadmin', $_SESSION["admin"]);
|
||||
$smarty->assign('opt', $smarty->opt());
|
||||
$smarty->display('users.tpl');
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue