]> git.plutz.net Git - busy/commitdiff
honor login status when directing to news script
authorpaul <paul@plutz.net>
Mon, 31 Oct 2011 00:00:09 +0000 (00:00 +0000)
committerpaul <paul@plutz.net>
Mon, 31 Oct 2011 00:00:09 +0000 (00:00 +0000)
svn path=/trunk/; revision=26

Home.page

index 6f67a195469eb5887266d4312dd16722f4cad0ee..88dd0d53caa19a806ba4109b7632e362df6d698e 100644 (file)
--- a/Home.page
+++ b/Home.page
@@ -51,7 +51,7 @@ $ACL_ADDNEWS && cat <<HomeEND
   <div class="NEWS">
     <a id="new" class='function' href='#add' onclick='javascript:hide_screen("new");show_screen("add");'>Add News</a>
     <div id="add" style="display: none;">
-      <form action="/write/introedit.cgi?i=news" method="post" accept-charset="UTF-8">
+      <form action="/write/$($LOGIN && echo user_)introedit.cgi?i=news" method="post" accept-charset="UTF-8">
         <textarea name="text" rows="10">$([ -r "$each" ] && cat $each)</textarea><br>
         <input type="submit">
         <a class="function" href="#new" onclick="javascript:hide_screen('add');show_screen('new');">Cancel</a>