Jump to content

More Help with Xprotec


Recommended Posts

I'm in the process of testing the Blacklist functionality.

1. I placed Blacklist.txt on my server at www.myserver.com/protect/Blacklist.txt

2. Made sure I can bring the file up in IE

3. D_Link is changed to above.

4. Confirmed 003 in the registry has the email address I used.

5. I then place the same email in the Blacklist file.

Looks like the online file isn't being read or the temp file isn't being written (Guessing)

I placed a msgbox to show variables and

CODE

MsgBox(0,"@Temp",$rtemp) ; I'm unable to locate file in directory

$thelist=InetGet($D_Link & "Blacklist.txt", $rtemp,1)

MsgBox(0,"Thelist",$thelist) ; Always 0

If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Then

$itemp = FileRead($rtemp)

;FileDelete($rtemp)

MsgBox(0,"itemp",$itemp) ; Nothing comes up

If StringInStr($itemp, $X_read003) Or StringInStr($itemp, $ND_Mail) Then mError("This program has been abused and will now close ", 6, 1)

EndIf

Any clues where the problem is?

Link to comment
Share on other sites

use this

D_Link = "www.myserver.com/protect/"

XProtec adds the "blacklist.txt" part

If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Then

hope that helps

8)

I did this and I'm still not getting the Blacklist check.

The program seems to not go into the following if statement.

Because I get Marker0 but not Marker1 - This is why I'm thinking

CODE
MsgBox(0,"Marker0","Marker0 Here")

If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Then

$itemp = FileRead($rtemp)

MsgBox(0,"Marker1","Marker1 Here")

FileDelete($rtemp)

If StringInStr($itemp, $X_read003) Or StringInStr($itemp, $ND_Mail) Then mError("This program has been abused and will now close ", 6, 1)

EndIf

What can I do

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...