[Collab-qa-commits] r737 - wnpp

sping-guest at alioth.debian.org sping-guest at alioth.debian.org
Thu Mar 13 21:19:55 UTC 2008


Author: sping-guest
Date: 2008-03-13 21:19:54 +0000 (Thu, 13 Mar 2008)
New Revision: 737

Modified:
   wnpp/cron_sync_list.php5
   wnpp/cron_sync_popcon.php5
   wnpp/index.php5
   wnpp/news.php5
Log:
- Connect before calling MySQL escapes
- Implicit flushing for cron scripts
- Bring back popcon gap check
- Apply new web location

Modified: wnpp/cron_sync_list.php5
===================================================================
--- wnpp/cron_sync_list.php5	2008-03-11 08:51:11 UTC (rev 736)
+++ wnpp/cron_sync_list.php5	2008-03-13 21:19:54 UTC (rev 737)
@@ -36,6 +36,9 @@
 
 $done_soap_queries = 0;
 
+ob_implicit_flush(TRUE);
+ob_end_flush();
+
 function cleanup() {
     global $link;
 

Modified: wnpp/cron_sync_popcon.php5
===================================================================
--- wnpp/cron_sync_popcon.php5	2008-03-11 08:51:11 UTC (rev 736)
+++ wnpp/cron_sync_popcon.php5	2008-03-13 21:19:54 UTC (rev 737)
@@ -27,12 +27,15 @@
 
 $LAST_RUN_FILENAME = "__last_sync_popcon_run";
 $MINIMUM_RUN_GAP = 60 * 60 * 12; // 12 hours
-$ENABLE_GAP_CHECK = FALSE;
+$ENABLE_GAP_CHECK = TRUE;
 
 $KEEP_FILES = 4;
 $POPCON_DIR = "popcon";
 
 
+ob_implicit_flush(TRUE);
+ob_end_flush();
+
 function cleanup() {
     global $link;
 

Modified: wnpp/index.php5
===================================================================
--- wnpp/index.php5	2008-03-11 08:51:11 UTC (rev 736)
+++ wnpp/index.php5	2008-03-13 21:19:54 UTC (rev 737)
@@ -438,6 +438,9 @@
 echo "        </form>\n";
 
 
+// Connect
+$link = mysql_connect($SERVER, $USERNAME, $PASSWORD);
+mysql_select_db($DATABASE);
 
 function make_like_chain($user_col, $words, $empty_value, $op) {
     if (empty($words)) {
@@ -491,10 +494,6 @@
 
 
 
-// Connect
-$link = mysql_connect($SERVER, $USERNAME, $PASSWORD);
-mysql_select_db($DATABASE);
-
 // Get list
 $condition = "($type_match AND $project_match AND $description_match AND $owner_match)";
 

Modified: wnpp/news.php5
===================================================================
--- wnpp/news.php5	2008-03-11 08:51:11 UTC (rev 736)
+++ wnpp/news.php5	2008-03-13 21:19:54 UTC (rev 737)
@@ -102,7 +102,7 @@
     global $DEBUG;
     global $FEED_TITLE;
     $lastBuildDate = date('r', $unix_content_change);
-    $self_url = "http://debian.binera.de/wnpp/news.php5?data=$data&amp;amp;title_format=$title_format";
+    $self_url = "http://wnpp.debian.net/news.php5?data=$data&amp;amp;title_format=$title_format";
 
     if (!$DEBUG) {
         echo "    <title>$FEED_TITLE</title>\n";
@@ -197,7 +197,7 @@
     $url = 'http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=' . $ident;
     switch ($guid_layout) {
     case 1:
-        $guid = 'http://debian.binera.de/wnpp/' . $ident . '/' . $entry['unix_event_stamp'];
+        $guid = 'http://wnpp.debian.net/' . $ident . '/' . $entry['unix_event_stamp'];
         break;
 
     case 0: // fall through




More information about the Collab-qa-commits mailing list