Файл: Source/admin/get_configurations.php
Строк: 22
<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
$originalConfig = realpath( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'auth/config.php';
$templateConfig = realpath( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'config.template.php';
if ( file_exists( $originalConfig ) ) {
$config = require_once( $originalConfig );
} else {
$config = require_once( $templateConfig );
}
echo json_encode($config);