Add script plus message for ATE mailing:

CAcert Assurer Training Event Amsterdam and Eemnes
pull/1/head
Wytze van der Raay 16 years ago
parent 6cddc64e38
commit d4f9a7df22

@ -0,0 +1,88 @@
CAcert Assurer Training Event Amsterdam and Eemnes
::::::::::::::::::::::::::::::::::::::::::::::::::
Er is het laatste jaar veel gebeurd. Een hele reeks van tot nu toe
veelal "mondeling overgedragen" regels, zijn in Policies gegoten. Nieuwe
Procedures (b.v. de Assurer Challenge) en verplichtingen (b.v. in de
CAcert Community Agreement) werden vastgesteld. De Assurer Training
Events trachten de volledige informatie "onder het volk" te brengen.
- Waartegen beschermt de CCA ieder CAcert-Community-Lid en dus ook jou?
- Kan je de 5 Statements van de "Purpose of Assurance" opnoemen?
- Kan je onmiddellijk 10 veiligheidskenmerken van het Nederlandse
paspoort/identiteits kaart opnoemen?
Antwoorden op deze en verdere vragen krijg je bij de Assurer Training
Events (ATEs)
De deelname aan de evenementen is gratis, bijdragen worden echter gaarne
tegemoet gezien.
De ATE-Amsterdam vindt plaats op:
- Maandag, 15. Juni van 20:00 tot 22:00 uur.
- in SCHUBERG PHILIS
Star Parc
Boeing Avenue 271
1119 PD Schiphol-Rijk
De ATE-Eemnes vindt plaats op:
- Zaterdag, 20. Juni van 10:30 tot 12:30 uur, met uitloop tot 15:30
voor gewone waarmerkingen
- in de Hilt
Hasselaarlaan 1c
3755 AV EemnesHet evenementen-team verheugt zich al op jullie deelname.
CAcert Assurer Training Event Amsterdam
Aanmelding ATE-Amsterdam
[http://wiki.cacert.org/wiki/Events/20090615ATE-Amsterdam]
CAcert Assurer Training Event Eemnes
Aanmelding ATE-Eemnes
[http://wiki.cacert.org/wiki/Events/20090620ATE-Eemnes]
contact: events@cacert.org
CAcert Assurer Training Event Amsterdam and Eemnes
::::::::::::::::::::::::::::::::::::::::::::::::::
Much has happened during the past year. A list of up till now mostly
"orally transmitted" rules have been cast in policies. New procedures
(e.g. the Assurer Challenge) and obligations (e.g. in the CAcert
Community Agreement) have been decided. The Assurer Training Events
try to bring all this informations to "the people":
- To what, does the CCA protect every CAcert-Community-Member and as
such also you?
- Can you recount the 5 statements of the "Purpose of Assurance"?
- Can you at least recount 10 security marks of the Dutch passport
/Identity card?
Answers to these and following questions are given at the Assurer
Training Events (ATEs).
Participation in the events is free, Contributions are however
appreciated.
The ATE-Amsterdam takes place on:
- Monday, June 15th from 20:00 till 22:00
- at SCHUBERG PHILIS
Star Parc
Boeing Avenue 271
1119 PD Schiphol-Rijk
The ATE-Eemnes takes place on:
- Saturday, June 20th from 10:30 till 12:30, followed by normal
assurances till 15:30
- in de Hilt
Hasselaarlaan 1c
3755 AV Eemnes
The Event-Team is already excited about your participation.
Registration ATE-Amsterdam
[http://wiki.cacert.org/wiki/Events/20090615ATE-Amsterdam]
Registration ATE-Eemnes
[http://wiki.cacert.org/wiki/Events/20090620ATE-Eemnes]
contact: events@cacert.org

@ -0,0 +1,89 @@
#!/usr/bin/php -q
<? /*
LibreSSL - CAcert web application
Copyright (C) 2004-2008 CAcert Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
include_once("../includes/mysql.php");
$lines = "";
$fp = fopen("ate-nl01-email.txt", "r");
while(!feof($fp))
{
$line = trim(fgets($fp, 4096));
$lines .= wordwrap($line, 75, "\n")."\n";
}
fclose($fp);
// $locid = intval($_REQUEST['location']);
// $maxdist = intval($_REQUEST['maxdist']);
$maxdist = 200;
// location location.ID
// verified: 29.4.09 u.schroeter
// $locid = 7902857; // Paris
// $locid = 238568; // Bielefeld
// $locid = 715191; // Hamburg
// $locid = 1102495; // London
// $locid = 520340; // Duesseldorf
// $locid = 1260319; // Muenchen
// $locid = 606058; // Frankfurt
// $locid = 1775784; // Stuttgart
// $locid = 228950; // Berlin
// $locid = 606058; // Frankfurt
// $locid = 599389; // Flensburg
$locid = 61065; // Amsterdam, Eemnes
$city = "Amsterdam June 15th, Eemnes June 20th 2009";
$query = "select * from `locations` where `id`='$locid'";
$loc = mysql_fetch_assoc(mysql_query($query));
$query = "SELECT ROUND(6378.137 * ACOS(0.9999999*((SIN(PI() * $loc[lat] / 180) * SIN(PI() * `locations`.`lat` / 180)) +
(COS(PI() * $loc[lat] / 180 ) * COS(PI() * `locations`.`lat` / 180) *
COS(PI() * `locations`.`long` / 180 - PI() * $loc[long] / 180)))), -1) AS `distance`, sum(`points`) as pts, `users`.*
FROM `locations`
inner join `users` on `users`.`locid` = `locations`.`id`
inner join `alerts` on `users`.`id`=`alerts`.`memid`
inner join `notary` on `users`.`id`=`notary`.`to`
WHERE (`alerts`.`general`=1 OR `alerts`.`country`=1 OR `alerts`.`regional`=1 OR `alerts`.`radius`=1)
GROUP BY `users`.`id`
HAVING `distance` <= '$maxdist'
ORDER BY `distance` ";
echo $query;
// comment next line when starting to send mail not only to me
// $query = "select * from `users` where `email` like 'cacerttest%'";
$res = mysql_query($query);
$xrows = mysql_num_rows($res);
while($row = mysql_fetch_assoc($res))
{
// uncomment next line to send mails ...
sendmail($row['email'], "[CAcert.org] ATE-$city", $lines, "events@cacert.org", "", "", "CAcert Events Organisation", "returns@cacert.org", 1);
}
// 1x cc to events.cacert.org
sendmail("events@cacert.org", "[CAcert.org] ATE-$city", $lines, "events@cacert.org", "", "", "CAcert Events Organisation", "returns@cacert.org", 1);
// 1x mailing report to events.cacert.org
sendmail("events@cacert.org", "[CAcert.org] ATE-$city Report", "invitation sent to $xrows recipients.", "support@cacert.org", "", "", "CAcert Events Organisation", "returns@cacert.org", 1);
// 1x mailing report to Arbitrator of case http://wiki.cacert.org/wiki/Arbitrations/a20090525.1
sendmail("p.dunkel@cacert.org", "[CAcert.org] ATE-$city Report", "invitation sent to $xrows recipients.", "support@cacert.org", "", "", "CAcert Events Organisation", "returns@cacert.org", 1);
?>
Loading…
Cancel
Save