Changeset 3170
- Timestamp:
- 08/17/10 16:44:05 (13 years ago)
- Location:
- branches/2.2/phpgwapi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/phpgwapi/inc/class.common.inc.php
r3052 r3170 316 316 317 317 if(function_exists("lang")) 318 echo '<center><b>'.lang("ExpressoLivre is unavailable at this moment. Code %1<br>Please, try later.","002").'</b></center>'; 318 echo '<div style="border: 2px dashed red; top: 0px; left: 0px; position: absolute; background-color: #EEE; width: 260px;">'. 319 '<center><img src="../admin/templates/default/images/navbar.png"><br>'. 320 lang("Catalog is out of service, you will not able to do some operations").'</center></div>'; 319 321 else 320 322 printf("Error: Can't bind to LDAP server (invalid credentials): %s",$dn); … … 331 333 } 332 334 if(function_exists("lang")) 333 echo '<center><b>'.lang("ExpressoLivre is unavailable at this moment. Code %1<br>Please, try later.","002").'</b></center>'; 335 echo '<div style="border: 2px dashed red; top: 0px; left: 0px; position: absolute; background-color: #EEE; width: 260px;">'. 336 '<center><img src="../admin/templates/default/images/navbar.png"><br>'. 337 lang("Catalog is out of service, you will not able to do some operations").'</center></div>'; 334 338 else 335 339 printf("Error: Can't bind to LDAP server (anonymous bind): %s",$dn); -
branches/2.2/phpgwapi/inc/class.sessions.inc.php
r3018 r3170 291 291 292 292 $this->update_dla(); 293 $this->account_id = $GLOBALS['phpgw']->accounts->name2id($this->account_lid); 293 if (isset($_SESSION['phpgw_session']['account_id'])) 294 $this->account_id = $_SESSION['phpgw_session']['account_id']; 295 else 296 $this->account_id = $GLOBALS['phpgw']->accounts->name2id($this->account_lid); 294 297 if (!$this->account_id) 295 298 { 296 299 return False; 297 300 } 298 299 301 $GLOBALS['phpgw_info']['user']['account_id'] = $this->account_id; 302 $_SESSION['phpgw_session']['account_id'] = $this->account_id; 300 303 301 304 /* init the crypto object before appsession call below */ … … 305 308 306 309 $this->read_repositories(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info']); 307 310 if (strlen($this->user['expires']) == 0) 311 $this->user['expires'] = $_SESSION['phpgw_session']['expires_account']; 308 312 if ($this->user['expires'] != -1 && $this->user['expires'] < time()) 309 313 { … … 320 324 return False; 321 325 } 326 $_SESSION['phpgw_session']['expires_account'] = $this->user['expires']; 327 322 328 323 329 $GLOBALS['phpgw_info']['user'] = $this->user;
Note: See TracChangeset
for help on using the changeset viewer.