Including the sample source should be a bit more failsafe now.

This commit is contained in:
Tom Slominski
2015-03-14 18:18:22 +00:00
parent 80cec994f0
commit a0a82f2d6c

View File

@@ -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(); }