function SQLLog_getip() { $ip = GetVars('HTTP_CLIENT_IP', 'SERVER'); $ip = $ip == '' ? GetVars('HTTP_X_FORWARDED_FOR', 'SERVER') : $ip; $ip = $ip == '' ? GetVars('REMOTE_ADDR', 'SERVER') : $ip; return $ip; }
function AuditRecords_Main($article) { global $zbp; if (isset($_POST['AuditRecords_op'])) { $ar = new AuditRecords(); $ar->LogID = $article->ID; $ar->AuthorID = $zbp->user->ID; $ar->Logs = Trim(GetVars('AuditRecords_logs', 'POST')); $ar->Opeate = GetVars('AuditRecords_op', 'POST'); if (!$ar->Logs) { if ($ar->Opeate == -1) { $ar->Logs = "我有更新了,麻烦请审核一下。"; } if ($ar->Opeate == 0) { $ar->Logs = "不想写审核意见,还是不通过。"; } if ($ar->Opeate == 1) { $ar->Logs = "通过了通过了,真的没有意见。"; } } $ar->PostTime = time(); $ar->Save(); foreach ($GLOBALS['Filter_Plugin_AuditRecords_Submit'] as $fpname => &$fpsignal) { $fpname($article, $ar->Opeate, $ar->Logs); } } }
function passwordvisit_input_password(&$template) { global $zbp; if (isset($_POST['password']) && $_POST['password'] != '') { $article = $template->GetTags('article'); if ($article->Metas->passwordvisit_password != '') { if (GetVars('password', 'POST') == $article->Metas->passwordvisit_password) { return; } else { echo '<script type="text/javascript">alert("密码错误,请重新输入!");window.location="' . $article->Url . '";</script>'; die; } } else { if (GetVars('password', 'POST') == $zbp->Config('passwordvisit')->default_password) { return; } else { echo '<script type="text/javascript">alert("密码错误,请重新输入!");window.location="' . $article->Url . '";</script>'; die; } } } else { $article = $template->GetTags('article'); if ($zbp->Config('passwordvisit')->all_encrypt || $article->Metas->passwordvisit_enable_encrypt) { $article->Content = $zbp->Config('passwordvisit')->default_text . '<form id="form1" name="form1" method="post"><input name="password" type="password" width="100px" /><input name="submit" type="submit" value="查看"/></form>'; $template->SetTags('article', $article); } } }
/** * 获取参数值(可设置默认返回值) * @param string $name 数组key名 * @param string $type 默认为REQUEST * @param string $default 默认为null * @return mixed|null * @since 1.3.140614 */ function GetVarsByDefault($name, $type = 'REQUEST', $default = null) { $g = GetVars($name, $type); if ($g == null || $g == '') { return $default; } return $g; }
function AdminColor_Add_Button(&$leftmenus) { global $zbp; $hm = GetVars('admincolor_hm', 'COOKIE'); if ($hm == '1') { $leftmenus['nav_admincolor'] = MakeLeftMenu(5, $zbp->lang['AdminColor']['expandmenu'], "javascript:admincolor_showMenu();", "nav_admincolor", "aAdminColor", $zbp->host . "zb_users/plugin/AdminColor/arror2.png"); } else { $leftmenus['nav_admincolor'] = MakeLeftMenu(5, $zbp->lang['AdminColor']['closemenu'], "javascript:admincolor_hideMenu();", "nav_admincolor", "aAdminColor", $zbp->host . "zb_users/plugin/AdminColor/arror.png"); } }
function wearingtheme_index_begin() { global $zbp; global $usersdir; $app = new App(); $theme = GetVars('theme', 'GET'); if ($theme == '') { $theme = GetVars('theme', 'COOKIE'); } $dir = $usersdir . 'theme/' . $theme; if ($theme == '') { return; } if (!is_dir($dir)) { return; } if (!$app->LoadInfoByXml('theme', $theme)) { return; } $zbp->Config('system')->ZC_BLOG_THEME = $theme; $zbp->option['ZC_BLOG_THEME'] = $theme; $zbp->activeapps[0] = $theme; foreach ($app->GetCssFiles() as $key => $value) { $value = basename($value, '.css'); $zbp->Config('system')->ZC_BLOG_CSS = $value; $zbp->option['ZC_BLOG_CSS'] = $value; break; } if (is_readable($filename = $dir . '/include.php')) { require $filename; if (isset($GLOBALS['plugins'][$theme])) { $func_name = $GLOBALS['plugins'][$theme]; if (function_exists($func_name)) { $func_name(); } } } $zbp->LoadTemplate(); $zbp->MakeTemplatetags(); $zbp->template = $zbp->PrepareTemplate(); setcookie('theme', $theme, time() + 24 * 60 * 60); /* TODO: 一、安全问题: 1. 主题任意函数内包含危害服务器安全的代码 2. 主题任意函数内包含危害其它主题的代码(比如new ZipArchive然后POST到新的服务器) 二、主题从APP上传到theme */ }
function api_zbp_load_pre() { // Check URL first global $bloghost; global $apiRealRouteUrl; global $zbp; $requestUri = str_replace('index.php?', '', GetVars('HTTP_HOST', 'SERVER') . GetVars('REQUEST_URI', 'SERVER')); $removedHttpHost = preg_replace('/^http.+\\/\\//', '', $bloghost) . 'zb_system/api/'; $apiRealRouteUrl = str_replace($removedHttpHost, '', $requestUri); // Now we know that this is API Request, so remove Cookie. // The verification shoule be in API Route. //$_COOKIE['username'] = ""; //$_COOKIE['password'] = ""; API::init(); }
function Totoro_Action_Blockip() { global $zbp; global $Totoro; $id = GetVars('id', 'GET'); $id = (int) $id; if ($id <= 0) { return; } $comment = $zbp->GetCommentByID($id); if ($comment->ID <= 0) { return; } $Totoro->filter_ip($comment->IP, true); }
function Totoro_Cmd_Begin() { global $zbp; if (GetVars('act', 'GET') == 'CommentChk') { if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } $id = (int) GetVars('id', 'GET'); $ischecking = (bool) GetVars('ischecking', 'GET'); if ($ischecking) { Totoro_init(); global $Totoro; $Totoro->add_black_list($id); } } }
function api_route_login_function() { global $zbp; $originalString = trim(GetVars('HTTP_AUTHORIZATION', 'SERVER')); $originalArray = explode(' ', $originalString); if (strtoupper($originalArray[0]) !== "BASIC" || count($originalArray) !== 2) { return false; } $authString = base64_decode($originalArray[1]); $authArray = explode(':', $authString); if (count($authArray) !== 2) { return false; } $key = $authArray[0]; $secret = $authArray[1]; API::$User->login($key, $secret); }
$mod->HtmlID = GetVars('filename', 'GET'); $mod->Source = 'theme'; if ($mod->FileName) { $mod->Content = file_get_contents($zbp->usersdir . 'theme/' . $zbp->theme . '/include/' . $mod->FileName . '.php'); } } } elseif (isset($_GET['filename'])) { $array = $zbp->GetModuleList(array('*'), array(array('=', 'mod_FileName', GetVars('filename', 'GET'))), null, array(1), null); if (count($array) == 0) { $zbp->ShowError(69); } $mod = $array[0]; //'$mod= } else { if (isset($_GET['id'])) { $modid = (int) GetVars('id', 'GET'); } else { $modid = 0; } $mod = $zbp->GetModuleByID($modid); } if ($mod->Type == 'ul') { $mod->Content = str_replace("</li>", "</li>\r\n", $mod->Content); } $islock = ''; if ($mod->Source == 'system' || $mod->Source == 'theme') { $islock = 'readonly="readonly"'; } if ($mod->Source == 'theme' && $mod->FileName == '') { $islock = ''; $mod->Name = 'newmodule';
die; } if (!$zbp->CheckPlugin('STACentre')) { $zbp->ShowError(48); die; } $blogtitle = '静态管理中心'; if (count($_POST) > 0) { $zbp->option['ZC_STATIC_MODE'] = trim(GetVars('ZC_STATIC_MODE', 'POST')); $zbp->option['ZC_ARTICLE_REGEX'] = trim(GetVars('ZC_ARTICLE_REGEX', 'POST')); $zbp->option['ZC_PAGE_REGEX'] = trim(GetVars('ZC_PAGE_REGEX', 'POST')); $zbp->option['ZC_INDEX_REGEX'] = trim(GetVars('ZC_INDEX_REGEX', 'POST')); $zbp->option['ZC_CATEGORY_REGEX'] = trim(GetVars('ZC_CATEGORY_REGEX', 'POST')); $zbp->option['ZC_TAGS_REGEX'] = trim(GetVars('ZC_TAGS_REGEX', 'POST')); $zbp->option['ZC_DATE_REGEX'] = trim(GetVars('ZC_DATE_REGEX', 'POST')); $zbp->option['ZC_AUTHOR_REGEX'] = trim(GetVars('ZC_AUTHOR_REGEX', 'POST')); $zbp->SaveOption(); $zbp->AddBuildModule('archives'); $zbp->AddBuildModule('tags'); $zbp->AddBuildModule('authors'); $zbp->AddBuildModule('previous'); $zbp->AddBuildModule('catalog'); $zbp->AddBuildModule('navbar'); $zbp->BuildModule(); $zbp->SetHint('good'); if ($zbp->option['ZC_STATIC_MODE'] == 'REWRITE' && strpos($zbp->option['ZC_ARTICLE_REGEX'], '{%host%}index.php') === false) { Redirect('./list.php'); } Redirect('./main.php'); } $ua = array('ZC_ARTICLE_REGEX' => array('{%host%}?id={%id%}', '{%host%}index.php/post/{%id%}.html', '{%host%}post/{%id%}.html', '{%host%}post/{%alias%}.html', '{%host%}{%year%}/{%month%}/{%id%}/', '{%host%}{%category%}/{%alias%}'), 'ZC_PAGE_REGEX' => array('{%host%}?id={%id%}', '{%host%}index.php/{%id%}.html', '{%host%}{%id%}.html', '{%host%}{%alias%}.html', '{%host%}{%alias%}/', '{%host%}{%alias%}'), 'ZC_INDEX_REGEX' => array('{%host%}?page={%page%}', '{%host%}index.php/page_{%page%}.html', '{%host%}page_{%page%}.html', '{%host%}page_{%page%}/', '{%host%}page_{%page%}'), 'ZC_CATEGORY_REGEX' => array('{%host%}?cate={%id%}&page={%page%}', '{%host%}index.php/category-{%id%}_{%page%}.html', '{%host%}category-{%id%}_{%page%}.html', '{%host%}category-{%alias%}_{%page%}.html', '{%host%}category/{%alias%}/{%page%}/', '{%host%}category/{%id%}/{%page%}'), 'ZC_TAGS_REGEX' => array('{%host%}?tags={%id%}&page={%page%}', '{%host%}index.php/tags-{%id%}_{%page%}.html', '{%host%}tags-{%id%}_{%page%}.html', '{%host%}tags-{%alias%}_{%page%}.html'), 'ZC_DATE_REGEX' => array('{%host%}?date={%date%}&page={%page%}', '{%host%}index.php/date-{%date%}_{%page%}.html', '{%host%}date-{%date%}_{%page%}.html', '{%host%}post/{%date%}_{%page%}.html'), 'ZC_AUTHOR_REGEX' => array('{%host%}?auth={%id%}&page={%page%}', '{%host%}index.php/author-{%id%}_{%page%}.html', '{%host%}author-{%id%}_{%page%}.html', '{%host%}author/{%id%}/{%page%}/'));
if(isset($_SESSION['logdebug']) && $_SESSION['logdebug']==1) { error_reporting(E_ALL); } else { error_reporting(E_ERROR); } include_once "classes.php"; ini_set('upload_max_filesize',8000000); if(isset($_REQUEST['act'])) $act = $_REQUEST['act']; if(isset($_REQUEST['subact'])) $subact = $_REQUEST['subact']; if(isset($_REQUEST['id'])) $id = (int)$_REQUEST['id']; else $id = 0; if(isset($_REQUEST['start'])) $start = (int)$_REQUEST['start']; else $start = 0; if(!isset($act)) $act="none"; if(!isset($subact)) $subact="none"; $varsline = GetVars(); include "modules/workmodules/work_contacts.php"; include "modules/workmodules/work_basket.php"; include "modules/workmodules/work_cabinet.php"; include "modules/workmodules/work_comments.php"; ?>
function CheckValidCode($vaidcode, $id = '') { foreach ($GLOBALS['Filter_Plugin_Zbp_CheckValidCode'] as $fpname => &$fpsignal) { return $fpname($vaidcode, $id); //* } $original = GetVars('zbpvalidcode' . md5($this->guid . $id), 'COOKIE'); if (md5($this->guid . date("Ymd") . $vaidcode) == $original) { return true; } }
<?php require '../../../zb_system/function/c_system_base.php'; require '../../../zb_system/function/c_system_admin.php'; require dirname(__FILE__) . '/function.php'; $zbp->Load(); $action = 'root'; if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } if (!$zbp->CheckPlugin('AppCentre')) { $zbp->ShowError(48); die; } if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0) { if (is_uploaded_file($_FILES[$key]['tmp_name'])) { $tmp_name = $_FILES[$key]['tmp_name']; $name = $_FILES[$key]['name']; $xml = file_get_contents($tmp_name); if (App::UnPack($xml)) { $zbp->SetHint('good', '上传APP并解压成功!'); Redirect($_SERVER["HTTP_REFERER"]); } else { $zbp->SetHint('bad', $zbp->lang['error']['64']); Redirect($_SERVER["HTTP_REFERER"]);
$zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=ModuleMng'); break; case 'ModuleMng': Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'SettingMng': Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'SettingSav': if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } SaveSetting(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=SettingMng'); break; case 'ajax': foreach ($GLOBALS['Filter_Plugin_Cmd_Ajax'] as $fpname => &$fpsignal) { $fpname(GetVars('src', 'GET')); } break; default: # code... break; }
$zbp->Config('AppCentre')->username=GetVars("app_username"); $zbp->Config('AppCentre')->password=$s; $zbp->SaveConfig('AppCentre'); $zbp->SetHint('good','您已成功登录"应用中心"商城.'); Redirect('./client.php'); die; }else{ $zbp->SetHint('bad','应用中心帐号或密码错误.'); Redirect('./client.php'); die; } } if(GetVars('act')=='logout'){ $zbp->Config('AppCentre')->username=''; $zbp->Config('AppCentre')->password=''; $zbp->SaveConfig('AppCentre'); $zbp->SetHint('good','您已退出"应用中心"商城.'); Redirect('./main.php'); die; } require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle;?></div> <div class="SubMenu"><?php AppCentre_SubMenus(9);?></div>
<?php require '../../../zb_system/function/c_system_base.php'; require '../../../zb_system/function/c_system_admin.php'; $zbp->Load(); $action = 'root'; if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } if (!$zbp->CheckPlugin('Totoro')) { $zbp->ShowError(48); die; } Totoro_init(); $blogtitle = 'Totoro反垃圾评论'; foreach ($Totoro->config_array as $type_name => &$type_value) { foreach ($type_value as $name => &$value) { $config_name = $type_name . '_' . $name; $value = GetVars('TOTORO_' . $config_name, 'POST'); if ($type_name == 'BLACK_LIST') { $value = urldecode($value); } $zbp->Config('Totoro')->{$config_name} = $value; echo $config_name . '<br/>' . $value; } } $zbp->SaveConfig('Totoro'); $zbp->SetHint('good'); Redirect('main.php');
* @version 2.0 2013-07-05 */ require '../function/c_system_base.php'; require '../function/c_system_admin.php'; $zbp->Load(); $action = 'TagEdt'; if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } $blogtitle = $lang['msg']['tag_edit']; require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; $tagid = null; if (isset($_GET['id'])) { $tagid = (int) GetVars('id', 'GET'); } else { $tagid = 0; } $tag = $zbp->GetTagByID($tagid); ?> <div id="divMain"> <div class="divHeader2"><?php echo $lang['msg']['tag_edit']; ?> </div> <div class="SubMenu"></div> <div id="divMain2" class="edit tag_edit"> <form id="edit" name="edit" method="post" action="#"> <input id="edtID" name="ID" type="hidden" value="<?php
Set oUser=New TUser oComment.Content=Request.Form("string") oComment.Author=Request.Form("name") oComment.HomePage=Request.Form("url") oComment.IP="0.0.0.0" Call Totoro_cComment(oComment,oUser,True) Response.Write Replace(TransferHTML(Totoro_DebugData,"[html-format]"),vbcrlf,"<br/>") Response.End End If */ if (GetVars('type', 'GET') == 'test') { $comment = new Comment(); $comment->IP = GetVars('REMOTE_ADDR', 'SERVER'); $comment->Content = GetVars('string', 'POST'); // var_dump($comment); echo "\n" . 'MAX_SCORE: ' . $Totoro->get_score($comment, TRUE); exit; } require $blogpath . 'zb_system/admin/admin_header.php'; ?> <style type="text/css"> .text-config { width: 95% } </style> <?php require $blogpath . 'zb_system/admin/admin_top.php'; ?>
if (GetVars('act', 'GET') == 'MemberEdt') { $action = 'MemberEdt'; } if (GetVars('act', 'GET') == 'MemberNew') { $action = 'MemberNew'; } if (!$zbp->CheckRights($action)) { $zbp->ShowError(6, __FILE__, __LINE__); die; } $blogtitle = $lang['msg']['member_edit']; require ZBP_PATH . 'zb_system/admin/admin_header.php'; require ZBP_PATH . 'zb_system/admin/admin_top.php'; $memberid = null; if (isset($_GET['id'])) { $memberid = (int) GetVars('id', 'GET'); } else { $memberid = 0; } if (!$zbp->CheckRights('MemberAll')) { if ((int) $memberid != (int) $zbp->user->ID) { $zbp->ShowError(6, __FILE__, __LINE__); } } $member = $zbp->GetMemberByID($memberid); ?> <div id="divMain"> <div class="divHeader2"> <?php echo $lang['msg']['member_edit']; ?>
if (GetVars('act') == 'shoplogin') { $s = Server_Open('shopvaild'); if ($s) { $zbp->Config('AppCentre')->shop_username = GetVars("shop_username"); $zbp->Config('AppCentre')->shop_password = $s; $zbp->SaveConfig('AppCentre'); $zbp->SetHint('good', '您已成功登录"应用中心"商城.'); Redirect('./client.php'); die; } else { $zbp->SetHint('bad', '购买者账户名或密码错误.'); Redirect('./client.php'); die; } } if (GetVars('act') == 'shoplogout') { $zbp->Config('AppCentre')->shop_username = ''; $zbp->Config('AppCentre')->shop_password = ''; $zbp->SaveConfig('AppCentre'); $zbp->SetHint('good', '您已退出"应用中心"商城.'); Redirect('./main.php'); die; } require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle; ?>
$app->description=trim($_POST['app_description']); $app-> SaveInfoByXml(); $zbp->SetHint('good', '提交成功!<a href="submit.php?type=plugin&id=' . $app->id . '">现在立刻上传到应用中心!</a>'); Redirect($_SERVER["HTTP_REFERER"]); } require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle;?></div> <div class="SubMenu"><?php AppCentre_SubMenus(GetVars('id','GET')==''?5:'');?></div> <div id="divMain2"> <form method="post" action=""> <table border="1" width="100%" cellspacing="0" cellpadding="0" class="tableBorder tableBorder-thcenter"> <tr> <th width='28%'> </th> <th> </th> </tr> <tr> <td><p><b>· 插件ID</b><br/> <span class="note"> 插件ID为插件的目录名,且不能重复.ID名只能用字母数字和下划线的组合.</span></p></td> <td><p> <input id="app_id" name="app_id" style="width:550px;" type="text" value="<?php echo $app->id;?>" <?php if($app->id)echo 'readonly="readonly"';?> /> </p></td> </tr>
function SetSidebar() { global $zbp; $zbp->option['ZC_SIDEBAR_ORDER'] = trim(GetVars('sidebar', 'POST'), '|'); $zbp->option['ZC_SIDEBAR2_ORDER'] = trim(GetVars('sidebar2', 'POST'), '|'); $zbp->option['ZC_SIDEBAR3_ORDER'] = trim(GetVars('sidebar3', 'POST'), '|'); $zbp->option['ZC_SIDEBAR4_ORDER'] = trim(GetVars('sidebar4', 'POST'), '|'); $zbp->option['ZC_SIDEBAR5_ORDER'] = trim(GetVars('sidebar5', 'POST'), '|'); $zbp->SaveOption(); }
Redirect('./update.php?updatedb'); } if (GetVars('restore', 'GET') != '') { $file = base64_decode(GetVars('restore', 'GET')); $url = APPCENTRE_SYSTEM_UPDATE . '?' . substr(ZC_BLOG_VERSION, -6, 6) . '\\' . $file; $f = AppCentre_GetHttpContent($url); $file = $zbp->path . str_replace('\\', '/', $file); $dir = dirname($file); if (!file_exists($dir . '/')) { @mkdir($dir, 0755, true); } @file_put_contents($file, $f); echo '<img src="' . $zbp->host . 'zb_system/image/admin/ok.png" width="16" alt="" />'; die; } if (GetVars('check', 'GET') == 'now') { $r = AppCentre_GetHttpContent(APPCENTRE_SYSTEM_UPDATE . array_search(ZC_BLOG_VERSION, $zbpvers) . '.xml'); //file_put_contents($zbp->usersdir . 'cache/now.xml', $r); $nowxml = $r; $checkbegin = true; } require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; $newversion = AppCentre_GetHttpContent(APPCENTRE_SYSTEM_UPDATE . ($zbp->Config('AppCentre')->checkbeta == true ? '?beta' : '')); ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle; ?> </div>
function Pad_Search() { global $zbp, $lang; Pad_Pre(); $action = 'search'; if (!$zbp->CheckRights($action)) { Redirect('?mod=pad'); } $article = new Post(); $article->Title = $lang['msg']['search'] . '“' . GetVars('q', 'GET') . '”'; $article->IsLock = true; $article->Type = ZC_POST_TYPE_PAGE; $w = array(); $w[] = array('=', 'log_Type', '0'); $s = trim(GetVars('q', 'GET')); if ($s) { $w[] = array('search', 'log_Content', 'log_Intro', 'log_Title', $s); } else { Redirect('./'); } $array = $zbp->GetArticleList('', $w, array('log_PostTime' => 'DESC'), array($zbp->searchcount), null); foreach ($array as $a) { $article->Content .= '<p><br/>' . $a->Title . '<br/>'; $article->Content .= '<a href="' . $a->Url . '">' . $a->Url . '</a></p>'; } $zbp->template->SetTags('title', $article->Title); $zbp->template->SetTags('article', $article); $zbp->template->SetTags('type', $article->type = 0 ? 'article' : 'page'); $zbp->template->SetTemplate($article->Template); $zbp->template->Display(); die; }
<?php require '../../../zb_system/function/c_system_base.php'; require '../../../zb_system/function/c_system_admin.php'; $zbp->Load(); $action = 'root'; if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } if (!$zbp->CheckPlugin('clinic')) { $zbp->ShowError(48); die; } require 'clinic.php'; $module = GetVars('module', 'GET'); $module = isset($clinic->modules[$module]) ? $clinic->modules[$module] : NULL; if (!$module) { exit(json_encode(array("err" => "no this module"))); } $func = GetVars('function', 'POST'); $param = GetVars('param', 'POST'); $class = $clinic->load_module($module['id']); $class->{$func}($param); ob_clean(); echo '['; echo implode(',', $class->output_json); echo ']';
require $blogpath . 'zb_system/admin/admin_top.php'; ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle; ?> </div> <div class="SubMenu"><?php AppCentre_SubMenus(GetVars('method', 'GET') == 'check' ? 2 : 1); ?> </div> <div id="divMain2"> <?php $method = GetVars('method', 'GET'); if (!$method) { $method = 'view'; } Server_Open($method); ?> <script type="text/javascript"> window.plug_list = "<?php echo AddNameInString($option['ZC_USING_PLUGIN_LIST'], $option['ZC_BLOG_THEME']); ?> "; window.signkey = '<?php echo $zbp->GetToken(); ?> '; </script>
$blogtitle = 'WhitePage主题配置'; if (count($_POST) > 0) { if (GetVars('pagetype', 'POST')) { $zbp->Config('WhitePage')->custom_pagetype = GetVars('pagetype', 'POST'); } if (GetVars('pagewidth', 'POST')) { $zbp->Config('WhitePage')->custom_pagewidth = GetVars('pagewidth', 'POST'); } if (GetVars('headtitle', 'POST')) { $zbp->Config('WhitePage')->custom_headtitle = GetVars('headtitle', 'POST'); } if (GetVars('bgcolor', 'POST')) { $zbp->Config('WhitePage')->custom_bgcolor = GetVars('bgcolor', 'POST'); } if (GetVars('text_indent', 'POST') !== false) { $zbp->Config('WhitePage')->text_indent = GetVars('text_indent', 'POST'); } $zbp->SaveConfig('WhitePage'); $zbp->SetHint('good'); Redirect($_SERVER["HTTP_REFERER"]); } require $blogpath . 'zb_system/admin/admin_header.php'; require $blogpath . 'zb_system/admin/admin_top.php'; $percolors = array("ffffff", "ffa07a", "8fbc8b", "a9a9a9", "6699ff", "ee82ee", "9370db", "ff7f50", "deb887", "ffe4c4", "7fffd4", "ffc0cb", "bdb76b", "d3d3d3", "eee8aa", "98fb98", "ffb6c1", "eeeeee", "add8e6", "e9967a"); ?> <link href="source/colpick.css" rel="stylesheet" /> <script src="source/colpick.js" type="text/javascript"></script> <style> input.colorpicker { border-right-width: 25px;
<?php /** * Z-Blog with PHP * @author * @copyright (C) RainbowSoft Studio * @version */ require './zb_system/function/c_system_base.php'; zbp_index_redirect_install(); $zbp->Load(); foreach ($GLOBALS['Filter_Plugin_Index_Begin'] as $fpname => &$fpsignal) { $fpname(); } $url = GetRequestUri(); if ($url == $cookiespath || $url == $cookiespath . 'index.php') { ViewList(null, null, null, null, null); } elseif (isset($_GET['id']) || isset($_GET['alias'])) { ViewPost(GetVars('id', 'GET'), GetVars('alias', 'GET')); } elseif (isset($_GET['page']) || isset($_GET['cate']) || isset($_GET['auth']) || isset($_GET['date']) || isset($_GET['tags'])) { ViewList(GetVars('page', 'GET'), GetVars('cate', 'GET'), GetVars('auth', 'GET'), GetVars('date', 'GET'), GetVars('tags', 'GET')); } else { ViewAuto($url); } foreach ($GLOBALS['Filter_Plugin_Index_End'] as $fpname => &$fpsignal) { $fpname(); } RunTime();