HEX
Server: nginx/1.18.0
System: Linux hqnl0246134.online-vm.com 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: phpinfo,disk_free_space,disk_total_space,diskfreespace,dl,exec,opcache_get_configuration,opcache_get_status,passthru,pclose,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_waitpid,pcntl_wait,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,show_source,system,exec,passthru,shell_exec,system,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/www/sites/incure.info/index.php
<?php


require_once "includes/template.php";
require_once 'config/ini.php';

require_once "includes/kernel/kernel.inc.php";
require_once "includes/kernel/articles.class.php";
require_once "includes/kernel/kernel_image.inc.php";
require_once "includes/kernel/forms.class.php";
require_once "includes/kernel_account/account.class.php";
require_once "includes/kernel_mailer/class.phpmailer.php";
require_once 'includes/kernel/pages.class.php';
require_once "includes/kernel/anvaro_function.inc.php";
require_once "includes/kernel/feedback.class.php"; 

require_once "config/config.php";

$account = new Account();
$pages = new Pages();
$blocks = new Pages(TB_BLOCK_PAGES);

$template->assign_var('ADMIN_EMAIL', 	$admin['admin_email']);

$template->set_filenames(array('header' => 'main_header.html'));
$template->set_filenames(array('top' => 'main_top.html'));

$template->assign_var('ADMIN_EMAIL1', 	$fe1);
$template->assign_var('ADMIN_EMAIL2', 	$fe2);
$template->assign_var('SUBTITLE', 	$title);
$template->assign_var('REF', 		$_SERVER[HTTP_REFERER]);
$template->assign_var('PARAMCOUNT',	count($module)-1);
$template->assign_var('TOP_IMAGE', 	get_path_image($module,"templates/release/images/top")); // по умолчанию top.jpg
$template->assign_var('PANEL_BG_IMAGE', get_path_image($module,"templates/release/images/panel_bg")); // по умолчанию top.jpg
$template->assign_var('ADD_ICON', 	get_path_image($module,"templates/release/images/add_icon",'png')); // по умолчанию top.png
$template->assign_var('GOOGLE_ANALYTICS', 	$admin['google_analytics']); // по умолчанию top.png

$blocks->viewStaticPage("board-of-association",false,"BOARD_OF_ASSOCAITION");
$blocks->viewStaticPage("get_involved",false,"GET_INVOLVED_TEXT");

// Вывод плашек под меню на разных страницах
$blocks->viewStaticPage($module[count($module)-1],false,'HEADER_PLASHKA');

generate_menu();

$articles = new Articles('hnp_news');
$articles->show_date_order = true;
$articles->fixed_blockname = 'right_articles';
$articles->index_articles(3);

$template->assign_var('TERMS_HEADER', $pages->getHeader('terms'));

if ($module[0]!="") {
	$template->assign_var('NOT_MAIN_PAGE', true);
	$template->assign_var('TITLE_RAZDEL', $pages->getHeader($module[0]));
	$template->assign_var('FILENAME_RAZDEL', $module[0]);
	switch ($module[0]) {
		case "map":
			require_once "includes/kernel/especial/incure.class.php";
			$pages->viewStaticPage($module[count($module)-1],true);
			$template->set_filenames(array('map' => 'map.html'));
			$incure = new Incure();
			$incure->show_countries();
			break;
		case "account":
			switch ($module[1]) {
				case "remember":
					if ($_SESSION['user_logged']) header('Location: /account/');
					if (!$template->set_filenames(array('text' => $module[count($module)-1].'.html')))
						$template->set_filenames(array('text' => 'text.html'));
					$account->rememberPassword();
					break;	
				case "reg":
					if ($_SESSION['user_logged']) header('Location: /account/');
					$pages->viewStaticPage($module[count($module)-1],true);
					$template->set_filenames(array('reg' => 'reg.html'));
					require_once "includes/kernel_account/account.reg.class.php";
					$select_oblast = new Form();
					$template->assign_var('SELECT_OBLAST', $select_oblast->showSelectArr($arr_obl, $_REQUEST['country'], 'country'));
					$checkEmptyFields = array(
						'name' => 'Enter NAME', 
						'lastname' => 'Enter LASTNAME', 
						'spec' => 'Enter Speciality', 
						'inst' => 'Enter Institution', 
						'email' => 'Enter E-mail',
						'password' =>'Enter Password'
					);
					$reg = new Registration($checkEmptyFields);
					break;
				default:
					if (!$template->set_filenames(array('text' => $module[0].'.html')))
					$template->set_filenames(array('text' => 'text.html'));
					if ($_SESSION['user_logged']) {
						$account->Action();
						$user_info = $account->showUserData();
						$select_oblast = new Form();
						$template->assign_var('SELECT_OBLAST', $select_oblast->showSelectArr($arr_obl, $user_info['COUNTRY'], 'country'));
					} else {
					}
				break;
			}
			break;
		case "sitemap":
			require_once "includes/kernel/sitemap.class.php";
			$template->assign_var('TITLE_RAZDEL', $lang['SITEMAP']);
			$template->set_filenames(array(
				'search' => 'sitemap.html')
			);
			$sitemap = new Sitemap();
			$sitemap->go();
			break;
		case "contacts":
			$template->set_filenames(array('text' => $module[0].'.html'));
			$pages->viewStaticPage($module[count($module)-1]);
			$feedback = new Feedback();
			$feedback->captcha = false;
			$feedback->action();
			break;
		default:
			$page_type = $pages->getPageType($module[count($module)-1]);
			$page_type_pre = $pages->getPageType($module[count($module)-2]);
			if ($page_type == 'article' || $page_type_pre == 'article') {
				if ($page_type_pre == 'article') $mn = $module[count($module)-2];
				if ($page_type == 'article') $mn = $module[count($module)-1];
				$h = $pages->viewHeader($mn);
				$articles = new Articles('hnp_'.$mn,'',$h);
				$articles->show_date_order = true;
				$articles->preview_chars_first = $articles->preview_chars = 250;
				$articles->include_template();
				if ($_GET['id']>0) $articles->show($_GET['id']);
				else $articles->index_articles(1000);
				$pages->viewBreadcrumbs($mn);
			} else {
				$res = $pages->viewStaticPage($module[count($module)-1]);
				if ($res=='404') {
					error404();
				} elseif ($res=='gotohomepage') {
					$pages->gotoHomepage();
				} else {
					// определяем ID страницы и выводим фотки к нему
					$id = get_field(TB_PAGES,'where filename=\''.$module[count($module)-1].'\'','id');
					$pages->showPagePhoto($id);
				}

				if (!$template->set_filenames(array('text' => $module[0].'.html')))
					$template->set_filenames(array('text' => 'text.html'));
			}
			break;
	}
} else {
	$template->set_filenames(array(
		'index' => 'index.html')
	);
		
	//$blocks->viewStaticPage("index3",false,"INDEX3");

	$pages->viewStaticPage("",false);
}

if (!defined("META_DESCRIPTION")) define("META_DESCRIPTION", $admin['meta_description']);
if (!defined("META_KEYWORDS")) define("META_KEYWORDS", "");

$template->assign_var('META_KEYWORDS', META_KEYWORDS.$admin[meta_keywords]);
$template->assign_var('META_DESCRIPTION', META_DESCRIPTION);

if (defined("META_TITLE")) $template->assign_var('META_TITLE', META_TITLE);
else $template->assign_var('META_TITLE', $admin['meta_title']);

if (!defined("META_SUBTITLE")) $template->assign_var('SUBTITLE', $title);
else $template->assign_var('SUBTITLE', META_SUBTITLE);

$template->set_filenames(array('main_footer.html' => 'main_footer.html')); 
$template->parse();

?>