--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -27,7 +27,7 @@ $url.= $GA_PIXEL . "?"; $url.= "utmac=" . $GA_ACCOUNT; $url.= "&utmn=" . rand(0, 0x7fffffff); - $referer = $_SERVER["HTTP_REFERER"]; + $referer = (isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ""); $query = $_SERVER["QUERY_STRING"]; $path = $_SERVER["REQUEST_URI"]; if (empty($referer)) { @@ -60,9 +60,9 @@ $jqjs = $basePath . "js/jquery-1.6.2.min.js"; $jqmjs = $basePath . "js/jquery.mobile-$jqmVersion.js"; } else { - $jqmcss = "//code.jquery.com/mobile/1.0b3/jquery.mobile-$jqmVersion.min.css"; + $jqmcss = "//code.jquery.com/mobile/$jqmVersion/jquery.mobile-$jqmVersion.min.css"; $jqjs = "//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"; - $jqmjs = "//code.jquery.com/mobile/1.0b3/jquery.mobile-$jqmVersion.min.js"; + $jqmjs = "//code.jquery.com/mobile/$jqmVersion/jquery.mobile-$jqmVersion.min.js"; } echo ' @@ -169,6 +169,7 @@