if (substr($_SERVER['HTTP_HOST'], 0, 4) != 'www.') {
$url = "http://www.". $_SERVER['SERVER_NAME'] . "".$_SERVER['REQUEST_URI'];
header("Location: $url");
}
?>
Online Induction Software and Online Induction System Australia
error_reporting(0);
include "db.php";
function GetFileDirr($php_self){
$filename = explode("/", $php_self); // THIS WILL BREAK DOWN THE PATH INTO AN ARRAY
for( $i = 0; $i < (count($filename) - 1); ++$i ) {
$filename2 .= $filename[$i].'/';
}
return $filename2;
}
$dbpath = GetFileDirr($_SERVER['PHP_SELF']);
$dbpath = str_replace("/", "", "$dbpath");
$result = mysql_query("select * from healthsafetyworks.demos where db = '$dbpath'");
@$logo = mysql_result($result,0,"logo");
$result = mysql_query("select * from healthsafetyworks.contenttype where client = '$dbpath'");
$numof_check = mysql_num_rows($result);
if($numof_check >= 1)
{
?>
if(preg_match('/(?i)msie [5-8]/',$_SERVER['HTTP_USER_AGENT']))
{
?>
}
else
{
?>
}
}
else
{
?>
if(preg_match('/(?i)msie [5-8]/',$_SERVER['HTTP_USER_AGENT']))
{
?>
}
else
{
?>
}
}
?>
if(preg_match('/(?i)msie [5-8]/',$_SERVER['HTTP_USER_AGENT']))
{
}
else
{
@$sqlplc = mysql_query("SELECT * from about ");
@$hideintrolink = mysql_result($sqlplc,0,"hideintrolink");
@$indtype = mysql_result($sqlplc,0,"indtype");
@$signinout = mysql_result($sqlplc,0,"signinout");
@$video = mysql_result($sqlplc,0,"video");
if($video)
{
?>