1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

new module creation

This commit is contained in:
mcfly
2006-12-02 04:36:16 +00:00
commit e149b35fcc
2196 changed files with 182987 additions and 0 deletions

58
e107_admin/docs.php Normal file
View File

@@ -0,0 +1,58 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| <20>Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/docs.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:19 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
require_once("../class2.php");
if (!ADMIN) {
header("location:".e_BASE."index.php");
exit;
}
$e_sub_cat = 'docs';
require_once("auth.php");
$i = 1;
$lang = e_LANGUAGE;
if (!$handle = opendir(e_DOCS.e_LANGUAGE."/")) {
$lang = "English";
$handle = opendir(e_DOCS."English/");
}
while ($file = readdir($handle)) {
if ($file != "." && $file != ".." && $file != "CVS") {
$helplist[$i] = $file;
$i++;
}
}
closedir($handle);
if (e_QUERY) {
$filename = e_DOCS.$lang."/".$helplist[e_QUERY];
$fd = fopen ($filename, "r");
$text .= fread ($fd, filesize ($filename));
fclose ($fd);
$text = $tp->toHTML($text, TRUE);
$text = preg_replace("/Q\>(.*?)A>/si", "<img src='".e_IMAGE."generic/".IMODE."/question.png' style='vertical-align: middle' /><b>\\1</b>A>", $text);
$text = str_replace("A>", "<img src='".e_IMAGE."generic/".IMODE."/answer.png' style='vertical-align: middle' />", $text);
$ns->tablerender(str_replace("_", " ", $helplist[e_QUERY]), $text."<br />");
unset($text);
}
require_once("footer.php");
?>