[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/list_new/ -> list_recent_menu.php (source)

   1  <?php
   2  /*
   3  +---------------------------------------------------------------+
   4  |       e107 website system
   5  |
   6  |       ©Steve Dunstan 2001-2002
   7  |       http://e107.org
   8  |       jalist@e107.org
   9  |
  10  |       Released under the terms and conditions of the
  11  |       GNU General Public License (http://gnu.org).
  12  |
  13  |        $Source: /cvsroot/e107/e107_0.7/e107_plugins/list_new/list_recent_menu.php,v $
  14  |        $Revision: 1.6 $
  15  |        $Date: 2005/12/14 19:28:44 $
  16  |        $Author: sweetas $
  17  +---------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  if(!$sql -> db_Select("plugin", "*", "plugin_path = 'list_new' AND plugin_installflag = '1' ")){
  23      return;
  24  }
  25  
  26  global $sysprefs, $tp, $eArrayStorage;
  27  $listplugindir = e_PLUGIN."list_new/";
  28  unset($text);
  29  require_once ($listplugindir."list_shortcodes.php");
  30  
  31  //get language file
  32  $lan_file = $listplugindir."languages/".e_LANGUAGE.".php";
  33  include_once(file_exists($lan_file) ? $lan_file : $listplugindir."languages/English.php");
  34  
  35  require_once ($listplugindir."list_class.php");
  36  $rc = new listclass;
  37  
  38  $list_pref    = $rc -> getListPrefs();
  39  $mode        = "recent_menu";
  40  $sections    = $rc -> prepareSection($mode);
  41  $arr        = $rc -> prepareSectionArray($mode, $sections);
  42  
  43  //display the sections
  44  $text = "";
  45  for($i=0;$i<count($arr);$i++){
  46      if($arr[$i][1] == "1"){
  47          $sectiontext = $rc -> show_section_list($arr[$i], $mode);
  48          if($sectiontext != ""){
  49              $text .= $sectiontext;
  50          }
  51      }
  52  }
  53  
  54  $caption = (isset($list_pref[$mode."_caption"]) && $list_pref[$mode."_caption"] ? $list_pref[$mode."_caption"] : LIST_MENU_1);
  55  $ns -> tablerender($caption, $text, 'list_recent');
  56  unset($text);
  57  
  58  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7