source: trunk/admin/help.php @ 23

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

help.php provides a help for administrators (how to add pictures, how to
use remote sites, how to manage access rights...)

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