Exemple #1
0
<h2>What are your real motives? Who does this benefit politically?</h2>

<p>Dammit, we hoped you wouldn't ask that, and now our secret is blown.
Obviously this campaign benefits Gordon Brown at the expense of Tony Blair. No,
wait a minute, that was last year. It definitely gives Hillary the edge over
Obama though. No, hang on, that's over too. Actually, it isn't partisan at all
- that's what I was trying to say. mySociety is based on a charity, you see, so
even if we wanted to be partisan, it'd be against the law. And if you're still
suspicious you'll see that MPs from almost all parties have signed our
<a href="http://edmi.parliament.uk/EDMi/EDMDetails.aspx?EDMID=36490">EDM</a>.

<h2>Isn&rsquo;t this an embarrassingly obscure thing to be campaigning about?
Can&rsquo;t you campaign about saving puppies or something?</h2>

<p>Hey &ndash; <strong>you&rsquo;re</strong> the one who just read all the way down to this point.
Suck it up and sign up, soldier.

<h2>We need you!</h2>

<? signup_form(); ?>
<? freeourbills_sharethis_link(); ?>

<?
$PAGE->stripe_end(array(array(
	'type' => 'html',
	'content' => '<p align="center"><img title="Duck-billed platypus" src="bill3.jpg" alt="" hspace="10"></p>'
)));
$PAGE->page_end ();


Exemple #2
0
<?php

require_once '../../bootstrap.php';
require_once 'signup.controller.php';
/*
 * Sending calls to the view
 * Call functions on {yourmodule}.controller.php
 */
if ($_GET['fn']) {
    $fn = $_GET['fn'];
} else {
    $fn = $_POST['fn'];
}
switch ($fn) {
    case 'signup_form':
        echo signup_form($_POST);
        break;
    default:
        echo signup_form($_POST);
        break;
}
Exemple #3
0
<p>Nope, the improved publication we&rsquo;re talking about has nothing to do
with the actual legal contents of bills. It&rsquo;s about how it gets
translated into an electronic format once they&rsquo;ve finished.

<h3>What are your real motives? Who does this benefit politically?</h3>

<p>Dammit, we hoped you wouldn't ask that, and now our secret is blown.
Obviously this campaign benefits Gordon Brown at the expense of Tony Blair. No,
wait a minute, that was last year. It definitely gives Hillary the edge over
Obama though. No, hang on, that's over too. Actually, it isn't partisan at all
- that's what I was trying to say. mySociety is based on a charity, you see, so
even if we wanted to be partisan, it'd be against the law. And if you're still
suspicious you'll see that MPs from almost all parties have signed our
<a href="http://edmi.parliament.uk/EDMi/EDMDetails.aspx?EDMID=36490">EDM</a>.

<h3>Isn&rsquo;t this an embarrassingly obscure thing to be campaigning about?
Can&rsquo;t you campaign about saving puppies or something?</h3>

<p>Hey &ndash; <strong>you&rsquo;re</strong> the one who just read all the way down to this point.
Suck it up and sign up, soldier.

<h3>We need you!</h3>

<?php 
signup_form();
freeourbills_sharethis_link();
?>

<?php 
$PAGE->stripe_end(array(array('type' => 'html', 'content' => '<p align="center"><img title="Duck-billed platypus" src="bill3.jpg" alt="" hspace="10"></p>')));
$PAGE->page_end();
Exemple #4
0
function KSignup()
{
    global $_POST, $_GET, $deflanguage, $setctl;
    if (USERSIGNUP && empty($_GET['usersignup']) && empty($_POST['usersignup'])) {
        if ($setctl->get('approvesignup')) {
            $ustatus = 2;
        } else {
            $ustatus = 1;
        }
        if (isset($_POST['adduser'])) {
            if (!empty($_POST['u_name']) && !empty($_POST['u_login']) && !empty($_POST['password']) && !empty($_POST['email'])) {
                $result = db_execquery('SELECT u_id FROM ' . TBL_USERS . ' WHERE u_login = "******"');
                if (mysql_num_rows($result) == 0 && strtolower(myescstr($_POST['u_login'])) != 'admin') {
                    $kpu = new kpuser();
                    if ($setctl->get('signuptemplate') > 0) {
                        $kpu->load($setctl->get('signuptemplate'));
                    }
                    $kpu->id = -1;
                    $kpu->set('utemplate', 0);
                    $kpu->set('u_login', $_POST['u_login']);
                    $kpu->set('u_name', $_POST['u_name']);
                    $kpu->set('u_pass', md5($_POST['password']));
                    $kpu->set('u_comment', $_POST['u_comment']);
                    $kpu->set('u_access', 1);
                    $kpu->set('email', $_POST['email']);
                    $kpu->set('created', time());
                    $kpu->set('u_status', $ustatus);
                    if ($kpu->store(false)) {
                        $text = get_lang(259);
                        if ($setctl->get('approvesignup')) {
                            $text .= '&nbsp;' . get_lang(285);
                        }
                        signup_form($text, false);
                    } else {
                        signup_form(get_lang(56));
                    }
                } else {
                    signup_form(get_lang(312));
                }
            } else {
                signup_form(get_lang(284));
            }
        } else {
            signup_form();
        }
    }
}