
/index.php Highlighted file source
Line 60: * Turning off display_errors will effectively disable Kohana error display
Line 61: * and logging. You can turn off Kohana errors in sprout/config/config.php
Line 66: define('KOHANA', basename(__FILE__));
Line 84: // Initialize Kohana

/skin/default/email.php Highlighted file source
Line 24: <title><?= Enc::html(!empty($html_title)? $html_title : Kohana::config('sprout.site_title')); ?></title>
Line 178: <img src="<?php echo Enc::html(Sprout::absRoot()); ?>skin/default/images/logo_email.gif" alt="<?php echo Enc::html(Kohana::config('sprout.site_title')); ?>">
Line 199: <strong><?php echo Enc::html(Kohana::config('sprout.site_title')); ?></strong> <br>

/skin/default/partials/_header.php Highlighted file source
Line 20: <img class="header__logo__img" src="SKIN/images/sprout-logo-white.svg" alt="Logo for <?php echo Enc::html(Kohana::config('sprout.site_title')); ?>">
Line 42: <label for="fm-site-search">Search the <?php echo Enc::html(Kohana::config('sprout.site_title')); ?> website</label>

/sprout/Controllers/Admin/FileAdminController.php Highlighted file source
Line 18: use Kohana;
Line 19: use Kohana_404_Exception;
Line 337: $max_dims = Kohana::config('image.original_size');
Line 458: $max_dims = Kohana::config('image.original_size');
Line 574: throw new Kohana_404_Exception();
Line 952: $variants = array_merge($variants, array_keys(Kohana::config('file.image_transformations')));
Line 1385: throw new Kohana_404_Exception();
Line 1481: $sizes = Kohana::config('file.image_transformations');
Line 1595: Kohana::closeBuffers();

/sprout/Controllers/Admin/PageAdminController.php Highlighted file source
Line 19: use Kohana;
Line 1122: $richtext_width = Kohana::config('sprout.admin_richtext_width');
Line 1123: $richtext_height = Kohana::config('sprout.admin_richtext_height');
Line 1545: if (Kohana::config('page.enable_banners')) {
Line 1555: if (Kohana::config('sprout.tweak_skin')) {
Line 1737: $mail->Subject = 'Page change approval required for ' . Kohana::config('sprout.site_title');
Line 1743: } else if ($_POST['status'] == 'live' and Kohana::config('sprout.update_notify')) {
Line 1757: $mail->Subject = 'Page updated on site ' . Kohana::config('sprout.site_title') . ': ' . $_POST['name'];
Line 2486: if (Kohana::config('cache.enabled')) {
Line 2627: $email = Kohana::config('sprout.stale_page_email');
Line 2628: $default_max_age = Kohana::config('sprout.stale_page_age');
Line 2629: $resend_interval = (int) Kohana::config('sprout.stale_page_resend_after');
Line 2779: $templates = Kohana::config('sprout.widget_templates');

/sprout/Controllers/AdminController.php Highlighted file source
Line 21: use Kohana;
Line 22: use Kohana_404_Exception;
Line 81: $whitelist = Kohana::config('sprout.admin_ips');
Line 84: throw new Kohana_404_Exception();
Line 98: $domain = Kohana::config('sprout.admin_domain');
Line 100: Url::redirect('http://' . $domain . Kohana::config('config.site_domain') . Url::current());
Line 128: if (! Kohana::config('sprout.admin_intro')) {
Line 129: Kohana::configSet('sprout.admin_intro', 'admin/dashboard');
Line 139: Url::redirect(Kohana::config('sprout.admin_intro'));
Line 148: Url::redirect(Kohana::config('sprout.admin_intro'));
Line 334: Url::redirect(Kohana::config('sprout.admin_intro'));
Line 1979: Url::redirect(Kohana::config('sprout.admin_intro'));
Line 1985: Url::redirect(Kohana::config('sprout.admin_intro'));
Line 2019: if (Kohana::userAgent('browser') == 'Firefox') {
Line 2021: } else if (Kohana::userAgent('browser') == 'Chrome') {
Line 2023: } else if (Kohana::userAgent('browser') == 'Internet Explorer' and version_compare(Kohana::userAgent('version'), '7.0', '>=')) {
Line 2143: throw new Kohana_404_Exception();

/sprout/Controllers/DbToolsController.php Highlighted file source
Line 25: use Kohana;
Line 26: use Kohana_404_Exception;
Line 27: use Kohana_Exception;
Line 237: 'KOHANA' => KOHANA,
Line 410: // Clear the Kohana caches too
Line 411: if (file_exists(APPPATH . 'cache/kohana_configuration')) {
Line 412: unlink(APPPATH . 'cache/kohana_configuration');
Line 414: if (file_exists(APPPATH . 'cache/kohana_find_file_paths')) {
Line 415: unlink(APPPATH . 'cache/kohana_find_file_paths');
Line 417: if (file_exists(APPPATH . 'cache/kohana_language')) {
Line 418: unlink(APPPATH . 'cache/kohana_language');
Line 860: Kohana::closeBuffers();
Line 1211: $name = Kohana::config('sprout.site_title');
Line 1338: throw new Kohana_404_Exception($tempfile);
Line 1415: $name = Kohana::config('sprout.site_title');
Line 2270: $conditions[] = ['class_name', '!=', 'Kohana_404_Exception'];
Line 2445: throw new Kohana_404_Exception();
Line 2758: $data['from'] = Kohana::config('sprout.site_email');

/sprout/Controllers/PageController.php Highlighted file source
Line 18: use Kohana;
Line 19: use Kohana_404_Exception;
Line 63: throw new Kohana_404_Exception('"' . $name . '"');
Line 82: throw new Kohana_404_Exception('"' . $name . '"');
Line 128: throw new Kohana_404_Exception("Page # {$id}");
Line 135: if (Kohana::config('sprout.page_stats')) {
Line 195: throw new Kohana_404_Exception("Page # {$page_id}, rev # {$rev_id}");
Line 299: if (Kohana::config('sprout.tweak_skin') and $page['has_additional_css']) {
Line 549: $mail->Subject = 'Page change approved on ' . Kohana::config('sprout.site_title');
Line 572: $mail->Subject = 'Page change rejected on ' . Kohana::config('sprout.site_title');

/sprout/core/Bootstrap.php Highlighted file source
Line 15: * Kohana process control file, loaded by the front controller.
Line 20: * @author Kohana Team
Line 21: * @copyright (c) 2007 Kohana Team
Line 22: * @license http://kohanaphp.com/license.html
Line 39: require APPPATH . 'core/Kohana.php';
Line 50: Kohana::setup();
Line 61: Kohana::disableCache();
Line 64: Kohana::instance();
Line 80: // Any redirects etc before the Kohana URLs
Line 84: // Kohana routes and controller/method URLs
Line 100: Kohana::instance();

/sprout/core/Event.php Highlighted file source
Line 17: * process event-specific data. By default, Kohana has several system events.
Line 22: * @author Kohana Team
Line 23: * @copyright (c) 2007 Kohana Team
Line 24: * @license http://kohanaphp.com/license.html
Line 25: * @link http://docs.kohanaphp.com/general/events

/sprout/core/Kohana.php Highlighted file source
Line 28: * Provides Kohana-specific helper functions. This is where the magic happens!
Line 30: * $Id: Kohana.php 4372 2009-05-28 17:00:34Z ixmatus $
Line 33: * @author Kohana Team
Line 34: * @copyright (c) 2007-2008 Kohana Team
Line 35: * @license http://kohanaphp.com/license.html
Line 37: final class Kohana {
Line 48: // The final output that will displayed by Kohana
Line 89: // Define Kohana error constant
Line 90: define('E_KOHANA', 42);
Line 121: set_error_handler(array('Kohana', 'errorHandler'));
Line 124: set_exception_handler(array('Kohana', 'exceptionHandler'));
Line 130: if (! Kohana::config('config.cli_domain'))
Line 144: $_SERVER['HTTP_HOST'] = Kohana::config('config.cli_domain');
Line 163: // Enable Kohana 404 pages
Line 164: Event::add('system.404', array('Kohana', 'show404'));
Line 166: // Enable Kohana output handling
Line 167: Event::add('system.shutdown', array('Kohana', 'shutdown'));
Line 388: die('Your Kohana application configuration file is not valid.');
Line 472: $path = self::$internal_cache_path.'kohana_'.$name;
Line 504: $path = self::$internal_cache_path.'kohana_'.$name;
Line 518: * Kohana output handler. Called during ob_clean, ob_flush, and their variants.
Line 539: * Closes all open output buffers, either by flushing or cleaning, and stores the Kohana
Line 550: $close = ($flush === TRUE) ? 'ob_end_flush' : 'Kohana::_obEndClean';
Line 558: // Store the Kohana output buffer
Line 559: Kohana::_obEndClean();
Line 564: * Triggers the shutdown of Kohana by closing the output buffer, runs the system.display event.
Line 581: * Inserts global Kohana variables into the generated output and prints it.
Line 641: * @throws Kohana_404_Exception
Line 648: throw new Kohana_404_Exception($page);
Line 807: // Close all output buffers except for Kohana
Line 814: if ($exception instanceof Kohana_404_Exception
Line 908: * @throws Kohana_Exception if file is required and not found
Line 991: throw new Kohana_Exception('core.resource_not_found', self::lang($directory), $filename);
Line 1515: } // End Kohana
Line 1520: class Kohana_Exception extends Exception
Line 1527: protected $code = E_KOHANA;
Line 1540: $message = Kohana::lang($error, $args);
Line 1583: } // End Kohana Exception
Line 1588: class Kohana_User_Exception extends Kohana_Exception
Line 1605: } // End Kohana PHP Exception
Line 1610: class Kohana_404_Exception extends Kohana_Exception
Line 1629: Exception::__construct(Kohana::lang('core.page_not_found', $page));
Line 1643: } // End Kohana 404 Exception

/sprout/Helpers/AdminSeo.php Highlighted file source
Line 18: use Kohana;
Line 111: $expr = '/\b(' . implode('|', Kohana::config('admin_seo.stop_words')) . ')\b/i';
Line 217: return in_array($word, Kohana::config('admin_seo.stop_words'));
Line 302: $ratings = Kohana::config('admin_seo.readability_scores');
Line 329: $score = Kohana::config('admin_seo.word_count');
Line 347: $words = Kohana::config('admin_seo.average_words_sentence');
Line 531: $score = Kohana::config('admin_seo.word_count');

/sprout/Helpers/Archive.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana_Exception;
Line 38: * @throws Kohana_Exception
Line 57: throw new Kohana_Exception('core.driver_implements', $type, get_class($this), 'ArchiveDriver');
Line 111: * @throws Kohana_Exception
Line 121: throw new Kohana_Exception('archive.directory_unwritable', $directory);
Line 127: throw new Kohana_Exception('archive.filename_conflict', $filename);

/sprout/Helpers/Cache.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 73: if (($config = Kohana::config('cache.'.$config)) === NULL)
Line 74: throw new Kohana_Exception('cache.undefined_group', $name);
Line 80: $config += Kohana::config('cache.default');
Line 85: $config = Kohana::config('cache.default');
Line 95: if ( ! Kohana::auto_load($driver))
Line 96: throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this));
Line 103: throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'CacheDriver');
Line 159: throw new Kohana_Exception('cache.resources');

/sprout/Helpers/Drivers/Cache/Eaccelerator.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 33: throw new Kohana_Exception('cache.extension_not_loaded', 'eaccelerator');
Line 43: Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
Line 52: Kohana::log('error', 'tags are unsupported by the eAccelerator driver');
Line 62: Kohana::log('error', 'tags are unsupported by the eAccelerator driver');

/sprout/Helpers/Drivers/Cache/File.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 42: throw new Kohana_Exception('cache.unwritable', $directory);
Line 226: Kohana::log('error', 'Cache: Unable to delete cache file: '.$file);
Line 253: Kohana::log('error', 'Cache: Unable to delete cache file: '.$file);

/sprout/Helpers/Drivers/Cache/Memcache.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 45: throw new Kohana_Exception('cache.extension_not_loaded', 'memcache');
Line 48: $this->flags = Kohana::config('cache_memcache.compression') ? MEMCACHE_COMPRESSED : FALSE;
Line 50: $servers = Kohana::config('cache_memcache.servers');
Line 59: or Kohana::log('error', 'Cache: Connection failed: '.$server['host']);

/sprout/Helpers/Drivers/Cache/Xcache.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 33: throw new Kohana_Exception('cache.extension_not_loaded', 'xcache');
Line 48: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 56: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 64: Kohana::log('error', 'Cache: tags are unsupported by the Xcache driver');
Line 130: $_SERVER[$key] = Kohana::config('cache_xcache.'.$key);

/sprout/Helpers/Drivers/Image/GD.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 40: throw new Kohana_Exception('image.gd.requires_v2');
Line 47: throw new Kohana_Exception('image.gd.requires_v2');
Line 83: throw new Kohana_Exception('image.type_not_allowed', $image['file']);
Line 87: throw new Kohana_Exception('image.type_not_allowed', $dir.$file);
Line 112: ($quality === NULL) and $quality = (int)Kohana::config('sprout.jpeg_quality');
Line 113: imageinterlace($this->tmp_image, Kohana::config('sprout.jpeg_progressive'));
Line 339: throw new Kohana_Exception('image.unsupported_method', __FUNCTION__);

/sprout/Helpers/Drivers/Session/Cache.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 46: if (Kohana::config('session.encryption'))
Line 51: Kohana::log('debug', 'Session Cache Driver Initialized');
Line 56: $config = Kohana::config('session.storage');
Line 61: $config = Kohana::config('cache.default');
Line 68: if (($config = Kohana::config('cache.'.$config)) === NULL)
Line 69: throw new Kohana_Exception('cache.undefined_group', $name);
Line 72: $config['lifetime'] = (Kohana::config('session.expiration') == 0) ? 86400 : Kohana::config('session.expiration');
Line 88: return Kohana::config('session.encryption') ? $this->encrypt->decode($data) : $data;
Line 98: $data = Kohana::config('session.encryption') ? $this->encrypt->encode($data) : $data;

/sprout/Helpers/Email.php Highlighted file source
Line 16: use Kohana;
Line 39: $this->From = Kohana::config('sprout.site_email');
Line 40: $this->FromName = Kohana::config('sprout.site_title');
Line 43: $this->Host = Kohana::config('sprout.smtp_server');
Line 44: $this->Port = Kohana::config('sprout.smtp_port');
Line 45: $this->SMTPSecure = (Kohana::config('sprout.smtp_secure') ? 'tls' : '');
Line 46: $this->SMTPAutoTLS = Kohana::config('sprout.smtp_autotls');
Line 47: $this->SMTPAuth = Kohana::config('sprout.smtp_auth');
Line 48: $this->Username = Kohana::config('sprout.smtp_username');
Line 49: $this->Password = Kohana::config('sprout.smtp_password');
Line 51: $this->AllowedDomains = Kohana::config('sprout.email_allowed_domains');
Line 89: $view->html_title = Kohana::config('sprout.site_title');

/sprout/Helpers/Encrypt.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 55: * @throws Kohana_Exception
Line 60: throw new Kohana_Exception('encrypt.requires_mcrypt');
Line 67: if (($config = Kohana::config('encryption.'.$config)) === NULL)
Line 68: throw new Kohana_Exception('encrypt.undefined_group', $name);
Line 74: $config += Kohana::config('encryption.default');
Line 79: $config = Kohana::config('encryption.default');
Line 83: throw new Kohana_Exception('encrypt.no_encryption_key');

/sprout/Helpers/Event_Observer.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana_Exception;
Line 22: * Kohana event observer. Uses the SPL observer pattern.
Line 51: throw new Kohana_Exception('event.invalid_subject', get_class($caller), get_class($this));

/sprout/Helpers/Event_Subject.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana_Exception;
Line 22: * Kohana event subject. Uses the SPL observer pattern.
Line 39: throw new Kohana_Exception('eventable.invalid_observer', get_class($obj), get_class($this));

/sprout/Helpers/File.php Highlighted file source
Line 19: use Kohana;
Line 369: $transforms = Kohana::config('file.image_transformations');
Line 530: $size_names = Kohana::config('file.image_transformations');
Line 771: Kohana::closeBuffers();
Line 920: $sizes = Kohana::config('file.image_transformations');
Line 959: $sizes = Kohana::config('file.image_transformations');

/sprout/Helpers/HttpReq.php Highlighted file source
Line 19: use Kohana;
Line 199: if (Kohana::config('sprout.httpreq_proxy_host') and Kohana::config('sprout.httpreq_proxy_port')) {
Line 200: curl_setopt($ch, CURLOPT_PROXY, Kohana::config('sprout.httpreq_proxy_host'));
Line 201: curl_setopt($ch, CURLOPT_PROXYPORT, Kohana::config('sprout.httpreq_proxy_port'));
Line 203: if (Kohana::config('sprout.httpreq_proxy_auth')) {
Line 204: curl_setopt($ch, CURLOPT_PROXYUSERPWD, Kohana::config('sprout.httpreq_proxy_auth'));
Line 207: if (Kohana::config('sprout.httpreq_proxy_type') == 'socks5') {
Line 291: if (Kohana::config('sprout.httpreq_proxy_host') and Kohana::config('sprout.httpreq_proxy_port')) {
Line 292: curl_setopt($ch, CURLOPT_PROXY, Kohana::config('sprout.httpreq_proxy_host'));
Line 293: curl_setopt($ch, CURLOPT_PROXYPORT, Kohana::config('sprout.httpreq_proxy_port'));
Line 295: if (Kohana::config('sprout.httpreq_proxy_auth')) {
Line 296: curl_setopt($ch, CURLOPT_PROXYUSERPWD, Kohana::config('sprout.httpreq_proxy_auth'));
Line 299: if (Kohana::config('sprout.httpreq_proxy_type') == 'socks5') {

/sprout/Helpers/Image.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 20: use Kohana;
Line 21: use Kohana_Exception;
Line 76: * @throws Kohana_Exception
Line 89: throw new Kohana_Exception('image.getimagesize_missing');
Line 93: throw new Kohana_Exception('image.file_not_found', $image);
Line 106: throw new Kohana_Exception('image.file_unreadable', $image);
Line 110: throw new Kohana_Exception('image.type_not_allowed', $image);
Line 124: $this->config = (array) $config + Kohana::config('image');
Line 131: throw new Kohana_Exception('core.driver_not_found', $this->config['driver'], get_class($this));
Line 138: throw new Kohana_Exception('core.driver_implements', $this->config['driver'], get_class($this), 'ImageDriver');
Line 155: throw new Kohana_Exception('core.invalid_property', $property, get_class($this));
Line 160: * Resize an image to a specific width and height. By default, Kohana will
Line 165: * @throws Kohana_Exception
Line 174: throw new Kohana_Exception('image.invalid_width', $width);
Line 177: throw new Kohana_Exception('image.invalid_height', $height);
Line 180: throw new Kohana_Exception('image.invalid_dimensions', __FUNCTION__);
Line 188: throw new Kohana_Exception('image.invalid_master');
Line 205: * @throws Kohana_Exception
Line 215: throw new Kohana_Exception('image.invalid_width', $width);
Line 218: throw new Kohana_Exception('image.invalid_height', $height);
Line 221: throw new Kohana_Exception('image.invalid_top', $top);
Line 224: throw new Kohana_Exception('image.invalid_left', $left);
Line 227: throw new Kohana_Exception('image.invalid_dimensions', __FUNCTION__);
Line 278: * @throws Kohana_Exception
Line 285: throw new Kohana_Exception('image.invalid_flip');
Line 321: * @throws Kohana_Exception
Line 340: throw new Kohana_Exception('image.directory_unwritable', $dir);

/sprout/Helpers/Inflector.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 45: Inflector::$uncountable = Kohana::config('inflector.uncountable');
Line 88: Inflector::$irregular = Kohana::config('inflector.irregular');
Line 145: Inflector::$irregular = Kohana::config('inflector.irregular');

/sprout/Helpers/LaunchChecks.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 69: $cli_domain = Kohana::config('config.cli_domain');
Line 93: $cli_domain = Kohana::config('config.cli_domain');
Line 94: $email = Kohana::config('sprout.site_email');

/sprout/Helpers/Navigation.php Highlighted file source
Line 16: use Kohana;
Line 72: if (Kohana::config('cache.enabled') and $is_admin == false) {
Line 144: if (Kohana::config('cache.enabled') and $is_admin == false) {
Line 181: if (Kohana::config('cache.enabled')) {
Line 199: $pmm_max_depth = (int) Kohana::config('sprout.pmm2_depth');
Line 200: $pmm_nav_limit = (int) Kohana::config('sprout.nav_limit');
Line 209: if (Kohana::config('sprout.nav_home')) {
Line 289: $pmm_max_depth = (int) Kohana::config('sprout.pmm2_depth');
Line 290: $pmm_nav_limit = (int) Kohana::config('sprout.nav_limit');
Line 299: if (Kohana::config('sprout.nav_home')) {
Line 374: if (Kohana::config('sprout.nav_limit') == 0) {
Line 375: Kohana::configSet('sprout.nav_limit', 9999);
Line 381: if (Kohana::config('sprout.nav_home')) {
Line 420: if ($nav_id > Kohana::config('sprout.nav_limit')) return;
Line 437: $max_depth = (int) Kohana::config('sprout.current_reveal_depth');
Line 608: if (Kohana::config('sprout.nav_limit') == 0) {
Line 609: Kohana::configSet('sprout.nav_limit', 9999);
Line 625: if (Kohana::config('sprout.nav_home')) {
Line 638: if ($i > Kohana::config('sprout.nav_limit')) break;
Line 659: $format = Kohana::config('sprout.browser_title');
Line 662: return sprintf($format, $page_title, Kohana::config('sprout.site_title'));
Line 716: if (! self::$page_node_matcher) return Kohana::config('sprout.site_title');
Line 719: if (! $page_node) return Kohana::config('sprout.site_title');
Line 722: if (! $ancestors[0]) return Kohana::config('sprout.site_title');
Line 761: $pmm_max_depth = (int) Kohana::config('sprout.pmm2_depth');
Line 762: $pmm_nav_limit = (int) Kohana::config('sprout.nav_limit');
Line 771: if (Kohana::config('sprout.nav_home')) {

/sprout/Helpers/Needs.php Highlighted file source
Line 18: use Kohana;
Line 24: * Also does replacement for the string "SITE/", which gets changed into the Kohana root directory.
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;
Line 189: $key = Kohana::config('sprout.google_maps_key');
Line 208: $key = Kohana::config('sprout.google_maps_key');
Line 231: $key = Kohana::config('sprout.google_places_key');
Line 364: Event::$data = str_replace ('ROOT/', Kohana::config('core.site_domain'), Event::$data);
Line 366: Event::$data = str_replace ('SKIN/', Kohana::config('core.site_domain') . 'skin/' . SubsiteSelector::$subsite_code . '/', Event::$data);
Line 378: $str = str_replace ('ROOT/', Kohana::config('core.site_domain'), $str);
Line 380: $str = str_replace ('SKIN/', Kohana::config('core.site_domain') . 'skin/' . SubsiteSelector::$subsite_code . '/', $str);

/sprout/Helpers/Request.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 70: } elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) and Kohana::config('sprout.load_balanced')) {
Line 93: * @throws Kohana_Exception in case of an unknown request method
Line 101: throw new Kohana_Exception('request.unknown_method', $method);
Line 112: if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']) and Kohana::config('sprout.load_balanced'))
Line 200: foreach ((array) Kohana::config('mimes.'.$type) as $type)

/sprout/Helpers/Router.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 21: use Kohana;
Line 22: use Kohana_Exception;
Line 63: * Automatically called during Kohana setup process.
Line 70: $routes = Kohana::config('routes');
Line 76: throw new Kohana_Exception('core.no_default_route');
Line 165: elseif (isset($_GET['kohana_uri']))
Line 168: Router::$current_uri = $_GET['kohana_uri'];
Line 171: unset($_GET['kohana_uri']);
Line 174: $_SERVER['QUERY_STRING'] = preg_replace('~\bkohana_uri\b[^&]*+&?~', '', $_SERVER['QUERY_STRING']);
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 200: if ($suffix = Kohana::config('core.url_suffix') AND strpos(Router::$current_uri, $suffix) !== FALSE)

/sprout/Helpers/Session.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 71: Session::$config = Kohana::config('session');
Line 127: throw new Kohana_Exception('core.driver_not_found', Session::$config['driver'], get_class());
Line 134: throw new Kohana_Exception('core.driver_implements', Session::$config['driver'], get_class(), 'SessionDriver');
Line 150: throw new Kohana_Exception('session.invalid_session_name', Session::$config['name']);
Line 159: Kohana::config('cookie.path'),
Line 160: Kohana::config('cookie.domain'),
Line 161: Kohana::config('cookie.secure'),
Line 177: $_SESSION['user_agent'] = Kohana::$user_agent;
Line 197: if ($_SESSION[$valid] !== Kohana::$user_agent)
Line 258: Kohana::config('cookie.path'),
Line 259: Kohana::config('cookie.domain'),
Line 260: Kohana::config('cookie.secure'),
Line 432: $result = isset($_SESSION[$key]) ? $_SESSION[$key] : Kohana::keyString($_SESSION, $key);

/sprout/Helpers/Sprout.php Highlighted file source
Line 20: use Kohana;
Line 232: if (!empty($git_version)) return Kohana::config('core.version');
Line 233: return Kohana::config('core.version_brand');
Line 381: $protocol = Kohana::config('config.site_protocol');
Line 746: if (! isset($supported[Kohana::userAgent('browser')])) {
Line 750: $min_version = $supported[Kohana::userAgent('browser')];
Line 752: return version_compare(Kohana::userAgent('version'), $min_version, '>=');

/sprout/Helpers/TwigView.php Highlighted file source
Line 16: use Kohana_Exception;
Line 37: protected $kohana_template_name;
Line 58: $this->kohana_template_name = $name;
Line 66: if (empty($this->kohana_filename)) {
Line 67: throw new Kohana_Exception('core.view_set_filename');
Line 70: $output = self::$twig->render($this->kohana_template_name, $this->kohana_local_data);

/sprout/Helpers/Upload.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 18: use Kohana;
Line 19: use Kohana_Exception;
Line 24: * @deprecated This is old Kohana cruft
Line 49: if (Kohana::config('upload.remove_spaces') === TRUE)
Line 58: $directory = Kohana::config('upload.directory', TRUE);
Line 64: if ( ! is_dir($directory) AND Kohana::config('upload.create_directories') === TRUE)
Line 71: throw new Kohana_Exception('upload.not_writable', $directory);
Line 137: $mime_types = Kohana::config('mimes.'.$extension);

/sprout/Helpers/Url.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 19: use Kohana;
Line 56: $site_domain = (string) Kohana::config('core.site_domain', TRUE);
Line 71: if ($index === TRUE AND $index = Kohana::config('core.index_page'))
Line 95: $path .= Kohana::config('core.url_suffix');

/sprout/Helpers/View.php Highlighted file source
Line 13: * This class was originally from Kohana 2.3.4
Line 14: * Copyright 2007-2008 Kohana Team
Line 19: use Kohana;
Line 20: use Kohana_Exception;
Line 24: * Loads and displays Kohana view files.
Line 32: protected $kohana_filename = FALSE;
Line 35: protected $kohana_local_data = array();
Line 36: protected static $kohana_global_data = array();
Line 41: * @throws Kohana_Exception if the requested view cannot be found
Line 50: $this->kohana_local_data = array_merge($this->kohana_local_data, $data);
Line 75: $this->kohana_filename = DOCROOT . $name;
Line 128: $result[$property] = (array_key_exists($property, $this->kohana_local_data) OR array_key_exists($property, View::$kohana_global_data)) ? TRUE : FALSE;
Line 134: $result = (array_key_exists($key, $this->kohana_local_data) OR array_key_exists($key, View::$kohana_global_data)) ? TRUE : FALSE;
Line 150: $this->kohana_local_data[$name] =& $var;
Line 168: View::$kohana_global_data[$key] = $value;
Line 173: View::$kohana_global_data[$name] = $value;
Line 186: $this->kohana_local_data[$key] = $value;
Line 198: if (isset($this->kohana_local_data[$key]))
Line 199: return $this->kohana_local_data[$key];
Line 201: if (isset(View::$kohana_global_data[$key]))
Line 202: return View::$kohana_global_data[$key];
Line 239: if (empty($this->kohana_filename))
Line 240: throw new Kohana_Exception('core.view_set_filename');
Line 243: $data = array_merge(View::$kohana_global_data, $this->kohana_local_data);
Line 266: $output = $data_into_view($this->kohana_filename, $data);
Line 309: $type = Kohana::config('sprout.skin_views_type') ?? 'php';

/sprout/i18n/en_US/core.php Highlighted file source
Line 17: 'there_can_be_only_one' => 'There can be only one instance of Kohana per page request',
Line 26: 'no_controller' => 'Kohana was not able to determine a controller to process this request: %s',
Line 28: 'stats_footer' => 'Loaded in {execution_time} seconds, using {memory_usage} of memory. Generated by Kohana v{kohana_version}.',

/sprout/phpunit_bootstrap.php Highlighted file source
Line 28: $kohana_pathinfo = pathinfo(dirname(__FILE__) . '/../index.php');
Line 29: $kohana_application = 'sprout';
Line 31: define('DOCROOT', $kohana_pathinfo['dirname'].DIRECTORY_SEPARATOR);
Line 32: define('KOHANA', $kohana_pathinfo['basename']);
Line 36: define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/');
Line 71: require APPPATH . 'core/Kohana.php';
Line 74: Kohana::setup();

/sprout/views/admin/footer_compat.php Highlighted file source
Line 28: <p><?php echo Kohana::config('branding.product_name'); ?> is officially supported with the following web browsers:</p>
Line 35: <p><?php echo Kohana::config('branding.product_name'); ?> has been tested in Firefox for Windows, Mac and Linux.</p>
Line 37: <p><?php echo Kohana::config('branding.product_name'); ?> should work on any modern web browser including Safari, Opera and Chrome,
Line 40: <p>Internet Explorer 6 will not run <?php echo Kohana::config('branding.product_name'); ?> very well and its use is not recommended.</p>

/sprout/views/admin/_footer.php Highlighted file source
Line 10: <?php $rev = Kohana::config('core.repo_rev'); if ($rev) { echo ' | Site: r' . $rev; } ?>
Line 11: <?php if (Kohana::config('branding.product_url')): ?>
Line 12: <a href="<?= Enc::html(Kohana::config('branding.product_url')); ?>" target="_blank"><?= Enc::html(Kohana::config('branding.product_name')); ?></a>
Line 14: <?= Enc::html(Kohana::config('branding.product_name')); ?>
Line 20: if (Kohana::config('branding.product_url') !== Kohana::config('branding.support_url')) {
Line 22: echo '<a href="', Enc::html(Kohana::config('branding.support_url')), '" target="_blank">';
Line 23: echo Enc::html(Kohana::config('branding.support_organisation'));
Line 30: <?php echo Kohana::config('branding.copyright_html'); ?>
A total of 706 lines in 144 files were found