";
reset($words);
while (list ($key, $word) = each ($words))
echo '' . $words[$key] . '';
echo '';
}
function DefFunction($func, $ret = "", $msg) {
echo "
\n";
echo " \n";
echo " Prototype: | ";
Display($func);
echo " | \n";
echo "
\n";
echo " \n";
echo " Return: | " . (($ret == "") ? "none" : $ret) . " | \n";
echo "
\n";
echo " \n";
echo " Description: | " . $msg . " | \n";
echo "
\n";
echo "
\n";
}
?>
Simpleweb documentation
Simpleweb documentation
This document describes how to configure and to customize your Simpleweb.
Mainly, there are four configuration file to customize the web site :
- the
config.inc.php
file contains the global configuration: site name, banner definition, language settings…
- the
members.inc.php
file contains the members info. This little data base is use at the end of each page to add the modifier email but it also usefull to create member page.
- the
style.css
file contains style definitions.
- the
favicon.ico
file is the little silly icon shown by new generation browser in the url frame.
Each configuration element has to be by a specific function.
Configuration function for config.inc.php
SetLanguages
This is a multiple arguments function: you can specify mutliple languages or only one language:
- If you define only language, all your web site messages will use this language.
- If you define multiple languages, a list of avaliable languages will appear at the left top corner, allowing visitor to switch the message language.
"); ?>
AddLinkToGlobalNavigation
AddLinkToLocalNavigation
SetBackgroundColor
SetBannerBackgroundColor
SetLeftBannerBackgroundimage
SetCentralBannerBackgroundimage
SetRightBannerBackgroundimage
SetStringColor
SetStringHeight
SetSiteLogo
SetRightTopCornerImage
SetSiteName
SetSiteUrl
SetBug
SetNavigationExclusionRegexp
SetGradeMeaning
SetHomePageDir
SetDefaultPage
AddIncludePath
.php files in the include path are included after the navigation tree definition. Usualy, those files are used by the web designer to extented SimpleWeb capabilities.'); ?>
AddImagePath
DisplayImage function.'); ?>
AddCSSFile
AddJSFile
SetBottomMessage
SetCopyrightYears
SetPageTitle
SetNavigationTitle
SetCreatorLogin
SetModifierLogin
SetCreationDate
SetModificationDate
SetOptionalNavPosition
AddLocalCSSFile
AddLocalJSFile
AnchorTag
AnchorTag(\"foo\");
will produce <a href=\"?page=foo.php\">foo</a>
.
As the language parameter is optional, it can be added into the anchor."); ?>
DisplayAnchor
DisplayAnchor(\"foo\");
will produce <a href=\"?page=foo.php\">foo</a>
.
As the language parameter is optional, it can be added into the anchor."); ?>
ImageTag
ImageTag(\"foo.png\", \"Foo\");
will produce <img src=\"Images/foo.png\" alt=\"Foo\" height=\"16\" width=\"12\">foo<
.
Except the name of the image file and the alternative name, the alignment, the size and the title (for tip popup) parameters are optionnals."); ?>
DisplayImage
ImageTag(\"foo.png\", \"Foo\");
will produce <img src=\"Images/foo.png\" alt=\"Foo\" height=\"16\" width=\"12\">foo<
."); ?>
Those functions are used to create a site template i.e. the index.php
file.
DisplayLanguageNavigation
GetConfigField
DisplayGlobalNavigation
DisplayLocalNavigation
GetSiteUrl
DisplayCSSLinks
AddCSSFile and AddLocalCSSFile
functions."); ?>
DisplayJSLinks
AddJSFile and AddLocalJSFile
functions."); ?>
IncludePhpExtension
AddIncludePath function."); ?>
GetSitePageField
GetCreatorName
GetModifierEmail
GetCreationDate
GetModificationDate
Laurent Mazet
Last modified: Sat Aug 24 10:08:22 MEST 2002