<?php namespace SaS; include_conf($app); require 'services.php'; $app['api.controllers'] = (require 'controllers.php'); function include_conf(\Silex\Application $app) { $conf = $app; require APP_BASE_DIR . 'config/domain.conf.php'; require APP_BASE_DIR . 'config/app.conf.php'; }
<?php include_conf(); include 'convert.inc.php'; include 'page_bookmark.php'; include 'page_day.php'; include 'page_image.php'; include 'page_main.php'; include 'page_month.php'; include 'page_stack.php'; include 'page_thumb.php'; function include_conf() { foreach (array('config.' . strtolower($_SERVER['HTTP_HOST']) . '.php', 'config.default.php') as $file) { if (@(include $file)) { break; } } } function rmconf($key, $val = null) { static $conf = array(); if (!is_null($val)) { $conf[$key] = $val; } return $conf[$key]; } function rawman_pathinfo($full = true) { if (empty($_SERVER['PATH_INFO'])) { return array();