Skip to content

Commit

Permalink
3.0.10
Browse files Browse the repository at this point in the history
Working on #3937
  • Loading branch information
nilsteampassnet committed Nov 14, 2023
1 parent ab4baaa commit f64bca3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
define('TP_VERSION', '3.0.10');
define("UPGRADE_MIN_DATE", "1697990713");
define('TP_VERSION_MINOR', '131');
define('TP_VERSION_MINOR', '133');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
4 changes: 2 additions & 2 deletions install/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function checkPage()
} else {
jsonValues = {"absolute_path":$("#absolute_path").val(), "url_path":$("#url_path").val()};
dataToUse = JSON.stringify(jsonValues);
tasks = ["folder*install", "folder*includes", "folder*includes/config", "folder*includes/avatars", "folder*includes/libraries/csrfp/libs", "folder*includes/libraries/csrfp/js", "folder*includes/libraries/csrfp/log", "extension*mbstring", "extension*openssl", "extension*bcmath", "extension*iconv", "extension*gd", "extension*xml", "extension*curl", "version*php", "ini*max_execution_time", "extension*gmp", "folder*files", "folder*upload", "misc*settings_creation"];
tasks = ["misc*settings_creation", "folder*install", "folder*includes", "folder*includes/config", "folder*includes/avatars", "folder*includes/libraries/csrfp/libs", "folder*includes/libraries/csrfp/js", "folder*includes/libraries/csrfp/log", "extension*mbstring", "extension*openssl", "extension*bcmath", "extension*iconv", "extension*gd", "extension*xml", "extension*curl", "version*php", "ini*max_execution_time", "extension*gmp", "folder*files", "folder*upload"];
multiple = true;
$("#hid_absolute_path").val($("#absolute_path").val());
$("#hid_url_path").val($("#url_path").val());
Expand Down Expand Up @@ -297,7 +297,7 @@ function doGetJson(task)
}
} else {
$("#res"+step+"_check"+data[0].index).html('<i class="fas fa-check text-success"></i>');
$("#res"+step+"_check19").html('<i class="fas fa-check text-success"></i>');
$("#res"+step+"_check99").html('<i class="fas fa-check text-success"></i>');
}

if (data[0].result !== undefined && data[0].result !== "" ) {
Expand Down
22 changes: 1 addition & 21 deletions install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,27 +186,6 @@
</div>
</div>';

// copy settings.sample.php to settings.php
$settings_sample = '../includes/config/settings.sample.php';
$settings = '../includes/config/settings.php';
if (file_exists($settings) === false) {
if (copy($settings_sample, $settings) === false) {
echo '
<div class="row">
<div class="col-12">
<div class="card card-warning">
<div class="card-header">
<h5>Your attention</h5>
</div>
<div class="card-body">
File ' . $settings . ' could not be copied from '.$settings_sample.'. Please do it on your own and refresh the page!
</div>
</div>
</div>
</div>';
}
}

echo '
<div class="row">
<div class="col-12">
Expand All @@ -217,6 +196,7 @@
<div class="card-body">
<ul>
<li>File "/includes/config/settings.php is available"&nbsp;<span id="res2_check99"></span></li>
<li>Directory "/install/" is writable&nbsp;<span id="res2_check0"></span></li>
<li>Directory "/includes/" is writable&nbsp;<span id="res2_check1"></span></li>
<li>Directory "/includes/config/" is writable&nbsp;<span id="res2_check2"></span></li>
Expand Down
4 changes: 2 additions & 2 deletions install/install.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
$settings_sample = 'includes/config/settings.sample.php';
$settings = 'includes/config/settings.php';
if (copy('../'.$settings_sample, '../'.$settings) === false) {
echo '[{"error" : "File <i>' . $settings . '</i> could not be created from <i>'.$settings_sample.'</i>. Please do it on your own and refresh the page!", "index" : "19", "multiple" : "' . $post_multiple . '"}]';
die();
echo '[{"error" : "File <i>' . $settings . '</i> could not be copied from <i>'.$settings_sample.'</i>.<br>Please do it on your own or change folder rights, and refresh the page!", "index" : "99", "multiple" : "' . $post_multiple . '"}]';
exit();
}
}

Expand Down

0 comments on commit f64bca3

Please sign in to comment.