
  U P G R A D E
  =============

  This file explains how to upgrade your personnal daCode
  ___________________________________________________________________________

  Upgrade from 1.0.x to 1.2.x :
     
  - Download the last version 1.2 of daCode on
	http://www.daCode.org/download.php3 and untar it in a tmp directory. 

  - Shutdown your Apache server with your usual command. If you don't have
    admin rights, then just skip this step, it should still work fine.

  - Make a backup of your database with mysqldump, we need to make changes.
    Modify your MySQL database with sql/dacode.mysql.1.0-1.2 with the
    following command:

        mysql -u<user> -p<password> database < sql/dacode.mysql.1.0-1.2

    You should not have anything printed as output. If you do then you
    probably found a bug, so put back your backup, and mail
    dacode-dev@linuxfr.org with all the details than can help us to track
    what's wrong.

   - Lots of new variable are coming out in config.sample. So make a backup of
     your config.php3 file, and edit config.sample to set yours. Then copy
     config.sample to config.php3. If your phplib is available publicly for
     visitors, remove config.sample to not give your database password !
     Then verify config.php3 is readable by apache user.

     *Don't manually add new variables to _your_ config.php3* You would
     probably forget some, so please do it the way we tell you to, it will
     work much better.

   - If you changed anything into the code, like in phplib/ or htdocs/, make a
     diff with 'diff' command and keep thoses somewhere in a file, like in
     ~/dacode.patch for example.

   - Copy the files htdocs/* and phplib/* in your directory.

   - If you did activate the cache in daCode, remove completly the cache dir
     with 'rm'. Both html cache and box cache.
     If you didn't, well you should have, it's much faster and less cpu
     consuming :-)

   - Start your Apache. It should work ! :)


   Note: If you changed a theme or made a personnal theme; then you might have
   to fix it. In html.php3 file you should change
        $this->newsbox_posted_by($row);
   by:
        $this->newsbox_posted_by($row,$preview);

   Also a calendar has been added, it uses new stylesheet codes which are .cal
   .calmonth and .calcurmonth. See the new themes, they include the right
   stylesheet. Also check them as you have much more boxes availables.
  ___________________________________________________________________________

