'ashowflat.php' and 'ashowthreaded.php' support implemented in legacyphphandler

main
Inga 🏳‍🌈 15 years ago
parent 9dd949db16
commit 291b675d2f
  1. 2
      IISMainHandler/handlers/response/LegacyPHPHandler.cs

@ -20,9 +20,11 @@ namespace FLocal.IISHandler.handlers.response {
switch(scriptParts[0].ToLower()) {
case "showflat":
case "ashowflat":
Post post = Post.LoadById(int.Parse(context.httprequest.QueryString["Number"]));
return "/Thread/" + post.thread.id.ToString() + "/p" + post.id.ToString();
case "showthreaded":
case "ashowthreaded":
return "/Post/" + int.Parse(context.httprequest.QueryString["Number"]).ToString() + "/";
case "postlist":
return "/Board/" + Board.LoadByLegacyName(context.httprequest.QueryString["Board"]).id.ToString() + "/";

Loading…
Cancel
Save