pingus-cvs
[Top][All Lists]
Advanced

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

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


From: address@hidden
Subject: [Pingus-CVS] rev 2240 - trunk/contrib/level_comment_tool
Date: Sat, 10 Apr 2004 18:56:22 +0200

Author: torangan
Date: 2004-04-10 18:56:22 +0200 (Sat, 10 Apr 2004)
New Revision: 2240

Modified:
   trunk/contrib/level_comment_tool/index.php
Log:
changed level ending to .pingus


Modified: trunk/contrib/level_comment_tool/index.php
===================================================================
--- trunk/contrib/level_comment_tool/index.php  2004-04-10 16:31:14 UTC (rev 
2239)
+++ trunk/contrib/level_comment_tool/index.php  2004-04-10 16:56:22 UTC (rev 
2240)
@@ -94,8 +94,8 @@
     $levels = Array();
     $dir2 = dir("data/levels/".$file);
     while ($file2 = $dir2->read())
-      if (strpos($file2, ".plf") !== FALSE)
-        $levels[] = str_replace( ".plf", "", $file2 );
+      if (strpos($file2, ".pingus") !== FALSE)
+        $levels[] = str_replace( ".pingus", "", $file2 );
     $dir2->close();
     natcasesort( $levels );
 
@@ -174,7 +174,7 @@
             print "Rating:" . str_repeat( "*", intval($ldata["avgrating"])) . 
"<br>";
           print " view <a href='http://pingus.seul.org/levels/50/$jpg' 
target='levelview'>half</a>" .
             "/<a href='http://pingus.seul.org/levels/100/$jpg' 
target='levelview'>full</a> | " .
-            "play with <a href='data/levels/" . urlencode($c["name"]) . "/" . 
urlencode($l) . ".plf'>CVS</a>" .
+            "play with <a href='data/levels/" . urlencode($c["name"]) . "/" . 
urlencode($l) . ".pingus'>Subversion</a>" .
             " / <a href='data/levels/" . urlencode($c["name"]) . "/" . 
urlencode($l) . ".xml'>0.6</a> version" .
             "<br>";
           print "</small></td>\n";
@@ -201,7 +201,7 @@
   $l = $_GET["l"];
   $curlevelmd5 = FALSE;
 
-  $levelfile = sandbox_check( "data/levels/$c/$l.plf", "data/" );
+  $levelfile = sandbox_check( "data/levels/$c/$l.pingus", "data/" );
   if ( !is_file( $levelfile ))
   {
     print "<h2>Level '" . htmlentities($c) . " / " .
@@ -253,7 +253,7 @@
           "  <img src='http://pingus.seul.org/levels/thumb/$jpg' 
border='1'><br/>\n".
           "  see <a href='http://pingus.seul.org/levels/50/$jpg' 
target='levelview'>half</a> / \n".
           "  <a href='http://pingus.seul.org/levels/100/$jpg' 
target='levelview'>full</a> size\n<br>".
-          "<a href='data/levels/" . htmlentities($c) . "/" . htmlentities($l) 
. ".plf'>play</a>\n" .
+          "<a href='data/levels/" . htmlentities($c) . "/" . htmlentities($l) 
. ".pingus'>play</a>\n" .
           "</td>\n" );
       }
     }
@@ -316,7 +316,7 @@
         "  <comment>" . 
xmlentities(decode_html(stripslashes($_POST["comment"]))) . "</comment>\n" .
         "</pingus-level-comment>\n";
 
-      $filename = "comments/$c/$l/" . substr(md5($str),0,8) . ".plf";
+      $filename = "comments/$c/$l/" . substr(md5($str),0,8) . ".pingus";
       if ( !file_exists($filename) || is_writable($filename))
       {
         if (!$fp = fopen($filename, 'w'))





reply via email to

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