コード例 #1
0
ファイル: getstory.php プロジェクト: schnurli13/Storytelling
     addBranchAsChild($localhost, $user, $pw, $db, $storyID);
 } else {
     if ($functionName == "checkIFParent") {
         $x = filter_input(INPUT_GET, 'IDs');
         //vl unique machn
         $movingIDs = explode(",", $x);
         $ID01 = $movingIDs[0];
         $ID02 = filter_input(INPUT_GET, 'ID');
         $found = checkIFparent($ID02, $ID01, false, $storyID);
         echo json_encode($found);
     } else {
         if ($functionName == "getContent") {
             getContent($storyID);
         } else {
             if ($functionName == "saveContent") {
                 saveContent($storyID);
             } else {
                 if ($functionName == "getTitle") {
                     getTitle($storyID);
                 } else {
                     if ($functionName == "getStoryDetails") {
                         getStoryDetails($storyID);
                     } else {
                         if ($functionName == "saveStory") {
                             saveStory($storyID);
                         } else {
                             if ($functionName == "addConnection") {
                                 addConnection($localhost, $user, $pw, $db, $storyID);
                             }
                         }
                     }
コード例 #2
0
ファイル: content.php プロジェクト: cwcw/cms
     break;
 case 'archivesection':
     showArchiveSection($id, $gid, $access, $pop, $option);
     break;
 case 'archivecategory':
     showArchiveCategory($id, $gid, $access, $pop, $option, $now);
     break;
 case 'edit':
     editItem($id, $gid, $access, 0, $task, $Itemid);
     break;
 case 'new':
     editItem(0, $gid, $access, $sectionid, $task, $Itemid);
     break;
 case 'save':
     mosCache::cleanCache('com_content');
     saveContent($access);
     break;
 case 'cancel':
     cancelContent($access);
     break;
 case 'emailform':
     emailContentForm($id);
     break;
 case 'emailsend':
     emailContentSend($id);
     break;
 case 'vote':
     recordVote($url, $user_rating, $cid, $database);
     break;
 default:
     $cache->call('showBlogSection', 0, $gid, $access, $pop, $now);
コード例 #3
0
ファイル: admin.content.php プロジェクト: cwcw/cms
 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':
     toggleFrontPage($cid, $sectionid, $option);
     break;
 case 'archive':
     changeContent($cid, -1, $sectionid, $option);
コード例 #4
0
ファイル: content.php プロジェクト: jwest00724/Joomla-1.0
     break;
 case 'archivecategory':
     // Itemid is a dummy value to cater for caching
     $cache->call('showArchiveCategory', $id, $gid, $access, $pop, $option, $year, $month, $module, $limit, $limitstart, $Itemid);
     break;
 case 'edit':
     editItem($id, $gid, $access, 0, $task, $Itemid);
     break;
 case 'new':
     editItem(0, $gid, $access, $sectionid, $task, $Itemid);
     break;
 case 'save':
 case 'apply':
 case 'apply_new':
     mosCache::cleanCache('com_content');
     saveContent($access, $task);
     break;
 case 'cancel':
     cancelContent($access);
     break;
 case 'emailform':
     emailContentForm($id, $gid);
     break;
 case 'emailsend':
     emailContentSend($id, $gid);
     break;
 case 'vote':
     recordVote();
     break;
 default:
     header("HTTP/1.0 404 Not Found");
コード例 #5
0
ファイル: admin.saasy.php プロジェクト: bizanto/Hooked
<?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);
}
コード例 #6
0
 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;
 case 'unpublish':
     changeContent($cid, 0, $option);
     break;
 case 'toggle_frontpage':
     toggleFrontPage($cid, $sectionid, $option);
     break;
 case 'archive':
     changeContent($cid, -1, $option);