r59164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59163‎ | r59164 | r59165 >
Date:01:14, 17 November 2009
Author:tomasz
Status:ok
Tags:
Comment:
picking up to r59163
Modified paths:
  • /branches/wmf-deployment/extensions/ContributionReporting (modified) (history)
  • /branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.i18n.php (modified) (history)
  • /branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.php (modified) (history)
  • /branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.js (added) (history)
  • /branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.php (added) (history)

Diff [purge]

Index: branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.php
@@ -77,7 +77,13 @@
7878 'title' => '2008 Fundraiser',
7979 'start' => 'Nov 4 2008',
8080 'end' => 'Jan 9 2009'
81 - )
 81+ ),
 82+ array(
 83+ 'id' => '2009',
 84+ 'title' => '2009 Fundraiser',
 85+ 'start' => 'Nov 10 2009',
 86+ 'end' => 'Jan 15 2010'
 87+ ),
8288 );
8389
8490 // Thesholds for fundraiser statistics
Index: branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.php
@@ -0,0 +1,35 @@
 2+<?php
 3+if(isset ($_REQUEST['load'])){
 4+ handleLoad();
 5+}
 6+else if(isset ($_REQUEST['submit'])){
 7+ handleSubmit();
 8+}
 9+
 10+function handleLoad(){
 11+ $cc_id = randomCookie();
 12+
 13+ if(!isset($_COOKIE['cc-cookie'])){
 14+ $cc_id = $_REQUEST['cc-cookie'];
 15+ }
 16+ else{
 17+ //set cookie to expire in maybe about a year or so... 300 days
 18+ setcookie('cc-cookie', $cc_id, time() + (60 * 60 * 24 * 300), '/', "payments.wikimedia.org");
 19+ }
 20+
 21+ //if not exist insert into DB
 22+ //via REQUEST['utm_src']
 23+}
 24+
 25+function handleSubmit(){
 26+ $cc_id = "NULL";
 27+ if(isset($_COOKIE['cc-cookie'])){
 28+ $cc_id = $_COOKIE['cc-cookie'];
 29+ }
 30+
 31+ //donations++
 32+}
 33+
 34+function randomCookie(){
 35+ return md5(mt_rand() + time());
 36+}
\ No newline at end of file
Property changes on: branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.php
___________________________________________________________________
Name: svn:eol-style
137 + native
Index: branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.js
@@ -0,0 +1,24 @@
 2+
 3+runOnloadHook = function(){
 4+ sendReq("cc-reporting.php?load=1&utm_src=" + document.payment.utm_source.value);
 5+}
 6+
 7+submitForm = function(){
 8+ sendReq("cc-reporting.php?submit=1&utm_src="+ document.payment.utm_source.value);
 9+ return validate_form(document.payment);
 10+}
 11+
 12+sendReq = function(sendRequest){
 13+ if (window.XMLHttpRequest)
 14+ {
 15+   xhttp=new XMLHttpRequest();
 16+   }
 17+ else // Internet Explorer 5/6
 18+ {
 19+ xhttp=new ActiveXObject("Microsoft.XMLHTTP");
 20+ }
 21+ xhttp.open("GET",sendRequest ,false);
 22+ xhttp.send("");
 23+ dummyVar=xhttp.responseXML;
 24+}
 25+
Property changes on: branches/wmf-deployment/extensions/ContributionReporting/cc-reporting.js
___________________________________________________________________
Name: svn:eol-style
126 + native
Index: branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.i18n.php
@@ -524,7 +524,9 @@
525525 'contribstats-conversion' => 'Stopa pretvaranja (%)',
526526 'contribstats-template' => 'Šablon',
527527 'contribstats-nodata' => 'Nisu dostupni podaci',
 528+ 'contribstats-landingpage' => 'Ciljna stranica',
528529 'contribstats-donatepage' => 'Stranica donacija',
 530+ 'contribstats-average' => 'Prosjek',
529531 'fundraiserstatistics' => 'Statistike donatora',
530532 'fundraiserstats-date' => 'Datum',
531533 'fundraiserstats-day' => 'Dan $1 od $2',
@@ -1471,6 +1473,7 @@
14721474 'contribstats-nodata' => 'Kei Date vorhande',
14731475 'contribstats-landingpage' => 'Landsyte',
14741476 'contribstats-donatepage' => 'Spändesyte',
 1477+ 'contribstats-average' => 'Durschnitt',
14751478 'fundraiserstatistics' => 'Spändestatischtik',
14761479 'fundraiserstats-date' => 'Datum',
14771480 'fundraiserstats-day' => 'Dag $1 vo $2',
@@ -1870,9 +1873,11 @@
18711874 'contribstats-day' => 'Dio',
18721875 'contribstats-month' => 'Monato',
18731876 'contribstats-total-ytd' => 'Sumo (YTD)',
 1877+ 'contribstats-value-exactly' => 'Exakte $1',
18741878 'contribstats-value-under' => 'Min kam $1',
18751879 'contribstats-value-from' => 'Inter $1 - $2',
18761880 'contribstats-value-over' => 'Plu kam $1',
 1881+ 'contribstats-week' => 'Semano',
18771882 'fundraiserstats-date' => 'Dato',
18781883 'fundraiserstats-day' => 'Dio $1 di $2',
18791884 );
@@ -2267,7 +2272,9 @@
22682273 'contribstats-conversion' => 'Ëmrechnungs-Cours (%)',
22692274 'contribstats-template' => 'Schabloun',
22702275 'contribstats-nodata' => 'Keng Donnéeën uginn',
 2276+ 'contribstats-landingpage' => 'Zilsäit',
22712277 'contribstats-donatepage' => 'Spende-Säit',
 2278+ 'contribstats-average' => 'Duerchschnëtt',
22722279 'fundraiserstatistics' => 'Statistike vun den Donen',
22732280 'fundraiserstats-date' => 'Datum',
22742281 'fundraiserstats-day' => 'Dag $1 vu(n) $2',
@@ -2941,12 +2948,12 @@
29422949 'contributionreporting-desc' => 'Relatório ao vivo da angariação de fundos da Wikimedia',
29432950 'contributiontotal' => 'Total de contribuições',
29442951 'contributionhistory' => 'Histórico de contribuições',
2945 - 'contrib-hist-header' => 'Comentários em tempo real de doadores de todo o mundo',
 2952+ 'contrib-hist-header' => 'Comentários em tempo real de benfeitores de todo o mundo',
29462953 'contrib-hist-name' => 'Nome',
29472954 'contrib-hist-date' => 'Hora e data',
29482955 'contrib-hist-amount' => 'Quantia',
2949 - 'contrib-hist-next' => 'Doações mais antigas',
2950 - 'contrib-hist-previous' => 'Doações mais recentes',
 2956+ 'contrib-hist-next' => 'Contribuições mais antigas',
 2957+ 'contrib-hist-previous' => 'Contribuições mais recentes',
29512958 'contrib-hist-anonymous' => 'Anónimo',
29522959 'contributionstatistics' => 'Estatísticas de contribuições',
29532960 'contribstats-desc' => 'Apresenta estatísticas das contribuições feitas à Fundação Wikimedia',
@@ -2979,7 +2986,10 @@
29802987 'contribstats-donations' => 'Donativos',
29812988 'contribstats-conversion' => 'Taxa de conversão (%)',
29822989 'contribstats-template' => 'Predefinição',
2983 - 'contribstats-nodata' => 'Não foram providenciados dados',
 2990+ 'contribstats-nodata' => 'Não foram fornecidos dados',
 2991+ 'contribstats-landingpage' => 'Página inicial',
 2992+ 'contribstats-donatepage' => 'Página de donativos',
 2993+ 'contribstats-average' => 'Média',
29842994 'fundraiserstatistics' => 'Estatísticas da angariação de fundos',
29852995 'fundraiserstats-date' => 'Data',
29862996 'fundraiserstats-day' => 'Dia $1 de $2',
@@ -2996,6 +3006,7 @@
29973007
29983008 /** Brazilian Portuguese (Português do Brasil)
29993009 * @author Eduardo.mps
 3010+ * @author Hamilton Abreu
30003011 */
30013012 $messages['pt-br'] = array(
30023013 'contributionreporting-desc' => 'Relatório ao vivo da angariação de fundos da Wikimedia',
@@ -3039,6 +3050,7 @@
30403051 'contribstats-donations' => 'Doações',
30413052 'contribstats-conversion' => 'Taxa de conversão (%)',
30423053 'contribstats-template' => 'Predefinição',
 3054+ 'contribstats-nodata' => 'Não foram providenciados dados',
30433055 'fundraiserstatistics' => 'Estatísticas da angariação de fundos',
30443056 'fundraiserstats-date' => 'Data',
30453057 'fundraiserstats-day' => 'Dia $1 de $2',
@@ -3146,6 +3158,7 @@
31473159 'contribstats-nodata' => 'Данные не указаны',
31483160 'contribstats-landingpage' => 'Страница приземления',
31493161 'contribstats-donatepage' => 'Страница пожертвований',
 3162+ 'contribstats-average' => 'Среднее',
31503163 'fundraiserstatistics' => 'Статистика сбора средств',
31513164 'fundraiserstats-date' => 'Дата',
31523165 'fundraiserstats-day' => '$1 день $2',
Property changes on: branches/wmf-deployment/extensions/ContributionReporting
___________________________________________________________________
Name: svn:mergeinfo
31533166 - /branches/REL1_15/phase3/extensions/ContributionReporting:51646
/trunk/extensions/ContributionReporting:56151-57449,58684,58687-59049
/trunk/extensions/ContributionTracking:58684
/trunk/phase3/extensions/ContributionReporting:56213,56215-56216,56218,56325,56334-56336,56338,56340,56343,56345,56347,56350,58633,58816
31543167 + /branches/REL1_15/phase3/extensions/ContributionReporting:51646
/trunk/extensions/ContributionReporting:56151-57449,58684,58687-59049,59134-59163
/trunk/extensions/ContributionTracking:58684
/trunk/phase3/extensions/ContributionReporting:56213,56215-56216,56218,56325,56334-56336,56338,56340,56343,56345,56347,56350,58633,58816

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r59163Added 2009 fundraiser to default configuration.tparscal01:08, 17 November 2009

Status & tagging log