secureString( require_once( "lib/config.inc.php" ); require_once( "lib/SSDTube.php" ); require_once( "lib/functions.inc.php"); require_once( "lib/connection.inc.php"); require_once( "lib/search.inc.php"); require_once( "lib/mobile/Mobile_Detect.php"); require_once( "lib/geoip.inc.php"); $detect = new Mobile_Detect; $function = new Functions(); $config = new Config(); $geoip = new GeoIPClass(); $search = new Search(); $design = new Template(); $objSSDTube = new SSDTube(); $conn = new Connection(); $conn->db( $config->sql_dbname() ); $table = $config->sql_tablename(); $deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer'); $deviceTypeMobile = $detect->isMobile(); $deviceTypeTablet = $detect->isTablet(); $countryCode = $geoip->getCountryCode(); $cache_uri = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if ($deviceTypeMobile === TRUE && $deviceTypeTablet === FALSE && preg_match('/(DE|CH|AT|LI)/i',$countryCode)){ header("HTTP/1.1 301 Moved Permanently"); // Weiterleitungsziel. Wohin soll eine permanente Weiterleitung erfolgen? header("Location: http://www.youtube-mp3.mobi/m/"); // we have a mobile device exit(0); } else if ($deviceTypeMobile === TRUE && $deviceTypeTablet === FALSE){ header("HTTP/1.1 301 Moved Permanently"); // Weiterleitungsziel. Wohin soll eine permanente Weiterleitung erfolgen? header("Location: http://www.youtube-mp3.mobi/m/en/"); // we have a mobile device exit(0); } // Lyrics Verzeichnis Links auf der Startseite anzeigen // AA-ZZ combinations $linking_texts = ""; $aacount = 1; $flag = 0; $maxStartDirCount = $config->lyrics_startpage_direntry_count(); foreach(range('A', 'Z') as $letter1) { foreach(range('A', 'Z') as $letter2) { $zufall = rand(1,100); $l = strtolower($letter1 . $letter2); $lgro = strtoupper($l); if ( $aacount <= $maxStartDirCount && $zufall >=97){ $letter_count = $function->GetLettersCount($l); if ( $letter_count >= 1 && $aacount < $maxStartDirCount) { $linking_texts .=<<