当前位置: 首页>>代码示例>>PHP>>正文


PHP myclass::confirm_mem_account方法代码示例

本文整理汇总了PHP中myclass::confirm_mem_account方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::confirm_mem_account方法的具体用法?PHP myclass::confirm_mem_account怎么用?PHP myclass::confirm_mem_account使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


在下文中一共展示了myclass::confirm_mem_account方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setcookie

// $_SESSION['temp_mno'] = 754; //
// $_SESSION['temp_mno'] = 133; // rico
// $_SESSION['temp_mno'] = 134;  kayab
// $_SESSION['temp_mno'] = 135;
// $_SESSION['temp_mno'] = 1169;
$lastpagevisited = !empty($_GET['url']) ? $_GET['url'] : $lastpagevisited;
if ($_SESSION['temp_mno'] != null) {
    setcookie('mno', $_SESSION['temp_mno'], time() + 10 * 365 * 24 * 60 * 60);
    require "fs_folders/php_functions/connect1.php";
    require "fs_folders/php_functions/function.php";
    require "fs_folders/php_functions/myclass.php";
    $mc = new myclass();
    $lastpagevisited = !empty($_SESSION['lastpagevisited']) ? $_SESSION['lastpagevisited'] : '/';
    $_SESSION['mno'] = $_SESSION['temp_mno'];
    // echo "succesfully authenticated, please wait.....";
    $mc->update_total_login($_SESSION['mno'], 1);
    $mc->confirm_mem_account($_SESSION['mno']);
    // echo "  lastpagevisited $lastpagevisited ";
    $mc->add_new_member_profile_pic($_SESSION['mno']);
    // $mc->add_new_member_time_lime( $_SESSION['mno'] );
    $db->update('fs_members', array('logtime' => "{$mc->date_time}"), "mno={$_SESSION['mno']}");
    //update logtime everylogin
    $db->update('fs_members', array('logstat' => 1), "mno={$_SESSION['mno']}");
    //update logtime everylogin
    $mc->go("{$lastpagevisited}");
} else {
    echo " failled to authenticate, sorry for inconvenience we are redirecting you to login area..";
    $mc->go("home");
}
?>
      
开发者ID:jesus143,项目名称:fs-dev,代码行数:30,代码来源:login-authentication.php

示例2: myclass

<?php

require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$mc = new myclass();
if (!empty($_GET['code'])) {
    $c = $_GET['code'];
    // get code to db
    $mi = selectV1('*', 'fs_members', array('identity_generated_code' => $c));
    // update user account as verified
    if (!empty($mi)) {
        $mno = intval($mi[0]['mno']);
        $mc->confirm_mem_account($mno);
        if ($b) {
            echo " successfully verified <br> ";
            $_SESSION['temp_mno'] = $mno;
            $_SESSION['lastpagevisited'] = 'account';
            $mc->go('login-authentication.php');
        } else {
            echo " failed verified <br> ";
        }
    } else {
        echo " code not found ";
    }
} else {
    echo " query required in the url <br>";
}
开发者ID:jesus143,项目名称:fs-dev,代码行数:30,代码来源:member-email-verification.php


注:本文中的myclass::confirm_mem_account方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。