Jump to content

Blackwar

Member
  • Posts

    518
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by Blackwar

  1. Hey, i just wrote a small script that allows you to log access to your site ( as long as main page is php-based) here is a screenshot of how it logs the ips : http://blackwar2.netfirms.com/iplogger.jpg If you just want the php script: the code is , <?php $date = date("F d , l , Y - H:i:s"); $fp = fopen("D:/localhost/log/ip.txt", "a+"); $host = gethostbyaddr("$REMOTE_ADDR"); $dns = gethostbyname ($host); $log = "At $date , \n \n * Host: $host , \n \n * IP: $dns ,\n \n * Browser: $HTTP_USER_AGENT"; @fwrite($fp, "$log \n\n ----------------------------------------------------------------------------------- \n\n"); @fclose($fp); ?> change the $fp = fopen("D:/localhost/log/ip.txt", "a+"); value to the exact path of your text file. If you just want to restrict access to everyone, like i do on my local server, and tell them that their ip is logged, and to log their ip, use this code : <?php $date = date("F d , l , Y - H:i:s"); $fp = fopen("D:/localhost/log/ip.txt", "a+"); $host = gethostbyaddr("$REMOTE_ADDR"); $dns = gethostbyname ($host); $log = "At $date , \n \n * Host: $host , \n \n * IP: $dns ,\n \n * Browser: $HTTP_USER_AGENT"; @fwrite($fp, "$log \n\n ----------------------------------------------------------------------------------- \n\n"); @fclose($fp); ?> <html> <head> <title>Blackwar's private server</title> </head> <body> <font face="Verdana"><i>Your IP has been logged, <br> <br> If you get out now, no action will be taken against you. This is a private server and you are not allowed in here. <br> <br> <p align="right"> --Blackwar</p> </i> </font> </body> </html> change the $fp = fopen("D:/localhost/log/ip.txt", "a+"); value to the exact path of your text file. Also edit the other html values as you want which are currently set as my example to show you where to put what Enjoy, Blackwar
  2. Hey, i wrote a php script so that you will be able to see your ip, host and browser information in one place if ever needed.. I know it soudns kind of silly, but no kidding, there are times you need to check what your browser is identifying as etc etc... ANY VISIT TO B.I.R.S is NOT logged in any way, no ips, browsers or hosts, basically nothing **You can visit BIRS here : http://www.timdorr.com/~blackwar/birs.php ** And here is the PHP source code if anyone is interested : <?php $date = date("Y-F-l - H:i:s"); $host = gethostbyaddr("$REMOTE_ADDR"); $dns = gethostbyname ($host); $browser = $_SERVER["HTTP_USER_AGENT"]; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Blackwar's Info Revealing Services ( - BIRS - )</title> </head> <body background="/~blackwar/aimg/lines.gif"> <font size="7" face="Impact" color="#FFFFFF"> - BIRS - </font> <br><br><br> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td width="50%" bgcolor="#808080"><b> YOUR HOST :</b></td> <td width="50%" bgcolor="#C0C0C0" align="center"><? echo $host ?></td> </tr> <tr> <td width="50%" bgcolor="#808080"><b> YOUR IP ADDRESS : </b></td> <td width="50%" bgcolor="#C0C0C0" align="center"><? echo $dns ?></td> </tr> <tr> <td width="50%" bgcolor="#808080"><b>YOUR BROWSER : </b></td> <td width="50%" bgcolor="#C0C0C0" align="center"><? echo $browser ?></td> </tr> <tr> <td width="50%" bgcolor="#808080"><b> DATE : </b></td> <td width="50%" bgcolor="#C0C0C0" align="center"><? echo $date ?></td> </tr> </table> </body> </html> </body> Blackwar
  3. Hey everyone, i decided to make one large thread and post all my php scripts in here except on seperate threads Blackwar
  4. Thanks man I am trying to write something larger with php but i couldn't succeed so far.. I can't see how they did boards like invision from scratch with PHP It is just too much work maybe my next php code will exceed 10 lines
  5. this happens to me every once in a while too, but when i refresh its gone, so it doesn't bother me so much
  6. lmao, this was a hilarious read especially the part where it says You leave the workplace rather messy at the end of your shift. lol good find man
  7. Hey, i just wrote a small script that allows you to log access to your site ( as long as main page is php-based) here is a screenshot of how it logs the ips : http://blackwar2.netfirms.com/iplogger.jpg If you just want the php script: the code is , <?php $date = date("F d , l , Y - H:i:s"); $fp = fopen("D:/localhost/log/ip.txt", "a+"); $host = gethostbyaddr("$REMOTE_ADDR"); $dns = gethostbyname ($host); $log = "At $date , \n \n * Host: $host , \n \n * IP: $dns ,\n \n * Browser: $HTTP_USER_AGENT"; @fwrite($fp, "$log \n\n ----------------------------------------------------------------------------------- \n\n"); @fclose($fp); ?> change the $fp = fopen("D:/localhost/log/ip.txt", "a+"); value to the exact path of your text file. If you just want to restrict access to everyone, like i do on my local server, and tell them that their ip is logged, and to log their ip, use this code : <?php $date = date("F d , l , Y - H:i:s"); $fp = fopen("D:/localhost/log/ip.txt", "a+"); $host = gethostbyaddr("$REMOTE_ADDR"); $dns = gethostbyname ($host); $log = "At $date , \n \n * Host: $host , \n \n * IP: $dns ,\n \n * Browser: $HTTP_USER_AGENT"; @fwrite($fp, "$log \n\n ----------------------------------------------------------------------------------- \n\n"); @fclose($fp); ?> <html> <head> <title>Blackwar's private server</title> </head> <body> <font face="Verdana"><i>Your IP has been logged, <br> <br> If you get out now, no action will be taken against you. This is a private server and you are not allowed in here. <br> <br> <p align="right"> --Blackwar</p> </i> </font> </body> </html> change the $fp = fopen("D:/localhost/log/ip.txt", "a+"); value to the exact path of your text file. Also edit the other html values as you want which are currently set as my example to show you where to put what Enjoy, Blackwar
  8. oh wait.. i think you remember a little incorrectly, there is no option to set as a background when you just the file name You get the option to set it as a background once you open the file and then right click on the image from there.. I mean at least i don't get an option to set it as a background when i right click on an image.. I do after i open the image and right click on it in "Windows Picture and Fax Viewer" Hope this helps Blackwar
  9. ohh.. now i see what you mean... what you need to do to fix that is, right click on My Computer > Properties > Advanced tab > under "Performance" click Settings > check the box next to "Use Common Tasks in folders" then click OK and OK again.. now it should be back.. hope i helped, Blackwar
  10. i am assuming that you are using Internet Explorer... This can't happen by itself tho.. it may only happen if you hacked any of the dll's critical for Internet explorer's operation.. I can't think anything other than that pretty weird
  11. lol piaqt btw, nice joke, i wish i get to live that long lets see
  12. one pound is about $1.60 - $1.75 and at about $25, i say your mouse was a pretty good deal
  13. i say return it in if you can and get a new one, something like US Robotics.. they are the best in creating modems And they are least likely to cause you problems... Blackwar
  14. wow, looks pretty nice good job Blackwar
  15. i don't think you can manipulate them, but how you view which of your ports are in use is, you go to Start > Run > type in cmd , and then in the command prompt, type this " netstat -a " (without the quotes) and it should show all current connections Blackwar
  16. glad to hear its working fine for you now
  17. Yeah, it looks a little weird, but sure here it is : Blackwar
  18. here are the 2 ones i made : without binary bg : with binary bg : PSD file : http://blackwar2.netfirms.com/wclogo.psd (right click and Select "Save target as...") Hope i helped Blackwar
  19. 25mm x 25mm is very small man its like a bit bigger than a dot
  20. Blackwar

    Bedroom Joke

    lmao that one cracked me up
  21. Well, i occasionally use yahoo for Mail and for following FifaWorldCup As a search engine i usually use Google or Dogpile but i still can't wait to see what yahoo has to come up with, cuz it should be good.. Hasn't change for a couple years now can they beat google's search engine with the simpleness of their page.. lets see
  22. hm, that is weird... you should be able to do it thru your phpmyadmin, on the first page you see.. here is a screenshot of what i mean http://blackwar2.netfirms.com/pmass.jpg hope this helps out a bit...
  23. just as i thought... jay, if possible, can you cut a little from either end of the logo to make ir smaller than the whole table is? so that it resizes depending on the resolution of the user? it is going to need to fit with the background of the original table bg which is basically the gradient on the top of every make, kind of from dark blue to light blue... I think this would make it a lot easier on our low resolution viewers
×
×
  • Create New...