[270489] Need a simple MOTD functionality
diff --git a/html/fragments/motd.php b/html/fragments/motd.php
new file mode 100644
index 0000000..e2db98c
--- /dev/null
+++ b/html/fragments/motd.php
@@ -0,0 +1,24 @@
+<?php
+/*******************************************************************************
+ * Copyright (c) 2009 Eclipse Foundation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+  *    Eclipse Foundation - initial API and implementation
+*******************************************************************************/
+
+require_once("frag_global.php");
+
+$query = "SELECT value FROM sys_values WHERE itemid = 'MOTD' AND value IS NOT NULL AND value <> '' LIMIT 1";
+
+if ($res = mysql_query($query)) {
+	if ($row = mysql_fetch_assoc($res)) {
+		echo "<div id='motd'>";
+		echo $row['value'];
+		echo "</div>";
+	}
+}
+?>
\ No newline at end of file