Changeset 1748 for trunk/admin/notification_by_mail.php
- Timestamp:
- Jan 23, 2007, 11:03:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/notification_by_mail.php
r1571 r1748 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 6PhpWebGallery Team - http://phpwebgallery.net |6 // | Copyright (C) 2006 Ruben ARNAUD - team@phpwebgallery.net|5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 6 // | Copyright (C) 2006-2007 Ruben ARNAUD - team@phpwebgallery.net | 7 7 // +-----------------------------------------------------------------------+ 8 8 // | branch : BSF (Best So Far) … … 415 415 case 'param' : 416 416 { 417 $updated_param_count = 0;418 // Update param419 $result = pwg_query('select param, value from '.CONFIG_TABLE.' where param like \'nbm\\_%\'');420 while ($nbm_user = mysql_fetch_array($result))421 {422 if (isset($_POST['param_submit']) and !is_adviser())417 if (isset($_POST['param_submit']) and !is_adviser()) 418 { 419 $updated_param_count = 0; 420 // Update param 421 $result = pwg_query('select param, value from '.CONFIG_TABLE.' where param like \'nbm\\_%\''); 422 while ($nbm_user = mysql_fetch_array($result)) 423 423 { 424 424 if (isset($_POST[$nbm_user['param']])) … … 428 428 $query = ' 429 429 update 430 431 set 430 '.CONFIG_TABLE.' 431 set 432 432 value = \''. str_replace("\'", "''", $value).'\' 433 433 where … … 437 437 } 438 438 } 439 440 $conf[$nbm_user['param']] = $nbm_user['value'];441 442 // if the parameter is present in $_POST array (if a form is submited), we443 // override it with the submited value444 if (isset($_POST[$nbm_user['param']]) and !is_adviser())445 {446 $conf[$nbm_user['param']] = stripslashes($_POST[$nbm_user['param']]);447 }448 449 // If the field is true or false, the variable is transformed into a450 // boolean value.451 if ($conf[$nbm_user['param']] == 'true' or $conf[$nbm_user['param']] == 'false')452 {453 $conf[$nbm_user['param']] = get_boolean($conf[$nbm_user['param']]);454 }455 }456 439 457 if ($updated_param_count != 0)458 {459 440 array_push($page['infos'], sprintf(l10n('nbm_updated_param_count'), $updated_param_count)); 441 442 // Reload conf with new values 443 load_conf_from_db('param like \'nbm\\_%\''); 460 444 } 461 445 }
Note: See TracChangeset
for help on using the changeset viewer.