<?php
/**
 * Created by PhpStorm.
 * User: Serezha Kalitin
 * Date: 07.12.2018
 * Time: 12:55
 */

$title = $l = "Путеводитель новичка"; #Тайтл
$thisLink = "/{$thisPage}";
//$lBack = profile:: getLink($user); //Ссылка на профиль
$_getService = 'index';
$_getListService = [
    'index' => [
        'title' => $title
    ], 'rules' => [
        'title' => $title 
    ], 'result' => [
        'title' => $title . ' :: result'
    ], 'success' => [
        'title' => $title . ' :: success'
    ]
];

if (isset($_GET['_mod']) && in_array((string)$_GET['_mod'], array_keys($_getListService), true)) {
    if (is_readable(ROOT . '_modules/info/_pages/' . $_GET['_mod'] . '.php'))
        $_getService = (string)$_GET['_mod'];
}

$title = $l = $_getListService[$_getService]['title'];
require(CORE . "head.php"); // Шапка


include_once ROOT . '_modules/info/_pages/' . $_getService . '.php';
require(CORE . "foot.php"); // Низ