X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_yoomedia.php;h=b435d4ae36e58dc2ede06901502a1cb7d73958d6;hb=49248176a5638be80b148ef55d0dc8c334522bf3;hp=b50caf3a30613f846c9247dddb6f159b501e8c9a;hpb=f9a9c09e1ae257449bfd98f8854e321efba1dc3c;p=mailer.git diff --git a/inc/modules/admin/what-config_yoomedia.php b/inc/modules/admin/what-config_yoomedia.php index b50caf3a30..b435d4ae36 100644 --- a/inc/modules/admin/what-config_yoomedia.php +++ b/inc/modules/admin/what-config_yoomedia.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Standart Modus der Statistiken einstellen * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $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 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,56 +38,56 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!IS_ADMIN())) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} elseif (!EXT_IS_ACTIVE("yoomedia")) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "yoomedia"); +} elseif (!EXT_IS_ACTIVE('yoomedia')) { + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('yoomedia')); return; } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Was the form submitted? -if (isset($_POST['ok'])) { +if (isFormSent()) { // Test Yoo!Media config - if (YOOMEDIA_TEST_CONFIG($_POST)) { + if (YOOMEDIA_TEST_CONFIG(REQUEST_POST_ARRAY())) { // Save settings - ADMIN_SAVE_SETTINGS($_POST); + ADMIN_SAVE_SETTINGS_POST(); } else { // Config not saved - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_CONFIG_YOOMEDIA_TEST_FAILED); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_CONFIG_YOOMEDIA_TEST_FAILED')); } } else { // Prepare content $content = array( - 'yoomedia_id' => bigintval(getConfig('yoomedia_id')), - 'yoomedia_sid' => bigintval(getConfig('yoomedia_sid')), + 'yoomedia_id' => getConfig(('yoomedia_id')), + 'yoomedia_sid' => getConfig(('yoomedia_sid')), 'yoomedia_passwd' => getConfig('yoomedia_passwd'), - 'yoomedia_tm_max_reload' => bigintval(getConfig('yoomedia_tm_max_reload')), - 'yoomedia_tm_min_wait' => bigintval(getConfig('yoomedia_tm_min_wait')), - 'yoomedia_tm_clicks_remain' => bigintval(getConfig('yoomedia_tm_clicks_remain')), - 'yoomedia_tm_min_pay' => bigintval(getConfig('yoomedia_tm_min_pay')) + 'yoomedia_tm_max_reload' => getConfig(('yoomedia_tm_max_reload')), + 'yoomedia_tm_min_wait' => getConfig(('yoomedia_tm_min_wait')), + 'yoomedia_tm_clicks_remain' => getConfig(('yoomedia_tm_clicks_remain')), + 'yoomedia_tm_min_pay' => getConfig(('yoomedia_tm_min_pay')) ); // Erotic? switch (getConfig('yoomedia_erotic_allowed')) { case 0: // No erotic at all - define('__CFG_YOOMEDIA_EROTIC_NONE' , " selected=\"selected\""); - define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ""); - define('__CFG_YOOMEDIA_EROTIC_ONLY' , ""); + define('__CFG_YOOMEDIA_EROTIC_NONE' , ' selected="selected"'); + define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ''); + define('__CFG_YOOMEDIA_EROTIC_ONLY' , ''); break; case 1: // Include erotic - define('__CFG_YOOMEDIA_EROTIC_NONE' , ""); - define('__CFG_YOOMEDIA_EROTIC_INCLUDE', " selected=\"selected\""); - define('__CFG_YOOMEDIA_EROTIC_ONLY' , ""); + define('__CFG_YOOMEDIA_EROTIC_NONE' , ''); + define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ' selected="selected"'); + define('__CFG_YOOMEDIA_EROTIC_ONLY' , ''); break; case 2: // Erotic only - define('__CFG_YOOMEDIA_EROTIC_NONE' , ""); - define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ""); - define('__CFG_YOOMEDIA_EROTIC_ONLY' , " selected=\"selected\""); + define('__CFG_YOOMEDIA_EROTIC_NONE' , ''); + define('__CFG_YOOMEDIA_EROTIC_INCLUDE', ''); + define('__CFG_YOOMEDIA_EROTIC_ONLY' , ' selected="selected"'); break; }