[ Index ] |
|
Code source de e107 0.7.8 |
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_admin/docs.php,v $ 14 | $Revision: 1.7 $ 15 | $Date: 2005/11/12 04:18:01 $ 16 | $Author: sweetas $ 17 +----------------------------------------------------------------------------+ 18 */ 19 require_once ("../class2.php"); 20 if (!ADMIN) { 21 header("location:".e_BASE."index.php"); 22 exit; 23 } 24 $e_sub_cat = 'docs'; 25 require_once ("auth.php"); 26 27 $i = 1; 28 $lang = e_LANGUAGE; 29 if (!$handle = opendir(e_DOCS.e_LANGUAGE."/")) { 30 $lang = "English"; 31 $handle = opendir(e_DOCS."English/"); 32 } 33 34 while ($file = readdir($handle)) { 35 if ($file != "." && $file != ".." && $file != "CVS") { 36 $helplist[$i] = $file; 37 $i++; 38 } 39 } 40 closedir($handle); 41 42 43 if (e_QUERY) { 44 $filename = e_DOCS.$lang."/".$helplist[e_QUERY]; 45 $fd = fopen ($filename, "r"); 46 $text .= fread ($fd, filesize ($filename)); 47 fclose ($fd); 48 49 $text = $tp->toHTML($text, TRUE); 50 $text = preg_replace("/Q\>(.*?)A>/si", "<img src='".e_IMAGE."generic/".IMODE."/question.png' style='vertical-align: middle' /><b>\\1</b>A>", $text); 51 $text = str_replace("A>", "<img src='".e_IMAGE."generic/".IMODE."/answer.png' style='vertical-align: middle' />", $text); 52 53 $ns->tablerender(str_replace("_", " ", $helplist[e_QUERY]), $text."<br />"); 54 unset($text); 55 } 56 57 require_once ("footer.php"); 58 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |