[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_lib/ -> files.create.dirmenu.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  //Funktionen zum Listen der privaten Dateien
  24  
  25  function dir_menu($pid, $zid, & $dbcon, $vor, $userID, $vorzeichen = ":") {
  26      $pid = intval($pid);
  27      $sql = "SELECT f_id, f_name FROM ".DB_PREPEND."phpwcms_file WHERE ".
  28             "f_pid=".intval($pid)." AND ".
  29             "f_uid=".intval($userID)." AND ".
  30             "f_kid=0 AND f_trash=0 ORDER BY f_name";
  31      $result = mysql_query($sql, $dbcon);
  32      while($row = mysql_fetch_row($result)) {
  33          $dirname = html_specialchars($row["1"]);
  34          echo "<option value='".$row[0]."'";
  35          if(intval($zid) == $row[0]) echo " selected";
  36          echo ">".$vor.$dirname."</option>\n";
  37          dir_menu($row["0"], $zid, $dbcon, $vor.$vorzeichen, $userID, $vorzeichen);
  38      }
  39      mysql_free_result($result);
  40      return $vor;
  41  }
  42  
  43  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7