diff --git a/main/inc/global.inc.php b/main/inc/global.inc.php index 65bc2f517c..0103da547f 100755 --- a/main/inc/global.inc.php +++ b/main/inc/global.inc.php @@ -51,7 +51,7 @@ if (file_exists($main_configuration_file_path)) { $_configuration = array(); } -// Ensure that _configuration is in the global scope before loading +// Ensure that _configuration is in the global scope before loading // main_api.lib.php. This is particularly helpful for unit tests if (!isset($GLOBALS['_configuration'])) { $GLOBALS['_configuration'] = $_configuration; @@ -108,7 +108,7 @@ if (!$_configuration['db_host']) { die(); } -// The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5. +// The system has not been designed to use special SQL modes that were introduced since MySQL 5. Database::query("set session sql_mode='';", __FILE__, __LINE__); if (!mysql_select_db($_configuration['main_database'], $dokeos_database_connection)) { @@ -400,7 +400,7 @@ if (api_get_self() == api_get_path(REL_PATH).'main/admin/sub_language.php' || ap $valid_languages = api_get_languages(); if(!empty($valid_languages)) { - + if (!in_array($user_language, $valid_languages['folder'])) { $user_language = api_get_setting('platformLanguage'); } @@ -412,17 +412,17 @@ if(!empty($valid_languages)) { } else { $platformLanguage = api_get_setting('platformLanguage'); } - + if (isset($_SESSION['user_language_choice'])) { $language_interface = $_SESSION['user_language_choice']; } else { $language_interface = api_get_setting('platformLanguage'); } - + if (isset($_user['language'])) { $language_interface = $_user['language']; } - + if ($_course['language']) { $language_interface = $_course['language']; } diff --git a/main/inc/lib/session_handler.class.php b/main/inc/lib/session_handler.class.php index e128852515..95ffefcab0 100755 --- a/main/inc/lib/session_handler.class.php +++ b/main/inc/lib/session_handler.class.php @@ -59,7 +59,7 @@ class session_handler { { $this->idConnexion=@mysql_connect($this->connexion['server'],$this->connexion['login'],$this->connexion['password'],true); - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';", $this->idConnexion); } @@ -80,7 +80,7 @@ class session_handler { } public function sqlQuery ($query,$die_on_error=true) { - + $result=mysql_query($query,$this->idConnexion); if($die_on_error && !$result) diff --git a/main/install/compare_db.php b/main/install/compare_db.php index 30cb954a7a..13c40af671 100755 --- a/main/install/compare_db.php +++ b/main/install/compare_db.php @@ -28,7 +28,7 @@ $prefix_new = 'dokeos180_'; $bases_new=array($prefix_new.'dokeos_main',$prefix_new.'dokeos_stats',$prefix_new.'dokeos_user','z'.$prefix_new.'COURSE',$prefix_new.'dokeos_scorm'); $db_new = mysql_connect($sql_server_new,$sql_user_new,$sql_pass_new) or die(mysql_error()); -// The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 +// The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';", $db_new); $sql_server_old='localhost'; @@ -38,7 +38,7 @@ $prefix_old = 'dokeos160_'; $bases_old=array($prefix_old.'dokeos_main',$prefix_old.'dokeos_stats',$prefix_old.'dokeos_user',$prefix_old.'COURSE',$prefix_old.'dokeos_scorm'); $db_old = mysql_connect($sql_server_old,$sql_user_old,$sql_pass_old) or die(mysql_error()); -// The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 +// The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';", $db_old); $field_details = array(0=>'Field',1=>'Type',2=>'Null',3=>'Key',4=>'Default',5=>'Extra'); diff --git a/main/install/install_db.inc.php b/main/install/install_db.inc.php index 85b7d3a5f0..db28c918c0 100755 --- a/main/install/install_db.inc.php +++ b/main/install/install_db.inc.php @@ -47,7 +47,7 @@ if(mysql_errno() > 0) exit(); } -// The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 +// The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); if($urlForm[strlen($urlForm)-1] != '/') diff --git a/main/install/install_functions.inc.php b/main/install/install_functions.inc.php index c2da18a410..c7c39f8408 100755 --- a/main/install/install_functions.inc.php +++ b/main/install/install_functions.inc.php @@ -272,7 +272,7 @@ function get_config_param_from_db($host,$login,$pass,$db_name,$param='') { $mydb = mysql_connect($host,$login,$pass); - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $myconnect = mysql_select_db($db_name); @@ -1206,7 +1206,7 @@ function test_db_connect ($dbHostForm, $dbUsernameForm, $dbPassForm, $singleDbFo return $res; } if ($res !== false) { - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $multipleDbCheck = @mysql_query("CREATE DATABASE ".$dbPrefixForm."test_dokeos_connection"); diff --git a/main/install/update-db-1.6.x-1.8.0.inc.php b/main/install/update-db-1.6.x-1.8.0.inc.php index 712d3bf487..ca3301bf56 100755 --- a/main/install/update-db-1.6.x-1.8.0.inc.php +++ b/main/install/update-db-1.6.x-1.8.0.inc.php @@ -111,7 +111,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.0-1.8.2.inc.php b/main/install/update-db-1.8.0-1.8.2.inc.php index 9006acff67..fbf445e8a8 100755 --- a/main/install/update-db-1.8.0-1.8.2.inc.php +++ b/main/install/update-db-1.8.0-1.8.2.inc.php @@ -111,7 +111,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.2-1.8.3.inc.php b/main/install/update-db-1.8.2-1.8.3.inc.php index 6d1541c396..0a01c8cb41 100755 --- a/main/install/update-db-1.8.2-1.8.3.inc.php +++ b/main/install/update-db-1.8.2-1.8.3.inc.php @@ -111,7 +111,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.3-1.8.4.inc.php b/main/install/update-db-1.8.3-1.8.4.inc.php index e3f0207969..d36d4bef37 100755 --- a/main/install/update-db-1.8.3-1.8.4.inc.php +++ b/main/install/update-db-1.8.3-1.8.4.inc.php @@ -111,7 +111,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.4-1.8.5.inc.php b/main/install/update-db-1.8.4-1.8.5.inc.php index 07d8780826..2c657973ce 100755 --- a/main/install/update-db-1.8.4-1.8.5.inc.php +++ b/main/install/update-db-1.8.4-1.8.5.inc.php @@ -93,7 +93,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.5-1.8.6.inc.php b/main/install/update-db-1.8.5-1.8.6.inc.php index 495550b786..6fa2183c5b 100755 --- a/main/install/update-db-1.8.5-1.8.6.inc.php +++ b/main/install/update-db-1.8.5-1.8.6.inc.php @@ -93,7 +93,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.6-1.8.6.1.inc.php b/main/install/update-db-1.8.6-1.8.6.1.inc.php index 69acc62b4c..3e7600e2c7 100755 --- a/main/install/update-db-1.8.6-1.8.6.1.inc.php +++ b/main/install/update-db-1.8.6-1.8.6.1.inc.php @@ -93,7 +93,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.6.1-1.8.6.2.inc.php b/main/install/update-db-1.8.6.1-1.8.6.2.inc.php index c7ff627d77..fb40d9b0b4 100755 --- a/main/install/update-db-1.8.6.1-1.8.6.2.inc.php +++ b/main/install/update-db-1.8.6.1-1.8.6.2.inc.php @@ -93,7 +93,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update-db-1.8.6.2-1.8.7.inc.php b/main/install/update-db-1.8.6.2-1.8.7.inc.php index 979d1ec8a1..a0441b4995 100755 --- a/main/install/update-db-1.8.6.2-1.8.7.inc.php +++ b/main/install/update-db-1.8.6.2-1.8.7.inc.php @@ -93,7 +93,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); $dblistres = mysql_list_dbs(); diff --git a/main/install/update_db.inc.php b/main/install/update_db.inc.php index 920323ca04..b961ff92f3 100755 --- a/main/install/update_db.inc.php +++ b/main/install/update_db.inc.php @@ -102,7 +102,7 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE')) exit (); } - // The Dokeos system has not been designed to use special SQL modes that were introduced since MySQL 5 + // The system has not been designed to use special SQL modes that were introduced since MySQL 5 @mysql_query("set session sql_mode='';"); /*