Ignore:
Timestamp:
Dec 14, 2012, 3:35:07 PM (11 years ago)
Author:
mistic100
Message:

change reload icon with color choice (dark or light), separate HTML and PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/main.inc.php

    r17484 r19428  
    2828  global $conf, $user;
    2929 
    30   // brace yourself, smartphones spammers are comming !
     30  $conf['cryptographp'] = unserialize($conf['cryptographp']);
     31 
     32  if (!is_a_guest()) return;
    3133  if ($user['theme'] == 'smartpocket') return;
    32  
    33   $conf['cryptographp'] = unserialize($conf['cryptographp']);
    3434 
    3535  if (script_basename() == 'register' and $conf['cryptographp']['activate_on']['register'])
    3636  {
     37    $conf['cryptographp']['template'] = 'register';
    3738    include(CRYPTO_PATH.'include/register.inc.php');
    3839  }
    3940  else if (script_basename() == 'picture' and $conf['cryptographp']['activate_on']['picture'])
    4041  {
     42    $conf['cryptographp']['template'] = 'comment';
    4143    include(CRYPTO_PATH.'include/picture.inc.php');
    4244  }
     
    4850  global $conf, $pwg_loaded_plugins, $page, $user;
    4951 
     52  if (!is_a_guest()) return;
    5053  if ($user['theme'] == 'smartpocket') return;
    5154 
     
    5659    )
    5760  {
     61    $conf['cryptographp']['template'] = 'comment';
    5862    include(CRYPTO_PATH.'include/category.inc.php');
    5963  }
    6064  else if ( preg_match('#contact/?$#', $_SERVER['REQUEST_URI']) and $conf['cryptographp']['activate_on']['contactform'])
    6165  {
     66    $conf['cryptographp']['template'] = 'contactform';
    6267    include(CRYPTO_PATH.'include/contactform.inc.php');
    6368  }
    6469  else if (isset($page['section']) and $page['section'] == 'guestbook' and $conf['cryptographp']['activate_on']['guestbook'])
    6570  {
     71    $conf['cryptographp']['template'] = 'comment';
    6672    include(CRYPTO_PATH.'include/guestbook.inc.php');
    6773  }
Note: See TracChangeset for help on using the changeset viewer.