SVN: toys/stbr/index.php

shadzik shadzik at pld-linux.org
Tue Nov 27 19:26:47 CET 2007


Author: shadzik
Date: Tue Nov 27 19:26:46 2007
New Revision: 9111

Modified:
   toys/stbr/index.php
Log:
- add tracking functionality (display just the request you sent)


Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php	(original)
+++ toys/stbr/index.php	Tue Nov 27 19:26:46 2007
@@ -291,7 +291,13 @@
 	$query = "";	
 }
 
-$query = "SELECT * FROM stbr ORDER BY date DESC $query";
+if(isset($_GET['show']) and isset($_GET['date']))
+{
+	$query = "select * from stbr where sender = \"{$_GET['show']}\" and date = \"{$_GET['date']}\" order by date DESC";
+} else {
+	$query = "SELECT * FROM stbr ORDER BY date DESC $query";
+}
+
 $query = sqlite_query($db, $query);
 
 while($p = sqlite_fetch_array($query))


More information about the pld-cvs-commit mailing list