/** * run - display template and edit data * * @access public */ public function run() { $tpl = new template(); //Only admins if ($_SESSION['userdata']['role'] == 'admin') { if (isset($_GET['id']) === true) { $id = (int) $_GET['id']; $msgKey = ''; if ($this->hasTickets($id) === true) { $msgKey = 'CLIENT_HAS_TICKETS'; } else { if (isset($_POST['del']) === true) { $this->deleteClient($id); $msgKey = 'CLIENT_DELETED'; } } //Assign vars $tpl->assign('client', $this->getClient($id)); $tpl->assign('msg', $msgKey); $tpl->display('clients.delClient'); } else { $tpl->display('general.error'); } } else { $tpl->display('general.error'); } }
public function run() { $tpl = new template(); $id = (int) $_GET['id']; $users = new users(); $clients = new clients(); if ($id && $id > 0) { $lead = $this->getLead($id); $contact = $this->getLeadContact($id); $values = array('user' => $contact['email'], 'password' => '', 'firstname' => '', 'lastname' => '', 'phone' => $contact['phone'], 'role' => 3, 'clientId' => $lead['clientId']); if (isset($_POST['save'])) { if (isset($_POST['user']) && isset($_POST['firstname']) && isset($_POST['lastname'])) { $hasher = new PasswordHash(8, TRUE); $values = array('user' => $_POST['user'], 'password' => $hasher->HashPassword($_POST['password']), 'firstname' => $_POST['firstname'], 'lastname' => $_POST['lastname'], 'phone' => $_POST['phone'], 'role' => $_POST['role'], 'clientId' => $_POST['clientId']); if ($users->usernameExist($values['user']) !== true) { $users->addUser($values); $tpl->setNotification('USER_CREATED', 'success'); } else { $tpl->setNotification('USERNAME_EXISTS', 'error'); } } else { $tpl->setNotification('MISSING_FIELDS', 'error'); } } $tpl->assign('values', $values); $tpl->assign('clients', $clients->getAll()); $tpl->assign('roles', $users->getRoles()); $tpl->display('leads.convertToUser'); } else { $tpl->display('general.error'); } }
public function run() { $tpl = new template(); $id = (int) $_GET['id']; if ($id > 0) { $lead = $this->getLead($id); // Comments $comments = new comments(); if (isset($_POST['comment']) === true) { $values = array('text' => $_POST['text'], 'date' => date("Y-m-d H:i:s"), 'userId' => $_SESSION['userdata']['id'], 'moduleId' => $id, 'commentParent' => $_POST['father']); $comments->addComment($values, 'lead'); } // files $file = new files(); if (isset($_POST['upload'])) { if (isset($_FILES['file'])) { $file->upload($_FILES, 'lead', $id); $tpl->setNotification('FILE_UPLOADED', 'success'); } else { $tpl->setNotification('NO_FILE', 'error'); } } $files = new files(); $tpl->assign('files', $files->getFilesByModule('lead', $id)); $tpl->assign('comments', $comments->getComments('lead', $id)); $tpl->assign('contactInfo', $this->getLeadContact($id)); $tpl->assign('lead', $lead); } else { $tpl->display('general.error'); } $tpl->display('leads.showLead'); }
/** * run - display template and edit data * * @access public */ public function run() { $tpl = new template(); $user = new users(); //Only admins if ($user->isAdmin($_SESSION['userdata']['id'])) { $msgKey = ''; if (isset($_POST['save']) === true) { $values = array('name' => $_POST['name'], 'street' => $_POST['street'], 'zip' => $_POST['zip'], 'city' => $_POST['city'], 'state' => $_POST['state'], 'country' => $_POST['country'], 'phone' => $_POST['phone'], 'internet' => $_POST['internet'], 'email' => $_POST['email']); if ($values['name'] !== '') { if ($this->isClient($values) !== true) { $this->addClient($values); $tpl->setNotification('ADD_CLIENT_SUCCESS', 'success'); } else { $tpl->setNotification('CLIENT_EXISTS', 'error'); } } else { $tpl->setNotification('NO_NAME', 'error'); } $tpl->assign('values', $values); } $tpl->display('clients.newClient'); } else { $tpl->display('general.error'); } }
/** * run - display template and edit data * * @access public */ public function run() { $tpl = new template(); //Only admins if ($_SESSION['userdata']['role'] == 'admin') { if (isset($_GET['id']) === true) { $id = (int) $_GET['id']; $row = $this->getClient($id); $msgKey = ''; $values = array('name' => $row['name'], 'street' => $row['street'], 'zip' => $row['zip'], 'city' => $row['city'], 'state' => $row['state'], 'country' => $row['country'], 'phone' => $row['phone'], 'internet' => $row['internet'], 'email' => $row['email']); if (isset($_POST['save']) === true) { $values = array('name' => $_POST['name'], 'street' => $_POST['street'], 'zip' => $_POST['zip'], 'city' => $_POST['city'], 'state' => $_POST['state'], 'country' => $_POST['country'], 'phone' => $_POST['phone'], 'internet' => $_POST['internet'], 'email' => $_POST['email']); if ($values['name'] !== '') { $this->editClient($values, $id); $tpl->setNotification('EDIT_CLIENT_SUCCESS', 'success'); } else { $tpl->setNotification('NO_NAME', 'error'); } } $tpl->assign('values', $values); $tpl->display('clients.editClient'); } else { $tpl->display('general.error'); } } else { $tpl->display('general.error'); } }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); //Only Admins if ($_SESSION['userdata']['role'] == 'admin') { if (isset($_GET['id']) === true) { $id = (int) $_GET['id']; $user = $this->getUser($id); $msgKey = ''; //Delete User if (isset($_POST['del']) === true) { $this->deleteUser($id); $msgKey = 'USER_DELETED'; } //Assign variables $tpl->assign('msg', $msgKey); $tpl->assign('user', $user); $tpl->display('users.delUser'); } else { $tpl->display('general.error'); } } else { $tpl->display('general.error'); } }
public function run() { $tpl = new template(); $file = 'config/configuration.php'; if (file_exists($file) === true) { if (substr(decoct(fileperms($file)), 2) != 777) { $tpl->assign('info', 'configuration.php nicht beschreibbar'); } $config = new config(); $values = array('sitename' => $config->sitename, 'dbHost' => $config->dbHost, 'dbUser' => $config->dbUser, 'dbDatabase' => $config->dbDatabase, 'dbPassword' => $config->dbPassword, 'userFilePath' => $config->userFilePath, 'maxFileSize' => $config->maxFileSize, 'email' => $config->email, 'adminUserName' => $config->adminUserName, 'adminUserPassword' => $config->adminUserPassword, 'adminFirstname' => $config->adminFirstname, 'adminLastname' => $config->adminLastname, 'adminEmail' => $config->adminEmail, 'sessionpassword' => $config->sessionpassword); if (isset($_POST['save'])) { $fileContent = '<?php class config { /* General */ public $sitename = "' . htmlspecialchars($_POST['sitename']) . '"; /* Database */ public $dbHost="' . htmlspecialchars($_POST['host']) . '"; public $dbUser="******"; public $dbPassword="******"; public $dbDatabase="' . htmlspecialchars($_POST['database']) . '"; public $adminUserName = "******"; public $adminUserPassword = "******"; public $adminFirstname = "' . htmlspecialchars($_POST['adminFirstname']) . '"; public $adminLastname = "' . htmlspecialchars($_POST['adminLastname']) . '"; public $adminEmail = "' . htmlspecialchars($_POST['adminEmail']) . '"; /* Fileupload */ public $userFilePath="' . htmlspecialchars($_POST['path']) . '"; public $maxFileSize = "' . htmlspecialchars($_POST['filesize']) . '"; /* Sessions */ public $sessionpassword = "******"; /* Email */ public $email = "' . htmlspecialchars($_POST['email']) . '"; } ?>'; if (substr(decoct(fileperms($file)), 2) == 777) { $fp = fopen($file, "w+"); fputs($fp, $fileContent); fclose($fp); $values = array('sitename' => htmlspecialchars($_POST['sitename']), 'dbHost' => htmlspecialchars($_POST['host']), 'dbUser' => htmlspecialchars($_POST['username']), 'dbPassword' => htmlspecialchars($_POST['password']), 'dbDatabase' => htmlspecialchars($_POST['database']), 'userFilePath' => htmlspecialchars($_POST['path']), 'maxFileSize' => htmlspecialchars($_POST['filesize']), 'email' => htmlspecialchars($_POST['email']), 'adminUserName' => htmlspecialchars($_POST['adminUserName']), 'adminUserPassword' => htmlspecialchars($_POST['adminUserPassword']), 'adminFirstname' => htmlspecialchars($_POST['adminFirstname']), 'adminLastname' => htmlspecialchars($_POST['adminLastname']), 'adminEmail' => htmlspecialchars($_POST['adminEmail']), 'sessionpassword' => $values['sessionpassword']); $tpl->assign('info', 'Einstellungen gespeichert'); } else { $tpl->assign('info', 'configuration.php nicht beschreibbar'); } } $tpl->assign('values', $values); $tpl->display('setting.editSettings'); } else { $tpl->display('general.error'); } }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); if (isset($_GET['id']) === true) { $id = (int) $_GET['id']; $row = $this->getRole($id); $infoKey = ''; //Get relations to menue $menues = $this->getDefaultMenu($id); //Build values array $values = array('roleName' => $row['roleName'], 'roleDescription' => $row['roleDescription'], 'menu' => $menues, 'sysOrg' => $row['sysOrg'], 'template' => $row['template']); if (isset($_POST['save'])) { if (isset($_POST['menu'])) { $menu = $_POST['menu']; } else { $menu[0] = ''; } $values = array('roleName' => $_POST['roleName'], 'roleDescription' => $_POST['roleDescription'], 'menu' => $menu, 'sysOrg' => $_POST['sysOrg'], 'template' => $_POST['template']); if ($values['roleName'] !== '') { $helper = new helper(); if ($this->roleAliasExist($values['roleName'], $id) === false) { if ($values['roleDescription'] !== '') { $this->editRole($values, $id); $infoKey = '<p>Erfolgreich bearbeitet</p>'; $row = $this->getRole($id); //Get relations to menue $menues = $this->getDefaultMenu($id); //Build values array $values = array('roleName' => $row['roleName'], 'roleDescription' => $row['roleDescription'], 'menu' => $menues, 'sysOrg' => $row['sysOrg'], 'template' => $row['template']); } else { $infoKey = 'Keine Beschreibung angegeben'; } } else { $infoKey = 'Rolle existiert bereits'; } } else { $infoKey = 'Keinen Rollen-Alias angegeben'; } } //Assign vars $tpl->assign('info', $infoKey); $tpl->assign('values', $values); $tpl->assign('templates', $this->getAllTemplates()); $tpl->assign('sysOrgs', $this->getAllSystemOrganisations()); $tpl->assign('menu', $this->getWholeMenu()); $tpl->display('setting.editRole'); } else { $tpl->display('general.error'); } }
/** * run - display template and edit data * * @access public */ public function run() { $tpl = new template(); //Only admins and employees if ($_SESSION['userdata']['role'] == 'admin' || $_SESSION['userdata']['role'] == 'employee') { if ($_SESSION['userdata']['role'] == 'admin') { $tpl->assign('admin', true); } $tpl->assign('allClients', $this->getAll()); $tpl->display('clients.showAll'); } else { $tpl->display('general.error'); } }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); //Only Admins if ($_SESSION['userdata']['role'] == 'admin') { //Assign vars $tpl->assign('allUsers', $this->getAll()); $tpl->assign('admin', true); $tpl->assign('roles', $this->getRoles()); $tpl->display('users.showAll'); } else { $tpl->display('general.error'); } }
public function run() { $tpl = new template(); $id = (int) $_GET['id']; if ($id > 0) { if (isset($_POST['save'])) { $values = array('street' => $_POST['street'], 'zip' => $_POST['zip'], 'city' => $_POST['city'], 'state' => $_POST['state'], 'country' => $_POST['country'], 'phone' => $_POST['phone'], 'internet' => $_POST['internet']); $this->addLeadContact($values, $id); $tpl->setNotification('EDIT_SUCCESS', 'success'); } } else { $tpl->display('general.error'); } $tpl->display('leads.addLeadContact'); }
public function run() { $tpl = new template(); $login = new login(session::getSID()); $tpl->assign('login', $login); $tpl->display('general.header'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); $tpl->assign('role', $_SESSION['userdata']['role']); $tpl->assign('allProjects', $this->getUserProjects()); $tpl->display('projects.showAll'); }
public function run() { $tpl = new template(); $language = new language(); $language->setModule('leads'); $language->readIni(); if (isset($_POST['save'])) { if (isset($_POST['name']) && isset($_POST['money']) && isset($_POST['referralSource'])) { $refValue = ''; if ($_POST['referralValueOther'] != '') { $refValue = $_POST['referralValueOther']; } else { if ($_POST['referralSource'] == 5 && $_POST['referralValueClient'] > 0) { $refValue = $_POST['referralValueClient']; } } $values = array('name' => $_POST['name'], 'refSource' => $_POST['referralSource'], 'refValue' => $refValue, 'potentialMoney' => $_POST['money'], 'creatorId' => $_SESSION['userdata']['id']); $contact = array('name' => $_POST['clientName'], 'street' => $_POST['street'], 'zip' => $_POST['zip'], 'city' => $_POST['city'], 'state' => $_POST['state'], 'country' => $_POST['country'], 'phone' => $_POST['phone'], 'email' => $_POST['email'], 'internet' => $_POST['internet']); if ($this->isLead($values['name']) !== true) { $leadId = $this->addLead($values); $this->addLeadContact($contact, $leadId); $tpl->setNotification('EDIT_SUCCESS', 'success'); } else { $tpl->setNotification('LEAD_EXISTS', 'error'); } } else { $tpl->setNotification('MISSING_FIELDS', 'error'); } } $client = new clients(); $tpl->assign('referralSources', $this->getReferralSources()); $tpl->assign('clients', $client->getAll()); $tpl->display('leads.addLead'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); //Assign vars $tpl->assign('allSystemOrgs', $this->getAllSystemOrganisations()); $tpl->display('setting.showAllSystemOrg'); }
public function run() { $tpl = new template(); $tpl->assign('menu', $this); $tpl->assign('menus', $this->getMenus()); $tpl->display('general.menu'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); $infoKey = ''; //Build values array $values = array('name' => '', 'parent' => '', 'module' => '', 'action' => '', 'icon' => ''); if (isset($_POST['save'])) { if (isset($_POST['module'])) { $module = str_replace('index.php?act=', '', $_POST['module']); $module = explode('.', $module); $action = $module[1]; $module = $module[0]; $values = array('name' => $_POST['name'], 'parent' => $_POST['parent'], 'module' => $module, 'action' => $action, 'icon' => $_POST['icon']); $this->addMenu($values); $tpl->setNotification('New menu item successfully created', 'success'); // $infoKey = '<p>Erfolgreich hinzugefügt</p>'; } else { $tpl->setNotification('MISSING_FIELDS', 'error'); } } $getModuleLinks = $this->getAllModulesAsLinks(); $tpl->assign('wholeMenu', $this->getWholeMenu()); $tpl->assign('moduleLinks', $getModuleLinks); $tpl->assign('info', $infoKey); $tpl->assign('values', $values); $tpl->assign('applications', $this->applications); $tpl->display('setting.addMenu'); }
/** * 2Moons * Copyright (C) 2012 Jan Kröpke * * 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 3 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, see <http://www.gnu.org/licenses/>. * * @package 2Moons * @author Jan Kröpke <*****@*****.**> * @copyright 2012 Jan Kröpke <*****@*****.**> * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License * @version 1.7.3 (2013-05-19) * @info $Id: ShowIndexPage.php 2632 2013-03-18 19:05:14Z slaver7 $ * @link http://2moons.cc/ */ function ShowIndexPage() { global $CONF, $LNG; $template = new template(); $template->assign_vars(array('game_name' => Config::get('game_name'), 'adm_cp_title' => $LNG['adm_cp_title'], 'sid' => session_id())); $template->display('adm/ShowIndexPage.tpl'); }
public function display($file = null) { if (!$file) { $file = $this->getTemplateFileName(); } parent::display($file); }
public function run() { // Hier instanzieren wir die Template Engine $tpl = new template(); $users = $this->getUsers(); $user = ''; if (isset($_POST['user']) === true && $_POST['user'] != "") { $user = htmlentities($_POST['user']); } if (isset($_POST['save']) === true && $_POST['save'] != "") { if (isset($_POST['menu']) === true) { $menu = $_POST['menu']; } else { $menu = array(); } $info = 'Änderungen gespeichert'; $this->deleteAllRelations($user); $this->insertRelations($menu, $user); } else { $info = ''; } $tpl->assign('users', $users); $tpl->assign('user', $user); $tpl->assign('info', $info); $tpl->assign('menu', $this->getMenu($user)); $tpl->display('setting.userMenu'); }
public function run() { // Hier instanzieren wir die Template Engine $tpl = new template(); // Und zu guter letzt zeigen wir das Template an. $tpl->display('general.footer'); }
function render($page_view, $variables = array(), $cache = false) { //判断模板引擎类是否加载 if (!class_exists('template')) { $this->easyRender($page_view, $variables); return; } //生成模板对象 $tpl = new template(); //缓存设置 if ($cache != false) { $tpl->setCacheLifetime($cache); } //向模板传入变量 $keys = array_keys($variables); foreach ($variables as $key => $value) { $tpl->assign($key, $value); } //读取模板并输出 if (file_exists('Views/templates/' . $page_view . '.html')) { $tpl->display($page_view . '.html'); } else { include 'Views/404.php'; } }
/** _ \_/ |\ | /¯¯\ \ / /\ |¯¯) |_¯ \ / /¯¯\ | | |´¯|¯` | /¯¯\ |\ |5 ¯ /¯\ | \| \__/ \/ /--\ |¯¯\ |__ \/ \__/ |__ \_/ | | \__/ | \|Core. * @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution * @link: http://www.xnovarevolution.con.ar * @package 2Moons * @author Slaver <*****@*****.**> * @copyright 2009 Lucky <*****@*****.**> (XGProyecto) * @copyright 2011 Slaver <*****@*****.**> (Fork/2Moons) * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License * @version 1.3 (2011-01-21) * @link http://code.google.com/p/2moons/ * Please do not remove the credits */ function ShowIndexPage() { global $CONF, $LNG; $template = new template(); $template->assign_vars(array('game_name' => $CONF['game_name'], 'adm_cp_title' => $LNG['adm_cp_title'])); $template->display('adm/ShowIndexPage.tpl'); }
/** * run - display template and edit data * * @access public */ public function run() { $tpl = new template(); $helper = new helper(); $values = array('description' => '', 'dateFrom' => '', 'dateTo' => '', 'allDay' => ''); if (isset($_POST['save']) === true) { if (isset($_POST['allDay']) === true) { $allDay = 'true'; } else { $allDay = 'false'; } if (isset($_POST['dateFrom']) === true && isset($_POST['timeFrom']) === true) { $dateFrom = $helper->date2timestamp($_POST['dateFrom'], $_POST['timeFrom']); } if (isset($_POST['dateTo']) === true && isset($_POST['timeTo']) === true) { $dateTo = $helper->date2timestamp($_POST['dateTo'], $_POST['timeTo']); } $values = array('description' => $_POST['description'], 'dateFrom' => $dateFrom, 'dateTo' => $dateTo, 'allDay' => $allDay); if ($values['description'] !== '') { if ($helper->validateTime($_POST['timeFrom']) === true) { $this->addEvent($values); $msgKey = $tpl->setNotification('SAVE_SUCCESS', 'success'); } else { $tpl->setNotification('WRONG_TIME_FORMAT', 'error'); } } else { $tpl->setNotification('NO_DESCRIPTION', 'error'); } $tpl->assign('values', $values); } $tpl->assign('helper', $helper); $tpl->display('calendar.addEvent'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); //Assign vars $tpl->assign('allRoles', $this->getRoles()); $tpl->display('setting.showAllRoles'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); $infoKey = ''; //Build values array $values = array('name' => '', 'alias' => '', 'modules' => array()); if (isset($_POST['save'])) { $modules = ''; foreach ($_POST['modules'] as $row) { $modules .= $row . ','; } $values = array('name' => $_POST['name'], 'alias' => $_POST['alias'], 'modules' => $modules); if ($values['name'] !== '') { $helper = new helper(); if ($values['alias'] !== '') { $this->newSystemOrg($values); $infoKey = '<p>Erfolgreich hinzugefügt</p>'; $values['modules'] = explode(',', $values['modules']); } else { $infoKey = 'Keine Beschreibung angegeben'; } } else { $infoKey = 'Keinen Alias angegeben'; } } //Assign vars $tpl->assign('modules', $this->getAllModules()); $tpl->assign('info', $infoKey); $tpl->assign('values', $values); $tpl->display('setting.newSystemOrg'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); $action = base64_decode($_GET['action']); $infoKey = ''; $roles = $this->getRoles(); $tabRights = $this->getTabRights($action); if (isset($_POST['saveTabs'])) { $i = 0; foreach ($tabRights as $key => $value) { if (isset($_POST['' . $key . '-select']) === true) { $arrayRoles = $_POST['' . $key . '-select']; $moduleRoles = ''; foreach ($_POST['' . $key . '-select'] as $row2) { $moduleRoles .= $row2 . '|'; } $values[$i]['action'] = $action; $values[$i]['tab'] = $key; $values[$i]['tabRights'] = $moduleRoles; $i++; } } $this->saveTabRights($action, $values); $infoKey = "Tab Rechte gespeichert"; $tabRights = $this->getTabRights($action); } //Assign vars $tpl->assign('action', $action); $tpl->assign('tabArray', $tabRights); $tpl->assign('roles', $roles); $tpl->assign('info', $infoKey); $tpl->display('setting.editTabRights'); }
public function run() { // Hier instanzieren wir die Template Engine $tpl = new template(); $modules = $this->getAllModules(); $info = ''; $roles = $this->getRoles(); $rightsArray = $this->getModuleRights(); if (isset($_POST['save']) === true && $_POST['save'] != "") { $values = array(); $i = 0; foreach ($modules as $key => $value) { foreach ($value as $row) { $module = $row; $moduleName = str_replace(".", "-", $row); if (isset($_POST['' . $key . '-' . $moduleName . '-select']) === true) { $moduleRoles = implode(',', $_POST['' . $key . '-' . $moduleName . '-select']); $values[$i]['module'] = $key . '/' . $module; $values[$i]['moduleRoles'] = $moduleRoles; $i++; } } } $this->updateModuleRights($values); $modules = $this->getAllModules(); $rightsArray = $this->getModuleRights(); } $tpl->assign('rightsArray', $rightsArray); $tpl->assign('sysOrgs', $this->getAllSystemOrganisations()); $tpl->assign('roles', $roles); $tpl->assign('modules', $modules); $tpl->assign('this', $this); $tpl->assign('info', $info); $tpl->display('setting.setModuleRights'); }
/** * 2Moons * Copyright (C) 2012 Jan Kröpke * * 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 3 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, see <http://www.gnu.org/licenses/>. * * @package 2Moons * @author Jan Kröpke <*****@*****.**> * @copyright 2012 Jan Kröpke <*****@*****.**> * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License * @version 1.7.2 (2013-03-18) * @info $Id$ * @link http://2moons.cc/ */ function ShowIndexPage() { global $LNG; $template = new template(); $template->assign_vars(array('game_name' => Config::get()->game_name, 'adm_cp_title' => $LNG['adm_cp_title'])); $template->display('adm/ShowIndexPage.tpl'); }
/** * run - display template and edit data * * @access public * */ public function run() { $tpl = new template(); //Assign vars $tpl->assign('allCalendars', $this->getMyGoogleCalendars()); $tpl->display('calendar.showAllGCals'); }