Extraños valores al meterme en Administración

Started by Uluku, July 14, 2014, 07:21:54 PM

Previous topic - Next topic

Uluku

Quote/ ENotify function ENotify($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; loadLanguage('ENotify'); $config_vars = array( array('check', 'enotify_replies'), array('check', 'enotify_pms'), array('int', 'enotify_refresh', 'postinput' => 'ms'), array('int', 'enotify_life', 'postinput' => 'ms'), array('int', 'enotify_exp', 'postinput' => $txt['hours']),    ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify'; $context['settings_title'] = $txt['enotify_admin']; // No removing this line you, dirty unwashed mod authors. :p if (empty($config_vars)) { $context['settings_save_dont_show'] = true; $context['settings_message'] = '
' . $txt['modification_no_misc_settings'] .

'; return prepareDBSettingContext($config_vars); } // Saving? if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; // This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS! saveDBSettings($save_vars); // This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA! redirectexit('action=admin;area=modsettings;sa=enotify'); } // This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN! prepareDBSettingContext($config_vars); }

Me sale en algunas secciones de administración. Decir que empezó a salir tras intentar instalar el mod ENotify. Había realizado un backup antes pero tampoco me deja restaurarlo. EL resto del foro no tiene ese problema

Diego Andrés

Busca en el archivo Sources/ManageSettings.php lo siguiente:


// ENotify
function ENotify($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

loadLanguage('ENotify');

$config_vars = array(
    array('check', 'enotify_replies'),
    array('check', 'enotify_pms'),
    array('int', 'enotify_refresh', 'postinput' => 'ms'),
    array('int', 'enotify_life', 'postinput' => 'ms'),
    array('int', 'enotify_exp', 'postinput' => $txt['hours']),
);
 
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify';
$context['settings_title'] = $txt['enotify_admin'];

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA!

redirectexit('action=admin;area=modsettings;sa=enotify');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN!

prepareDBSettingContext($config_vars);
}


Y asegúrate de que se encuentre antes de la etiqueta ?>

SMF Tricks - Free & Premium Responsive Themes for SMF.

Uluku

Quote from: Diego Andrés on July 15, 2014, 12:37:33 PM
Busca en el archivo Sources/ManageSettings.php lo siguiente:


// ENotify
function ENotify($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

loadLanguage('ENotify');

$config_vars = array(
    array('check', 'enotify_replies'),
    array('check', 'enotify_pms'),
    array('int', 'enotify_refresh', 'postinput' => 'ms'),
    array('int', 'enotify_life', 'postinput' => 'ms'),
    array('int', 'enotify_exp', 'postinput' => $txt['hours']),
);
 
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify';
$context['settings_title'] = $txt['enotify_admin'];

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA!

redirectexit('action=admin;area=modsettings;sa=enotify');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN!

prepareDBSettingContext($config_vars);
}


Y asegúrate de que se encuentre antes de la etiqueta ?>

Gracias. Era eso  :P

Solucionado

Advertisement: