blob: e2db98ca6162f0d8f84b04390f12eb217c1afc6a [file] [log] [blame]
droy0757c2c2009-03-31 19:37:36 +00001<?php
2/*******************************************************************************
3 * Copyright (c) 2009 Eclipse Foundation and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Eclipse Foundation - initial API and implementation
11*******************************************************************************/
12
13require_once("frag_global.php");
14
15$query = "SELECT value FROM sys_values WHERE itemid = 'MOTD' AND value IS NOT NULL AND value <> '' LIMIT 1";
16
17if ($res = mysql_query($query)) {
18 if ($row = mysql_fetch_assoc($res)) {
19 echo "<div id='motd'>";
20 echo $row['value'];
21 echo "</div>";
22 }
23}
24?>