EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff
Hacker's Home Page
IRC Flash Chat

Training Missions

Read Me First
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra

Knowledge Bank

Discussion Forums
Exploit Database
PasteBin
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Downloads
Tools

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Pimp Us Out!

Review enigmagroup.org on alexa.com

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.

Enigma Group

Enigma Group

Enigma Group

Enigma Group
 

Enigma Group's Code Bank


Hit Counter

By: b0ne^  -  Date Submitted: 2011-10-01 13:21:55

  1. <?php
  2. /* Dobijanje IP adrese */
  3. $http_client_ip = $_SERVER['HTTP_CLIENT_IP'];
  4. $http_x_forwarded_for = $_SERVER['HTTP_X_FORWARDED_FOR'];
  5. $remote_addr = $_SERVER['REMOTE_ADDR'];
  6.  
  7. if (!empty($http_client_ip)) {
  8. $ip_adresa= $http_client_ip;
  9. } else if(!empty($http_x_forwarded_for)) {
  10. $ip_adresa = $http_x_forwarded_for;
  11. } else {
  12. $ip_adresa = $remote_addr;
  13. }
  14.  
  15. $ip_adresa = $_SERVER['REMOTE_ADDR'];
  16. $ip_fajl = file('ip.txt');
  17. foreach($ip_fajl as $ip) {
  18. $ip_bez_razmaka = trim($ip);
  19. if($ip_adresa==$ip_bez_razmaka) {
  20. $ip_nadjen = true;
  21. } else {
  22. $ip_nadjen = false;
  23. }
  24. }
  25. if($ip_nadjen==false) {
  26. $count_fajl = 'count.txt';
  27. $count_otvor = fopen($count_fajl, 'r');
  28. $current_count = fread($count_otvor, filesize($count_fajl));
  29. fclose($count_otvor);
  30.  
  31. $current_count_novi = $current_count + 1;
  32. $otvor_count = fopen($count_fajl, 'w');
  33. fwrite($otvor_count, $current_count_novi);
  34. fclose($otvor_count);
  35.  
  36. $ip_otvor = fopen('ip.txt', 'a');
  37. fwrite($ip_otvor, $ip_adresa."\n");
  38. fclose($ip_otvor);
  39. }
  40. ?>
Return to php category list

Who Visited EnigmaGroup Today?

2091 Guests, 206 Users (167 Spiders)
1412, true, Everhard, Heise, Racoon, redknight99, amone, ASheridan, a.cisco, pollolololo, crocetti, eurosamba, terminator3456, Hachronn, b1nary, Repuhlsive, sam_roth, ahmanxdd, ynot.tr13, MReilly, Glayciez, RichardSl, KC-Cracky, tsepikkei1024, verena, Kennaro, dagocan, KnightOwl, Tro1055, Drea1991, germanlm93, ahmed.abbas, alejocr7sr, xGADOx, t1gr3, themarcus, charon666, miguelds1108, nate255, kerobero, emcpear, MonTty, N0T_, kanamet, eredar87, Nightraven, Squeakbox, Assassin, Nastradamus, OSX312, [psychedelicinsomnia], Ionelywanderer, crater9909, MAsterV, Ethlaron, kikoWicked, Hello_World, graymatter2, ktsukino, theshady, Timoti, Shak3s, HansPeterRules, mrfreem4n, jdavidagudelo, d@rk_m@tter, Eni90, zbert, wayne_cuhk, cl3onis, johnnyching86, d3ad7rack, NWHirschfeld, Swampi, NeulandMerkel, cls, MegamanBitch, st3phn, syst3mf4ilur3, Alpha Et Omega, Nemeziz, graveslider8, Kontra-Que, cve916, bri777, mortizjr, Rakybrabe, MrSnack, miliardo18, FMH_lin@t-online.de, GreeniePie, gravesman, ElOx..!!, kasaji, TasteTheRainbow, Hack!, cox, cvbnm, max1094, macmata, DominicGozy, nobod, whocares12, DerJan, PeterEnis, drofrub, Silvanos75, testdercoole, considerate.poop, Backster, Tom14681, hainze, geogeneration, Ozzilator, slev_n, Cgboal, violentpython, FischKiller, Baru, Zynx, caos1986, statix, orinion77, FroZen2525, iNsaNe744, cleminator, VeryCreativeName, محمد بن حمزة, KaskadekingDE, mmtline, weedstar1989, Conversio, extremfree123er, Thopajo, JanWeezy, Blizer, HeX, try411, roymillar, flo110893, Qwerty123, Andre2222, TheJCprogrammer, Autrui, windindeed, Unlift, Los Conquistador, qpx, mobashua, Ozzyman2, sigret, null, Gregsen, c0re, shizonic, psychomarine, Kmi, synstealth, Halfi, Fabi94, 1apfel7, aton1961, r3zn3t, timebomb2788, miketest, Flick__, UEmh, Soda Cookie, Bregi, WVillasen, worc, Wiggl, fairfax2811, sdforcesa, unholyblood, shokrip, juelzxyo, cor3dump, seichi, sub, DangDiggerty, katrinq, CJ_Omaha, audio-x, Electronyx, mongrel88, Robinterra, RaZhoriZon, TWechsler, Hacker Wolf, Rex_Mundi, Euphoria, derahmed, KlauzWayne, N0S, sebion, [paradox]djell, safak21, frilla, IhabN, Flashiik23, Error00101, jtong, brendodoetho, jl54, JusticeEX
 
Enigma Group