Changeset 19428 for extensions/CryptograPHP/main.inc.php
- Timestamp:
- Dec 14, 2012, 3:35:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/main.inc.php
r17484 r19428 28 28 global $conf, $user; 29 29 30 // brace yourself, smartphones spammers are comming ! 30 $conf['cryptographp'] = unserialize($conf['cryptographp']); 31 32 if (!is_a_guest()) return; 31 33 if ($user['theme'] == 'smartpocket') return; 32 33 $conf['cryptographp'] = unserialize($conf['cryptographp']);34 34 35 35 if (script_basename() == 'register' and $conf['cryptographp']['activate_on']['register']) 36 36 { 37 $conf['cryptographp']['template'] = 'register'; 37 38 include(CRYPTO_PATH.'include/register.inc.php'); 38 39 } 39 40 else if (script_basename() == 'picture' and $conf['cryptographp']['activate_on']['picture']) 40 41 { 42 $conf['cryptographp']['template'] = 'comment'; 41 43 include(CRYPTO_PATH.'include/picture.inc.php'); 42 44 } … … 48 50 global $conf, $pwg_loaded_plugins, $page, $user; 49 51 52 if (!is_a_guest()) return; 50 53 if ($user['theme'] == 'smartpocket') return; 51 54 … … 56 59 ) 57 60 { 61 $conf['cryptographp']['template'] = 'comment'; 58 62 include(CRYPTO_PATH.'include/category.inc.php'); 59 63 } 60 64 else if ( preg_match('#contact/?$#', $_SERVER['REQUEST_URI']) and $conf['cryptographp']['activate_on']['contactform']) 61 65 { 66 $conf['cryptographp']['template'] = 'contactform'; 62 67 include(CRYPTO_PATH.'include/contactform.inc.php'); 63 68 } 64 69 else if (isset($page['section']) and $page['section'] == 'guestbook' and $conf['cryptographp']['activate_on']['guestbook']) 65 70 { 71 $conf['cryptographp']['template'] = 'comment'; 66 72 include(CRYPTO_PATH.'include/guestbook.inc.php'); 67 73 }
Note: See TracChangeset
for help on using the changeset viewer.