Added a lot of code to um and rr new system

This commit is contained in:
Arturo Gonzalez 2017-03-15 10:24:29 +01:00
parent a4512ceae2
commit adb055b13c
3 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,7 @@ echo "<img src='images/wait.gif' />";
echo "</span><br><br>";
echo "<div><b>" . __('The last version of package installed is:') . "</b></div><br>";
echo "<div style='color:#82b92e;font-size:40pt;font-weight:bold;'>" . $current_package . "</div>";
echo "<div id='pkg_version' style='color:#82b92e;font-size:40pt;font-weight:bold;'>" . $current_package . "</div>";
echo "<div class='checking_package' style='font-size:18pt;width:100%; text-align: center; display: none;'>";
echo __('Checking for the newest package.');

View File

@ -41,7 +41,7 @@ if (is_ajax ()) {
$message = "<div>";
$message .= "<div style='width:25%; float:left'><img style='padding-left:20px; padding-top:20px;' src='images/icono_error_mr.png'></div>";
$message .= "<div style='width:75%; float:left;'><h3><strong style='font-family:Verdana; font-size:13pt;'>ERROR</strong></h3>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>The sql file contains a dangerous query</p></div>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>" . __('The sql file contains a dangerous query') . "</p></div>";
$message .= "</div>";
fwrite($error_file, $message);
@ -88,7 +88,7 @@ if (is_ajax ()) {
$message = "<div>";
$message .= "<div style='width:25%; float:left'><img style='padding-left:20px; padding-top:20px;' src='images/icono_error_mr.png'></div>";
$message .= "<div style='width:75%; float:left;'><h3><strong style='font-family:Verdana; font-size:13pt;'>ERROR</strong></h3>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>An error occurred while updating the database schema to the minor release " . $number . "</p></div>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>" . __('An error occurred while updating the database schema to the minor release ') . $number . "</p></div>";
$message .= "</div>";
fwrite($error_file, $message);
@ -102,7 +102,7 @@ if (is_ajax ()) {
$message = "<div>";
$message .= "<div style='width:25%; float:left'><img style='padding-left:20px; padding-top:20px;' src='images/icono_error_mr.png'></div>";
$message .= "<div style='width:75%; float:left;'><h3><strong style='font-family:Verdana; font-size:13pt;'>ERROR</strong></h3>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>The directory " . $dir . " should have read permissions in order to update the database schema</p></div>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>" . __('The directory ') . $dir . __(' should have read permissions in order to update the database schema') . "</p></div>";
$message .= "</div>";
fwrite($error_file, $message);
@ -115,7 +115,7 @@ if (is_ajax ()) {
$message = "<div>";
$message .= "<div style='width:25%; float:left'><img style='padding-left:20px; padding-top:20px;' src='images/icono_error_mr.png'></div>";
$message .= "<div style='width:75%; float:left;'><h3><strong style='font-family:Verdana; font-size:13pt;'>ERROR</strong></h3>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>The directory " . $dir . " does not exist</p></div>";
$message .= "<p style='font-family:Verdana; font-size:12pt;'>" . __('The directory ') . $dir . __(' does not exist') . "</p></div>";
$message .= "</div>";
fwrite($error_file, $message);

View File

@ -236,7 +236,7 @@ if ($install_package) {
}
else {
$return["status"] = "error";
$return["message"]= __("Package not accepted");
$return["message"]= __("Package rejected.");
echo json_encode($return);
return;
}
@ -460,7 +460,7 @@ if ($update_last_free_package) {
}
else {
$return["in_progress"] = false;
$return["message"] = __("Package not accepted.");
$return["message"] = __("Package rejected.");
echo json_encode($return);
}