]> git.plutz.net Git - busy/blobdiff - Home.page
started Admin interface, integrated flattr
[busy] / Home.page
index 8f9d9dcb2a59d31d73a26926f680d20b5f39a451..01d5b1b3336c3777c15fb34bea45957c80a0d8fc 100644 (file)
--- a/Home.page
+++ b/Home.page
@@ -2,10 +2,6 @@
 search="$(egrep -o '(^|&)(s=).+(&|$)' <<<"${QUERY_STRING}" |sed -r 's:^&?s=::;s:\+: :g;s:%:\\x:g')"
 search="$(echo -e "${search}" |sed 's:\t: :g;s:\r::g;s:\\:\\\\:g' |head -n1)"
 
-[ -z "$ACL_EDITINTRO" ] && ACL_EDITINTRO=false
-[ -z "$ACL_ADDNEWS" ] && ACL_ADDNEWS=false
-[ -z "$ACL_EDITNEWS" ] && ACL_EDITNEWS=false
-
 cat <<WikiEND
   <div id="LEFT">
     <form method="GET" action="/${SCRIPTNAME}" accept-charset="utf-8">
@@ -38,7 +34,7 @@ cat <<HomeEND
 HomeEND
 $ACL_EDITINTRO && cat <<HomeEND
       <div id="introedit" style="display: none;">
-        <form action="/write/introedit.cgi?i=intro" method="post" accept-charset="UTF-8">
+        <form action="/write/$($LOGIN && echo user_)introedit.cgi?i=intro" method="post" accept-charset="UTF-8">
           <textarea name="text" rows="10">$([ -r "Home/intro" ] && cat Home/intro)</textarea><br>
           <input type="submit">
           <a class="function" href="#" onclick="javascript:hide_screen('introedit');show_screen('introtext');">Cancel</a>
@@ -51,7 +47,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>
@@ -71,7 +67,7 @@ stat -c '' Home/<0000000000-9999999999>_<000-999>.news && for each in $(ls -c Ho
 HomeEND
   $ACL_EDITNEWS && cat <<HomeEND
       <div id="edit_$info" style="display: none;">
-        <form action="/write/introedit.cgi?i=$info" method="post" accept-charset="UTF-8">
+        <form action="/write/$($LOGIN && echo user_)introedit.cgi?i=$info" method="post" accept-charset="UTF-8">
           <textarea name="text" rows="10">$([ -r "$each" ] && cat $each)</textarea><br>
           <input type="submit">
           <a class="function" href="#news_$info" onclick="javascript:hide_screen('edit_$info');show_screen('news_$info');">Cancel</a>