PHP funktioniert nicht

ts230

Gesperrt
Hallo,
ich habe hier eine PHP-Datei die nicht funktioniert(Aus WP):
PHP:
<?php
$templatePath = get_bloginfo("template_directory");

require_once('style-switcher.php');
// ========================================================================
// prepare scheme stylesheet switcher
$styleSheet = new AlternateStyles();
$styleSheet->add($templatePath.'/style.css','screen,projection');
$preferredScheme = themeInfo('bb_scheme');

define('USE_SCHEME_SWITCHER', themeInfo('bb_schemeswitcher'));
if (USE_SCHEME_SWITCHER == 0)
{
    // no scheme selected, so default has to be used
    if ($preferredScheme == "")
        $styleSheet->add($templatePath.'/Default.css','screen,projection','Default');

    // get available schemes
    $scheme_dir = @ dir(ABSPATH . '/wp-content/themes/' . get_template() . '/schemes');
    if ($scheme_dir) {
        while(($file = $scheme_dir->read()) !== false) {
                if (!preg_match('|^\.+$|', $file) && preg_match('|\.scheme\.css$|', $file))
                $scheme_files[] = $file;
        }
    }

    // process schemes that can be switched
    if ($scheme_dir || $scheme_files)
    {
        foreach($scheme_files as $scheme_file)
        {
            $styleTitle = preg_replace("|\.scheme\.css$|","" ,$scheme_file);
            $scheme_file = rawurlencode($scheme_file);
            if (strcmp($styleTitle,$preferredScheme) == 0)
            {
                $styleSheet->add($templatePath.'/schemes/'.$scheme_file,'screen,projection',$styleTitle);
            } else {
                $styleSheet->add($templatePath.'/schemes/'.$scheme_file,'screen,projection',$styleTitle,true);
            }
        }
    }
} else {
    // no switch, so the default scheme has to be used
    $styleSheet->add($templatePath . themeInfo('scheme'),'screen,projection');
}
$styleSheet->getPreferredStyles();
// ========================================================================
$blogName = get_bloginfo("name");
$blogDescription = get_bloginfo("description");

define('AUTHOR_AMOUNT', getBlogAuthorAmount()); // make sure it is visible everywhere
define('USE_LIVESEARCH', themeInfo('bb_livesearch')); // make sure it is visible everywhere
define('USE_NICETITLE', themeInfo('bb_nicetitle')); // make sure it is visible everywhere

// get the primary blog language
$blog_language = themeInfo('bb_blog_language');
if ($blog_language == '')
    $blog_language = 'de';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $blog_language; ?>" xml:lang="<?php echo $blog_language; ?>">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>Tiersendung :: Hund,Katze und mehr!</title>
<meta name="description" content="<?php echo $blogDescription; ?>" />
    <?php if (function_exists('UTW_ShowWeightedTagSetAlphabetical')) { ?>
<meta name="keywords" content="<?php UTW_ShowWeightedTagSetAlphabetical('commalist', array('first'=>'%tagdisplay%, ', 'single'=>'%tagdisplay%','default'=>'%tagdisplay%, ','last'=>'%tagdisplay%')); ?>" />
<?php } ?>
<link rel="SHORTCUT ICON" href="http://tiersendung.ti.funpic.de/wp-content/uploads/2008/08/ts_ani.gif">
<link rel="apple-touch-icon" href="bilder/appleicon.png">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="content-language" content="de">
<meta name="description" content="Auf dieser Seite wird alles über die Tiersendung verraten.Diese Internetseite ist die offizielle.Außerdem könnt ihr hier viele tolle Sachen machen!">
<meta name="keywords" content="Tiersendung,tiersendung,Apflakuta,apflakuta,TV,Tiere,trudi,madleen,Trudi,Madleen,tristan,Tristan,trissy.de,Trissy,trissy,Katze,Hund,Puffpiltz,Piltze,Piltz,
Mayo,Ketschup,HTML,q,w,e,r,t,z,u,i,o,p,ü,+,#,ä,ö,l,k,j,h,g,f,d,s,a,y,x,c,v,b,n,
,m,Q,W,E,R,T,Z,U,I,O,P,Ü,+,*,~,#,',.,-,_,A,S,D,F,G,H,J,K,L,Ö,Ä,Y,X,C,V,B
,N,M,;,1,2,3,4,5,6,7,8,9,0,ß,´,!,§,$,%,&,/,?,`,.,²,³,{,[,],},\,|">
<meta name="robots" content="index,follow">
<meta name="author" content="TS+TS+MQ">
<meta name="publisher" content="TS Entertainment Inc. Deutschland &USA">
<meta name="copyright" content="TS Entertainment Inc. Deutschland &USA">
<meta name="date" content="2008-02-15T14:30:10+01:00.">
<meta name="content-language" content="de">
<meta name="page-topic" content="Medien">
<meta name="page-type" content="Berichte/Reportagen">
<meta name="audience" content="Alle">
<meta name="revisit-after" content="2 days">

<style type="text/css">
body, td, th {  font-family: "Arial", "Helvetica", sans-serif; margin-top: 1em; margin-bottom: 0.2em;  }

body { background-color: #EFCFAF; color: #000000; margin: 0; padding: 15px; font-family: "Arial", "Helvetica", sans-serif;}

h1 { font-size: 135%; }

h2 { font-size: 135%; }

h3 { font-size: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: "Arial", "Helvetica", sans-serif; margin-top: 1em; margin-bottom: 0.2em; }
b{  font-family: "Arial", "Helvetica", sans-serif; margin-top: 1em; margin-bottom: 0.2em;  }

p, ul, ol, dl, table { margin-top: 0em; margin-bottom: 2em; }

iframe, object { margin-top: 0em; margin-bottom: 1em; }

sup, sub { font-size: smaller; }

p ul { margin-top: 0em; margin-bottom: 0em; }

ul ul, ul ul ul { margin-top: 0em; margin-bottom: 0em; }

table { border-collapse: collapse; }


/* Formulare */

form { display: inline; }
input, button { border: gray 1px solid; background-color : #F1F1C1;  font-family: "Arial", "Helvetica", sans-serif; text-decoration:none;}

input:focus, button { border: #D20000 1px solid; background-color: #FFFF9F; text-decoration:none;}
textarea{ border: gray 1px solid; background-color : #F1F1C1;  font-family: "Arial", "Helvetica", sans-serif; }

textarea:focus{ border: #D20000 1px solid; background-color: #FFFFBF; text-decoration:none;}
textarea:hover { border: #D00A00 1px solid; background-color: #FFFF5F; text-decoration:none; }
/*textarea:hover { text-decoration:line-through; }*/
 select{border: gray 1px solid; background-color : #FDF1C1;  font-family: "Arial", "Helvetica", sans-serif; text-decoration:none;}
select:focus{border: #D00000 1px solid;}
.rot {color: red;}

.gruen {color: green;}

.blau {color: blue;}

.gelb {color: yellow;}

.grau {color: silver;}

.gold {color: #ffd700;}

.navy {color: navy;}

.oliv {color: olive;}

.purpur {color: purple;}

.teal {color: teal;}

.rosa {color: fuchsia;}

.dosbox { font-family: "Courier New", Courier, mono; color: #FFFFFF; background-color: #000000; border: medium solid #000000; margin: 1px; height: auto; width: auto; margin-top: 0em; margin-bottom: 2em; }

.achtung { padding: 5px; border: 1px solid #FF0000; background-color: #FFCCCC; color: #FF0000; font-weight: bold; }

.werbung { padding: 5px; border: 1px solid #000000; background-color: #EEEEEE; margin-bottom: 10px; }

.meldung-positiv { padding: 5px; border: 1px solid #008000; background-color: #99FF99; }

.meldung-negativ { padding: 5px; border: 1px solid #FF0000; background-color: #FFCCCC; }

.fehler { color: red; }

.mysql { background-color: #FFFFCC; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em; border: 1px solid #FF9966; padding: 5px; display: block; }
</style>
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/prototype.js"></script>
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/lightbox.js"></script>
<link rel="stylesheet" href="http://www.lokeshdhakar.com/projects/lightbox2/css/lightbox.css" type="text/css" media="screen" />


<script>
//var modal = new AscModal('Wilkommen auf der TiersendungBitte drücke die ESC-Taste,um dieses Fenster zu schließen.', 'n');
//modal.show();
//var tooltip1 = new Tip($('content'), 'Die Beiträge stehen hier');
</script>
<!--
<script type ="text/javascript" src="http://tiersendung.ti.funpic.de/EXJS/ext-core.js"></script>
<script type ="text/javascript" src="http://tiersendung.ti.funpic.de/EXJS/ext-all.js"></script>
-->

<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="7 days" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0: Artikel" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92: Artikel" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3: Artikel" href="<?php bloginfo('atom_url'); ?>" />
<?php if (is_single() or is_page()) { ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php echo $templatePath; ?>/images/favicon.ico" />

<link rel="stylesheet" type="text/css" href="<?php echo $templatePath; ?>/ela.css" />
<?php } ?>
<?php if ((themeInfo('bb_archives') == 'add_archive') && get_option('permalink_structure')) { ?>
<link rel="archives" href="<?php echo get_settings('home'); ?>/archive/" title="<?php _e('Das Archiv','4null4.de'); ?>" />
<?php } ?>
<?php

// vorbereitete Stylesheet-URLs einrendern
$styleSheet->drop();
?>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/fastinit.js"></script>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/effects.js"></script>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/behaviour.js"></script>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/themeBehaviours.js"></script>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/bbfunctions.js"></script>
<?php if (function_exists('get_ajax_calendar')) { ?>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/ajaxCalendar.js"></script>
<?php } ?>
<?php if (USE_SCHEME_SWITCHER == 0) { ?>
<script type='text/javascript' src='<?php echo $templatePath; ?>/js/alternateStyles.js'></script>
<?php } ?>
<?php if (USE_NICETITLE == 0) { ?>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/nicetitles.js"></script>
<?php } ?>
<?php if ((themeInfo('bb_livecomments')==0) and (is_single()|| is_page())) { ?>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/ajax_comments.js"></script>
<?php } ?>
<?php if ((USE_LIVESEARCH == 0) || (function_exists('dynamic_sidebar') && is_active_widget('widget_livesearch'))) { ?>
<script type="text/javascript" src="<?php echo $templatePath; ?>/js/livesearch.js"></script>
<?php } ?>
<script type="text/javascript">//<![CDATA[
    function pageInit()
    {
<?php if (!is_user_logged_in() && (is_single() || is_page()) && ($comment_author = $_COOKIE['comment_author_'.COOKIEHASH]) && ('open' == $post->comment_status)) { ?>
        HideUtils(); // hide unneeded comment fields if usercookie present
<?php } ?>
<?php if (USE_SCHEME_SWITCHER == 0) { ?>
        altStyles.init(); // enable Styleswitcher
<?php } ?>
<?php if ((USE_LIVESEARCH == 0) || (function_exists('dynamic_sidebar') && is_active_widget('widget_livesearch'))) { ?>
        liveSearchInit();
<?php } ?>
        // add your further init functions that should be executed onLoad here
        Behaviour.apply();
        initLightbox();
    }
<?php if ((USE_LIVESEARCH == 0) || (function_exists('dynamic_sidebar') && is_active_widget('widget_livesearch'))) { ?>
    var liveSearchURI = "<?php echo $templatePath; ?>/livesearch.php?s=";
<?php } ?>
    // init URL for AJAX enhanced ReadMore links
    var singlePostURL = '<?php echo $templatePath; ?>/single_content.php?id=';
    var pagedCommentsURL = '<?php echo $templatePath; ?>/comments-paged.php?<?php if (is_single()) {echo "p=";} else { echo "page_id=";} ?>';
    // LightBox JS Configuration
    // If you would like to use a custom loading image or close button reference them in the next two lines.
    var fileLoadingImage        = "<?php echo $templatePath; ?>/images/loading.gif";
    var fileBottomNavCloseImage = "<?php echo $templatePath; ?>/images/closelabel.gif";
    var throbberURL             = "<?php echo $templatePath; ?>/images/throbber.gif";

    new FastInit(pageInit); // faster AJAX initialization
//]]></script>

<!-- MSIE older than v7 need special handling -->
<!--[if lt IE 7]>
<?php if (themeInfo('bb_ie7support') == 0) { ?>
    <script src="<?php echo $templatePath; ?>/js/ie7/ie7-standard-p.js" type="text/javascript"></script>
    <noscript>&nbsp;</noscript>
<?php } ?>
    <style type="text/css">
    pre {
        width: 90%;
    }
    </style>
<![endif]-->
<?php wp_head(); ?>
</head>
<body class="bb" lang="<?php echo $blog_language; ?>" xml:lang="<?php echo $blog_language; ?>">
<a name="topmost" href="#"></a>
<div id="page"><!-- the page //-->
<div id="shadowLeft"><!-- left shadow //-->
<div id="shadowRight"><!-- right shadow //-->
<div id="innerPage">

    <div id="header">


        <h1 class="topBanner">
<a href="<?php echo get_settings('home'); ?>"><?php echo $blogName; ?></a></h1>
        <div class="description"><?php echo $blogDescription; ?></div>

<?php if (themeInfo('bb_sidebar_pages') != 0) { ?>
        <div id="topMenu">
            <ul class="menu">
                <li class="<?php if ((is_home() && !is_paged()) || is_single() || is_paged() || is_search() || (is_archive() && (!is_category() || !function_exists('wp_list_main_cats')))) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>" accesskey="1"><?php echo themeInfo('bb_startpage_name'); ?></a></li>
                <?php if (function_exists('wp_list_main_cats')) wp_list_main_cats('sort_column=ID&title_li='); ?>
                <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
Ich krige immer nur
HTML:
Parse error:  syntax error, unexpected $end in /usr/export/www/vhosts/funnetwork/hosting/tiersendung/wp-content/themes/WP-Binary-Blue-v142/header.php on line 285
Bitte helft mir
 
Zuletzt bearbeitet:
Moin,

keine Ahnung, was du damit gemacht hast, aber im Original folgt da, wo bei dir Schluss ist, noch Folgendes:
Code:
<?php wp_register('<li>','</li>'); ?>
				<li><?php wp_loginout(); ?></li>
			</ul>
		</div>
<?php } ?>
	</div>

	<hr class="hidden" />
	<p class="hidden"><?php _e('Schnellnavigation:', '4null4,de'); ?> <a href="#topmost"><?php _e('Zum Seitenanfang springen', '4null4.de'); ?></a> | <a href="#posts"><?php _e('Zu den Artikeln springen', '4null4.de'); ?></a> | <a href="#sidebaranchor"><?php _e('Zur Navigation springen', '4null4.de'); ?></a></p>
	<hr class="hidden" />

Das, was den Fehler verursacht, weil es bei dir fehlt, habsch mal rot markiert
 
Zurück