[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/modules/ -> mod_pathway.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  /** ensure this file is being included by a parent file */
  17  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  18  
  19  global $mosConfig_sitename;
  20  
  21  if ($option != '') {
  22      $html = '';
  23  
  24      $html .= '<div class="pathway">';    
  25      $html .= '<a href="'. $mosConfig_live_site .'/administrator/index2.php">';
  26      $html .= '<strong>' . $mosConfig_sitename . '</strong>';
  27      $html .= "</a>";
  28  
  29      if ($option != '') {
  30          $html .= " / ";
  31          // try to miss edit functions
  32          if ($task != '' && !eregi( 'edit', $task )) {
  33              $html .= "<a href=\"index2.php?option=$option\">$option</a>";
  34          } else {
  35              $html .= $option;
  36          }
  37      }
  38  
  39      if ($task != '') {
  40          $html .= " / $task";
  41      }
  42      $html .= '</div>';
  43      echo $html;
  44  }
  45  ?>