Framework problems? Master PHPcode & lt ;? Phpinclude (& quot; .. loginqx. php & quot ;);? & Gt; & lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0FramesetEN & quot; www. w3.orgTRxhtml1D framework question? Master
PHP code
Untitled Document
<Body> </body>
My background is set to be accessible only when a user logs on. The background is a framework structure, but why is my logon successful? I am prompted that I have no logon permission
The login permission is written in this way, that is, qx. php [code = PHP] [/code].
PHP code
Why not? Why?
------ Solution --------------------
Session_start ();
?>
Echo "script" alert ('You have no access permission. please log on first! '); Window. location. href =' ../login/login1.php 'script ";
Exit;
}
Else {
Echo "script" alert ('Welcome! '); Window. location. href =' ../admin/index. php' script "; // enter the branch after logging in successfully. And you let it jump to the original page. Therefore, you must enter the branch again. Always jump. Still not clear?
// Solution: do not include qx. php in/admin/index. php.
}