'================================================ ======================================
'= Power by Joshua =
'= -------------------------------------------------------------- =
'= File Summary: basic attributes =
'= -------------------------------------------------------------- =
'= System Version: 1.0 =
'= File version: 1.0 =
'= Text creation date: 2005-3-18 =
'================================================ ======================================
Class cls_baseinfo
Private ini
Public property let name (STR)
Call ini. writenode ("baseinfo", "name", STR)
End Property
Public property get name ()
Name = ini. readnode ("baseinfo", "name ")
End Property
Public property let count (STR)
Call ini. writenode ("baseinfo", "Count", STR)
End Property
Public property get count ()
Count = ini. readnode ("baseinfo", "Count ")
End Property
Public property let filtratestr (STR)
Call ini. writenode ("baseinfo", "filtratestr", STR)
End Property
Public property get filtratestr ()
Filtratestr = ini. readnode ("baseinfo", "filtratestr ")
End Property
Public property let isauditingreview (STR)
Call ini. writenode ("baseinfo", "isauditingreview", STR)
End Property
Public property get isauditingreview ()
Isauditingreview = ini. readnode ("baseinfo", "isauditingreview ")
End Property
Public property let isauditingpage (STR)
Call ini. writenode ("baseinfo", "isauditingpage", STR)
End Property
Public property get isauditingpage ()
Isauditingpage = ini. readnode ("baseinfo", "isauditingpage ")
End Property
Public property let islog (STR)
Call ini. writenode ("baseinfo", "islog", STR)
End Property
Public property get islog ()
Islog = ini. readnode ("baseinfo", "islog ")
End Property
Public property let isreg (STR)
Call ini. writenode ("baseinfo", "isreg", STR)
End Property
Public property get isreg ()
Isreg = ini. readnode ("baseinfo", "isreg ")
End Property
Public property let isauditingreg (STR)
Call ini. writenode ("baseinfo", "isauditingreg", STR)
End Property
Public property get isauditingreg ()
Isauditingreg = ini. readnode ("baseinfo", "isauditingreg ")
End Property
Public property let template_name (STR)
Call ini. writenode ("template", "name", STR)
End Property
Public property get template_name ()
Template_name = ini. readnode ("template", "name ")
End Property
Public property let template_filename (STR)
Call ini. writenode ("template", "FILENAME", STR)
End Property
Public property get template_filename ()
Template_filename = ini. readnode ("template", "FILENAME ")
End Property
'================================================ ==============
'Class initialization
'================================================ ==============
Private sub class_initialize ()
Set ini = new cls_ini
INI. openfile = server. mappath (Path & "non-bin/INI/system. Joshua ")
If not ini. istrue then
INI. Close
Set ini = nothing
Response. Write "system configuration file not found! Check whether the file path is correct! "
Response. End ()
End if
End sub
Public sub save ()
Call ini. Save ()
End sub
Private sub class_terminate ()
INI. Close
Set ini = nothing
End sub
End Class