[ Index ]

PHP Cross Reference of Nuke-Evolution v2.0.5

title

Body

[close]

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

   1  <?php
   2  /*=======================================================================
   3   Nuke-Evolution Basic: Enhanced PHP-Nuke Web Portal System
   4   =======================================================================*/
   5  
   6  /************************************************************************
   7     Nuke-Evolution: Submissions Block
   8     ============================================
   9     Copyright (c) 2005 by The Nuke-Evolution Team
  10  
  11     Filename      : block-Submissions.php
  12     Author        : Quake
  13     Version       : 2.0.0
  14     Date          : 09/02/2006 (dd-mm-yyyy)
  15  
  16     Notes         : Overview about submissions and other useful information
  17                     about your website.
  18  ************************************************************************/
  19  
  20  if(!defined('NUKE_EVO')) exit;
  21  
  22  $content = '';
  23  
  24  if (is_admin()) {
  25  
  26        global $currentlang;
  27        if (file_exists(NUKE_LANGUAGE_DIR.'custom/lang-'.$currentlang.'.php')) {
  28            include_once(NUKE_LANGUAGE_DIR.'custom/lang-'.$currentlang.'.php');
  29        } else {
  30            include_once(NUKE_LANGUAGE_DIR.'custom/lang-english.php');
  31        }
  32  
  33        $handle = opendir(NUKE_MODULES_DIR);
  34        while(false !== ($module = readdir($handle))) {
  35            if (is_active($module) && file_exists("modules/$module/admin/wait.php")) {
  36                $submissions[$module] = "modules/$module/admin/wait.php";
  37            }
  38        }
  39        closedir($handle);
  40        if(is_array($submissions)) {
  41            ksort($submissions);
  42            foreach($submissions as $module => $file) {
  43                require_once($file);
  44            }
  45        }
  46  
  47  } else {
  48        $content .="<center><strong>"._ADMIN_BLOCK_DENIED."</strong></center>";
  49  }
  50  
  51  ?>


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