home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
IPADMGR.ZIP
/
SOURCE.ZIP
/
TROUBLE.PRG
< prev
next >
Wrap
Text File
|
1995-12-12
|
5KB
|
161 lines
*:*****************************************************************************
*:
*: Program: D:\IPADMGR\SOURCE\TROUBLE.PRG
*:
*: System: IPADEDIT
*: Author: Jeff Johnson
*: Copyright (c) 1996, BBS Consultants, Inc.
*: Last modified: 12/12/95 9:40
*:
*: Called by: IPADEDIT.PRG
*:
*: Uses: IPADCFG.DBF
*: : TRASHCAN.DBF
*: : IPADFEES.DBF
*: : STATS.DBF
*: : IPADMGR.DBF
*:
*: Indexes: TRASHCAN.NX1
*: : TRASHCAN.NX2
*: : STATS.NX1
*: : IPADMGR.NX1
*: : IPADMGR.NX2
*: : IPADMGR.NX3
*: : IPADMGR.NX4
*: : IPADMGR.NX5
*: : IPADMGR.NX6
*:
*: Other Files: TEMP.MSG
*:
*: Documented 10/01/96 at 13:17 SNAP! version 5.02
*:*****************************************************************************
SELECT 2
IF .NOT. Empty(Message)
FCREATE fo temp.msg 13
FOPEN fo temp.msg 13
STORE "F:Ipad Manager " + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "T:jeff.johnson@rockbbs.com" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "S:Ipad Manager Transmission" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "P:" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "W:" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "Transmission of data " + Version + " on " + Dtoc(Date()) + " at " + Time() + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "Dns name: " + dns + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "Key name: " + serv_name + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "Logon name of person transmitting data : " + Rtrim(Uname()) + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE "Database: Ipadcfg.dbf" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE 1 TO COUNT
DO WHILE .T.
STORE "Field(" + Ltrim(Str(COUNT,3)) + ")" TO Field
IF .NOT. Empty(&field)
STORE Str(COUNT,3) + " " + &field + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE COUNT + 1 TO COUNT
LOOP
ELSE
EXIT
ENDIF
ENDDO
SELECT 1
STORE "Database: Ipadmgr.dbf" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE 1 TO COUNT
DO WHILE .T.
STORE "Field(" + Ltrim(Str(COUNT,3)) + ")" TO Field
IF .NOT. Empty(&field)
STORE Str(COUNT,3) + " " + &field + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE COUNT + 1 TO COUNT
LOOP
ELSE
EXIT
ENDIF
ENDDO
SELECT 3
STORE "Database: Ipadfees.dbf" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE 1 TO COUNT
DO WHILE .T.
STORE "Field(" + Ltrim(Str(COUNT,3)) + ")" TO Field
IF .NOT. Empty(&field)
STORE Str(COUNT,3) + " " + &field + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE COUNT + 1 TO COUNT
LOOP
ELSE
EXIT
ENDIF
ENDDO
SELECT 4
STORE "Database: Trashcan.dbf" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE 1 TO COUNT
DO WHILE .T.
STORE "Field(" + Ltrim(Str(COUNT,3)) + ")" TO Field
IF .NOT. Empty(&field)
STORE Str(COUNT,3) + " " + &field + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE COUNT + 1 TO COUNT
LOOP
ELSE
EXIT
ENDIF
ENDDO
SELECT 5
STORE "Database: Stats.dbf" + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE 1 TO COUNT
DO WHILE .T.
STORE "Field(" + Ltrim(Str(COUNT,3)) + ")" TO Field
IF .NOT. Empty(&field)
STORE Str(COUNT,3) + " " + &field + Chr(13) + Chr(10) TO line
FLWRITE fo size line
STORE COUNT + 1 TO COUNT
LOOP
ELSE
EXIT
ENDIF
ENDDO
FCLOSE fo
SELECT 2
STORE Rtrim(Message) + " /C:" + Homepath() + "Temp.msg" TO mvar
DOTBBS Type 7 Optdata "&Mvar"
ERASE temp.msg
SELECT 2
USE ipadcfg
STORE Ltrim(Rtrim(slipusers)) TO slip_path
STORE Ltrim(Rtrim(ftpusers)) TO ftp_path
STORE Ltrim(Rtrim(popusers)) TO pop_path
STORE Ltrim(Rtrim(popheader)) TO header
STORE Ltrim(Rtrim(popmails)) TO mpop_dir
STORE Ltrim(Rtrim(logfile)) TO clog
IF Right(mpop_dir,1) = "\"
ELSE
STORE Ltrim(Rtrim(popmails)) + "\" TO mpop_dir
ENDIF
STORE Ltrim(Rtrim(dns)) TO domain
STORE exp_days TO expire
STORE force_bill TO mforce
SELECT 4
USE trashcan INDEX trashcan.nx1, trashcan.nx2
SELECT 3
USE ipadfees
SELECT 5
USE stats INDEX stats.nx1
SELECT 1
USE ipadmgr INDEX ipadmgr.nx1, ipadmgr.nx2, ipadmgr.nx3, ipadmgr.nx4, ipadmgr.nx5, ipadmgr.nx6
ENDIF
RETURN
*: EOF: TROUBLE.PRG