public function run() { self::setup(); //Process route SilkRequest::handle_request(); $config = silk()->get('config'); if ($config['debug']) { echo SilkProfiler::get_instance()->report(); } }
public static function include_openid() { $path = join_path(SILK_LIB_DIR, 'openid'); silk()->add_include_path($path); include_once join_path('Auth', 'OpenID', 'Consumer.php'); include_once join_path('Auth', 'OpenID', 'FileStore.php'); silk()->remove_include_path($path); }
public static function get_groups_for_dropdowm($add_everyone = false) { $result = array(); if ($add_everyone) { $result[-1] = lang('Everyone'); } $groups = silk()->group->find_all(array('order' => 'name ASC')); foreach ($groups as $group) { $result[$group->id] = $group->name; } return $result; }