From: paul Date: Thu, 31 May 2012 00:01:03 +0000 (+0000) Subject: improved interface for ad selection X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=dec8e37f896df024ebc157e26ef6ce1f2811a103;p=busy improved interface for ad selection svn path=/trunk/; revision=46 --- diff --git a/Admin.css b/Admin.css index 043ed88..a5b6941 100644 --- a/Admin.css +++ b/Admin.css @@ -45,6 +45,6 @@ border-color: #AAF; } -.value input { +.value input[type=text] { width: 100%; } diff --git a/Admin.page b/Admin.page index e78ce23..29d006a 100644 --- a/Admin.page +++ b/Admin.page @@ -40,15 +40,11 @@ else
Advertisement
No Advertisement

+ BitCoinAdvertisers.com
Bitcoin Address:
- Bitcoin Address:
- Content: + + Allow gambling ads + Allow erotic ads

diff --git a/write/projectmeta.cgi b/write/projectmeta.cgi index 436f31e..c2ee442 100755 --- a/write/projectmeta.cgi +++ b/write/projectmeta.cgi @@ -25,13 +25,18 @@ $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|btcAdAddress)=.*|repoType=(svn|git)|(useFlattr|usePaypal|useBitcoin)=yes|advertise=(btcAd|no)|btcAdContent=[1-4])$/{ + |sed -rn '/^((appName|appSlogan|svnRepo|gitRepo|flattrThingURL|paypalAddress|btcAddress|btcAdAddress)=.*|repoType=(svn|git)|(useFlattr|usePaypal|useBitcoin|btcAdGamble|btcAdErotic)=yes|advertise=(btcAd|no))$/{ 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'"':;')" done fi +[ "$btcAdGamble" = yes -a "$btcAdErotic" = yes ] && btcAdContent=1 +[ "$btcAdGamble" != yes -a "$btcAdErotic" = yes ] && btcAdContent=2 +[ "$btcAdGamble" = yes -a "$btcAdErotic" != yes ] && btcAdContent=3 +[ "$btcAdGamble" != yes -a "$btcAdErotic" != yes ] && btcAdContent=4 + echo "\ name=$appName slogan=$appSlogan