1 | <?php |
---|
2 | // +-----------------------------------------------------------------------+ |
---|
3 | // | help.php | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | // | application : PhpWebGallery <http://phpwebgallery.net> | |
---|
6 | // | branch : BSF (Best So Far) | |
---|
7 | // +-----------------------------------------------------------------------+ |
---|
8 | // | file : $RCSfile$ |
---|
9 | // | last update : $Date: 2004-02-11 23:20:38 +0000 (Wed, 11 Feb 2004) $ |
---|
10 | // | last modifier : $Author: z0rglub $ |
---|
11 | // | revision : $Revision: 362 $ |
---|
12 | // +-----------------------------------------------------------------------+ |
---|
13 | // | This program is free software; you can redistribute it and/or modify | |
---|
14 | // | it under the terms of the GNU General Public License as published by | |
---|
15 | // | the Free Software Foundation | |
---|
16 | // | | |
---|
17 | // | This program is distributed in the hope that it will be useful, but | |
---|
18 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
19 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
20 | // | General Public License for more details. | |
---|
21 | // | | |
---|
22 | // | You should have received a copy of the GNU General Public License | |
---|
23 | // | along with this program; if not, write to the Free Software | |
---|
24 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
25 | // | USA. | |
---|
26 | // +-----------------------------------------------------------------------+ |
---|
27 | include_once( './admin/include/isadmin.inc.php' ); |
---|
28 | //----------------------------------------------------- template initialization |
---|
29 | $sub = $vtp->Open( './template/'.$user['template'].'/admin/help.vtp' ); |
---|
30 | $tpl = array( ); |
---|
31 | templatize_array( $tpl, 'lang', $sub ); |
---|
32 | //----------------------------------------------------- help categories display |
---|
33 | $categories = array( 'images','thumbnails','database','remote','upload', |
---|
34 | 'virtual','groups','access','infos' ); |
---|
35 | foreach ( $categories as $category ) { |
---|
36 | $vtp->addSession( $sub, 'cat' ); |
---|
37 | if ( $category == 'images' ) |
---|
38 | { |
---|
39 | $vtp->addSession( $sub, 'illustration' ); |
---|
40 | $vtp->setVar( $sub, 'illustration.pic_src', './admin/images/admin.png' ); |
---|
41 | $vtp->setVar( $sub, 'illustration.pic_alt', '' ); |
---|
42 | $vtp->setVar( $sub, 'illustration.caption', $lang['help_images_intro'] ); |
---|
43 | $vtp->closeSession( $sub, 'illustration' ); |
---|
44 | } |
---|
45 | $vtp->setVar( $sub, 'cat.name', $lang['help_'.$category.'_title'] ); |
---|
46 | foreach ( $lang['help_'.$category] as $item ) { |
---|
47 | $vtp->addSession( $sub, 'item' ); |
---|
48 | $vtp->setVar( $sub, 'item.content', $item ); |
---|
49 | $vtp->closeSession( $sub, 'item' ); |
---|
50 | } |
---|
51 | |
---|
52 | $vtp->closeSession( $sub, 'cat' ); |
---|
53 | } |
---|
54 | //----------------------------------------------------------- sending html code |
---|
55 | $vtp->Parse( $handle , 'sub', $sub ); |
---|
56 | ?> |
---|