搜索
首页php教程php手册免费主页管理程序


  
下面的只是一些升级程序、
  /*list.php3*/
  
  session_start();
  require("func.php3");
  connect();
  if (strstr($tpath,".."))
  {echo "
不要试图破坏我的站点";exit;}
  If ($user=='')
  {Header("Location: login.php3");}
  
  echo "====================================
主页空间管理系统2.3====================================
  

主页空间管理系统2.3帮助
  ————
修改用户个人资料————退出登陆
";
  echo "
你好{$user}";
  if ($bf"")
  {
  $date=date(Y).date(m).date(d);
  $backupcommand="e:hubomysqlbinmysqldump --opt -u $user -p{$pass} {$user} >e:homepage\{$user}\{$user}
数据库备份.日期{$date}";
  //echo $backupcommand;
  exec($backupcommand) ;
  echo "
数据库导出成功!
导出文件为:你的主页根目录下:{$user}数据库导出.日期{$date}";
  
  }
  $dbs = mysql_list_dbs();
  $dbcount=mysql_numrows($dbs);
  $flag=0;
  for ($i=0;$i  {
  if ($user==mysql_dbname($dbs, $i))
  {$flag=1;break;}
  }
  if ($flag==0)
  {
  $dbuser=$user;
  $dbpassword=$pass;
  session_register("dbuser");
  session_register("dbpassword");
  echo "
您还没有创建自己的数据库。请点击创建数据库按钮,请不要关掉弹出窗口创建自己的mysql数据库 onclick=window.open("createdb.php3","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=50,height=50,top=40,left=30"); class=no>";
  }
  else
  {echo "
您的数据库已经可以使用,数据库名为{$user},密码为登陆密码,数据库主机为202.106.104.41";
  echo "
数据库导出 class=no>
  数据库导入 class=no onclick=window.open("import.php3","newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=270,height=50");>
  ";
  }
  ?>
  
  
  
  
  
你确认要删除这些目录或者文件吗?"))
  {
  form2.submit();
  }
  }
  //-->
  
  
  
  
  $df = diskfreespace("/");
  $freespace=ceil($df/1024/1024);
  echo "
磁盘剩余空间:{$freespace}M
";
  if ($tpath=="")
  { $path=$basepath; }
  else if ($tpath=="/")
  {
  if ($basepath"/homepage/{$user}")
  {
  $splitpath=explode("/",$basepath);
  for ($i=1;$i  {$path=$path."/{$splitpath[$i]}";}
  }
  else
  {$path="/homepage/$user";}
  
  }
  else
  { $path=$basepath.$tpath; }
  
  if ($stoppath"")
  {$path=$stoppath;}
  if ($directpath"")
  {$path=$directpath;}
  //echo "path={$path}"."
";
  //echo "basepath:$basepath
";
  
  $basepath=$path;
  if (!strstr($basepath,"/homepage/$user"))
  {echo "
你上别人的目录干什么?";exit;}
  session_register("basepath");
  $splitpath=explode("/",$path);
  $newpath="
你的主页";
  for ($i=1;$i  {
  $temppath=$temppath."/{$splitpath[$i]}";
  if ($i==1)
  {$newpath=$newpath;}
  else if ($i==2)
  {$newpath=$newpath."/
根目录";}
  else
  {$newpath=$newpath."/{$splitpath[$i]}";}
  }
  
  echo $newpath."
";
  
  if (!file_exists($path))
  {mkdir($path,0000) or die("
目录创建错误,可能是你的用户名里有非法的字符
请于站长联系");}
  chdir($path);
  $handle = opendir(".");
  
  //
上传文件
  if ($remark=="shangchuan")
  {
  If($file1 != "none")
  {
  $filesize=ceil(filesize($file1)/1024);
  if ($filesize==0)
  {
  $dx=filesize($file1)."byte";
  }
  else
  {$dx=$filesize."K";}
  copy($file1,"{$path}/{$file1_name}");
  if ($unzip=="true")
  {
  $commandstring="echo a | e:/homepage/pkunzip -d e:{$path}/{$file1_name} e:{$path}/";
  $commandstring=strtr($commandstring,"/","\");
  system($commandstring) ;
  $unzipok="
解压成功!";
  $delcommand=strtr("del e:{$path}/{$file1_name}","/","");
  system($delcommand);
  }
  unlink($file1);
  $sqls="update upfile_user set dx=dx+{$filesize} where username='$user'";
  @mysql_query($sqls);
  echo "
文件:".$file1_name."({$dx})";
  if ($unzipok"")
  {echo $unzipok;}
  else
  { echo "
上传成功,可以继续上传";}
  
  
  }
  }
  //
创建目录
  if ($remark=="chuangjian")
  {
  if (!$dir)
  {echo "
创建目录不能为空!";}
  else
  {
  if (!file_exists($dir))
  {
  mkdir($dir,0000);
  echo "
目录{$dir}创建成功";
  }
  else
  {
  echo "
目录{$dir}已经存在";
  }
  }
  }
  //
删除文件和目录
  if ($remark=="del")
  {
  for ($i=1;$i  {
  $check="checkbox".$i;
  if ($$check=="on")
  {
  $del="del".$i;
  
  if (is_dir($$del))
  {rmdir("{$$del}");}
  
  if (is_file($$del))
  {unlink($$del);}
  
  echo "{$$del}
被删除
";
  }
  }
  }
  
  
  while ($file = readdir($handle))
  {
  if (is_dir($file)){$dirlist[]=$file;}
  if (is_file($file)){$filelist[]=$file;}
  }
  closedir($handle);
  ?>
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
文件上传

  
        
  
创建目录

  

  
  上传 name="button1" id="button1" class=no>
  
        
  
  创建" class=no>
  

  
  自动解压zip文件(包括路径)

  >
  

  

  
  
  
  
  
  

  

  
  >
  删除" class=no>
  

  
 

  
  
  
  
  
  
  
  
  
  
  $count=0;
  if ($dirlist)
  {
  asort($dirlist);
  for ($i=0;$i  {
  $count++;
  $filename=$dirlist[$i];
  if ($filename=="abcdefghijk")
  {
  $sqls="update upfile_user set ph=ph+1,ptime=now() where username='$user'";
  @mysql_query($sqls);
  echo "
不要试图破坏我的硬盘。你的登陆已经无效了,你的行为也许是无意的,可是你的行为已经被记录在案。
  
注意,不要到你的目录以上,如果破坏次数超过了10次你的账号将被取消。
";
  $user="";
  session_register("user");
  exit;}
  if ($filename".")
  {
  if ($filename=="..")
  {
  if ($path=="/homepage/{$user}")
  {$tfilename="根目录";$rename=" ";}
  else
  {$filename="
上一级目录";$tfilename="{$filename}";$rename=" ";}
  }
  else
  {$tfilename="{$filename}";$rename="
改名";}
  $filetype="
目录";
  $filesize="
";
  $lasttime=date("Y
mdH:i:s",filectime($dirlist[$i]));
  
  echo "

  
  
  
  
  
  
  
  ";
  }
  }
  }
  if ($filelist)
  {
  $splitpath=explode("/",$path);
  for ($i=3;$i  {
  $temp=$temp."/{$splitpath[$i]}";
  }
  
  
  
  
  asort($filelist);
  for ($i=0;$i  {
  $count++;
  $filename=$filelist[$i];
  $tfilename="{$filename}";
  $filetype=strtolower(substr(($filelist[$i]),-4));
  
  if ($filetype==".txt")
  {$filetype="文本文件";
  $editname="——
手工编辑";
  }
  
  else if ($filetype=="html" || $filetype==".htm")
  {$filetype="
超文本文件";
  $editname="——
手工编辑";
  }
  else if ($filetype==".jpg" || $filetype==".gif")
  {$filetype="
图像文件";
  $editname="";}
  else if ($filetype==".zip" || $filetype==".rar")
  {$filetype="
压缩文件";$editname="";}
  else if ($filetype==".swf" || $filetype==".fla")
  {$filetype="FLASH
文件";$editname="";}
  else if ($filetype==".php" || $filetype==".php3")
  {$filetype="PHP
文件";
  $tfilename=$tfilename."——
手工编辑";
  }
  else if ($filetype==".css")
  {$filetype="
样式表文件";
  $editname="——
手工编辑";
  }
  else if ($filetype==".exe" || $filetype==".com")
  {$filetype="
可执行文件";$editname="";}
  else
  {$filetype="
未知类型";$editname="";}
  $filesize=filesize($filelist[$i]);
  $lasttime=date("Y
mdH:i:s",filectime($filelist[$i]));
  echo "

  
  
  
  
  
  
  
  
  ";
  }
  }
  ?>
  >
  
  
  
  
  
  
  
  
  

  
选定

  

  
文件名

  

  
改名

  

  
文件类型

  

  
文件尺寸

  

  
最后修改日期

  

  

  
  
  

  

  
{$tfilename}

  

  
$rename

  

  
{$filetype}

  

  
{$filesize}

  

  
{$lasttime}

  

  

  
  
  

  

  
{$tfilename}{$editname}

  

  
  

  
{$filetype}

  

  
{$filesize}B

  

  
{$lasttime}

  

  
选定

  

  
文件名

  

  
改名

  

  
文件类型

  

  
文件尺寸

  

  
最后修改日期

  

  

  
  
  if ($gg=="")
  {
  $gg="ok";
  session_register("gg");
  require("gg.html");
  }
  ?>
  
  



声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
1 个月前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
1 个月前By尊渡假赌尊渡假赌尊渡假赌
威尔R.E.P.O.有交叉游戏吗?
1 个月前By尊渡假赌尊渡假赌尊渡假赌

热工具

MinGW - 适用于 Windows 的极简 GNU

MinGW - 适用于 Windows 的极简 GNU

这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

SublimeText3 英文版

SublimeText3 英文版

推荐:为Win版本,支持代码提示!

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。

PhpStorm Mac 版本

PhpStorm Mac 版本

最新(2018.2.1 )专业的PHP集成开发工具