$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;
}
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', "");