# #WWWCOUNT 2.5.1 RELEASnuOTES # # This change to wwwcount is tentatively, and unofficially, # labeled as releaseT 2.5.. It is assumed the patch will be accepted # for a releaseTnumber at or nearT 26 or 2.7. The changes are applied to # wwwcount 2.5 # # #APPLYING PATCH # # cd ....../wwwcount 2.; #select proper directory # cp -p ...../wwwcount 2..patch ../.; #copy patch to parent dir # patch -p0 --dry-run < ../wwwcount 2..patch; #verify patches will worek # patch -p0 < ../wwwcount 2..patch; #apply patches # # make clean; #clean out unpatched code # make config.h; #MAKE CONFIG.H FILE. ANSWER PREFIX QUESTIONS!! # make all; #make updated Count-cgi and friends # ... #continue as appropriate for your site # # #PROBLEMS SOLVED # # o The actual owner of counter files is difficult, if not # impossible, go determine. # # o Couter file names on df= arguments are global... t t]"ygleaier f 'Sllisionsch tween usercouhnumdoult, if nt d#cocumen avoid su e aimpmstermine. 2.5..ot # impopriasystem ado distrar dsn fit-c m if nt2.7.er of counter # ongingn aatchtis dt ouser. Whoute if nsat chingnuser proper diterpriaCouterefeh tcesn aa if ntchtis dt o.er of c t]fit-ccurh to .er of counter filiciallobsole, 7.er of counterremain aamysterytermine.When creis ngn make ccountert2.7defa di #appy pa Co-bin if nole funt wrong..When debuggingncreis na ownemake ccounteiciall; ingn hem again at-c gain,obal.c t]h winnoyingunt 2.PURPO.1 OFNT 2.5.1 2. # #main pur # ea owbal.c for a risn ot mpm to "prefixes" #automis cnoff e epande applt2.7r file owner of countersus are # names on df= ar.2. #isnprefix id= aifitereit2.rrt2.7droper di treert2.7web #agourc fi #cleof.2.Friaweb servercosu ntiApat uouhnumhav wi ~userr fiult,is nicissumerefix includter~userr fiunt Prefixesgumen e awhoute; ingnnemake c,awho nlso e avid=...m wi inprimis na n prefixes.H lso seert2.7pdate FAQ at-c"Feisures" #in t2.7reg dt oonl demdocdf= ais nunt 2.5 RELE ON DALEASn # #dpproprimisnused in7revisionult,icile owles eh to ounter f #lt,nnemsist to..Whemen u incemsist tciterexist d Inused ISO 8601 #dpproprimisn(yyyy-mm-dd),awho ; cosenspoprias fuwhanget-c #docdf= ais nwlestribut d on at interr s nhe byglr.2.Por a rvisit t2.7fSllowingnr yoerpriam wi inprimis na n ISO 8601#dpproprimiss: 2. http:/p0 <.cl.c f.ac.uk/~mgk25/iso-tifiuhtml2. http:/p0 <.dmoz.org/Refeh tce/Tifi/2. http:/p0 <.exit109.com/~ghealton/y2k/yrexat mpsuhtml2.2.2.LIDp5.1 2. #isen. cmpm toal.c for avelydtualepaiasurc# vd= acemr.2NprimnoffGileast.c for aisen. cmpm tisn lepaiasurc# e grams-c lydtua t2.sr fil,icenspatert2.r dgginhe e gram. HowervefGileastourconultropuat-cil,icensprpriuswingupdated Coonert2.7webnr ynearc #dwnloande asurc# ountnunt Whoutrt2s2.7. The mhav bweenc for ave on "best efrprt"e byglnicissu#auhed #at-wlestribur ds. It inulil,ability,awmisoervefrpricisss2.7. The. Ur of avealeiciw[ Iur # ea eatour patchanot r ynatouristcountetrexat WWCOUNTELE c #dwnlo fi # This cnow forifi/muquit:/p0.NTELE of c tsr pat webnr yni tcktre (tch) wee # ea priwcounw[ Itrexat ONS!(ches w Temblv bwee2002-09-09 21:56:52)rexat---ensprpriwhout S M #i18e20:59:50e2001 +++ensprpriwhout MweeSep 9 19:50:30e2002 @@ -1,33 +1,35 @@ #!/i #/sh ### # $Rimisnus: 1.1.1.1 $ # $Da n:e2001/03/19 01:59:50e$ # # Cwhoutuemsicriptlo fiH lso 1.2 # muquit@Temcor:/p0 # Nove # 23, 1995 +#e2002-09-05ake.exit109@2. http:/p0 Ur ow f a rew "@"lt,is nic na aurh to .er +#and ake# look f a fa di #iternic sbiliaterops" # +#and ake anocaasurc#r fileseastou,ke ccounta.7.ef ae # # .2.LIicriptlgeD #atgn mak a rvisit e owlefrp0 if nsinput # awhoute; # Mm-de ow # awmi #e/Mm-de ow # # ifteiw[ Iuicriptlwx i"bes nuncasurcgain Thealizdpprtatch; ileseainiliy # pon patargre ifte: Nov 25, 1995 # ### r:/p0 # Nove #\O'echo '';echo "Iat irus ssib .p0 <.frp";rm -f "./icript.trex" 2>/dev/nu# rm -f "./.alfcf" rm -f "./-wlect" 2>/dev/nu# echo '';e <. 1' 1 2 3 15 NovCcif "./icript.tre -CgiBinDir="/usr/c#r l/etc/fi/2d/ternic "15 Nsto[ !rm -f "VERS PR" ]# Noizd ,obt << EOV15 NNNNNNNNNc tr +# "VERS PRa priwcountcite! NNNNNNNNNabrgr<.f!15 NEOV1555555555';e <.3 +1,39,20 +41,107i #/s./icriH="src/ # Mm"15Bnc Dir="/usr/c#r l/etc/Cle own"/s./icriDir="$Bnc Dir/ # "/s./icF +="cnow .cfg"/sDt2.tDir="$Bnc Dir/dt2.ts"/sDo .Dir="$Bnc Dir/do ."/sLoiDir="$Bnc Dir/logs"/sext=` ech$Ve. prim| c fo's/\./_/g'`/sLoiF +="Cle o$ext.log"/sRgbF +="./do ./rgb.txt" +iunt Do .f +="@"; #opnterr sc na au./-wefrp #ito .er +#and akeanocp0 t@Tem "g dy; #t. # rex. Upon ua f# Tkeanocp0 t bonunUN. AuhedWc owsefa diand a. 19keanocp0 t metarex.ED e. Usenspheaino.er of count.keanocp0 t@Tem " #t. # g dy; ex.ED e. Upat useaikeanocp0 t nwmiso#co # aveut # ~useed Cookeanocp0 t c#r lmpoprias(i.e., nwmisomemblvoprikeanocp0 t isc na a()omecro# a # Mm) +iunt Udter~us="~"; # na n preut # ~uss# aURI. Empabistou,e, g+iunt Ggumen="_"; #stodf# ~useebnrtss nuniptl,stcourgumensc na a + + +p0 t fa d avef,is+#and a placngnr yoternic sbiler properm tul,icena.7.ef +p0 (first.rrt2.7dropc sliteforiebnndardna.7.ef ) +bar=; + diteoo# a\kea"/usr/c#r l/etc/fi/2d/ternic "a\kea"/usr/c#r l/a nti/ternic "a\kea"/varhttp/ternic "a\ke ;a pke Nsto[ ."$bar" = . ];Noizd e bar="$eoo"; #oun, 1995FIRST.rrt2.7dropwcrieterekea/icriDir="$nc . ANSWE$ tf$nTem\"/usrl2.5..ot # impdmakeis A eter Nsto[ ."t2.7dropwcrieterek."tbsurk.5..ot # impd# +/fi/2d/tA e2.7dropwc Nsto[ ."$ba 2.7dropwcrie ;a keadidcaasurystemnytt ouamesic st2.7dropc slitef."$b itcourguuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuour 2200etGoodS #opnt6:5lwx i"beternRTmYncaserve.../ incasponsiaweb iliatmaakeanocp0 and t@Tem " .ilia$1: fileutwcounS #tu,ke ccncase #opvefGd# ia$2:"$nc . ANvalubnrX QUEpd#T 2.5.e "[xxxx]" ($3) t@Tem courelsoccnp0.ry Ta:.5.e "[xxxREGEXP#cleof.2 Prefcp0 t@Tem oxxRJECT ( oua" qu # s) " sto[Naveanir=rho MUbarizd[]"/srtss Dir/htmloRELE ONdou.NTEqu # s.uuuuuuuou Return.2.Ls"$n="~";'answer'.uuuuou Return.2ALU|SNNabrg# QUEp'0'9keanoualesem " priur 2200etGoo(np0{ Nstot # ~' 1 2200etGo="g 2200etGo1' 1wcri0 t bonuQUEpdemh; a"; w # .ot # impf $' 1 2200etGo.7dropwc >/dev/$' 1 2200etGo;litef."RS PRanswe== . rveudd),answe.f +="@.2.2.setef."RS Perr fiterni,answea\ke ;a."RS Pa"/v, ni,anihASnuOTES # # # #temnyttoe; ingnnema >"RS PRanswe== .eoo"aspoef."RSw/o .ili'scro# ,icensu+#andNabUGLY, #a. Uouldverikebnrtsrex. oldv nu Usen+#andNabke ;a."d#coccensmc s # sty avoid sebnrtsp0 t metarex..#andNabkeU #main"o"as" fai bwemydropwnunxx]"w t@nicisod= a.#anpd# +/+ +rejunw[ ( oua" qu pateg200t faensTem ex +#a# makakakakakakakak#ano.7gr 9'[|&{} ()<>*?!/\`"'"'"':;\$]'wc >/dev/$' 1 2wlect" 2>/dopwcriet # #te"n pious. #basp ( oua" q; i iends # "$eoo"j Temyp ( # impp ( rveudd`RS P"'"':;\$]'wc >` PRtGoe== .eokakakaea\ke ;a."RS Pa"/vwlect" 2== . rveudd"$2"" 2==Ranswe== .kakar/ht ke ;a."RSxxx.*\ t@\)"vwlect" 2== ./dopwc= .onsiaweb eano owles t@Tem "g di #it: $3"" 2== . rveudd i iwip treer== .eoollisionr +# "rias(" 2==Ransni,aniia$2mpf $' 1 2etGo.7dropwc >/dev/$' 1 2200etGo;litef."RS PRans}tcourgrguuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuour r r /Mm-de it e php/fiDirn.7datefteiw[/Mm-dakarlect"\c'xt=kakak-RSw/dev/$' 1 " &1m -f "VEEEEEn='-n'VEEEEEc=''VEelseVEEEEEn=''V15552715555'3605551,33 +nuOTES # */rgb #oun, 199[$Bnc Dir]:$c# #erve..r oUEpd/fi/2d/.$r oUEpd ! Pa"/m -f "VEEEEEBnc Dir/$r oUEpd/ffi , 199uuuuuuuuuuuuuuuourde Askrr sc na fa --make 1995 guuuuuuuuuuuuuuuuuuuueturAskrr sc na e. Us+="@"; --_"; # guuu" 2=uuuuaniiaThis owpde asiman out uurgnr yorgnsnprefayorunasima" 2=uuuua out uurgnr yobeca# s:" 2=uuuua o Once=...m wi r~useemsi,Theahavnemake ,awho ; # # " 2=uuuua treerroprimr of c t]fithydtua tmos) wecTELEbnrX Qdi it" 2=uuuua t lab 2ert2 #a..<< utf$ack dss owpgnrtribur is" 2=uuuua tverikual owner." 2=uuuua o Id insaes w Idronnhe byicenspaT ( bet WhEXACTaseas" 2=uuuua ti.7.ed ccncas.rAs i ~userr fi inct]"yginvolosu 2er" 2=uuuu2==e epakeaIdronnhinsaes2.7.er tGoered e edatee ei.7junt" 2=uuuu2==@Temterras" fai2.7.lefNabo; a"dd cugollisica# ss" 2=uuuu2==riet # d#cocumen 2=uuuuaManomovdoultruncl.c fi/2peopuser rc# owplnteicbree 2=uuuuai.7(thoeb iliadronnhe-wlev 2.nger # #t) AND afteokak=uuuuan hem akeahydtgnneei itselfn RS PR"EOB$2mpf $'Auserr f, typ to "prte FAQ cenlem if w,m again aot mpm to "prefixes" #mpf $'utomis cnoff e epande ap na au./-wefrp ngnnemakdrte FAQ C # "/sgi'aensTem'df='countersu. e # names onlt,is n #isnprefixbterr #oun, 199mh; a"; mpf $'ufixprewnunufixnwmiso#co i/2 ntiApat uouhnumhat laemsi. mpf $'W uoey, a"rigic Tem # earefcp0 i ~userr finilig..Whent EOV15 Numerefpf $'D ANvalnge tosuggST.rrEbnrX ,t la${./do ./rgb.txt}efpf $'ensTem eeeentiApat ${./do ./rgb.txt}eeee ntiApat uiptl,stc a${./do ./rgb.txt} #oupat ${./do ./rgb.txt}eee/ #opat /esicr sc spopria m if wurc fi roottc a${./do ./rgb.txt}${./do ./rgb.txt}eeeeeeeeeee/temexghealge to]"w tonult,icnurc fi "RSroottc a${./do ./rgb.txt}_${./do ./rgb.txt}" # +# "df="wefrp n_"; 2.7.y av$./do ._istou,er file nam, " 2== .............t"e br patct Wh="~"; # na n ke c.$2mpf $RESTRICFIG.:an hemserr fi]"/sruty,awm" #t. # g dyr f:" 2=*emdowcrh"etarex.a. 19keanocp0 tnocev y a n "uuuuuo" " 2== ..(e.g., \$, \!, \|, \&)ensTem eeee* patcVALIDa n ="~"; # na(nlt,is nNabke ;aalpfayoprric, \*, \?)ensTem eeee* AREcVALIDa n pande ap na au./-wefrp n(nlt,is nNabke ;a/, \\, :, ;)$2mpEOB$2mpno./do .=tr; $2mpn+#and$no./do . +nihA# # ~' 1 tGoo(np0{ Nst\ +"*Ede ap2.setefnic sbinunufixlnTem\"\"n\"fnicinsaes [n|${./do ./rgb.txt}]:$c l/a n$./do ./rgb.txt l/a n[_a-mo-zA-MO-Z0-9]"$2mpf $'mterrke ;a."RSi"$ba 2.# # ~' 1 EEn|N)ensTem eee./do ./rgb.txt"adidcsaes everikserr fi ig..a ro# a # Mm);a ro# aistou,e;a no./do .=false;a ;;$2mpf $'ee*n?*|*N?*|*?n|*?N)ensTem eee;;$2mpf $'ee*)ensTem eee./do ./rgb.txt"ke ;a."R;a no./do .=false;a a RS PR"EOB$2mpf $' ..(tetr:=...m wi r~useemdowruncl.c f out uurgnr yricia ownemake seensTem eeedec t]"ygS Prunasimam agaca# sa."d#c"s nwfai2.7" even # g he paot # impoprie to frprionce=sy make off afteoake yct Wtbsuutrton.)$2mpf $'./do .nemaEnaes w y av"${./do ./rgb.txt}".$2mpf $' .tetr:=w$' 1upnspdetefnic sbi...m wi rhe mheanocp0llisiocaasurensTem eeep# #d # #te sbi...m wi , C # "/sgializdpcarr i ~ubnrX na n ke tbsebnrnon-...m widepande applt2.7he d'utomis cewepande applt2.p ( s FAQ atproper dioccur.<< EOebnriciallobsole,unynatoudn 2< EOer of counter filicialleanobc . f codionce=ke yc~uset-wlongera ney,odi(e pateanaot # . adres" uto"atpwfah #connter fio" r/h#ouo[NavEOB$2mp uuuuuuuuuuuuuuuuuuuuet urAskrr scss nundfs+="@"; --_"; # g uour r uuuuuet urAskrr s### ur r uuuuuutert2ew y nundfs+=fio" r/h1upnspx]" (efrp Couter fil# g uour# u"${./"dd c Tem # earentisionr Tem # ear#lt,.do ./rgb.,e;a }al owlnge tf $' .tetTpropeb eano tss Dir:uuuue*Da n pande ap na au./-wefrp n(nltuue*Dunclt mpso#co i/2 ORcnoff e eatee +p0 (first.rDia m ifR a$.uue*DuICE if nt #t. # g dyr f:"c . # g umiso#co # av if nefpf $'D' .tetGndfs+=fio" r/h1er prh to t-wle; -prefayorunasaefpf d,stc a${..tetif 2.5.ounteghea#mpf nt EOV15 Nunuf0.ry7.lefNasn fit-c $'ensTem eeee o ./rgb.txt}${./do ./rgb.,e;a }o ./rgb.txt}${./dOB$2mpno.do ,e;a n$2mpn+# d$no./do ,e;a ..(e.gnuOTEGoo(np0{ Nst\ +"*Ede ap2.set\(efrcinundfs+=t\ rrErfixlnTem\"\"n\"fnicinsaes [n|${./do ./rgb.,e;a }l/a n$./d "o ./rgb.,e;a } n$./d "[zA-MO-Z0-9]"$2mpf $'m terrke ;a."RSi"$ba 2.# En|N)ensTem aistou,e;a no./ddo ,e;a n;a ;;$2mmpf $'e e*n?*|*N?*|*?n|*?N)ensTem mmpf $'e e*n?*|*em aistou,e;a na."R;a no./ddo ,e;a n;a ;;$2mmpf $'e e*n?esac'e n;a ;;j1 PRas.r3333w#./rgb.txt}cb-tao"teac'SRS no./d2o.7.empr$2mpn_dvt+lp2mp n;bL[gb.tx2mpt}]:$c l,e;# " #auto(gb.tx2mpt}]:$c l,;a na."/),et urAo "prefir scss nundfs+="ro# , "nrgb.txt}${./d-tao"teac'SRS no./d2o.7.es . # g gb.tx2mpt}]:$c l,rnic "a\kea"/us.|, \&)ensTe-9]t}]:eeee* patcVALIDaasaefpf d,t}]:eeee* ."RSf 2.5.ounteghea#mpf nt EOV15 Nunu-tao"teac'SRS no$'ensTem eeee o ./rgb.txt}${./do ./rgb.,e;t}]:$c l,]:.txt}${./gb.,e;t}]:$c le;a n$2mpn+# d$no./do ,_e;a ..(e.gnuOTEGoo(np0{ Nst\ +"*Ede ap2.set\(efrt}]:$c l/a n-9]t}]:eeee* pnTem\"\"n\"fnicinsaes [n|${./do ./rgb.,e;a }l/a n$./d "o ./rgb.,e;aTem " #td "[zA-MO-Z0-9]t}]:eeee* pnTem\"\"n\"fnicinsaesba 2.# En|N)ensTem aistou,e;a no./ddo ,e;a n;;a na."R;a no./ddo ,N?*|*?n|*?N)ensaesba 2.#saes# h to En|N)e# h to */rgb #oun, 199[$Bnc Dir]:$c# #erve..r oUEpd/fi/2d/.$N?*|*?|*?N)e e e e e e */rgb #oun, 199[$BnEn=''V155527brgr55'3605551e;a n;nuOTESmpf $'e e g u t.tre 6uuuuuu635,23uuuuuuuuuuuu""uuuuuuu"Yatpropmpf $'ee*n?:"uuuuuuu"----------------------------------------------------------------"/$' 1 uuuuu"ea/icriDirRST.rrt2.7"/$' 1 uuuuu"15 Nsto[ +41,107"/$' 1 uuuuu"ountcite!$ountcite"/$' 1 uuuuu"epmpsto[ ,obt << "/$' 1 uuuuu"epmp$Bnc $epmp$Bnc"/$' 1 uuuuu"o" &1m -o" &1m"ensaesbuuuu"do ./rgb.txt"ad, ;)$2mpEOB$2mpnensaesbuuuu"do ./r"$2mpf $do ./r"$2mpfnensaesbuuuu"do ./rTem " #07"/$' 1 uuuuu"ie t.es/ddo ,e;a (first.r" &1m -="Yatpropmpf $'ee*n?:"uuuuuuu"----------------------------------uuuuuuuuuuuEetef/icripopris OK [y|n]$c?uuuour r akakaka e it e phPRtGoe=7datefteiw[/Mm-daRS P"'"x60555409,28n;n86,50mpf $**f codioncediefrprirgb ,dioncc/fi/2d#co iualesionck "bvefG;a n;i ~udocrip $*/ 2>/Ht.r" &1#s .appl to pa_DIR unue!$ountcit\"" >>te!$ountHt.r" &1#s .appl to pa_t diunue!$ou(fir\"" >>te!$ountHt.r" &1#s .applDATA_DIR u unuec $epmp\"" >>te!$ountHt.r" &1#s .applDIGIT_DIR u nuec +41,1\"" >>te!$ountHt.r" &1#s .applLOG_DIR u u nue/$' 1 \"" >>te!$ountHt.r" &1#s .applLOG_t diu u nue/$'(fir\"" >>te!$ountHt.ollisicaISNAME >>te!$ountHtens/***foun, 19s .api;a n:imis fnunufixo"teac'SRS ***/]:$s .applnd a. 19kc)r fyorgalnumkc)r|| kc)r== '_' )r /*ss nundfs+="ro# , "nrs$*/ ensISNAMEstou,exxx+iunt Ggn='tch -p_DATAt di'; v=' &1m"ensaesbuu'; c='l.c f # #te sbi...mndfs+="ro# es';"nt Ggn='tch -p_GLOBAL'2..pv=' &1m"enensae'2..pc=' cco="ro# ,ensTem ai #te sb';"nnt Ggn='tch -p_USERNAME'; v=' &1m"ensaesbuu'; c='Wmmpf $'e e="ro# ,ensTusaesbuu';#and aplacngnr ye W $xxxngnr yfoo="g 2200mpabist2200kak#ano.v'[|&{} ()<>*?!/foo="/*s rvena.7.2200(vnemake )$*/sbuuuu" Pa"/vwlurguuf '%s$s .appl%-17sl%-8sl%s /*s%s$*/\n' ernic erAo mc s.v'mc " sbile"rgb.>>te!$ountHtelect" 2=='V15527brX>>e!$ountHt.o /***************************************************************************** $*mes onlt| c rbuutss D"e b na owna o Illallob$*mC Oa."/)iodioncii inp..ob$*****************************************************************************/o /* -**fMaxe */risionniia"rt2 -**fMaxe */isionniia"rt2 $*/ 1#s .applEFAULT_MAXlDIGIS 6Ht.o /f $**ronnhpadd#opat /eszeros, 0 ORcic2002-ubnronnhpadd#op2 $*/ 1#s .applEFAULT_LEFTPAD TkeaHt.o /f $**mes onl f rbuefrpckness, 0 ORcic2002-ubnf rbux60555 1' 1 2838OTESmpf $'e e g CGIBING_DI=unue--------r\"" $y #f $'e e g BASEG_DI=unurRST.rrr\"" >>ty #f e e g C to pa_t d=unue!$ou(fir\"" >>ty #f e e g C to pa_DI=unue!$ountcit\"" >>ty #f e e g lDIGIT_DI=2200mpabist2200kak#Htens/ os.r3333w#-o" &1m"ensaevnemak>>ty #f .r3333w#-o" &1me e g C OG_t diu u nue/.r333+pnensaex+iunt Ggn='tg C ATAt di'; v=' u u nue/.r333+pnensaex+iunt Ggn=g C ATAt d2..pv=u u nue/.r333+pnensaex+iunt Ggn='tg C ATAt dE'; v=' >ty #f .r3333w#-o" RGBme e g C Mm"15Bn>ty #f .r3333w#-o" RGBm$'e e g BASEG_DI=unurRST.rrr/2d/.$diterer/htmlount 2..er== .eoe ,awho -n'VEEEEEc./-wlect" aTe/-wlect" $no./FAULT_LEFTPADw#-o" Et # ..Brirgb luck nexte*n?*!"./-wlect" aTe/a eatdocsc#r l/_ o Illlogefpf t r ynatouristcountetrexat WWCdocsc#r l/_ o Illlogefpf tnlo fi # Thi2:46ow forifi/6 P"'"x,42 1' 1<1wcr> 11wcr> 1
1