<?  // PHPmyGallery - common template variables

/* File description:

This file fills the $pktpl_vars array with several
values used all over the webpage and admin menu

*/

// Script Name and Version
$pktpl_vars['script_name']    = SCRIPT_NAME;
$pktpl_vars['script_version'] = SCRIPT_VERSION;


// Misc.
$pktpl_vars['titleSeperator'] = $conf['titleSeperator'];


// For the Adminmenu (Backend)
$pktpl_vars['backendscript_dir']      = $admindir;
$pktpl_vars['backendscript_filename'] = str_replace('/','',$SERVER_VARS['PHP_SELF']);
$pktpl_vars['galleryscript_filename'] = urlencode($conf['myGfilename']);
$pktpl_vars['text_group']             = urlencode($group);
$pktpl_vars['text_picdir']            = urlencode($picdir);
$pktpl_vars['text_action']            = $action;


// For the Website (Frontend)
$pktpl_vars['galleryscript_picsdescribefile'] = $conf['picture_describefile'];
$pktpl_vars['galleryscript_conffile']         = $conf['conffile'];
$pktpl_vars['pathToGroups']                   = $conf['pathToGroups'];


// Time & Date (uncomment if you need one)
// $pktpl_vars['text_timeCurrentYear']     = date('Y');
// $pktpl_vars['text_timeCurrentMonth']    = date('m');
// $pktpl_vars['text_timeCurrentDay']      = date('d');
// $pktpl_vars['text_timeCurrentHour']     = date('h');
// $pktpl_vars['text_timeCurrentMinute']   = date('i');
// $pktpl_vars['text_timeCurrentSecond']   = date('s');
// $pktpl_vars['text_timeCurrentUnixtime'] = date('U');
// $pktpl_vars['text_timeCurrentInternet'] = date('B'); // Swatch Internet Time from 000 to 999


// Process LanguagePack variables
$l   = array();
$m   = array();
$tip = array();
processLanguagePack('langpack',$conf['lang'],'English');

?>