Changeset 1939
- Timestamp:
- 09/09/07 22:49:56 (1 year ago)
- Files:
-
- alternc/trunk/bureau/class/config.php (modified) (4 diffs)
- alternc/trunk/bureau/class/m_mem.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/class/config.php
r1645 r1939 67 67 } 68 68 69 $error = ""; 69 70 70 71 /* PHPLIB inclusions : */ … … 72 73 /* Server Domain Name */ 73 74 $host=getenv("HTTP_HOST"); 75 76 /* Custom PHP debugger */ 77 require_once($root."class/error_handler.php"); 78 $queryCount = 0; 74 79 75 80 /* Global variables (AlternC configuration) */ … … 79 84 require_once($root."class/functions.php"); 80 85 require_once($root."class/variables.php"); 86 87 $tempsDebut = microtimeFloat(); 81 88 82 89 // Redirection si appel à https://(!fqdn)/ … … 144 151 /* Check the User identity (if required) */ 145 152 if (!defined('NOCHECK')) { 146 if (!$mem->checkid()) { 153 $fields = array ( 154 "username" => array ("request", "string", ""), 155 "password" => array ("request", "string", ""), 156 "restrictip" => array ("request", "integer", 0), 157 ); 158 getFields($fields); 159 160 if (!$mem->checkid($username,$password,$restrictip)) { 147 161 $error=$err->errstr(); 148 162 include("index.php"); alternc/trunk/bureau/class/m_mem.php
r1533 r1939 162 162 * @return TRUE si la session est correcte, FALSE sinon. 163 163 */ 164 function checkid( ) {165 global $db,$err,$session,$ username,$password,$cuid,$restrictip;164 function checkid($username, $password, $restrictip) { 165 global $db,$err,$session,$cuid; 166 166 if ($username && $password) { 167 167 return $this->login($username,$password,$restrictip);
