Mercurial > defr > DualBlog
comparison index.php @ 5:5bfffcb2624b
Clean-up
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Sat, 20 Oct 2007 16:58:13 +0200 |
parents | 629389204276 |
children | 2ea1b19e21f3 |
comparison
equal
deleted
inserted
replaced
4:3adedf57dc77 | 5:5bfffcb2624b |
---|---|
3 ini_set("display_errors", "off"); | 3 ini_set("display_errors", "off"); |
4 include("classes.php"); | 4 include("classes.php"); |
5 $type = $_GET['type']; | 5 $type = $_GET['type']; |
6 $year = $_GET['year']; | 6 $year = $_GET['year']; |
7 $month = $_GET['month']; | 7 $month = $_GET['month']; |
8 $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; $prevYear = ($month == 1)?$year-1:$year; | 8 $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; |
9 $nextMonth = $month % 12 + 1; $nextYear = ($month == 12)?$year+1:$year; | 9 $prevYear = ($month == 1)? $year-1 : $year; |
10 $nextMonth = $month % 12 + 1; | |
11 $nextYear = ($month == 12) ? $year+1 : $year; | |
10 $Data = new DataAccess; | 12 $Data = new DataAccess; |
11 include("top.php"); | 13 include("top.php"); |
12 $Data->Connect(); | 14 $Data->Connect(); |
13 if($type != "cal") | 15 if($type != "cal") |
14 $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); | 16 $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); |