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]=="api") { require("code/api.php"); } else if ($_MGM['path'][0]=="js" && $_MGM['path'][1]=="zxcvbn-async.js") {// To set correct path for dynamic loading. require("js/zxcvbn-async.php"); exit(); } if ($_MGM['path'][0]!="") { require("code/404.php"); } require("code/index.php"); ?>