Changeset 336 for trunk/install
- Timestamp:
- Sep 23, 2020, 11:32:27 AM (4 years ago)
- Location:
- trunk/install
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/common.php
r2 r336 33 33 $arr[$name] = strip_tags( $arr[$name] ); 34 34 } 35 if (!get_magic_quotes_gpc()) { 36 $arr[$name] = addslashes( $arr[$name] ); 37 } 35 $arr[$name] = addslashes( $arr[$name] ); 38 36 } 39 37 return $arr[$name]; -
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.