Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 330 online users. » 1 Member(s) | 325 Guest(s) Bing, Facebook, Google, Yandex, ~JBG~
|
Latest Threads |
JV Historical Reference G...
Forum: Library of the Sages
Last Post: The Quiet One
30 minutes ago
» Replies: 39
» Views: 62,271
|
Let's get this thread to ...
Forum: Village Games
Last Post: Mia
1 hour ago
» Replies: 16,793
» Views: 5,827,593
|
Last post wins!
Forum: Village Games
Last Post: Mia
5 hours ago
» Replies: 2,359
» Views: 1,363,502
|
Word of the Post
Forum: Village Games
Last Post: Sunlight123
Today, 4:47 AM
» Replies: 12
» Views: 548
|
The Spaceship (Story / RP...
Forum: Multimedia Masterpieces
Last Post: Sunlight123
Today, 4:43 AM
» Replies: 24
» Views: 1,745
|
Family relationship updat...
Forum: Blogs
Last Post: .....|::|::::|...
Today, 4:15 AM
» Replies: 8
» Views: 360
|
🔮🎁 ATTRACTION 🎁🔮
Forum: Discussion Hall
Last Post: Delphinoid_
Today, 2:16 AM
» Replies: 5
» Views: 297
|
Music!
Forum: PR4 Suggestions
Last Post: Adulock77
Today, 1:39 AM
» Replies: 13
» Views: 2,575
|
Ban the Above User
Forum: Village Games
Last Post: Sunlight123
11th May 2025, 11:20 PM
» Replies: 779
» Views: 543,693
|
Working From Home vs Offi...
Forum: Discussion Hall
Last Post: Lunanova
11th May 2025, 8:56 PM
» Replies: 8
» Views: 466
|
|
|
Hi |
Posted by: lp - 19th December 2017, 7:45 AM - Forum: Welcoming Gates
- Replies (8)
|
 |
hi am lp and am sorry for my outburst on the site. am over it now lets move on and be happ k?
also can i has lp name back pl0x
thnx bye
|
|
|
Good old configurable PR2 simming page |
Posted by: aaaaaa123456789 - 17th December 2017, 10:55 PM - Forum: Coding and Development
- No Replies
|
 |
For a long time, there was a page on acidch.at/multipr2.php that allowed loading an arbitrary number of instances of PR2 in a configurable layout. Originated as a prank (trying to make someone load 25,000 instances of PR2, which would crash most setups), the page actually survived and was useful to quite a few people.
That page has been down for a while, for a few reasons. I happened to find the code for it, so I figured I'd share it; someone might be able to do something nice with it.
Here:
PHP Code: <?php
function pr2code ($width, $height) { $width = (int) $width; if ($width <= 0) return false; $height = (int) $height; if ($height <= 0) return false; return '<embed width="' . (string) $width . '" height="' . (string) $height . '" base="http://external.kongregate-games.com/gamez/0001/0110/live/" ' . 'src="http://external.kongregate-games.com/gamez/0001/0110/live/embeddable_10110.swf"' . 'type="application/x-shockwave-flash"></embed>'; }
function repeat ($rows, $cols, $content) { $rows = (int) $rows; $cols = (int) $cols; if (($rows < 0) or ($cols < 0)) return false; $content = (string) $content; $line = str_repeat($content, $cols); if ($rows > 1) $result = str_repeat($line . '<br />', $rows - 1); else $result = ""; if ($rows) $result .= $line; return $result; }
function homepage () { $uri = $_SERVER['PHP_SELF']; return <<<code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Multiple PR2s</title> </head> <body> <center> <h2>Multiple PR2s</h2> <br /> Enter the configuration you want:<br /> <br /> <form action="$uri" method="get"> <table> <tr> <td align="right">Rows:</td> <td align="left"><input type="text" name="rows" value="1" /></td> </tr> <tr> <td align="right">Columns:</td> <td align="left"><input type="text" name="cols" value="1" /></td> </tr> <tr> <td align="right">Width (px):</td> <td align="left"><input type="text" name="width" value="550" /></td> </tr> <tr> <td align="right">Height (px):</td> <td align="left"><input type="text" name="height" value="400" /></td> </tr> </table> <br /> <input type="submit" value="Load" /> <input type="reset" value="Reset" /> </form> </center> </body> </html> code; }
$pagehead = <<<'code' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Multiple PR2s</title> </head> <body> code;
$pagefoot = <<<'code' </body> </html> code;
$r = @$_REQUEST['rows']; $c = @$_REQUEST['cols']; $w = @$_REQUEST['width']; $h = @$_REQUEST['height'];
if (($r === null) or ($c === null)) { echo homepage(); return 0; }
if (($w === null) and ($h === null)) { $w = 550; $h = 400; } if ($w === null) $w = $h * 11 / 8; if ($h === null) $h = $w * 8 / 11;
$line = pr2code($w, $h); if ($line === false) { echo homepage(); return 0; } $repeat = repeat($r, $c, $line); if ($repeat === false) { echo homepage(); return 0; }
echo $pagehead; echo $repeat; echo $pagefoot;
|
|
|
Producer Planet |
Posted by: Jyintel - 16th December 2017, 12:25 PM - Forum: Multimedia Masterpieces
- Replies (10)
|
 |
*A take on a thread from old JV*
♪ ♫ Producer Planet ♪ ♫
This is a place to connect with fellow producers of the community and receive feedback regarding your crafts (constructive criticism allowed only). If you produce music of any sort, you can leave a link to your music portfolio or something to that extent (soundcloud, youtube, spotify, etc etc.) and I will create a list of JV2's very own music producers!!
JV2 Music Producers:
While you're here, I ask that you check out everyone's pages and support them, as I will be doing the same.
Enjoy the music fest!!
|
|
|
|