source: trunk/admin/help.php @ 106

Last change on this file since 106 was 106, checked in by z0rglub, 21 years ago

Adding help information for release 1.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1<?php
2/***************************************************************************
3 *                                  help.php                               *
4 *                            -------------------                          *
5 *   application   : PhpWebGallery 1.3 <http://phpwebgallery.net>          *
6 *   author        : Pierrick LE GALL <pierrick@z0rglub.com>               *
7 *                                                                         *
8 *   $Id: help.php 106 2003-09-14 16:21:21Z z0rglub $
9 *                                                                         *
10 ***************************************************************************/
11
12/***************************************************************************
13 *                                                                         *
14 *   This program is free software; you can redistribute it and/or modify  *
15 *   it under the terms of the GNU General Public License as published by  *
16 *   the Free Software Foundation;                                         *
17 *                                                                         *
18 ***************************************************************************/
19include_once( './include/isadmin.inc.php' );
20//----------------------------------------------------- template initialization
21$sub = $vtp->Open( '../template/'.$user['template'].'/admin/help.vtp' );
22$tpl = array( );
23templatize_array( $tpl, 'lang', $sub );
24//----------------------------------------------------- help categories display
25$categories = array( 'images','thumbnails','database','remote','upload',
26                     'virtual','groups','access','infos' );
27foreach ( $categories as $category ) {
28  $vtp->addSession( $sub, 'cat' );
29  if ( $category == 'images' )
30  {
31    $vtp->addSession( $sub, 'illustration' );
32    $vtp->setVar( $sub, 'illustration.pic_src', './images/admin.png' );
33    $vtp->setVar( $sub, 'illustration.pic_alt', '' );
34    $vtp->setVar( $sub, 'illustration.caption', $lang['help_images_intro'] );
35    $vtp->closeSession( $sub, 'illustration' );
36  }
37  $vtp->setVar( $sub, 'cat.name', $lang['help_'.$category.'_title'] );
38  foreach ( $lang['help_'.$category] as $item ) {
39    $vtp->addSession( $sub, 'item' );
40    $vtp->setVar( $sub, 'item.content', $item );
41    $vtp->closeSession( $sub, 'item' );
42  }
43
44  $vtp->closeSession( $sub, 'cat' );
45}
46//----------------------------------------------------------- sending html code
47$vtp->Parse( $handle , 'sub', $sub );
48?>
Note: See TracBrowser for help on using the repository browser.