diff --git a/admin/bm.php b/admin/bm.php index d539de3..b31ce8a 100644 --- a/admin/bm.php +++ b/admin/bm.php @@ -61,7 +61,13 @@ if ($user->isAdmin()) { $_POST["description"] = strip_tags($_POST["description"]); if ($tumble->addPost($_POST)) { - header("Location: ".$conf->urlGelato."/admin/index.php?added=true"); + //header("Location: ".$conf->urlGelato."/admin/index.php?added=true"); + //die(); + $input = array("{type}"); + $output = array("1"); + + $template->cargarPlantilla($input, $output, "template_bm"); + $template->mostrarPlantilla(); die(); } else { header("Location: ".$conf->urlGelato."/admin/index.php?error=2&des=".$this->merror); @@ -146,7 +152,7 @@ if ($user->isAdmin()) { ?>

 

-
name="frmAdd" class="newpost"> + name="frmAdd" class="newpost">
isAdmin()) { $input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}"); $output = array("2", $date, $_SESSION['user_id'], $url, $body); - $template->cargarPlantilla($input, $output, "template_add_photo"); + $template->cargarPlantilla($input, $output, "template_add_photo_bm"); $template->mostrarPlantilla(); break; case "url": diff --git a/admin/themes/admin/template_add_photo_bm.htm b/admin/themes/admin/template_add_photo_bm.htm new file mode 100644 index 0000000..067e287 --- /dev/null +++ b/admin/themes/admin/template_add_photo_bm.htm @@ -0,0 +1,66 @@ + + +
+ +
+ +
+ + +
+ +
+ + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/admin/themes/admin/template_bm.htm b/admin/themes/admin/template_bm.htm new file mode 100644 index 0000000..7a0b3d7 --- /dev/null +++ b/admin/themes/admin/template_bm.htm @@ -0,0 +1,57 @@ + + + + + gelato bookmarklet + + + + + +
+
Done!
+ + Close this window + + + or wait 3 seconds. + +
+ + + + \ No newline at end of file diff --git a/classes/install.class.php b/classes/install.class.php index 5b3711c..bf42c78 100644 --- a/classes/install.class.php +++ b/classes/install.class.php @@ -123,7 +123,7 @@ class Install { $sqlStr[] = "INSERT INTO `".Table_prefix."config` VALUES (". $this->data['posts_limit'] .", '".$this->data['title']."', '".$this->data['description']."', '".$this->data['lang']."', '".$this->data['template']."', '".$this->data['url_installation']."');"; $sqlStr[] = "INSERT INTO `".Table_prefix."users` VALUES ('', '', '".$this->data['login']."', '".md5($this->data['password'])."', '".$this->data['email']."', '".$this->data['website']."', '".$this->data['about']."');"; - $sqlStr[] = "INSERT INTO `".Table_prefix."options` VALUES ('url_friendly', '1');"; + $sqlStr[] = "INSERT INTO `".Table_prefix."options` VALUES ('url_friendly', '0');"; $sqlStr[] = "INSERT INTO `".Table_prefix."options` VALUES ('rich_text', '0');"; $sqlStr[] = "INSERT INTO `".Table_prefix."options` VALUES ('allow_comments', '0');"; $sqlStr[] = "INSERT INTO `".Table_prefix."options` VALUES ('offset_city', '".$this->data['offset_city']."');"; diff --git a/readme.txt b/readme.txt index 57d85a0..a8cdb98 100644 --- a/readme.txt +++ b/readme.txt @@ -6,18 +6,28 @@ * If you installed gelato in the root directory, you should visit: http://example.com/install.php * If you installed gelato in its own subdirectory called tumblelog, for example, you should visit: http://example.com/tumblelog/install.php 4) Set CHMOD / permission ( Chmod 777 ) to the folder 'uploads' and the folder 'uploads/CACHE' +5) REMOVE the install.php and update.php files. That's it! gelato should now be installed. -==== How to update to v0.95 RC1 from v0.90 version ===== +==== How to update to v0.95 from v0.90 version ===== 1) Download and unzip the gelato package, if you haven't already. 2) Create a backup of your config.php file. -3) Replace all the old files with those from the new 0.95 RC1. +3) Replace all the old files with those from the new 0.95. 4) Rename the config-sample.php file to config.php. 5) Open config.php in your favorite text editor and fill in your database details (using the information on your old config.php). 4) Execute the update.php file. 7) Set CHMOD / permission ( Chmod 777 ) to the folder 'uploads' and the folder 'uploads/CACHE'. +8) REMOVE the install.php and update.php files. + +That's it! gelato should now be updated. + +==== How to update to v0.95 from v0.95 RC1 version ===== + +1) Download and unzip the gelato package, if you haven't already. +2) Replace all the old files with those from the new 0.95. +3) REMOVE the install.php and update.php files. That's it! gelato should now be updated. @@ -34,6 +44,7 @@ That's it! gelato should now be updated. 6) Place the gelato files in the desired location on your web server. Note: The test data on the script /db/gelato_db.sql point the installation to http://localhost/gelato 7) Set CHMOD / permission ( Chmod 777 ) to the folder 'uploads' and the folder 'uploads/CACHE' +8) REMOVE the install.php and update.php files. That's it! gelato should now be installed. Demo user: admin diff --git a/update.php b/update.php index bcfd917..cbd6d12 100644 --- a/update.php +++ b/update.php @@ -58,6 +58,6 @@ if(!is_dir('upload/CACHE')){ } echo "

Finished!

"; -echo "

Now you are running on the new gelato cioccolato RC1 version!!!

"; +echo "

Now you are running on the new gelato cioccolato version!!!

"; ?>