Page Menu
Home
Wolfplex
Search
Configure Global Search
Log In
Files
F408756
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
View Options
diff --git a/newsletter.php b/newsletter.php
index dd7aa98..0f288f7 100644
--- a/newsletter.php
+++ b/newsletter.php
@@ -1,93 +1,85 @@
<!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($_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
Tue, Jun 10, 12:04 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
46210
Default Alt Text
(2 KB)
Attached To
rCMPXIII web-campaigns-2013
Event Timeline
Log In to Comment