Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1701 Revision 1702
Zeile 62... Zeile 62...
62
                }
62
                }
63
            }
63
            }
64
        }
64
        }
65
        return $ini;
65
        return $ini;
66
    }
66
    }
-
 
67
 
-
 
68
    /**
-
 
69
     * Load Content form Typo3
-
 
70
     *
-
 
71
     * @param $url
-
 
72
     * @return array
-
 
73
     */
-
 
74
    function parseCMSPage( $url ): array
-
 
75
    {
-
 
76
        $menu = "";
-
 
77
        $content = "";
-
 
78
        $dom = new Dom;
-
 
79
        try
-
 
80
        {
-
 
81
            $dom->loadFromUrl( $url );
-
 
82
            $menu = $dom->getElementById( 'menu' )->innerHtml;
-
 
83
            $menu = str_replace( "/typo3", "/cms", $menu );
-
 
84
            $content = $dom->getElementById( 'content' )->innerHtml;
-
 
85
            $content = str_replace( "fileadmin/", $GLOBALS["INI"]["typo3"]["url"] . "/typo3/fileadmin/", $content );
-
 
86
            $content = str_replace( "ce-textpic", "", $content );
-
 
87
        }
-
 
88
        catch ( ChildNotFoundException|CircularException|CurlException|StrictException|NotLoadedException $e )
-
 
89
        {
-
 
90
        }
-
 
91
        return array( "menu" => $menu, "content" => $content, );
-
 
92
    }
-
 
93