[xiph-commits] r18706 - branches/dir.xiph.org/inc

dm8tbr at svn.xiph.org dm8tbr at svn.xiph.org
Sun Nov 18 05:34:17 PST 2012


Author: dm8tbr
Date: 2012-11-18 05:34:17 -0800 (Sun, 18 Nov 2012)
New Revision: 18706

Modified:
   branches/dir.xiph.org/inc/inc.db.php
   branches/dir.xiph.org/inc/lib.apilog.php
   branches/dir.xiph.org/inc/lib.errors.php
Log:
Changes in include files for dir.xiph.org
Enabled logging, corrected email for errors.


Modified: branches/dir.xiph.org/inc/inc.db.php
===================================================================
--- branches/dir.xiph.org/inc/inc.db.php	2012-11-17 19:15:21 UTC (rev 18705)
+++ branches/dir.xiph.org/inc/inc.db.php	2012-11-18 13:34:17 UTC (rev 18706)
@@ -11,9 +11,9 @@
 	define('DATA_DB_PASS', '6.NvxjR7B5j3Q');
 	define('DATA_DB_NAME', 'dir_xiph_org_test');
 	
-	define('LOG_DB_HOST', 'theetete.radiopytagor.org');
+	define('LOG_DB_HOST', 'localhost');
 	define('LOG_DB_USER', 'dir_xiph_org_t');
-	define('LOG_DB_PASS', 'y2V1ydXuXwLKg');
+	define('LOG_DB_PASS', '6.NvxjR7B5j3Q');
 	define('LOG_DB_NAME', 'dir_xiph_org_test');
 }
 elseif (ENVIRONMENT == 'prod')
@@ -23,9 +23,9 @@
 	define('DATA_DB_PASS', '5wCjLEVmAJnmM');
 	define('DATA_DB_NAME', 'dir_xiph_org');
 	
-	define('LOG_DB_HOST', 'theetete.radiopytagor.org');
+	define('LOG_DB_HOST', 'localhost');
 	define('LOG_DB_USER', 'dir_xiph_org');
-	define('LOG_DB_PASS', 'xf0M1E1cup0FM');
+	define('LOG_DB_PASS', '5wCjLEVmAJnmM');
 	define('LOG_DB_NAME', 'dir_xiph_org');
 }
 else

Modified: branches/dir.xiph.org/inc/lib.apilog.php
===================================================================
--- branches/dir.xiph.org/inc/lib.apilog.php	2012-11-17 19:15:21 UTC (rev 18705)
+++ branches/dir.xiph.org/inc/lib.apilog.php	2012-11-18 13:34:17 UTC (rev 18706)
@@ -5,7 +5,7 @@
     public static function log($result, $listen_url = null,
                                $server_id = null, $mountpoint_id = null)
     {
-/*        $db = DirXiphOrgLogDBC::getInstance();
+        $db = DirXiphOrgLogDBC::getInstance();
         
         $ip = utils::getRealIp();
         $ip = $ip !== false ? $ip : '127.0.0.1';
@@ -17,7 +17,7 @@
                              $ip,
                              $listen_url !== null ? hash('md5', $listen_url) : 0,
                              $server_id, $mountpoint_id);
-        $db->noReturnQuery($sql);*/
+        $db->noReturnQuery($sql);
         return true;
     }
     
@@ -70,7 +70,7 @@
     
     public static function serverRefused($reason, $listen_url = false)
     {
-/*        $db = DirXiphOrgLogDBC::getInstance();
+        $db = DirXiphOrgLogDBC::getInstance();
         
         $ip = utils::getRealIp();
         $ip = $ip !== false ? $ip : '127.0.0.1';
@@ -82,7 +82,7 @@
                              $ip,
                              $listen_url != false ? $db->escape($listen_url) : '',
                              $listen_url != false ? sprintf('%u', crc32($listen_url)) : 0);
-        $db->noReturnQuery($sql);*/
+        $db->noReturnQuery($sql);
         return true;
     }
     

Modified: branches/dir.xiph.org/inc/lib.errors.php
===================================================================
--- branches/dir.xiph.org/inc/lib.errors.php	2012-11-17 19:15:21 UTC (rev 18705)
+++ branches/dir.xiph.org/inc/lib.errors.php	2012-11-18 13:34:17 UTC (rev 18706)
@@ -1,6 +1,6 @@
 <?php
 
-define('ERROR_RECIPIENT', 'annie.dupont1137 at gmail.com');
+define('ERROR_RECIPIENT', 'root at localhost');
 define('ERROR_SENDER', 'bug');
 
 function mail_error($mail_to, $mail_from,
@@ -13,7 +13,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
         <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-        <title>Erreur</title>
+        <title>Error</title>
         <style type="text/css">
 
         </style>



More information about the commits mailing list