if (!defined('AT_INCLUDE_PATH')) { exit; }
- function update_one_ver($up_file) {
- global $progress;
- $update_file = implode('_',$up_file);
- queryFromFile('db/'.$update_file.'sql');
- $progress[] = 'Successful update from version '.$up_file[2].' to '.$up_file[4];
- return $up_file[4];
- }
+function update_one_ver($up_file) {
+ global $progress;
+ $update_file = implode('_',$up_file);
+ queryFromFile('db/'.$update_file.'sql');
+ $progress[] = 'Successful update from version '.$up_file[2].' to '.$up_file[4];
+ return $up_file[4];
+}
+
+$_POST['db_login'] = urldecode($_POST['db_login']);
+$_POST['db_password'] = urldecode($_POST['db_password']);
unset($errors);
//check DB & table connection
if (!defined('AT_INCLUDE_PATH')) { exit; }
+$_POST['db_login'] = urldecode($_POST['db_login']);
+$_POST['db_password'] = urldecode($_POST['db_password']);
+
if(isset($_POST['submit']) && ($_POST['action'] == 'process')) {
unset($errors);
$comments = '/*'.str_pad(' This file was generated by the ATutor 1.5.2 installation script.', 70, ' ').'*/
/*'.str_pad(' File generated '.date('Y-m-d H:m:s'), 70, ' ').'*/';
+ $_POST['db_login'] = urldecode($_POST['db_login']);
+ $_POST['db_password'] = urldecode($_POST['db_password']);
+
write_config_file('../include/config.inc.php', $comments);
}