mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
Docs Administration ready
This commit is contained in:
@@ -1,20 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+ ----------------------------------------------------------------------------+
|
* e107 website system
|
||||||
| e107 website system
|
*
|
||||||
|
|
* Copyright (C) 2001-2008 e107 Inc (e107.org)
|
||||||
| <20>Steve Dunstan 2001-2002
|
* Released under the terms and conditions of the
|
||||||
| http://e107.org
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
| jalist@e107.org
|
*
|
||||||
|
|
* Docs
|
||||||
| 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.3 $
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/docs.php,v $
|
* $Date: 2008-12-16 15:16:09 $
|
||||||
| $Revision: 1.2 $
|
* $Author: secretr $
|
||||||
| $Date: 2006-12-07 15:41:49 $
|
*
|
||||||
| $Author: sweetas $
|
|
||||||
+----------------------------------------------------------------------------+
|
|
||||||
*/
|
*/
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
if (!ADMIN) {
|
if (!ADMIN) {
|
||||||
@@ -23,14 +21,14 @@ if (!ADMIN) {
|
|||||||
}
|
}
|
||||||
$e_sub_cat = 'docs';
|
$e_sub_cat = 'docs';
|
||||||
require_once("auth.php");
|
require_once("auth.php");
|
||||||
|
|
||||||
$i = 1;
|
$i = 1;
|
||||||
$lang = e_LANGUAGE;
|
$lang = e_LANGUAGE;
|
||||||
if (!$handle = opendir(e_DOCS.e_LANGUAGE."/")) {
|
if (!$handle = opendir(e_DOCS.e_LANGUAGE."/")) {
|
||||||
$lang = "English";
|
$lang = "English";
|
||||||
$handle = opendir(e_DOCS."English/");
|
$handle = opendir(e_DOCS."English/");
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($file = readdir($handle)) {
|
while ($file = readdir($handle)) {
|
||||||
if ($file != "." && $file != ".." && $file != "CVS") {
|
if ($file != "." && $file != ".." && $file != "CVS") {
|
||||||
$helplist[$i] = $file;
|
$helplist[$i] = $file;
|
||||||
@@ -38,21 +36,21 @@ while ($file = readdir($handle)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
|
|
||||||
|
|
||||||
if (e_QUERY) {
|
if (e_QUERY) {
|
||||||
$filename = e_DOCS.$lang."/".$helplist[e_QUERY];
|
$filename = e_DOCS.$lang."/".$helplist[e_QUERY];
|
||||||
$fd = fopen ($filename, "r");
|
$fd = fopen ($filename, "r");
|
||||||
$text .= fread ($fd, filesize ($filename));
|
$text .= fread ($fd, filesize ($filename));
|
||||||
fclose ($fd);
|
fclose ($fd);
|
||||||
|
|
||||||
$text = $tp->toHTML($text, TRUE);
|
$text = $tp->toHTML($text, TRUE);
|
||||||
$text = preg_replace("/Q\>(.*?)A>/si", "<img src='".e_IMAGE."packs/".$imode."/generic/question.png' style='vertical-align: middle' /><b>\\1</b>A>", $text);
|
$text = preg_replace("/Q\>(.*?)A>/si", "<img src='".e_IMAGE_ABS."generic/question.png' class='icon' alt='' /><b>\\1</b>A>", $text);
|
||||||
$text = str_replace("A>", "<img src='".e_IMAGE."packs/".$imode."/generic/answer.png' style='vertical-align: middle' />", $text);
|
$text = str_replace("A>", "<img src='".e_IMAGE."generic/answer.png' class='icon' alt='' />", $text);
|
||||||
|
|
||||||
$ns->tablerender(str_replace("_", " ", $helplist[e_QUERY]), $text."<br />");
|
$ns->tablerender(str_replace("_", " ", $helplist[e_QUERY]), $text."<br />");
|
||||||
unset($text);
|
unset($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once("footer.php");
|
require_once("footer.php");
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user