
/sprout/core/Bootstrap.php Highlighted file source
Line 27: use Sprout\Helpers\Router;
Line 52: // Determine the URI (stored in Router::$current_uri)
Line 53: Router::findUri();
Line 56: Router::originCleanup();
Line 62: if (Router::$current_uri === '' or strpos(Router::$current_uri, 'welcome/') === 0) {
Line 63: Router::setup();
Line 70: if (strpos(Router::$current_uri, 'welcome/checklist') === 0) {
Line 85: // Key vars are Router::$controller and Router::$method
Line 86: Router::setup();
Line 95: if (Router::$controller === NULL) {

/sprout/core/Kohana.php Highlighted file source
Line 21: use Sprout\Helpers\Router;
Line 189: $class = new ReflectionClass(Router::$controller);
Line 230: $method = $class->getMethod(Router::$method);
Line 233: if (Router::$method[0] === '_')
Line 249: $controller->_run(Router::$method, Router::$arguments);
Line 888: echo "<b>Route:</b> ", Router::$controller, '::';
Line 889: echo Router::$method;
Line 890: if (!empty(Router::$arguments)) {
Line 891: echo '(', implode(', ', Router::$arguments), ')';
Line 1625: // Construct the page URI using Router properties
Line 1626: $page = Router::$current_uri.Router::$url_suffix.Router::$query_string;

/sprout/Helpers/Needs.php Highlighted file source
Line 124: if (Router::$controller != 'Sprout\\Controllers\\AdminController' and @in_array($name, is_array(Kohana::config('sprout.dont_need'))? Kohana::config('sprout.dont_need') : [])) return;
Line 126: if (Router::$controller != 'Sprout\\Controllers\\AdminController' and in_array($name, Kohana::config('sprout.dont_need') ?? [])) return;

/sprout/Helpers/PageRouting.php Highlighted file source
Line 30: if (strpos(Router::$current_uri, 'admin/') === 0) return;
Line 31: if (strpos(Router::$current_uri, 'dbtools/') === 0) return;
Line 35: $url_std = trim(Router::$current_uri, '/ ');
Line 74: if (Router::$current_uri === '') {
Line 75: Router::$controller = 'SproutModules\Karmabunny\HomePage\Controllers\HomePageController';
Line 76: Router::$method = 'index';
Line 77: Router::$arguments = array();
Line 82: if (Router::$controller !== NULL) {
Line 86: Router::$controller = 'Sprout\\Controllers\\PageController';
Line 90: $matcher = new TreenodePathMatcher(Router::$current_uri);
Line 93: Router::$method = 'viewById';
Line 94: Router::$arguments = array($node['id']);
Line 99: Router::$method = 'fourOhFour';
Line 100: Router::$arguments = array(Router::$current_uri);

/sprout/Helpers/Router.php Highlighted file source
Line 24: use karmabunny\router\Router as KbRouter;
Line 27: * Router
Line 29: class Router
Line 55: /** @var KbRouter */
Line 56: protected static $router;
Line 58: public static $MODE = KbRouter::MODE_REGEX;
Line 62: * Router setup routine; determines controller/method from URI.
Line 82: self::$router = KbRouter::create([
Line 83: 'extract' => KbRouter::EXTRACT_ATTRIBUTES | KbRouter::EXTRACT_CONVERT_REGEX,
Line 84: 'mode' => KbRouter::MODE_REGEX,
Line 86: self::$router->load($routes);
Line 89: $routed_uri = Router::routedUri(Router::$current_uri);
Line 93: Router::$routed_uri = $routed_uri;
Line 96: $segments = explode('/', trim(Router::$routed_uri, '/'));
Line 100: Router::$controller = $controller;
Line 102: Router::$method = array_shift($segments);
Line 103: Router::$arguments = $segments;
Line 105: Router::$arguments = [];
Line 118: return self::$router->routes;
Line 150: Router::$current_uri = $_SERVER['argv'][1];
Line 153: if (($query = strpos(Router::$current_uri, '?')) !== FALSE)
Line 155: list (Router::$current_uri, $query) = explode('?', Router::$current_uri, 2);
Line 168: Router::$current_uri = $_GET['kohana_uri'];
Line 178: Router::$current_uri = $_SERVER['PATH_INFO'];
Line 182: Router::$current_uri = $_SERVER['ORIG_PATH_INFO'];
Line 186: Router::$current_uri = $_SERVER['PHP_SELF'];
Line 189: if (($strpos_fc = strpos(Router::$current_uri, KOHANA)) !== FALSE)
Line 192: Router::$current_uri = (string) substr(Router::$current_uri, $strpos_fc + strlen(KOHANA));
Line 196: Router::$current_uri = trim(Router::$current_uri, '/');
Line 198: if (Router::$current_uri !== '')
Line 200: if ($suffix = Kohana::config('core.url_suffix') AND strpos(Router::$current_uri, $suffix) !== FALSE)
Line 203: Router::$current_uri = preg_replace('#'.preg_quote($suffix).'$#u', '', Router::$current_uri);
Line 206: Router::$url_suffix = $suffix;
Line 210: Router::$current_uri = preg_replace('#//+#', '/', Router::$current_uri);
Line 215: Router::$query_string = '?'.trim($_SERVER['QUERY_STRING'], '&/');
Line 219: Router::$current_uri = preg_replace('#\.[\s./]*/#', '', Router::$current_uri);
Line 220: Router::$current_uri = trim(Router::$current_uri, '/');
Line 223: Router::$complete_uri = Router::$current_uri . Router::$query_string;
Line 248: $url = $new_proto . '://' . $new_hostname . '/' . Router::$complete_uri;
Line 273: $url = $new_proto . '://' . $new_hostname . '/' . Router::$complete_uri;
Line 291: if (Router::$router === NULL or empty(Router::$router->routes)) {
Line 298: $action = self::$router->find($method, $uri);
Line 319: } // End Router

/sprout/Helpers/SubsiteSelector.php Highlighted file source
Line 52: if (!preg_match('!^(admin|admin_ajax|testing|dbtools)!', Router::$current_uri)) {
Line 95: $pos = strpos(Router::$current_uri, $row['cond_directory']);
Line 119: if ($default['require_admin'] and !preg_match('!^(admin|admin_ajax|file)/!', Router::$current_uri)) {
Line 123: if ($default['require_user'] and Register::hasFeature('users') and !preg_match('!^user/!', Router::$current_uri)) {
Line 130: if (!preg_match('!^(admin|admin_ajax|testing|dbtools)!', Router::$current_uri)) {
Line 138: Router::$current_uri = trim(preg_replace('!^' . preg_quote($directory) . '!', '', Router::$current_uri), '/');

/sprout/views/demo_form.php Highlighted file source
Line 4: use Sprout\Helpers\Router;
Line 10: <p><a href="<?= Enc::html(Router::$current_uri); ?>?file=<?= Enc::url('43_already.jpg'); ?>">43_already.jpg</a></p>
Line 11: <p><a href="<?= Enc::html(Router::$current_uri); ?>?file=<?= Enc::url('39_oh.mp3'); ?>">39_oh.mp3</a></p>
Line 12: <p><a href="<?= Enc::html(Router::$current_uri); ?>?file=">BLANK</a></p>
A total of 120 lines in 21 files were found