Exemplo n.º 1
0
<?php

define('D_Temp', 'template');
error_reporting(0);
//database connection
include 'config/connection.php';
//functions
include "functions/data.php";
include "functions/template.php";
include "functions/sandbox.php";
$debug = data_setting_value('debug-status');
$site_title = "Mca Login";
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    $page = 'home';
}
include "config/query.php";
$user = data_user($dbc, $_SESSION['username']);
Exemplo n.º 2
0
<?php

// setup database file;
# Database connection here
# Database connection
include '../config/connection.php';
#Constants
DEFINE('D_TEMPLATE', template);
#functions
include 'functions/data.php';
include 'functions/template.php';
include 'functions/sandbox.php';
#site setup
$debug = data_setting_value($dbc, 'debug-status');
$site_title = 'Site Name';
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    $page = "dashboard";
    //set to 1 or the home page
}
#page setup
include 'config/queries.php';
#User Setup
$user = data_user($dbc, $_SESSION['username']);
Exemplo n.º 3
0
<?php

// Setup File:
error_reporting(0);
// Database Connection:
include '../config/connection.php';
// Constants:
DEFINE('D_TEMPLATE', 'template');
// Functions:
include 'functions/data.php';
// Site Setup:
$debug = data_setting_value($dbc, 'debug-status');
$site_title = data_setting_value($dbc, 'site-title');
$site_url = data_setting_value($dbc, 'site-url');
$site_theme = data_setting_value($dbc, 'site-theme');
$allow_comments = data_setting_value($dbc, 'allow-comments');
$site_email = data_setting_value($dbc, 'site-email');
$filter1_name = data_setting_value($dbc, 'filter1-name');
$filter2_name = data_setting_value($dbc, 'filter2-name');
$filter3_name = data_setting_value($dbc, 'filter3-name');
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    // Set landing page for Admin Panel.
    $page = 'dashboard';
}
// Page Setup:
include 'config/queries.php';
// User Setup:
$user = data_user($dbc, $_SESSION['username']);