]> git.plutz.net Git - busy/blobdiff - write/projectmeta.cgi
implemented bitcoin donations and advertisement (via http://bitcoinadvertisers.com)
[busy] / write / projectmeta.cgi
index 215fe45cb1f77064183aa37c60658cdb3d1deafa..436f31e391f3c71889f3ce0517bde98043295dd6 100755 (executable)
@@ -25,7 +25,7 @@ $ACL_ADMIN || exit 0
 
 if [ -n "${CONTENT_LENGTH}" -a "${CONTENT_LENGTH}" -gt 0 ]; then
 (head -c "${CONTENT_LENGTH}"; echo)|sed 's/&/\n/g' \
-  |sed -rn '/^((appName|appSlogan|svnRepo|gitRepo|flattrThingURL|paypalAddress|btcAddress)=.*|repoType=(svn|git)|(useFlattr|usePaypal|useBitcoin)=yes)$/{
+  |sed -rn '/^((appName|appSlogan|svnRepo|gitRepo|flattrThingURL|paypalAddress|btcAddress|btcAdAddress)=.*|repoType=(svn|git)|(useFlattr|usePaypal|useBitcoin)=yes|advertise=(btcAd|no)|btcAdContent=[1-4])$/{
             s:\+: :g;s:%:\\x:g;p}' \
   |while line="$(line)"; do
     eval "$(echo -e "$line" |sed -r 's:[\n\r'\'']::g;s:^([a-zA-Z0-9_+-]+)=(.*)$:\1='"'\2'"':;')"
@@ -44,6 +44,9 @@ usePaypal=$usePaypal
 paypalAddress=$paypalAddress
 useBitcoin=$useBitcoin
 btcAddress=$btcAddress
+advertise=$advertise
+btcAdAddress=$btcAdAddress
+btcAdContent=$btcAdContent
 " >"$metafile"
 
 echo -n "Location: ${proto}://${HTTP_HOST}/?p=Admin\n\n"