📄 fileset.php
字号:
<?
include('session.php');
include('../function.php');
if (!islogin($_SESSION['username'],$_SESSION['userpass'])||!isadmin($_SESSION['username'],1))
{
echo "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\">";
exit;
if (islogin($_POST['workername'],$_POST['workerpass'])&&isadmin($_POST['workername'],1))
{
$_SESSION['username']=$_POST['workername'];
$_SESSION['userpass']=$_POST['workerpass'];
setcookie("PHPSESSID",session_id());
$accept=true;
}
else $url="../template/welcome.php";
}
else $accept=true;
//echo $_POST['workername'].$_POST['workerpass']."<BR>";
//echo $_SESSION['username'].$_SESSION['userpass'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>个人文件夹大小</title>
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#F3F7FC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" class="table_kuang">
<tr>
<td height="16" background="../images/midl.jpg"> </td>
</tr>
<tr>
<td height="38">个人文件夹参数设置</td>
</tr>
<tr>
<td height="26" class="tian4"><form name="form1" method="post" action="">
<table width="400" border="0" cellspacing="0" cellpadding="0" class="table_kuang">
<tr>
<td class="tian4">每个人文件的容量
<?
if($accept&&$_POST[set])
{
$num="filelimit";
$file=@fopen($num,"w");
if(!@fwrite($file,$_POST[filelimit]))
echo "写入失败,请保证adimn中filelimit属性为可读写";
else echo"修改成功 文件夹大小为$_POST[filelimit], 可以<a href=\"#\" onclick=\"window.close()\"><关闭窗口></a>";
}
$num="filelimit";
$file=@fopen($num,"r");
$all=@fread($file,filesize($num));
@fclose($file);
?>
<input name="filelimit" type="text" id="filelimit" value="<? echo $all; ?>" size="8">
K
<input type="submit" name="Submit" value="更改"> <input name="set" type="hidden" id="set" value="true"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -