aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-21 19:24:56 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-21 19:24:56 +0000
commit6691367c16e8f17bdedb4f0381c753bf7cad008e (patch)
tree226bf6683cdc273838f6354a144d831f77bd404b
parent13eb703fa3145c3b3ebb3c90f19e895883bd2a36 (diff)
help.php provides a help for administrators (how to add pictures, how to
use remote sites, how to manage access rights...) git-svn-id: http://piwigo.org/svn/trunk@23 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/help.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/admin/help.php b/admin/help.php
new file mode 100644
index 000000000..7de9597f8
--- /dev/null
+++ b/admin/help.php
@@ -0,0 +1,46 @@
+<?php
+/***************************************************************************
+ * help.php *
+ * ------------------- *
+ * application : PhpWebGallery 1.3 *
+ * author : Pierrick LE GALL <pierrick@z0rglub.com> *
+ * *
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; *
+ * *
+ ***************************************************************************/
+include_once( './include/isadmin.inc.php' );
+//----------------------------------------------------- template initialization
+$sub = $vtp->Open( '../template/'.$user['template'].'/admin/help.vtp' );
+$tpl = array( );
+templatize_array( $tpl, 'lang', $sub );
+//----------------------------------------------------- help categories display
+$categories = array( 'images','thumbnails','database','remote','upload',
+ 'infos' );
+foreach ( $categories as $category ) {
+ $vtp->addSession( $sub, 'cat' );
+ if ( $category == 'images' )
+ {
+ $vtp->addSession( $sub, 'illustration' );
+ $vtp->setVar( $sub, 'illustration.pic_src', './images/admin.png' );
+ $vtp->setVar( $sub, 'illustration.pic_alt', '' );
+ $vtp->setVar( $sub, 'illustration.caption', $lang['help_images_intro'] );
+ $vtp->closeSession( $sub, 'illustration' );
+ }
+ $vtp->setVar( $sub, 'cat.name', $lang['help_'.$category.'_title'] );
+ foreach ( $lang['help_'.$category] as $item ) {
+ $vtp->addSession( $sub, 'item' );
+ $vtp->setVar( $sub, 'item.content', $item );
+ $vtp->closeSession( $sub, 'item' );
+ }
+
+ $vtp->closeSession( $sub, 'cat' );
+}
+//----------------------------------------------------------- sending html code
+$vtp->Parse( $handle , 'sub', $sub );
+?> \ No newline at end of file