Sign in to follow this  
Followers 0
Steve1040

More Help with Xprotec

5 posts in this topic

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?

Share this post


Link to post
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)


NEWHeader1.png

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I Found the problem

I replaced:

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

with this:

CODE
D_Link = "http://www.myserver.com/protect/"

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I Found the problem

I replaced:

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

with this:

D_Link = "http://www.myserver.com/protect/"
Great!!

sorry I hadn't checked on this for a while, but I will remember the solution

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
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
Sign in to follow this  
Followers 0