Browse Source

added banner.png shit

master
lolcat 3 months ago
parent
commit
54e8b6288f
  1. BIN
      COMIC.TTF
  2. 125
      banner.php
  3. BIN
      bg.png
  4. BIN
      buddy.png
  5. BIN
      buddy_alone.png
  6. BIN
      flag/ae.png
  7. BIN
      flag/af.png
  8. BIN
      flag/al.png
  9. BIN
      flag/am.png
  10. BIN
      flag/ao.png
  11. BIN
      flag/aq.png
  12. BIN
      flag/ar.png
  13. BIN
      flag/at.png
  14. BIN
      flag/au.png
  15. BIN
      flag/ax.png
  16. BIN
      flag/az.png
  17. BIN
      flag/ba.png
  18. BIN
      flag/bd.png
  19. BIN
      flag/be.png
  20. BIN
      flag/bg.png
  21. BIN
      flag/bh.png
  22. BIN
      flag/bj.png
  23. BIN
      flag/blank.png
  24. BIN
      flag/bm.png
  25. BIN
      flag/bn.png
  26. BIN
      flag/bo.png
  27. BIN
      flag/br.png
  28. BIN
      flag/bs.png
  29. BIN
      flag/bt.png
  30. BIN
      flag/by.png
  31. BIN
      flag/bz.png
  32. BIN
      flag/ca.png
  33. BIN
      flag/cg.png
  34. BIN
      flag/ch.png
  35. BIN
      flag/ci.png
  36. BIN
      flag/cl.png
  37. BIN
      flag/cn.png
  38. BIN
      flag/co.png
  39. BIN
      flag/cr.png
  40. BIN
      flag/cy.png
  41. BIN
      flag/cz.png
  42. BIN
      flag/de.png
  43. BIN
      flag/dj.png
  44. BIN
      flag/dk.png
  45. BIN
      flag/dm.png
  46. BIN
      flag/do.png
  47. BIN
      flag/dz.png
  48. BIN
      flag/ec.png
  49. BIN
      flag/ee.png
  50. BIN
      flag/eg.png
  51. BIN
      flag/es.png
  52. BIN
      flag/et.png
  53. BIN
      flag/eu.png
  54. BIN
      flag/fi.png
  55. BIN
      flag/fm.png
  56. BIN
      flag/fo.png
  57. BIN
      flag/fr.png
  58. BIN
      flag/gb.png
  59. BIN
      flag/ge.png
  60. BIN
      flag/gf.png
  61. BIN
      flag/gh.png
  62. BIN
      flag/gi.png
  63. BIN
      flag/gl.png
  64. BIN
      flag/gr.png
  65. BIN
      flag/gt.png
  66. BIN
      flag/gu.png
  67. BIN
      flag/gy.png
  68. BIN
      flag/hk.png
  69. BIN
      flag/hn.png
  70. BIN
      flag/hr.png
  71. BIN
      flag/ht.png
  72. BIN
      flag/hu.png
  73. BIN
      flag/id.png
  74. BIN
      flag/ie.png
  75. BIN
      flag/il.png
  76. BIN
      flag/im.png
  77. BIN
      flag/in.png
  78. BIN
      flag/iq.png
  79. BIN
      flag/ir.png
  80. BIN
      flag/is.png
  81. BIN
      flag/it.png
  82. BIN
      flag/je.png
  83. BIN
      flag/jm.png
  84. BIN
      flag/jo.png
  85. BIN
      flag/jp.png
  86. BIN
      flag/ke.png
  87. BIN
      flag/kg.png
  88. BIN
      flag/kh.png
  89. BIN
      flag/kn.png
  90. BIN
      flag/kp.png
  91. BIN
      flag/kr.png
  92. BIN
      flag/kw.png
  93. BIN
      flag/kz.png
  94. BIN
      flag/la.png
  95. BIN
      flag/lb.png
  96. BIN
      flag/li.png
  97. BIN
      flag/lk.png
  98. BIN
      flag/lr.png
  99. BIN
      flag/ls.png
  100. BIN
      flag/lt.png

BIN
COMIC.TTF

Binary file not shown.

125
banner.php

@ -0,0 +1,125 @@
<?php
include "mumble-ping.php";
// load
try{
$mumble = new mumble("GeoLite2-Country.mmdb");
$res = $mumble->ping(
$_GET["ip"],
isset($_GET["port"]) ? $_GET["port"] : 64738,
);
if($res["server"]["name"] !== null){
$str = $res["server"]["name"];
}else{
$str = "Unknown serber name!!";
if(isset($_GET["name"])){
$str = $_GET["name"];
}
}
}catch(Exception $error){
$ip = isset($_GET["ip"]) ? $_GET["ip"] : "Unknown address";
$port = isset($_GET["port"]) ? $_GET["port"] : "???";
http_response_code(404);
$res = [
"server" => [
"online" => "0",
"max" => "0",
"domains" => [ $ip ],
"port" => $port,
"country" => [
"code" => "blank"
]
]
];
$str = "Host unreachable!!";
}
$im = new Imagick();
$im->newImage(468, 60, "#282828");
$im->setImageFormat("png");
// bg
$bg = new Imagick("bg.png");
$im->compositeImage($bg, imagick::COMPOSITE_OVER, 367, 1);
// text
$stroke = new ImagickDraw();
$stroke->setStrokeColor("#504945");
$stroke->setFillColor("transparent");
$stroke->rectangle(0, 0, 467, 59);
$im->drawImage($stroke);
$draw = new ImagickDraw();
$draw->setFillColor("#ebdbb2");
$draw->setFontSize(13);
$draw->setFont("COMIC.TTF");
$newstr = "";
if(strlen($str) > 84){
for($i=0; $i<84; $i++){
$newstr .= $str[$i];
}
$str = trim($newstr) . "...";
unset($newstr);
}
$str = trim($str);
$str = explode("\n", wordwrap($str, 45, "\n", true));
if(count($str) === 1){
$im->annotateImage($draw, 5, 25, 0, $str[0]);
}else{
for($i=0; $i<2; $i++){
$im->annotateImage($draw, 5, (16 * $i) + 15, 0, $str[$i]);
}
}
// flag
if(idate("m") === 11){
$path = "flag/xmas/";
}else{
$path = "flag/";
}
$merge = new Imagick($path . strtolower($res["server"]["country"]["code"]) . ".png");
$height = $merge->getImageHeight();
$im->compositeImage($merge, imagick::COMPOSITE_OVER, 5, 46 - ($height / 2));
// ip
$draw->setFillColor("#bdae93");
$im->annotateImage($draw, 30, 51, 0, $res["server"]["domains"][0]);
// users
if($res["server"]["online"] > 0){
$name = "buddy.png";
}else{
$name = "buddy_alone.png";
}
$buddy = new Imagick($name);
$im->compositeImage($buddy, imagick::COMPOSITE_OVER, 340, 40);
$im->annotateImage($draw, 360, 53, 0, $res["server"]["online"] . "/" . $res["server"]["max"]);
// done.
header("Content-Type: image/png");
echo $im->getImageBlob();
?>

BIN
bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
buddy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

BIN
buddy_alone.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

BIN
flag/ae.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

BIN
flag/af.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

BIN
flag/al.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
flag/am.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

BIN
flag/ao.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

BIN
flag/aq.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

BIN
flag/ar.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

BIN
flag/at.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

BIN
flag/au.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

BIN
flag/ax.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

BIN
flag/az.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

BIN
flag/ba.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

BIN
flag/bd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

BIN
flag/be.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
flag/bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

BIN
flag/bh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

BIN
flag/bj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

BIN
flag/blank.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

BIN
flag/bm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

BIN
flag/bn.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

BIN
flag/bo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

BIN
flag/br.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

BIN
flag/bs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

BIN
flag/bt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

BIN
flag/by.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

BIN
flag/bz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

BIN
flag/ca.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

BIN
flag/cg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

BIN
flag/ch.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

BIN
flag/ci.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

BIN
flag/cl.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

BIN
flag/cn.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

BIN
flag/co.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

BIN
flag/cr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

BIN
flag/cy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
flag/cz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

BIN
flag/de.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

BIN
flag/dj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

BIN
flag/dk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

BIN
flag/dm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

BIN
flag/do.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

BIN
flag/dz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

BIN
flag/ec.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

BIN
flag/ee.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

BIN
flag/eg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

BIN
flag/es.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

BIN
flag/et.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

BIN
flag/eu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

BIN
flag/fi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

BIN
flag/fm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

BIN
flag/fo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

BIN
flag/fr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

BIN
flag/gb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

BIN
flag/ge.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
flag/gf.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

BIN
flag/gh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

BIN
flag/gi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

BIN
flag/gl.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

BIN
flag/gr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

BIN
flag/gt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

BIN
flag/gu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

BIN
flag/gy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

BIN
flag/hk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

BIN
flag/hn.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
flag/hr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

BIN
flag/ht.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

BIN
flag/hu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

BIN
flag/id.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

BIN
flag/ie.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

BIN
flag/il.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

BIN
flag/im.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

BIN
flag/in.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

BIN
flag/iq.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

BIN
flag/ir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
flag/is.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

BIN
flag/it.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

BIN
flag/je.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

BIN
flag/jm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

BIN
flag/jo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
flag/jp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

BIN
flag/ke.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

BIN
flag/kg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
flag/kh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

BIN
flag/kn.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

BIN
flag/kp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

BIN
flag/kr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

BIN
flag/kw.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

BIN
flag/kz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

BIN
flag/la.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
flag/lb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

BIN
flag/li.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

BIN
flag/lk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

BIN
flag/lr.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

BIN
flag/ls.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

BIN
flag/lt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save