Post by Ensui on Feb 27, 2005 20:31:40 GMT
Things you'll need:
[/li][li]A host that supports PHP
[/li][li]A FTP program with the abilility to CHMOD
First off,save this as iplogger.php and upload it code to your host:
Second,create a blank txt file and name it logs.txt and then upload it to your host and then CHMOD the logs.txt file to 777.
Now for the js.
Place this in your main footer.
Just change where it says TXT FILE HERE to the url of the txt file you uploaded.
Then place this in all footers including main.
Change where it says URL TO PHP FILE to the url of the iplogger php file you uploaded before.
And then you're done
Previews:
gamezone.shadowworldx.com/scripts/preview1.JPG
Cross-Browser
[/li][li]A host that supports PHP
[/li][li]A FTP program with the abilility to CHMOD
First off,save this as iplogger.php and upload it code to your host:
<?php
/*
IP Logger v1.0 for PB(PHP Section)
Created by Infection X
http://gzoneforums.proboards38.com/index.cgi
*/
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l, dS F Y");
$time = date("h:i ");
$logs = "\r\n$ip - $date $time";
$logsfile = "logs.txt";
$handle = fopen($logsfile, "a");
fwrite($handle, $logs);
fclose($handle);
?>
Second,create a blank txt file and name it logs.txt and then upload it to your host and then CHMOD the logs.txt file to 777.
Now for the js.
Place this in your main footer.
<script type="text/javascript">
/*
IP Logger v1.0 for PB(JS Section)
Created by Infection X
http://gzoneforums.proboards38.com/index.cgi
*/
function iplogs(){window.open("TXT FILE HERE","","width=650,height=420,scrollbars=yes");
}
if(location.href.indexOf('action=admin') != -1){
var TD = document.getElementsByTagName('TD');
for(t=0;t<TD.length;t++){
if(TD[t].width=='50%' && TD[t].vAlign=='top' && TD[t].innerHTML.match(/Edit Member Groups/i)){
TD[t].innerHTML = TD[t].innerHTML.replace(/Edit Member Groups/ig,'Edit Member Groups</a><br\><a href=javascript:iplogs()>View IP Logs</a>');
}}}
</script>
Just change where it says TXT FILE HERE to the url of the txt file you uploaded.
Then place this in all footers including main.
<script src="URL TO PHP FILE"></script>
Change where it says URL TO PHP FILE to the url of the iplogger php file you uploaded before.
And then you're done
Previews:
gamezone.shadowworldx.com/scripts/preview1.JPG
Cross-Browser