Changeset 1743:a659700da036
- Timestamp:
- 09/06/13 21:36:57 (12 years ago)
- Branch:
- default
- Files:
-
- 9 edited
-
README.md (modified) (1 diff)
-
admin/install/check.php (modified) (1 diff)
-
admin/install/wizard.php (modified) (2 diffs)
-
debian/control (modified) (1 diff)
-
inc/config.php.in (modified) (1 diff)
-
inc/core/class.dc.blog.php (modified) (7 diffs)
-
inc/core/class.dc.core.php (modified) (1 diff)
-
locales/fr/main.po (modified) (1 diff)
-
plugins/importExport/inc/flat/class.flat.import.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
README.md
r1578 r1743 50 50 * iconv 51 51 * simplexml 52 * mysql, postgresql or sqlite52 * mysql, mysqli, postgresql or sqlite 53 53 * A database server (MySQL or PostgreSQL) or SQLite. 54 54 -
admin/install/check.php
r1179 r1743 49 49 } 50 50 51 if ($con->driver() == 'mysql' )51 if ($con->driver() == 'mysql' || $con->driver() == 'mysqli') 52 52 { 53 53 if (version_compare($con->version(),'4.1','<')) -
admin/install/wizard.php
r1399 r1743 55 55 } 56 56 57 $DBDRIVER = !empty($_POST['DBDRIVER']) ? $_POST['DBDRIVER'] : 'mysql ';57 $DBDRIVER = !empty($_POST['DBDRIVER']) ? $_POST['DBDRIVER'] : 'mysqli'; 58 58 $DBHOST = !empty($_POST['DBHOST']) ? $_POST['DBHOST'] : ''; 59 59 $DBNAME = !empty($_POST['DBNAME']) ? $_POST['DBNAME'] : ''; … … 179 179 '<form action="wizard.php" method="post">'. 180 180 '<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 181 form::combo('DBDRIVER',array( 'MySQL'=>'mysql','PostgreSQL'=>'pgsql'),$DBDRIVER).'</p>'.181 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('PostgreSQL')=>'pgsql'),$DBDRIVER).'</p>'. 182 182 '<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 183 183 form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. -
debian/control
r0 r1743 8 8 Package: dotclear 9 9 Architecture: all 10 Depends: ${misc:Depends}, apache2 | httpd | apache, libclearbricks, php5-pgsql | php5-sqlite | php5-mysql , php5-gd10 Depends: ${misc:Depends}, apache2 | httpd | apache, libclearbricks, php5-pgsql | php5-sqlite | php5-mysql | php5-mysqli, php5-gd 11 11 Suggests: php5-tidy 12 12 Description: DotClear 2 -
inc/config.php.in
r1535 r1743 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 // Database driver (mysql, pgsql, sqlite)14 // Database driver (mysql, mysqli, pgsql, sqlite) 15 15 define('DC_DBDRIVER',''); 16 16 -
inc/core/class.dc.blog.php
r1689 r1743 658 658 if (!$rs->isEmpty()) 659 659 { 660 if ($this->con->driver() == 'mysql' ) {660 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 661 661 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 662 662 } elseif ($this->con->driver() == 'pgsql') { … … 1828 1828 if (!$rs->isEmpty()) 1829 1829 { 1830 if ($this->con->driver() == 'mysql' ) {1830 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 1831 1831 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 1832 1832 } elseif ($this->con->driver() == 'pgsql') { … … 2187 2187 2188 2188 # mySQL uses "JOIN" synthax 2189 if ($this->con->driver() == 'mysql' ) {2189 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2190 2190 $strReq .= 2191 2191 'JOIN '.$this->prefix.'post tp ON tc.post_id = tp.post_id '; … … 2196 2196 2197 2197 # pgSQL uses "FROM" synthax 2198 if ($this->con->driver() != 'mysql' ) {2198 if ($this->con->driver() != 'mysql' || $this->con->driver() == 'mysqli') { 2199 2199 $strReq .= 2200 2200 'FROM '.$this->prefix.'post tp '; … … 2206 2206 2207 2207 # add pgSQL "WHERE" clause 2208 if ($this->con->driver() != 'mysql' ) {2208 if ($this->con->driver() != 'mysql' || $this->con->driver() == 'mysqli') { 2209 2209 $strReq .= 2210 2210 'AND tc.post_id = tp.post_id '; … … 2265 2265 2266 2266 # mySQL uses "INNER JOIN" synthax 2267 if ($this->con->driver() == 'mysql' ) {2267 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2268 2268 $strReq = 2269 2269 'DELETE FROM tc '. … … 2302 2302 2303 2303 # mySQL uses "INNER JOIN" synthax 2304 if ($this->con->driver() == 'mysql' ) {2304 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2305 2305 $strReq = 2306 2306 'DELETE FROM tc '. -
inc/core/class.dc.core.php
r1698 r1743 64 64 if ($this->con instanceof mysqlConnection) { 65 65 mysqlConnection::$weak_locks = true; 66 } elseif ($this->con instanceof mysqliConnection) { 67 mysqliConnection::$weak_locks = true; 66 68 } 67 69 -
locales/fr/main.po
r1728 r1743 3330 3330 msgid "You do not have sufficient permissions to write to this folder." 3331 3331 msgstr "Vous n'avez pas les droits suffisants pour écrire dans ce répertoire." 3332 3333 msgid "MySQL (deprecated)" 3334 msgstr "MySQL (obsolète)" -
plugins/importExport/inc/flat/class.flat.import.php
r1093 r1743 160 160 if (in_array($last_line_name,$constrained)) { 161 161 # UNDEFER 162 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 1');162 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 1'); 163 163 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 164 164 } … … 166 166 if (in_array($line->__name,$constrained)) { 167 167 # DEFER 168 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 0');168 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 0'); 169 169 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 170 170 } … … 205 205 } 206 206 207 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 1');207 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 1'); 208 208 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 209 209 }
Note: See TracChangeset
for help on using the changeset viewer.
