ようこそ! このブログは、PHPとMysqlを使って作成したオリジナルプログラムを、QHMに読み込んで表示させています。

daily_archives.php

FrontPage

daily_archives.phpのソースコード

<?
require("MySmarty.class.php");
require('Settings.class.php');
require('Categories.class.php');
require('Topic.class.php');

$year = $_GET['year'];
if( $year=='' ){ 
	$year = $_POST['year'];
}
if( $year=='' ){ 
	header("Location: index.php" );
	exit;
}
$month = $_GET['month'];
if( $month=='' ){ 
	$month = $_POST['month'];
}
if( $month=='' ){ 
	header("Location: index.php" );
	exit;
}
$day = $_GET['day'];
if( $day=='' ){ 
	$day = $_POST['day'];
}
if( $day=='' ){ 
	header("Location: index.php" );
	exit;
}

$smarty = new MySmarty();
$settings  = new Settings;
$categories  = new Categories;
$topic  = new Topic;

$settings->loadSettings();

$set['maintitle'] = $settings->maintitle;
$set['subtitle'] = $settings->subtitle;
$set['maxtopics'] = $settings->maxtopics;
$set['username'] = $settings->username;
$set['passwd'] = $settings->passwd;
$set['mailaddr'] = $settings->mailaddr;

$topics = $topic->getTopicsDaily( $year,  $month ,$day );

$smarty->assign( "settings", $set );
$smarty->assign( "topics", $topics );

$smarty->display( "archives_list.html" );

?>

powered by Quick Homepage Maker 4.25
based on PukiWiki 1.4.7 License is GPL. QHM

最新の更新 RSS  Valid XHTML 1.0 Transitional