function select_tpl() { $tpl = post('tpl'); $n = 'S_TPL_PATH'; $c = S_TPL_PATH; $v = 'templates/' . $tpl . '/'; edit_config($n, $c, $v); echo 1; }
$_POST['data']['setting']['site_url'] = $siteurl; if (isset($_POST['data']['multita'])) { $_POST['data']['setting']['site_description'] = pb_lang_merge($_POST['data']['multita']); if (!empty($_POST['data']['setting']['site_description'])) { $_POST['data']['setting']['site_description'] = str_replace($sp_search, $sp_replace, $_POST['data']['setting']['site_description']); } } if (!empty($_POST['data']['setting'])) { $updated = $setting->replace($_POST['data']['setting']); if ($updated) { $cache->writeCache("setting", "setting"); } } if ($updated) { if (!empty($_POST['data']['setting']['site_url']) && !pb_strcomp($_POST['data']['setting']['site_url'], $absolute_uri)) { edit_config(array("absolute_uri" => $_POST['data']['setting']['site_url'])); } flash("success", "setting.php?do=basic"); } else { flash(); } } if (isset($_POST['saveauth'])) { $updated = $setting->replace($_POST['data']['setting']); if ($updated) { $cache->writeCache("setting", "setting"); pheader("location:setting.php?do=auth"); } } if (isset($_POST['save_auth_secure'])) { $updated = $setting->replace($_POST['data']['setting']);
function set_session_method() { $val = intval(post('val')); edit_config('S_SESSION', S_SESSION, $val); echo 1; }
user_logout(); break; // The only case when we could possibly arrive here with a session created // and a "login" action is when the user refreshed the page. In that case, // we redraw the page with the last information saved in the session variables. // The only case when we could possibly arrive here with a session created // and a "login" action is when the user refreshed the page. In that case, // we redraw the page with the last information saved in the session variables. case 'login': redraw_page(); break; case 'view_logs': view_logs(); break; case 'edit_config': edit_config(); break; case 'edit_admins': edit_admins(); break; case 'add_admin': add_admin(); break; case 'remove_admin': remove_admin(); break; case 'push_changes': push_changes(); break; case 'create_user': create_user();