From c1ad59d64789552811e23b9203377b14cbfd8155 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sat, 19 Sep 2009 21:50:05 +0000 Subject: [PATCH] Remove deprecated folder --- .../other_news_menu/languages/English.php | 16 -- .../other_news_menu/other_news2_menu.php | 137 ------------------ .../other_news_menu/other_news_menu.php | 133 ----------------- 3 files changed, 286 deletions(-) delete mode 100644 e107_plugins/other_news_menu/languages/English.php delete mode 100644 e107_plugins/other_news_menu/other_news2_menu.php delete mode 100644 e107_plugins/other_news_menu/other_news_menu.php diff --git a/e107_plugins/other_news_menu/languages/English.php b/e107_plugins/other_news_menu/languages/English.php deleted file mode 100644 index 1594d2cd8..000000000 --- a/e107_plugins/other_news_menu/languages/English.php +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/e107_plugins/other_news_menu/other_news2_menu.php b/e107_plugins/other_news_menu/other_news2_menu.php deleted file mode 100644 index ddfd93fb1..000000000 --- a/e107_plugins/other_news_menu/other_news2_menu.php +++ /dev/null @@ -1,137 +0,0 @@ -retrieve("nq_othernews2")) -{ - echo $cacheData; - return; -} - - -require_once(e_HANDLER."news_class.php"); -unset($text); -global $OTHERNEWS2_STYLE; -$ix = new news; - -if(!$OTHERNEWS2_STYLE) { - $OTHERNEWS2_STYLE = " - - - - - -
- {NEWSCATICON} - {NEWSCATEGORY} -
- {NEWSTITLELINK} -
- {NEWSSUMMARY} -
- {NEWSTHUMBNAIL} -
- "; -} - -if(!defined("OTHERNEWS2_LIMIT")){ - define("OTHERNEWS2_LIMIT",5); -} - -if(!defined("OTHERNEWS2_ITEMLINK")){ - define("OTHERNEWS2_ITEMLINK",""); -} -if(!defined("OTHERNEWS2_CATLINK")){ - define("OTHERNEWS2_CATLINK",""); -} -if(!defined("OTHERNEWS2_CATICON")){ - define("OTHERNEWS2_CATICON","border:0px"); -} -if(!defined("OTHERNEWS2_THUMB")){ - define("OTHERNEWS2_THUMB","border:0px"); -} - -if(!defined("OTHERNEWS2_COLS")){ - define("OTHERNEWS2_COLS","1"); -} - -if(!defined("OTHERNEWS2_CELL")){ - define("OTHERNEWS2_CELL","padding:0px;vertical-align:top"); -} - -if(!defined("OTHERNEWS2_SPACING")){ - define("OTHERNEWS2_SPACING","0"); -} - -$param['itemlink'] = OTHERNEWS2_ITEMLINK; -$param['thumbnail'] = OTHERNEWS2_THUMB; -$param['catlink'] = OTHERNEWS2_CATLINK; -$param['caticon'] = OTHERNEWS2_CATICON; - -$style = OTHERNEWS2_CELL; -$nbr_cols = OTHERNEWS2_COLS; - -$query = "SELECT n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_name, nc.category_icon FROM #news AS n -LEFT JOIN #user AS u ON n.news_author = u.user_id -LEFT JOIN #news_category AS nc ON n.news_category = nc.category_id -WHERE n.news_class IN (".USERCLASS_LIST.") AND n.news_start < ".time()." AND (n.news_end=0 || n.news_end>".time().") AND n.news_render_type=3 ORDER BY n.news_datestamp DESC LIMIT 0,".OTHERNEWS2_LIMIT; - -if ($sql->db_Select_gen($query)) { - $text = ""; - $t = 0; - $wid = floor(100/$nbr_cols); - while ($row = $sql->db_Fetch()) { - $text .= ($t % $nbr_cols == 0) ? "" : ""; - $text .= "\n\n"; - if (($t+1) % $nbr_cols == 0) { - $text .= ""; - $t++; - } - else { - $t++; - } - } - - while ($t % $nbr_cols != 0){ - $text .= "\n"; - $text .= (($t+1) % $nbr_cols == 0) ? "" : ""; - $t++; - - } - $text .= "
\n"; - - $text .= $ix->render_newsitem($row, 'return', '', $OTHERNEWS2_STYLE, $param); - - $text .= "\n
 
"; - - - // Save Data - ob_start(); - - $ns->tablerender(TD_MENU_L2, $text, 'other_news2'); - - $cache_data = ob_get_flush(); - $e107cache->set("nq_othernews2", $cache_data); - -} - -?> \ No newline at end of file diff --git a/e107_plugins/other_news_menu/other_news_menu.php b/e107_plugins/other_news_menu/other_news_menu.php deleted file mode 100644 index 903e32ce3..000000000 --- a/e107_plugins/other_news_menu/other_news_menu.php +++ /dev/null @@ -1,133 +0,0 @@ -retrieve("nq_othernews")) -{ - echo $cacheData; - return; -} - - -require_once(e_HANDLER."news_class.php"); -unset($text); -global $OTHERNEWS_STYLE; -$ix = new news; - -if(!$OTHERNEWS_STYLE) -{ - $OTHERNEWS_STYLE = " -
- - -
- {NEWSCATICON} - - {NEWSTITLELINK} -
-
\n"; -} - - -if(!defined("OTHERNEWS_LIMIT")){ - define("OTHERNEWS_LIMIT",10); -} - -if(!defined("OTHERNEWS_ITEMLINK")){ - define("OTHERNEWS_ITEMLINK",""); -} - -if(!defined("OTHERNEWS_CATLINK")){ - define("OTHERNEWS_CATLINK",""); -} -if(!defined("OTHERNEWS_THUMB")){ - define("OTHERNEWS_THUMB","border:0px"); -} -if(!defined("OTHERNEWS_CATICON")){ - define("OTHERNEWS_CATICON","border:0px"); -} - -if(!defined("OTHERNEWS_COLS")){ - define("OTHERNEWS_COLS","1"); -} - -if(!defined("OTHERNEWS_CELL")){ - define("OTHERNEWS_CELL","padding:0px;vertical-align:top"); -} - -if(!defined("OTHERNEWS_SPACING")){ - define("OTHERNEWS_SPACING","0"); -} - -$param['itemlink'] = OTHERNEWS_ITEMLINK; -$param['thumbnail'] = OTHERNEWS_THUMB; -$param['catlink'] = OTHERNEWS_CATLINK; -$param['caticon'] = OTHERNEWS_CATICON; - -$style = OTHERNEWS_CELL; -$nbr_cols = OTHERNEWS_COLS; - - -$query = "SELECT n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_name, nc.category_icon FROM #news AS n -LEFT JOIN #user AS u ON n.news_author = u.user_id -LEFT JOIN #news_category AS nc ON n.news_category = nc.category_id -WHERE n.news_class IN (".USERCLASS_LIST.") AND n.news_start < ".time()." AND (n.news_end=0 || n.news_end>".time().") AND n.news_render_type=2 ORDER BY n.news_datestamp DESC LIMIT 0,".OTHERNEWS_LIMIT; - -if ($sql->db_Select_gen($query)){ - $text = ""; - $t = 0; - $wid = floor(100/$nbr_cols); - while ($row = $sql->db_Fetch()) { - $text .= ($t % $nbr_cols == 0) ? "" : ""; - $text .= "\n\n"; - if (($t+1) % $nbr_cols == 0) { - $text .= ""; - $t++; - } - else { - $t++; - } - } - - - while ($t % $nbr_cols != 0){ - $text .= "\n"; - $text .= (($t+1) % $nbr_cols == 0) ? "" : ""; - $t++; - - } - $text .= "
\n"; - $text .= $ix->render_newsitem($row, 'return', '', $OTHERNEWS_STYLE, $param); - - $text .= "\n
 
"; - - - // Save Data - ob_start(); - - $ns->tablerender(TD_MENU_L1, $text, 'other_news'); - - $cache_data = ob_get_flush(); - $e107cache->set("nq_othernews", $cache_data); -} - -?> \ No newline at end of file