The version of vichan running on lainchan.org
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

31 linhas
2.1KB

  1. <?php
  2. define('TINYBOARD', 'fuck yeah');
  3. require_once('nntpchan.php');
  4. die();
  5. $time = time();
  6. echo "\n@@@@ Thread:\n";
  7. echo $m0 = gennntp(["From" => "czaks <marcin@6irc.net>", "Message-Id" => "<1234.0000.".$time."@example.vichan.net>", "Newsgroups" => "overchan.test", "Date" => time(), "Subject" => "None"],
  8. [['type' => 'text/plain', 'text' => "THIS IS A NEW TEST THREAD"]]);
  9. echo "\n@@@@ Single msg:\n";
  10. echo $m1 = gennntp(["From" => "czaks <marcin@6irc.net>", "Message-Id" => "<1234.1234.".$time."@example.vichan.net>", "Newsgroups" => "overchan.test", "Date" => time(), "Subject" => "None", "References" => "<1234.0000.".$time."@example.vichan.net>"],
  11. [['type' => 'text/plain', 'text' => "hello world, with no image :("]]);
  12. echo "\n@@@@ Single msg and pseudoimage:\n";
  13. echo $m2 = gennntp(["From" => "czaks <marcin@6irc.net>", "Message-Id" => "<1234.2137.".$time."@example.vichan.net>", "Newsgroups" => "overchan.test", "Date" => time(), "Subject" => "None", "References" => "<1234.0000.".$time."@example.vichan.net>"],
  14. [['type' => 'text/plain', 'text' => "hello world, now with an image!"],
  15. ['type' => 'image/gif', 'text' => base64_decode("R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="), 'name' => "urgif.gif"]]);
  16. echo "\n@@@@ Single msg and two pseudoimages:\n";
  17. echo $m3 = gennntp(["From" => "czaks <marcin@6irc.net>", "Message-Id" => "<1234.1488.".$time."@example.vichan.net>", "Newsgroups" => "overchan.test", "Date" => time(), "Subject" => "None", "References" => "<1234.0000.".$time."@example.vichan.net>"],
  18. [['type' => 'text/plain', 'text' => "hello world, now WITH TWO IMAGES!!!"],
  19. ['type' => 'image/gif', 'text' => base64_decode("R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="), 'name' => "urgif.gif"],
  20. ['type' => 'image/gif', 'text' => base64_decode("R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="), 'name' => "urgif2.gif"]]);
  21. shoveitup($m0, "<1234.0000.".$time."@example.vichan.net>");
  22. sleep(1);
  23. shoveitup($m1, "<1234.1234.".$time."@example.vichan.net>");
  24. sleep(1);
  25. shoveitup($m2, "<1234.2137.".$time."@example.vichan.net>");
  26. shoveitup($m3, "<1234.1488.".$time."@example.vichan.net>");