Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (45 sloc) 1.49 KB
<?php
$app->get("/detail/:id", function($id) use($app){
return $app->redirect("/clipart/$id", null, 301);
});
$app->get("/user-detail/:username", function($username) use($app){
return $app->redirect("/profile/$username", null, 301);
});
$app->get("/manage/profile", function() use($app){
return $app->redirect("/profile/edit", null, 301);
});
$app->get("/manage/clipart", function() use($app){
$user = $app->user();
if(!$user) return $app->notFound();
$username = $user['username'];
return $app->redirect("/profile/$username/clipart", null, 301);
});
$app->get("/collections", function() use($app){
return $app->redirect("/", null, 301);
});
$app->get("/signin", function() use($app){
return $app->redirect("/login", null, 301);
});
$app->get("/browse", function() use($app){
return $app->redirect("/browse", null, 301);
});
$app->get("/bydate", function() use($app){
return $app->redirect("/clipart/latest", null, 301);
});
$app->get("/byhits", function() use($app){
return $app->redirect("/clipart/popular", null, 301);
});
$app->get("/multiupload", function() use($app){
return $app->redirect("/upload", null, 301);
});
$app->get("/news", function() use($app){
return $app->redirect("/", null, 301);
});
$app->get("/packages", function() use($app){
return $app->redirect("/", null, 301);
});
$app->get("/image/:size/svg_to_png/:id/:name+", function($size, $id) use($app){
$size = preg_replace("/px$/", "", $size);
$app->redirect("/rendered-images/$size/$id", null, 301);
});
?>
Something went wrong with that request. Please try again.