mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 10:23:53 +02:00
Frontend scripts tests. (may break some things)
This commit is contained in:
@@ -1894,78 +1894,3 @@ if(E107_DBG_BASIC && ADMIN)
|
||||
$newsObj->debug();
|
||||
}
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
|
||||
|
||||
|
||||
|
||||
//require_once(e_HANDLER."comment_class.php");
|
||||
//$cobj = new comment;
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------
|
||||
// DISPLAY NEWS IN 'CATEGORY' LIST FORMAT HERE
|
||||
//------------------------------------------------------
|
||||
// Just title and a few other details
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------
|
||||
// DISPLAY SINGLE ITEM IN EXTENDED FORMAT HERE
|
||||
//------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------
|
||||
// DISPLAY NEWS IN LIST FORMAT HERE
|
||||
//------------------------------------------------------
|
||||
// Show title, author, first part of news item...
|
||||
|
||||
|
||||
// ##### --------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// #### new: news archive ---------------------------------------------------------------------------------------------
|
||||
|
||||
// #### END -----------------------------------------------------------------------------------------------------------
|
||||
|
||||
if ($action != "item") {
|
||||
if (is_numeric($action)){
|
||||
$action = "";
|
||||
}
|
||||
// $parms = $news_total.",".ITEMVIEW.",".$newsfrom.",".e_SELF.'?'."[FROM].".$action.(isset($sub_action) ? ".".$sub_action : "");
|
||||
// $nextprev = $tp->parseTemplate("{NEXTPREV={$parms}}");
|
||||
// echo ($nextprev ? "<div class='nextprev'>".$nextprev."</div>" : "");
|
||||
}
|
||||
|
||||
if(is_dir("remotefile")) {
|
||||
require_once(e_HANDLER."file_class.php");
|
||||
$file = new e_file;
|
||||
// $reject = array('$.','$..','/','CVS','thumbs.db','*._$', 'index', 'null*', 'Readme.txt');
|
||||
// $crem = $file -> get_files(e_BASE."remotefile", "", $reject);
|
||||
$crem = $file -> get_files(e_BASE."remotefile", '~Readme\.txt');
|
||||
if(count($crem)) {
|
||||
foreach($crem as $loadrem) {
|
||||
if(strpos($loadrem['fname'], "load_") !== false) {
|
||||
require_once(e_BASE."remotefile/".$loadrem['fname']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->pref['nfp_display']) && $this->pref['nfp_display'] == 2 && is_readable(e_PLUGIN."newforumposts_main/newforumposts_main.php"))
|
||||
{
|
||||
require_once(e_PLUGIN."newforumposts_main/newforumposts_main.php");
|
||||
}
|
||||
|
||||
render_newscats();
|
||||
|
||||
require_once(FOOTERF);
|
||||
|
||||
|
||||
// =========================================================================
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user