acrats logo

If you are not redirected automatically, click here.

HTML; exit; }; /* if(!isSet($_SESSION['preview'])){ include "temp.php"; die(); } */ ini_set("display_errors", "on"); ini_set("default_charset", "UTF-8"); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); date_default_timezone_set("Europe/Amsterdam"); $imageRoot = "/"; $serverRoot = $_SERVER['DOCUMENT_ROOT'].$imageRoot; include $serverRoot.'includes/connect.php'; include $serverRoot.'includes/functions.php'; include $serverRoot.'includes/lib/swift_required.php'; $flagArray = array("en" => "English"); $companyEmail = getSetting('companyEmail'); $companyName = getSetting('companyName'); if(isset($_GET["page"]) && $_GET["page"] != ""){ $path = explode("/", $_GET["page"]); if($path[count($path) - 1] == ""){ array_pop($path); } if(count($flagArray) > 1){ if(isset($flagArray[$path[0]])){ $lang = $path[0]; array_shift($path); } else { show404(); } } else { $lang = "en"; } $langArray = getLanguage($lang); if(count($path) == 0 || (isSet($path[0]) && $path[0] == "thanks")){ $pageArray = getPage("home"); } else { $pageArray = getPage($path[0]); if($pageArray == false){ show404(); } switch($pageArray["menu_file"]){ case "default.php": if(isset($path[1])){ $pageArray = getPage($path[1]); if($pageArray == false){ show404(); } else { if(isSet($path[2]) && $pageArray['menu_file'] == "training.php"){ $itemArray = getItemData("training","",array("active"=>1,"label" => $path[2]),true); if(!isSet($itemArray) || count($itemArray) == 0){ show404(); } else { $pageArray['doctitle'] = $itemArray['doctitle']; $pageArray['description'] = $itemArray['description']; } } } } break; case "training.php": if(isSet($path[1])){ $itemArray = getItemData("training","",array("active"=>1,"label" => $path[1]),true); if(!isSet($itemArray) || count($itemArray) == 0){ show404(); } else { $pageArray['doctitle'] = $itemArray['doctitle']; $pageArray['description'] = $itemArray['description']; } } break; case "learning.php": if(isSet($path[1]) && !is_numeric($path[1])){ $itemArray = getItemData("learning","",array("active"=>1,"label" => $path[1]),true); if(!isSet($itemArray) || count($itemArray) == 0){ show404(); } else { $pageArray['doctitle'] = $itemArray['doctitle']; $pageArray['description'] = $itemArray['description']; } } break; case "reviews.php": if(isSet($path[1]) && !is_numeric($path[1])){ $itemArray = getItemData("review","",array("active"=>1,"label" => $path[1]),true); if(!isSet($itemArray) || count($itemArray) == 0){ show404(); } else { $pageArray['doctitle'] = $itemArray['doctitle']; $pageArray['description'] = $itemArray['description']; } } break; case "webshop.php": $tree = getTree(); $pageArray = getPage($path[0]); if(isset($path[1])){ $productCheck = runQuery("SELECT * FROM tb_product WHERE product_active = 1 AND product_lang = '".addslashes($lang)."' AND product_label = '".addslashes($path[count($path)-1])."'"); if($productCheck['num_rows'] > 0){ $productInfo = $productCheck['result'][0]; $productInfo['product_options'] = unserialize(base64_decode($productInfo['product_options'])); if (!is_array($productInfo['product_options']) || count($productInfo['product_options']) == 0) { $productOptions = array(); if (isset($productInfo['product_partno'])) { $productOptions[] = array( "title" => $productInfo['product_name'], "partno" => $productInfo['product_partno'], "price" => $productInfo['product_price'] ); } $productInfo['product_options'] = $productOptions; } foreach($productInfo['product_options'] as $key => $option){ $productInfo['product_options'][$key]['label'] = $option['title']." - ".$option['partno']." (".number_format($option['price']/100,2,",",".")." ex VAT & EXW)"; } $pageArray['doctitle'] = $productInfo['product_doctitle']; $pageArray['description'] = $productInfo['product_seodescription']; } else { $catCheck = runQuery("SELECT * FROM tb_category WHERE category_active = 1 AND category_lang = '".addslashes($lang)."' AND category_label = '".addslashes($path[count($path)-1])."'"); if($catCheck['num_rows'] == 0){ show404(); } else { $pageArray['doctitle'] = isset($catCheck['result'][0]['category_title']) ? $catCheck['result'][0]['category_title'] : ''; $pageArray['description'] = isset($catCheck['result'][0]['category_description']) ? $catCheck['result'][0]['category_description'] : ''; } } } break; case "contact.php": case "calendar.php": if(isset($path[1])){ if(strpos($path[1],"thanks") === false){ $pageArray = getPage($path[1]); if($pageArray == false){ show404(); } } } break; default: if(count($path) > 1){ show404(); } } } $canonical = false; } else { $lang = "en"; $langArray = getLanguage($lang); $pageArray = getPage("home"); $path = array(); //$path = array($pageArray['label']); } if (isset($path[0]) && $path[0] == "quotation") { $_SESSION['cart']['contents'] = array(); } $menuArray = getMenus(); $errorArray = array(); ?> <br /> <b>Warning</b>: Undefined variable $pageArray in <b>/home/acrats-training.com/public_html/index.php</b> on line <b>235</b><br /> <br /> <b>Warning</b>: Trying to access array offset on value of type null in <b>/home/acrats-training.com/public_html/index.php</b> on line <b>235</b><br />