1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

News: rewrite of frontend script. To test add define('e_DEBUG', 'news'); to e107_config.php

This commit is contained in:
Cameron 2016-12-12 12:35:13 -08:00
parent a9a63848b1
commit ccb44d46e7
2 changed files with 1512 additions and 1 deletions

1504
e107_plugins/news/news.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -20,6 +20,13 @@
*/
require_once("class2.php");
if(e_DEBUG === 'news')
{
require_once(e_PLUGIN."news/news.php");
// exit;
}
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
require_once(e_HANDLER."news_class.php");
@ -185,7 +192,7 @@ if(!empty($_GET['author']) || substr($action,0,4) == 'author=')
}
if(E107_DBG_PATH)
if(e_DEBUG === 'news')
{
echo "<div class='alert alert-info'>";
echo "<h4>SEF Debug Info</h4>";