当前位置: 首页 > 图文教程 > 网络编程 > PHP > 免费主页管理程序2.3(一)

PHP
PHP中的代码安全和SQL Injection防范
PHP数组实例总结及说明
一个php的图片水印的程序
PHP常见漏洞被攻击原因分析
PHP 5.2.8 紧急发布 修复5.2.7严重漏洞
编写安全 PHP 应用程序的七个习惯
PHP中常用的函数库和一些小技巧
PHP安全基础原则与方法
PHP函数速查表
PHP开发语言中的精华和技巧
测试在每个层上对PHP代码进行检查
不同文件构建PHP程序的正确方式
用phpinfo来实现PHP配置统计
更好的构造开发模板 五种常见的PHP设计模式
PHP的十个高级技巧
PHP对文本数据库的基本操作方法
967个函式列表 PHP常用语法速查表
实用:JAVA事件模式下PHP如何实现
针对配置文件 PHP最常用的ini函数
用PHP开发qmail邮件服务器管理系统

PHP 中的 免费主页管理程序2.3(一)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 57 ::
收藏到网摘: n/a

      
  
   免费主页管理程序2.3(一)
  哈哈,原来我在163上有一个备份,为了避免再次丢失,还是把他发布出来保险
  有一些在1.0版本上已经有了,下面的只是一些升级程序、
  /*list.php3*/
  <?
  session_start();
  require("func.php3");
  connect();
  if (strstr($tpath,".."))
  {echo "不要试图破坏我的站点";exit;}
  If ($user=='')
  {Header("Location: login.php3");}
  
  echo "<head><title>====================================主页空间管理系统2.3====================================</title></head>
  <center><a href=sm.html target=_blank>主页空间管理系统2.3帮助</a>
  ————<a href="javascript:ShowWin('xgxxxx.php3')">修改用户个人资料</a>————<a href=logout.php3>退出登陆</a></div></center><br>";
  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 "<font color=red>数据库导出成功!</font><br>导出文件为:你的主页根目录下:{$user}数据库导出.日期{$date}";
  
  }
  $dbs = mysql_list_dbs();
  $dbcount=mysql_numrows($dbs);
  $flag=0;
  for ($i=0;$i<$dbcount;$i++)
  {
  if ($user==mysql_dbname($dbs, $i))
  {$flag=1;break;}
  }
  if ($flag==0)
  {
  $dbuser=$user;
  $dbpassword=$pass;
  session_register("dbuser");
  session_register("dbpassword");
  echo "您还没有创建自己的数据库。请点击创建数据库按钮,请不要关掉弹出窗口<input type=button value=创建自己的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 "<center><form method=post action=list.php3 >您的数据库已经可以使用,数据库名为{$user},密码为登陆密码,数据库主机为202.106.104.41";
  echo "<input type=hidden name=bf value=true><br><input type=submit value=数据库导出 class=no>
  <input type=button value=数据库导入 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");>
  </form></center>";
  }
  ?>
  
  <script language="JavaScript">
  function ShowWin(htmlurl){
  var newwin=window.open(htmlurl,"newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=350,height=500");
  }
  function ShowWin2(htmlurl){
  var newwin=window.open(htmlurl,"newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=250,height=50");
  }
  </script>
  
  <style>
  td{font-size:9pt}
  body{font-size:9pt}
  input { background-color: #FFFFFF; border: 1px #000000 dashed}
  .no { background-color: #D4D0C8}
  .no1 { background-color: #E6F3F7; border-style: none}
  .no2 { background-color: #eeeeee; border-style: none}
  </style>
  <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
  <!--
  
  function button1_onclick()
  {
&