]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_yoomedia.php
More variables renamed to , install/admin_WriteData() is now generic (with open TODO)
[mailer.git] / inc / modules / admin / what-config_yoomedia.php
index e93cc9bb4abcee156e5b75b8c07b445518db7054..0b2618f03eaa1386405a867cc2b962461399de19 100644 (file)
@@ -36,7 +36,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $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");
+       addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "yoomedia");
        return;
 }
 
@@ -51,22 +51,22 @@ if (isset($_POST['ok'])) {
                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($_CONFIG['yoomedia_id']),
-               'yoomedia_sid'              => bigintval($_CONFIG['yoomedia_sid']),
-               'yoomedia_passwd'           => $_CONFIG['yoomedia_passwd'],
-               'yoomedia_tm_max_reload'    => bigintval($_CONFIG['yoomedia_tm_max_reload']),
-               'yoomedia_tm_min_wait'      => bigintval($_CONFIG['yoomedia_tm_min_wait']),
-               'yoomedia_tm_clicks_remain' => bigintval($_CONFIG['yoomedia_tm_clicks_remain']),
-               'yoomedia_tm_min_pay'       => bigintval($_CONFIG['yoomedia_tm_min_pay'])
+               'yoomedia_id'               => bigintval(getConfig('yoomedia_id')),
+               'yoomedia_sid'              => bigintval(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'))
        );
 
        // Erotic?
-       switch ($_CONFIG['yoomedia_erotic_allowed']) {
+       switch (getConfig('yoomedia_erotic_allowed')) {
                case 0: // No erotic at all
                        define('__CFG_YOOMEDIA_EROTIC_NONE'   , " selected=\"selected\"");
                        define('__CFG_YOOMEDIA_EROTIC_INCLUDE', "");