]> git.plutz.net Git - busy/blobdiff - Home.page
implemented bitcoin donations and advertisement (via http://bitcoinadvertisers.com)
[busy] / Home.page
index 88dd0d53caa19a806ba4109b7632e362df6d698e..33d40c58e6458124df26946053b728e4343b1036 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">
@@ -84,5 +80,8 @@ 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>'
+  )
   </div>
 HomeEND