[ Index ]

PHP Cross Reference of Nuke-Evolution v2.0.5

title

Body

[close]

/blocks/ -> block-Administration.php (source)

   1  <?php
   2  /*=======================================================================
   3   Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
   4   =======================================================================*/
   5  
   6  /************************************************************************
   7     Nuke-Evolution: Advanced Content Management System
   8     ============================================
   9     Copyright (c) 2005 by The Nuke-Evolution Team
  10  
  11     Filename      : block-Administration.php
  12     Author        : Nuke-Evolution Team
  13     Version       : 1.5.0
  14     Date          : 06/10/2005 (dd-mm-yyyy)
  15  
  16     Notes         : Quick Admin Navigation Block which lets you quickly
  17                     run / view the specific option available.
  18  ************************************************************************/
  19  
  20  /*****[CHANGES]**********************************************************
  21  -=[Base]=-
  22        Nuke Patched                             v3.1.0       06/26/2005
  23        Caching System                           v1.0.0       10/31/2005
  24  -=[Block]=-
  25        Administration                           v1.5.0       06/10/2005
  26  -=[Mod]=-
  27        Advanced Security Code Control           v1.0.0       12/17/2005
  28   ************************************************************************/
  29  
  30  if(!defined('NUKE_EVO')) exit;
  31  
  32  if (is_admin()) {
  33      global $prefix, $db, $admin_file, $currentlang;
  34  
  35      if (file_exists('language/custom/lang-'.$currentlang.'.php')) {
  36          include_once('language/custom/lang-'.$currentlang.'.php');
  37      } else {
  38          include_once ('language/custom/lang-english.php');
  39      }
  40  
  41      $content = "<center><strong><u><span class=\"content\">"._ADMIN_BLOCK_TITLE."</span>:</u></strong></center><br />";
  42  
  43      $links = array(
  44          #Admin [Nuke-Evo]
  45          _ADMIN_BLOCK_NUKE => $admin_file.".php",
  46          #Admin [Forums]
  47          _ADMIN_BLOCK_FORUMS => $admin_file.".php?op=forums",
  48          #Settings
  49          _ADMIN_BLOCK_SETTINGS => $admin_file.".php?op=Configure",
  50          #Themes
  51          _THEMES => $admin_file.".php?op=themes",
  52          #Cache
  53          _CACHE_ADMIN => $admin_file.".php?op=cache",
  54          #Evolution UserInfo Block
  55          _ADMIN_BLOCK_EVO_USER => $admin_file.".php?op=evo-userinfo",
  56          #Downloads
  57          _ADMIN_BLOCK_DOWNLOADS => $admin_file.".php?op=DLMain",
  58          #Nuke Sentinel
  59          _AB_NUKESENTINEL => $admin_file.".php?op=ABMain",
  60          #News
  61          _ADMIN_BLOCK_NEWS => $admin_file.".php?op=adminStory",
  62          #Blocks
  63          _ADMIN_BLOCK_BLOCKS => $admin_file.".php?op=blocks",
  64          #Modules
  65          _ADMIN_BLOCK_MODULES => $admin_file.".php?op=modules",
  66          #CNBYA
  67          _ADMIN_BLOCK_CNBYA => "modules.php?name=Your_Account&amp;file=admin",
  68          #Messages
  69          _ADMIN_BLOCK_MSGS => $admin_file.".php?op=messages",
  70          #Who Is Online
  71          _ADMIN_BLOCK_WHO_ONLINE => $admin_file.".php?op=who",
  72          #Database Manager
  73          _ADMIN_BLOCK_OPTIMIZE_DB => $admin_file.".php?op=database",
  74          #Clear Cache
  75          _CACHE_CLEAR => $admin_file.".php?op=cache_clear",
  76          #Logout
  77          _ADMIN_BLOCK_LOGOUT => $admin_file.".php?op=logout",
  78      );
  79      
  80      if (is_array($links)) {
  81          foreach($links as $text => $link) {
  82              $content .= "&nbsp;<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" />&nbsp;<a href='" . $link . "'>".$text."</a><br />";
  83          }
  84      }
  85  
  86  } else {
  87      global $admin_file;
  88      $content ="<center><strong>"._ADMIN_BLOCK_LOGIN."</strong></center><br /><br />";
  89      $content .= "<form action=\"".$admin_file.".php\" method=\"post\">"
  90                 ."<table border=\"0\">"
  91                 ."<tr><td>"._ADMIN_ID."</td>"
  92                 ."<td><input type=\"text\" name=\"aid\" size=\"8\" maxlength=\"25\" /></td></tr>"
  93                 ."<tr><td>"._ADMIN_PASS."</td>"
  94                 ."<td><input type=\"password\" name=\"pwd\" size=\"8\" maxlength=\"40\" /></td></tr>";
  95  /*****[BEGIN]******************************************
  96   [ Mod:     Advanced Security Code Control     v1.0.0 ]
  97   ******************************************************/
  98      $gfxchk = array(1,5,6,7);
  99      $content .= security_code($gfxchk);
 100  /*****[END]********************************************
 101   [ Mod:     Advanced Security Code Control     v1.0.0 ]
 102   ******************************************************/
 103      $content .= "<tr><td>"
 104                 ."<input type=\"hidden\" name=\"op\" value=\"login\" />"
 105                 ."<input type=\"submit\" value=\""._LOGIN."\" />"
 106                 ."</td></tr></table>"
 107                 ."</form>";
 108  }
 109  
 110  ?>


Generated: Wed Jun 6 11:38:01 2007 Cross-referenced by PHPXref 0.7