PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38937
Šiandien: 14
Prisijungę nariai
» Svečių: 28
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux13:09:47
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v7 Counter strike server list
Itg
#1 Spausdinti pranešimą
parašyta 2009-11-06 18:54
Naujokas



Reputacija: 0

Pranešimai: 19
Įstojo: 2009-09-25

Man iskilo probelemu su counterstrike server listu, kai idedi serva i server status nerodo paveiksleliu, o i server list net nezinau kaip idet servus nes nemanau kad tai veikia tai galite pamatyt cia:
http://potzo.puslapiai.lt/index.php

Galincius padeti rasykit i skype:tomykas26
 
PM
N3rukant1S
#2 Spausdinti pranešimą
parašyta 2009-11-06 18:57
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 27
Įstojo: 2009-06-10

Pasiredaguok
350x20.php
460x80.php
120x60.php
inf.php
man rodos kaip ir viskas.
END.LT
 
PM
Itg
#3 Spausdinti pranešimą
parašyta 2009-11-06 19:06
Naujokas



Reputacija: 0

Pranešimai: 19
Įstojo: 2009-09-25

Net neisivaizduoja ka cia koreguot, siaip galiu idet visa ta moda kuri naudoju

120x60 tai:
Download source  Code
$image = ImageCreateFromGIF(\"statusiukas.gif\");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$ip = $_GET['ipas'];
$port = $_GET['portas'];
$a = \":\";
$packet = \"\xFF\xFF\xFF\xFFTSource Engine Query\x00\";
        
      
       function getnextstring(&$data)
    {
       $temp=\"\";
       $counter=0;
       while (ord($data[$counter++])!=0) $temp.=$data[$counter-1];
       $data=substr($data,strlen($temp)+1);
       return $temp;
   }
   function getnextbytevalue(&$data)
   {
     $temp=ord($data[0]);
     $data=substr($data,1);
     return $temp;
   }
   
        if(!$live_server = fsockopen(\"udp://\".$ip,$port))
       {
        $output = \"Off\";
      }
       else
       {
        fwrite($live_server, $packet);
        socket_set_timeout($live_server,1,0);
        $junk = fread($live_server,5);
        $status = socket_get_status($live_server);
        $do = 1;
        $server_info= \"\";
         
         while($do)
         {
           $str_1 = fread($live_server,1);
           $server_info .= $str_1;
           $status = socket_get_status($live_server);
           if($status[\"unread_bytes\"] == 0) {$do = 0;}
         }
        fclose($live_server);
         
        if (strlen($server_info) > 0)
        {
          $success = 1;
         $junk = getnextstring($server_info);
         $servername = getnextstring($server_info);
         $map = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $players = getnextbytevalue($server_info);
         $maxplayers = getnextbytevalue($server_info);
         }
         if ($players != \"\")
         {
          $players = $players;
         }
         else
         {
          $players = \"0\";
         }
         if ($maxplayers != \"\")
         {
          $maxplayers = $maxplayers;
         }
         else
         {
          $maxplayers = \"0\";
         }
         if ($players < $maxplayers)
         {
          $output = \"On\";
         }
             
        else
        {
          $output = \"Full\";
        }
        if ($output != \"Full\" and $players != \"0\" or $maxplayers != \"0\")
        {
          $output = $output;
        }
        else
        {
          $output = \"Off\";
        }
        if ($map != \"\")
         {
          $map = $map;
         }
         else
         {
          $map = \"nera\";
         }
      }
         
   


$font = 'comic.ttf';
$fontSize = \"8\";
$fontSize2 = \"15\";
$fontRotation = \"0\";
$str = \"Example of GD in PHP.    Date: \" . date(\"m-j-Y  g:i:s (a)\");
$infos = \"$ip\";
$infos2 = \"$players/$maxplayers\";
$infos3 = \"is $output\";
/* Shadow */
ImageTTFText($image, $fontSize, $fontRotation, 7, 17, $colorShadow, $font, $map);

/* Top Level */
ImageTTFText($image, $fontSize, $fontRotation, 5, 15, $color, $font, $map);
ImageTTFText($image, $fontSize, $fontRotation, 5, 35, $color, $font, $infos2);
ImageTTFText($image, $fontSize, $fontRotation, 7, 37, $colorShadow, $font, $infos2);
ImageTTFText($image, $fontSize, $fontRotation, 5, 55, $color, $font, $ip);
ImageTTFText($image, $fontSize, $fontRotation, 7, 57, $colorShadow, $font, $ip);

/* Top Level */
header(\"Content-Type: image/GIF\");
ImagePng ($image);
imagedestroy($image);
?>



____________________________________________________________________

380x26 tai:
Download source  Code
$image = ImageCreateFromPNG(\"statusas.png\");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$ip = $_GET['ipas'];
$port = $_GET['portas'];
$a = \":\";
$packet = \"\xFF\xFF\xFF\xFFTSource Engine Query\x00\";
        
      
       function getnextstring(&$data)
    {
       $temp=\"\";
       $counter=0;
       while (ord($data[$counter++])!=0) $temp.=$data[$counter-1];
       $data=substr($data,strlen($temp)+1);
       return $temp;
   }
   function getnextbytevalue(&$data)
   {
     $temp=ord($data[0]);
     $data=substr($data,1);
     return $temp;
   }
   
        if(!$live_server = fsockopen(\"udp://\".$ip,$port))
       {
        $output = \"Off\";
      }
       else
       {
        fwrite($live_server, $packet);
        socket_set_timeout($live_server,1,0);
        $junk = fread($live_server,5);
        $status = socket_get_status($live_server);
        $do = 1;
        $server_info= \"\";
         
         while($do)
         {
           $str_1 = fread($live_server,1);
           $server_info .= $str_1;
           $status = socket_get_status($live_server);
           if($status[\"unread_bytes\"] == 0) {$do = 0;}
         }
        fclose($live_server);
         
        if (strlen($server_info) > 0)
        {
          $success = 1;
         $junk = getnextstring($server_info);
         $servername = getnextstring($server_info);
         $map = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $players = getnextbytevalue($server_info);
         $maxplayers = getnextbytevalue($server_info);
         }
         if ($players != \"\")
         {
          $players = $players;
         }
         else
         {
          $players = \"0\";
         }
         if ($maxplayers != \"\")
         {
          $maxplayers = $maxplayers;
         }
         else
         {
          $maxplayers = \"0\";
         }
         if ($players < $maxplayers)
         {
          $output = \"On\";
         }
             
        else
        {
          $output = \"Full\";
        }
        if ($output != \"Full\" and $players != \"0\" or $maxplayers != \"0\")
        {
          $output = $output;
        }
        else
        {
          $output = \"Off\";
        }
        if ($map != \"\")
         {
          $map = $map;
         }
         else
         {
          $map = \"nera\";
         }
      }
         
   


$font = 'comic.ttf';
$fontSize = \"8\";
$fontSize2 = \"15\";
$fontRotation = \"0\";
$str = \"Example of GD in PHP.    Date: \" . date(\"m-j-Y  g:i:s (a)\");
$infos = \"$ip:$port\";
$infos2 = \"$players/$maxplayers\";
$infos3 = \"is $output\";
/* Shadow */
ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, $font, $infos);

/* Top Level */
ImageTTFText($image, $fontSize, $fontRotation, 5, 20, $color, $font, $infos);
ImageTTFText($image, $fontSize, $fontRotation, 175, 20, $color, $font, $infos2);
ImageTTFText($image, $fontSize, $fontRotation, 125, 20, $color, $font, $infos3);

/* Top Level */
header(\"Content-Type: image/PNG\");
ImagePNG ($image);
imagedestroy($image);
?>




_______________________________________________________________________

460x80

Download source  Code
$image = ImageCreateFromGIF(\"statusas.gif\");
$color = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$color2 = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$colorShadow = imagecolorallocate($image, 0x66, 0x66, 0x66);
$ip = $_GET['ipas'];
$port = $_GET['portas'];
$a = \":\";
$packet = \"\xFF\xFF\xFF\xFFTSource Engine Query\x00\";
        
      
       function getnextstring(&$data)
    {
       $temp=\"\";
       $counter=0;
       while (ord($data[$counter++])!=0) $temp.=$data[$counter-1];
       $data=substr($data,strlen($temp)+1);
       return $temp;
   }
   function getnextbytevalue(&$data)
   {
     $temp=ord($data[0]);
     $data=substr($data,1);
     return $temp;
   }
   
        if(!$live_server = fsockopen(\"udp://\".$ip,$port))
       {
        $output = \"Off\";
      }
       else
       {
        fwrite($live_server, $packet);
        socket_set_timeout($live_server,1,0);
        $junk = fread($live_server,5);
        $status = socket_get_status($live_server);
        $do = 1;
        $server_info= \"\";
         
         while($do)
         {
           $str_1 = fread($live_server,1);
           $server_info .= $str_1;
           $status = socket_get_status($live_server);
           if($status[\"unread_bytes\"] == 0) {$do = 0;}
         }
        fclose($live_server);
         
        if (strlen($server_info) > 0)
        {
          $success = 1;
         $junk = getnextstring($server_info);
         $servername = getnextstring($server_info);
         $map = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $players = getnextbytevalue($server_info);
         $maxplayers = getnextbytevalue($server_info);
         }
         if ($players != \"\")
         {
          $players = $players;
         }
         else
         {
          $players = \"0\";
         }
         if ($maxplayers != \"\")
         {
          $maxplayers = $maxplayers;
         }
         else
         {
          $maxplayers = \"0\";
         }
         if ($players < $maxplayers)
         {
          $output = \"On\";
         }
             
        else
        {
          $output = \"Full\";
        }
        if ($output != \"Full\" and $players != \"0\" or $maxplayers != \"0\")
        {
          $output = $output;
        }
        else
        {
          $output = \"Off\";
        }
        if ($map != \"\")
         {
          $map = $map;
         }
         else
         {
          $map = \"nera\";
         }
      }
         
   


$font = 'comic.ttf';
$fontSize = \"17\";
$fontSize2 = \"15\";
$fontRotation = \"0\";
$str = \"Example of GD in PHP.    Date: \" . date(\"m-j-Y  g:i:s (a)\");
$infos = \"$ip:$port\";
$infos2 = \"$players/$maxplayers\";
/* Shadow */
ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, $font, $infos);

/* Top Level */
ImageTTFText($image, $fontSize, $fontRotation, 5, 20, $color, $font, $infos);

/* Top Level */
ImageTTFText($image, $fontSize2, $fontRotation, 38, 55, $color, $font, $map);
ImageTTFText($image, $fontSize2, $fontRotation, 261, 55, $color, $font, $infos2);
ImageTTFText($image, $fontSize2, $fontRotation, 388, 55, $color2, $font, $output);

header(\"Content-Type: image/GIF\");
ImagePng ($image);
imagedestroy($image);
?>



____________________________________________________________________-

Inf

Download source  Code
$ip = $_GET['ipas'];
$port = $_GET['portas'];
$packet = \"\xFF\xFF\xFF\xFFTSource Engine Query\x00\";
 function getnextstring(&$data)
    {
       $temp=\"\";
       $counter=0;
       while (ord($data[$counter++])!=0) $temp.=$data[$counter-1];
       $data=substr($data,strlen($temp)+1);
       return $temp;
   }
   function getnextbytevalue(&$data)
   {
     $temp=ord($data[0]);
     $data=substr($data,1);
     return $temp;
   }
   
        if(!$live_server = fsockopen(\"udp://\".$ip,$port))
       {
        $output = \"Off\";
      }
       else
       {
        fwrite($live_server, $packet);
        socket_set_timeout($live_server,1,0);
        $junk = fread($live_server,5);
        $status = socket_get_status($live_server);
        $do = 1;
        $server_info= \"\";
         
         while($do)
         {
           $str_1 = fread($live_server,1);
           $server_info .= $str_1;
           $status = socket_get_status($live_server);
           if($status[\"unread_bytes\"] == 0) {$do = 0;}
         }
        fclose($live_server);
         
        if (strlen($server_info) > 0)
        {
          $success = 1;
         $junk = getnextstring($server_info);
         $servername = getnextstring($server_info);
         $map = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $junk = getnextstring($server_info);
         $players = getnextbytevalue($server_info);
         $maxplayers = getnextbytevalue($server_info);
         }
         if ($players != \"\")
         {
          $players = $players;
         }
         else
         {
          $players = \"0\";
         }
         if ($maxplayers != \"\")
         {
          $maxplayers = $maxplayers;
         }
         else
         {
          $maxplayers = \"0\";
         }
         if ($players < $maxplayers)
         {
          $output = \"On\";
         }
             
        else
        {
          $output = \"Full\";
        }
        if ($output != \"Full\" and $players != \"0\" or $maxplayers != \"0\")
        {
          $output = $output;
        }
        else
        {
          $output = \"Off\";
        }
        if ($map != \"\")
         {
          $map = $map;
         }
         else
         {
          $map = \"nera\";
         }
         echo'
      


      Serverio adresas : '.$ip.':',$port.'/

      Zemelapis : '.$map.'

      Zaidejai : '.$players.'/'.$maxplayers.'

      Serverio busena: '.$output.'

      \"'.$map.'\"
      

';
      }
      ?>      


 
PM
Peršokti į forumą: