public function draw() { $main = new Skin("installer"); $head = new Skinlet("frame-public-head"); $main->setContent("head", $head->get()); $header = new Skinlet("header"); $main->setContent("header", $header->get()); $body = new Skinlet("installer_databaseform"); $main->setContent("body", $body->get()); $footer = new Skinlet("footer"); $main->setContent("footer", $footer->get()); $main->close(); }
public function updateOutput() { if ($this->validData) { header('Location: install_complete.php'); } else { $main = new Skin("installer"); $head = new Skinlet("frame-public-head"); $main->setContent("head", $head->get()); $header = new Skinlet("header"); $main->setContent("header", $header->get()); $body = new Skinlet("installer_template"); $main->setContent("body", $body->get()); $footer = new Skinlet("footer"); $main->setContent("footer", $footer->get()); $main->close(); } }
public function updateOutput() { if ($this->validData) { header('location: install_complete.php'); } else { $main = new Skin("system"); $head = new Skinlet("frame-private-head"); $main->setContent("head", $head->get()); $header = new Skinlet("header"); $header->setContent("webApp", 'Installing'); $main->setContent("header", $header->get()); $body = new Skinlet("installer_admin"); $main->setContent("body", $body->get()); $menu = new Skinlet("menu_installer"); $footer = new Skinlet("footer"); $menu->setContent('footer', $footer->get()); $main->setContent("menu", $menu->get()); $main->close(); } }
public function updateOutput() { $main = new Skin("system"); $head = new Skinlet("frame-private-head"); $main->setContent("head", $head->get()); $header = new Skinlet("header"); $header->setContent('webApp', 'Installing'); $main->setContent("header", $header->get()); $menu = new Skinlet('menu_installer'); $footer = new Skinlet("footer"); $menu->setContent("footer", $footer->get()); $main->setContent('menu', $menu->get()); if ($this->validData) { $body = new Skinlet("installer_databaseform"); } else { $body = new Skinlet("installer_init"); } $main->setContent("body", $body->get()); $main->close(); }
<?php session_start(); require "include/template2.inc.php"; require "include/beContent.inc.php"; require "include/content.inc.php"; if (!$_SESSION['username']) { $main = new Skin("nevia"); } else { $main = new Skin("loggato"); } $generic = new Content($genEntity); $generic->setTemplate("comearrivare"); $generic->setParameter("id", 2); $main->setContent("body", $generic->get()); $main->close();