This article to introduce you to a good need to login PHP file Upload management system, the function of a simple need to know students can refer to.
Code as follows
<?php $admin _pw= "admin";//admin Password $uploaddir = "upload";//Upload directory session_start ();
if ($_get[' action ']== "GetCode") {Setcode ();
Exit ();
} if ($_post[' password ']== $admin _pw && $_post[' yz ']==$_session[' Yzcode ']) {$_session[' logined ']]= $admin _PW;}
if ($_get[' action ']== "logout") {$_session[' logined ']= ' ";
Header ("Location:". $_server[' php_self '));
Exit (); } if ($_session[' logined ']!= $admin _pw) {?> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Above and everyone together to learn the need to login PHP file Upload management system, we can according to their own love to login to beautify the operation, I hope you can like this article.