예제 #1
0
파일: yaps.php 프로젝트: alexpagnoni/yaps
function action_setsettings($eventData)
{
    global $env, $gStatus, $gYaps_locale;
    $mod_settings = new ModuleConfig($env['ampdb'], 'yaps');
    $mod_settings->SetKey('gs_exec', $eventData['gsexec']);
    $gStatus = $gYaps_locale->GetStr('settingsset_status');
}
예제 #2
0
function pass_settheme($eventData)
{
    global $hui_mainstatus, $amp_locale, $hui_page, $gEnv;
    $log = new Logger(AMP_LOG);
    $mod_cfg = new ModuleConfig($gEnv['root']['db'], 'ampoliros');
    $mod_cfg->SetKey('hui-root-theme', $eventData['theme']);
    $gEnv['hui']['theme']['name'] = $eventData['theme'];
    $gEnv['hui']['theme']['handler'] = new HuiTheme($gEnv['root']['db'], $eventData['theme']);
    $log->LogEvent('Ampoliros', 'Changed Ampoliros theme', LOGGER_NOTICE);
    header('Location: ' . build_events_call_string('', array(array('main', 'themes', ''), array('pass', 'settheme2', ''))));
}