Вход Регистрация
Файл: Source/index.php
Строк: 26
<?php
/*
 * Script name: Points4Prize
 * Author: Soft Projects
 * Date created: 15/07/2015
 */

error_reporting(0);
ini_set('session.cookie_httponly'true);
session_start();
header("Cache-control: private");
ob_start();
$cofig_file = include("auth/config.php");
include(
"site_settings.php");

$DB_CONNECT mysql_connect($cofig_file['db']['host'], $cofig_file['db']['username'], $cofig_file['db']['password']);
mysql_select_db($cofig_file['db']['dbname'], $DB_CONNECT) or die(mysql_error());
mysql_query("SET NAMES utf8");

include(
"inc/functions.php");
loggedin();
session_secure();
$m $_GET['m'];
if (isset(
$_POST['logout'])) {
    
logout();
}
if (isset(
$_POST['newregister'])) {
    
header('Location: /register');
}

if (isset(
$m)) {
    
modules();
} else {
    include(
"pages/home.php");
}
Онлайн: 0
Реклама