Browse Source

[index] Show debug status on main page

logmanoriginal 7 years ago
parent
commit
b61ea84950
2 changed files with 15 additions and 1 deletions
  1. 6 0
      css/style.css
  2. 9 1
      index.php

+ 6 - 0
css/style.css

@@ -46,6 +46,12 @@ header > h2 {
 
 }
 
+header > p.status {
+	font-weight: bold;
+	margin: 1em;
+	color: red;
+}
+
 section {
 
 	background-color: #FFFFFF;

+ 9 - 1
index.php

@@ -175,12 +175,20 @@ $formats = Format::searchInformation();
 </head>
 
 <body>
+	<?php
+		$status = '';
+		if(defined('DEBUG') && DEBUG === true){
+			$status .= 'debug mode active';
+		}
 
+		echo <<<EOD
 	<header>
 		<h1>RSS-Bridge</h1>
 		<h2>·Reconnecting the Web·</h2>
+		<p class="status">{$status}</p>
 	</header>
-	<?php
+EOD;
+
 		$activeFoundBridgeCount = 0;
 		$showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN);
 		$inactiveBridges = '';