svnno****@sourc*****
svnno****@sourc*****
2011年 8月 31日 (水) 01:31:13 JST
Revision: 52 http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=52 Author: hryksbt Date: 2011-08-31 01:31:13 +0900 (Wed, 31 Aug 2011) Log Message: ----------- undifine対策 Modified Paths: -------------- trunk/SmartUpload/auth.php -------------- next part -------------- Modified: trunk/SmartUpload/auth.php =================================================================== --- trunk/SmartUpload/auth.php 2011-05-31 14:58:06 UTC (rev 51) +++ trunk/SmartUpload/auth.php 2011-08-30 16:31:13 UTC (rev 52) @@ -36,7 +36,7 @@ // メイン処理 - if( $_POST['cmd'] == "login" ) { + if( isset($_POST['cmd']) && $_POST['cmd'] == "login" ) { // ユーザ名&パスワードチェック $stmt = $db->prepare("SELECT * FROM user_info WHERE userid= ? AND password= ? "); @@ -63,7 +63,7 @@ } // ログアウト完了後 - } else if( $_POST['cmd'] == "logout" ) { + } else if( isset($_POST['cmd']) && $_POST['cmd'] == "logout" ) { print (htmlspecialchars("ログアウトしました", ENT_QUOTES)); session_destroy();