Feature #272 - Updating some comments.

skala
Ivan Tcholakov 16 years ago
parent 31a3605eea
commit 81f91d0d7f
  1. 12
      main/inc/global.inc.php
  2. 4
      main/inc/lib/session_handler.class.php
  3. 4
      main/install/compare_db.php
  4. 2
      main/install/install_db.inc.php
  5. 4
      main/install/install_functions.inc.php
  6. 2
      main/install/update-db-1.6.x-1.8.0.inc.php
  7. 2
      main/install/update-db-1.8.0-1.8.2.inc.php
  8. 2
      main/install/update-db-1.8.2-1.8.3.inc.php
  9. 2
      main/install/update-db-1.8.3-1.8.4.inc.php
  10. 2
      main/install/update-db-1.8.4-1.8.5.inc.php
  11. 2
      main/install/update-db-1.8.5-1.8.6.inc.php
  12. 2
      main/install/update-db-1.8.6-1.8.6.1.inc.php
  13. 2
      main/install/update-db-1.8.6.1-1.8.6.2.inc.php
  14. 2
      main/install/update-db-1.8.6.2-1.8.7.inc.php
  15. 2
      main/install/update_db.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'];
}

@ -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)

@ -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');

@ -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] != '/')

@ -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");

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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='';");
/*

Loading…
Cancel
Save