[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/ -> index.php (source)

   1  <?php
   2  #CMS - CMS Made Simple
   3  #(c)2004 by Ted Kulp (wishy@users.sf.net)
   4  #This project's homepage is: http://cmsmadesimple.sf.net
   5  #
   6  #This program is free software; you can redistribute it and/or modify
   7  #it under the terms of the GNU General Public License as published by
   8  #the Free Software Foundation; either version 2 of the License, or
   9  #(at your option) any later version.
  10  #
  11  #This program is distributed in the hope that it will be useful,
  12  #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  #GNU General Public License for more details.
  15  #You should have received a copy of the GNU General Public License
  16  #along with this program; if not, write to the Free Software
  17  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18  #
  19  #$Id: index.php 3788 2007-02-15 21:26:05Z calguy1000 $
  20  
  21  $CMS_ADMIN_PAGE=1;
  22  $CMS_TOP_MENU='main';
  23  $CMS_ADMIN_TITLE='adminhome';
  24  $CMS_ADMIN_TITLE='mainmenu';
  25  $CMS_EXCLUDE_FROM_RECENT=1;
  26  
  27  require_once ("../include.php");
  28  
  29  check_login();
  30  
  31  global $gCms;
  32  $db =& $gCms->GetDb();
  33  
  34  include_once ("header.php");
  35  $themeObject->DisplayDashboardCallout(dirname(dirname(__FILE__)).'/install');
  36  $themeObject->DisplayDashboardCallout(TMP_CACHE_LOCATION . '/SITEDOWN', lang('sitedownwarning', TMP_CACHE_LOCATION . '/SITEDOWN'));
  37  
  38  // Display a warning if safe mode is enabled
  39  if( ini_get('safe_mode') )
  40    {
  41      echo '<div class="pageerrorcontainer"><div class="pageoverflow"><p class="pageerror">'.lang('warning_safe_mode').'</p></div></div>';
  42    }
  43  
  44  // Display a warning if CMSMS needs upgrading
  45  $current_version = $CMS_SCHEMA_VERSION;
  46  $query = "SELECT version from ".cms_db_prefix()."version";
  47  $row = $db->GetRow($query);
  48  if ($row)
  49  {
  50      $current_version = $row["version"];
  51  }
  52  if ($current_version < $CMS_SCHEMA_VERSION)
  53  {
  54      echo '<div class="pageerrorcontainer"><div class="pageoverflow"><p class="pageerror"><em><strong>Warning:</strong></em> CMSMS is in need of an upgrade.</p><p>You are now running schema version '.$current_version." and you need to be upgraded to version ".$CMS_SCHEMA_VERSION.'.</p><p>Please click the following link: <a href="'.$config['root_url'].'/install/upgrade.php">Start upgrade process</a>.</p></div></div>';
  55  }
  56  $themeObject->ShowShortcuts();
  57  $themeObject->DisplaySectionMenuDivStart();
  58  $themeObject->DisplayAllSectionPages();
  59  $themeObject->DisplaySectionMenuDivEnd();
  60  include_once ("footer.php");
  61  
  62  # vim:ts=4 sw=4 noet
  63  ?>


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7