Think Visualizer and expand your options
 
Visualizer Navigator 
   Home | Keep up with the news | The Photo FX tour | Photo FX Bookmark and Share

Go Back   Visualizer Forums > Visualizer Online Learning > Web design and Scripting
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
Old 02-15-2007, 10:29 AM   #1
blu87
Junior Member
 
Join Date: Feb 2007
Posts: 2

Default VIG IP Tracking System problem

I'm trying to get the VIG IP Tracking System to work but I'm having a problem with admin.php. I fill in the username and password but it just keeps displaying the login screen. It won't accept my password. What could I be doing wrong? I did follow the instructions.

Everything else seems to work fine. However, if I put the full URL to the log.dat in my browser's address bar, it will display the contents of log.dat. Is there a way to prevent that?
blu87 is offline   Reply With Quote
Old 02-17-2007, 09:08 PM   #2
CaptainKoala
Senior Member
 
CaptainKoala's Avatar
 
Join Date: Feb 2004
Location: land of the foobar
Posts: 381
Send a message via AIM to CaptainKoala Send a message via MSN to CaptainKoala

my photo blog, by CaptainKoala
Default

The problem with the login prompt is because IP Track was written a while ago. The if clause that asks for login information uses certain superglobals, which are disabled by default in newer versions of PHP. Simply replace line 12 of admin.php with the following:

Code:
if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ! (($_SERVER['PHP_AUTH_USER'] == $LOGIN) && ( $_SERVER['PHP_AUTH_PW'] == "$PASSWORD" )) ) {


To fix the problem with log.dat being opened in a browser, create a file called .htaccess in the IP Track directory, and paste the following into it:

Code:
<Files log.dat> Order Allow,Deny Allow from 127.0.0.1 </Files>


This should clear up your problems for you. If not, yell at me.
__________________
#!/usr/bin/env python

import webbrowser

webbrowser.open('http://www.captainkoala.com/')
# general quackery with a point
CaptainKoala is offline  Live RSS Feed from my photo blog   Reply With Quote
Old 02-26-2007, 07:12 AM   #3
blu87
Junior Member
 
Join Date: Feb 2007
Posts: 2

Default

Quote:
Originally Posted by CaptainKoala
The problem with the login prompt is because IP Track was written a while ago. The if clause that asks for login information uses certain superglobals, which are disabled by default in newer versions of PHP. Simply replace line 12 of admin.php with the following:

Code:
if ( (!isset($_SERVER['PHP_AUTH_USER'])) || ! (($_SERVER['PHP_AUTH_USER'] == $LOGIN) && ( $_SERVER['PHP_AUTH_PW'] == "$PASSWORD" )) ) {



It still doesn't work.

Is there a way to block an IP address without accessing admin.php?
blu87 is offline   Reply With Quote
Old 02-27-2007, 03:17 AM   #4
CaptainKoala
Senior Member
 
CaptainKoala's Avatar
 
Join Date: Feb 2004
Location: land of the foobar
Posts: 381
Send a message via AIM to CaptainKoala Send a message via MSN to CaptainKoala

my photo blog, by CaptainKoala
Default

Hmm. You may wish to try the IP tracking application which I wrote a while back, IPLog. I have just recently begun working on it again, and it might be able to clear up your problems. It requires MySQL.

IPLog page on captainkoala.com

One thing that might help is to know your PHP version, operating system, and browser. If you could provide those, it may help to solve your problems.

If you continue having trouble, feel free to email or IM (AIM: omfgkaleidoscope) me for help.
__________________
#!/usr/bin/env python

import webbrowser

webbrowser.open('http://www.captainkoala.com/')
# general quackery with a point
CaptainKoala is offline  Live RSS Feed from my photo blog   Reply With Quote
Old 03-02-2007, 12:59 PM   #5
Darren
VIG, Project Manager
 
Darren's Avatar
 
Join Date: Aug 2004
Location: US of A
Posts: 1,862

my photo blog, by Darren
Default

I would recommend giving Cpt's a try, as I am not doing anymore updates on this tracker and Cpt regularly updates his IPLog - maybe in the future he will offer a none sql version thats his decision.
__________________
Project manager
Visualizer Image Group


"Don't judge yourself on how far you have come,
It's better to get somewhere than nowhere"
Darren is offline  Live RSS Feed from my photo blog   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 02:42 AM.



Copyright © 2002-2006 Visualizer Image Group.