Skip to content

Commit af1623b

Browse files
committed
Update config file
1 parent ed7bd00 commit af1623b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

application/config/main.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11
<?php
22

3+
/**
4+
* Global Event Logging
5+
* If this is false, the Event class will ignore all events.
6+
*/
7+
\System\Event::$log_events = false;
8+
9+
/**
10+
* Show the event log based on some condition. For example:
11+
*
12+
* Show based on remote IP address:
13+
* if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123') {
14+
*
15+
* Show based on variable set in config files:
16+
* if ($debug === true) {
17+
*/
18+
if (false) \System\Event::$display_log = true;
19+
320
/**
421
* Database Configuration
522
* \System\Database::connect(identifier, driver, server, username, password, database);
623
*/
24+
\System\Database::$log_events = false;
725
\System\Database::connect_dsn('main', 'sqlite:ixt_demo.sqlite');

0 commit comments

Comments
 (0)