"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/config/warning.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

warning.php  (mybb_1822):warning.php  (mybb_1823)
skipping to change at line 543 skipping to change at line 543
$plugins->run_hooks("admin_config_warning_edit_type"); $plugins->run_hooks("admin_config_warning_edit_type");
if($mybb->request_method == "post") if($mybb->request_method == "post")
{ {
if(!trim($mybb->input['title'])) if(!trim($mybb->input['title']))
{ {
$errors[] = $lang->error_missing_type_title; $errors[] = $lang->error_missing_type_title;
} }
if(!is_numeric($mybb->input['points']) || $mybb->input['points'] > $mybb->settings['maxwarningpoints'] || $mybb->input['points'] < 0) if(!is_numeric($mybb->input['points']) || $mybb->input['points'] > $mybb->settings['maxwarningpoints'] || $mybb->input['points'] <= 0)
{ {
$errors[] = $lang->sprintf($lang->error_missing_type_poin ts, $mybb->settings['maxwarningpoints']); $errors[] = $lang->sprintf($lang->error_missing_type_poin ts, $mybb->settings['maxwarningpoints']);
} }
if(!$errors) if(!$errors)
{ {
$updated_type = array( $updated_type = array(
"title" => $db->escape_string($mybb->input['title ']), "title" => $db->escape_string($mybb->input['title ']),
"points" => $mybb->get_input('points', MyBB::INPU T_INT), "points" => $mybb->get_input('points', MyBB::INPU T_INT),
"expirationtime" => fetch_time_length($mybb->inp ut['expire_time'], $mybb->input['expire_period']) "expirationtime" => fetch_time_length($mybb->inp ut['expire_time'], $mybb->input['expire_period'])
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)