国外免费开源的内容管理系统

源代码在线查看: admin.content.php

软件大小: 3234 K
上传用户: xieqinplay
关键词: 开源 管理系统
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				/**
				* @version		$Id: admin.content.php 9764 2007-12-30 07:48:11Z ircmaxell $
				* @package		Joomla
				* @subpackage	Content
				* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
				* @license		GNU/GPL, see LICENSE.php
				* Joomla! is free software. This version may have been modified pursuant
				* to the GNU General Public License, and as distributed it includes or
				* is derivative of works licensed under the GNU General Public License or
				* other free or open source software licenses.
				* See COPYRIGHT.php for copyright notices and details.
				*/
				
				// no direct access
				defined('_JEXEC') or die('Restricted access');
				
				require_once( JPATH_COMPONENT.DS.'controller.php' );
				require_once( JPATH_COMPONENT.DS.'helper.php' );
				require_once (JApplicationHelper::getPath('admin_html'));
				
				// Set the helper directory
				JHTML::addIncludePath( JPATH_COMPONENT.DS.'helper' );
				
				$controller = new ContentController();
				$task = JRequest::getCmd('task');
				switch (strtolower($task))
				{
					case 'element':
					case 'wizard':
						$controller->execute( $task );
						$controller->redirect();
						break;
				
					case 'add'  :
					case 'new'  :
						ContentController::editContent(false);
						break;
				
					case 'edit' :
						ContentController::editContent(true);
						break;
				
					case 'go2menu' :
					case 'go2menuitem' :
					case 'resethits' :
					case 'menulink' :
					case 'apply' :
					case 'save' :
						ContentController::saveContent();
						break;
				
					case 'remove' :
						ContentController::removeContent();
						break;
				
					case 'publish' :
						ContentController::changeContent(1);
						break;
				
					case 'unpublish' :
						ContentController::changeContent(0);
						break;
				
					case 'toggle_frontpage' :
						ContentController::toggleFrontPage();
						break;
				
					case 'archive' :
						ContentController::changeContent(-1);
						break;
				
					case 'unarchive' :
						ContentController::changeContent(0);
						break;
				
					case 'cancel' :
						ContentController::cancelContent();
						break;
				
					case 'orderup' :
						ContentController::orderContent(-1);
						break;
				
					case 'orderdown' :
						ContentController::orderContent(1);
						break;
				
					//case 'showarchive' :
					//	JContentController::viewArchive();
					//	break;
				
					case 'movesect' :
						ContentController::moveSection();
						break;
				
					case 'movesectsave' :
						ContentController::moveSectionSave();
						break;
				
					case 'copy' :
						ContentController::copyItem();
						break;
				
					case 'copysave' :
						ContentController::copyItemSave();
						break;
				
					case 'accesspublic' :
						ContentController::accessMenu(0);
						break;
				
					case 'accessregistered' :
						ContentController::accessMenu(1);
						break;
				
					case 'accessspecial' :
						ContentController::accessMenu(2);
						break;
				
					case 'saveorder' :
						ContentController::saveOrder();
						break;
				
					case 'preview' :
						ContentController::previewContent();
						break;
				
					case 'ins_pagebreak' :
						ContentController::insertPagebreak();
						break;
				
					default :
						ContentController::viewContent();
						break;
				}			

相关资源