Location: PHPKode > scripts > Create Your Own Directory > cms/includes/urls.php
<?php
$query="select * from defaulttab";
$result=mysql_query($query);
if($row=@mysql_fetch_array($result, MYSQL_ASSOC))
{
  $userdomain=$row['userdomain'];
}
$pos=strpos($userdomain,"ttp://");
if($pos==0)
{
$home="http://".$userdomain."/";
}else if($pos==1){
$home=$userdomain."/";
}
echo"<script language=javascript>";
echo"var home= '".$home."'";
echo"</script>";
?>
Return current item: Create Your Own Directory