wrote this file. * As long as you retain this notice you can do whatever you want with * this stuff. If we meet some day, and you think this stuff is worth it, * you can buy me a beer in return. * * @author Sven Strittmatter * @copyright Copyright (c) 2010, Sven Strittmatter. * @version 0.2.2 * @license http://www.weltraumschaf.de/the-beer-ware-license.txt */ // set up enviroment: $kapitRoot = dirname(dirname(__FILE__)); set_include_path(implode(PATH_SEPARATOR, array( $kapitRoot . '/lib', get_include_path() ))); /** * @see Api_Kwick_Config */ require_once 'Api/Kwick/Config.php'; /** * @see Api_Log */ require_once 'Api/Log.php'; $infos = array(); $config = new Api_Kwick_Config(include($kapitRoot . '/configs/app.php')); try { $logFile = $kapitRoot . '/log/app.log'; Api_Log::setLogFile($kapitRoot . '/log/app.log'); } catch (Exception $e) { $infos[] = "If you want server side file loging, then set up a proper log file in " . __FILE__ . " or touch the writable file $logFile!"; } unset($kapitRoot);