first init

This commit is contained in:
Metrax
2012-05-09 20:05:43 +02:00
commit e05b7bb8f0
6205 changed files with 395435 additions and 0 deletions

29
htdocs/news.php Normal file
View File

@ -0,0 +1,29 @@
<?php
/***************************************************************************
* You can find the license in the docs directory
*
* Unicode Reminder メモ
*
* Display some status information about the server and Opencaching
***************************************************************************/
require('./lib2/web.inc.php');
if ($opt['news']['redirect'] != '')
$tpl->redirect($opt['news']['redirect']);
$tpl->name = 'news';
$tpl->menuitem = MNU_START_NEWS;
$tpl->caching = true;
$tpl->cache_lifetime = 3600;
if (!$tpl->is_cached())
{
$rsNews = sql("SELECT `news`.`date_created`, `news_topics`.`name`, `news`.`content` FROM `news` INNER JOIN `news_topics` ON `news`.`topic`=`news_topics`.`id` WHERE `news`.`display`=1 ORDER BY `news`.`date_created` DESC LIMIT 250");
$tpl->assign_rs('news', $rsNews);
sql_free_result($rsNews);
}
$tpl->display();
?>