ob_start(); require_once 'loginDetails.php'; //require_once 'configSettings.php'; //require_once'ProductDetails.php'; $db_server = mysql_connect($db_hostname, $db_username, $db_password); if (!$db_server) die("Unable to connect to MYSQL: " . mysql_error()); mysql_select_db($db_database) or die("Unable to select database: " . mysql_error()); //Create the page $message=""; $recordFileName=''; $recordPathName=''; $recordTile=''; $recordMediaType=''; $recordLevel=''; $recordLanguage=''; $fileToPlay=''; // in case the title was already set when the page was rendered. if(isset($_GET['title']) && isset($_GET['lang']) && isset($_GET['med'])) { $title = $_GET['title']; $language = $_GET['lang']; $media=$_GET['med']; // add the access log $accessDate=date("Y-m-d"); $accessTime=date("H:i:s"); $queryAccess="INSERT INTO OM_log(language,title,type,accessdate,accesstime)VALUES('".$language."','".$title."','".$media."','".$accessDate."','".$accessTime."')"; echo $queryAccess; $resultQuery=mysql_query($queryAccess); //echo " the access log has been updated"; // for the software if(strcmp($media,"software")==0) { $softwareToPlay=$title; header("Location:$softwareToPlay"); } // for the Internet links else if(strcmp($media,"Internet")==0) { $path=$_GET['path']; // add the http:// so that the link can be opened. if(strcmp(substr($path,0,4),"http")!=0) { $internetLocation="http://".$path; } else $internetLocation=$path; header("Location:$internetLocation"); } // for the PDF links else if(strcmp($media,"PDF")==0) { $path=$_GET['path']; // add the http:// so that the link can be opened. if(strcmp(substr($path,0,4),"http")!=0) { $pdfLocation="http://".$path; // echo '