/** * shortcut for LINB::SC * * @param string $key * @return object */ function SC($key, $new = false) { return LINB::SC($key, $new); } /////////////// /////running functions /////////////// // ini the object of LINB LINB::$debug = true; LINB::$DIR_LINB = dirname(__FILE__) . DIRECTORY_SEPARATOR; LINB::$DIR_APP = realpath('.') . DIRECTORY_SEPARATOR; LINB::$DIR_CLASS = 'phpClass' . DIRECTORY_SEPARATOR; //for php 5.22 json enabled if (function_exists("json_encode")) { class PHPJSON { function encode($var) { return json_encode($var); } function decode($var) { return json_decode($var); } }