Ignore:
Timestamp:
Oct 20, 2006, 4:17:53 AM (18 years ago)
Author:
rvelices
Message:

used in the code (generates mysql errors on session garbage collector)

  • fix auto_login (die mysql when session timed out, but user has remember)
  • when a user reconnects from identification.php, the remember cookie was not

deleted

  • fix all redirect warnings/errors (many changes - mainly in common.inc.php

and user.inc.php)

login the 60 days countdown restarts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r1567 r1568  
    585585  global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug;
    586586
    587   if (!isset($lang_info)) {
     587  if (!isset($lang_info))
     588  {
     589    $user = build_user( $conf['guest_id'], true);
    588590    include_once(get_language_filepath('common.lang.php'));
     591    list($tmpl, $thm) = explode('/', $conf['default_template']);
     592    $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm);
     593  }
     594  else
     595  {
     596    $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme']);
    589597  }
    590598
     
    602610  $url_link = $url;
    603611  $title = 'redirection';
    604 
    605   unset($template);
    606   if ( isset($user['template']) )
    607   {
    608     $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);
    609   }
    610   else
    611   {
    612     list($tmpl, $thm) = explode('/', $conf['default_template']);
    613     global $themeconf;
    614     include(
    615       PHPWG_ROOT_PATH
    616       .'template/'.$tmpl
    617       .'/theme/'.$thm
    618       .'/themeconf.inc.php'
    619       );
    620     $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl);
    621     $user['is_the_guest']=true;
    622     $user['id']=$conf['guest_id'];
    623   }
    624612
    625613  $template->set_filenames( array( 'redirect' => 'redirect.tpl' ) );
     
    922910function get_themeconf($key)
    923911{
    924   global $themeconf;
    925 
    926   return isset($themeconf[$key]) ? $themeconf[$key] : '';
     912  global $template;
     913
     914  return $template->get_themeconf($key);
    927915}
    928916
Note: See TracChangeset for help on using the changeset viewer.