Example #1
0
<!-- Page des Modifications du Compte Utilisateur -->
<!DOCTYPE html>
<html>
	<head>
		<title>Game Central - Modification des Informations</title>
		<!-- En-tête des Pages Web (metas, links) -->
		<?php 
include "commons/links.php";
?>
	</head>
	<body>
		<header>
			<!-- Barre de Navigation (connecté/non connecté) -->
			<?php 
is_connect();
?>
		</header>
		<section>
			<!-- Formulaire de modification des infos -->
			<div class="container">
				<form method="POST" action="../model/update_info.php">
					<!-- Fonction de modification des infos -->
					<?php 
modif_info();
?>
				</form>
			</div>
		</section>
		<footer>
			<!-- Scripts JS -->
$url_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if ($_SERVER['SERVER_PORT'] != '80') {
    define('SITE_URL', $protocol . $_SERVER['SERVER_NAME'] . $url_path);
} else {
    define('SITE_URL', $protocol . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $url_path);
}
require_once BASEPATH . '/hm_include/install/install_model.php';
$step = $_GET['step'];
switch ($step) {
    case 1:
        require_once BASEPATH . '/hm_include/install/step1.php';
        break;
    case 2:
        if (check_all()) {
            if (isset($_POST['submit'])) {
                if (is_connect()) {
                    header('Location: ?step=3');
                    exit;
                } else {
                    $error = '<div class="alert alert-danger" role="alert">Không thể kết nối đến cơ sở dữ liệu</div>';
                }
            }
            require_once BASEPATH . '/hm_include/install/step2.php';
        } else {
            header('Location: ?step=1');
            exit;
        }
        break;
    case 3:
        if (is_array($_SESSION['db'])) {
            if (isset($_POST['submit'])) {
Example #3
0
actions_zone('before_form_page');
//Формирование страницы
if (is_ajax()) {
    $PAGE->code = 'ajax_call';
} elseif (is_remote()) {
    $PAGE->code = 'remote_call';
} elseif (!$PAGE->code) {
    $key = get_current_key();
    $PAGE->title = $APAGES[$key]->title;
    $PAGE->code = $key;
}
uasort($APAGES, 'collector_sort');
foreach ($APAGES as $item) {
    if (count($item->childs) > 1) {
        usort($item->childs, 'apage_sort_child');
    }
}
uasort($SCRIPTS, 'collector_sort');
uasort($ACTIONS, 'collector_sort');
//Загрузка шаблонов
if (!is_connect()) {
    actions_zone('before_template');
    if ($APAGES[$PAGE->code]->skelet) {
        get_template('header.php');
    }
    show_apage($PAGE->code);
    if ($APAGES[$PAGE->code]->skelet) {
        get_template('footer.php');
    }
    actions_zone('after_template');
}
Example #4
0
function get_connect()
{
    global $CONNECT;
    if (is_connect()) {
        return $CONNECT;
    } else {
        return null;
    }
}