[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/administrator/components/com_admin/ -> admin.admin.php (source)

   1  <?php
   2  /**
   3  * @version $Id: admin.admin.php 4803 2006-08-28 16:10:28Z stingrey $
   4  * @package Joomla
   5  * @subpackage Admin
   6  * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
   7  * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // no direct access
  16  defined( '_VALID_MOS' ) or die( 'Restricted access' );
  17  require_once( $mainframe->getPath( 'admin_html' ) );
  18  
  19  switch ($task) {
  20      case 'clean_cache':
  21          mosCache::cleanCache( 'com_content' );
  22          mosRedirect( 'index2.php', 'Content caches cleaned' );
  23          break;
  24  
  25      case 'clean_all_cache':
  26          mosCache::cleanCache();
  27          mosRedirect( 'index2.php', 'All caches cleaned' );
  28          break;
  29  
  30      case 'redirect':
  31          $goto = strval( strtolower( mosGetParam( $_REQUEST, 'link' ) ) );
  32          if ($goto == 'null') {
  33              $msg = 'There is no link associated with this item';
  34              mosRedirect( 'index2.php?option=com_admin&task=listcomponents', $msg );
  35              exit();
  36          }
  37          $goto = str_replace( "'", '', $goto );
  38          mosRedirect( $goto );
  39          break;
  40  
  41      case 'listcomponents':
  42          HTML_admin_misc::ListComponents();
  43          break;
  44  
  45      case 'sysinfo':
  46          HTML_admin_misc::system_info( $version, $option );
  47          break;
  48  
  49      case 'changelog':
  50          HTML_admin_misc::changelog();
  51          break;
  52  
  53      case 'help':
  54          HTML_admin_misc::help();
  55          break;
  56  
  57      case 'version':
  58          HTML_admin_misc::version();
  59          break;
  60      
  61      case 'preview':
  62          HTML_admin_misc::preview();
  63          break;
  64  
  65      case 'preview2':
  66          HTML_admin_misc::preview( 1 );
  67          break;
  68  
  69      case 'cpanel':
  70      default:
  71          HTML_admin_misc::controlPanel();
  72          break;
  73  
  74  }
  75  ?>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics