Skip to content
This repository was archived by the owner on Aug 25, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions inc/Core.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace UseBB;

class Core {

//the version of UseBB we are running
const Version = "2.0.0-dev";

static public function getVersion()
{
return Core::Version;
}

}
4 changes: 2 additions & 2 deletions config.php → inc/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
//
// Die when called directly in browser
//
if ( !defined('INCLUDED') )
exit();
if ( !defined('IN_USEBB') )
die('Hacking Attempt');

//
// Initialize a new database configuration holder array
Expand Down
15 changes: 15 additions & 0 deletions inc/db/MySQLI.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace UseBB\Db;

class MySQLI {

var $connection;
var $queries = array();
var $persistent;

function connect($config) {

}

}
25 changes: 25 additions & 0 deletions inc/init.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

// Disallow direct access to this file for security reasons
if(!defined("IN_USEBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_USEBB is defined.");
}


/* Defines the root directory for UseBB.

Uncomment the below line and set the path manually
if you experience problems.

Always add a trailing slash to the end of the path.

* Path to your copy of UseBB
*/
//define('USEBB_ROOT', "./");

// Attempt autodetection
if(!defined('USEBB_ROOT'))
{
define('USEBB_ROOT', dirname(dirname(__FILE__))."/");
}