Пример #1
0
function pass_setcountry($eventData)
{
    global $hui_mainstatus, $amp_locale, $env, $hui_page;
    $site_sets = new SiteSettings($env['db']);
    $site_sets->EditKey($env['currentuser'] . '-country', $eventData['country']);
    if ($env['currentuser'] == $env['currentsite']) {
        $site_sets->EditKey('sitecountry', $eventData['country']);
    }
    $hui_page->mArgs['javascript'] = 'parent.frames.sum.location.reload()';
    $hui_mainstatus->mArgs['status'] = $amp_locale->GetStr('countryset_status');
}
Пример #2
0
function pass_settheme($eventData)
{
    global $hui_mainstatus, $amp_locale, $hui_page, $env;
    $log = new Logger(AMP_LOG);
    if ($env['currentuser'] == $env['currentsite']) {
        $user = $key_name = 'sitetheme';
    } else {
        $key_name = $env['currentuser'] . '-theme';
    }
    $site_cfg = new SiteSettings($env['db']);
    $site_cfg->EditKey($key_name, $eventData['theme']);
    $env['hui']['theme']['name'] = $eventData['theme'];
    $env['hui']['theme']['handler'] = new HuiTheme($env['ampdb'], $eventData['theme']);
    header('Location: ' . build_events_call_string('', array(array('main', 'default', ''), array('pass', 'settheme2', ''))));
}
Пример #3
0
function pass_edit($eventData)
{
    global $env, $hui_mainstatus, $amp_locale;
    $site_sets = new SiteSettings($env['db']);
    $site_sets->EditKey('sitecompletename', $eventData['sitecompletename']);
    $site_sets->EditKey('siteaddressa', $eventData['siteaddressa']);
    $site_sets->EditKey('siteaddressb', $eventData['siteaddressb']);
    $site_sets->EditKey('sitetown', $eventData['sitetown']);
    $site_sets->EditKey('sitestate', $eventData['sitestate']);
    $site_sets->EditKey('sitezip', $eventData['sitezip']);
    $site_sets->EditKey('sitecountry', $eventData['sitecountry']);
    $site_sets->EditKey('sitefiscalcode', $eventData['sitefiscalcode']);
    $site_sets->EditKey('siteemail', $eventData['siteemail']);
    $site_sets->EditKey('sitephone', $eventData['sitephone']);
    $site_sets->EditKey('sitefax', $eventData['sitefax']);
    $site_sets->EditKey('sitelogo', $eventData['sitelogo']);
    $hui_mainstatus->mArgs['status'] = $amp_locale->GetStr('sitedataset_status');
}