Skip to content

Commit

Permalink
bump min PHP/MySQL versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKovacs committed May 1, 2023
1 parent f7b4891 commit 8f62d86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Install/InstallationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private function buildPage(): void
*/
private function serverRequirementes()
{
return !(version_compare(PHP_VERSION, '7.3.0', '<'));
return !(version_compare(PHP_VERSION, '7.4.0', '<'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Libraries/SecurePageLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private function validate($value)
if (!is_array($value)) {
$value = str_ireplace('script', 'blocked', $value);

if (version_compare(PHP_VERSION, '7.3.0', '<')) {
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
if (get_magic_quotes_gpc()) {
$value = htmlentities(stripslashes($value), ENT_QUOTES, 'UTF-8', false);
} else {
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/english/installation/installation_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$lang = [
// messages
'ins_no_server_requirements' => 'Your server / hosting does not meet the minimum requirements needed to run XG Proyect.<br /><br />Requirements: <br />- PHP 7.3+<br />- MySQL 5.5+',
'ins_no_server_requirements' => 'Your server / hosting does not meet the minimum requirements needed to run XG Proyect.<br /><br />Requirements: <br />- PHP 7.4+<br />- MySQL 5.7+',
'ins_not_writable' => 'You must provide write permission (chmod 777) to the config directory to continue with the installation.',
'ins_already_installed' => 'XG Proyect is already installed. Select an option: <br /><br /> - <a href="../admin.php?page=update">Update</a> <br /> - <a href="../admin.php?page=migrate">Migrate</a> <br /> - <a href="../">Back to the game</a> <br /><br />In case you do not want to take any action, for safety, we recommend <span style="color:red;text-decoration:underline;">DELETE</span> the install directory.',

Expand Down
2 changes: 1 addition & 1 deletion resources/lang/spanish/installation/installation_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$lang = [
// messages
'ins_no_server_requirements' => 'Tu servidor/hosting no cumple con los requisitos m&iacute;nimos que requiere XG Proyect para funcionar.<br /><br />Requisitos: <br />- PHP 7.3+<br />- MySQL 5.5+',
'ins_no_server_requirements' => 'Tu servidor/hosting no cumple con los requisitos m&iacute;nimos que requiere XG Proyect para funcionar.<br /><br />Requisitos: <br />- PHP 7.4+<br />- MySQL 5.7+',
'ins_not_writable' => 'Debes dar permisos de escritura (chmod 777) al directorio config para poder continuar con la instalación.',
'ins_already_installed' => 'XG Proyect ya se encuentra instalado. Selecciona una opci&oacute;n: <br /><br /> - <a href="../admin.php?page=update">Actualizar</a> <br /> - <a href="../admin.php?page=migrate">Migrar</a> <br /> - <a href="../">Volver al juego</a> <br /><br />En el caso de que no desees realizar ninguna acci&oacute;n, por seguridad, te recomendamos <span style="color:red;text-decoration:underline;">BORRAR</span> el directorio install.',

Expand Down

0 comments on commit 8f62d86

Please sign in to comment.