Liebe Leser,
Wenn dies Ihr erster Besuch hier ist, lesen Sie bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Sie müssen sich vermutlich registrieren, bevor Sie Beiträge verfassen können. Klicken Sie rechts auf 'Jetzt registrieren.', um den Registrierungsprozess zu starten.
Ergebnis 1 bis 6 von 6
  1. #1
    Shanai ist offline Registrierter Benutzer
    Registriert seit
    07.2008
    Beiträge
    43

    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

  2. #2
    Watschelhuber ist offline Kbyte
    Mein System
    MainboardEckig
    ProzessorViele Füße
    GrafikkarteJa
    RAMSelbsverständlich
    Festplatte(n)Silber
    Andere LaufwerkeSchwarz
    Netzteil (inkl. Spannungswerte)Fahrraddynamo mit Propeller
    SoundkarteKling Klang
    BetriebssystemWindows 3.1
    Firewall"Die Mauer"
    System-/OptimierungstoolsSowas gibts net.
    Art des InternetzugangsDSL-6000
    Router/ModemSchwarz mit grünen Lichtern
    MonitorSchwarz
    Registriert seit
    03.2009
    Beiträge
    348
    und welche ist die zeile 275?

  3. #3
    Registriert seit
    04.2000
    Beiträge
    26.650
    ...würde sagen, dass ist die letzte Zeile. Der Fehler dürfte wohl weiter oben liegen und entweder auf falsche Klammern oder falsche Anführungszeichen zurück zu führen sein. Mein Editor zeigt im Bereich 234-236 eine komische Syntax-Hervorhebung.
    You get out what you put in.

    Hinweis: Außerhalb der Technik werden ironische Textabschnitte nicht immer gesondert gekennzeichnet.

  4. #4
    Avatar von Bonsay
    Bonsay ist offline Viertel Gigabyte
    Mein System
    MainboardMSI K9A2 Platinum
    ProzessorAthlon XP X2 5000+ Black Edition
    GrafikkarteMSI NX8600GTS 512MB
    RAM2x1024 DDR2 Dual
    Festplatte(n)Seagate SATA 200GB, Seagate SATA 320GB, Maxtor SATA 160GB, Externe Maxtor 120GB
    Andere LaufwerkeLG DVD Brenner, Benq CD Brenner
    Netzteil (inkl. Spannungswerte)Tronje 550W
    BetriebssystemWin 7 pro 64bit
    AV-SoftwareBitdefender 10
    FirewallBrain.exe
    System-/Optimierungstoolswer braucht denn so etwas. Die meisten schaden nur!!
    Art des InternetzugangsDSL-2000
    Router/ModemFritzBox 7170 + Netgear FVS318 (kaskadiert)
    MonitorTFT Benq FP91GP + Röhre Samsung 710S
    Sonstigeshab ich auch aber das würde zu weit führen
    Registriert seit
    03.2002
    Ort
    wo wohl: natürlich daheim
    Beiträge
    3.289
    <!-- languages -->
    </div>

    <div id="sidebar" > HIER FEHLT WAS

    <div id="sidebar2">
    <ul-inhalt>
    <b><a title="Dokumente">Dokumente</a></b> <br>
    </ul-inhalt>
    </div>
    Das ist in der Zeile 247 (lt. meinem Editor)
    Geändert von Bonsay (16.12.2010 um 07:31 Uhr)
    Die deutsche Sprache ist Freeware. Du kannst sie uneingeschränkt benutzen.
    Aber die deutsche Sprache ist NICHT Opensource. Du darfst sie NICHT nach Deinen Vorstellungen verändern.

  5. #5
    Registriert seit
    04.2000
    Beiträge
    26.650
    Der Fehler dürfte aber den PHP-Interpreter kalt lassen, da es ein HTML-Fehler ist.
    You get out what you put in.

    Hinweis: Außerhalb der Technik werden ironische Textabschnitte nicht immer gesondert gekennzeichnet.

  6. #6
    Avatar von Bonsay
    Bonsay ist offline Viertel Gigabyte
    Mein System
    MainboardMSI K9A2 Platinum
    ProzessorAthlon XP X2 5000+ Black Edition
    GrafikkarteMSI NX8600GTS 512MB
    RAM2x1024 DDR2 Dual
    Festplatte(n)Seagate SATA 200GB, Seagate SATA 320GB, Maxtor SATA 160GB, Externe Maxtor 120GB
    Andere LaufwerkeLG DVD Brenner, Benq CD Brenner
    Netzteil (inkl. Spannungswerte)Tronje 550W
    BetriebssystemWin 7 pro 64bit
    AV-SoftwareBitdefender 10
    FirewallBrain.exe
    System-/Optimierungstoolswer braucht denn so etwas. Die meisten schaden nur!!
    Art des InternetzugangsDSL-2000
    Router/ModemFritzBox 7170 + Netgear FVS318 (kaskadiert)
    MonitorTFT Benq FP91GP + Röhre Samsung 710S
    Sonstigeshab ich auch aber das würde zu weit führen
    Registriert seit
    03.2002
    Ort
    wo wohl: natürlich daheim
    Beiträge
    3.289
    Hast auch wieder recht
    Die deutsche Sprache ist Freeware. Du kannst sie uneingeschränkt benutzen.
    Aber die deutsche Sprache ist NICHT Opensource. Du darfst sie NICHT nach Deinen Vorstellungen verändern.

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
12
Content Management by InterRed