X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_yoomedia.php;h=80cf4ba27fc5a75464baf9eee25d72efd2a0eeec;hp=0e2b09c16dd3448b92fb9c82308fbbf1ac796b81;hb=3afdce4fe00b4af570122ce7b8158ced44aec7d3;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7 diff --git a/inc/modules/admin/what-config_yoomedia.php b/inc/modules/admin/what-config_yoomedia.php index 0e2b09c16d..80cf4ba27f 100644 --- a/inc/modules/admin/what-config_yoomedia.php +++ b/inc/modules/admin/what-config_yoomedia.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Standart Modus der Statistiken einstellen * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -38,25 +38,25 @@ // 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")) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "yoomedia"); +} elseif (!EXT_IS_ACTIVE('yoomedia')) { + addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'yoomedia')); return; } // Add description as navigation point -ADD_DESCR("admin", __FILE__); +ADD_DESCR('admin', __FILE__); // Was the form submitted? -if (IS_FORM_SENT()) { +if (isFormSent()) { // Test Yoo!Media config if (YOOMEDIA_TEST_CONFIG(REQUEST_POST_ARRAY())) { // Save settings ADMIN_SAVE_SETTINGS_POST(); } else { // Config not saved - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_CONFIG_YOOMEDIA_TEST_FAILED')); + LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_CONFIG_YOOMEDIA_TEST_FAILED')); } } else { // Prepare content @@ -73,21 +73,21 @@ if (IS_FORM_SENT()) { // 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; }