/****** object: database host script date: 2004-12-24 13:16:31 ******/ if exists (select name from master.dbo.sysdatabases where name = n'host') drop database [host] go
exec sp_dboption n'host', n'autoclose', n'false' go
exec sp_dboption n'host', n'bulkcopy', n'false' go
exec sp_dboption n'host', n'trunc. log', n'false' go
exec sp_dboption n'host', n'torn page detection', n'true' go
exec sp_dboption n'host', n'read only', n'false' go
exec sp_dboption n'host', n'dbo use', n'false' go
exec sp_dboption n'host', n'single', n'false' go
exec sp_dboption n'host', n'autoshrink', n'false' go
exec sp_dboption n'host', n'ansi null default', n'false' go
exec sp_dboption n'host', n'recursive triggers', n'false' go
exec sp_dboption n'host', n'ansi nulls', n'false' go
exec sp_dboption n'host', n'concat null yields null', n'false' go
exec sp_dboption n'host', n'cursor close on commit', n'false' go
exec sp_dboption n'host', n'default to local cursor', n'false' go
exec sp_dboption n'host', n'quoted identifier', n'false' go
exec sp_dboption n'host', n'ansi warnings', n'false' go
exec sp_dboption n'host', n'auto create statistics', n'true' go
exec sp_dboption n'host', n'auto update statistics', n'true' go
use [host] go
/****** object: table [dbo].[groupaccess] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[groupaccess]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[groupaccess] go
/****** object: table [dbo].[groupaccounts] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[groupaccounts]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[groupaccounts] go
/****** object: table [dbo].[groupipaccess] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[groupipaccess]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[groupipaccess] go
/****** object: table [dbo].[useraccess] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[useraccess]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[useraccess] go
/****** object: table [dbo].[useraccounts] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[useraccounts]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[useraccounts] go
/****** object: table [dbo].[useripaccess] script date: 2004-12-24 13:16:31 ******/ if exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[useripaccess]') and objectproperty(id, n'isusertable') = 1) drop table [dbo].[useripaccess] go
using system; using system.web.security; using system.configuration; using system.data; using system.data.sqlclient;
namespace host { /// <summary> /// ftp 的摘要说明。 /// </summary> public class ftp { private sqlconnection conhost;
public string username;//用户名 public string password;//密码 public bool disable;//禁用帐号 true:禁用帐号 false:启用帐号 public string access;//目录/ip访问规则 public byte passtype;//密码类型 0:规则密码 1:otp s/key md4 2:otp s/key md5 public bool changepass;//允许修改密码 true:允许 false:禁止 public datetime expiration;//过期时间 public byte expirationtype;//过期类型 1:删除 2:禁用 public string skey; public bool relpaths;//需要安全连接 true:需要 false:不需要 public string homedir;//主目录 public string messagefile;//消息文件 public int maxusers;//最大用户数 public int maxup;//最大上传速率 public int maxdown;//最大下载速率 public byte ratiotype;//比率类型 public int ratioup;//上传率 public int ratiodown;//下载率 public float ratiocredit;//比率信任 public bool quotaenable;//允许配额 true:允许 false:禁止 public int quotamax;//最大配额 public int quotacurrent;//当前配额 public string groups;//用户组 public byte privilege;//管理权限 0:没有权限 1:系统管理员 2:组管理员 3:域管理员 4:只读管理员 public bool lockhomedir;//锁定于主目录 true:锁定 false:不锁定
using system; using system.collections; using system.componentmodel; using system.data; using system.drawing; using system.web; using system.web.sessionstate; using system.web.ui; using system.web.ui.webcontrols; using system.web.ui.htmlcontrols; using system.web.security;
namespace host { /// <summary> /// webform1 的摘要说明。 /// </summary> public class webform1 : system.web.ui.page { protected system.web.ui.webcontrols.label label1;