PCMasters Hardware Forum > Software > GFX, Webdesign und Programmierung > Seite 5 > Probleme mit PHP-Datei

Im PC Forum registrieren


Produktsuche
IDEALO-PRODUKT-SUCHE
idealo preisvergleich
PCM News & Reviews
Antwort
 
 
Alt 15.12.2010, 14:11
Benutzerbild von Shanai
Threadersteller
Shanai
 
Standard

Probleme mit PHP-Datei



Hallo zusammen,

hoffentlich kann mir einer von euch weiter helfen,...

Wenn ich die URL meines Intranets in den Browser eingebe, erscheint folgende Fehlermeldung:
Parse error: syntax error, unexpected $end in /usr/share/mediawiki/skins/Modern.php on line 275

Woran liegt das?!

Hier die ganze PHP-Datei:
PHP-Code:
<?php
/**
 * Modern skin, derived from monobook template.
 *
 * @todo document
 * @addtogroup Skins
 */

if( !defined'MEDIAWIKI' ) )
    die( -
);

/**
 * Inherit main code from SkinTemplate, set the CSS and template filter.
 * @todo document
 * @addtogroup Skins
 */
class SkinModern extends SkinTemplate {
    function 
initPage( &$out ) {
        
SkinTemplate::initPage$out );
        
$this->skinname  'modern';
        
$this->stylename 'modern';
        
$this->template  'ModernTemplate';
    }
}

/**
 * @todo document
 * @addtogroup Skins
 */
class ModernTemplate extends QuickTemplate {
    
/**
     * Template filter callback for Modern skin.
     * Takes an associative array of data set from a SkinTemplate-based
     * class, and a wrapper for MediaWiki's localization database, and
     * outputs a formatted page.
     *
     * @access private
     */
    
function execute() {
        global 
$wgUser;
        
$skin $wgUser->getSkin();

        
// Suppress warnings to prevent notices about missing indexes in $this->data
        
wfSuppressWarnings();


?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="<?php $this->text('xhtmldefaultnamespace'?><?php 
    
foreach($this->data['xhtmlnamespaces'] as $tag => $ns) {
        
?>xmlns:<?php echo "{$tag}=\"{$ns}\" ";
    } 
?>xml:lang="<?php $this->text('lang'?>" lang="<?php $this->text('lang'?>" dir="<?php $this->text('dir'?>">
    <head>

        <meta http-equiv="Content-Type" content="<?php $this->text('mimetype'?>; charset=<?php $this->text('charset'?>" />
        <?php $this->html('headlinks'?>
        <title><?php $this->text('pagetitle'?></title>
        <style type="text/css" media="screen, projection">/*<![CDATA[*/
            @import "<?php $this->text('stylepath'?>/common/shared.css?<?php echo $GLOBALS['wgStyleVersion'?>";
            @import "<?php $this->text('stylepath'?>/<?php $this->text('stylename'?>/main.css?<?php echo $GLOBALS['wgStyleVersion'?>";
        /*]]>*/</style>
        <link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php ?> href="<?php $this->text('stylepath'?>/<?php $this->text('stylename'?>/print.css?<?php echo $GLOBALS['wgStyleVersion'?>" />
        <!--[if lt IE 7]><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
        
        <?php print Skin::makeGlobalVariablesScript$this->data ); ?>
                
        <script type="<?php $this->text('jsmimetype'?>" src="<?php $this->text('stylepath' ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'?>"><!-- wikibits js --></script>
        <!-- Head Scripts -->
<?php $this->html('headscripts'?>
<?php    
if($this->data['jsvarurl'  ]) { ?>
        <script type="<?php $this->text('jsmimetype'?>" src="<?php $this->text('jsvarurl'  ?>"><!-- site js --></script>
<?php    ?>
<?php    
if($this->data['pagecss'   ]) { ?>
        <style type="text/css"><?php $this->html('pagecss'   ?></style>
<?php    }
        if(
$this->data['usercss'   ]) { ?>
        <style type="text/css"><?php $this->html('usercss'   ?></style>
<?php    }
        if(
$this->data['userjs'    ]) { ?>
        <script type="<?php $this->text('jsmimetype'?>" src="<?php $this->text('userjs' ?>"></script>
<?php    }
        if(
$this->data['userjsprev']) { ?>
        <script type="<?php $this->text('jsmimetype'?>"><?php $this->html('userjsprev'?></script>
<?php    }
        if(
$this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
    </head>
<body <?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick'?>"<?php ?>
<?php 
if($this->data['body_onload'    ]) { ?> onload="<?php     $this->text('body_onload')     ?>"<?php ?>
 class="mediawiki <?php $this->text('nsclass'?> <?php $this->text('dir'?> <?php $this->text('pageclass'?>">

    <!-- heading -->

    
    <div id="mw_header">

    <div id="metamenu">
        <ul-inhalt>
        <a style="color:#000000" title="Startseite" href="http://info.keimfarben.de/mediawiki/index.php/Hauptseite">Startseite</a> <a style="color:#000000" title=Seiten&uuml;bersicht" href="http://info.keimfarben.de/mediawiki/index.php/Seiten%C3%BCbersicht">Seiten&uuml;bersicht</a> <a style="color:#000000" title="Suche" href="http://info.keimfarben.de/mediawiki/index.php/Spezial:Suche">Suche</a> <a style="color:#000000" title="Anmelden" href="http://info.keimfarben.de/mediawiki/index.php/Spezial:Anmelden">Anmelden</a> <a style="color:#000000" title="Kontakt" href="http://info.keimfarben.de/mediawiki/index.php/Kontakt">Kontakt</a>
        </ul-inhalt>
    </div>

    <!-- search -->
    <div id="p-search" class="portlet">
        <h5><label for="searchInput"><?php $this->msg('search'?></label></h5>
        <div id="searchBody" class="pBody">
            <form action="<?php $this->text('searchaction'?>" id="searchform"><div>
                <input style="font-size:12px; width:160px; id="searchInput" name="search" type="text" value="Suchbegriff hier eingeben" onblur="if(this.value=='')this.value='Suchbegriff hier eingeben...';" onfocus="if(this.value=='Suchbegriff hier eingeben')this.value='';" <?php echo $skin->tooltipAndAccesskey('search');
                    if( isset( 
$this->data['search'] ) ) {
                        
?> value="<?php $this->text('search'?>"<?php ?> />
                <input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton'?>"<?php echo $skin->tooltipAndAccesskey'search-fulltext' ); ?> />
            </div></form>
        </div><!-- pBody -->
    </div><!-- portlet -->

    </div>
    <div class='mw_clear'></div>

    <div id="mw_contentwrapper">
    <div id="mw_content">
    <!-- contentholder does nothing by default, but it allows users to style the text inside
         the content area without affecting the meaning of 'em' in #mw_content, which is used
         for the margins -->
    <div id="mw_contentholder"> <font size=2>
        <div class='mw-topboxes'>
                <?php if($this->data['newtalk'] ) {
                
?><div class="usermessage mw-topbox"><?php $this->html('newtalk')  ?></div>
            <?php ?>
            <?php if($this->data['sitenotice']) {
                
?><div class="mw-topbox" id="siteNotice"><?php $this->html('sitenotice'?></div>
            <?php ?>
        </div>

        <div id="contentSub"><?php $this->html('subtitle'?></div>

        <?php if($this->data['undelete']) { ?><div id="contentSub2"><?php     $this->html('undelete'?></div><?php ?>
        <?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto'?> <a href="#column-one"><?php $this->msg('jumptonavigation'?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch'?></a></div><?php ?>

        <?php $this->html('bodytext'?>

        <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php       $this->html('catlinks'?></div><?php ?>
    <div class='mw_clear'></div>
    </div><!-- mw_contentholder -->

    </div><!-- mw_content -->
    </div><!-- mw_contentwrapper -->

    <div id="mw_portlets">
    <!-- other portlets -->
    <?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
    <div class='portlet' id='p-<?php echo Sanitizer::escapeId($bar?>'<?php echo $skin->tooltip('p-'.$bar?>>
        <h5><?php $out wfMsg$bar ); if (wfEmptyMsg($bar$out)) echo $bar; else echo $out?></h5>
        <div class='pBody'>
            <ul>
<?php             foreach($cont as $key => $val) { ?>
                <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php
                    
if ( $val['active'] ) { ?> class="active" <?php }
                
?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li>

<?php            ?>
            </ul>
        </div><!-- pBody -->
    </div><!-- portlet -->

    <!-- toolbox -->
        <div class="portlet" id="p-tb">
        <?php if($this->data['loggedin']) { ?>
        <h5><?php $this->msg('toolbox'?></h5>

        <div class="pBody">
            <ul>
<?php
        
if($this->data['notspecialpage']) { ?>
                </li>
<?php
            
if( $this->data['nav_urls']['recentchangeslinked'] ) { ?>
                


<?php         }
        }
        if(isset(
$this->data['nav_urls']['trackbacklink'])) { ?>
            <li id="t-trackbacklink"><a href="<?php
                
echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])
                
?>"<?php echo $skin->tooltipAndAccesskey('t-trackbacklink'?>><?php $this->msg('trackbacklink'?></a></li>

            <li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) {
                    
?><span id="feed-<?php echo Sanitizer::escapeId($key?>"><a href="<?php
                    
echo htmlspecialchars($feed['href']) ?>"<?php echo $skin->tooltipAndAccesskey('feed-'.$key?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;</span>
                    <?php ?></li><?php
        
}

        foreach( array(
'log''emailuser''upload''specialpages') as $special ) {

            if(
$this->data['nav_urls'][$special]) {
                
?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])
                
?>"<?php echo $skin->tooltipAndAccesskey('t-'.$special?>><?php $this->msg($special?></a></li>
<?php        }
        }

        if(!empty(
$this->data['nav_urls']['print']['href'])) { ?>
                <?php
        
}

        if(!empty(
$this->data['nav_urls']['href'])) { ?>
                <li id="t-permalink"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['href'])
                
?>"<?php echo $skin->tooltipAndAccesskey('t-permalink'?>><?php $this->msg('permalink'?></a></li><?php
        
} elseif ($this->data['nav_urls']['href'] === '') { ?>
                <li id="t-ispermalink"<?php echo $skin->tooltip('t-ispermalink'?>><?php $this->msg('permalink'?></li><?php
        
}
?>
            </ul>
        <?php ?>
        </div><!-- pBody -->
    </div><!-- portlet -->

    <div id="p-lang" class="portlet">
        <h5><?php $this->msg('otherlanguages'?></h5>
        <div class="pBody">
            <ul>
<?php        foreach($this->data['language_urls'] as $langlink) { ?>
                <li class="<?php echo htmlspecialchars($langlink['class'])?>"><?php
                ?>
<a href="<?php echo htmlspecialchars($langlink['href']) ?>"><?php echo $langlink['text'?></a></li>
<?php        ?>
            </ul>
        </div><!-- pBody -->
    </div><!-- portlet -->

    <!-- personal portlet -->
    <div class="portlet" id="p-personal">
        <h5><?php $this->msg('personaltools'?></h5>
        <div class="pBody">
            <ul>
<?php             foreach($this->data['personal_urls'] as $key => $item) { ?>
                <li id="pt-<?php echo Sanitizer::escapeId($key?>"<?php
                    
if ($item['active']) { ?> class="active"<?php ?>><a href="<?php
                
echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key?><?php
                
if(!empty($item['class'])) { ?> class="<?php
                
echo htmlspecialchars($item['class']) ?>"<?php ?>><?php
                
echo htmlspecialchars($item['text']) ?></a></li>
<?php            ?>
            </ul>
        </div>
    </div>

    <!-- languages -->
    </div>

    <div id="sidebar"

        <div id="sidebar2">
            <ul-inhalt>
            <b><a title="Dokumente">Dokumente</a></b> <br> 
            </ul-inhalt>
        </div>

        <div id="sidebar2i">
            <ul-inhalt>
            <a title="Formulare" href="http://info.keimfarben.de/mediawiki/index.php/Formulare">Formulare</a> <br> <a title="Vorlagen" href="http://info.keimfarben.de/mediawiki/index.php/Vorlagen">Vorlagen</a> <br> <a title="Telefonlisten" href="http://info.keimfarben.de/mediawiki/index.php/Telefonlisten">Telefonlisten</a> <br> <a title="Vertrieb Inland" href="http://info.keimfarben.de/mediawiki/index.php/Vertrieb_Inland">Vertrieb Inland</a> <br> <a title="Vertrieb Export" href="http://info.keimfarben.de/mediawiki/index.php/Vertrieb_Export">Vertrieb Export</a>
            </ul-inhalt>
        </div>

        <div id="sidebarprodukte">
            <ul-inhalt>
            <b><a title="Produkte">Produkte</a></b> <br> 
            </ul-inhalt>
        </div>

        <div id="sidebar2produkte">
            <ul-inhalt>
            <a title="Printmedien" href="http://info.keimfarben.de/mediawiki/index.php/Printmedien">Printmedien</a> <br> <a title="Produktprogramm" href="http://www.keimfarben.de/de/produktprogramm_2010/">Produktprogramm</a> <br> <a title="Technische Merkblaetter" href="http://www.keimfarben.de/de/technische_merkblaetter_2010/">Technische Merkbl&auml;tter</a>
            </ul-inhalt>
        </div>

    </div>

</body></html>

Danke für eure Hilfe!

Viele Grüße
Shanai
Alt Heute
Hardware Bot
Computer Informationen
 
Diese Werbung wird registrierten
Mitgliedern nicht angezeigt.
Werden Sie noch heute kostenlos Mitglied
auf PCMasters.de
Standard Weitere Informationen

 
Alt 15.12.2010, 19:01
pixelflat
 
Standard

Also wenn ich nach der ] siehts so aus als hättest du das Layout verhunzt. Es fehlt zB der komplette Footer. In dem Teil, den du scheinbar editiert hast, steht nicht mal korrektes HTML (<div id="sidebar <div id="sidebar2">).

Klar ist, dass dir irgendwo mind. eine schließende Klammer fehlt. Nur habe ich keine Muse bei dem PHP/HTML-Mischmasch danach zu suchen, wenn nicht mal sicher ist was und wie viel du gelöscht hast.

Btw, ] sieht man eigentlich nicht so gerne...
hardware forum Neue Frage stellen?
Kurze Zusammenfassung der Frage:
Bitte wählen Sie eine Kategorie:
Mailadresse:
Ihre Frage:
Ihre Frage wird als Gast gespeichert. Sollte eine Antwort im Forum erfolgen, bekommen Sie diese per Email zugeschickt.


Antispam, bitte die folgende Aufgabe lösen: 
 
Um auf dieses Thema zu ANTWORTEN
bitte sich zuerst » hier kostenlos registrieren!!

Antwort

Tags: , ,

Ähnliche Tags: , , ,


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
mit PHP datei auf FTP laden? buguser GFX, Webdesign und Programmierung 3 10.05.2010 20:19
Kompletten Ordner via PHP includen Icke GFX, Webdesign und Programmierung 7 28.10.2009 17:32
Probleme mit Internetverbindung über Kabel und W-Lan FloSundern Internet und Netzwerke 1 04.01.2009 13:02
FLEXnet Publisher - Probleme mit Kaspersky laika Sicherheit und Antivirus 2 25.10.2007 20:04
McAfee Problem - Datei nicht löschen Me$$er$chmidt Sicherheit und Antivirus 2 12.03.2007 22:04


Sie betrachten gerade: Probleme mit PHP-Datei


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:06 Uhr.



Im PC Forum registrieren