The source code of chang. php is as follows: & lt ;? Session_start ()? & Gt; & lt ;? If ($ session_power & quot; | $ session_power & lt; 1) {header (& quot; location:... message. php? Redirectdefault. php & me // The source code of chang.php is as follows:
{
Header ("location:.../message. php? Redirect = default. php & message = you are not an administrator ");
Break;
}?>
If ($ step = "1 ")
{
If (! ($ Rs = MySQL_fetch_array (mysql_query ("select * from download where id = '". $ id. "'", $ cn ))))
Echo "data extraction error ";
Else
{
?>
Modify materials
Your location: Homepage> Download base> modify materials |
}
}
If ($ step = "2 ")
{
Mysql_query ("update download set title = '". $ title. "', say = '". $ say. "', url = '". $ url. "', size = '". $ size. "', type = '". $ type. "'Where id = ". $ id, $ cn );
Header ("location: download. php? Action = show & type = $ type ");
}
?>