Steve1040 Posted October 27, 2007 Posted October 27, 2007 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?
Valuater Posted October 27, 2007 Posted October 27, 2007 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)
Steve1040 Posted October 28, 2007 Author Posted October 28, 2007 use this D_Link = "www.myserver.com/protect/"XProtec adds the "blacklist.txt" part If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Thenhope that helps8)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 CODEMsgBox(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) EndIfWhat can I do
Steve1040 Posted October 28, 2007 Author Posted October 28, 2007 I Found the problem I replaced: CODED_Link = "www.myserver.com/protect/" with this: CODED_Link = "http://www.myserver.com/protect/"
Valuater Posted October 30, 2007 Posted October 30, 2007 (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 October 30, 2007 by Valuater
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now