コード例 #1
0
ファイル: registration_functions.php プロジェクト: gblok/rsc
function regGetContactInfo($login, &$cust_password, &$Email, &$first_name, &$last_name, &$subscribed4news, &$additional_field_values)
{
    $q = db_query("select customerID, cust_password, Email, first_name, last_name, " . " subscribed4news, custgroupID, addressID  from " . CUSTOMERS_TABLE . " where Login='******'");
    $row = db_fetch_row($q);
    $cust_password = cryptPasswordDeCrypt($row["cust_password"], null);
    $Email = $row["Email"];
    $first_name = $row["first_name"];
    $last_name = $row["last_name"];
    $subscribed4news = $row["subscribed4news"];
    $additional_field_values = GetRegFieldsValues($login);
}
コード例 #2
0
ファイル: register_activation.php プロジェクト: gblok/rsc
<?php

if (isset($_GET['act_customer']) && CONF_ENABLE_REGCONFIRMATION) {
    $ActErr = false;
    if (isset($_GET['act_code'])) {
        if ($_GET['act_code']) {
            $sql = 'SELECT customerID, Login, cust_password FROM ' . CUSTOMERS_TABLE . '
                                WHERE ActivationCode="' . xEscapeSQLstring($_GET['act_code']) . '"
                                AND ActivationCode!="" AND ActivationCode IS NOT NULL';
            $Result = db_query($sql);
            $Customer = db_fetch_row($Result);
            if (isset($Customer['Login']) && $Customer['Login']) {
                regActivateCustomer($Customer['customerID']);
                regAuthenticate($Customer['Login'], cryptPasswordDeCrypt($Customer['cust_password'], null));
                if (isset($_GET['order2']) && xDataExists('xREGMAILCONF_URLORDER2')) {
                    Redirect(xPopData('xREGMAILCONF_URLORDER2'));
                } else {
                    Redirect(set_query('&act_code=&act_ok=1'));
                }
            } else {
                $smarty->hassign('ActCode', $_GET['act_code']);
                $ActErr = true;
            }
        } else {
            $ActErr = true;
        }
    }
    if (isset($_GET['act_ok'])) {
        $smarty->assign('ActOk', 1);
    }
    if (isset($_GET['notact'])) {