diff --git a/pandora_console/general/php7_message.php b/pandora_console/general/php7_message.php
new file mode 100644
index 0000000000..5832842d60
--- /dev/null
+++ b/pandora_console/general/php7_message.php
@@ -0,0 +1,67 @@
+';
+ echo '
';
+ echo "
" . __('For a correct operation of PandoraFMS you will have to update php to version 7.0 or later.') . "
";
+ echo "
" . __(' If you don\'t update, you will lose functionalities:') . "
";
+ echo "
";
+ echo "- " . __('Report download in PDF format') . "
";
+ echo "- " . __('Sending emails') . "
";
+ echo "- " . __('Metaconsole Collections') . "
";
+ echo "- " . '...' . "
";
+ echo "
";
+ echo '
'.__('Acess Help').'
';
+ echo '
';
+ echo "";
+ echo html_print_image('images/icono_warning_mr.png', true, array("alt" => __('Warning php version'), "border" => 0));
+ echo "
";
+echo '';
+?>
+
+
diff --git a/pandora_console/godmode/update_manager/update_manager.php b/pandora_console/godmode/update_manager/update_manager.php
index c54aedc3bb..97dbaad48f 100644
--- a/pandora_console/godmode/update_manager/update_manager.php
+++ b/pandora_console/godmode/update_manager/update_manager.php
@@ -26,6 +26,12 @@ if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_us
return;
}
+$php_version = phpversion();
+$php_version_array = explode('.', $php_version);
+if($php_version_array[0] < 7){
+ include_once("general/php7_message.php");
+}
+
$tab = get_parameter('tab', 'online');
$buttons = array(
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index aeab684350..9087a18376 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -2231,6 +2231,29 @@ function config_check () {
__("phantomjs is not installed"));
}
}
+
+
+ $php_version = phpversion();
+ $php_version_array = explode('.', $php_version);
+ if($php_version_array[0] < 7){
+ if ($config['language'] == 'es') {
+ $url_help = 'https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_es:Instalaci%C3%B3n_y_actualizaci%C3%B3n_PHP_7';
+ }
+ else{
+ $url_help = 'https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:_PHP_7';
+ }
+
+ set_pandora_error_for_header(
+ __('For a correct operation of PandoraFMS you will have to update php to version 7.0 or later.') . "
" .
+ __(' If you don\'t update, you will lose functionalities:') . "
" .
+ "- " . __('Report download in PDF format') . "
" .
+ "- " . __('Sending emails') . "
" .
+ "- " . __('Metaconsole Collections') . "
" .
+ "- " . '...' . "
" .
+ "
" .
+ ''.__('Acess Help').'',
+ __("REQUIRED PHP UPDATE"));
+ }
}
function config_return_in_bytes($val) {
diff --git a/pandora_console/index.php b/pandora_console/index.php
index 9111aec168..69bcc7c683 100755
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -940,7 +940,12 @@ if (get_parameter ('login', 0) !== 0) {
include_once("general/login_help_dialog.php");
}
-
+
+ $php_version = phpversion();
+ $php_version_array = explode('.', $php_version);
+ if($php_version_array[0] < 7){
+ include_once("general/php7_message.php");
+ }
}
// Header