public function install() { $install = new Install($this->m_db); if ($install->init()) { echo '<h2>Installation succeeded.</h2> <p><a href="./">Go to application</a><p>'; } else { echo '<h2>Installation failed.</h2>'; } }
return "<input class='button{$class}'{$id}{$style}{$attr}/>"; } // If magic quotes is on, strip the slashes that it added if (get_magic_quotes_gpc()) { $_GET = array_map("undoMagicQuotes", $_GET); $_POST = array_map("undoMagicQuotes", $_POST); $_COOKIE = array_map("undoMagicQuotes", $_COOKIE); } // Clean and sterilize the request data $_POST = sanitize($_POST); $_GET = sanitize($_GET); $_COOKIE = sanitize($_COOKIE); // Set up the Install controller require "install.controller.php"; $install = new Install(); $install->init(); ?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> <!-- This page was generated by esoTalk (http://esotalk.com) --> <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> <head> <title>esoTalk Installer</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <script type='text/javascript' src='../js/esotalk.js'></script> <style type='text/css'> body {background:#fff; font-size:75%} body, input, select, textarea, table {font-family:arial, helvetica, sans-serif; margin:0} input, select, textarea {font-size:100%} #container {margin:50px auto 0 auto; width:55em; background:#f5f5ff; padding:20px; font-size:120%} #container h1 {margin:0 0 20px 0; font-size:160%; font-weight:normal} #container h1 img {vertical-align:middle; margin-right:15px}
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> init result:<br> <?php include 'Install.php'; $a = new Install(); $a->init(); ?> </body> </html>
public function init() { $this->connectDB(); $this->create_tables(); //$this->write_hardcode(); $cname = $_POST['driver']; require 'integ/' . $cname . '.php'; $cls = new $cname(); $cls->path_host = $this->path_host; $output = $cls->info($this->path_host); $output['auto_install'] = $cls->self_install(); return $output; } } $install = new Install(); $info = $install->init(); require "header.php"; ?> <script> $(document).ready(function() { //$('#content_manual').dialog({autoOpen: false, minWidth: 800, title: "Manual Installation"}); }); function maximize() { $('#content_manual').modal(); } </script>
<?php namespace infrajs\infra; use infrajs\access\Access; use infrajs\path\Path; if (!is_file('vendor/autoload.php')) { chdir('../../../'); } require_once 'vendor/autoload.php'; Config::init(); Access::modified(); Access::headers(); Install::init(); Path::init();