[Swfed-svn] swfed-svn [83] $argc, $argv の参照をやめる

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 16日 (木) 00:35:34 JST


Revision: 83
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=83
Author:   yoya
Date:     2008-10-16 00:35:34 +0900 (Thu, 16 Oct 2008)

Log Message:
-----------
$argc, $argv の参照をやめる

Modified Paths:
--------------
    trunk/www/swfimage.php
    trunk/www/swfimagelist.php


-------------- next part --------------
Modified: trunk/www/swfimage.php
===================================================================
--- trunk/www/swfimage.php	2008-10-15 15:32:55 UTC (rev 82)
+++ trunk/www/swfimage.php	2008-10-15 15:35:34 UTC (rev 83)
@@ -2,15 +2,9 @@
 
 require_once('define.php');
 
-if (@$argc > 3) {
-    $id = $argv[1];
-    $image_id = $argv[2];
-    $ext = $argv[3];
-} else {
-    $id = $_REQUEST['id'];
-    $image_id = $_REQUEST['image_id'];
-    $ext = $_REQUEST['ext'];
-}
+$id       = $_REQUEST['id'];
+$image_id = $_REQUEST['image_id'];
+$ext      = $_REQUEST['ext'];
 
 $image_filename = "$tmp_prefix$id-$image_id$ext";
 $image_data = file_get_contents($image_filename);

Modified: trunk/www/swfimagelist.php
===================================================================
--- trunk/www/swfimagelist.php	2008-10-15 15:32:55 UTC (rev 82)
+++ trunk/www/swfimagelist.php	2008-10-15 15:35:34 UTC (rev 83)
@@ -2,11 +2,7 @@
 
 require_once('define.php');
 
-if (@$argc > 1) {
-    $id = $argv[1];
-} else {
-    $id = $_REQUEST['id'];
-}
+$id = $_REQUEST['id'];
 
 $filename = "$tmp_prefix$id.swf";
 $swfdata = file_get_contents($filename);


Swfed-svn メーリングリストの案内
Back to archive index