robert allen
New Member
Hi,
I am creating a massive MFA site, and i was wondering if you could help me.
This is the current code.
I however dont want the link to go inter-net.tv/minisite/
I want it to go minisite.inter-net.tv.
How do i change the below code so that the links come out as site.domain.com instead of domain.com/site/?
thanks for any help you can provide.
Rob
This is near the end of the file, where it lists the directorys.
I am creating a massive MFA site, and i was wondering if you could help me.
This is the current code.
I however dont want the link to go inter-net.tv/minisite/
I want it to go minisite.inter-net.tv.
How do i change the below code so that the links come out as site.domain.com instead of domain.com/site/?
thanks for any help you can provide.
Rob
Code:
if(substr($_GET['dir'], -1, 1)!='/') {
$_GET['dir'] = $_GET['dir'] . '/';
}
$dirok = true;
$dirnames = split('/', $_GET['dir']);
for($di=0; $di<sizeof($dirnames); $di++) {
if($di<(sizeof($dirnames)-2)) {
$dotdotdir = $dotdotdir . $dirnames[$di] . '/';
}
if($dirnames[$di] == '..') {
$dirok = false;
}
}
if(substr($_GET['dir'], 0, 1)=='/') {
$dirok = false;
}
if($dirok) {
$leadon = $leadon . $_GET['dir'];
}
}
This is near the end of the file, where it lists the directorys.
Code:
<div><a href="<?=$_SERVER['PHP_SELF'].'?dir='.urlencode($leadon.$dirs[$i]);?>" class="<?=$class;?>"><img src="dlf/folder.png" alt="<?=$dirs[$i];?>" /><strong><?=$dirs[$i];?></strong> <em>-</em> <?=date ("M d Y h:i:s A", filemtime($leadon.$dirs[$i]));?></a></div>
Last edited: