typo fixed in TOS management and some debugging log removed
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 12 Dec 2013 06:17:10 +0000 (07:17 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 12 Dec 2013 06:17:10 +0000 (07:17 +0100)
web/Obj/brisk.phh
web/Obj/dbase_pgsql.phh
web/Obj/sac-a-push.phh

index 4b12709..35196d0 100644 (file)
@@ -2363,7 +2363,6 @@ class Room
           //                   from the socket, waiting if necessary
           //
 
-          fprintf(STDERR, "\n\nDENTRO QUI\n\n");
           ob_start();
           index_wr_main($this, $addr, $get, $post, $cookie);
           $content = ob_get_contents();
index e744425..707409f 100644 (file)
@@ -205,7 +205,7 @@ class BriskDB
         GLOBAL $G_dbpfx;
 
         $user_sql = sprintf("UPDATE %susers SET (tos_vers) = ('%s') WHERE code = %d;",
-                            $G_dbpfx, escsql($toss_vers), $code);
+                            $G_dbpfx, escsql($tos_vers), $code);
         fprintf(STDERR, "REQUEST [%s]\n", $user_sql);
         if ( ! (($user_pg  = $this->query($user_sql)) != FALSE && pg_affected_rows($user_pg) == 1) ) {
              return FALSE;
index 5a525bb..7292a7b 100644 (file)
@@ -803,7 +803,6 @@ class Sac_a_push {
                         if (!strncmp($path, SITE_PREFIX, SITE_PREFIX_LEN)) {
                             $rret = $this->app->request_mgr($this, $header, $header_out, $new_socket, substr($path, SITE_PREFIX_LEN), $addr, $get, $post, $cookie);
                         }
-                        fprintf(STDERR, "\n\n DI QUI PASSA [%s]\n\n", $rret);
                         if ($rret == FALSE) {
                             // FIXME: manage 404 !!!
                             printf("TODO: fix unknown page\n");