pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] rev 2293 - trunk/contrib/level_comment_tool


From: address@hidden
Subject: [Pingus-CVS] rev 2293 - trunk/contrib/level_comment_tool
Date: Sat, 17 Apr 2004 14:18:09 +0200

Author: torangan
Date: 2004-04-17 14:18:09 +0200 (Sat, 17 Apr 2004)
New Revision: 2293

Modified:
   trunk/contrib/level_comment_tool/index.php
   trunk/contrib/level_comment_tool/level-cache.inc
Log:
db / demo upload patches


Modified: trunk/contrib/level_comment_tool/index.php
===================================================================
--- trunk/contrib/level_comment_tool/index.php  2004-04-17 08:23:17 UTC (rev 
2292)
+++ trunk/contrib/level_comment_tool/index.php  2004-04-17 12:18:09 UTC (rev 
2293)
@@ -412,7 +412,7 @@
        // ==================================================================
     // Save uploaded Demofile
     // ==================================================================
-    if ( isset($_POST["adddemo"]))
+    if ( $_POST["adddemo"] == 1)
     {
       //create directory if necessary
       if ( !is_dir("comments/$c/$l/demos") &&

Modified: trunk/contrib/level_comment_tool/level-cache.inc
===================================================================
--- trunk/contrib/level_comment_tool/level-cache.inc    2004-04-17 08:23:17 UTC 
(rev 2292)
+++ trunk/contrib/level_comment_tool/level-cache.inc    2004-04-17 12:18:09 UTC 
(rev 2293)
@@ -34,7 +34,7 @@
 global $db_user;
 global $db_pass;
 
-$DBMS = 'DBA';
+$DBMS = 'MySQL';
 $db_handle = False;
 $db_tablename = 'lct_cache';
 $db_name = 'pingus';
@@ -69,12 +69,14 @@
 
 function open_cache()
 {
+  global $DBMS;
   global $db_handle;
-  global $DBMS;
   global $db_tablename;
   global $db_name;
+  global $db_host;
+  global $db_user;
+  global $db_pass;
 
-
   if ( !$db_handle )
   {
     switch( $DBMS )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]