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


PHP get_loginpage函数代码示例

本文整理汇总了PHP中get_loginpage函数的典型用法代码示例。如果您正苦于以下问题:PHP get_loginpage函数的具体用法?PHP get_loginpage怎么用?PHP get_loginpage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: exit

//显示灯鹭设置页面上是文字
$arr_cache[] = $func->show_onoff('denglu_top',$denglu_cache['denglu_top'],$Dlang['denglu_top'],$Dlang['denglu_top_comment']);
	$arr_cache[] = $func->show_onoff('denglu_force_bind',$denglu_cache['denglu_force_bind'],$Dlang['denglu_force_bind'],$Dlang['denglu_force_bind_comment']);
	$arr_cache[] = $func->show_onoff('denglu_login_syn',$denglu_cache['denglu_login_syn'],$Dlang['denglu_login_syn'],$Dlang['denglu_login_syn_comment']);
//	$arr_cache[] = show_onoff('denglu_ignore_checkmail',$denglu_cache['denglu_ignore_checkmail'],$Dlang['denglu_ignore_checkmail'],$Dlang['denglu_ignore_checkmail_comment']);
//	$arr_cache[] = show_onoff('denglu_syn_source',$denglu_cache['denglu_syn_source'],$Dlang['denglu_syn_source'],$Dlang['denglu_syn_source_comment']);
//	$arr_cache[] = $func->show_onoff('denglu_syn_goods',$denglu_cache['denglu_syn_goods'],$Dlang['denglu_syn_goods'],$Dlang['denglu_syn_goods_comment']);
	$arr_cache[] = $func->show_onoff('denglu_syn_comment',$denglu_cache['denglu_syn_comment'],$Dlang['denglu_syn_comment'],$Dlang['denglu_syn_comment_comment']);
	$arr_cache[] = $func->show_input('denglu_appid',$denglu_cache['denglu_appid'],$Dlang['denglu_appid'],$Dlang['denglu_appid_comment']);
	$arr_cache[] = $func->show_input('denglu_appkey',$denglu_cache['denglu_appkey'],'APPKEY',$Dlang['denglu_appkey_comment']);
	
	///////////保存设置 
if($_GET['act']=='do_denglu_set'){

	
	unset($_POST['submit']);unset($_POST['reset']);
	$denglu_cache = $_POST;
	!is_writeable(dirname(dirname(dirname(__FILE__))).'/denglu/lib') && exit($Dlang['lib_cannot_write']);
	$str = "<?php\r\n \$denglu_cache = ".var_export($denglu_cache,1)."\r\n\n?>";
	
	if($fp = fopen(dirname(dirname(dirname(__FILE__))).'/denglu/lib/denglu_cache.php','wb')){
		fwrite($fp,$str);
	}

	//clear_all_files();
	redirect(get_loginpage(WEB_ROOT .'/manage/denglu/index.php'),'设置成功!');
 //   $func->showMsg($Dlang['save_success'], 'index.php');
}

include template('manage_denglu');
开发者ID:noikiy,项目名称:mdwp,代码行数:30,代码来源:index.php

示例2: mail_zd

    $wwwlink = mail_zd($email);
    die(include template('account_verify'));
} else {
    if (strpos($secret, '@')) {
        Session::Set('unemail', $secret);
        mail_sign_email($secret);
        redirect(WEB_ROOT . '/account/verify.php');
    }
}
$user = Table::Fetch('user', $secret, 'secret');
if ($user['enable'] == 'Y') {
    Session::Set('error', '你的账户已经验通过,请直接登录!');
    if (isset($_SESSION['user_id'])) {
        unset($_SESSION['user_id']);
        ZLogin::NoRemember();
        ZUser::SynLogout();
    }
    redirect(WEB_ROOT . '/account/login.php');
}
if ($user) {
    if (option_yes('mobilecode')) {
        Table::UpdateCache('user', $user['id'], array('emailable' => 'Y'));
        die(include template('account_signmobile'));
    } else {
        Table::UpdateCache('user', $user['id'], array('emailable' => 'Y', 'enable' => 'Y'));
        Session::Set('notice', '恭喜!你的帐户已经通过Email验证');
        ZLogin::Login($user['id']);
        redirect(get_loginpage(WEB_ROOT . '/index.php'));
    }
}
redirect(WEB_ROOT . '/index.php');
开发者ID:norain2050,项目名称:zuituware,代码行数:31,代码来源:verify.php

示例3: time

            $condition['uid'] = $user_id;
            $condition['mediaUserID'] = $userinfo['mediaUserID'];
            $condition['mediaID'] = $userinfo['mediaID'];
            $condition['screenName'] = $userinfo["screenName"];
            $condition['tag'] = 1;
            $condition['createtime'] = time();
            $db = DB::Insert('user_denglu', $condition);
            if ($db) {
                $denglu_api->post_bind_info(array('mediaUserID' => $userinfo['mediaUserID'], 'uid' => $_SESSION['user_id'], 'username' => $userinfo["screenName"]));
                if ($denglu_cache['denglu_login_syn'] == 1) {
                    //--如果绑定成功,发送请求
                    $login_r = $denglu_api->post_login($userinfo['mediaUserID']);
                }
                redirect(get_loginpage(WEB_ROOT . '/denglu.php?act=dl_user'), '绑定成功!');
            } else {
                redirect(get_loginpage(WEB_ROOT . '/denglu.php?act=dl_user'), '该媒体已和其他帐号绑定,您可以更换媒体帐号!');
            }
        }
    }
}
if (!empty($_REQUEST['act']) && $_REQUEST['act'] == 'dl_user') {
    if (!empty($user_id)) {
        $denglu_data = $denglu_api->denglu_data();
        //----获取媒体信息(denglu_data.php)
    }
    require 'denglu/dengl_set.php';
    exit;
}
if (!empty($_REQUEST['token']) || !empty($_REQUEST['act'])) {
    require 'denglu/denglu.inc.php';
    exit;
开发者ID:noikiy,项目名称:mdwp,代码行数:31,代码来源:denglu.php

示例4: exit

	

//////获得媒体信息
if($_GET['act']=='do_mediainfo'){
	
	!is_writeable(dirname(dirname(dirname(__FILE__))).'/denglu/lib') && exit($Dlang['lib_cannot_write']);
	if(empty($dengl_data) || !is_array($dengl_data)){
		$dengl_data = array();
	}
	$str = "<?php\r\n \$denglu_data = ".var_export($dengl_data,1)."\r\n\n?>";
	
	if($fp = fopen(dirname(dirname(dirname(__FILE__))).'/denglu/lib/denglu_data.php','wb')){
		fwrite($fp,$str);
	}
	if(!is_array($denglu_data)){
		exit('network failed or data error');
	}	
	foreach($dengl_data as $v){
		if(!file_exists(dirname(dirname(dirname(__FILE__))).'/denglu/themes/images/denglu_second_'.$v['mediaID'].'.png')){
			
			copy($v['mediaImage'],dirname(dirname(dirname(__FILE__))).'/denglu/themes/images/denglu_second_'.$v['mediaID'].'.png');
			copy($v['mediaIconImageGif'],dirname(dirname(dirname(__FILE__))).'/denglu/themes/images/denglu_second_icon_'.$v['mediaID'].'.gif');
			copy($v['mediaIconNoImageGif'],dirname(dirname(dirname(__FILE__))).'/denglu/themes/images/denglu_second_icon_no_'.$v['mediaID'].'.gif');
		}
	}
	redirect(get_loginpage(WEB_ROOT .'/manage/denglu/dl_media.php'),'更改成功!');
   // $func->showMsg($Dlang['get_media_success'], 'dl_media.php?act=mediainfo');
}

include template('manage_dl_media');
exit;
开发者ID:noikiy,项目名称:mdwp,代码行数:29,代码来源:dl_media.php

示例5: if

if ( $login_user_id ) { 
	redirect('index.php'); 
}

if ( $_POST ) {
	$login_user = ZUser::GetLogin($_POST['email'], $_POST['password']);
	if ( !$login_user ) {
		Session::Set('error', '登录失败');
		redirect('login.php');
	} else if (option_yes('emailverify')
			&& $login_user['enable']=='N'
			&& $login_user['secret']
			) {
		Session::Set('error', "您的邮箱{$login_user['email']}还没有通过验证");
		redirect('login.php');
	} else {
		Session::Set('user_id', $login_user['id']);
		ZLogin::Remember($login_user);
		redirect(get_loginpage('index.php'));
	}
}

$currefer = strval($_GET['r']);
if ($currefer) { Session::Set('loginpage', udecode($currefer)); }

$pagetitle = '登录';
include template('m_login');


开发者ID:noikiy,项目名称:mdwp,代码行数:27,代码来源:login.php


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