Browse code

Initial uplad w/ php7 fixes

Rainer Volkrodt authored on 2016/03/12 15:54:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+<?php
2
+if(!defined("_CHARSET")) exit( );
3
+
4
+	if(isset($blocks[$block]['content'])) {
5
+		foreach($blocks[$block]['content'] as $page) {
6
+			if(isset($pagelinks[$page]['link'])) {
7
+				if(empty($blocks[$block]['style'])) $content .= "<li ".($current == $page ? "id=\"menu_current\"" : "").">".$pagelinks[$page]['link']."</li>";
8
+				else $content .= $pagelinks[$page]['link'];
9
+			}
10
+		}
11
+	}
12
+	else {
13
+		$pages = array('home', 'recent', 'titles', 'catslink', 'series', 'members', 'authors', 'challenges', 'search', 'tens', 'featured', 'help', 'contactus', 'login', 'logout', 'adminarea');
14
+		foreach($pages as $page) {
15
+			if(empty($pagelinks[$page])) continue;
16
+			if(empty($blocks[$block]['style'])) $content .= "<li ".($current == $page ? "id=\"menu_current\"" : "").">".$pagelinks[$page]['link']."</li>";
17
+			else $content .= $pagelinks[$page]['link'];
18
+		}
19
+	}
20
+	if(empty($blocks[$block]['style'])) $content = "<ul>$content</ul>";
21
+	$content = "<div id=\"$block\">$content</div>";
22
+?>
0 23
\ No newline at end of file