diff --git a/ext/oekaki/chibipaint.jar b/ext/oekaki/chibipaint.jar
index bb3c8ea2..81cbc78b 100644
Binary files a/ext/oekaki/chibipaint.jar and b/ext/oekaki/chibipaint.jar differ
diff --git a/ext/oekaki/main.php b/ext/oekaki/main.php
index 49e1e2cc..02633f99 100644
--- a/ext/oekaki/main.php
+++ b/ext/oekaki/main.php
@@ -10,12 +10,10 @@ class Oekaki extends Extension {
global $user, $page;
if($event->page_matches("oekaki")) {
- if(!$user->can("create_image")) {
- $this->theme->display_permission_denied();
- }
-
- if($event->get_arg(0) == "create") {
+ if($event->get_arg(0) == "create" and $user->can("create_image")){
$this->theme->display_page();
+ }else{
+ $this->theme->display_permission_denied();
}
if($event->get_arg(0) == "upload") {
// FIXME: this allows anyone to upload anything to /data ...
diff --git a/ext/oekaki/readme.txt b/ext/oekaki/readme.txt
index 8f02e3ec..b5e292b9 100644
--- a/ext/oekaki/readme.txt
+++ b/ext/oekaki/readme.txt
@@ -1,6 +1,24 @@
ChibiPaint
+ Original version of ChibiPaint:
Copyright (c) 2006-2008 Marc Schefer
+ http://www.chibipaint.com/
+
+ Some icons taken from the GNU Image Manipulation Program.
+ Art contributors: http://git.gnome.org/browse/gimp/tree/AUTHORS
+ Lapo Calamandrei
+ Paul Davey
+ Alexia Death
+ Aurore Derriennic
+ Tuomas Kuosmanen
+ Karl La Rocca
+ Andreas Nilsson
+ Ville Pätsi
+ Mike Schaeffer
+ Carol Spears
+ Jakub Steiner
+ William Szilveszter
+
This file is part of ChibiPaint.
@@ -66,7 +84,7 @@
The form data name for the png file is 'picture' and 'chibifile' for the multilayer file. The recommended extension
for chibifiles is '.chi'
-
+
The applet expects the server to answer with the single line reply "CHIBIOK" followed by a newline character.
"CHIBIERROR" followed by an error message on the same list is the planned way to report an error but currently the
diff --git a/ext/oekaki/theme.php b/ext/oekaki/theme.php
index cfcda3b0..50f73034 100644
--- a/ext/oekaki/theme.php
+++ b/ext/oekaki/theme.php
@@ -1,35 +1,83 @@
-
-
+
+
- JAVA NOT SUPPORTED!
+ 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("Oekiaki");
+ $page->set_heading("Oekaki");
$page->add_block(new NavBlock());
$page->add_block(new Block("Oekaki", $html, "main", 20));
+ $page->add_block(new Block(null,
+ "
+ Change canvas size.
+
+