Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
PHP.SU ::

 PHP.SU

PHP, MySQL -
PHP.SU                                      


  (2): [1] 2 »   

> 
Jampire
: 31 , 2011 - 14:40:09
Post Id







: 106
-: 2011  


: 0 ()




( )))
PHP:

  1. <?    
  2. $ip=$_GET['ip'];  
  3. $down='failed.png';  
  4. $img_online='online.png';  
  5. $img_offline='offline.png';
  6. if (!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/',$ip)) {readfile($down); exit;}    
  7. exec("ping -n 1 -w 200 $ip",$output, $status);  
  8. header('Content-type: image/png');  
  9. $dest_img = imagecreatetruecolor($w, $h);
  10. if ($status==0) {
  11.         $src_img = @imagecreatefrompng($img_online);
  12.         $txt = 'Online';
  13. } else {
  14.         $src_img = @imagecreatefrompng($img_offline);
  15.         $txt = 'Offline';
  16. }
  17.  
  18. imagecopyresampled($dest_img, $src_img,0,0,0,0, $width, $height, $width, $height); // $width, $height $src_img
  19. $textcolor = imagecolorallocate($src_img, 0, 0, 0);
  20. imagestring($src_img, 2, 1, 1, $txt, $textcolor);
  21. imagepng($src_img);
  22. imagedestroy($dest_img);
  23. imagedestroy($src_img);
  24. ?>

, IP, online = , offline = , .

:
CODE (html):

  1. <img src='ping.php?ip=192.168.205.133'>

( : 31 , 2011 - 19:38:59)



-----
!!! ...
 
 Top
Jampire
: 02 , 2011 - 12:17:33
Post Id







: 106
-: 2011  


: 0 ()






-----
!!! ...
 
 Top
Jampire
: 07 , 2011 - 21:58:22
Post Id







: 106
-: 2011  


: 0 ()




.... ...


-----
!!! ...
 
 Top
movEAX
: 07 , 2011 - 22:11:09
Post Id







: 750
-: . 2009  


: 16 ()




?


-----
..
 
 Top
Jampire
: 07 , 2011 - 23:25:45
Post Id







: 106
-: 2011  


: 0 ()




(


()


? -

( : 13 , 2011 - 19:29:24)



-----
!!! ...
 
 Top
DeepVarvar
: 08 , 2011 - 00:21:44
Post Id







: 10377
-: . 2008  
:


: 353 ()




, *.png .


-----
? ?
 
 Top
Jampire
: 08 , 2011 - 17:56:25
Post Id







: 106
-: 2011  


: 0 ()




DeepVarvar, . - ...


-----
!!! ...
 
 Top
Jampire
: 09 , 2011 - 19:08:46
Post Id







: 106
-: 2011  


: 0 ()






-----
!!! ...
 
 Top
Jampire
: 11 , 2011 - 21:03:29
Post Id







: 106
-: 2011  


: 0 ()






-----
!!! ...
 
 Top
Jampire
: 13 , 2011 - 19:25:09
Post Id







: 106
-: 2011  


: 0 ()




((


-----
!!! ...
 
 Top
EuGen
: 13 , 2011 - 19:27:48
Post Id






: 9095
-: 2007  
: Berlin


: 707 ()




, ,


-----
- . .. .
 
 Top
Jampire
: 13 , 2011 - 19:29:57
Post Id







: 106
-: 2011  


: 0 ()




. :
()

.

- IP, ( $ip) , - online / offline.
1 .

( : 13 , 2011 - 19:40:40)



-----
!!! ...
 
 Top
EuGen
: 13 , 2011 - 19:41:41
Post Id






: 9095
-: 2007  
: Berlin


: 707 ()




.. . - . , .


-----
- . .. .
 
 Top
Jampire
: 13 , 2011 - 19:49:13
Post Id







: 106
-: 2011  


: 0 ()




EuGen . .


-----
!!! ...
 
 Top
EuGen
: 13 , 2011 - 19:54:55
Post Id






: 9095
-: 2007  
: Berlin


: 707 ()




? ?


-----
- . .. .
 
 Top
(2): [1] 2 »
: 0 (: 0, : 0)
« , »


.
.
.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB