Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 756 Revision 762
Zeile 205... Zeile 205...
205
    Route::get( "/delItem/{id}", function ()
205
    Route::get( "/delItem/{id}", function ()
206
    {
206
    {
207
        $_SESSION["SHOP"]["BASKET"]->delItem();
207
        $_SESSION["SHOP"]["BASKET"]->delItem();
208
        return redirect("/basket.html");
208
        return redirect("/basket.html");
209
    } )->where( "id", "[0-9a-f]{40}" );
209
    } )->where( "id", "[0-9a-f]{40}" );
-
 
210
    Route::get("/login",function()
-
 
211
    {
-
 
212
        return view( 'login_center', [
-
 
213
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
-
 
214
            "nav"               => $GLOBALS["menu"],
-
 
215
            "ini"               => $GLOBALS["INI"],
-
 
216
            "langstrings"       => $GLOBALS["langstrings"],
-
 
217
        ] );
-
 
218
    });
210
    Route::get( '/setSessionVars', function ()
219
    Route::get( '/setSessionVars', function ()
211
    {
220
    {
212
        foreach ( $_GET as $key => $value )
221
        foreach ( $_GET as $key => $value )
213
        {
222
        {
214
            if ( $value == "false" )
223
            if ( $value == "false" )
Zeile 219... Zeile 228...
219
            {
228
            {
220
                $_SESSION[$key] = $value;
229
                $_SESSION[$key] = $value;
221
            }
230
            }
222
        }
231
        }
223
    } );
232
    } );
-
 
233
    Route::post("/setSessionVars",function(){
-
 
234
        foreach ( $_POST as $key => $value )
-
 
235
        {
-
 
236
            if ( $value == "false" )
-
 
237
            {
-
 
238
                unset( $_SESSION[$key] );
-
 
239
            }
-
 
240
            else
-
 
241
            {
-
 
242
                $_SESSION[$key] = $value;
-
 
243
            }
-
 
244
        }
-
 
245
    });
224
    Route::post( "/updateSession", function()
246
    Route::post( "/updateSession", function()
225
    {
247
    {
226
	    return "";
-
 
227
    } );
248
    } );
228
    Route::get( "/cms/{slug}", function ( $slug )
249
    Route::get( "/cms/{slug}", function ( $slug )
229
    {
250
    {
230
        $url = $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" . $slug;
251
        $url = $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" . $slug;
231
        $arr = parseCMSPage( $url );
252
        $arr = parseCMSPage( $url );