|
|
@ -276,7 +276,7 @@ class IndexManager |
|
|
|
// Including the page for the news |
|
|
|
// Including the page for the news |
|
|
|
$html = ''; |
|
|
|
$html = ''; |
|
|
|
if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) { |
|
|
|
if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) { |
|
|
|
$open = @(string)file_get_contents($this->home.$_GET['include']); |
|
|
|
$open = @(string) file_get_contents($this->home.$_GET['include']); |
|
|
|
$html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); |
|
|
|
$html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Hiding home top when user not connected. |
|
|
|
// Hiding home top when user not connected. |
|
|
@ -330,9 +330,9 @@ class IndexManager |
|
|
|
$user_selected_language = api_get_interface_language(); |
|
|
|
$user_selected_language = api_get_interface_language(); |
|
|
|
$html = ''; |
|
|
|
$html = ''; |
|
|
|
// Notice |
|
|
|
// Notice |
|
|
|
$home_notice = @(string)file_get_contents($this->home.'home_notice_'.$user_selected_language.'.html'); |
|
|
|
$home_notice = @(string) file_get_contents($this->home.'home_notice_'.$user_selected_language.'.html'); |
|
|
|
if (empty($home_notice)) { |
|
|
|
if (empty($home_notice)) { |
|
|
|
$home_notice = @(string)file_get_contents($this->home.'home_notice.html'); |
|
|
|
$home_notice = @(string) file_get_contents($this->home.'home_notice.html'); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!empty($home_notice)) { |
|
|
|
if (!empty($home_notice)) { |
|
|
|
$home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice))); |
|
|
|
$home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice))); |
|
|
@ -364,7 +364,7 @@ class IndexManager |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$html = ''; |
|
|
|
$html = ''; |
|
|
|
$home_menu = @(string)file_get_contents($this->home.'home_menu_'.$user_selected_language.'.html'); |
|
|
|
$home_menu = @(string) file_get_contents($this->home.'home_menu_'.$user_selected_language.'.html'); |
|
|
|
if (!empty($home_menu)) { |
|
|
|
if (!empty($home_menu)) { |
|
|
|
$home_menu_content = '<ul class="nav nav-pills nav-stacked">'; |
|
|
|
$home_menu_content = '<ul class="nav nav-pills nav-stacked">'; |
|
|
|
$home_menu_content .= api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu))); |
|
|
|
$home_menu_content .= api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu))); |
|
|
|