deleteForm(); break; case 'deleteMovie': deleteMovie(); break; case 'deleteNews': deleteNews(); break; case 'deletePolicy': deletePolicy(); break; case 'editApple': editApple(); break; case 'editContent': editContent(); break; case 'editForm': editForm(); break; case 'editNews': editNews(); break; case 'editPolicy': editPolicy(); break; case 'forms': forms(); break; case 'fundraising': include '../view/fundraising.php';
<?php defined('_JEXEC') or die('Restricted Access'); require_once JApplicationHelper::getPath('admin_html'); JTable::addIncludePath(JPATH_COMPONENT . DS . 'tables'); switch ($task) { case 'edit': editContent($option); break; case 'apply': case 'save': saveContent($option, $task); break; default: showContent($option); break; } function _displayError($row) { echo "<script type=\"text/javascript\"> alert('" . $row->getError() . "'); window.history.go(-1);</script>\n"; exit; } function editContent($option) { $row =& JTable::getInstance('saasycontent', 'Table'); $cid = JRequest::getVar('cid', array(0), '', 'array'); $id = $cid[0]; $row->load($id); $db = JFactory::getDBO(); HTML_saasy::editContent($row, $option); }
if (!is_array($cid)) { $cid = array(0); } switch ($task) { case 'clean_cache': mosCache::cleanCache('com_content'); mosRedirect('index2.php', $adminLanguage->A_COMP_CONTENT_CACHE); break; case 'new': editContent(0, $sectionid, $option); break; case 'edit': editContent($id, $sectionid, $option); break; case 'editA': editContent($cid[0], '', $option); break; case 'save': mosCache::cleanCache('com_content'); saveContent($sectionid, $option); break; case 'remove': removeContent($cid, $sectionid, $option); break; case 'publish': changeContent($cid, 1, $sectionid, $option); break; case 'unpublish': changeContent($cid, 0, $sectionid, $option); break; case 'toggle_frontpage':
* See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_VALID_MOS') or die('Restricted access'); require_once $mainframe->getPath('admin_html'); $sectionid = intval(mosGetParam($_REQUEST, 'sectionid', 0)); $cid = josGetArrayInts('cid'); switch ($task) { case 'new': editContent(0, $sectionid, $option); break; case 'edit': editContent($id, $sectionid, $option); break; case 'editA': editContent(intval($cid[0]), '', $option); break; case 'go2menu': case 'go2menuitem': case 'resethits': case 'menulink': case 'apply': case 'save': saveContent($sectionid, $task); break; case 'remove': removeContent($cid, $sectionid, $option); break; case 'publish': changeContent($cid, 1, $option); break;