Beispiel #1
0
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
/*%******************************************************************************************%*/
// CORE DEPENDENCIES
// // Look for include file in the same directory (e.g. `./config.inc.php`).
// if (file_exists(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc.php'))
// {
//  include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc.php';
// }
// // Fallback to `~/.aws/sdk/config.inc.php`
// elseif (getenv('HOME') && file_exists(getenv('HOME') . DIRECTORY_SEPARATOR . '.aws' . DIRECTORY_SEPARATOR . 'sdk' . DIRECTORY_SEPARATOR . 'config.inc.php'))
// {
//  include_once getenv('HOME') . DIRECTORY_SEPARATOR . '.aws' . DIRECTORY_SEPARATOR . 'sdk' . DIRECTORY_SEPARATOR . 'config.inc.php';
// }
zing_load_environment('aws');
/*%******************************************************************************************%*/
// EXCEPTIONS
/**
 * Default CFRuntime Exception.
 */
class CFRuntime_Exception extends Exception
{
}
/*%******************************************************************************************%*/
// DETERMINE WHAT ENVIRONMENT DATA TO ADD TO THE USERAGENT FOR METRIC TRACKING
/*
	Define a temporary callback function for this calculation. Get the PHP version and any
	required/optional extensions that are leveraged.

	Tracking this data gives Amazon better metrics about what configurations are being used
Beispiel #2
0
define('ZING_ROOT', dirname(ZING_FRAMEWORK_DIR));
define('ZING_CONFIG_DIR', ZING_ROOT . '/config');
define('ZING_PUBLIC_DIR', ZING_ROOT . '/public');
define('ZING_TMP_DIR', ZING_ROOT . '/tmp');
define('ZING_APP_DIR', ZING_ROOT . '/app');
define('ZING_DATA_DIR', ZING_ROOT . '/data');
define('ZING_VIEW_DIR', ZING_APP_DIR . '/views');
define('ZING_CACHE_DIR', ZING_TMP_DIR . '/cache');
define('ZING_COMPILED_DIR', ZING_TMP_DIR . '/compiled');
define('ZING_VENDOR_DIR', ZING_ROOT . '/vendor');
define('ZING_PLUGIN_DIR', ZING_ROOT . '/plugins');
define('ZING_CONSOLE', php_sapi_name() == 'cli');
spl_autoload_register('zing_autoload');
zing_core_lib('common');
zing_load_config('main');
zing_load_environment('main');
//
// Export GDB config if present
if (isset($GLOBALS['_ZING']['config.gdb'])) {
    $GLOBALS['_GDB'] = array('default' => $GLOBALS['_ZING']['config.gdb']);
}
//
// Essentials!
function zing_lib($library)
{
    require ZING_APP_DIR . "/lib/{$library}.php";
}
function zing_core_lib($library)
{
    require ZING_FRAMEWORK_DIR . "/lib/{$library}.php";
}