droy | 0757c2c | 2009-03-31 19:37:36 +0000 | [diff] [blame] | 1 | <?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 | |
| 13 | require_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 | |
| 17 | if ($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 | ?> |