HTMLcode_end; } function get_value ($name, $default) { if (!isset($_REQUEST[$name])) return $default; return $_REQUEST[$name]; } function create_page () { $rows = get_value("rows", 1); $cols = get_value("cols", 1); $width = get_value("width", 770); $height = get_value("height", 560); if ($width <= 0) $width = 770; if ($height <= 0) $height = 560; if ($rows <= 0) $rows = 1; if ($cols <= 0) $cols = 1; $i1 = (int) $rows; $i2 = (int) $cols; $display = pr2_embed($width, $height); $result = ""; while ($i2) { for ($instance = 0; $instance < $i1; $instance ++) $result .= $display; $result .= '
'; $i2 --; } return << Many PR2s! $result HTMLcode_end; } echo create_page (); ?>