get_files($doc_fpath_alt); if(!is_dir($doc_fpath) || $doc_fpath == $doc_fpath_alt) { $helplist = $helplist_all; } else { $helplist = $fl->get_files($doc_fpath); } //Titles in Admin Area are requested by the community define('e_PAGETITLE', LAN_DOCS); if (e_QUERY) { $i = intval(e_QUERY) - 1; $filename = $doc_fpath.$helplist[$i]['fname']; $filename_alt = $doc_fpath_alt.$helplist[$i]['fname']; if(is_readable($filename)) $text = file_get_contents($filename); else $text = file_get_contents($filename_alt); $text = $tp->toHTML($text, TRUE); $text = preg_replace('/Q\>(.*?)A>/si', "\\1A>", $text); $text = str_replace("A>", "", $text); $ns->tablerender(LAN_DOCS.' - '.str_replace("_", " ", $helplist[$i]['fname']), $text); unset($text); require_once("footer.php"); exit; } /* * NEW 0.8 * Show All */ $text = ''; $text_h = ''; foreach ($helplist as $key => $helpdata) { $filename = $doc_fpath.$helpdata['fname']; $filename_alt = $doc_fpath_alt.$$helpdata['fname']; if(is_readable($filename)) $tmp = file_get_contents($filename); else $tmp = file_get_contents($filename_alt); //$tmp = $tp->toHTML(trim($tmp), TRUE); $tmp = preg_replace('/Q\>(.*?)A>/si', "###QSTART###