home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 April
/
PCWorld_2005-04_cd.bin
/
akce
/
web
/
unitednuke
/
unitednuke.exe
/
html
/
blocks
/
block-Ephemerids.php
< prev
next >
Wrap
PHP Script
|
2004-01-10
|
2KB
|
45 lines
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-Ephemerids.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $prefix, $multilingual, $currentlang, $db;
if ($multilingual == 1) {
$querylang = "AND elanguage='$currentlang'";
} else {
$querylang = "";
}
$today = getdate();
$eday = $today[mday];
$emonth = $today[mon];
$title = ""._EPHEMERIDS."";
$content = "<b>"._ONEDAY."</b><br>";
$result = $db->sql_query("SELECT yid, content FROM " . $prefix . "_ephem WHERE did='$eday' AND mid='$emonth' $querylang");
while ($row = $db->sql_fetchrow($result)) {
$yid = intval($row['yid']);
$econtent = stripslashes($row['content']);
if ($cnt == 1) {
$boxstuff .= "<br><br>";
}
$content .= "<b>$yid</b><br>";
$content .= "$econtent";
$cnt = 1;
}
?>