Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1699 | Revision 1703 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1699 Revision 1702
Zeile 116... Zeile 116...
116
    foreach ( $langstrings as $langstring )
116
    foreach ( $langstrings as $langstring )
117
    {
117
    {
118
        $GLOBALS["langstrings"][$langstring->page_id][$langstring->id] = $langstring->string;
118
        $GLOBALS["langstrings"][$langstring->page_id][$langstring->id] = $langstring->string;
119
    }
119
    }
Zeile 120... Zeile -...
120
 
-
 
121
    function parseCMSPage( $url ): array
-
 
122
    {
-
 
123
        $menu = "";
-
 
124
        $content = "";
-
 
125
        $dom = new Dom;
-
 
126
        try
-
 
127
        {
-
 
128
            $dom->loadFromUrl( $url );
-
 
129
            $menu = $dom->getElementById( 'menu' )->innerHtml;
-
 
130
            $menu = str_replace( "/typo3", "/cms", $menu );
-
 
131
            $content = $dom->getElementById( 'content' )->innerHtml;
-
 
132
            $content = str_replace( "fileadmin/", $GLOBALS["INI"]["typo3"]["url"] . "/typo3/fileadmin/", $content );
-
 
133
            $content = str_replace( "ce-textpic", "", $content );
-
 
134
        }
-
 
135
        catch ( ChildNotFoundException|CircularException|CurlException|StrictException|NotLoadedException $e )
-
 
136
        {
-
 
137
        }
-
 
138
        return array( "menu" => $menu, "content" => $content, );
-
 
139
    }
-
 
140
 
120
 
141
    if ( !isset( $_SESSION["navigation"]["position"] ) )
121
    if ( !isset( $_SESSION["navigation"]["position"] ) )
142
    {
122
    {
143
        $_SESSION["navigation"]["position"] = null;
123
        $_SESSION["navigation"]["position"] = null;
144
    }
124
    }