⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.php

📁 一个可以实时查看股票行情的小程序,真是一个好程序哦,直得大家
💻 PHP
字号:
<?php
$wind_in='rg';
require_once("./global.php");

include_once(R_P."data/bbscache/dbreg.php");
if($vip=='jihuo'){
	$u_db=$db->get_one("SELECT yz FROM pw_members WHERE uid='$r_uid'");
	if($u_db){
		if($pwd==$u_db['yz']){//利用时间戳验证
			$db->update("UPDATE pw_members SET yz=1 WHERE uid='$r_uid'");
			Showmsg('reg_jihuo_success');
		} else{
			Showmsg('reg_jihuo_fail');
		}
	} else{
		Showmsg('reg_jihuo_fail');
	}
}
if($rg_allowregister==0){
	Showmsg('reg_close');
}
if($rg_allowsameip){
	if(file_exists(R_P.'data/bbscache/ip_cache.php')){
		$ipdata=readover(R_P.'data/bbscache/ip_cache.php');
		if(strpos($ipdata,"<$onlineip>")!==false){
			Showmsg('reg_limit');
		}
	}
}
$groupid!='guest' && Showmsg('reg_repeat');

if(empty($step) && !$rg_reg){
	require_once("./header.php");
	require_once(PrintEot('register'));footer();
} elseif($_POST['step']!=2 && ($_POST['step']==1 || $rg_reg=='1')){
	$imgpatherror=0;
	if(ereg("^http",$picpath)){
		$picpath=basename($picpath);//如果您将图片路径更名为其他服务器上的图片,请务必保持图片目录同名,否则出错不在程序bug 之内
		if(!file_exists($picpath)){
			$imgpatherror=1;
		}
	}
	$img=@opendir("$picpath/face");
	while ($imagearray=@readdir($img)){
		if ($imagearray!="." && $imagearray!=".." && $imagearray!="" && $imagearray!="none.gif"){
			$imgselect.="<option value='$imagearray'>$imagearray</option>";
		}
	}
	@closedir($img);
	require_once("./header.php");
	require_once(PrintEot('register'));footer();
} elseif($_POST['step']==2){
	if(function_exists('imagecreate') && $db_lgck && (!$lg_num || md5($lg_num) != $ck_num)){
		Showmsg('check_error');
	}
	if (strlen($regname)>$rg_regmaxname || strlen($regname)<$rg_regminname){
		Showmsg('reg_username_limit');
	}
	$S_key=array("\\",'|','

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -