Changeset 336 for trunk/install/includes/database.php
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/includes/database.php
r2 r336 1 <?php1 <?php 2 2 3 3 /************************************************************************/ … … 53 53 * @param boolean If true and there is an error, go offline 54 54 */ 55 function database( $host='localhost', $user, $pass, $db='', $table_prefix='', $goOffline=true ) {55 function __construct( $host='localhost', $user, $pass, $db='', $table_prefix='', $goOffline=true ) { 56 56 // perform a number of fatality checks, then die gracefully 57 57 if (!function_exists( 'mysql_connect' )) { … … 141 141 return $q . $s . $q; 142 142 } else { 143 return $q{0} . $s . $q{1}; 143 # return $q{0} . $s . $q{1}; 144 return $q[0] . $s . $q[1]; 144 145 } 145 146 } … … 227 228 } 228 229 $l = $k - 1; 229 while ($l >= 0 && $sql {$l} == '\\') {230 while ($l >= 0 && $sql[$l] == '\\') { #deprecated 230 231 $l--; 231 232 $escaped = !$escaped; … … 680 681 * @param string $key name of the primary key field in the table 681 682 */ 682 function mosDBTable( $table, $key, &$db ) {683 function __construct( $table, $key, &$db ) { 683 684 $this->_tbl = $table; 684 685 $this->_tbl_key = $key;
Note:
See TracChangeset
for help on using the changeset viewer.