Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F408844
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
View Options
diff --git a/newsletter.php b/newsletter.php
index 4650a75..dd7aa98 100644
--- a/newsletter.php
+++ b/newsletter.php
@@ -1,93 +1,93 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Wolfplex Hackerspace - Créer un hackerspace à Charleroi</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/theme/wolfplex.css" id="theme">
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
<style>
body {
min-height: 100%;
}
#you {
margin: auto;
position: absolute;
top: 0; left: auto; bottom: 0; right: 10%;
height: 378px;
width: 603px;
text-align: center;
background-color: #090909;
padding: 1em 1em;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section id="you">
<?php
$subscribed = false;
$error = '';
if (array_key_exists('mail', $_POST)) {
$mail = $_POST['mail'];
if (preg_match('/@/', $mail)) {
$subscribed = true;
- $fd = fopen('../../.dat/2013.txt', 'a');
+ $fd = fopen($_ENV['DATASTORE'] . '/2013.txt', 'a');
fwrite($fd, "$mail\n");
fclose($fd);
} else {
$error = "Pas un mail.";
}
} else {
$mail = '';
}
if ($subscribed) {
?>
<h1>Bienvenue :-)</h1>
<p>Nous avons bien noté ton mail,<br /><?= $_POST['mail'] ?></p>
<p>Un membre te recontactera pour discuter<br />un peu et répondre à tes questions.</p>
<p>Tu peux aussi rejoindre notre canal IRC<br />[ <a href="http://irc.lc/wolfplex">Webchat</a> | <a href="irc://irc.freenode.net/wolfplex">Freenode #wolfplex</a> ]
<?php
} else {
?>
<h1>YOU</h1>
<h4>« Dans un hackerspace, il n'y a pas de passagers,<br /> que des membres de l'équipage. »</h4>
<hr />
<?php
if ($error) {
echo "<p>$error</p>";
} else {
echo "<p>Tu es le bienvenu pour<br />rejoindre notre projet.</p>";
}
?>
<p>Intéressé ? Laisse-nous ton mail ici :
<form method="post">
<input id="mail" name="mail" type="text" size="29" value="<?= $mail ?>" />
<input id="ok" type="submit" value="OK" />
</form>
<?php
}
?>
</section>
</div>
</div>
</body>
</html>
<?php
require_once('/var/wwwroot/wolfplex.org/analytics/owa_php.php');
$owa = new owa_php();
$owa->setSiteId('076a11a6d44ea1ca6490af4f53b86e41');
$owa->setPageTitle('Campaign2013NewsletterConfirmForm');
$owa->setProperty('hasSubscribed', $subscribed);
$owa->trackPageView();
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jun 19, 1:18 PM (15 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
46324
Default Alt Text
(3 KB)
Attached To
rCMPXIII web-campaigns-2013
Event Timeline
Log In to Comment