Changeset 26442 for extensions/SmartAlbums/admin/config.php
- Timestamp:
- Jan 4, 2014, 4:13:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/admin/config.php
r19446 r26442 1 1 <?php 2 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');2 defined('SMART_PATH') or die('Hacking attempt!'); 3 3 4 // Enregistrement de la configuration5 4 if (isset($_POST['submit'])) 6 5 { 7 if ( $_POST['update_timeout'] == 0 or !preg_match('#^[0-9.]+$#', $_POST['update_timeout']))6 if ($_POST['update_timeout'] == 0 or !preg_match('#^[0-9.]+$#', $_POST['update_timeout'])) 8 7 { 9 array_push($page['errors'], l10n('Invalid number of days'));8 $page['errors'][] = l10n('Invalid number of days'); 10 9 $_POST['update_timeout'] = $conf['SmartAlbums']['update_timeout']; 11 10 } 12 11 13 12 $conf['SmartAlbums'] = array( 14 13 'show_list_messages' => $conf['SmartAlbums']['show_list_messages'], … … 19 18 'smart_is_forbidden' => isset($_POST['smart_is_forbidden']), 20 19 ); 21 20 22 21 conf_update_param('SmartAlbums', serialize($conf['SmartAlbums'])); 23 array_push($page['infos'], l10n('Information data registered in database'));22 $page['infos'][] = l10n('Information data registered in database'); 24 23 } 25 24 26 25 $template->assign($conf['SmartAlbums']); 27 26 28 $template->set_filename('SmartAlbums_content', dirname(__FILE__).'/template/config.tpl'); 29 30 ?> 27 $template->set_filename('SmartAlbums_content', realpath(SMART_PATH . 'admin/template/config.tpl'));
Note: See TracChangeset
for help on using the changeset viewer.