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

📄 account.tpl.php

📁 创建虚拟磁盘。用户可以创建磁盘
💻 PHP
字号:
<?php 
// This is PHPDISK auto-generated file. Do NOT modify me.

if(!defined('IN_PHPDISK'))
	exit('[PHPDisk] Access Denied');
?>
<?php 
##
#	Project: PHPDisk
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.phpdisk.com
#
#	$Id: account.tpl.php 201 2009-03-02 06:57:21Z along $
#
#	Copyright (C) 2008-2009 PHPDisk Team. All Rights Reserved.
#
##
 ?>
<title><?=$user_title?> - <?=$settings['site_title']?> - Powered by PHPDisk Team</title>
<script type="text/javascript" src="includes/js/prototype.js"></script>
<script type="text/javascript" src="includes/js/common.js"></script>
<link href="<?=$tpl_dir?>/images/index.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php require_once template('front_top',TPL_NAME);  ?>

<?php if(empty($action) || $action =='login'){ ?>
<?php require_once template('circle_box_header',TPL_NAME);  ?>
<div class="cboxcontent">
<h1><?=$lang['phpdisk_login']?></h1>
<?php 
if(count($sysmsg)>0){
	for($i=0;$i<count($sysmsg);$i++){
 ?>
<li><span>*</span> <?=$sysmsg[$i]?></li>
<?php 
	}
}
unset($sysmsg);
 ?>
<form name="user_form" onSubmit="return chkform(this);" action="<?=urr("index","")?>" method="post">
<input type="hidden" name="item" value="account" />
<input type="hidden" name="action" value="<?=$action?>" />
<input type="hidden" name="task" value="<?=$action?>" />
<input type="hidden" name="ref" value="<?=$ref?>" />
<input type="hidden" name="formhash" value="<?=$formhash?>" />
<table width="90%" border="0">
  <tbody>
  <tr>
    <td align="right" width="25%"><?=$lang['username']?></td>
    <td><input class="input" tabindex="1" type="text" name="username" value="<?=$username?>" maxlength="20">
    </td>
  </tr>
  <tr>
    <td align="right"><?=$lang['password']?></td>
    <td><input class="input" tabindex="2" type="password" name="password" maxlength="20"></td>
  </tr>
  <tr>
    <td></td>
    <td><input type="checkbox" id="remember" name="remember" value="1"><label for="remember" title="<?=$lang['warning_remember']?>"><span><?=$lang['remember_me']?></span></label>&nbsp;</td>
  </tr>
  <tr>
    <td></td>
    <td><input class="user_box_btn" type="submit" value="<?=$lang['btn_login']?>">&nbsp;&nbsp;<input type="button" class="user_box_btn" value="<?=$lang['btn_register']?>" onClick="document.location.href='<?=urr("index","item=account&action=register")?>';" /></td>
  </tr>
  </tbody>
</table>
</form>
<script language="javascript">
document.user_form.username.focus();
function chkform(o){
	if(o.username.value.strtrim().length <2){
		alert("<?=$lang['invalid_username']?>");
		o.username.focus();
		return false;
	}
	if(o.password.value.strtrim().length <6){
		alert("<?=$lang['invalid_password']?>");
		o.password.focus();
		return false;
	}
}
</script>
<p>&nbsp;</p></div>
<?php require_once template('circle_box_footer',TPL_NAME);  ?>

<?php }elseif($action =='adminlogin'){ ?>
<?php require_once template('circle_box_header',TPL_NAME);  ?>
<div class="cboxcontent">
<h1><?=$lang['admin_login']?></h1>
<?php 
if(count($sysmsg)>0){
	for($i=0;$i<count($sysmsg);$i++){
 ?>
<li><span>*</span> <?=$sysmsg[$i]?></li>
<?php 
	}
}
unset($sysmsg);
 ?>
<form name="user_form" onSubmit="return chkform(this);" action="<?=urr("index","")?>" method="post">
<input type="hidden" name="item" value="account" />
<input type="hidden" name="action" value="<?=$action?>" />
<input type="hidden" name="task" value="<?=$action?>" />
<input type="hidden" name="ref" value="<?=$ref?>" />
<input type="hidden" name="formhash" value="<?=$formhash?>" />
<table width="90%" border="0">
  <tbody>
  <tr>
    <td align="right" width="25%"><?=$lang['username']?></td>
    <td><input class="input" tabindex="1" type="text" name="username" value="<?=$username?>" maxlength="20">
    </td>
  </tr>
  <tr>
    <td align="right"><?=$lang['password']?></td>
    <td><input class="input" tabindex="2" type="password" name="password" maxlength="20"></td>
  </tr>
  <tr>
    <td></td>
    <td><input class="user_box_btn" type="submit" value="<?=$lang['btn_admin_login']?>"></td>
  </tr>
  </tbody>
</table>
</form>
<script language="javascript">
document.user_form.password.focus();
function chkform(o){
	if(o.username.value.strtrim().length <2){
		alert("<?=$lang['invalid_username']?>");
		o.username.focus();
		return false;
	}
	if(o.password.value.strtrim().length <6){
		alert("<?=$lang['invalid_password']?>");
		o.password.focus();
		return false;
	}
}
</script>
<p>&nbsp;</p></div>
<?php require_once template('circle_box_footer',TPL_NAME);  ?>

<?php }elseif($action =='register' && $settings['allow_register']){ ?>
<?php require_once template('circle_box_header',TPL_NAME);  ?>
<div class="cboxcontent">
<h1><?=$lang['phpdisk_register']?></h1>
<?php 
if(count($sysmsg)>0){
	for($i=0;$i<count($sysmsg);$i++){
 ?>
<li><span>*</span> <?=$sysmsg[$i]?></li>
<?php 
	}
}
unset($sysmsg);
 ?>
<form name="user_form" onSubmit="return chkform(this);" action="<?=urr("index","")?>" method="post">
<input type="hidden" name="item" value="account" />
<input type="hidden" name="action" value="<?=$action?>" />
<input type="hidden" name="task" value="<?=$action?>" />
<input type="hidden" name="formhash" value="<?=$formhash?>" />
<table width="90%" border="0">
  <tbody>
  <tr>
    <td align="right" width="25%"><?=$lang['reg_username']?></td>
    <td><input class="input" tabindex="1" type="text" name="username" value="<?=$username?>" maxlength="20">&nbsp;<span style="color:#FF0000">*</span>
    </td>
  </tr>
  <tr>
    <td align="right"><?=$lang['password']?></td>
    <td><input class="input" tabindex="2" type="password" name="password" maxlength="20">&nbsp;<span style="color:#FF0000">*</span></td>
  </tr>
  <tr>
    <td align="right"><?=$lang['confirm_password']?></td>
    <td><input class="input" tabindex="3" type="password" name="confirm_password" maxlength="20">&nbsp;<span style="color:#FF0000">*</span></td>
  </tr>
  <tr>
    <td align="right"><?=$lang['email']?></td>
    <td><input class="input" tabindex="4" type="text" name="email" value="<?=$email?>" maxlength="50">&nbsp;<span style="color:#FF0000">*</span>
    </td>
  </tr>
  <tr>
    <td></td>
    <td><input type="submit" class="user_box_btn" value="<?=$lang['btn_register']?>"/>&nbsp;&nbsp;<a href="<?=urr("index","item=account&action=login")?>"><?=$lang['already_register']?></a></td>
  </tr>
  </tbody>
</table>
</form>
<script language="javascript">
<?php if($reg_success ==1){ ?>
function go_login(){
	document.location.href = '<?=urr("index","item=account&action=login")?>';
}
setTimeout('go_login();',2000);
<?php } ?>
document.user_form.username.focus();
function chkform(o){
	if(o.username.value.strtrim().length <2){
		alert("<?=$lang['username_too_short']?>");
		o.username.focus();
		return false;
	}
	if(o.password.value.strtrim().length <6){
		alert("<?=$lang['password_too_short']?>");
		o.password.focus();
		return false;
	}
	if(o.confirm_password.value.strtrim() != o.password.value.strtrim()){
		alert("<?=$lang['confirm_password_invalid']?>");
		o.password.focus();
		return false;
	}
	if(o.email.value.strtrim() <6 || o.email.value.strtrim().indexOf('@') ==-1 || o.email.value.strtrim().indexOf('.') ==-1){
		alert("<?=$lang['invalid_email']?>");
		o.email.focus();
		return false;
	}
}
</script>
<p>&nbsp;</p></div>
<?php require_once template('circle_box_footer',TPL_NAME);  ?>

<?php }else{ ?>
<?php require_once PHPDISK_ROOT."modules/front_msg.inc.php"; ?>
<?php } ?>

⌨️ 快捷键说明

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