-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
887 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deny from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
if(!function_exists("_db")) { | ||
function _db($database = "mydb") { | ||
if(!isset(_noSQL_Static::$instances[$database])) { | ||
_noSQL_Static::$instances[$database] = new noSQLPDO($database); | ||
} | ||
return _noSQL_Static::$instances[$database]; | ||
} | ||
} | ||
|
||
function _noSQL($database = "mydb") { | ||
if(!isset(_noSQL_Static::$instances[$database])) { | ||
_noSQL_Static::$instances[$database] = new noSQLPDO($database); | ||
} | ||
return _noSQL_Static::$instances[$database]; | ||
} | ||
|
||
class _noSQL { | ||
function __construct($database) { | ||
return _noSQL($database); | ||
} | ||
} | ||
|
||
class _noSQL_Static { | ||
public static $instances; | ||
} | ||
|
||
require_once(dirname(__FILE__)."/_sources/".NOSQL_VERSION."/pdo.php"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
// Default is ./_database/ - However, I recommened put it in security folder on your server | ||
// Example: outside public_html and www | ||
define("NOSQL_DATABASE_PATH",dirname(__FILE__)."/_database/"); | ||
|
||
// Set it to Write Permission change it if you know what you doing. | ||
define("NOSQL_PERMISSION", 0777); | ||
|
||
// change to upgrade to new version | ||
define("NOSQL_VERSION","release2.0"); | ||
|
||
// e-mail report problems - Bugs Tracking | ||
define("NOSQL_EMAIL_ADMIN","[email protected]"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deny from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deny from all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
header("location: http://www.php.social"); |
Oops, something went wrong.