-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.php
More file actions
36 lines (25 loc) · 838 Bytes
/
config.php
File metadata and controls
36 lines (25 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
$application = 'darkblog';
require_once 'conf/conf.php';
$application = 'darkblog';
require_once 'autoloader.php';
$autoloader = new libAutoloader();
require_once 'conf/db.php';
require_once 'conf/emercoin.conf.php';
require_once 'conf/other.php';
$page = 'config';
$olangs = new \darkblog\objects\langs();
$languages = $olangs->selectAll();
if(isset($_POST['lang']) && isset($_POST['records'])) {
$_SESSION['lang'] = $_POST['lang'];
$_SESSION['records'] = (int)$_POST['records'];
if($_SESSION['records'] < 10) $_SESSION['records'] = 10;
}
$lang = '';
$records = 100;
if(!empty($_SESSION['lang'])) $lang = $_SESSION['lang'];
if(!empty($_SESSION['records'])) $records = $_SESSION['records'];
//var_dump($_SESSION);
require 'templates/header.php';
require 'templates/config.php';
require 'templates/footer.php';