]> git.plutz.net Git - busy/blobdiff - Home.page
changed auth path
[busy] / Home.page
index 6f67a195469eb5887266d4312dd16722f4cad0ee..a21de7101cd3cfdfad18d70aec98af1a02a7e958 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">
@@ -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>
@@ -84,5 +80,9 @@ done
 cat <<HomeEND
   </div>
   <div id="RIGHT">
+  $(grep -q 'advertise=btcAd' project.meta && echo '<h1>Sponsored Links:</h1>
+    <iframe src="http://bitcoinadvertisers.com/a.php?p='$(sed -rn 's:^btcAdAddress=(.+):\1:p' project.meta)'&a='$(sed -rn 's:^btcAdContent=([1-4]):\1:p' project.meta)'&bg=FFFFFF&link=3366FF&text=414141" scrolling="no" style="width:120px;height:300px;border:1px solid #f2f2f2;"></iframe>
+    <iframe src="http://bitcoinadvertisers.com/a.php?p='$(sed -rn 's:^btcAdAddress=(.+):\1:p' project.meta)'&a='$(sed -rn 's:^btcAdContent=([1-4]):\1:p' project.meta)'&bg=FFFFFF&link=3366FF&text=414141" scrolling="no" style="width:120px;height:300px;border:1px solid #f2f2f2;"></iframe>'
+  )
   </div>
 HomeEND