Skip to content

Commit 1b13787

Browse files
committed
Added automatic CSDB base class inclusion.
1 parent 29a180f commit 1b13787

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

support/db_mysql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft MySQL/Maria DB database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_mysql extends CSDB
88
{

support/db_mysql_lite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft MySQL/Maria DB lightweight database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_mysql_lite extends CSDB
88
{

support/db_oci.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// Thank you for your contribution!
66
//
77
// Used with permission under the CubicleSoft dual MIT/LGPL license.
8-
// Some portions (C) 2015 CubicleSoft. All Rights Reserved.
8+
// Some portions (C) 2016 CubicleSoft. All Rights Reserved.
99

1010
// This is an early beta - use at your own risk!
1111

12-
if (!class_exists("CSDB")) exit();
12+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
1313

1414
class CSDB_oci extends CSDB
1515
{

support/db_oci_lite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// Thank you for your contribution!
66
//
77
// Used with permission under the CubicleSoft dual MIT/LGPL license.
8-
// Some portions (C) 2015 CubicleSoft. All Rights Reserved.
8+
// Some portions (C) 2016 CubicleSoft. All Rights Reserved.
99

1010
// This is an early beta - use at your own risk!
1111

12-
if (!class_exists("CSDB")) exit();
12+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
1313

1414
class CSDB_oci_lite extends CSDB
1515
{

support/db_pgsql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft PostgreSQL database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_pgsql extends CSDB
88
{

support/db_pgsql_lite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft PostgreSQL database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_pgsql_lite extends CSDB
88
{

support/db_sqlite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft SQLite database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_sqlite extends CSDB
88
{

support/db_sqlite_lite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
// CubicleSoft SQLite lightweight database interface.
3-
// (C) 2015 CubicleSoft. All Rights Reserved.
3+
// (C) 2016 CubicleSoft. All Rights Reserved.
44

5-
if (!class_exists("CSDB")) exit();
5+
if (!class_exists("CSDB", false)) require_once str_replace("\\", "/", dirname(__FILE__)) . "/db.php";
66

77
class CSDB_sqlite_lite extends CSDB
88
{

0 commit comments

Comments
 (0)