get_int("oekaki_width", 400); $oekH = $config->get_int("oekaki_height", 400); if(isset($_POST['oekW']) && isset($_POST['oekH'])) { $oekW = int_escape($_POST['oekW']); $oekH = int_escape($_POST['oekH']); } $html = " JAVA NOT INSTALLED :( "; # # // FIXME: prevent oekaki block from collapsing on click in cerctain themes. This causes canvas reset $page->set_title("Oekaki"); $page->set_heading("Oekaki"); $page->add_block(new NavBlock()); $page->add_block(new Block("Oekaki", $html, "main", 20)); } public function display_block() { global $config, $page; //FIXME: input field alignment could be done more elegantly, without inline styling //FIXME: autocomplete='off' seems to be an invalid HTML tag $oekW = $config->get_int("oekaki_width", 400); $oekH = $config->get_int("oekaki_height", 400); if(isset($_POST['oekW']) && isset($_POST['oekH'])) { $oekW = int_escape($_POST['oekW']); $oekH = int_escape($_POST['oekH']); } $page->add_block(new Block("Oekaki", "
". "x". "". "
" , "left", 21)); // upload is 20 } }