require_once "zenpage-admin-functions.php"; admin_securityChecks(ZENPAGE_NEWS_RIGHTS, currentRelativeURL()); $reports = array(); if (isset($_GET['bulkaction'])) { $reports[] = zenpageBulkActionMessage(sanitize($_GET['bulkaction'])); } if (isset($_POST['action'])) { XSRFdefender('checkeditems'); if ($_POST['checkallaction'] == 'noaction') { if (updateItemSortorder('categories', $reports)) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Sort order saved.") . "</p>"; } else { $reports[] = "<p class='notebox fade-message'>" . gettext("Nothing changed.") . "</p>"; } } else { $action = processZenpageBulkActions('Category'); bulkActionRedirect($action); } } if (isset($_GET['delete'])) { XSRFdefender('delete_category'); $reports[] = deleteCategory(sanitize($_GET['delete'])); } if (isset($_GET['hitcounter'])) { XSRFdefender('hitcounter'); $x = $_zp_zenpage->getCategory(sanitize_numeric($_GET['id'])); $obj = new ZenpageCategory($x['titlelink']); $obj->set('hitcounter', 0); $obj->save(); } if (isset($_GET['publish'])) {
/** * zenpage admin-categories.php * * @author Malte Müller (acrylian) * @package plugins * @subpackage zenpage */ define("OFFSET_PATH", 4); require_once dirname(dirname(dirname(__FILE__))) . '/admin-globals.php'; require_once "zenpage-admin-functions.php"; admin_securityChecks(ZENPAGE_NEWS_RIGHTS, currentRelativeURL(__FILE__)); $reports = array(); if (isset($_POST['processcheckeditems'])) { XSRFdefender('checkeditems'); processZenpageBulkActions('Category', $reports); updateItemSortorder('categories', $reports); } if (isset($_GET['delete'])) { XSRFdefender('delete_category'); $reports[] = deleteCategory($_GET['delete']); } if (isset($_GET['hitcounter'])) { XSRFdefender('hitcounter'); $x = $_zp_zenpage->getCategory(sanitize_numeric($_GET['id'])); $obj = new ZenpageCategory($x['titlelink']); $obj->set('hitcounter', 0); $obj->save(); } if (isset($_GET['publish'])) { XSRFdefender('update');
*/ define("OFFSET_PATH", 4); require_once dirname(dirname(dirname(__FILE__))) . '/admin-globals.php'; require_once "admin-functions.php"; admin_securityChecks(ZENPAGE_NEWS_RIGHTS, currentRelativeURL()); $reports = array(); if (isset($_GET['bulkaction'])) { $reports[] = zenpageBulkActionMessage(sanitize($_GET['bulkaction'])); } if (isset($_GET['deleted'])) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Article successfully deleted!") . "</p>"; } if (isset($_POST['checkallaction'])) { // true if apply is pressed XSRFdefender('checkeditems'); if ($action = processZenpageBulkActions('Article')) { bulkActionRedirect($action); } } if (isset($_GET['delete'])) { XSRFdefender('delete'); $msg = deleteZenpageObj(newArticle(sanitize($_GET['delete']), 'admin-news.php')); if (!empty($msg)) { $reports[] = $msg; } } // publish or un-publish page by click if (isset($_GET['publish'])) { XSRFdefender('update'); $obj = newArticle(sanitize($_GET['titlelink'])); $obj->setShow(sanitize_numeric($_GET['publish']));
if (isset($_GET['bulkaction'])) { $reports[] = zenpageBulkActionMessage(sanitize($_GET['bulkaction'])); } if (isset($_GET['deleted'])) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Article successfully deleted!") . "</p>"; } if (isset($_POST['update'])) { XSRFdefender('update'); if ($_POST['checkallaction'] == 'noaction') { if (updateItemSortorder('pages')) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Sort order saved.") . "</p>"; } else { $reports[] = "<p class='notebox fade-message'>" . gettext("Nothing changed.") . "</p>"; } } else { $action = processZenpageBulkActions('Page'); bulkActionRedirect($action); } } // remove the page from the database if (isset($_GET['delete'])) { XSRFdefender('delete'); $msg = deletePage(sanitize($_GET['delete'])); if (!empty($msg)) { $reports[] = $msg; } } // publish or un-publish page by click if (isset($_GET['publish'])) { XSRFdefender('update'); $obj = new ZenpagePage(sanitize($_GET['titlelink']));
* * @author Malte Müller (acrylian) * @package plugins * @subpackage zenpage */ define("OFFSET_PATH", 4); require_once dirname(dirname(dirname(__FILE__))) . '/admin-globals.php'; require_once "zenpage-admin-functions.php"; admin_securityChecks(ZENPAGE_NEWS_RIGHTS, currentRelativeURL(__FILE__)); $reports = array(); if (isset($_GET['deleted'])) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Article successfully deleted!") . "</p>"; } if (isset($_POST['processcheckeditems'])) { XSRFdefender('checkeditems'); processZenpageBulkActions('News', $reports); } if (isset($_GET['delete'])) { XSRFdefender('delete'); $msg = deleteArticle($_GET['delete']); if (!empty($msg)) { $reports[] = $msg; } } // publish or un-publish page by click if (isset($_GET['publish'])) { XSRFdefender('update'); $obj = new ZenpageNews(sanitize($_GET['titlelink'])); zenpagePublish($obj, sanitize_numeric($_GET['publish'])); } if (isset($_GET['skipscheduling'])) {
*/ define("OFFSET_PATH", 4); require_once dirname(dirname(dirname(__FILE__))) . '/admin-globals.php'; require_once "zenpage-admin-functions.php"; admin_securityChecks(ZENPAGE_NEWS_RIGHTS, currentRelativeURL()); $reports = array(); if (isset($_GET['bulkaction'])) { $reports[] = zenpageBulkActionMessage(sanitize($_GET['bulkaction'])); } if (isset($_GET['deleted'])) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Article successfully deleted!") . "</p>"; } if (isset($_POST['checkallaction'])) { // true if apply is pressed XSRFdefender('checkeditems'); if ($action = processZenpageBulkActions('News')) { bulkActionRedirect($action); } } if (isset($_GET['delete'])) { XSRFdefender('delete'); $msg = deleteArticle(sanitize($_GET['delete'])); if (!empty($msg)) { $reports[] = $msg; } } // publish or un-publish page by click if (isset($_GET['publish'])) { XSRFdefender('update'); $obj = new ZenpageNews(sanitize($_GET['titlelink'])); zenpagePublish($obj, sanitize_numeric($_GET['publish']));
* @author Malte Müller (acrylian) * @package plugins * @subpackage zenpage */ define("OFFSET_PATH", 4); require_once dirname(dirname(dirname(__FILE__))) . '/admin-globals.php'; require_once "zenpage-admin-functions.php"; admin_securityChecks(ZENPAGE_PAGES_RIGHTS, currentRelativeURL(__FILE__)); $reports = array(); if (isset($_GET['deleted'])) { $reports[] = "<p class='messagebox fade-message'>" . gettext("Article successfully deleted!") . "</p>"; } // update page sort order if (isset($_POST['update'])) { XSRFdefender('update'); processZenpageBulkActions('Page', $reports); updateItemSortorder('pages', $reports); } // remove the page from the database if (isset($_GET['delete'])) { XSRFdefender('delete'); $msg = deletePage($_GET['delete']); if (!empty($msg)) { $reports[] = $msg; } } // publish or un-publish page by click if (isset($_GET['publish'])) { XSRFdefender('update'); $obj = new ZenpagePage(sanitize($_GET['titlelink'])); zenpagePublish($obj, sanitize_numeric($_GET['publish']));