/* * OSSN ACCESS VALUES */ define('OSSN_FRIENDS', 3); define('OSSN_PUBLIC', 2); define('OSSN_PRIVATE', 1); /** * Constants */ define('REF', true); /* * Load site settings , so the setting should not load agian and again */ global $Ossn; $settings = new OssnSite(); $Ossn->siteSettings = $settings->getAllSettings(); /* * Set exceptions handler */ set_exception_handler('_ossn_exception_handler'); /** * ossn_recursive_array_search * Searches the array for a given value and returns the corresponding key if successful * @source: http://php.net/manual/en/function.array-search.php * * @param mixed $needle The searched value. If needle is a string, the comparison is done in a case-sensitive manner. * @param array $haystack The array * @return false|integer */ function ossn_recursive_array_search($needle, $haystack) {