Index: branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.php |
— | — | @@ -77,7 +77,13 @@ |
78 | 78 | 'title' => '2008 Fundraiser', |
79 | 79 | 'start' => 'Nov 4 2008', |
80 | 80 | '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 | + ), |
82 | 88 | ); |
83 | 89 | |
84 | 90 | // 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 |
1 | 37 | + 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 |
1 | 26 | + native |
Index: branches/wmf-deployment/extensions/ContributionReporting/ContributionReporting.i18n.php |
— | — | @@ -524,7 +524,9 @@ |
525 | 525 | 'contribstats-conversion' => 'Stopa pretvaranja (%)', |
526 | 526 | 'contribstats-template' => 'Šablon', |
527 | 527 | 'contribstats-nodata' => 'Nisu dostupni podaci', |
| 528 | + 'contribstats-landingpage' => 'Ciljna stranica', |
528 | 529 | 'contribstats-donatepage' => 'Stranica donacija', |
| 530 | + 'contribstats-average' => 'Prosjek', |
529 | 531 | 'fundraiserstatistics' => 'Statistike donatora', |
530 | 532 | 'fundraiserstats-date' => 'Datum', |
531 | 533 | 'fundraiserstats-day' => 'Dan $1 od $2', |
— | — | @@ -1471,6 +1473,7 @@ |
1472 | 1474 | 'contribstats-nodata' => 'Kei Date vorhande', |
1473 | 1475 | 'contribstats-landingpage' => 'Landsyte', |
1474 | 1476 | 'contribstats-donatepage' => 'Spändesyte', |
| 1477 | + 'contribstats-average' => 'Durschnitt', |
1475 | 1478 | 'fundraiserstatistics' => 'Spändestatischtik', |
1476 | 1479 | 'fundraiserstats-date' => 'Datum', |
1477 | 1480 | 'fundraiserstats-day' => 'Dag $1 vo $2', |
— | — | @@ -1870,9 +1873,11 @@ |
1871 | 1874 | 'contribstats-day' => 'Dio', |
1872 | 1875 | 'contribstats-month' => 'Monato', |
1873 | 1876 | 'contribstats-total-ytd' => 'Sumo (YTD)', |
| 1877 | + 'contribstats-value-exactly' => 'Exakte $1', |
1874 | 1878 | 'contribstats-value-under' => 'Min kam $1', |
1875 | 1879 | 'contribstats-value-from' => 'Inter $1 - $2', |
1876 | 1880 | 'contribstats-value-over' => 'Plu kam $1', |
| 1881 | + 'contribstats-week' => 'Semano', |
1877 | 1882 | 'fundraiserstats-date' => 'Dato', |
1878 | 1883 | 'fundraiserstats-day' => 'Dio $1 di $2', |
1879 | 1884 | ); |
— | — | @@ -2267,7 +2272,9 @@ |
2268 | 2273 | 'contribstats-conversion' => 'Ëmrechnungs-Cours (%)', |
2269 | 2274 | 'contribstats-template' => 'Schabloun', |
2270 | 2275 | 'contribstats-nodata' => 'Keng Donnéeën uginn', |
| 2276 | + 'contribstats-landingpage' => 'Zilsäit', |
2271 | 2277 | 'contribstats-donatepage' => 'Spende-Säit', |
| 2278 | + 'contribstats-average' => 'Duerchschnëtt', |
2272 | 2279 | 'fundraiserstatistics' => 'Statistike vun den Donen', |
2273 | 2280 | 'fundraiserstats-date' => 'Datum', |
2274 | 2281 | 'fundraiserstats-day' => 'Dag $1 vu(n) $2', |
— | — | @@ -2941,12 +2948,12 @@ |
2942 | 2949 | 'contributionreporting-desc' => 'Relatório ao vivo da angariação de fundos da Wikimedia', |
2943 | 2950 | 'contributiontotal' => 'Total de contribuições', |
2944 | 2951 | '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', |
2946 | 2953 | 'contrib-hist-name' => 'Nome', |
2947 | 2954 | 'contrib-hist-date' => 'Hora e data', |
2948 | 2955 | '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', |
2951 | 2958 | 'contrib-hist-anonymous' => 'Anónimo', |
2952 | 2959 | 'contributionstatistics' => 'Estatísticas de contribuições', |
2953 | 2960 | 'contribstats-desc' => 'Apresenta estatísticas das contribuições feitas à Fundação Wikimedia', |
— | — | @@ -2979,7 +2986,10 @@ |
2980 | 2987 | 'contribstats-donations' => 'Donativos', |
2981 | 2988 | 'contribstats-conversion' => 'Taxa de conversão (%)', |
2982 | 2989 | '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', |
2984 | 2994 | 'fundraiserstatistics' => 'Estatísticas da angariação de fundos', |
2985 | 2995 | 'fundraiserstats-date' => 'Data', |
2986 | 2996 | 'fundraiserstats-day' => 'Dia $1 de $2', |
— | — | @@ -2996,6 +3006,7 @@ |
2997 | 3007 | |
2998 | 3008 | /** Brazilian Portuguese (Português do Brasil) |
2999 | 3009 | * @author Eduardo.mps |
| 3010 | + * @author Hamilton Abreu |
3000 | 3011 | */ |
3001 | 3012 | $messages['pt-br'] = array( |
3002 | 3013 | 'contributionreporting-desc' => 'Relatório ao vivo da angariação de fundos da Wikimedia', |
— | — | @@ -3039,6 +3050,7 @@ |
3040 | 3051 | 'contribstats-donations' => 'Doações', |
3041 | 3052 | 'contribstats-conversion' => 'Taxa de conversão (%)', |
3042 | 3053 | 'contribstats-template' => 'Predefinição', |
| 3054 | + 'contribstats-nodata' => 'Não foram providenciados dados', |
3043 | 3055 | 'fundraiserstatistics' => 'Estatísticas da angariação de fundos', |
3044 | 3056 | 'fundraiserstats-date' => 'Data', |
3045 | 3057 | 'fundraiserstats-day' => 'Dia $1 de $2', |
— | — | @@ -3146,6 +3158,7 @@ |
3147 | 3159 | 'contribstats-nodata' => 'Данные не указаны', |
3148 | 3160 | 'contribstats-landingpage' => 'Страница приземления', |
3149 | 3161 | 'contribstats-donatepage' => 'Страница пожертвований', |
| 3162 | + 'contribstats-average' => 'Среднее', |
3150 | 3163 | 'fundraiserstatistics' => 'Статистика сбора средств', |
3151 | 3164 | 'fundraiserstats-date' => 'Дата', |
3152 | 3165 | 'fundraiserstats-day' => '$1 день $2', |
Property changes on: branches/wmf-deployment/extensions/ContributionReporting |
___________________________________________________________________ |
Name: svn:mergeinfo |
3153 | 3166 | - /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 |
3154 | 3167 | + /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 |