[Smartupload-svn] [30] session_start(); の行の書き位置を変更

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2011年 5月 5日 (木) 00:25:07 JST


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

Log Message:
-----------
session_start();の行の書き位置を変更

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

Removed Paths:
-------------
    trunk/SmartUpload/login.php


-------------- next part --------------
Modified: trunk/SmartUpload/auth.php
===================================================================
--- trunk/SmartUpload/auth.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/auth.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -1,5 +1,4 @@
 <?php
-	session_start();
 /*
  * SmartUpload/auth.php
  * @author Hiroyuki Shibata
@@ -7,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 
 <html>

Modified: trunk/SmartUpload/download_file.php
===================================================================
--- trunk/SmartUpload/download_file.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/download_file.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -6,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 <html>
 <head>

Deleted: trunk/SmartUpload/login.php
===================================================================
--- trunk/SmartUpload/login.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/login.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -1,77 +0,0 @@
-<?php
-	session_start();
-/*
- * SmartUpload/main.php
- * @author Hiroyuki Shibata
- * 2011/05/4
- * Rev 1.0
- *
- */
-?>
-
-<html>
-<head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<title>SmartUpload</title>
-</head>
-<body>
-
-<?php
-	require_once("include/database.php");
-
-	$userid = $_REQUEST['id'];
-	$password = $_REQUEST['pass'];
-
-	function login_form() {
-?>
-		<!-- ログインフォーム -->
-		<form name="login_form" action="login.php" method="post">
-			ID(アカウント)	:<input type="text" name="id">
-			パスワード	:<input type="password" name="pass">
-			<input type="submit"  value="ログイン" />
-			<input type="hidden" name="cmd" value="login"/>
-		</form>
-<?php
-	}
-
-	if( $_REQUEST['cmd'] == "login" ) {
-
-		// ユーザ名&パスワードチェック
-		$stmt = $db->prepare("SELECT * FROM user_info WHERE userid= ? AND password= ? ");
-		$stmt->execute(array($userid, $password));
-
-		if ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
-
-			// ログイン成功時
-			$_SESSION["id"] = $_REQUEST["id"];
-			print ($row["fullname"]."さん");
-?>
-			<!-- ログアウトボタン -->
-				<form name="logout_form" action="login.php" method="post">
-					<input type="submit"  value="ログアウト">
-					<input type="hidden" name="cmd" value="logout"/>
-				</form>
-<?php
-		} else {
-
-			// ログイン失敗時
-			print ("ログインに失敗しました");
-			login_form();
-
-		}
-
-	} else if( $_REQUEST['cmd'] == "logout" ) {
-
-		print ("ログアウトしました");
-		session_destroy();
-		login_form();
-
-	} else {
-
-		// 未ログインの場合
-		login_form();
-
-	}
-?>
-</body>
-</html>
\ No newline at end of file

Modified: trunk/SmartUpload/upload_file.php
===================================================================
--- trunk/SmartUpload/upload_file.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/upload_file.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -6,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 <html>
 <head>
@@ -17,7 +18,6 @@
 		<b>File Uploader</b>
 	</p>
 	<?php
-	//session_start();
 
 	// メイン処理 //
 

Modified: trunk/SmartUpload/upload_form.php
===================================================================
--- trunk/SmartUpload/upload_form.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/upload_form.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -6,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 
 <html>

Modified: trunk/SmartUpload/user_add.php
===================================================================
--- trunk/SmartUpload/user_add.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/user_add.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -6,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 <html>
 <head>

Modified: trunk/SmartUpload/user_form.php
===================================================================
--- trunk/SmartUpload/user_form.php	2011-05-04 14:24:06 UTC (rev 29)
+++ trunk/SmartUpload/user_form.php	2011-05-04 15:25:06 UTC (rev 30)
@@ -6,6 +6,7 @@
  * Rev 1.0
  *
  */
+	session_start();
 ?>
 <html>
 <head>



Smartupload-svn メーリングリストの案内
アーカイブの一覧に戻る