[Smartupload-svn] [39] DBの切断を追加

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 5月 10日 (火) 00:56:06 JST


Revision: 39
          http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=39
Author:   hryksbt
Date:     2011-05-10 00:56:06 +0900 (Tue, 10 May 2011)

Log Message:
-----------
DBの切断を追加

Modified Paths:
--------------
    trunk/SmartUpload/auth.php
    trunk/SmartUpload/download_file.php
    trunk/SmartUpload/upload_file.php
    trunk/SmartUpload/upload_form.php
    trunk/SmartUpload/user_add.php
    trunk/SmartUpload/user_form.php

Added Paths:
-----------
    trunk/SmartUpload/data/OpenSangoksuhi.apk


-------------- next part --------------
Modified: trunk/SmartUpload/auth.php
===================================================================
--- trunk/SmartUpload/auth.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/auth.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -2,7 +2,7 @@
 /*
  * SmartUpload/auth.php
  * @author Hiroyuki Shibata
- * 2011/05/6
+ * 2011/05/09
  * Rev 1.0
  *
  */
@@ -78,6 +78,8 @@
 		login_form();
 
 	}
+
+	$pdo = null;
 ?>
 </body>
 </html>
\ No newline at end of file

Added: trunk/SmartUpload/data/OpenSangoksuhi.apk
===================================================================
(Binary files differ)


Property changes on: trunk/SmartUpload/data/OpenSangoksuhi.apk
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/SmartUpload/download_file.php
===================================================================
--- trunk/SmartUpload/download_file.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/download_file.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -2,7 +2,7 @@
 /*
  * SmartUpload/download_file.php
  * @author Hiroyuki Shibata
- * 2011/05/06
+ * 2011/05/09
  * Rev 1.0
  *
  */
@@ -43,6 +43,8 @@
 		</tr>
 	<?php
 	}
+
+	$pdo = null;
 	?>
 		</table>
 </body>

Modified: trunk/SmartUpload/upload_file.php
===================================================================
--- trunk/SmartUpload/upload_file.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/upload_file.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -91,6 +91,7 @@
 
 	}
 
+	$pdo = null;
 	?>
 </body>
 </html>

Modified: trunk/SmartUpload/upload_form.php
===================================================================
--- trunk/SmartUpload/upload_form.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/upload_form.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -35,6 +35,8 @@
 		</option>
 <?php
 	}
+
+	$pdo = null;
 ?>
 				 </select>
 コメント		:<textarea name="comment" rows=3 cols=50 wrap="virtual"></textarea> ※ 全角512文字以内<br>

Modified: trunk/SmartUpload/user_add.php
===================================================================
--- trunk/SmartUpload/user_add.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/user_add.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -2,7 +2,7 @@
 /*
  * SmartUpload/user_add.php
  * @author Hiroyuki Shibata
- * 2011/05/06
+ * 2011/05/09
  * Rev 1.0
  *
  */
@@ -83,6 +83,7 @@
 
 	}
 
+	$pdo = null;
 	?>
 </body>
 </html>
\ No newline at end of file

Modified: trunk/SmartUpload/user_form.php
===================================================================
--- trunk/SmartUpload/user_form.php	2011-05-09 15:36:53 UTC (rev 38)
+++ trunk/SmartUpload/user_form.php	2011-05-09 15:56:06 UTC (rev 39)
@@ -2,7 +2,7 @@
 /*
  * SmartUpload/user_form.php
  * @author Hiroyuki Shibata
- * 2011/05/06
+ * 2011/05/09
  * Rev 1.0
  *
  */
@@ -31,20 +31,20 @@
 氏名		:<input type="text" name="name"> ※ 全角32文字以内(半角64文字以内)<br>
 国		:<select name="country">
 	<?php
-	require_once("include/database.php");
+		require_once("include/database.php");
 
-	$value = 0;
+		$value = 0;
 
-	$stmt = $db->prepare("SELECT * FROM country");
-	$stmt->execute();
+		$stmt = $db->prepare("SELECT * FROM country");
+		$stmt->execute();
 
-	while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
+		while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
 	?>
-		<option value="<?php print($row["num"]); ?>">
-			<?php print($row["country_name"]); ?>
-		</option>
+			<option value="<?php print($row["num"]); ?>">
+				<?php print($row["country_name"]); ?>
+			</option>
 	<?php
-	}
+		}
 	?>
 </select>
 <br>
@@ -54,6 +54,8 @@
 			</pre>
 		</form>
 	<?php
+		$pdo = null;
+
 	}
 	?>
 </body>



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