當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Install::init方法代碼示例

本文整理匯總了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>';
        }
    }
開發者ID:studywithyou,項目名稱:PHP-audio-recorder,代碼行數:10,代碼來源:__install__app.php

示例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}
開發者ID:bk-amahi,項目名稱:esoTalk,代碼行數:31,代碼來源:index.php

示例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>
開發者ID:DaiDanRui,項目名稱:LinHang,代碼行數:17,代碼來源:test.php

示例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>
開發者ID:joshjim27,項目名稱:jobsglobal,代碼行數:30,代碼來源:install.php

示例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();
開發者ID:infrajs,項目名稱:infra,代碼行數:15,代碼來源:index.php


注:本文中的Install::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。