1 | <h2>Remote sites</h2> |
---|
2 | |
---|
3 | <p>PhpWebGallery offers the possibility to use several servers to store the |
---|
4 | images which will compose your gallery. It can be useful if your gallery is |
---|
5 | installed on one limited space and that you have a big quantity of images to |
---|
6 | be shown.</p> |
---|
7 | |
---|
8 | <ol> |
---|
9 | |
---|
10 | <li>edit file <span class="filename">tools/create_listing_file.php</span>, |
---|
11 | by modifying parameters section such as |
---|
12 | <code>$conf['prefix_thumbnail']</code> or |
---|
13 | <code>$conf['use_exif']</code>.</li> |
---|
14 | |
---|
15 | <li>place file <span class="filename">tools/create_listing_file.php</span> |
---|
16 | modified on your distant website, in the same directory than your category |
---|
17 | directories (as the directory <span class="filename">galleries</span> of |
---|
18 | this website) by ftp. For the example, let's say that you can access <span |
---|
19 | class="filename">http://example.com/galleries/create_listing_file.php</span>.</li> |
---|
20 | |
---|
21 | <li>go to <span class="pwgScreen">administration panel, Categories, Site |
---|
22 | manager</span>. Ask to create a new site, for example <span |
---|
23 | class="filename">http://example.com/galleries</span>.</li> |
---|
24 | |
---|
25 | <li>a new remote site is registered. You can perform 4 actions : |
---|
26 | |
---|
27 | <ol> |
---|
28 | |
---|
29 | <li><strong>generate listing</strong> : launches a distant request to |
---|
30 | generate a distant file listing</li> |
---|
31 | |
---|
32 | <li><strong>synchronize</strong> : reads the distant <span |
---|
33 | class="filename">listing.xml</span> file and synchronizes with |
---|
34 | database informations.</li> |
---|
35 | |
---|
36 | <li><strong>clean</strong> : removes distant <span |
---|
37 | class="filename">listing.xml</span> file.</li> |
---|
38 | |
---|
39 | <li><strong>delete</strong> : deletes the site (and all related |
---|
40 | categories and elements) in the database.</li> |
---|
41 | |
---|
42 | </ol> |
---|
43 | </li> |
---|
44 | </ol> |
---|
45 | |
---|
46 | <!-- <p>You can do all this by hand by generating yourself the <span |
---|
47 | class="filename">listing.xml</span> file, moving it from your distant server |
---|
48 | to you local PhpWebGallery root directory and opening the remote site |
---|
49 | management screen : PhpWebGallery will propose you to use the found |
---|
50 | listing.xml file.</p>--> |
---|
51 | |
---|