Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv19330
Modified Files:
index.php serendipity_db_mysql.inc.php
serendipity_functions.inc.php
Log Message:
make month selection work again
Index: index.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- index.php 28 Mar 2003 20:05:24 -0000 1.1.1.1
+++ index.php 29 Mar 2003 16:13:08 -0000 1.2
@@ -9,6 +9,7 @@
$range = $matches[2];
$_GET['serendipity']['action'] = "read";
$_GET['serendipity']['range'] = $range;
+
if (strlen($range) == 6) {
$date = date("m/Y", mktime(0,0,0, substr($range, 4, 6), 2, substr($range, 0, 4)));
@@ -28,7 +29,7 @@
fclose($fp);
}
- print $data;
+ echo $data;
} else if (preg_match('@/(e_(\d+)\.html)@', $uri, $matches)) {
$id = $matches[2];
Index: serendipity_db_mysql.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_db_mysql.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- serendipity_db_mysql.inc.php 28 Mar 2003 20:05:24 -0000 1.1.1.1
+++ serendipity_db_mysql.inc.php 29 Mar 2003 16:13:08 -0000 1.2
@@ -16,7 +16,7 @@
'both' => MYSQL_BOTH
);
- //highlight_string(var_export($sql, 1));
+// highlight_string(var_export($sql, 1));
$c = mysql_db_query($serendipity['dbName'], $sql);
if (!$c) {
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_functions.inc.php 29 Mar 2003 15:28:55 -0000 1.2
+++ serendipity_functions.inc.php 29 Mar 2003 16:13:08 -0000 1.3
@@ -195,7 +195,7 @@
$day = (int)substr($range, 6, 2);
$startts = mktime(0, 0, 0, $month, $day, $year);
- $endts = mktime(0, 0, 0, $month, $day+1, $year);
+ $endts = mktime(0, 0, 0, $month+1, 0, $year);
$and = " WHERE timestamp >= $startts AND timestamp <= $endts ";
}
|