Fixes that were left out. Remove extra whitespace from approvalfile, Update logintime value on login, Fix User Manager page title. No Bug.

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-11-01 23:03:02 +00:00
Родитель 3f64219c22
Коммит ea25d9fe20
3 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -10,9 +10,6 @@ if ($_SESSION["level"]=="admin" or $_SESSION["level"]=="editor") {
exit;
}
$filename = basename($_SERVER["PATH_INFO"]);
$file = "$repositorypath/approval/$filename";
header('Content-Description: File Transfer');

Просмотреть файл

@ -18,6 +18,10 @@ $usermode=$row["UserMode"];
$usertrusted=$row["UserTrusted"];
$logoncheck="YES";
//Update LastLogin Time to current.
$sql = "UPDATE `t_userprofiles` SET `UserLastLogin`=NOW(NULL) WHERE `UserID`='$userid' LIMIT 1";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
//User Role to Session Level variable...
$rolearray = array("A"=>"admin", "E"=>"editor","U"=>"user");
$usermode = $rolearray[$usermode];

Просмотреть файл

@ -16,7 +16,7 @@ $userid=$_SESSION["uid"];
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<HTML>
<HEAD>
<TITLE>Mozilla Update :: Developer Control Panel :: </TITLE>
<TITLE>Mozilla Update :: Developer Control Panel :: User Manager</TITLE>
<?php
include"$page_header";
include"inc_sidebar.php";