X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=786d5c43852a2797943417491e59779ccc81687f;hp=923ffa97bff637e078a5b18280e74a62cea6da6d;hb=56931cd9321119dd37372bd16d6c552857e40066;hpb=e6766e4386b48732a43282c1ffd23e176cbb8949 diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index 923ffa97bf..786d5c4385 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -14,11 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -40,16 +38,14 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isFormSent()) { - // Translate german decimal commas to computer decimal dots - setPostRequestParameter('beg_points' , convertCommaToDot(postRequestParameter('beg_points') )); - setPostRequestParameter('beg_points_max' , convertCommaToDot(postRequestParameter('beg_points_max') )); - setPostRequestParameter('beg_notify_bonus', convertCommaToDot(postRequestParameter('beg_notify_bonus'))); + // Replace german decimal comma with computer decimal dot + convertCommaToDotInPostDataArray(array('beg_points', 'beg_points_max', 'beg_notify_bonus')); // Save settings adminSaveSettingsFromPostData(); @@ -60,13 +56,10 @@ if (isFormSent()) { setConfigEntry('beg_rallye_disable_notify', postRequestParameter('beg_rallye_disable_notify')); } else { // Prepare constants for the template - $content['points'] = translateComma(getConfig('beg_points') , false); - $content['points_max'] = translateComma(getConfig('beg_points_max') , false); - $content['notify_bonus'] = translateComma(getConfig('beg_notify_bonus'), false); - $content['timeout'] = createTimeSelections(getConfig('beg_timeout') , 'beg_timeout' , 'Dhm'); - $content['userid_timeout'] = createTimeSelections(getConfig('beg_userid_timeout'), 'beg_userid_timeout', 'Dhm'); - $content['ip_timeout'] = createTimeSelections(getConfig('beg_ip_timeout') , 'beg_ip_timeout' , 'Dhm'); - $content['wait_selection'] = createTimeSelections(getConfig('beg_notify_wait') , 'beg_notify_wait' , 'ms' ); + $content['timeout'] = createConfigurationTimeSelections('beg_timeout' , 'Dhm'); + $content['userid_timeout'] = createConfigurationTimeSelections('beg_userid_timeout', 'Dhm'); + $content['beg_ip_timeout'] = createConfigurationTimeSelections('beg_ip_timeout' , 'Dhm'); + $content['wait_selection'] = createConfigurationTimeSelections('beg_notify_wait' , 'ms' ); // Init all Y/N selections foreach (array('rallye', 'active', 'mode', 'rallye_enable_notify', 'rallye_disable_notify', 'new_member_notify', 'include_own') as $entry) { @@ -81,18 +74,10 @@ if (isFormSent()) { } // END - foreach // Set default faker-mode - $content['pay_mode_' . strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"'; - - // Init beg_mode elements - foreach (array('direct', 'ref') as $entry) { - $content['beg_mode_' . $entry] = ''; - } // END - foreach - - // Set default mode - $content['beg_mode_' . strtolower(getConfig('beg_mode'))] = ' checked="checked"'; + $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"'; // Member selection box - $content['member_selection'] = addMemberSelectionBox(getConfig('beg_userid'), false, true, true, 'beg_userid'); + $content['beg_userid'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid'); // Load form template loadTemplate('admin_config_beg', false, $content);