本文整理汇总了PHP中myclass::update_total_login方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::update_total_login方法的具体用法?PHP myclass::update_total_login怎么用?PHP myclass::update_total_login使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::update_total_login方法的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();
# get mno logon
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
# update total login so that this popup will not show again when closed.
$mc->update_total_login($mno, 3, true);
# initialize invite friends
$from = 0;
$_SESSION['cif_fb'] = 2;
// page of the invite friends in fb
$to = $limit = $_SESSION['cif_limit'] = 12;
// this is the total result every show more button clicked
# initialize facebook sdk
$facebook = $mc->fb_init('../../../../fs_folders/API/facebook-php-sdk-master/src/facebook.php');
#get fb all friends on fb
$mc->get_fb_all_freinds($mno, "-+-");
$freinds_on_fb = $mc->get_fb_freinds_on_fb($mno, "-+-", $from, $to);
if ($freinds_on_fb != false) {
$fb_freinds_on_fb_len = $freinds_on_fb['fb_freinds_on_fb_len'];
$fb_freinds_on_fb = $freinds_on_fb['fb_freinds_on_fb'];
$_SESSION['fb_freinds_on_fb'] = $freinds_on_fb['fb_freinds_on_fb'];
}
# posting profile pin in the wall
$mppno = $mc->member_profile_pic_query(array('mno' => $mno, 'type' => 'get-latest-mppno'));