当前位置: 首页>>代码示例>>PHP>>正文


PHP connect::connectToDB方法代码示例

本文整理汇总了PHP中connect::connectToDB方法的典型用法代码示例。如果您正苦于以下问题:PHP connect::connectToDB方法的具体用法?PHP connect::connectToDB怎么用?PHP connect::connectToDB使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在connect的用法示例。


在下文中一共展示了connect::connectToDB方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Anthony

#  / __\ __ __ _ / _| |_ ___  __| / / /\ \ \___| |__
# / / | '__/ _` | |_| __/ _ \/ _` \ \/  \/ / _ \ '_ \
#/ /__| | | (_| |  _| ||  __/ (_| |\  /\  /  __/ |_) |
#\____/_|  \__,_|_|  \__\___|\__,_| \/  \/ \___|_.__/
#
#		-[ Created by �Nomsoft
#		  `-[ Original core by Anthony (Aka. CraftedDev)
#
#				-CraftedWeb Generation II-
#			 __                           __ _
#		  /\ \ \___  _ __ ___  ___  ___  / _| |_
#		 /  \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __|
#		/ /\  / (_) | | | | | \__ \ (_) |  _| |_
#		\_\ \/ \___/|_| |_| |_|___/\___/|_|  \__|	- www.Nomsoftware.com -
#                  The policy of Nomsoftware states: Releasing our software
#                  or any other files are protected. You cannot re-release
#                  anywhere unless you were given permission.
#                  � Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.
//This file exists just to clear some space from all the /scripts files.
session_start();
define('INIT_SITE', TRUE);
//Init config
require '../configuration.php';
require '../misc/connect.php';
require '../misc/func_lib.php';
require '../classes/account.php';
require '../classes/website.php';
require '../classes/character.php';
require '../classes/server.php';
connect::connectToDB();
开发者ID:nero08,项目名称:CraftedWeb,代码行数:30,代码来源:ext_scripts_class_loader.php

示例2: header

require 'includes/configuration.php';
//Load configuration file
if (isset($GLOBALS['not_installed']) && $GLOBALS['not_installed'] == true) {
    if (file_exists('install/index.php')) {
        header("Location: install/index.php");
    } else {
        exit('<b>Error</b>. It seems like your website is not yet installed, but no installer could be found!');
    }
}
if ($GLOBALS['maintainance'] == TRUE && !in_array($_SERVER['REMOTE_ADDR'], $GLOBALS['maintainance_allowIPs'])) {
    die("<center><h3>Website Maintainance</h3>\r\n      " . $GLOBALS['website_title'] . " is currently undergoing some major maintainance and will be available as soon as possible.\r\n      <br/><br/>Sincerely\r\n  </center>");
}
require 'includes/misc/connect.php';
//Load connection class
$connect = new connect();
$connect->connectToDB();
require 'includes/misc/func_lib.php';
require 'includes/misc/compress.php';
require 'includes/classes/account.php';
require 'includes/classes/server.php';
require 'includes/classes/website.php';
require 'includes/classes/shop.php';
require 'includes/classes/character.php';
require 'includes/classes/cache.php';
require 'includes/classes/plugins.php';
/******* LOAD PLUGINS ***********/
plugins::globalInit();
plugins::init('classes');
plugins::init('javascript');
plugins::init('modules');
plugins::init('styles');
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:loader.php


注:本文中的connect::connectToDB方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。