[ PHPXref.com ] [ Generated: Sun Jul 20 19:38:51 2008 ] [ PHP-Fusion 6.00.305 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/php-files/ -> side_left.php (source)

   1  <?php
   2  /*---------------------------------------------------+

   3  | PHP-Fusion 6 Content Management System

   4  +----------------------------------------------------+

   5  | Copyright  2002 - 2005 Nick Jones

   6  | http://www.php-fusion.co.uk/

   7  +----------------------------------------------------+

   8  | Released under the terms & conditions of v2 of the

   9  | GNU General Public License. For details refer to

  10  | the included gpl.txt file or visit http://gnu.org

  11  +----------------------------------------------------*/
  12  if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
  13  
  14  // Display left side panels

  15  $p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='1' AND panel_status='1' ORDER BY panel_order");
  16  if (dbrows($p_res) != 0) {
  17      $pc = 0;
  18      while ($p_data = dbarray($p_res)) {
  19          if (checkgroup($p_data['panel_access'])) {
  20              if ($pc == 0) echo "<td width='$theme_width_l' valign='top' class='side-border-left'>\n";
  21              if ($p_data['panel_type'] == "file") {
  22                  $panel_name = $p_data['panel_filename'];
  23                  include INFUSIONS.$panel_name."/".$panel_name.".php";
  24              } else {
  25                  eval(stripslashes($p_data['panel_content']));
  26              }
  27              $pc++;
  28          }
  29      }
  30      if ($pc > 0) echo "</td>\n";
  31  }
  32  
  33  echo "<td valign='top' class='main-bg'>\n";
  34  if (file_exists(BASEDIR."setup.php")) echo "<center>".$locale['198']."</center><br>";
  35  
  36  $p_res = dbquery("SELECT * FROM ".$db_prefix."panels WHERE panel_side='2' AND panel_status='1' ORDER BY panel_order");
  37  if (dbrows($p_res) != 0) {
  38      while ($p_data = dbarray($p_res)) {
  39          if (checkgroup($p_data['panel_access'])) {
  40              if ($p_data['panel_display'] == 1 || eregi($settings['opening_page']."$", FUSION_REQUEST.(FUSION_QUERY ? "?".FUSION_QUERY : ""))) {
  41                  if ($p_data['panel_type'] == "file") {
  42                      $panel_name = $p_data['panel_filename'];
  43                      include INFUSIONS.$panel_name."/".$panel_name.".php";
  44                  } else {
  45                      eval(stripslashes($p_data['panel_content']));
  46                  }
  47                  tablebreak();
  48              }
  49          }
  50      }
  51  }
  52  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]