本文整理汇总了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");
}
?>
示例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>";
}