case 'ArticlePst': PostArticle(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=ArticleMng'); break; case 'PageEdt': Redirect('admin/edit.php?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'PageDel': if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } DelPage(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=PageMng'); break; case 'PageMng': Redirect('admin/?' . GetVars('QUERY_STRING', 'SERVER')); break; case 'PagePst': PostPage(); $zbp->BuildModule(); $zbp->SaveCache(); $zbp->SetHint('good'); Redirect('cmd.php?act=PageMng'); break;
function zbp_delPage($id) { $strXML = '<methodResponse><params><param><value><boolean>$%#1#%$</boolean></value></param></params></methodResponse>'; $_GET['id'] = $id; if (DelPage() == true) { $strXML = str_replace("\$%#1#%\$", 1, $strXML); echo $strXML; } else { $zbp->ShowError(0, __FILE__, __LINE_); } }