本文整理匯總了PHP中Install::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Install::init方法的具體用法?PHP Install::init怎麽用?PHP Install::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Install
的用法示例。
在下文中一共展示了Install::init方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: install
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>';
}
}
示例2: sanitize
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}
示例3: Install
<!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>
示例4: init
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>
示例5: chdir
<?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();