| Source for file index.html.phpDocumentation is available at index.html.php 
 * HTML engine for main file * 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; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * @author       m2mtech <tech@m2m.at> * @copyright  2007 m2m server software gmbh * @license       http://www.gnu.org/licenses/gpl.html GNU General Public License Version 2 * @version       $Id: index.html.php 150 2007-09-09 10:22:44Z m2mtech $ * @link       http://www.ea-geier.at/ * template engine wrapperrequire_once('code/base/smarty.class.php'); * @param    eaState status & output data    if (isset($out->language)) $lang = $out->language;    switch ($out->get['state']) {        case 'cashbookprint':    eaPrintCashBook($smarty, $out); $print = true; break;        case 'assetsprint': eaPrintAssets($smarty, $out); $print = true; break;        case 'travelprint': eaPrintTravel($smarty, $out); $print = true; break;        case 'balanceprint':    eaPrintBalance($smarty, $out); $print = true; break;    if (isset($print) && $print) {        $smarty->display('print.tpl');    $smarty->display('index.tpl'); * @param  eaSmarty        Smarty object    $smarty->assign_by_ref('data', $out->post);    $smarty->assign_by_ref('error', $out->error);    $smarty->assign('content', $smarty->fetch('login.tpl')); * @param    eaSmarty    Smarty object * @param    string        state of state machine * @param    eaInput        output data        case 'login': case 'logout' :        case 'newuser': case 'usercreated' :        case 'sendpw': case 'pwsent' :    $smarty->assign_by_ref('link', $link);    $smarty->assign_by_ref('opt', $out->options);    $smarty->assign('navigation', $smarty->fetch('navigation.tpl'));    if ($state == 'config') $state = 'configuration'; // to prevent directory browsing    $smarty->assign('state', $state);    $smarty->assign('navlang', $smarty->fetch('navlang.tpl')); * assign configuration variables * @param  eaSmarty        Smarty object    // assign global variables    $array['self'] = $_SERVER['PHP_SELF'];    // assign configuration variables    $vars = array('local' => 'localInstallation');    foreach ($vars as $key => $val) $array[$key] = $GLOBALS['conf'][$val];    $smarty->assign_by_ref('conf', $array); |