# Update V1.1 » V2.0

A big version jump with major changes. The Webutler V2 has evolved from an online HTML editor to a small CMS. The basic idea to allow an uncomplicated, individual page design was kept.

For a better handling and order to keep track of a few restructuring and renaming were necessary. Some extensions require new directories. The Webutler still uses the old FCKeditor. The new version of CKEditor, unfortunately not all the features necessary for the Webutler so that an update was not yet possible.

## What to do?

Due to the extensive changes a little hand work is called for.

### Preparation

1. unzip the new version locally
2. delete the demo files from the following directories

- /content/blocks (everything except the .htaccess)
- /content/menus (everything except the .htaccess)
- /content/pages (everything except the .htaccess)
- /content/layouts (everything except the .htaccess)
- /content/media/image
- /content/media/file
- /content/media/flash
- /content/media/track

Download the /content directory of the old version from web space and the files to the new directories this way:

1. Files from /content/menus (old) to /content/menus (new)
2. Files from /content/pages (alt) to /content/pages (new)
3. Files from /content/templates to /content/layouts
4. Files from /content/media/image (old) to /content/media/image (new)

- If you want to use the lightbox for existing images must create a subdirectory /.box and save an enlarged view of the image in this directory
- Example: /imagepath/image.jpg (small) /imagepath/.box/image.jpg (large)
- For new images, this is done automatically

5. Files from /content/media/files (alt) to /content/media/files (neu)
6. Files from /content/media/flash (old) to /content/media/flash (new)
7. The /content/style/style.css (old) to /content/style (new), overwrite the existing file

Further still, the directories /content/blocks and /content/media/track added, but which play no role for the update. When all files have been moved, the loaded from the web space /content directory can be deleted.
Important! The file names in /content/pages may contain more hyphens. The hyphen is used for the separation of GET variables/required.

### Updates

Open all files of /content/pages and /content/layouts with a local HTML editor and update the content via search and replace. In the files menu, no changes should be necessary.

1. In the comment placeholders from begin_MENUNAME » begin_menu_MENUNAME from MENUNAME » menu_MENUNAME and from end_MENUNAME » end_menu_MENUNAME
2. for future blocks following comments are set: begin_block_BLOCKNAME, block_BLOCKNAME and end_block_BLOCKNAME
3. From class="menu_border" is class="block_border" same highlight color for menus and blocks

### Forms

Who uses forms and sendform.php, still must make the following changes in the form pages:

1. <script src="scripts/checkform.js" type="text/javascript"></script> remove the "checkform.js" is loaded automatically
2. The sendform.php load after openable bodytag the page
   <?PHP include "includes/forms/sendform.php"; ?>
3. Send forms in action attribute no longer "scripts/sendform.php" but to yourself
   <?PHP echo $_SERVER['REQUEST_URI']; ?>
4. The submit button has to have the name of the sending form (name="sendform")
5. The sendform.php from the web space download and fill in the sender information in the file /includes/forms/config.php

### Config adapt

The /admin/config.inc.php download from the web space and enter the following variables in the file /settings/baseconfig.php file:

1. $server_path » $webutler_config['server_path']
2. $homepage » $webutler_config['homepage']
3. $admin_name » $webutler_config['user_name']
4. $admin_pass » $webutler_config['user_pass']
5. $start » $webutler_config['startseite']

The variable $rewrite from the config.inc.php is in the variable $webutler_config['modrewrite'] in the file is moved globalvars.php and is adjustable so no longer have the administration.

### Upload and Chmod

To conclude, all upload to the web space. Give the directory /content and all subdirectories and /baseconfig.php CHMOD file settings 777.

Is of course better before they are uploaded everything first to test locally in XAMPP. The variables $webutler_config[server_path] and $webutler_config['homepage'] in the baseconfig.php be adapted for short-term need.