Changeset 26041 for extensions/CryptograPHP/admin.php
- Timestamp:
- Dec 19, 2013, 3:24:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/admin.php
r23209 r26041 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('CRYPTO_ID') or die('Hacking attempt!'); 3 3 4 4 global $pwg_loaded_plugins; … … 7 7 'category' => isset($pwg_loaded_plugins['Comments_on_Albums']), 8 8 'guestbook' => isset($pwg_loaded_plugins['GuestBook']), 9 'easycaptcha' => isset($pwg_loaded_plugins['EasyCaptcha']), 9 10 ); 10 11 11 12 load_language('plugin.lang', CRYPTO_PATH); 13 12 if ($loaded['easycaptcha']) 13 { 14 $page['warnings'][] = l10n('We detected that EasyCaptcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'); 15 } 14 16 15 17 if ( isset($_POST['submit'])) 16 { 18 { 19 if (!isset($_POST['activate_on'])) $_POST['activate_on'] = array(); 20 17 21 $conf['cryptographp'] = array( 18 22 'activate_on' => array( 19 20 21 22 23 24 23 'picture' => in_array('picture', $_POST['activate_on']), 24 'category' => in_array('category', $_POST['activate_on']) || !$loaded['category'], 25 'register' => in_array('register', $_POST['activate_on']), 26 'contactform' => in_array('contactform', $_POST['activate_on']) || !$loaded['contactform'], 27 'guestbook' => in_array('guestbook', $_POST['activate_on']) || !$loaded['guestbook'], 28 ), 25 29 'comments_action' => $_POST['comments_action'], 26 30 'theme' => $_POST['theme'], … … 42 46 43 47 conf_update_param('cryptographp', serialize($conf['cryptographp'])); 44 array_push($page['infos'], l10n('Information data registered in database'));48 $page['infos'][] = l10n('Information data registered in database'); 45 49 } 46 50 … … 78 82 $template->set_filename('plugin_admin_content', dirname(__FILE__).'/template/admin.tpl'); 79 83 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 80 81 ?>
Note: See TracChangeset
for help on using the changeset viewer.