Changeset 4385 for trunk/admin/include
- Timestamp:
- Nov 29, 2009, 1:35:19 PM (15 years ago)
- Location:
- trunk/admin/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/c13y_internal.class.php
r4325 r4385 39 39 function c13y_version($c13y) 40 40 { 41 global $conf; 42 41 43 $check_list = array(); 42 44 … … 44 46 45 47 $db_version = pwg_get_db_version(); 46 $check_list[] = array('type' => 'MySQL', 'current' => $db_version, 'required' => REQUIRED_MYSQL_VERSION); 48 $check_list[] = array('type' => $conf['dblayer'], 49 'current' => $db_version, 50 'required' => constant('REQUIRED_'.strtoupper($conf['dblayer']).'_VERSION') 51 ); 47 52 48 53 foreach ($check_list as $elem) -
trunk/admin/include/functions.php
r4334 r4385 417 417 { 418 418 $query = ' 419 SELECT id, i f(id_uppercat is null,\'\',id_uppercat) AS id_uppercat, uppercats, rank, global_rank419 SELECT id, id_uppercat, uppercats, rank, global_rank 420 420 FROM '.CATEGORIES_TABLE.' 421 421 ORDER BY id_uppercat,rank,name'; -
trunk/admin/include/plugins.class.php
r4034 r4385 81 81 { 82 82 $query = ' 83 INSERT INTO ' . PLUGINS_TABLE . ' (id,version) VALUES ( "'84 . $plugin_id . ' ","' . $this->fs_plugins[$plugin_id]['version'] . '"83 INSERT INTO ' . PLUGINS_TABLE . ' (id,version) VALUES (\'' 84 . $plugin_id . '\',\'' . $this->fs_plugins[$plugin_id]['version'] . '\' 85 85 )'; 86 86 pwg_query($query); … … 111 111 $query = ' 112 112 UPDATE ' . PLUGINS_TABLE . ' 113 SET state= "active", version="'.$this->fs_plugins[$plugin_id]['version'].'"114 WHERE id= "' . $plugin_id . '"';113 SET state=\'active\', version=\''.$this->fs_plugins[$plugin_id]['version'].'\' 114 WHERE id=\'' . $plugin_id . '\''; 115 115 pwg_query($query); 116 116 } … … 127 127 } 128 128 $query = ' 129 UPDATE ' . PLUGINS_TABLE . ' SET state= "inactive" WHERE id="' . $plugin_id . '"';129 UPDATE ' . PLUGINS_TABLE . ' SET state=\'inactive\' WHERE id=\'' . $plugin_id . '\''; 130 130 pwg_query($query); 131 131 if (file_exists($file_to_include)) … … 145 145 } 146 146 $query = ' 147 DELETE FROM ' . PLUGINS_TABLE . ' WHERE id= "' . $plugin_id . '"';147 DELETE FROM ' . PLUGINS_TABLE . ' WHERE id=\'' . $plugin_id . '\''; 148 148 pwg_query($query); 149 149 if (file_exists($file_to_include))
Note: See TracChangeset
for help on using the changeset viewer.