\n"; $css_list = str_replace("\n",'', $css_list); $css_list = str_replace("\n",'', $css_list); echo $css_list; } // include the ie.css by using conditional comments if the file is not empty if(filesize('./'.$css_source.'/css/ie.css') != 0 || filesize('../'.$css_source.'/css/ie.css') != 0 || filesize('./'.$_SERVER['REQUEST_URI'].'/css/ie.css') != 0) /* .. */ { echo ''; } } // use domain and build title function set_title($company = 'Fera Funk', $home = 'Home') { if($_SERVER['QUERY_STRING'] != '') { $title .= basename ($_SERVER['REQUEST_URI']); $encoded = array ('ae', 'ue', 'oe', '.html', '-', ',','_'); $decoded = array ('ä', 'ü', 'ö', '', ' ','',' '); $title = str_replace ($encoded, $decoded, $title); $title = preg_replace ('/[0-9]/','', $title); $title = ucwords($title); echo $company .' | ' . $title; } else { echo $company .' | ' . $home; } } /*function set_navi($navi = array(), $status = null) { $navi = explode(',',$navi); $navigation = ''; foreach($navi as $value) { $id = strtolower($value); $id = trim($id); $navigation .= '
  • '.$value.'
  • '; } return $navigation; }*/ // insert the correct doman into the robots.txt and build the sitemap.xml function set_files ($domain) { $content = "Sitemap:" . $domain . "/sitemap.xml\nUser-agent: *\nDisallow:"; $robots = fopen('robots.txt' , 'w+'); fwrite($robots, $content); fclose($robots); $link_source = $_SERVER['REQUEST_URI']; $link_source = str_replace (basename($_SERVER['REQUEST_URI']),'',$link_source); if($_SERVER['QUERY_STRING'] == '') { $link = scandir('../'.$_SERVER['REQUEST_URI'].'/incl'); } else { $link = scandir('../'.$link_source.'/incl'); } $link_list = "\n\n\n"; foreach($link as $value) { $link_list .= "$domain/$value\n"; $link_list = str_replace("$domain/..\n",'', $link_list); $link_list = str_replace("$domain/.\n",'', $link_list); $link_list = str_replace("$domain/config.php\n",'', $link_list); } $link_list .= ""; $link_list = str_replace ('.inc.php','.html',$link_list); $sitemap = fopen('sitemap.xml' , 'w+'); fwrite($sitemap, $link_list); fclose($sitemap); } // set_files($domain); function user_agent() { if(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.5') || stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0')) { echo "
    \n

    \nSie scheinen eine veraltete Version des Internet-Explorers zu nutzen, was zu Darstellungsproblemen führen kann und unter Umständen die Sicherheit Ihres PCs gefährdet.
    Bitte laden Sie sich einen aktuellen Browser runter: Internet-Explorer | Mozilla Firefox | Opera

    "; } } function set_piwik($number = '564') { echo "\n\n"; } ?>