The best way to learn how to use the WebCore is by example. See the documentation for more information.

The requested URL is always shown first; if a page uses one or more WebCore templates, those are shown afterwards.

00 <?php
01   include_once ('software/webcore_init.php');
02  
03   $Page->title->subject = 'Upgrade';
04   $Page->location->append ('WebCore', './');
05   $Page->location->append ('Upgrade');
06  
07   $Page->start_display ();
08 ?>
09 <div class="top-box">
10   <div class="button-content">
11     <a href="download.php" class="button">&lt; Download</a>
12   </div>
13 </div>
14 <div class="main-box">
15   <div class="text-flow">
16     <p>If you already have an earthli WebCore application installed, follow the instructions below for a
17       smooth upgrade. If you don't, use the <a href="install.php">installation</a> instructions instead.</p>
18     <p>Since there are myriad configuration possibilities, the upgrade instructions are more a set of general
19       guidelines than step-by-step instructions.</p>
20     <ol>
21       <li>Back up your database and webcore installation before doing anything. You can back up your database
22         by exporting using PHPMyAdmin or my simply doing a <code>mysqldump</code> to file. If you have no idea
23         what this means, then you probably should ask someone for help (see
24         <a href="requirements.php#target-audience">target audience</a>).</li>
25       <li><p>Copy the new WebCore files into their respective locations (depends on where you installed the
26         common files, which applications you have installed and where the PHP library files are stored).
27         It is best to remove the existing version before applying the new one to make sure that all old
28         files are removed.</p>
29         <?php
30         $Page->show_message('Do <em>not</em> overwrite the "plugins" folder. Each
31         earthli distribution contains  default files for this folder; make sure to save your current versions
32         to avoid losing your configuration.', 'info');
33         ?>
34       <li><p>Compare the new default configuration files (in the "plugins" folder) with your existing ones to
35         see which new settings should be set.</p>
36         <?php
37         $Page->show_message('The upgrade to WebCore 2.7.0 changes the names of
38           these files from "make.php" and "make_app.php" to "custom_init.php". You <em>must</em> transfer your
39           settings to the new files by hand.', 'info');
40         ?>
41       </li>
42       <li><p>Migrate the database to the new schema by following the instructions below.</p>
43         <ol>
44           <li>Log in to each installed application as the "root" user.</li>
45           <li>Click "Configure" at the top of the page, near the login information.</li>
46           <li>Perform the indicated upgrades from the configuration page.</li>
47         </ol>
48       </li>
49       <li>Make sure that upload folders have permissions assigned correctly. See
50         <a href="install.php#file-permissions">configuring upload folders</a> for more information.</li>
51     </ol>
52   </div>
53 </div>
54 <?php $Page->finish_display (); ?>
55