/****** 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;