Including the sample source should be a bit more failsafe now.
This commit is contained in:
10
header.php
10
header.php
@@ -1,13 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<?php
|
<?php
|
||||||
// Start YOURLS engine
|
// Start YOURLS engine
|
||||||
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
|
require_once( dirname(__FILE__) . '/includes/load-yourls.php' );
|
||||||
|
|
||||||
// Ask for Infinity Squared settings
|
// Ask for Infinity Squared settings
|
||||||
include( dirname(__FILE__).'/public/config.php' );
|
if( @include dirname(__FILE__) . '/public/config.php' ) {
|
||||||
|
include( dirname(__FILE__) . '/public/config.php' );
|
||||||
if( ( @include dirname(__FILE__).'/public/config.php' ) === false) {
|
} else {
|
||||||
include( dirname(__FILE__).'/public/config-sample.php' );
|
include( dirname(__FILE__) . '/public/config-sample.php' );
|
||||||
}
|
}
|
||||||
|
|
||||||
class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); }
|
class ISQ { public static $general = array(), $links = array(), $social = array(), $recaptcha = array(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user