ASP design and use Class 4

Source: Internet
Author: User
'================================================ ======================================
'= 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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.