예제 #1
0
" />
							</li>
							<li class="no_list no_list_text">
								<br />Do you have an account with IBS?
							</li>
							<li class="no_list">
								<span id="radio_no_select">
									<input type="radio" id="radio_no" class="radio" name="has_account" value="NO"<?php 
echo echo_value('has_account', FALSE) == 'NO' ? ' checked' : '';
?>
>
									No, I don't have an account
								</span>
							</li>
							<li class="no_list">
								<span id="radio_yes_select" class="label">
									<input type="radio" id="radio_yes" class="radio" name="has_account" value="YES"<?php 
echo echo_value('has_account', FALSE) == 'YES' ? ' checked' : '';
?>
>
									Yes, my password is:</span><input id="password" name="password" type="password" size="30" value="" />
							</li>
							<li class="no_list">
								<a id="password_reminder" href="#"><br />Forgotten your password?</a>
							</li>
						</ol>
					</fieldset>
					<a id="submit" href="#" class="buttons submit_button">Submit</a>
				</form>
			</div>
		</div>
        ?>
"
									type="<?php 
        echo $options['type'];
        ?>
"
									size="<?php 
        echo $options['width'];
        ?>
"
									maxlength="<?php 
        echo $options['length'];
        ?>
" 
									value="<?php 
        $name == 'password_confirm' ? '' : echo_value($name, TRUE);
        ?>
"
								/>
<?php 
    } elseif ($name == 'title') {
        ?>
								<select id="title" name="title">
<?php 
        foreach ($title_codes as $title => $code) {
            ?>
									<option	value="<?php 
            echo $code;
            ?>
"<?php 
            echo isset($_POST['title']) && $_POST['title'] == $code ? ' selected' : '';
예제 #3
0
								</span>
							</li>
							<li class="no_list">
								<span id="taxpayer_no_select">
									<input type="radio" class="radio" name="taxpayer" id="taxpayer_no" value="NO">
									I am not a UK taxpayer
								</span>
							</li>
							<li class="no_list">&nbsp;</li>
						</ol>
					</fieldset>

					<!-- store user's id in custom field - will be returned as transaction_subject and custom -->
					<!-- store taxpayer yes/no in item_number -->
					<input type="hidden" id="email" name="email" value="<?php 
    echo_value('email', TRUE);
    ?>
">
					<input type="hidden" id="tax_payer" name="tax_payer" value="">
					<input type="hidden" id="custom" name="custom" value="">

					<!-- This one is for the live site -->
					<input type="hidden" name="business" id="business" value="*****@*****.**">
					<input type="hidden" name="cmd" value="_donations">

					<!-- These are for the test site -->
<!--
					<input type="hidden" name="business" value="*****@*****.**">
					<input type="hidden" name="cmd" value="_xclick">
-->
예제 #4
0
/**
 * Check user's email & send password
 *
 * @access public
 * @return void
 */
function check_password_reminder()
{
    global $task, $err, $debug;
    $task = 'password_sender';
    if (!$_POST['email']) {
        $err[] = 'Please enter your email address';
    } else {
        $_POST['email'] = echo_value('email');
    }
    if (!count($err) && !validate_email($_POST['email'])) {
        $err[] = 'Please enter a valid email address';
    }
    // look up email in DB
    if (!count($err)) {
        // check email
        $_POST['email'] = mysql_real_escape_string($_POST['email']);
        // Escaping all input data
        $row = db_fetch("SELECT email, password, title, forename, surname FROM " . TABLE_COMMUNITY . " WHERE email='{$_POST['email']}'");
        // if email exists, check password
        if ($row['email']) {
            $name = $row['title'] . ' ' . $row['forename'] . ' ' . $row['surname'];
            send_password_email($row['email'], $name, $row['password']);
            $err[] = 'A password reminder has been sent to your registered email address';
            $task = 'start';
        } else {
            $err[] = 'Not a registered email address';
        }
    }
}
예제 #5
0
/**
 * Send registration auto email
 *
 * @access public
 * @return void
 */
function send_registration_auto_email($fields, $is_new)
{
    $msg = 'updated their details';
    if ($is_new) {
        $msg = 'registered';
    }
    $subject = 'IBS Project automated email - Registeration';
    $body = <<<EOF
The following user has {$msg} on our website:
<br />
<br />
EOF;
    foreach ($fields as $name => $options) {
        if (isset($_POST[$name]) && strpos($name, 'password') === FALSE) {
            $body .= $name . ': ' . echo_value($name) . '<br />';
        }
    }
    return send_mail(EMAIL_AUTO, $subject, $body);
}
예제 #6
0
    ?>
				<div class="error_message"><?php 
    echo implode('<br />', $err);
    ?>
</div>
<?php 
}
?>
				<form id="main_form" class="form_register" action="" method="post">
					<input type="hidden" id="page_flag" name="page_flag" value="edit" />
					<input type="hidden" id="sys_flag" name="sys_flag" value="<?php 
echo_value('sys_flag', TRUE);
?>
" />
					<input type="hidden" id="id" name="id" value="<?php 
echo_value('id', TRUE);
?>
" />
					<fieldset>
<!-- 						<legend>Personal details</legend> -->
						<ol>
							<li class="no_list no_list_text">
								<?php 
echo $instructions_text;
?>
							</li>
							<li class="no_list">
								<p>If you would like to edit your details, please <a id="edit_button_inline" href="#">click here</a>.</p>
							</li>
						</ol>
					</fieldset>
예제 #7
0
function email_zahed()
{
    global $R, $RR;
    global $programme_fields;
    global $programme_docs;
    $email = '*****@*****.**';
    $email .= ',zahed.sheikh@gmail.com';
    $email .= ',azadeh_azimi@yahoo.com';
    $subject = 'IBS Project automated email - Executive Leadership Programme';
    $body = '';
    $body .= 'Dear Zahed' . ',' . $RR;
    $body .= 'The following person has sent you a request on ibsproject.org:' . $RR;
    foreach ($programme_fields as $name => $options) {
        $body .= $options['label'] . ' <b>' . echo_value($name) . '</b>' . $R;
    }
    $body .= $R;
    $body .= 'The following documents were requested:' . $R;
    foreach ($programme_docs as $name => $label) {
        if (isset($_POST[$name])) {
            $body .= '<b>' . $label . '</b>' . $R;
        }
    }
    $body .= $R;
    $body .= 'Many thanks,' . $RR;
    $body .= 'IBS Project Team' . $R;
    $body .= '<a href="http://www.ibsproject.org">www.ibsproject.org</a>' . $R;
    send_mail($email, $subject, $body);
    return $body;
}
예제 #8
0
		<div id="loggedin">
			<p>You're logged in as <strong><?php 
echo_value('name', TRUE);
?>
</strong> (<a href="#" id="logout_right">log out</a>)</p>
		</div>