From svnnotify @ sourceforge.jp Mon Apr 11 23:20:18 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 11 Apr 2011 23:20:18 +0900 Subject: [Smartupload-svn] [1] Message-ID: <1302531618.179798.28009.nullmailer@users.sourceforge.jp> Revision: 1 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=1 Author: hryksbt Date: 2011-04-11 23:20:17 +0900 (Mon, 11 Apr 2011) Log Message: ----------- Added Paths: ----------- trunk/ trunk/Documents/ trunk/Documents/proposal/ trunk/Documents/proposal/DigitalContentsUp&Down.ppt -------------- next part -------------- Added: trunk/Documents/proposal/DigitalContentsUp&Down.ppt =================================================================== (Binary files differ) Property changes on: trunk/Documents/proposal/DigitalContentsUp&Down.ppt ___________________________________________________________________ Added: svn:mime-type + application/octet-stream From svnnotify @ sourceforge.jp Sun Apr 17 08:56:00 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 17 Apr 2011 08:56:00 +0900 Subject: [Smartupload-svn] [2] Message-ID: <1302998160.235988.26049.nullmailer@users.sourceforge.jp> Revision: 2 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=2 Author: hryksbt Date: 2011-04-17 08:55:59 +0900 (Sun, 17 Apr 2011) Log Message: ----------- Added Paths: ----------- trunk/SmartUpload/ trunk/SmartUpload/.buildpath trunk/SmartUpload/.project trunk/SmartUpload/.settings/ trunk/SmartUpload/.settings/org.eclipse.php.core.prefs trunk/SmartUpload/data/ trunk/SmartUpload/data/06c69f2a.jpg trunk/SmartUpload/include/ trunk/SmartUpload/include/database.php trunk/SmartUpload/main.php trunk/SmartUpload/upload_file.php trunk/SmartUpload/upload_form.php -------------- next part -------------- Added: trunk/SmartUpload/.buildpath =================================================================== --- trunk/SmartUpload/.buildpath (rev 0) +++ trunk/SmartUpload/.buildpath 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,5 @@ + + + + + Added: trunk/SmartUpload/.project =================================================================== --- trunk/SmartUpload/.project (rev 0) +++ trunk/SmartUpload/.project 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,22 @@ + + + SmartUpload + + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.eclipse.dltk.core.scriptbuilder + + + + + + org.eclipse.php.core.PHPNature + + Added: trunk/SmartUpload/.settings/org.eclipse.php.core.prefs =================================================================== --- trunk/SmartUpload/.settings/org.eclipse.php.core.prefs (rev 0) +++ trunk/SmartUpload/.settings/org.eclipse.php.core.prefs 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,5 @@ +#Sun Apr 17 00:12:11 JST 2011 +eclipse.preferences.version=1 +include_path=0;/SmartUpload +phpVersion=php5.3 +use_asp_tags_as_php=false Added: trunk/SmartUpload/data/06c69f2a.jpg =================================================================== (Binary files differ) Property changes on: trunk/SmartUpload/data/06c69f2a.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php (rev 0) +++ trunk/SmartUpload/include/database.php 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,24 @@ + "mysql", + "username" => "root", + "password" => "san59shi", + "hostspec" => "localhost", + "database" => "upload", + ); + $mdb2 =& MDB2::connect( $dsn, $options ); + + // 文字コードの指定 + $mdb2->setCharset( "utf8" ); +?> \ No newline at end of file Added: trunk/SmartUpload/main.php =================================================================== --- trunk/SmartUpload/main.php (rev 0) +++ trunk/SmartUpload/main.php 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,3 @@ + \ No newline at end of file Added: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php (rev 0) +++ trunk/SmartUpload/upload_file.php 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,47 @@ + + + + +SmartUpload + + +

file uploader

+ $filename uploaded"); + + //データベースに記録 + $sql = "INSERT INTO datainfo ( filename, uploaddate, data_size, )"; + $sql .= "VALUES( "; + $sql .= "?,"; + $sql .= "now(),"; + $sql .= "?)"; + $stmt = $mdb2->prepare( $sql ); + $stmt->execute( + array( + $_REQUEST["customer_code"], + $_REQUEST["name"], + ) + ); + } + +?> + + \ No newline at end of file Added: trunk/SmartUpload/upload_form.php =================================================================== --- trunk/SmartUpload/upload_form.php (rev 0) +++ trunk/SmartUpload/upload_form.php 2011-04-16 23:55:59 UTC (rev 2) @@ -0,0 +1,20 @@ + + + +SmartUpload + + +
+ + +
+ + From svnnotify @ sourceforge.jp Mon Apr 18 01:56:22 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 18 Apr 2011 01:56:22 +0900 Subject: [Smartupload-svn] [3] Message-ID: <1303059382.041158.8494.nullmailer@users.sourceforge.jp> Revision: 3 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=3 Author: hryksbt Date: 2011-04-18 01:56:21 +0900 (Mon, 18 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/upload_file.php trunk/SmartUpload/upload_form.php Added Paths: ----------- trunk/SmartUpload/09_02_fileup.php -------------- next part -------------- Added: trunk/SmartUpload/09_02_fileup.php =================================================================== --- trunk/SmartUpload/09_02_fileup.php (rev 0) +++ trunk/SmartUpload/09_02_fileup.php 2011-04-17 16:56:21 UTC (rev 3) @@ -0,0 +1,39 @@ + + + + + +ファイルアップローダー +
+
+ +
+
"; + echo ""; + + //} else { + //echo "jpg かgif のファイルしかアップできません。或いはハイフン以外の記号があります。"; + //} + } else { + echo "$filesize Byte ファイルサイズが大きすぎます。
100000 Byte 以下にしてください。"; + } +} else { +echo "参照で画像ファイルを指定して、表示をクリック!"; +} +?> +
+ + \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-16 23:55:59 UTC (rev 2) +++ trunk/SmartUpload/upload_file.php 2011-04-17 16:56:21 UTC (rev 3) @@ -13,33 +13,39 @@ SmartUpload -

file uploader

+

File Uploader

$filename uploaded"); + print(" $filename is uploaded.
"); + print("size = "."$filesize"." bytes
"); - //データベースに記録 - $sql = "INSERT INTO datainfo ( filename, uploaddate, data_size, )"; - $sql .= "VALUES( "; - $sql .= "?,"; - $sql .= "now(),"; - $sql .= "?)"; - $stmt = $mdb2->prepare( $sql ); + // データベースに記録 + $sql = "INSERT INTO data_info ( filename, uploaddate, datasize )"; + $sql .= " VALUES ( "; + $sql .= " ?, "; + $sql .= " now(), "; + $sql .= " ? ) "; + + echo $sql."
"; + + $stmt=$db->prepare("$sql"); $stmt->execute( - array( - $_REQUEST["customer_code"], - $_REQUEST["name"], + array ( + $filename, + $filesize ) ); + } ?> Modified: trunk/SmartUpload/upload_form.php =================================================================== --- trunk/SmartUpload/upload_form.php 2011-04-16 23:55:59 UTC (rev 2) +++ trunk/SmartUpload/upload_form.php 2011-04-17 16:56:21 UTC (rev 3) @@ -7,6 +7,7 @@ * */ ?> + SmartUpload @@ -14,7 +15,7 @@
- +
From svnnotify @ sourceforge.jp Tue Apr 19 00:46:26 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 19 Apr 2011 00:46:26 +0900 Subject: [Smartupload-svn] [4] Message-ID: <1303141586.733263.3490.nullmailer@users.sourceforge.jp> Revision: 4 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=4 Author: hryksbt Date: 2011-04-19 00:46:26 +0900 (Tue, 19 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/upload_file.php -------------- next part -------------- Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-17 16:56:21 UTC (rev 3) +++ trunk/SmartUpload/upload_file.php 2011-04-18 15:46:26 UTC (rev 4) @@ -29,22 +29,31 @@ print(" $filename is uploaded.
"); print("size = "."$filesize"." bytes
"); +// ↓↓↓↓↓↓↓ データベース管理 ↓↓↓↓↓↓↓ + + //↓↓↓test↓↓↓ + /* $conn = mysql_connect( "localhost", "root", "san59shi" ); + mysql_set_charset("utf8"); + mysql_select_db( "upload" ); + */ + + $abc = "select * from data_info"; + $res = "mysql_query( $abc ))"; + + while( $row = mysql_fetch_array($res)){ + print( $row["filename" ]."
" ); + print( $row["uploaddate"]."
" ); + print( $row["data_size" ] ); + } + //↑↑↑test↑↑↑ + // データベースに記録 - $sql = "INSERT INTO data_info ( filename, uploaddate, datasize )"; - $sql .= " VALUES ( "; - $sql .= " ?, "; - $sql .= " now(), "; - $sql .= " ? ) "; + $sql = "INSERT INTO data_info ( filename, uploaddate, data_size ) VALUES ( 'a', now(),1 ) "; echo $sql."
"; $stmt=$db->prepare("$sql"); - $stmt->execute( - array ( - $filename, - $filesize - ) - ); + $stmt->execute( array( $filename, $filesize ) ); } From svnnotify @ sourceforge.jp Tue Apr 19 00:47:41 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 19 Apr 2011 00:47:41 +0900 Subject: [Smartupload-svn] [5] Message-ID: <1303141661.355820.4739.nullmailer@users.sourceforge.jp> Revision: 5 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=5 Author: hryksbt Date: 2011-04-19 00:47:41 +0900 (Tue, 19 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/upload_file.php -------------- next part -------------- Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-18 15:46:26 UTC (rev 4) +++ trunk/SmartUpload/upload_file.php 2011-04-18 15:47:41 UTC (rev 5) @@ -32,7 +32,7 @@ // ↓↓↓↓↓↓↓ データベース管理 ↓↓↓↓↓↓↓ //↓↓↓test↓↓↓ - /* $conn = mysql_connect( "localhost", "root", "san59shi" ); + /* $conn = mysql_connect( "localhost", "root", "******" ); mysql_set_charset("utf8"); mysql_select_db( "upload" ); */ From svnnotify @ sourceforge.jp Sun Apr 24 23:35:01 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 24 Apr 2011 23:35:01 +0900 Subject: [Smartupload-svn] [6] Message-ID: <1303655701.200266.24963.nullmailer@users.sourceforge.jp> Revision: 6 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=6 Author: hryksbt Date: 2011-04-24 23:35:01 +0900 (Sun, 24 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php trunk/SmartUpload/upload_file.php Added Paths: ----------- trunk/SmartUpload/data/aaa.jpg trunk/SmartUpload/data/mopera.txt trunk/SmartUpload/test.php -------------- next part -------------- Added: trunk/SmartUpload/data/aaa.jpg =================================================================== (Binary files differ) Property changes on: trunk/SmartUpload/data/aaa.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/SmartUpload/data/mopera.txt =================================================================== --- trunk/SmartUpload/data/mopera.txt (rev 0) +++ trunk/SmartUpload/data/mopera.txt 2011-04-24 14:35:01 UTC (rev 6) @@ -0,0 +1,16 @@ +ID: kyc6twgy +PW: ekybutj2 + +DNS 220.159.212.201 +DNS 220.159.212.201 + +moperau ????+ +ID: d6uv788c +APN: mopera.net +PW: kaz34612 + +151 1 4 + +????? +00:80:87:19:DE:1C Property changes on: trunk/SmartUpload/data/mopera.txt ___________________________________________________________________ Added: svn:mime-type + text/plain Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-18 15:47:41 UTC (rev 5) +++ trunk/SmartUpload/include/database.php 2011-04-24 14:35:01 UTC (rev 6) @@ -1,4 +1,5 @@ setCharset( "utf8" ); +*/ + +//PDO?ф・膓?+try { + //DB?御・膓?+ $pdo = new PDO( + "mysql:host=localhost;dbname=upload","root","san59shi"); + +} catch (PDOException $e){ + var_dump($e->getMessage()); +} + +//PDO??? +$pdo = null; + ?> \ No newline at end of file Added: trunk/SmartUpload/test.php =================================================================== --- trunk/SmartUpload/test.php (rev 0) +++ trunk/SmartUpload/test.php 2011-04-24 14:35:01 UTC (rev 6) @@ -0,0 +1,24 @@ +query("SELECT * FROM data_info"); + + while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ + echo implode(", ", $row) . PHP_EOL; + } +} catch (PDOException $e){ + var_dump($e->getMessage()); +} + +$pdo = null; + +?> \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-18 15:47:41 UTC (rev 5) +++ trunk/SmartUpload/upload_file.php 2011-04-24 14:35:01 UTC (rev 6) @@ -36,7 +36,7 @@ mysql_set_charset("utf8"); mysql_select_db( "upload" ); */ - +/* $abc = "select * from data_info"; $res = "mysql_query( $abc ))"; @@ -45,16 +45,19 @@ print( $row["uploaddate"]."
" ); print( $row["data_size" ] ); } +*/ //?????est????? // ????帥??若??????+ /* $sql = "INSERT INTO data_info ( filename, uploaddate, data_size ) VALUES ( 'a', now(),1 ) "; + //sql??∈茯???鴻? echo $sql."
"; $stmt=$db->prepare("$sql"); $stmt->execute( array( $filename, $filesize ) ); - +*/ } ?> From svnnotify @ sourceforge.jp Sun Apr 24 23:37:16 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Sun, 24 Apr 2011 23:37:16 +0900 Subject: [Smartupload-svn] [7] Message-ID: <1303655836.482400.28345.nullmailer@users.sourceforge.jp> Revision: 7 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=7 Author: hryksbt Date: 2011-04-24 23:37:16 +0900 (Sun, 24 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php -------------- next part -------------- Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-24 14:35:01 UTC (rev 6) +++ trunk/SmartUpload/include/database.php 2011-04-24 14:37:16 UTC (rev 7) @@ -1,29 +1,5 @@ "mysql", - "username" => "root", - "password" => "san59shi", - "hostspec" => "localhost", - "database" => "upload", - ); - $mdb2 =& MDB2::connect( $dsn, $options ); - - // 文字コードの指定 - $mdb2->setCharset( "utf8" ); -*/ - //PDOで接続 try { //DBへ接続 @@ -35,6 +11,6 @@ } //PDO切断 -$pdo = null; +// $pdo = null; ?> \ No newline at end of file From svnnotify @ sourceforge.jp Mon Apr 25 00:01:15 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 25 Apr 2011 00:01:15 +0900 Subject: [Smartupload-svn] [8] Message-ID: <1303657275.868282.24220.nullmailer@users.sourceforge.jp> Revision: 8 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=8 Author: hryksbt Date: 2011-04-25 00:01:15 +0900 (Mon, 25 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php -------------- next part -------------- Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-24 14:37:16 UTC (rev 7) +++ trunk/SmartUpload/include/database.php 2011-04-24 15:01:15 UTC (rev 8) @@ -1,16 +1,27 @@ getMessage()); +$dsn = 'mysql:dbname=upload;host=localhost'; +$user = 'root'; +$password = '********'; + +try{ + $dbh = new PDO($dsn, $user, $password); + print('接続に成功しました。
'); + $dbh->query('SET NAMES sjis'); + $sql = 'select * from shouhin'; + foreach ($dbh->query($sql) as $row) { + print($row['filename']); + print($row['uploaddate'].'
'); + } +}catch (PDOException $e){ + print('Error:'.$e->getMessage()); + die(); } +$dbh = null; -//PDO切断 +// PDO切断 // $pdo = null; ?> \ No newline at end of file From svnnotify @ sourceforge.jp Mon Apr 25 11:08:41 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 25 Apr 2011 11:08:41 +0900 Subject: [Smartupload-svn] [9] Message-ID: <1303697321.708894.8144.nullmailer@users.sourceforge.jp> Revision: 9 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=9 Author: hryksbt Date: 2011-04-25 11:08:41 +0900 (Mon, 25 Apr 2011) Log Message: ----------- Removed Paths: ------------- trunk/SmartUpload/data/06c69f2a.jpg trunk/SmartUpload/data/aaa.jpg trunk/SmartUpload/data/mopera.txt -------------- next part -------------- Deleted: trunk/SmartUpload/data/06c69f2a.jpg =================================================================== (Binary files differ) Deleted: trunk/SmartUpload/data/aaa.jpg =================================================================== (Binary files differ) Deleted: trunk/SmartUpload/data/mopera.txt =================================================================== --- trunk/SmartUpload/data/mopera.txt 2011-04-24 15:01:15 UTC (rev 8) +++ trunk/SmartUpload/data/mopera.txt 2011-04-25 02:08:41 UTC (rev 9) @@ -1,16 +0,0 @@ -ID: kyc6twgy -PW: ekybutj2 - -DNS 220.159.212.201 -DNS 220.159.212.201 - -moperau ????- -ID: d6uv788c -APN: mopera.net -PW: kaz34612 - -151 1 4 - -????? -00:80:87:19:DE:1C From svnnotify @ sourceforge.jp Mon Apr 25 11:24:53 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 25 Apr 2011 11:24:53 +0900 Subject: [Smartupload-svn] [10] Message-ID: <1303698293.472450.28416.nullmailer@users.sourceforge.jp> Revision: 10 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=10 Author: hryksbt Date: 2011-04-25 11:24:53 +0900 (Mon, 25 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php trunk/SmartUpload/test.php -------------- next part -------------- Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-25 02:08:41 UTC (rev 9) +++ trunk/SmartUpload/include/database.php 2011-04-25 02:24:53 UTC (rev 10) @@ -4,12 +4,12 @@ $dsn = 'mysql:dbname=upload;host=localhost'; $user = 'root'; -$password = '********'; +$password = 'Zaq12wsx'; try{ $dbh = new PDO($dsn, $user, $password); print('接続に成功しました。
'); - $dbh->query('SET NAMES sjis'); + //$dbh->query('SET NAMES utf8'); $sql = 'select * from shouhin'; foreach ($dbh->query($sql) as $row) { print($row['filename']); Modified: trunk/SmartUpload/test.php =================================================================== --- trunk/SmartUpload/test.php 2011-04-25 02:08:41 UTC (rev 9) +++ trunk/SmartUpload/test.php 2011-04-25 02:24:53 UTC (rev 10) @@ -9,7 +9,7 @@ try { $pdo = new PDO( - "mysql:host=localhost; dbname=upload", "root", "san59shi"); + "mysql:host=localhost; dbname=upload", "root", "********"); $stmt = $pdo->query("SELECT * FROM data_info"); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ From svnnotify @ sourceforge.jp Mon Apr 25 15:24:41 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 25 Apr 2011 15:24:41 +0900 Subject: [Smartupload-svn] [11] Message-ID: <1303712681.362314.5809.nullmailer@users.sourceforge.jp> Revision: 11 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=11 Author: hryksbt Date: 2011-04-25 15:24:40 +0900 (Mon, 25 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php trunk/SmartUpload/upload_file.php -------------- next part -------------- Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-25 02:24:53 UTC (rev 10) +++ trunk/SmartUpload/include/database.php 2011-04-25 06:24:40 UTC (rev 11) @@ -1,27 +1,40 @@ + + + +SmartUpload + + +'); - //$dbh->query('SET NAMES utf8'); - $sql = 'select * from shouhin'; - foreach ($dbh->query($sql) as $row) { + $db->query('SET NAMES utf8'); +/* $sql = 'select * from data_info'; + foreach ($db->query($sql) as $row[]) { print($row['filename']); print($row['uploaddate'].'
'); - } + }*/ }catch (PDOException $e){ print('Error:'.$e->getMessage()); die(); } -$dbh = null; +//$db = null; -// PDO切断 -// $pdo = null; - -?> \ No newline at end of file +?> + + \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-25 02:24:53 UTC (rev 10) +++ trunk/SmartUpload/upload_file.php 2011-04-25 06:24:40 UTC (rev 11) @@ -2,7 +2,7 @@ /* * SmartUpload/upload.php * @author Hiroyuki Shibata - * 2011/04/17 + * 2011/04/25 * Rev 1.0 * */ @@ -21,45 +21,33 @@ $updir = "./data/"; $filename = $_FILES['upfile']['name']; $filesize = filesize($_FILES['upfile']['tmp_name']); + if(move_uploaded_file($_FILES['upfile']['tmp_name'], $updir.$filename)==FALSE){ print("Upload failed"); print($_FILES['upfile']['error']); - } - else { + } else { print(" $filename is uploaded.
"); print("size = "."$filesize"." bytes
"); -// ↓↓↓↓↓↓↓ データベース管理 ↓↓↓↓↓↓↓ + $db = new PDO($dsn, $user, $password); + $db->query("show tables".'
'); - //↓↓↓test↓↓↓ - /* $conn = mysql_connect( "localhost", "root", "******" ); - mysql_set_charset("utf8"); - mysql_select_db( "upload" ); - */ -/* - $abc = "select * from data_info"; - $res = "mysql_query( $abc ))"; + // データベース + $stmt = $db->prepare( + "INSERT INTO data_info (filename, uploaddate, data_size) + VALUES(? ,now() ,?)"); + $stmt->bindParam(1,$filename); + $stmt->bindParam(2,$filesize); + $stmt->execute(); - while( $row = mysql_fetch_array($res)){ - print( $row["filename" ]."
" ); - print( $row["uploaddate"]."
" ); - print( $row["data_size" ] ); + print('
'); + $sql ='select * from data_info'; + foreach ($db->query($sql) as $row) { + print($row['filename'].""); + print($row['uploaddate'].''); + print($row['data_size'].'
'); } -*/ - //↑↑↑test↑↑↑ - - // データベースに記録 - /* - $sql = "INSERT INTO data_info ( filename, uploaddate, data_size ) VALUES ( 'a', now(),1 ) "; - - //sqlの確認テスト - echo $sql."
"; - - $stmt=$db->prepare("$sql"); - $stmt->execute( array( $filename, $filesize ) ); -*/ } - ?> \ No newline at end of file From svnnotify @ sourceforge.jp Mon Apr 25 15:25:43 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Mon, 25 Apr 2011 15:25:43 +0900 Subject: [Smartupload-svn] [12] Message-ID: <1303712743.232126.6034.nullmailer@users.sourceforge.jp> Revision: 12 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=12 Author: hryksbt Date: 2011-04-25 15:25:43 +0900 (Mon, 25 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/upload_file.php -------------- next part -------------- Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-25 06:24:40 UTC (rev 11) +++ trunk/SmartUpload/upload_file.php 2011-04-25 06:25:43 UTC (rev 12) @@ -32,7 +32,7 @@ $db = new PDO($dsn, $user, $password); $db->query("show tables".'
'); - // データベース + // データベース処理 $stmt = $db->prepare( "INSERT INTO data_info (filename, uploaddate, data_size) VALUES(? ,now() ,?)"); From svnnotify @ sourceforge.jp Tue Apr 26 00:53:50 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 00:53:50 +0900 Subject: [Smartupload-svn] [13] Message-ID: <1303746830.850678.25366.nullmailer@users.sourceforge.jp> Revision: 13 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=13 Author: hryksbt Date: 2011-04-26 00:53:50 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php trunk/SmartUpload/upload_file.php Removed Paths: ------------- trunk/SmartUpload/09_02_fileup.php trunk/SmartUpload/main.php trunk/SmartUpload/test.php -------------- next part -------------- Deleted: trunk/SmartUpload/09_02_fileup.php =================================================================== --- trunk/SmartUpload/09_02_fileup.php 2011-04-25 06:25:43 UTC (rev 12) +++ trunk/SmartUpload/09_02_fileup.php 2011-04-25 15:53:50 UTC (rev 13) @@ -1,39 +0,0 @@ - - - - - -ファイルアップローダー -
-
- -
-
"; - echo ""; - - //} else { - //echo "jpg かgif のファイルしかアップできません。或いはハイフン以外の記号があります。"; - //} - } else { - echo "$filesize Byte ファイルサイズが大きすぎます。
100000 Byte 以下にしてください。"; - } -} else { -echo "参照で画像ファイルを指定して、表示をクリック!"; -} -?> -
- - \ No newline at end of file Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-25 06:25:43 UTC (rev 12) +++ trunk/SmartUpload/include/database.php 2011-04-25 15:53:50 UTC (rev 13) @@ -2,7 +2,7 @@ /* * SmartUpload/upload.php * @author Hiroyuki Shibata - * 2011/04/25 + * 2011/04/26 * Rev 1.0 * */ @@ -18,22 +18,16 @@ $dsn = 'mysql:dbname=upload;host=localhost'; $user = 'root'; -$password = '********'; +$password = '******'; try{ $db = new PDO($dsn, $user, $password); print('接続に成功しました。
'); $db->query('SET NAMES utf8'); -/* $sql = 'select * from data_info'; - foreach ($db->query($sql) as $row[]) { - print($row['filename']); - print($row['uploaddate'].'
'); - }*/ -}catch (PDOException $e){ +} catch (PDOException $e) { print('Error:'.$e->getMessage()); die(); } -//$db = null; ?> Deleted: trunk/SmartUpload/main.php =================================================================== --- trunk/SmartUpload/main.php 2011-04-25 06:25:43 UTC (rev 12) +++ trunk/SmartUpload/main.php 2011-04-25 15:53:50 UTC (rev 13) @@ -1,3 +0,0 @@ - \ No newline at end of file Deleted: trunk/SmartUpload/test.php =================================================================== --- trunk/SmartUpload/test.php 2011-04-25 06:25:43 UTC (rev 12) +++ trunk/SmartUpload/test.php 2011-04-25 15:53:50 UTC (rev 13) @@ -1,24 +0,0 @@ -query("SELECT * FROM data_info"); - - while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ - echo implode(", ", $row) . PHP_EOL; - } -} catch (PDOException $e){ - var_dump($e->getMessage()); -} - -$pdo = null; - -?> \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-25 06:25:43 UTC (rev 12) +++ trunk/SmartUpload/upload_file.php 2011-04-25 15:53:50 UTC (rev 13) @@ -2,7 +2,7 @@ /* * SmartUpload/upload.php * @author Hiroyuki Shibata - * 2011/04/25 + * 2011/04/26 * Rev 1.0 * */ @@ -29,9 +29,6 @@ print(" $filename is uploaded.
"); print("size = "."$filesize"." bytes
"); - $db = new PDO($dsn, $user, $password); - $db->query("show tables".'
'); - // データベース処理 $stmt = $db->prepare( "INSERT INTO data_info (filename, uploaddate, data_size) @@ -43,8 +40,8 @@ print('
'); $sql ='select * from data_info'; foreach ($db->query($sql) as $row) { - print($row['filename'].""); - print($row['uploaddate'].''); + print($row['filename']." "); + print($row['uploaddate']." "); print($row['data_size'].'
'); } } From svnnotify @ sourceforge.jp Tue Apr 26 00:55:22 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 00:55:22 +0900 Subject: [Smartupload-svn] [14] Message-ID: <1303746922.197832.27519.nullmailer@users.sourceforge.jp> Revision: 14 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=14 Author: hryksbt Date: 2011-04-26 00:55:22 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/include/database.php trunk/SmartUpload/upload_file.php trunk/SmartUpload/upload_form.php Added Paths: ----------- trunk/SmartUpload/download_file.php -------------- next part -------------- Added: trunk/SmartUpload/download_file.php =================================================================== --- trunk/SmartUpload/download_file.php (rev 0) +++ trunk/SmartUpload/download_file.php 2011-04-25 15:55:22 UTC (rev 14) @@ -0,0 +1,9 @@ + \ No newline at end of file Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-25 15:53:50 UTC (rev 13) +++ trunk/SmartUpload/include/database.php 2011-04-25 15:55:22 UTC (rev 14) @@ -1,6 +1,6 @@ Revision: 15 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=15 Author: hryksbt Date: 2011-04-26 01:43:20 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/download_file.php trunk/SmartUpload/include/database.php trunk/SmartUpload/upload_file.php trunk/SmartUpload/upload_form.php -------------- next part -------------- Modified: trunk/SmartUpload/download_file.php =================================================================== --- trunk/SmartUpload/download_file.php 2011-04-25 15:55:22 UTC (rev 14) +++ trunk/SmartUpload/download_file.php 2011-04-25 16:43:20 UTC (rev 15) @@ -6,4 +6,32 @@ * Rev 1.0 * */ -?> \ No newline at end of file +?> + + + + SmartUpload + + +

File Downloader

+query($sql) as $row) { + + ?> "> + + + "); + + } + +?> Modified: trunk/SmartUpload/include/database.php =================================================================== --- trunk/SmartUpload/include/database.php 2011-04-25 15:55:22 UTC (rev 14) +++ trunk/SmartUpload/include/database.php 2011-04-25 16:43:20 UTC (rev 15) @@ -6,29 +6,21 @@ * Rev 1.0 * */ -?> - - - -SmartUpload - - -'); - $db->query('SET NAMES utf8'); -} catch (PDOException $e) { - print('Error:'.$e->getMessage()); - die(); -} + $dsn = 'mysql:dbname=upload;host=localhost'; + $user = 'root'; + $password = '******'; + try{ + + $db = new PDO($dsn, $user, $password); + $db->query('SET NAMES utf8'); + + } catch (PDOException $e) { + print('Error:'.$e->getMessage()); + die(); + } + ?> - - \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-25 15:55:22 UTC (rev 14) +++ trunk/SmartUpload/upload_file.php 2011-04-25 16:43:20 UTC (rev 15) @@ -9,23 +9,30 @@ ?> - -SmartUpload + + SmartUpload -

File Uploader

+

File Uploader

$filename is uploaded.
"); print("size = "."$filesize"." bytes
"); @@ -33,18 +40,25 @@ $stmt = $db->prepare( "INSERT INTO data_info (filename, uploaddate, data_size) VALUES(? ,now() ,?)"); + $stmt->bindParam(1,$filename); $stmt->bindParam(2,$filesize); $stmt->execute(); print('
'); + $sql ='select * from data_info'; + foreach ($db->query($sql) as $row) { + print($row['filename']." "); print($row['uploaddate']." "); print($row['data_size'].'
'); + } + } + ?> \ No newline at end of file Modified: trunk/SmartUpload/upload_form.php =================================================================== --- trunk/SmartUpload/upload_form.php 2011-04-25 15:55:22 UTC (rev 14) +++ trunk/SmartUpload/upload_form.php 2011-04-25 16:43:20 UTC (rev 15) @@ -2,15 +2,16 @@ /* * SmartUpload/upload_form.php * @author Hiroyuki Shibata - * 2011/04/17 + * 2011/04/26 * Rev 1.0 * */ ?> - -SmartUpload + + + SmartUpload
From svnnotify @ sourceforge.jp Tue Apr 26 01:47:58 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 01:47:58 +0900 Subject: [Smartupload-svn] [16] Message-ID: <1303750078.794355.19167.nullmailer@users.sourceforge.jp> Revision: 16 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=16 Author: hryksbt Date: 2011-04-26 01:47:58 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Modified Paths: -------------- trunk/SmartUpload/download_file.php trunk/SmartUpload/upload_file.php trunk/SmartUpload/upload_form.php -------------- next part -------------- Modified: trunk/SmartUpload/download_file.php =================================================================== --- trunk/SmartUpload/download_file.php 2011-04-25 16:43:20 UTC (rev 15) +++ trunk/SmartUpload/download_file.php 2011-04-25 16:47:58 UTC (rev 16) @@ -9,12 +9,14 @@ ?> - - SmartUpload + +SmartUpload -

File Downloader

- + File Downloader +

+ query($sql) as $row) { - ?> "> + ?> + + "> + "); + print($row['uploaddate']." "); + print($row['data_size']."
"); + } -?> + ?> \ No newline at end of file Modified: trunk/SmartUpload/upload_file.php =================================================================== --- trunk/SmartUpload/upload_file.php 2011-04-25 16:43:20 UTC (rev 15) +++ trunk/SmartUpload/upload_file.php 2011-04-25 16:47:58 UTC (rev 16) @@ -9,12 +9,14 @@ ?> - - SmartUpload + +SmartUpload -

File Uploader

- + File Uploader +

+ prepare( - "INSERT INTO data_info (filename, uploaddate, data_size) - VALUES(? ,now() ,?)"); + "INSERT INTO data_info (filename, uploaddate, data_size) VALUES(? ,now() ,?)"); $stmt->bindParam(1,$filename); $stmt->bindParam(2,$filesize); @@ -59,6 +60,6 @@ } -?> + ?> - \ No newline at end of file + Modified: trunk/SmartUpload/upload_form.php =================================================================== --- trunk/SmartUpload/upload_form.php 2011-04-25 16:43:20 UTC (rev 15) +++ trunk/SmartUpload/upload_form.php 2011-04-25 16:47:58 UTC (rev 16) @@ -10,13 +10,13 @@ - - SmartUpload + +SmartUpload - - - -
+
+ +
From svnnotify @ sourceforge.jp Tue Apr 26 01:48:17 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 01:48:17 +0900 Subject: [Smartupload-svn] [17] Message-ID: <1303750097.463548.21223.nullmailer@users.sourceforge.jp> Revision: 17 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=17 Author: hryksbt Date: 2011-04-26 01:48:17 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Added Paths: ----------- trunk/SmartUpload/data/test.txt -------------- next part -------------- Added: trunk/SmartUpload/data/test.txt =================================================================== --- trunk/SmartUpload/data/test.txt (rev 0) +++ trunk/SmartUpload/data/test.txt 2011-04-25 16:48:17 UTC (rev 17) @@ -0,0 +1 @@ +This is for testing. \ No newline at end of file Property changes on: trunk/SmartUpload/data/test.txt ___________________________________________________________________ Added: svn:mime-type + text/plain From svnnotify @ sourceforge.jp Tue Apr 26 18:23:32 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 18:23:32 +0900 Subject: [Smartupload-svn] =?utf-8?b?WzE4XSAgRELjgrPjg43jgq/jg4jjgIHjg4A=?= =?utf-8?b?44Km44Oz44Ot44O844OJ44K544Kv44Oq44OX44OI44CB44Ki44OD44OX44Ot?= =?utf-8?b?44O844OJ44K544Kv44Oq44OX44OI44CB44Om44O844K255m76Yyy44K544Kv?= =?utf-8?b?44Oq44OX44OI44G+44Gn5a6f6KOF?= Message-ID: <1303809812.348031.5075.nullmailer@users.sourceforge.jp> Revision: 18 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=18 Author: hryksbt Date: 2011-04-26 18:23:31 +0900 (Tue, 26 Apr 2011) Log Message: ----------- DBコネクト、ダウンロードスクリプト、アップロードスクリプト、ユーザ登録スクリプトまで実装 (エラーチェックは未実装状態) Modified Paths: -------------- trunk/SmartUpload/download_file.php trunk/SmartUpload/upload_file.php Added Paths: ----------- trunk/SmartUpload/user_add.php trunk/SmartUpload/user_form.php -------------- next part -------------- Modified: trunk/SmartUpload/download_file.php =================================================================== --- trunk/SmartUpload/download_file.php 2011-04-25 16:48:17 UTC (rev 17) +++ trunk/SmartUpload/download_file.php 2011-04-26 09:23:31 UTC (rev 18) @@ -18,6 +18,8 @@

File Uploader

+ + + +SmartUpload + + +

+ 登録完了 +

+ prepare( + "INSERT INTO user_info ( + userid, + password, + fullname, + country_code, + add_date, + email, + frag + ) VALUES ( ?, ?, ?, ?, now(), ?, 0)" + ); + + $stmt->bindParam(1,$_REQUEST["id"]); + $stmt->bindParam(2,$_REQUEST["pass"]); + $stmt->bindParam(3,$_REQUEST["name"]); + $stmt->bindParam(4,$_REQUEST["country"]); + $stmt->bindParam(5,$_REQUEST["mail"]); + $stmt->execute(); + + // 登録成功を表示 // + $sql ='select userid from user_info'; + + foreach ($db->query($sql) as $row) { + + print($row['userid']." "."が登録されました。"); + + } + + } catch (PDOException $e) { + print('Error:'.$e->getMessage()); + die(); + } + + ?> + + \ No newline at end of file Added: trunk/SmartUpload/user_form.php =================================================================== --- trunk/SmartUpload/user_form.php (rev 0) +++ trunk/SmartUpload/user_form.php 2011-04-26 09:23:31 UTC (rev 18) @@ -0,0 +1,41 @@ + + + + +SmartUpload + + +

+ ユーザー登録 +

+
+
+ID(アカウント)	: ※ 32文字以内
+パスワード : ※ 32文字以内
+氏名 : ※ 32文字以内
+ +国 : + +
+メールアドレス : ※ 64文字以内
+
+ +
+ + From svnnotify @ sourceforge.jp Tue Apr 26 23:48:10 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Tue, 26 Apr 2011 23:48:10 +0900 Subject: [Smartupload-svn] [19] Message-ID: <1303829290.525603.24570.nullmailer@users.sourceforge.jp> Revision: 19 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=19 Author: hryksbt Date: 2011-04-26 23:48:09 +0900 (Tue, 26 Apr 2011) Log Message: ----------- Added Paths: ----------- trunk/Database/ trunk/Database/dump.sql -------------- next part -------------- Added: trunk/Database/dump.sql =================================================================== --- trunk/Database/dump.sql (rev 0) +++ trunk/Database/dump.sql 2011-04-26 14:48:09 UTC (rev 19) @@ -0,0 +1,75 @@ +?-- phpMyAdmin SQL Dump +-- version 3.2.4 +-- http://www.phpmyadmin.net +-- +-- ホスト: localhost +-- 生成時間: 2011 年 4 月 26 日 23:45 +-- サーバのバージョン: 5.1.41 +-- PHP のバージョン: 5.3.1 + +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- +-- データベース: `upload` +-- +CREATE DATABASE `upload` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; +USE `upload`; + +-- -------------------------------------------------------- + +-- +-- テーブルの構造 `data_info` +-- + +CREATE TABLE IF NOT EXISTS `data_info` ( + `filename` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `uploaddate` datetime NOT NULL, + `username` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `data_size` int(10) NOT NULL, + `rank` int(3) DEFAULT NULL, + UNIQUE KEY `index_filename` (`filename`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +-- +-- テーブルのデータをダンプしています `data_info` +-- + +INSERT INTO `data_info` (`filename`, `uploaddate`, `username`, `data_size`, `rank`) VALUES +('aaa.jpg', '2011-04-18 00:00:00', NULL, 666, NULL), +('bbb', '2011-04-18 23:49:46', NULL, 777, NULL), +('test.txt', '2011-04-26 00:50:36', NULL, 20, NULL); + +-- -------------------------------------------------------- + +-- +-- テーブルの構造 `user_info` +-- + +CREATE TABLE IF NOT EXISTS `user_info` ( + `userid` varchar(32) COLLATE utf8_unicode_ci NOT NULL, + `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL, + `fullname` varchar(64) COLLATE utf8_unicode_ci NOT NULL, + `country_code` smallint(6) NOT NULL, + `add_date` datetime NOT NULL, + `change_date` datetime DEFAULT NULL, + `email` varchar(64) COLLATE utf8_unicode_ci NOT NULL, + `frag` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`userid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + +-- +-- テーブルのデータをダンプしています `user_info` +-- + +INSERT INTO `user_info` (`userid`, `password`, `fullname`, `country_code`, `add_date`, `change_date`, `email`, `frag`) VALUES +('a', 'aaa', 'aaa', 1, '2011-04-26 23:34:00', NULL, 'aaa', 0); + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; From svnnotify @ sourceforge.jp Wed Apr 27 01:38:54 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Wed, 27 Apr 2011 01:38:54 +0900 Subject: [Smartupload-svn] =?utf-8?b?WzIwXSAg44Ot44Kw44Kk44Oz5qmf6IO977yI?= =?utf-8?b?5L2c5qWt5Lit77yJ?= Message-ID: <1303835934.524254.21052.nullmailer@users.sourceforge.jp> Revision: 20 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=20 Author: hryksbt Date: 2011-04-27 01:38:54 +0900 (Wed, 27 Apr 2011) Log Message: ----------- ログイン機能(作業中) Modified Paths: -------------- trunk/SmartUpload/user_form.php Added Paths: ----------- trunk/SmartUpload/main.php -------------- next part -------------- Added: trunk/SmartUpload/main.php =================================================================== --- trunk/SmartUpload/main.php (rev 0) +++ trunk/SmartUpload/main.php 2011-04-26 16:38:54 UTC (rev 20) @@ -0,0 +1,39 @@ + + + + + +SmartUpload + + + +
+
+ID(アカウント)	:
+パスワード	:
+ +
+
+ \ No newline at end of file Modified: trunk/SmartUpload/user_form.php =================================================================== --- trunk/SmartUpload/user_form.php 2011-04-26 14:48:09 UTC (rev 19) +++ trunk/SmartUpload/user_form.php 2011-04-26 16:38:54 UTC (rev 20) @@ -20,7 +20,7 @@
 ID(アカウント)	: ※ 32文字以内
パスワード : ※ 32文字以内
-氏名 : ※ 32文字以内
+氏名 : ※ 64文字以内
国 : -パスワード :
- -
+ ID(アカウント) : + パスワード : + \ No newline at end of file From svnnotify @ sourceforge.jp Thu Apr 28 19:08:56 2011 From: svnnotify @ sourceforge.jp (svnnotify @ sourceforge.jp) Date: Thu, 28 Apr 2011 19:08:56 +0900 Subject: [Smartupload-svn] =?utf-8?b?WzIyXSAg44GG44G+44GP5YuV44GL44Gq44GE?= Message-ID: <1303985336.532674.9507.nullmailer@users.sourceforge.jp> Revision: 22 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=22 Author: hryksbt Date: 2011-04-28 19:08:56 +0900 (Thu, 28 Apr 2011) Log Message: ----------- うまく動かない Modified Paths: -------------- trunk/SmartUpload/main.php -------------- next part -------------- Modified: trunk/SmartUpload/main.php =================================================================== --- trunk/SmartUpload/main.php 2011-04-27 07:16:42 UTC (rev 21) +++ trunk/SmartUpload/main.php 2011-04-28 10:08:56 UTC (rev 22) @@ -3,7 +3,7 @@ /* * SmartUpload/main.php * @author Hiroyuki Shibata - * 2011/04/26 + * 2011/04/28 * Rev 1.0 * */ @@ -19,21 +19,34 @@ require_once("include/database.php"); - //ログインチェック - if (isset($_SESSION["id"])){ - // アカウントIDを表示 - print ($_REQUEST["id"]); + if( $_REQUEST["logout"] == "do_logout" ) { + unset( $_SESSION["id"] ); + } else { - } else { + //ログインチェック + if( $_REQUEST["cmd"] == "do_login" ) { + $_SESSION["id"] = $_REQUEST["id"]; + + // ログイン済みの場合アカウントIDを表示 + print ($_REQUEST["id"]."さん"." "); ?> - -
- ID(アカウント) : - パスワード : - -
+ + + + + +
+ ID(アカウント) : + パスワード : + + +
+ \ No newline at end of file