255) error("The URI you entered is to large"); $_MGM['path'] = explode("/", strtolower($_MGM['fullPath'])); $_MGM['CookiePrefix'] = ""; $_MGM['CookiePath'] = $_MGM['installPath']; $_MGM['CookieDomain'] = ".".$_MGM['domainname']; $_MGM['referrer'] = (isset($_COOKIE['referrer']) ? $_COOKIE['referrer']=="true" : false); function generateURL($path) { global $_MGM; return "http".($_MGM['ssl'] ? "s" : "")."://".$_MGM['domain'].(((!$_MGM['ssl'] && $_MGM['port']==80) || ($_MGM['ssl'] && $_MGM['port']==443)) ? "" : ":{$_MGM['port']}").$_MGM['installPath'].$path; } if ($_MGM['path'][0]!="") { require("code/404.php"); } connectToDatabase(); require("code/index.php"); closeDatabase(); ?>