Thaks again Falko,
Ok it´s maby me that eksplain it a bad way, the php script i have inlcude works fine as long as i include it on a site that i want to protect.
##########
www.mysite.dk/user/index.php #######
<?php
//prevents caching
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter();
session_start();
require('../../siteuser/config.php');
require('../../siteuser/functions.php');
if (allow_access(user) != "yes") {
{
include ('../../siteuser/no_access.html');
exit;
}
?>
<HTML>
<HEAD>
<TITLE>mysite</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
</HEAD>
<BODY BGCOLOR=#999999
<iframe src="/user/main.php" frameborder="0" name="main" scrolling="no" height="1000" width="902"></iframe>
</BODY>
</HTML>
################################
My php script checks in my sql database if user is loocked in.
connect to
www.mysite.dk you will meet a normal form for user and password, if user is ok it will redirect to
www.mysite.dk/user/index.php everything is god and work.
Now ex. if you connect direct to
www.mysite.dk/user/index.php it meet the php script i have include, and if you not are loocked ind it will send you to
www.mysite.dk. Everything is fine so fare.
The problem is that you can still get access to
www.mysite.dk/user/audio.mp3
I would like to put a file in that folder (
www.mysite.dk/user/) that no mater what, the server will read that file first and in that file i will include my php script.
Hobe You understand, and sorry about my spelling
/Joe
Recent comments
14 hours 36 min ago
14 hours 42 min ago
19 hours 40 min ago
1 day 2 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 8 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 20 hours ago