From 5f13d8f7b344b1d806a423eb1daca56724e78ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Mon, 30 Apr 2012 02:33:15 +0200 Subject: Source code taken from cacert-20120429.tar.bz2 --- includes/general.php | 4 - includes/lib/account.php | 10 ++- locale/Makefile | 3 +- locale/escape_special_chars.php | 71 +++++++++++++++ pages/account/38.php | 29 +----- pages/account/40.php | 7 +- pages/index/13.php | 13 +++ pages/wot/14.php | 6 +- scripts/42de-ate-leipzig-email.txt | 39 ++++++++ scripts/42de-ate-leipzig-mail.php.txt | 114 +++++++++++++++++++++++ scripts/43de-ate-karlsruhe-email.txt | 103 +++++++++++++++++++++ scripts/43de-ate-karlsruhe-mail.php.txt | 155 ++++++++++++++++++++++++++++++++ www/advertising.php | 6 +- www/wot.php | 9 +- 14 files changed, 526 insertions(+), 43 deletions(-) create mode 100644 locale/escape_special_chars.php create mode 100644 scripts/42de-ate-leipzig-email.txt create mode 100644 scripts/42de-ate-leipzig-mail.php.txt create mode 100644 scripts/43de-ate-karlsruhe-email.txt create mode 100644 scripts/43de-ate-karlsruhe-mail.php.txt diff --git a/includes/general.php b/includes/general.php index 4919c84..9e2b131 100644 --- a/includes/general.php +++ b/includes/general.php @@ -487,10 +487,6 @@ return(0); } - if($points >= 300) - return(200); - if($points >= 200) - return(150); if($points >= 150) return(35); if($points >= 140) diff --git a/includes/lib/account.php b/includes/lib/account.php index f7a24fa..c7697ce 100644 --- a/includes/lib/account.php +++ b/includes/lib/account.php @@ -19,6 +19,8 @@ function fix_assurer_flag($userID) { + // If requirements for assurers are modified see also scripts/cron/updatesort.php + // Update Assurer-Flag on users table if 100 points. // Should the number of points be SUM(points) or SUM(awarded)? $query = mysql_query('UPDATE `users` AS `u` SET `assurer` = 1 WHERE '. @@ -29,11 +31,11 @@ function fix_assurer_flag($userID) '(SELECT SUM(`points`) FROM `notary` AS `n` WHERE `n`.`to` = `u`.`id` '. 'AND (`n`.`expire` > now() OR `n`.`expire` IS NULL)) >= 100'); // Challenge has been passed and non-expired points >= 100 - + if (!$query) { return false; } - + // Reset flag if requirements are not met $query = mysql_query('UPDATE `users` AS `u` SET `assurer` = 0 WHERE '. '`u`.`id` = \''.(int)intval($userID).'\' AND '. @@ -42,10 +44,10 @@ function fix_assurer_flag($userID) 'AND `cp`.`user_id` = `u`.`id`) OR '. '(SELECT SUM(`points`) FROM `notary` AS `n` WHERE `n`.`to` = `u`.`id` '. 'AND (`n`.`expire` > now() OR `n`.`expire` IS NULL)) < 100)'); - + if (!$query) { return false; } - + return true; } \ No newline at end of file diff --git a/locale/Makefile b/locale/Makefile index b703fb2..1517066 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -112,8 +112,7 @@ $(LANGS:%=$(MO_FILE_TEMPLATE)): $(MO_FILE_TEMPLATE): $(PO_FILE_TEMPLATE) $(LANGS:%=$(PO_FILE_TEMPLATE)): mkdir -p $(@D) wget --output-document - '$(@:$(PO_FILE_TEMPLATE)=$(PO_URL_TEMPLATE))' | \ - # convert UTF-8 characters to HTML entities \ - php -r 'while (!feof(STDIN)) echo mb_convert_encoding(fgets(STDIN), "HTML-ENTITIES", "UTF-8");' \ + php -f escape_special_chars.php \ > $@ diff --git a/locale/escape_special_chars.php b/locale/escape_special_chars.php new file mode 100644 index 0000000..32de390 --- /dev/null +++ b/locale/escape_special_chars.php @@ -0,0 +1,71 @@ +#!/usr/bin/php -q + -


+*/ -

- -

-', ''); -?> - -

- -"> - -
- -

- -
-Account Name: CAcert Inc
-BSB: 032073
-Account No.: 180264
-
- -

- -

+require_once(dirname(__FILE__)."/../index/13.php"); diff --git a/pages/account/40.php b/pages/account/40.php index 499bf4d..fa0c52f 100644 --- a/pages/account/40.php +++ b/pages/account/40.php @@ -74,7 +74,12 @@ if(!array_key_exists('secrethash',$_SESSION['_config'])) $_SESSION['_config']['s

-

bugs.cacert.org and mark it as private.")?>

+

support@cacert.org", + "bugs.cacert.org")?>

diff --git a/pages/index/13.php b/pages/index/13.php index 68ee5ed..f2ea173 100644 --- a/pages/index/13.php +++ b/pages/index/13.php @@ -42,3 +42,16 @@ Account No.: 180264

+ + +

+ +

Booking.com

+ +

+ +

booking.com'); + ?>

+ diff --git a/pages/wot/14.php b/pages/wot/14.php index 21c5873..a827ee4 100644 --- a/pages/wot/14.php +++ b/pages/wot/14.php @@ -20,7 +20,11 @@

","")?>

-

http://www.buergerkarte.at/bku/. To activate your E-Card, please go to https://www.sozialversicherung.at/signon2-Registrierung/."))?>

+

http://www.buergerkarte.at/bku/", + "https://www.sozialversicherung.at/signon2-Registrierung/" + )?>

diff --git a/scripts/42de-ate-leipzig-email.txt b/scripts/42de-ate-leipzig-email.txt new file mode 100644 index 0000000..ea08a75 --- /dev/null +++ b/scripts/42de-ate-leipzig-email.txt @@ -0,0 +1,39 @@ +CAcert Assurer Training Event Leipzig +:::::::::::::::::::::::::::::::::::::::::::::::::: + +Es hat sich viel getan im letzten Jahr. Eine ganze Reihe von bisher eher "muendlich ueberlieferten" Regeln wurden in Policies gegossen. Neue Prozeduren (z.B. die Assurer Challenge) und Verpflichtungen (z.B. in dem CAcert Community Agreement) wurden beschlossen. Die Assurer Training Events wollen versuchen, die ganzen Informationen unter’s Volk zu bringen: + +- Was hast du auf dem CAP Formular hinzuzufuegen, wenn du Minderjaehrige ueberpruefst ? +- Warum solltest du dir R/L/O einpraegen ? +- Wie verhaelst du dich, wenn du ein fremdes Ausweis Dokument das erste mal pruefst ? + +Antworten auf diese und weitere Fragen erhaelst du bei den Assurer Training Events (ATEs). + +Die kommende Veranstaltung in deiner Naehe findet statt am: + +Dienstag den 10. April 2012, 19:00 - 22:00 +(Dienstag nach Ostern) + +Adresse: + Universtität Leipzig / Institut für Informatik + Johannisgasse 26 / Raum 1-40 + 04103 Leipzig +Webseite: + [http://www.informatik.uni-leipzig.de/ifi/] +Lageplan: + [http://www.fmi.uni-leipzig.de/cms/service/lageplan.html] + + + +Das Veranstaltungs-Team freut sich schon auf Eure Teilnahme. + +Details zum Veranstaltungsort und Anfahrthinweise findet Ihr im +Wiki [https://wiki.cacert.org/Events/2012-04-10ATE-Leipzig] +Blog [http://blog.cacert.org/2012/03/555.html] + + + +Unverbindliche Anmeldung und Registrierung: +Rueckantwort mit 'Ich moechte teilnehmen: ATE-Leipzig' + +Kontakt: events@cacert.org diff --git a/scripts/42de-ate-leipzig-mail.php.txt b/scripts/42de-ate-leipzig-mail.php.txt new file mode 100644 index 0000000..d0c02b7 --- /dev/null +++ b/scripts/42de-ate-leipzig-mail.php.txt @@ -0,0 +1,114 @@ +#!/usr/bin/php -q + diff --git a/scripts/43de-ate-karlsruhe-email.txt b/scripts/43de-ate-karlsruhe-email.txt new file mode 100644 index 0000000..26af21c --- /dev/null +++ b/scripts/43de-ate-karlsruhe-email.txt @@ -0,0 +1,103 @@ +[Deutsch] + +Es hat sich viel getan im letzten Jahr. Eine ganze Reihe von bisher +eher "muendlich ueberlieferten" Regeln wurden in Policies gegossen. +Neue Prozeduren (z.B. die Assurer Challenge) und Verpflichtungen (z.B. in dem CAcert Community Agreement) wurden beschlossen. Die Assurer Training Events wollen versuchen, die ganzen Informationen unter’s Volk zu bringen: + +- Welcher Satz fehlt auf alten CAP Formularen? +- Warum soll ich mir R/L/O einpraegen? +- Wie verhaelst du dich, wenn du ein fremdes Ausweis Dokument das erste mal pruefst? + +Antworten auf diese und weitere Fragen erhaelst du bei den Assurer Training Events (ATEs). + +Darueberhinaus wird beim ATE der Vorgang der Identitaetsueberpruefung trainiert und auditiert, um die Qualitaet der Assurances in der taeglichen Praxis zu erfassen. Dabei gilt es moegliche Fehler und Fallstricke zu erkennen und aufzudecken. Die Assurer haben also die Moeglichkeit, sich mit den Fehlern auseinanderzusetzen und zu erfahren, wie diese vermieden werden koennen. + +As IanG said: The ATE or Assurer Training Event is exceptionally recommended for all Assurers, and include parts which contribute directly to our audit. Come and find out how you can also contribute. + +Die kommende Veranstaltung in deiner Naehe findet statt am: + +- Dienstag, den 15. Mai 2012 +- in der Zeit von: 19:00 - ca. 22:00 Uhr +- Raum: New York +- im FZI Forschungszentrum Informatik +- Haid-und-Neu-Str. 10-14 +- 76131 Karlsruhe + +Details zum Veranstaltungsort und Anfahrthinweise findet Ihr im +Wiki [http://wiki.cacert.org/Events/2012-05-15ATE-Karlsruhe] +Blog [http://blog.cacert.org/2012/04/559.html] + +Teilnehmer Registrierung mit Rueckantwort: + 'Ich moechte am ATE-Karlsruhe teilnehmen' + +Das Veranstaltungs-Team freut sich schon auf Eure Teilnahme. + +Kontakt: events@cacert.org + + +[French] + +Bon nombre de changements ont eu lieu au cours de la derniere annee au sein de CAcert. Beaucoup de regles "orales" ont ete transformees en reglements ("Policies"). De nouvelles procedures (par exemple le Challenge Assureur) et devoirs (par exemple le CAcert Community Agreement) ont ete activees. Les Assurer Training Events essaient de propager ces informations : + +- Que manque-t-il sur les "anciens" formulaires CAP ? +- Pourquoi dois-je me souvenir de R/L/O ? +- Que faire si une personne vous montre un document d'identite qui vous est inconnu ? + +Durant les Assurer Training Events (ATEs) vous recevrez les reponses a ces questions et a plein d'autres. + +De plus, les ATE vous permettent de vous entrainer a verifier les identites. Ceci sera audite afin de mesurer la qualite des assurances effectuees dans la routine quotidienne. On essaiera de vous induire en erreur. Vous aurez ainsi la possibilite de voir les problemes et d'apprendre a dejouer les pieges. + +Comme IanG l'a dit : il est fortement recommande aux assureurs de participer aux ATE. Le programmme contient des parties qui entrent directement en ligne de compte pour le succes de notre audit. Venez et decouvrez comment contribuer. + +Le prochain ATE qui aura lieu pres de chez vous sera : +- Mardi le 15 mai 2012 +- de 19:00 a environ 22:00 +- Chambre: New York +- dans le FZI Forschungszentrum Informatik +- Haid-und-Neu-Str. 10-14 +- 76131 Karlsruhe + +NB : les exposes auront lieu en Allemand + +Plus de renseignements sur le lieu : +Wiki [http://wiki.cacert.org/Events/2012-05-15ATE-Karlsruhe] +Blog [http://blog.cacert.org/2012/04/559.html] + +Pour participer, repondez a ce courriel : 'Je viendrais au ATE-Karlsruhe' + +Le comite d'organisation se rejouit de votre venue. + +Contact: events@cacert.org + +[English] + +During the last year many changes took place inside CAcert. Many "oral" rules have been put into Policies. New procedures (e.g. Assurer Challenge) and obligations (e.g. CAcert Community Agreement) have been put into live. The Assurer Training Events (ATE) try to spread this information: + +- What is missing on the "old" CAP forms? +- Why should I remember R/L/O? +- What can you do if an Assuree shows an ID document unknown to you? + +These and more questions will be answered during the Assurer Training Events (ATEs) + +Furthermore, the ATE trains how to do assurances and audits assurances, to measure the quality of assurances in the daily routine. Here are some possible errors and pitfalls which need to be found. Assurers have the opportunity to see those errors and how to avoid them. + +As IanG said: The ATE or Assurer Training Event is exceptionally recommended for all Assurers and includes parts which contribute directly to our audit. Come and find out how you can also contribute. + +The next event held in your area will be: + +- Tuesday 15th Mai 2012 +- during 19:00 - ca. 22:00 +- Room: New York +- in the FZI Forschungszentrum Informatik +- Haid-und-Neu-Str. 10-14 +- 76131 Karlsruhe + +Details to the location can be found: +Wiki [http://wiki.cacert.org/Events/2012-05-15ATE-Karlsruhe] +Blog [http://blog.cacert.org/2012/04/559.html] + +User reply for registration: 'I will attend the ATE-Karlsruhe' + +The event team is looking forward for your attendance: + +Contact: events@cacert.org diff --git a/scripts/43de-ate-karlsruhe-mail.php.txt b/scripts/43de-ate-karlsruhe-mail.php.txt new file mode 100644 index 0000000..afea2f2 --- /dev/null +++ b/scripts/43de-ate-karlsruhe-mail.php.txt @@ -0,0 +1,155 @@ +#!/usr/bin/php -q + diff --git a/www/advertising.php b/www/advertising.php index e987461..43e4f93 100644 --- a/www/advertising.php +++ b/www/advertising.php @@ -47,7 +47,7 @@ if($months < 1 || $months > 12) { $id = 1; - $errmsg .= _("You can only place an advertisement for up to 12 months.
"); + $errmsg .= _("You can only place an advertisement for up to 12 months.")."
"; $process=""; $oldid=0; } @@ -55,7 +55,7 @@ if(strlen($title) <= 5) { $id = 1; - $errmsg .= _("Link title was too short.
"); + $errmsg .= _("Link title was too short.")."
"; $process=""; $oldid=0; } @@ -63,7 +63,7 @@ if(strlen($link) <= 10) { $id = 1; - $errmsg .= _("Link URI was too short.
"); + $errmsg .= _("Link URI was too short.")."
"; $process=""; $oldid=0; } diff --git a/www/wot.php b/www/wot.php index 66bf7cb..bf5d301 100644 --- a/www/wot.php +++ b/www/wot.php @@ -444,7 +444,14 @@ $iecho= "c"; { sendmail($user['email'], "[CAcert.org] ".$_REQUEST['subject'], $_REQUEST['message'], $_SESSION['profile']['email'], "", "", $_SESSION['profile']['fname']." ".$_SESSION['profile']['lname']); - show_page("ContactAssurer",_("Your email has been sent to")." ".$user['fname'].".
[ "._("Go Back")." ]",""); + + showheader(_("My CAcert.org Account!"));?> +

+ +

+

[ ]

+