-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.php
executable file
·34 lines (27 loc) · 917 Bytes
/
init.php
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
<?php
define( 'root', __DIR__ );
define( 'lib', root.'/lib/');
define( 'templates', root.'/templates/');
define( 'home', 'http://localhost/tixy/');
define( 'styles', home.'assets/css/' );
define( 'scripts', home.'assets/js/' );
define( 'images', home.'assets/img/' );
define( 'fonts', home.'assets/fonts/' );
define( 'media', home.'assets/media-demo/' );
define( 'colors', [ 'pink', 'yellow' ] );
require_once 'config.php';
require_once lib.'mysqli.php';
require_once lib.'functions.php';
$usersblacklist = [];
$agentsblacklist = [];
$eventsblacklist = [];
$postsblacklist = [];
$optionsblacklist = [];
$tables = [ 'users', 'posts', 'events', 'options' ];
foreach ( $tables as $table ) {
$GLOBALS[$table] = new \PatiPati\MySQL\SANDAL( $table, $table.'blacklist' );
}
$GLOBALS['grecords'] = $GLOBALS['posts'] -> fetch();
$GLOBALS['grecord'] = null;
$GLOBALS['grecord_count'] = 0;
$GLOBALS['grecord_index'] = 0;