
/modules/Welcome/Controllers/WelcomeController.php Highlighted file source
Line 27: use Sprout\Helpers\Enc;
Line 506: $config .= " '" . Enc::html(Enc::js($username));
Line 507: $config .= "' => ['uid' => {$user['uid']}, " . "'hash' => '" . Enc::html(Enc::js($user['hash']));
Line 508: $config .= "', 'salt' => '" . Enc::html(Enc::js($user['salt'])) . "'],\n";
Line 741: $data['slug'] = Enc::urlname($name);
Line 765: $data['settings'] = json_encode(['text' => $content]);
Line 788: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '3']);
Line 799: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '4']);
Line 809: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '9']);
Line 820: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '10']);

/modules/Welcome/views/db_conf_result.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 50: <li>Download the <a href="<?php echo Enc::html($db_config_url); ?>">generated config file</a></li>
Line 51: <li>Save the file as <code><?php echo Enc::html(DOCROOT . 'config/database.php'); ?></code></li>
Line 64: <li>Download the <a href="<?php echo Enc::html($pass_config_url); ?>">generated config file</a></li>
Line 65: <li>Save the file as <code><?php echo Enc::html($pass_filename); ?></code></li>
Line 77: <li>Download the <a href="<?php echo Enc::html($host_config_url); ?>">generated config file</a></li>
Line 78: <li>Save the file as <code><?php echo Enc::html(DOCROOT . 'config/dev_hosts.php'); ?></code></li>

/modules/Welcome/views/super_op_result.php Highlighted file source
Line 16: use Sprout\Helpers\Enc;
Line 40: <li>Download the <a href="<?php echo Enc::html($superop_config_url); ?>">generated config file</a></li>
Line 41: <li>Save the file as <code><?php echo Enc::html(DOCROOT . 'config/super_ops.php'); ?></code></li>
Line 46: <li>Update the file <code><?php echo Enc::html(DOCROOT . 'config/super_ops.php'); ?></code> adding the following:</li>
Line 52: echo " '", Enc::html(Enc::js($username));
Line 53: echo "' => ['uid' => {$user['uid']}, 'hash' => '", Enc::html(Enc::js($user['hash']));
Line 54: echo "', 'salt' => '", Enc::html(Enc::js($user['salt'])), "'],\n";

/skin/default/email.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
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>
Line 202: <a href="<?php echo Enc::html(Sprout::absRoot()); ?>"><?php echo Enc::html(Sprout::absRoot()); ?></a>

/skin/default/home.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 20: <title><?php echo Enc::html($browser_title); ?></title>
Line 33: <!--[if IE]><div class="old-browser"><p>This website uses modern construction techniques, which may not render correctly in your old browser. <br>We recommend updating your browser for the best online experience.</p> <p>Visit <a href="http://browsehappy.com/">browsehappy.com</a> to help you select an upgrade.</p></div><![endif]-->
Line 56: <h1><?php echo Enc::html(Kohana::config('sprout.site_title')); ?></h1>

/skin/default/inner.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 27: <title><?php echo Enc::html($browser_title); ?></title>
Line 43: <body class="<?= Enc::html(@$controller_name); ?>">
Line 44: <!--[if IE]><div class="old-browser"><p>This website uses modern construction techniques, which may not render correctly in your old browser. <br>We recommend updating your browser for the best online experience.</p> <p>Visit <a href="http://browsehappy.com/">browsehappy.com</a> to help you select an upgrade.</p></div><![endif]-->
Line 62: <h1><?php echo Enc::html($page_title); ?></h1>

/skin/default/partials/_header.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
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>
Line 48: <input id="fm-site-search" class="textbox" type="text" name="q" value="<?php echo Enc::html(@$_GET['q']); ?>" placeholder="Enter your search here">

/skin/default/partials/_hero-banner.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 12: <img class="hero-banner__img" src="<?= Enc::html(File::resizeUrl($banners[0]['filename'], 'c1600x400-cc~80')); ?>" alt="">
Line 17: <h2 class="hero-banner__heading"><?= Enc::html($banners[0]['heading']); ?></h2>
Line 21: <p><?= Enc::html($banners[0]['description']); ?></p>
Line 25: <p><a class="button button-large" href="<?= Enc::html(Lnk::url($banners[0]['link'])); ?>"><?= Enc::html($banners[0]['link_label']); ?></a></p>

/skin/default/partials/_promos-three.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 30: <div class="promo__img"><img src="<?= Enc::html(File::resizeUrl($promo['filename'], 'c600x400')); ?>" alt=""></div>
Line 35: <h3 class="promo__content__heading"><?= Enc::html($promo['heading']); ?></h3>
Line 43: <a href="<?= Enc::html(Lnk::url($promo['link'])); ?>" class="button promo__button"><?= Enc::html($promo['link_label']); ?></a>

/skin/default/wide.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 26: <title><?php echo Enc::html($browser_title); ?></title>
Line 42: <body class="<?= Enc::html(@$controller_name); ?>">
Line 43: <!--[if IE]><div class="old-browser"><p>This website uses modern construction techniques, which may not render correctly in your old browser. <br>We recommend updating your browser for the best online experience.</p> <p>Visit <a href="http://browsehappy.com/">browsehappy.com</a> to help you select an upgrade.</p></div><![endif]-->
Line 58: <h1><?php echo Enc::html($page_title); ?></h1>

/skin/harbor/home.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 20: <title><?php echo Enc::html($browser_title); ?></title>
Line 39: <a href="/"><img src="https://cdn.shopify.com/s/files/1/0401/9172/1631/files/Harbor_and_Sprout_Logo_in_color_with_text_300x300.png?v=1619754829" alt="<?php echo Enc::html($browser_title); ?>"></a>
Line 44: <?php if (!empty($file['url'])): ?><a bp="grid vertical-center" href="<?= Enc::html($file['url']); ?>"><?php else: ?><div bp="grid vertical-center"><?php endif; ?>
Line 46: <div bp="2" class="icon--mask icon-<?= Enc::html($file['icon']); ?>"></div>
Line 47: <div bp="10"><h2><?= Enc::html($file['name']); ?></h2></div>
Line 53: <p>© <?= Enc::html(sprintf('%s - %s', date('Y'), Kohana::config('sprout.site_title'))); ?></p>

/skin/harbor/inner.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 19: <title><?php echo Enc::html($browser_title); ?></title>
Line 38: <img src="https://cdn.shopify.com/s/files/1/0401/9172/1631/files/Harbor_and_Sprout_Logo_in_color_with_text_300x300.png?v=1619754829" alt="<?php echo Enc::html($browser_title); ?>">
Line 42: <h1><?php echo Enc::html($page_title); ?></h1>
Line 50: <p>© <?= Enc::html(sprintf('%s - %s', date('Y'), Kohana::config('sprout.site_title'))); ?></p>

/sprout/config/encryption.php Highlighted file source
Line 18: * @package Encrypt
Line 20: * Encrypt configuration is defined in groups which allows you to easily switch
Line 21: * between different encryption settings for different uses.
Line 25: * key - Encryption key used to do encryption and decryption. The default option
Line 28: * For best security, your encryption key should be at least 16 characters
Line 30: * @note Do not use a hash as your key. This significantly lowers encryption entropy.
Line 32: * mode - MCrypt encryption mode. By default, MCRYPT_MODE_NOFB is used. This mode
Line 34: * produces the shortest encrypted output.
Line 37: * cipher - MCrypt encryption cipher. By default, the MCRYPT_RIJNDAEL_128 cipher is used.

/sprout/Controllers/Admin/CategoryAdminController.php Highlighted file source
Line 24: use Sprout\Helpers\Enc;
Line 129: . 'Contact ' . Enc::html(Kohana::config('branding.support_organisation')) . ' to have categories added'
Line 152: 'title' => 'Adding ' . Enc::html(Inflector::singular($this->friendly_name)),
Line 199: return '<p><i>Contact ' . Enc::html(Kohana::config('branding.support_organisation'))
Line 232: 'title' => 'Editing ' . Enc::html(Inflector::singular($this->friendly_name)) . ' <strong>' . Enc::html($this->_identifier($item)) . '</strong>',
Line 292: return '<p><i>Contact ' . Enc::html(Kohana::config('branding.support_organisation'))
Line 320: 'title' => 'Delete category <strong>' . Enc::html($category['name']) . '</strong>',
Line 366: // Delete references to category

/sprout/Controllers/Admin/FileAdminController.php Highlighted file source
Line 31: use Sprout\Helpers\Enc;
Line 298: $_GET['file']['name'] = trim(Enc::cleanfunky($_GET['file']['name']));
Line 386: $_POST['orig_name'] = trim(Enc::cleanfunky($_POST['orig_name']));
Line 387: $_POST['name'] = trim(Enc::cleanfunky($_POST['name']));
Line 491: $html .= '<p class="file-upload__item__feedback__name"><a href="admin/edit/file/' . $file_id . '" target="_blank">' . Enc::html($filename) . '</a></p>';
Line 579: echo '<div>', json_encode($result), '</div>';
Line 731: $preview = trim(Enc::cleanFunky($view->data['plaintext']));
Line 921: $data['focal_points'] = json_encode($points);
Line 968: $dest_link_spec = json_encode([
Line 1248: Cron::message("Deleted file: " . json_encode($file));

/sprout/Controllers/Admin/HasCategoriesAdminController.php Highlighted file source
Line 26: use Sprout\Helpers\Enc;
Line 283: $title = $this->friendly_name . ' category <strong>' . Enc::html($category['name']) . '</strong>';
Line 481: * @param boolean False if any errors are encountered; will cancel the entire import process.
Line 555: 'title' => 'Adding ' . Enc::html(Inflector::singular($this->friendly_name)),
Line 637: $title = 'Editing ' . Enc::html(Inflector::singular($this->friendly_name));
Line 639: 'title' => $title . ' <strong>' . Enc::html($this->_identifier($item)) . '</strong>',
Line 720: $title = 'Duplicating ' . Enc::html(Inflector::singular($this->friendly_name));
Line 722: 'title' => $title . ' <strong>' . Enc::html($this->_identifier($item)) . '</strong>',

/sprout/Controllers/Admin/ManagedAdminController.php Highlighted file source
Line 28: use Sprout\Helpers\Enc;
Line 433: 'title' => 'Export ' . Enc::html(strtolower($this->friendly_name)),
Line 533: $data['columns'][Enc::httpfield($csv_heading)] = $found_col;
Line 558: $title = 'Import ' . Enc::html(strtolower($this->friendly_name));
Line 581: $real_from_post[Enc::httpfield($name)] = $name;
Line 773: * This is a by-reference argument.
Line 787: * @return boolean False if any errors are encountered; will cancel the entire import process.
Line 892: 'title' => 'Search ' . Enc::html($this->friendly_name),
Line 1035: 'title' => Enc::html($this->friendly_name),
Line 1170: echo ' icon-', $icon, '" title="', Enc::html($label), '"><span class="-vis-hidden">' . Enc::html($label) . "</span>";
Line 1174: echo '"><span>' . Enc::html($val) . '</span>';
Line 1229: 'title' => 'Adding ' . Enc::html(Inflector::singular($this->friendly_name)),
Line 1414: $title = 'Editing ' . Enc::html(Inflector::singular($this->friendly_name));
Line 1416: 'title' => $title . ' <strong>' . Enc::html($this->_identifier($item)) . '</strong>',
Line 1450: * @return array Each key is a unique reference to the action, e.g. 'delete', and the value is an array, with keys:
Line 1590: $title = 'Duplicating ' . Enc::html(Inflector::singular($this->friendly_name));
Line 1592: 'title' => $title . ' <strong>' . Enc::html($this->_identifier($item)) . '</strong>',
Line 1652: 'title' => 'Deleting ' . Enc::html(Inflector::singular($this->friendly_name)) . ' <strong>' . Enc::html($this->_identifier($view->item)) . '</strong>',
Line 1755: $friendly = Enc::html(strtolower($this->friendly_name));

/sprout/Controllers/Admin/PageAdminController.php Highlighted file source
Line 38: use Sprout\Helpers\Enc;
Line 312: Slug::unique(Enc::urlname((string)@$_POST['name'], '-'), 'pages', $conds);
Line 352: $update_fields['slug'] = Enc::urlname($_POST['name'], '-');
Line 583: echo '<li>', ($_GET['page_name'] ? Enc::html($_GET['page_name']) : '<i>Enter a page name into the field above</i>'), '</li>';
Line 616: echo '<li>', Enc::html($node['name']);
Line 793: $update_fields['slug'] = Enc::urlname(trim($node['name']), '-');
Line 825: $update_fields['settings'] = json_encode($settings);
Line 915: if (empty($page['slug'])) $page['slug'] = Enc::urlname($page['name']);
Line 1167: $title = 'Editing revision ' . $rev_num . ' of page <strong>' . Enc::html($page['name']) . '</strong>';
Line 1169: $title = 'Editing page <strong>' . Enc::html($page['name']) . '</strong>';
Line 1313: $settings = json_encode($settings);
Line 1404: $widget['settings'] = json_encode($settings);
Line 1526: $update_fields['slug'] = Enc::urlname($_POST['slug'], '-');
Line 1949: 'title' => 'Deleting page <strong>' . Enc::html($view->page['name']) . '</strong>',
Line 2055: 'title' => 'Links for page <strong>' . Enc::html($view->page->name) . '</strong>',
Line 2243: $name = Enc::html($name);
Line 2245: $rel = Enc::html('/' . $dir_item_path);
Line 2258: $name = Enc::html($name);
Line 2260: $rel = Enc::html($_POST['dir'] . $child['id']);

/sprout/Controllers/Admin/TreeAdminController.php Highlighted file source
Line 21: use Sprout\Helpers\Enc;
Line 155: 'title' => 'Deleting ' . Enc::html(Inflector::singular($this->friendly_name)) . ' <strong>' . Enc::html($this->_identifier($view->item)) . '</strong>',
Line 364: 'title' => 'Organise ' . Enc::html($this->friendly_name),
Line 447: $name = Enc::html($name);
Line 449: $rel = Enc::html('/' . $dir_item_path);
Line 467: $name = Enc::html($name);
Line 469: $rel = Enc::html($_POST['dir'] . $child['id']);

/sprout/Controllers/AdminController.php Highlighted file source
Line 40: use Sprout\Helpers\Enc;
Line 191: Url::redirect('admin/login?username=' . Enc::url($_POST['Username']) . '&redirect=' . Enc::url($_POST['redirect']) . '&nomsg=1');
Line 200: Url::redirect('admin/login&redirect=' . Enc::url($_POST['redirect']) . '&nomsg=1');
Line 217: Url::redirect('admin/login?username=' . Enc::url($_POST['Username']) . '&redirect=' . Enc::url($_POST['redirect']) . '&nomsg=1');
Line 315: Url::redirect('admin/login?username=' . Enc::url($_POST['Username']) . '&redirect=' . Enc::url($_POST['redirect']) . '&nomsg=1');
Line 323: Url::redirect('admin/login?username=' . Enc::url($_POST['Username']) . '&redirect=' . Enc::url($_POST['redirect']) . '&nomsg=1');
Line 947: $out .= '<a href="' . Enc::html($item['url']) . '" class="' . Enc::html($class) . '"';
Line 952: $out .= Enc::html($item['name']);
Line 1085: $class = 'admin-ajax action-add type-' . Enc::id($type);
Line 1088: echo '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post">';
Line 1108: $content = '<form action="admin/add_save/' . Enc::html($ctlr->getControllerName()) . '" method="post" id="edit-form" class="-clearfix">';
Line 1127: $content .= '<h2 class="icon-before icon-add">Add ' . Enc::html($single) . '</h2>';
Line 1145: $content .= '<a href="' . Enc::html($sub_actions['_preview']) . '" class="save-changes-preview-button button button-regular button-blue icon-after icon-remove_red_eye">Preview</a>';
Line 1197: echo json_encode(array('result' => $result));
Line 1286: $content = '<form action="admin/edit_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id;
Line 1287: $content .= '" method="post" id="edit-form" class="-clearfix" enctype="multipart/form-data">';
Line 1322: $content .= '<a href="' . Enc::html($sub_actions['_preview']) . '" class="save-changes-preview-button button button-regular button-blue icon-after icon-remove_red_eye">Preview</a>';
Line 1380: echo json_encode(array('result' => $result));
Line 1451: $content = '<form action="admin/delete_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1463: $content .= '<h2 class="icon-before icon-delete">Delete ' . Enc::html($single) . '</h2>';
Line 1466: $content .= '<button type="submit" class="save-changes-save-button button button-regular button-red button-ref icon-after icon-delete">Delete ' . Enc::html($single) . '</button>';
Line 1521: echo json_encode(array('result' => $result));
Line 1602: $content = '<form action="admin/duplicate_save/' . Enc::html($ctlr->getControllerName()) . '/' . $id . '" method="post" id="edit-form">';
Line 1621: $content .= '<h2 class="icon-before icon-save">Duplicate ' . Enc::html($single) . '</h2>';
Line 1628: $content .= '<a href="' . Enc::html($sub_actions['_preview']) . '" class="save-changes-preview-button button button-regular button-blue icon-after icon-remove_red_eye">Preview</a>';
Line 1722: echo json_encode(array('result' => $result));
Line 1773: $out .= '<h3>' . Enc::html($inst->getFriendlyName()) . '</h3>';
Line 2191: Url::redirect('admin/edit/' . Enc::url($ctlr->getControllerName()) . '/' . $main_record['record_id']);
Line 2218: echo "<td><b>", Enc::html($field), "</b></td>\n";
Line 2219: echo "<td>", Enc::html($val), "</td>\n";

/sprout/Controllers/ContentSubscribeController.php Highlighted file source
Line 23: use Sprout\Helpers\Enc;
Line 337: echo '<span style="color: #090;">[Found ] ', Enc::html($row['handler_class']), '</span>', PHP_EOL;
Line 339: echo '<span style="color: #900;">[MISSING] ', Enc::html($row['handler_class']), '</span>', PHP_EOL;
Line 345: echo '<span style="color: #090;">[Deleted] ', Enc::html($row['handler_class']), '</span>', PHP_EOL;

/sprout/Controllers/DbToolsController.php Highlighted file source
Line 39: use Sprout\Helpers\Enc;
Line 170: 'url' => sprintf('dbtools/api/%s/%s', Enc::url($api['class']), Enc::url($api['method'])),
Line 273: * Benchmark the server to find appropriate cost parameter
Line 594: $out .= '<pre class="sql">' . Enc::html($q) . '</pre>';
Line 606: $out .= nl2br(Enc::html($ex->getMessage()));
Line 620: $out .= Enc::html("{$dep['table']}.{$dep['column']}") . '<br>';
Line 676: $out .= '<pre class="sql">' . Enc::html($row['Query']) . '</pre>';
Line 777: echo '<form action="SITE/dbtools/importSave" method="post" enctype="multipart/form-data">';
Line 814: Url::redirect('dbtools/importOptions?tempname=' . Enc::url($tempname));
Line 821: echo '<p>Uploaded file: <code>', Enc::html($_GET['tempname']), '</code></p>';
Line 845: echo ' <input type="hidden" name="tempname" value="', Enc::html($_GET['tempname']), '">';
Line 920: echo '<p>Failed query: <code>' . Enc::html($q) . '</code>, exception: ',
Line 921: Enc::html($ex->getMessage()), '</p>';
Line 1239: echo '<form action="SITE/dbtools/importFileAction" method="post" enctype="multipart/form-data">';
Line 1488: echo '<input type="hidden" name="key[]" value="' . Enc::url($k) . '">';
Line 1495: echo '<h3>' . Enc::html($key) . '</h3>';
Line 1503: echo '<h3>' . Enc::html($key) . ' <i>' . get_class($val);
Line 1611: $rule = Enc::html($rule);
Line 1612: $target = Enc::html(json_encode($target, JSON_UNESCAPED_SLASHES));
Line 2049: echo '<h3>', Enc::html($t), '</h3>';
Line 2069: $items = '{"func": "Pdb::extractEnumArr", "args": ["' . Enc::js($t) . '", "' . Enc::js($f) . '"]}';
Line 2072: $items = '{"func": "Pdb::extractEnumArr", "args": ["' . Enc::js($t) . '", "' . Enc::js($f) . '"]}';
Line 2078: $items = '{"func": "Pdb::lookup", "args": ["' . Enc::js($target_table) . '"]}';
Line 2371: echo " '", Enc::html(Enc::js($username));
Line 2372: echo "' => ['uid' => {$user['uid']}, 'hash' => '", Enc::html(Enc::js($user['hash']));
Line 2373: echo "', 'salt' => '", Enc::html(Enc::js($user['salt'])), "'],\n";
Line 2414: echo '<h3>', Enc::html($s), '</h3>';
Line 2422: $url = '/dbtools/testSkinTemplatesAction/' . Enc::url($s) . '/' . Enc::url($f);
Line 2424: echo '<p><a href="' . Enc::html($url) . '">' . Enc::html($f) . '</a></p>';
Line 2464: // Preference goes to one with children, but fallback is one without
Line 2671: Enc::html($name) . "\"></p>\n\n";
Line 2817: echo '<h2>', Enc::html($e), '</h2>';
Line 2822: echo '<p>', Enc::html($ex->getMessage()), '</p>';
Line 2844: echo '<pre>', Enc::html($log), '</pre>';
Line 2848: echo '<p>Sent email to <b>', Enc::html($e), '</b>.</p>';
Line 2851: echo '<p>Sending to <b>', Enc::html($e), '</b> failed!</p>';
Line 2996: $view->img = sprintf('%sdbtools/qrCodeImage?payload=%s', Sprout::absRoot(), Enc::url($_GET['payload']));

/sprout/Controllers/Tinymce4Controller.php Highlighted file source
Line 23: use Sprout\Helpers\Enc;
Line 225: $up_url = 'SITE/tinymce4/image_search?search=' . Enc::url($_GET['search']);
Line 252: $url = 'SITE/tinymce4/library_browse/' . Enc::url($class_name) . '?path=';
Line 348: $url = 'SITE/tinymce4/library_browse/' . Enc::url($class_name) . '?path=' . Enc::url($path);
Line 359: $up_url = 'SITE/tinymce4/library_browse/' . Enc::url($class_name) . '?path=' . Enc::url(implode('/', $parts));

/sprout/core/Kohana.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 513: return (bool) @file_put_contents($path, json_encode($data));
Line 593: // step must be done to prevent gzencode from triggering an error
Line 597: if (stripos(@$_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)
Line 601: elseif (stripos(@$_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== FALSE)
Line 613: $output = gzencode($output, $level);
Line 623: header('Vary: Accept-Encoding');
Line 625: // Send the content encoding header
Line 626: header('Content-Encoding: '.$compress);
Line 713: 'exception' => json_encode($ex_data),
Line 714: 'trace' => json_encode($exception->getTraceAsString()),
Line 715: 'server' => json_encode($_SERVER),
Line 716: 'get' => json_encode($_GET),
Line 717: 'session' => json_encode($_SESSION),
Line 1174: * @param array array to set keys in (reference)
Line 1197: // Copy is a reference to the array
Line 1207: // Create reference to the array
Line 1234: // Go down a level, creating a new row reference
Line 1376: $output[] = '<pre>('.gettype($var).') '.Enc::html(print_r($var, TRUE)).'</pre>';
Line 1431: $arg = Enc::cleanfunky($arg);
Line 1440: $temp .= $sep.'<span>'.Enc::html(print_r($arg, TRUE)).'</span>';

/sprout/Helpers/Admin.php Highlighted file source
Line 51: 'check_controller_entrance\[.*\]' => 'Only one page may reference any given module',
Line 93: $class = Enc::id('field-error-' . $field_name);
Line 96: $out .= str_replace(' ', ' ', Enc::html($error));
Line 133: $widget_list_id = 'wl-' . Enc::id($field_name);
Line 137: echo " var list = new widget_list('", Enc::js($field_name), "');\n";
Line 140: $eng_name = Enc::js($inst->getFriendlyName());
Line 154: echo " list.add_widget(", json_encode($add_opts), ");\n";
Line 189: echo Enc::html($add_tooltip);
Line 229: echo '<div class="giant-popup-item-title-icon icon-before icon-', Enc::html($tile['icon']), '"></div>';
Line 230: echo '<h3 class="giant-popup-item-title">', Enc::html($tile['name']), '</h3>';
Line 241: echo '<li><a class="widget-list-new-widget" href="javascript:;" data-name="', Enc::html($widg), '" title="' . Enc::html($desc) . '">', Enc::html($name), '</a></li>';
Line 292: $name = Enc::html(Text::limitChars($node['name'], 35, '...'));
Line 328: echo "<li class=\"{$class}\"><a href=\"", Enc::html($url), "\">", Enc::html($action['name']), "</a></li>";
Line 428: $html_id = Enc::id($field . $val);
Line 433: $html_id = Enc::id($field . $val);
Line 440: echo '<input type="checkbox" name="', Enc::html($field), '" value="', Enc::html($val), '" id="', $html_id, '" checked>';
Line 442: echo '<input type="checkbox" name="', Enc::html($field), '" value="', Enc::html($val), '" id="', $html_id, '">';
Line 445: echo Enc::html($name);
Line 504: $html_id = Enc::id($field . $id);
Line 509: echo '<input type="', $type, '" name="', Enc::html($field), '" value="', Enc::html($id), '" id="', $html_id, '" checked>';
Line 511: echo '<input type="', $type, '" name="', Enc::html($field), '" value="', Enc::html($id), '" id="', $html_id, '">';
Line 514: echo Enc::html($name);
Line 556: $field_id = Enc::id($field);
Line 570: echo '<input type="radio" name="', Enc::html($field), '" value="', Enc::html($id), '" id="', $field_id, $id, '" checked>';
Line 572: echo '<input type="radio" name="', Enc::html($field), '" value="', Enc::html($id), '" id="', $field_id, $id, '">';
Line 575: echo Enc::html($name);
Line 619: $val[0] = Enc::html($val[0]);
Line 677: $dashboard_url = Enc::html(Kohana::config('sprout.admin_intro'));
Line 745: echo '<div class="giant-popup-item-title-icon icon-before icon-', Enc::html($tile['icon']), '"></div>';
Line 746: echo '<h3 class="giant-popup-item-title">', Enc::html($tile['name']), '</h3>';
Line 752: echo '<li><a href="admin/intro/', Enc::html($ctlr), '">', Enc::html($name), '</a></li>';

/sprout/Helpers/AdminSeo.php Highlighted file source
Line 227: * @param string $encoding Encoding of text
Line 230: public static function getFleschReadingScore($str, $encoding = '')
Line 242: TextDC::averageWordsPerSentence($str, $encoding)
Line 249: Syllables::averageSyllablesPerWord($str, $encoding)
Line 346: $avg = ceil(TextDC::averageWordsPerSentence(self::$content));
Line 347: $words = Kohana::config('admin_seo.average_words_sentence');
Line 350: self::$seo_goodresults[] = sprintf('Your sentences contain an average of %u words. Aiming for average maximum of %u.', $avg, $words);
Line 352: self::$seo_considerations[] = sprintf('Your sentences contain an average of %u words. Aim for an average maximum of %u words.', $avg, $words);

/sprout/Helpers/DocImport/DocImportDOCX.php Highlighted file source
Line 20: use Sprout\Helpers\Enc;
Line 67: $out .= '<?xml version="1.0" encoding="UTF-8" ?>' . PHP_EOL;
Line 74: $out .= '<res name="' . htmlspecialchars($name) . '">' . base64_encode($data) . '</res>' . PHP_EOL;
Line 292: $run->rendered = '<a href="' . Enc::xml($href) . '">' . $this->renderBlockRuns($child) . '</a>';
Line 417: $out .= Enc::xml($this->symbolSanitizeString($node->firstChild->data));
Line 419: $out .= Enc::xml($node->firstChild->data);
Line 594: * This function dereferences the number formats back again
Line 862: return ($charcode ? mb_convert_encoding('&#' . intval($charcode) . ';', 'UTF-8', 'HTML-ENTITIES') : '?');
Line 905: * Key - UTF-8 encoded bytes

/sprout/Helpers/Drivers/Session/Cache.php Highlighted file source
Line 22: use Sprout\Helpers\Encrypt;
Line 41: protected $encrypt;
Line 45: // Load Encrypt library
Line 46: if (Kohana::config('session.encryption'))
Line 48: $this->encrypt = new Encrypt;
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/Drivers/Session/Database.php Highlighted file source
Line 22: use Sprout\Helpers\Encrypt;
Line 34: // Encryption
Line 35: protected $encrypt;
Line 46: if ( ! empty($config['encryption']))
Line 48: // Load encryption
Line 49: $this->encrypt = Encrypt::instance();
Line 89: return ($this->encrypt === NULL) ? base64_decode($data) : $this->encrypt->decode($data);
Line 98: 'data' => ($this->encrypt === NULL) ? base64_encode($data) : $this->encrypt->encode($data)

/sprout/Helpers/Enc.php Highlighted file source
Line 19: * Encoding of data for various outputs
Line 21: class Enc
Line 37: * Encoding for HTML
Line 38: * Existing HTML entities in a string will be double-encoded
Line 39: * @param string $value The text to encode. This should be plain (i.e. non-HTML) text
Line 41: * @example $html = Enc::html('A & B'); // returns A & B
Line 42: * @example $bad_html = Enc::html('A & B'); // don't do this; returns A &amp; B
Line 50: * Encoding for HTML, but safe from double-encoding of existing entities
Line 51: * @param string $value The text to encode. This should be plain (i.e. non-HTML) text
Line 53: * @example $html = Enc::html('A & B'); // returns A & B
Line 54: * @example $html = Enc::html('A & B'); // this is fine; returns A & B
Line 62: * Encoding for XML
Line 64: * @param string $value The value to encode
Line 74: * Encoding for a part of a URL (i.e. GET parameter value
Line 76: * @param string $value The value to encode
Line 80: return urlencode(self::cleanfunky($value));
Line 84: * Encoding for ID or CLASS attributes
Line 86: * @param string $value The value to encode
Line 102: * Encoding for going inside a JS string
Line 104: * @param string $value The value to encode
Line 117: * Encoding for field name in a form element
Line 119: * @param string $value The value to encode
Line 137: * @param string $value The value to encode

/sprout/Helpers/Encrypt.php Highlighted file source
Line 23: * The Encrypt library provides two-way encryption of text and binary strings
Line 26: class Encrypt
Line 36: * Returns a singleton instance of Encrypt.
Line 39: * @return Encrypt
Line 46: empty($instance) and $instance = new Encrypt((array) $config);
Line 52: * Loads encryption configuration and validates the data.
Line 59: if ( ! defined('MCRYPT_ENCRYPT'))
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');
Line 102: * Encrypts a string and returns an encrypted string that can be decoded.
Line 104: * @param string data to be encrypted
Line 105: * @return string encrypted data
Line 107: public function encode($data)
Line 110: if (Encrypt::$rand === NULL)
Line 115: Encrypt::$rand = MCRYPT_RAND;
Line 122: Encrypt::$rand = MCRYPT_DEV_URANDOM;
Line 127: Encrypt::$rand = MCRYPT_DEV_RANDOM;
Line 132: Encrypt::$rand = MCRYPT_RAND;
Line 137: if (Encrypt::$rand === MCRYPT_RAND)
Line 145: $iv = mcrypt_create_iv($this->config['iv_size'], Encrypt::$rand);
Line 147: // Encrypt the data using the configured options and generated iv
Line 148: $data = mcrypt_encrypt($this->config['cipher'], $this->config['key'], $data, $this->config['mode'], $iv);
Line 150: // Use base64 encoding to convert to a string
Line 151: return base64_encode($iv.$data);
Line 155: * Decrypts an encoded string back to its original value.
Line 157: * @param string encoded string to be decrypted
Line 175: } // End Encrypt

/sprout/Helpers/Fb.php Highlighted file source
Line 124: return '<h3>' . Enc::html($heading) . '</h3>';
Line 187: * properly encoded.
Line 188: * - 'plain' (string): Specifies non-encoded content content between the opening and closing tags.
Line 193: $tag = '<' . Enc::html($name);
Line 198: $tag .= ' ' . Enc::html($attr) . '="' . Enc::html($val) . '"';
Line 207: $tag .= Enc::html($params['plain']);
Line 212: $tag .= '</' . Enc::html($name) . '>';
Line 312: $out = '<div class="money-symbol money-symbol--' . Enc::id(strtolower($locale->getCurrencyName())) . '">';
Line 326: * 'step' Difference between each grade on the range
Line 343: $id = Enc::id($attrs['id']);
Line 446: $out = '<div class="fb-chunked-upload" data-opts="' . Enc::html(json_encode($opts)) . '">';
Line 492: $out .= '<input class="js-delete-notify" type="hidden" name="' . Enc::html($name) . '_deleted">';
Line 521: if (!empty($file['code'])) $out .= ' data-code="' . Enc::html($file['code']) . '"';
Line 537: $out .= '<input type="hidden" name="' . Enc::html($name) . '[]" class="original" value="' . Enc::html($file['original']) . '" data-code="' . Enc::html($file['code']) . '">';
Line 538: $out .= '<input type="hidden" name="' . Enc::html($name) . '_temp[]" class="temp" value="' . Enc::html($file['temp']) . '" data-code="' . Enc::html($file['code']) . '">';
Line 631: $out = '<span class="' . Enc::html($classes) . '" data-filter="' . $options['filter'] . '"';
Line 632: $out .= ' data-init="false" data-filename="' . Enc::html($filename) . '" data-req-category="' . Enc::html($options['req_category']) . '">';
Line 634: $out .= '<input class="fs-hidden" type="hidden" name="' . Enc::html($name) . '" value="' . Enc::html($value) . '">';
Line 641: $out .= '<img src="' . Enc::html(File::resizeUrl($value, 'c50x50')) . '" alt="">';
Line 647: $out .= ($value ? Enc::html($value) : 'No file selected');
Line 742: $field .= Enc::html(self::$dropdown_top) . '</option>';
Line 767: $val_enc = Enc::html($val);
Line 770: $out .= "<optgroup label=\"{$val_enc}\">";
Line 775: $label = Enc::html($label);
Line 779: $out .= "<option value=\"{$val_enc}\" selected>{$label}</option>";
Line 781: $out .= "<option value=\"{$val_enc}\" selected>{$label}</option>";
Line 783: $out .= "<option value=\"{$val_enc}\">{$label}</option>";
Line 930: $content .= Enc::html($label);
Line 987: $id = Enc::id($name);
Line 988: $name = Enc::html($name);
Line 1091: $field .= Enc::html(self::$dropdown_top) . '</option>';
Line 1119: $name = Enc::html($node['name']);
Line 1277: $attrs['data-locale'] = json_encode($options['locale']);
Line 1363: $id = Enc::id($attrs['id']);
Line 1369: $out = "<span id=\"{$id}_wrap\" class=\"fb-timepicker\" data-config=\"" . Enc::html(json_encode($params)) . "\">";
Line 1377: $out .= "<input type=\"hidden\" name=\"{$name}\" value=\"" . Enc::html($value) . "\" class=\"hid\">";
Line 1435: * 'label' Field label (Sentence case), plaintext
Line 1477: $out .= '<label for="' . Enc::html($sub_attrs['id']) .'">' . Enc::html($val['label']) . '</label>' . PHP_EOL;
Line 1604: * https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#ComponentRestrictions
Line 1643: * https://developers.google.com/maps/documentation/javascript/reference/geocoder#GeocoderComponentRestrictions
Line 1700: * The field (refrenced by $name) is an array. If it's passed a a string, it will be comma-separated into an array.
Line 1757: * Generates the title for a field, possibly enclosing it in a label, possibly with a generated ID
Line 1763: * @param string|null $id The id to use. Empty string to auto-generate an id; false to disable the enclosing label,
Line 1770: if ($id === false) return Enc::html($title);
Line 1777: return '<label for="' . Enc::html(self::$field_id) . '">' . Enc::html($title) . '</label>';
Line 1790: $key = Enc::html($key);
Line 1791: $val = Enc::html($val);

/sprout/Helpers/FilesBackendDirectory.php Highlighted file source
Line 49: return 'files/' . Enc::url($filename);
Line 80: return sprintf('file/resize/%s/%s?s=%s', Enc::url($size), Enc::url($file_details['filename']), $signature);
Line 83: return sprintf('file/resize/%s/missing.png', Enc::url($size));
Line 91: return sprintf('file/resize/%s/%s?s=%s', Enc::url($size), Enc::url($filename), $signature);
Line 101: return sprintf('file/resize/%s/%s?s=%s', Enc::url($size), Enc::url($file_details['filename']), $signature);
Line 106: return sprintf('file/resize/%s/missing.png', Enc::url($size));

/sprout/Helpers/Form.php Highlighted file source
Line 259: return Enc::id(strtolower($method));
Line 360: $classes[] = 'field-element--id-' . Enc::id($attrs['id']);
Line 381: $out = '<div class="' . Enc::html($classes) . '">';
Line 397: $out .= '<label for="' . Enc::html($attrs['id']) . '">';
Line 422: $out .= '<li class="field-error__list__item">' . Enc::html($err) . '</li>';
Line 462: $classes[] = 'field-element--id-' . Enc::id($attrs['id']);
Line 489: $out = '<div class="' . Enc::html($classes) . '">';
Line 518: $out .= '<li class="field-error__list__item">' . Enc::html($err) . '</li>';
Line 606: * Return content which has been HTML-encoded and wrapped in the form field DIVs
Line 608: * @param string $plain Plain text to encode and wrap in the field
Line 613: return static::fieldPlain('Sprout\Helpers\Form::passString', Enc::html($plain));
Line 732: $search_field_id = Enc::id("autofill-{$name}-search");
Line 746: $el = Enc::html($el);
Line 750: $val = Enc::html($val);
Line 756: $out .= '<div class="autofill-heading"><label for="' . $search_field_id . '">' . Enc::html($search_label) . '</label></div>';
Line 763: $out .= '<script type="application/json" class="autofill-list-opts">' . json_encode($opts) . '</script>';
Line 764: $out .= '<script type="application/json" class="autofill-list-data">' . json_encode($data) . '</script>';
Line 773: $out .= '<li class="field-error__list__item">' . Enc::html($err) . '</li>';

/sprout/Helpers/Html.php Highlighted file source
Line 65: '<a href="'.Enc::html($site_url).'"'
Line 69: .($escape_title ? Enc::html((($title === NULL) ? $site_url : $title), FALSE) : (($title === NULL) ? $site_url : $title)).'</a>';
Line 89: // Raw (no) encoding
Line 110: // Remove the subject or other parameters that do not need to be encoded
Line 128: // Title defaults to the encoded email address
Line 134: // Encoded start of the href="" is a static encoded version of 'mailto:'
Line 286: $compiled .= ' '.Enc::html($key).'="'.Enc::html($val).'"';

/sprout/Helpers/ImportCMS.php Highlighted file source
Line 8: use Sprout\Helpers\Enc;
Line 101: $fields['slug'] = Slug::unique(Enc::urlname($fields['name'], '-'), 'pages', $conds);
Line 139: $fields['settings'] = json_encode(['text' => $html]);
Line 184: Pdb::update('page_widgets', ['settings' => json_encode(['text' => $settings->text])], [['id', '=', $widget['id']]]);

/sprout/Helpers/Itemlist.php Highlighted file source
Line 76: $val = "<table class=\"" . Enc::html($this->table_class) . "\">\n";
Line 158: $val .= '<tr class="' . Enc::html($classes) . '">';
Line 187: $url = Enc::html($url);
Line 208: $name = Enc::html($name);
Line 209: $url = Enc::html($url);
Line 210: $class = Enc::html(trim($this->actions_classes . ' ' . $details['classes']));
Line 250: $value = Enc::html($value);
Line 364: * @param string $Value Value to output for this column; this will be HTML-encoded on output
Line 419: $url = str_replace('%%', Enc::url($item['id']), $url);
Line 447: return str_replace("\n", '<br>', Enc::html($defn[0]->modify($item_data[$defn[1]], $defn[1])));
Line 454: return Enc::html($item_data[$defn]);

/sprout/Helpers/LightweightForm.php Highlighted file source
Line 45: $classes[] = 'field-element--id-' . Enc::id($attrs['id']);
Line 66: $out = '<div class="' . Enc::html(implode(' ', $classes)) . '">';
Line 106: $classes[] = 'field-element--id-' . Enc::id($attrs['id']);
Line 131: $out = '<div class="' . Enc::html(implode(' ', $classes)) . '">';

/sprout/Helpers/Navigation.php Highlighted file source
Line 255: echo "<a href=\"{$node->getFriendlyUrl()}\" class=\"main\">", Enc::html($node->getNavigationName()), "</a>";
Line 260: echo "<li class=\"on\"><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 262: echo "<li><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 337: echo "<li class=\"on\"><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 339: echo "<li><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 426: echo "<a href=\"{$node->getFriendlyUrl()}\" class=\"main\">", Enc::html($node->getNavigationName()), "</a>";
Line 431: echo "<li class=\"on\"><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 433: echo "<li><a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";
Line 481: echo "<li class=\"on\"><a href=\"{$child->getFriendlyUrl()}\">", Enc::html($child->getNavigationName()), "</a>";
Line 483: echo "<li><a href=\"{$child->getFriendlyUrl()}\">", Enc::html($child->getNavigationName()), "</a>";
Line 563: $bc[] = '<a href="' . Enc::html($url) . '">' . Enc::html($label) . '</a>';
Line 640: echo "<li class=\"nav{$i} on\"><a href=\"{$page->getFriendlyUrl()}\">", Enc::html($page->getNavigationName()), "</a></li>";
Line 642: echo "<li class=\"nav{$i}\"><a href=\"{$page->getFriendlyUrl()}\">", Enc::html($page->getNavigationName()), "</a></li>";
Line 825: echo "<a href=\"{$node->getFriendlyUrl()}\">", Enc::html($node->getNavigationName()), "</a>";

/sprout/Helpers/Needs.php Highlighted file source
Line 95: * The JS files can be minified, so 'file' will match file.min.js; minified files take precedence.
Line 174: * @deprecated Since the nomenclature makes no sense
Line 220: $need = '<script src="' . Enc::html($url) . '" async defer></script>';
Line 286: // Browsers don't require (or even work) with HTML encoding of <script> tags in HTML5.
Line 287: // This is in contrast to XHTML which (as it's XML) does require encoding or CDATA.
Line 290: $tag = Enc::js($tag);
Line 331: $out .= 'dataLayer.push(' . json_encode($data) . ');';

/sprout/Helpers/Notification.php Highlighted file source
Line 75: $anchor = Enc::html($anchor);
Line 93: $popup .= '<h2 class="notification-box-msg">' . Enc::html($message[1]) . '</h2>';
Line 97: $anchor = Enc::html($anchor);
Line 107: $out .= ' $.facebox("' . Enc::js($popup) . '");';
Line 149: $_SESSION['notify'][$scope][] = array(self::TYPE_CONFIRM, Enc::html($message), []);
Line 167: $_SESSION['notify'][$scope][] = array(self::TYPE_ERROR, Enc::html($message), []);
Line 181: $_SESSION['notify'][$scope][] = array(self::TYPE_POPUP, Enc::html($message), $actions);

/sprout/Helpers/RichTextSanitiser.php Highlighted file source
Line 159: * @return array An array of error messages. Obviously, you must HTML encode each entry for them to be safe
Line 169: * Set whether to only allow local resources to be referenced by automatically fetching attributes
Line 224: $encoded = $this->encodeAttributeValue($allowed_attrs[$attr->name], $attr->value);
Line 225: if (!empty($encoded)) {
Line 226: $attributes[] = sprintf('%s="%s"', $attr->name, $encoded);
Line 274: * Encodes the value of an attribute using the correct encoding based on type
Line 278: * @return string|bool A safely encoded attribute value or false if the value fails the checks
Line 280: private function encodeAttributeValue($type, $value)

/sprout/Helpers/SocialMeta.php Highlighted file source
Line 77: * Set a short (up to two sentence) description for this page
Line 206: $out .= '<meta property="' . Enc::html($property) . '" content="' . Enc::html($content) . '">' . PHP_EOL;
Line 209: $out .= '<meta name="' . Enc::html($name) . '" content="' . Enc::html($content) . '">' . PHP_EOL;

/sprout/Helpers/SocialNetworking.php Highlighted file source
Line 76: $share_url = 'http://www.facebook.com/sharer.php?u=' . Enc::url(self::$url) . '&t=' . Enc::url(self::$title);
Line 78: $share_url = Enc::html($share_url);
Line 79: $class = Enc::html($class);
Line 115: $share_url = 'http://twitter.com/intent/tweet?text=' . Enc::url($tweet);
Line 118: $share_url .= '&url=' . Enc::url($link);
Line 122: $share_url .= '&via=' . Enc::url($via_handle);
Line 125: $share_url = Enc::html($share_url);
Line 126: $class = Enc::html($class);
Line 150: $url = Enc::url(self::$url);
Line 151: $title = Enc::url(self::$title);
Line 152: $desc = Enc::url(self::$desc);
Line 155: $share_url = Enc::html($share_url);
Line 157: $class = enc::html($class);
Line 168: $url = Enc::url(self::$url);
Line 169: $title = Enc::url(self::$title);
Line 170: $desc = Enc::url(self::$desc);
Line 175: $share_url = Enc::html($share_url);
Line 190: $share_url = 'email_share/share?url=' . Enc::url(self::$url) . '&title=' . Enc::url(self::$title);
Line 191: $share_url = Enc::html($share_url);
Line 192: $class = enc::html($class);

/sprout/Helpers/Sprout.php Highlighted file source
Line 214: echo '<p><b>FATAL ERROR:</b><br>Unable to instance class "' . Enc::html($class_name) . '".</p>';
Line 362: $text = Enc::cleanfunky($text);
Line 527: * and returns HTML which is a table showing the differences
Line 595: * Accept-Encoding header, or any other 'accept' headers, if you are supporting them.
Line 711: $onclick = "ga('send', 'event', 'Document', 'Download', '" . Enc::js($matches[2]) . "');";
Line 717: $out = '<a href="' . Enc::html($url) . '"';
Line 718: $out .= ' class="' . Enc::html(trim($class)) . '"';
Line 720: $out .= ' data-ext="' . Enc::html($matches[3]) . '"';
Line 721: $out .= ' data-size="' . Enc::html(File::humanSize(File::size($matches[2]))) . '"';
Line 722: $out .= ' onclick="' . Enc::html($onclick) . '">';
Line 723: $out .= Enc::html($matches[4]);

/sprout/Helpers/Text.php Highlighted file source
Line 248: // Once a difference is found, break out of the loops
Line 310: // Note: The "58;" negative lookbehind prevents matching of existing encoded html mailto anchors
Line 316: // Replace each email with an encoded mailto
Line 463: $html = Enc::cleanfunky($html);
Line 514: $text = Enc::cleanfunky($text);
Line 515: $text = Enc::html($text);
Line 585: * Encode HTML so it's suitable for direct output, but allow some HTML tags to be left as-is
Line 591: * as a defence against XSS attacks; it should only be used on trusted input such as Form helptext.
Line 617: $out .= Enc::html($m[0]);

/sprout/Helpers/TwoFactor/FixedBitNotation.php Highlighted file source
Line 29: * can handle many encoding schemes, formally defined or not, that
Line 30: * use a fixed number of bits to encode each character.
Line 48: * @param integer $bitsPerCharacter Bits to use for each encoded
Line 51: * @param boolean $rightPadFinalBits How to encode last character
Line 52: * @param boolean $padFinalGroup Add padding to end of encoded
Line 103: * Encode a string
Line 105: * @param string $rawString Binary data to encode
Line 108: public function encode($rawString)
Line 114: $encodedString = '';
Line 124: // Generate encoded output;
Line 125: // each loop produces one encoded character
Line 128: // Get the bits needed for this encoded character
Line 140: $encodedString .= $chars[$oldBits];
Line 151: $encodedString .= str_repeat($padCharacter[0], $pads);
Line 176: $encodedString .= $chars[$bits];
Line 179: return $encodedString;
Line 185: * @param string $encodedString Data to decode
Line 187: * @param boolean $strict Returns NULL if $encodedString contains
Line 191: public function decode($encodedString, $caseSensitive = TRUE,
Line 194: if (!$encodedString || !is_string($encodedString)) {
Line 206: // Get index of encoded characters
Line 220: // The last encoded character is $encodedString[$lastNotatedIndex]
Line 221: $lastNotatedIndex = strlen($encodedString) - 1;
Line 224: while ($encodedString[$lastNotatedIndex] == $padCharacter[0]) {
Line 225: $encodedString = substr($encodedString, 0, $lastNotatedIndex);
Line 233: // Convert each encoded character to a series of unencoded bits
Line 236: if (!isset($charmap[$encodedString[$c]]) && !$caseSensitive) {
Line 237: // Encoded character was not found; try other case
Line 239: = strtoupper($encodedString[$c])])) {
Line 240: $charmap[$encodedString[$c]] = $charmap[$cUpper];
Line 243: = strtolower($encodedString[$c])])) {
Line 244: $charmap[$encodedString[$c]] = $charmap[$cLower];
Line 248: if (isset($charmap[$encodedString[$c]])) {
Line 256: $newBits = $charmap[$encodedString[$c]] << $bitsNeeded
Line 263: $newBits = $charmap[$encodedString[$c]] >> $unusedBitCount;
Line 268: $newBits = $charmap[$encodedString[$c]];
Line 281: $byte = ($charmap[$encodedString[$c]]

/sprout/Helpers/Widgets.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 114: $class = 'widget widget-' . Enc::id(str_replace('\\', '-', (isset($inst->classname) ? $inst->classname : $name)));
Line 134: $ret .= str_replace('TITLE', Enc::html($title), $heading_html);
Line 160: $ret .= '<i>' . Enc::html($inst->getFriendlyName()) . ' Addon</i> ';
Line 165: $ret .= '<b>' . Enc::html($name) . ':</b> ' . Enc::html($val) . ' ';

/sprout/tests/encHelperTest.php Highlighted file source
Line 14: use Sprout\Helpers\Enc;
Line 21: class encHelperTest extends PHPUnit_Framework_TestCase
Line 26: $this->assertEquals(Enc::cleanfunky('a'), 'a');
Line 27: $this->assertEquals(Enc::cleanfunky('&'), '&');
Line 28: $this->assertEquals(Enc::cleanfunky('ê'), 'ê');
Line 32: $this->assertEquals(Enc::cleanfunky("\303\252"), 'ê');
Line 34: $this->assertEquals(Enc::cleanfunky("\xC3\xAA"), 'ê');
Line 37: $this->assertEquals(Enc::cleanfunky("\x20"), ' ');
Line 38: $this->assertEquals(Enc::cleanfunky(' '), ' ');
Line 41: $this->assertEquals(Enc::cleanfunky("\x1A"), '');
Line 42: $this->assertEquals(Enc::cleanfunky("\0"), '');
Line 43: $this->assertEquals(Enc::cleanfunky("\x1F"), '');
Line 46: $this->assertEquals(Enc::cleanfunky("\t"), "\t");
Line 47: $this->assertEquals(Enc::cleanfunky("\n"), "\n");
Line 48: $this->assertEquals(Enc::cleanfunky("\r"), "\r");
Line 51: $this->assertEquals(Enc::cleanfunky(null), '');
Line 52: $this->assertEquals(Enc::cleanfunky(array()), '');
Line 53: $this->assertEquals(Enc::cleanfunky(new Itemlist), '');
Line 54: $this->assertEquals(Enc::cleanfunky(new stdClass), '');
Line 55: $this->assertEquals(Enc::cleanfunky(123), '123');
Line 56: $this->assertEquals(Enc::cleanfunky(123.45), '123.45');
Line 57: $this->assertEquals(Enc::cleanfunky(123e12), '123e12');
Line 62: $this->assertEquals(Enc::html('a'), 'a');
Line 63: $this->assertEquals(Enc::html('&'), '&');
Line 64: $this->assertEquals(Enc::html('"'), '"');
Line 65: $this->assertEquals(Enc::html('>'), '>');
Line 66: $this->assertEquals(Enc::html('<'), '<');
Line 67: $this->assertEquals(Enc::html('ê'), 'ê');
Line 68: $this->assertEquals(Enc::html("\0"), '');
Line 69: $this->assertEquals(Enc::html("\x1A"), '');
Line 70: $this->assertEquals(Enc::html(array()), '');
Line 72: $this->assertEquals('&amp;', Enc::html('&'));
Line 73: $this->assertEquals('&quot;', Enc::html('"'));
Line 74: $this->assertEquals('&gt;', Enc::html('>'));
Line 75: $this->assertEquals('&lt;', Enc::html('<'));
Line 80: $this->assertEquals(Enc::htmlNoDup('a'), 'a');
Line 81: $this->assertEquals(Enc::htmlNoDup('&'), '&');
Line 82: $this->assertEquals(Enc::htmlNoDup('"'), '"');
Line 83: $this->assertEquals(Enc::htmlNoDup('>'), '>');
Line 84: $this->assertEquals(Enc::htmlNoDup('<'), '<');
Line 85: $this->assertEquals(Enc::htmlNoDup('ê'), 'ê');
Line 86: $this->assertEquals(Enc::htmlNoDup("\0"), '');
Line 87: $this->assertEquals(Enc::htmlNoDup("\x1A"), '');
Line 88: $this->assertEquals(Enc::htmlNoDup(array()), '');
Line 90: $this->assertEquals('&', Enc::htmlNoDup('&'));
Line 91: $this->assertEquals('"', Enc::htmlNoDup('"'));
Line 92: $this->assertEquals('>', Enc::htmlNoDup('>'));
Line 93: $this->assertEquals('<', Enc::htmlNoDup('<'));
Line 98: $this->assertEquals(Enc::xml('a'), 'a');
Line 99: $this->assertEquals(Enc::xml('&'), '&');
Line 100: $this->assertEquals(Enc::xml('"'), '"');
Line 101: $this->assertEquals(Enc::xml('>'), '>');
Line 102: $this->assertEquals(Enc::xml('<'), '<');
Line 103: $this->assertEquals(Enc::xml('&'), '&amp;');
Line 104: $this->assertEquals(Enc::xml('ê'), 'ê');
Line 105: $this->assertEquals(Enc::xml("\0"), '');
Line 106: $this->assertEquals(Enc::xml("\x1A"), '');
Line 107: $this->assertEquals(Enc::xml(array()), '');
Line 112: $this->assertEquals(Enc::url('a'), 'a');
Line 113: $this->assertEquals(Enc::url('1'), '1');
Line 114: $this->assertEquals(Enc::url('hello?'), 'hello%3F');
Line 115: $this->assertEquals(Enc::url('hello how are you'), 'hello+how+are+you');
Line 116: $this->assertEquals(Enc::url('ê'), '%C3%AA');
Line 117: $this->assertEquals(Enc::url("\0"), '');
Line 118: $this->assertEquals(Enc::url("\x1A"), '');
Line 119: $this->assertEquals(Enc::url(array()), '');
Line 124: $this->assertEquals(Enc::id('a'), 'a');
Line 125: $this->assertEquals(Enc::id('&'), '');
Line 126: $this->assertEquals(Enc::id('"'), '');
Line 127: $this->assertEquals(Enc::id('hey ya'), 'hey_ya');
Line 128: $this->assertEquals(Enc::id('ê'), '');
Line 129: $this->assertEquals(Enc::id('lowercase_id'), 'lowercase_id');
Line 130: $this->assertEquals(Enc::id('UPPERCASE_ID'), 'UPPERCASE_ID');
Line 131: $this->assertEquals(Enc::id('MIXED_case_ID'), 'MIXED_case_ID');
Line 132: $this->assertEquals(Enc::id('test--dashes'), 'test--dashes');
Line 133: $this->assertEquals(Enc::id('underscore_test'), 'underscore_test');
Line 134: $this->assertEquals(Enc::id('double__underscore__test'), 'double_underscore_test');
Line 135: $this->assertEquals(Enc::id('trailing_underscore_test_'), 'trailing_underscore_test');
Line 136: $this->assertEquals(Enc::id('no_symbols~!@#$%^&*()<>.,?/\'":;|\\]}[{`_no_symbols'), 'no_symbols_no_symbols');
Line 137: $this->assertEquals(Enc::id("\0"), '');
Line 138: $this->assertEquals(Enc::id("\x1A"), '');
Line 139: $this->assertEquals(Enc::id(array()), '');
Line 144: $this->assertEquals(Enc::js('a'), 'a');
Line 145: $this->assertEquals(Enc::js('"'), '\\"');
Line 146: $this->assertEquals(Enc::js('\''), '\\\'');
Line 147: $this->assertEquals(Enc::js('\\'), '\\\\');
Line 148: $this->assertEquals(Enc::js('hey ya'), 'hey ya');
Line 149: $this->assertEquals(Enc::js('ê'), 'ê');
Line 150: $this->assertEquals(Enc::js("\n"), '\n');
Line 151: $this->assertEquals(Enc::js("\0"), '');
Line 152: $this->assertEquals(Enc::js("\x1A"), '');
Line 153: $this->assertEquals(Enc::js(array()), '');
Line 158: $this->assertEquals(Enc::httpfield('a'), 'a');
Line 159: $this->assertEquals(Enc::httpfield('&'), '');
Line 160: $this->assertEquals(Enc::httpfield('"'), '');
Line 161: $this->assertEquals(Enc::httpfield(':-.'), ':-.');
Line 162: $this->assertEquals(Enc::httpfield('[]'), '');
Line 163: $this->assertEquals(Enc::httpfield('hey ya'), 'hey_ya');
Line 164: $this->assertEquals(Enc::httpfield('ê'), '');
Line 165: $this->assertEquals(Enc::httpfield("\0"), '');
Line 166: $this->assertEquals(Enc::httpfield("\x1A"), '');
Line 167: $this->assertEquals(Enc::httpfield(array()), '');
Line 173: $this->assertEquals(Enc::urlname('a'), 'a');
Line 174: $this->assertEquals(Enc::urlname('"'), '');
Line 175: $this->assertEquals(Enc::urlname(':-.[]'), '');
Line 176: $this->assertEquals(Enc::urlname('ê'), '');
Line 177: $this->assertEquals(Enc::urlname("\0"), '');
Line 178: $this->assertEquals(Enc::urlname("\x1A"), '');
Line 179: $this->assertEquals(Enc::urlname(array()), '');
Line 182: $this->assertEquals(Enc::urlname('hey ya', '_'), 'hey_ya');
Line 183: $this->assertEquals(Enc::urlname('hey ya', '-'), 'hey-ya');
Line 186: $this->assertEquals(Enc::urlname(' '), '');
Line 187: $this->assertEquals(Enc::urlname('&'), '');
Line 188: $this->assertEquals(Enc::urlname(' & '), '');
Line 189: $this->assertEquals(Enc::urlname(' hello world ', '_'), 'hello_world');
Line 190: $this->assertEquals(Enc::urlname(' hello world ', '_'), 'hello_world');
Line 191: $this->assertEquals(Enc::urlname(' hello & world ', '_'), 'hello_and_world');
Line 192: $this->assertEquals(Enc::urlname(' hello world & ', '_'), 'hello_world');
Line 193: $this->assertEquals(Enc::urlname(' & hello world & ', '_'), 'hello_world');
Line 199: $this->assertEquals(Enc::jsdate('1988-05-07'), 'new Date(1988, 5 - 1, 7)');
Line 200: $this->assertEquals(Enc::jsdate('1988-05-07', 'mysql'), 'new Date(1988, 5 - 1, 7)');
Line 201: $this->assertNull(Enc::jsdate(array(7,5,1988), 'mysql'));
Line 204: $this->assertEquals(Enc::jsdate(array(7,5,1988), 'array'), 'new Date(1988, 5 - 1, 7)');
Line 205: $this->assertNull(Enc::jsdate('1988-05-07', 'array'));
Line 208: $this->assertNull(Enc::jsdate('goog', 'goog'));
Line 211: $this->assertEquals(Enc::jsdate('88-05-07', 'mysql'), 'new Date(1988, 5 - 1, 7)');
Line 212: $this->assertEquals(Enc::jsdate(array(7,5,88), 'array'), 'new Date(1988, 5 - 1, 7)');
Line 213: $this->assertEquals(Enc::jsdate('20-05-07', 'mysql'), 'new Date(2020, 5 - 1, 7)');
Line 214: $this->assertEquals(Enc::jsdate(array(7,5,20), 'array'), 'new Date(2020, 5 - 1, 7)');
Line 215: $this->assertEquals(Enc::jsdate('49-05-07', 'mysql'), 'new Date(2049, 5 - 1, 7)');
Line 216: $this->assertEquals(Enc::jsdate(array(7,5,49), 'array'), 'new Date(2049, 5 - 1, 7)');
Line 217: $this->assertEquals(Enc::jsdate('50-05-07', 'mysql'), 'new Date(1950, 5 - 1, 7)');
Line 218: $this->assertEquals(Enc::jsdate(array(7,5,50), 'array'), 'new Date(1950, 5 - 1, 7)');

/sprout/tests/sproutTest.php Highlighted file source
Line 250: ['Sprout\Helpers\Enc', 'Sprout\Controllers\Controller'],
Line 251: ['Sprout\Helpers\Enc', ['Sprout\Controllers\Controller']],
Line 252: ['Sprout\Helpers\Enc', 'Sprout\Helpers\FrontEndEntrance'],
Line 253: ['Sprout\Helpers\Enc', ['Sprout\Helpers\FrontEndEntrance']],
Line 254: ['Sprout\Helpers\Enc', ['Sprout\Controllers\Controller', 'Sprout\Helpers\FrontEndEntrance']],

/sprout/views/admin/action_log_edit.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 31: <?= Enc::html($data['type']); ?>
Line 36: <?= Enc::html(Sprout::formatMysqlDatetime($data['date_added'])); ?>
Line 41: <?= Enc::html($data['record_table']); ?>
Line 46: <?= Enc::html($data['record_id']); ?>
Line 54: <?= Enc::html($data['modified_editor']); ?>
Line 61: echo Enc::html($mod->modify($data['ip_address'], ''));
Line 68: echo '<br>', Enc::html($data['user_agent']), "</p>\n";
Line 85: <p>This record was restored by <?= Enc::html($data['restored_operator']); ?> on <?= date('D j/n/Y \a\t g:i a', strtotime($data['restored_date'])); ?></p>
Line 88: <a href="SITE/admin/edit/<?php echo Enc::html($controller); ?>/<?php echo $data['record_id']; ?>" class="button">View record</a>
Line 101: <th><?= Enc::html($key); ?></th>
Line 102: <td><?= Enc::html($val); ?></td>

/sprout/views/admin/categories_navigation.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 26: <a class="icon-after icon-add button button-small" href="admin/add/<?php echo Enc::html($controller_name); ?>">Add <?php echo Enc::html(Inflector::singular($friendly_name)); ?></a>
Line 28: <a class="icon-after icon-add button button-small" href="admin/add/<?php echo Enc::html($controller_name . '_category'); ?>" rel="facebox">Add category</a>
Line 38: <a class="node-link" href="admin/contents/<?php echo $controller_name; ?>">All <?php echo Enc::html(strtolower($friendly_name)); ?></a>
Line 45: $name = Enc::html($cat['name']);

/sprout/views/admin/file_add_dragdrop_form.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 48: <input type="hidden" name="tmp_file" value="<?php echo Enc::html($tmp_file); ?>">
Line 49: <input type="hidden" name="orig_name" value="<?php echo Enc::html($orig_file['name']); ?>">
Line 128: <div class="field-label"><?php echo Enc::html(FileConstants::$type_names[$data['type']]); ?></div>
Line 132: echo Enc::html($shrunk_img['original_width']), ' × ', Enc::html($shrunk_img['original_height']);
Line 142: echo '<img class="file-upload__preview-img" src="data:image/png;base64,', Enc::html($shrunk_img['encoded_thumbnail']), '">';
Line 147: <audio class="file-upload__preview-sound" src="admin/call/file/downloadTemp/<?= Enc::html($tmp_file); ?>"
Line 153: <video class="file-upload__preview-video" src="admin/call/file/downloadTemp/<?= Enc::html($tmp_file); ?>"
Line 163: $(document).find('input[name="tmp_file"][value="<?= Enc::html($tmp_file); ?>"]').closest('.file-upload__item').find('.file-upload__item__remove').first().remove();

/sprout/views/admin/file_contents_thumbs.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 38: echo '<a class="image-link" href="SITE/admin/edit/file/', $row['id'], '" title="', Enc::html($row['name']), '">';
Line 60: echo '<a href="SITE/admin/edit/file/', $row['id'], '" title="', Enc::html($row['name']), '">', Enc::html($row['name']), '</a>';
Line 109: <b><i><?php echo Enc::html($category['name']); ?></i> category:</b>

/sprout/views/admin/file_edit.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 93: <td><?= Enc::html($data['filename']); ?></td>
Line 94: <td><a href="<?= Enc::html($abs_url ); ?>"><?= Enc::html(Text::limitChars($abs_url, 50)); ?></a></td>
Line 95: <td><?= Enc::html(FileConstants::$type_names[$data['type']]); ?></td>
Line 96: <?php if ($data['type'] == FileConstants::TYPE_IMAGE): ?><td><?= Enc::html($img_dimensions); ?></td><?php endif; ?>
Line 107: <a href="<?php echo Enc::html(File::absUrl($data['filename']));; ?>" target="_blank">
Line 108: <img src="<?php echo Enc::html(File::resizeUrl($data['filename'], 'r200x0')); ?>" alt="preview">
Line 124: $abs_url = Enc::html(File::absUrl($filename));
Line 130: <td><a href="', $abs_url, '" target="_blank"><?= Enc::html($filename); ?></a></td>
Line 132: <td><?= Enc::html(sprintf('%u x %u', $dimensions[0], $dimensions[1])); ?></td>
Line 140: <pre><?php echo Enc::html($preview); ?></pre>
Line 153: <select id="manipulate" name="manipulate" data-src="<?= Enc::html($data['filename']); ?>">
Line 172: <img src="<?= Enc::html($original_image); ?>" alt="">
Line 177: <img src="SITE/admin/call/file/previewTransform/none/<?php echo Enc::html($data['filename']); ?>" alt="" id="manipulate-preview">
Line 204: <input type="hidden" id="image-focal-points" name="focal_points" value="<?= Enc::html(@$data['focal_points']); ?>">

/sprout/views/admin/generic_search.php Highlighted file source
Line 14: use Sprout\Helpers\Enc;
Line 17: <form action="SITE/admin/contents/<?php echo Enc::html(strtolower($controller_name)); ?>" method="get" class="-clearfix">
Line 21: <h3><?php echo Enc::html($group); ?></h3>
Line 38: <button type="submit" class="save-changes-save-button button button-regular button-green icon-after icon-search">Search <?php echo Enc::html($friendly_name); ?></button>

/sprout/views/admin/list_navigation.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 49: <a class="icon-after icon-add button button-small" href="admin/add/<?php echo $controller_name; ?>">Add <?php echo Enc::html(Inflector::singular($friendly_name)); ?></a>
Line 54: <li class="file ext_txt"><a href="SITE/admin/contents/<?= $controller_name; ?>">All <?= Enc::html(strtolower($friendly_name)); ?></a></li>
Line 58: $name = Enc::html($item['name']);

/sprout/views/admin/login_form.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 32: <input type="hidden" name="redirect" value="<?php echo Enc::html(@$_GET['redirect']); ?>">
Line 39: <input id="field0" class="textbox" type="text" name="Username" <?php if ($autofocus == 'u') echo 'autofocus'; ?> value="<?= Enc::html(@$_GET['username']); ?>" placeholder="Username">

/sprout/views/admin/login_layout.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 35: <title><?= Enc::html($browser_title); ?> | SproutCMS</title>
Line 37: <base href="<?= Enc::html(Sprout::absRoot()); ?>">
Line 52: <link href="ROOT/<?= Enc::html($merged_css); ?>" rel="stylesheet" type="text/css">
Line 67: <script src="ROOT/<?= Enc::html($merged_js); ?>"></script>
Line 102: <div class="logo -clearfix"><span class="logo-sprout">Sprout</span> <span class="logo-cms">CMS</span> <span class="logo-version"><?= Enc::html(Sprout::getVersion()); ?></span></div>
Line 104: <h1 class="h2 -vis-hidden"><?= Enc::html($main_title); ?></h1>

/sprout/views/admin/main_layout.php Highlighted file source
Line 20: use Sprout\Helpers\Enc;
Line 58: echo '<script>var currlock = ', json_encode($currlock), ';</script>', "\n";
Line 118: <a class="top-bar-nav-link icon-before icon-book" href="<?= Enc::html($manual_url); ?>" target="_blank" title="Manual">Manual</a>
Line 178: <button class="top-bar-nav-button icon-before icon-person" type="button" title="Operator <?= Enc::html($operator['name']); ?>">
Line 185: <p><?= Enc::html($operator['name']); ?></p>
Line 207: <div class="logo sidebar -clearfix"><span class="logo-sprout">Sprout</span> <span class="logo-cms">CMS</span> <span class="logo-version"><?= Enc::html(Sprout::getVersion()); ?></span></div>
Line 220: <h1 class="site-title"><?php echo Enc::html(Subsites::getConfigAdmin('site_title')); ?></h1>
Line 222: <a class="sub-header-view-site-button button button-regular button-green icon-after icon-desktop_mac" href="<?php echo Enc::html($live_url); ?>" target="_blank">View live site</a>
Line 227: <?php // echo Enc::html(Subsites::getName($_SESSION['admin']['active_subsite'])); ?>
Line 239: <div id="main" class="mainbar mainbar-reverse <?= empty($main_class) ? '' : Enc::html($main_class); ?>">
Line 259: // Encode the title, but preserve STRONG tags as they mark the actual name of the item being edited
Line 261: $main_title = Enc::htmlNoDup($main_title);
Line 272: <?php if (!empty($locked)) echo '<ul class="messages all-type-neutral"><li class="neutral">This record currently locked for editing by ', Enc::html($locked['operator_name']), ' as of ', date('g:i a', strtotime($locked['date_modified'])), '</li></ul>'; ?>
Line 286: <h2 class="icon-before icon-insert_drive_file"><?php echo Enc::html($controller_navigation_name); ?></h2>

/sprout/views/admin/main_seo.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 25: <button class="button button-small button-grey" type="button"><?php echo Enc::html($word); ?> <sup><?php echo Enc::html($count); ?></sup></button>
Line 35: <h4>Problems (<?php echo Enc::html(count($seo_problems)) ?>)</h4>
Line 44: <h4>Improvements (<?php echo Enc::html(count($seo_improvements)) ?>)</h4>
Line 53: <h4>Considerations (<?php echo Enc::html(count($seo_considerations)) ?>)</h4>
Line 62: <h4>Good results (<?php echo Enc::html(count($seo_goodresults)) ?>)</h4>

/sprout/views/admin/page_edit.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 73: <input type="hidden" name="type" value="<?= Enc::html($data['type']); ?>">
Line 240: <td><?php echo Enc::html($rev['date_modified']); ?></td>
Line 241: <td><?php echo Enc::html($rev['changes_made']); ?></td>
Line 242: <td><?php echo Enc::html($rev['modified_editor']); ?></td>
Line 245: echo Enc::html(Constants::$rev_statuses[$rev['status']]);
Line 252: <a href="<?= Enc::html($rev_edit_url); ?>" class="button button-small button-green icon-before icon-edit">Edit</a>
Line 253: <a href="<?= Enc::html($rev_view_url); ?>" class="button button-small button-blue icon-before icon-remove_red_eye">View</a>
Line 278: <td><?php echo Enc::html($item['date_added']); ?></td>
Line 279: <td><?php echo Enc::html($item['changes_made']); ?></td>
Line 280: <td><?php echo Enc::html($item['modified_editor']); ?></td>
Line 375: echo '<h3 class="', $heading_class, '">', Enc::html($area->getNiceName()), '</h3>';

/sprout/views/admin/worker_job_edit.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 24: <br><?= Enc::html($data['name']); ?></p>
Line 29: <br><span class="job-status"><?= Enc::html($data['status']); ?></span></p>
Line 34: <br><?= Enc::html($data['date_started']); ?></p>
Line 39: <pre><?= Enc::html(print_r(json_decode($data['args'], true), true)); ?></pre>
Line 45: <br><?= Enc::html($data['date_success']); ?></p>
Line 48: <br><?= Enc::html($data['date_failure']); ?></p>
Line 54: <br><?= Enc::html($data['pid']); ?></p>
Line 59: <br><?= Enc::html(File::humanSize($data['memuse'])); ?></p>
Line 64: <p><b><?= Enc::html($data['metric1name']); ?>:</b>
Line 65: <br><span class="job-metric1"><?= Enc::html($data['metric1val']); ?></span></p>
Line 69: <p><b><?= Enc::html($data['metric2name']); ?>:</b>
Line 70: <br><span class="job-metric2"><?= Enc::html($data['metric2val']); ?></span></p>
Line 74: <p><b><?= Enc::html($data['metric3name']); ?>:</b>
Line 75: <br><span class="job-metric3"><?= Enc::html($data['metric3val']); ?></span></p>
Line 79: <pre class="log"><?= Enc::html(@$data['log']); ?></pre>
Line 84: var status_names = <?= json_encode(Constants::$job_status); ?>;
Line 87: $.getJSON(SITE + 'admin/call/worker_job/jsonStatus/' + <?= Enc::js($id); ?>, function(data) {

/sprout/views/admin/_footer.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
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 22: echo '<a href="', Enc::html(Kohana::config('branding.support_url')), '" target="_blank">';
Line 23: echo Enc::html(Kohana::config('branding.support_organisation'));

/sprout/views/ajax/add_addon.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 44: $('#wl-<?php echo Enc::js($field_name); ?>').trigger('add-widget', [$widget.attr('data-name'), $widget.find('b').text()]);
Line 59: echo '<div data-name="', Enc::html($name), '" class="widget">';
Line 65: echo '<p><b>', Enc::html($eng_name), '</b></p>';
Line 68: echo '<div class="desc">', Enc::html($desc), '</div>';
Line 72: echo '<div class="na-msg">', Enc::html($not_available), '</div>';

/sprout/views/children_page_gallery.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 5: <ul class="children-gallery-list children-gallery-list--<?php echo Enc::html($thumb_rows); ?>">
Line 16: <li class="children-gallery-list-item children-gallery-item-mod<?php echo Enc::html($mod); ?>">
Line 17: <a href="<?php echo Enc::html($page->getFriendlyUrl()); ?>" class="children-gallery-list-item-link">
Line 19: <img src="<?php echo Enc::html(File::resizeUrl($page['gallery_thumb'], $image_resize)); ?>" class="children-gallery-list-item-image" alt="" role="presentation">
Line 23: <p class="children-gallery-list-item-title"><?php echo Enc::html($page->getNavigationName()); ?></p>

/sprout/views/components/calendar.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 12: <h4 class="calendar-heading"><?php echo Enc::html(date($options['month_format'], strtotime('01-' . $month . '-' . $year))); ?></h4>
Line 17: <li class="calendar-weekdays-list__item" data-day="<?php echo Enc::html($idx); ?>"><?php echo Enc::html($day); ?></li>
Line 28: <li class="calendar-days-list__item" data-date="<?php echo Enc::html($options['date_start']->format('Y-m-d')); ?>">
Line 30: <li class="calendar-days-list__item calendar-days-list__item__other-month" data-date="<?php echo Enc::html($options['date_start']->format('Y-m-d')); ?>">
Line 33: <time class="calendar-days-list__item__date" datetime="<?php echo Enc::html($options['date_start']->format('Y-m-d')); ?>">
Line 34: <span class="calendar-days-list__item__date__extra"><?php echo Enc::html($options['date_start']->format('D')); ?></span>
Line 35: <?php echo Enc::html($options['date_start']->format('d')); ?><span class="calendar-days-list__item__date__extra"><?php echo Enc::html($options['date_start']->format('/m/Y')); ?></span>

/sprout/views/components/fb_google_map.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 12: <input type="hidden" data-field="lat" name="<?php echo Enc::html($names[0]); ?>" value="<?php echo Enc::html($values[0]); ?>">
Line 13: <input type="hidden" data-field="lng" name="<?php echo Enc::html($names[1]); ?>" value="<?php echo Enc::html($values[1]); ?>">
Line 17: <input type="hidden" data-field="zoom" name="<?php echo Enc::html($names[2]); ?>" value="<?php echo Enc::html($values[2]); ?>">
Line 19: <input type="hidden" data-field="zoom" name="<?php echo Enc::html($names[2]); ?>" value="9">
Line 39: <div id="map_<?php echo Enc::html($unique); ?>" class="fb-google-map--inner"></div>

/sprout/views/components/multiple_file_select.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 30: data-name="<?php echo Enc::html($name); ?>"
Line 31: data-opts="<?php echo Enc::html(json_encode($opts)); ?>">
Line 36: <p><span class="file-upload__helptext__line2">or <a href="javascript:;" data-filter="<?= Enc::html($filter); ?>" class="select-existing-file">select an existing file</a></span></p>
Line 44: echo '<input type="hidden" name="', Enc::html($name), '" value="', Enc::html($id), '">';
Line 45: echo '<img class="file-upload__item__feedback__existing-image" src="', Enc::html(File::resizeUrl($filename, 'm200x133')), '" alt="">';
Line 46: echo '<p class="file-upload__item__feedback__name">', Enc::html($filename), '</p>';

/sprout/views/dbtools/exception_details.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 31: <td><?php echo Enc::html($log['date_generated']); ?></td>
Line 32: <td><a href="dbtools/exceptionLog?class=<?php echo Enc::html(Enc::url($log['class_name'])); ?>"><?php echo Enc::html($log['class_name']); ?></a></td>
Line 33: <td><?php echo Enc::html($log['message']); ?></td>
Line 39: <pre><?php echo Enc::html(print_r(json_decode($log['exception_object'], true), true)); ?></pre>
Line 42: <pre><?php echo Enc::html(print_r(json_decode($log['exception_trace'], true), true)); ?></pre>
Line 45: <pre><?php echo Enc::html(print_r(json_decode($log['server'], true), true)); ?></pre>
Line 48: <pre><?php echo Enc::html(print_r(json_decode($log['get_data'], true), true)); ?></pre>
Line 54: <pre><?php echo Enc::html(print_r(json_decode($log['session'], true), true)); ?></pre>

/sprout/views/dbtools/exception_log.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 60: <a href="<?= Enc::html($cur_url . '?' . $prev_query); ?>" class="button icon-before icon-keyboard_arrow_left">Previous page</a>
Line 64: <a href="<?= Enc::html($cur_url . '?' . $next_query); ?>" class="button right icon-after icon-keyboard_arrow_right">Next page</a>

/sprout/views/dbtools/overview.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 16: <h3><?= Enc::html($section); ?></h3>
Line 21: <a href="<?= Enc::html($tool['url']); ?>" class="<?= Enc::html($base_class . (++$index % 4 === 0 ? ' column-last' : '')); ?>">
Line 22: <h4><?= Enc::html($tool['name']); ?></h4>

/sprout/views/dbtools/php_info.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 48: <td><strong><?php echo Enc::html($key); ?></strong></th>
Line 49: <td><?php echo Enc::html($val); ?></td>
Line 71: <td><?= Enc::html($subsite['id']); ?></td>
Line 72: <td><?= Enc::html($subsite['name']); ?></td>
Line 73: <td><?= Enc::html($subsite['code']); ?></td>
Line 74: <td><?= Enc::html(Subsites::getAbsRoot($subsite['id'])); ?></td>

/sprout/views/dbtools/sql.php Highlighted file source
Line 3: use Sprout\Helpers\Enc;
Line 20: <textarea id="query-box" placeholder="Enter query" name="sql" spellcheck="false" class="sql textbox" rows="20"><?= Enc::html(@$_POST['sql']); ?></textarea>
Line 42: <input type="text" name="vars[<?= $row_num; ?>][key]" class="textbox" placeholder="e.g. name" id="variable-<?= $row_num; ?>" value="<?= Enc::html(@$var['key']); ?>">
Line 54: <input type="text" name="vars[<?= $row_num; ?>][val]" class="textbox" placeholder="e.g. John" id="replacement-<?= $row_num; ?>" value="<?= Enc::html(@$var['val']); ?>">
Line 112: echo '<option>', Enc::html($t), '</option>';

/sprout/views/demo_form.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
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>

/sprout/views/email/content_subscribe.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 19: <p>Hi <?php echo Enc::html($name); ?>,</p>
Line 21: <p>There have been some updates on the <?php echo Enc::html($subsite_title); ?> website:</p>
Line 29: <h2><?php echo Enc::html($row['name']); ?></h2>
Line 31: <p><?php echo Enc::html($row['text']); ?></p>
Line 33: <p><a href="<?php echo Enc::html($row['url']); ?>"><?php echo Enc::html($row['url']); ?></a></p>

/sprout/views/email/email_share.php Highlighted file source
Line 16: use Sprout\Helpers\Enc;
Line 21: <p>Hello <?php echo Enc::html($their_name); ?>,</p>
Line 23: <p>A user has shared a page from the <b><?php echo Enc::html($site_title); ?></b> website with you.</p>
Line 26: <?php echo Enc::html($page_title); ?>
Line 28: <a href="<?php echo Enc::html($page_url); ?>"><?php echo Enc::html($page_url); ?></a>

/sprout/views/email/link_checker.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 28: <h3><?php echo Enc::html($name); ?></h3>
Line 49: <td align="left"><?php echo Enc::html($row['link_text']); ?></td>
Line 50: <td align="left"><?php echo Enc::html($row['link_href']); ?></td>
Line 51: <td align="left"><?php echo Enc::html($row['err']); ?></td>

/sprout/views/email/pages_stale.php Highlighted file source
Line 16: use Sprout\Helpers\Enc;
Line 36: <td><?= Enc::html($page['name']); ?></td>
Line 37: <td><a href="<?= Enc::html($page['url']); ?>">view</a> |
Line 38: <a href="<?= Enc::html($base); ?>admin/edit/page/<?= $page['id']; ?>">edit</a>
Line 42: <td><?= Enc::html($page['editor']); ?></td>

/sprout/views/email/page_approved.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 19: <p>Hi <?= Enc::html($addressee); ?>,</p>
Line 21: <p>Your changes to the page "<?= Enc::html($page_name); ?>" have been approved.</p>
Line 25: <p><?= Enc::html($message); ?></p>
Line 30: <br><a href="<?php echo Enc::html($url); ?>"><?php echo Enc::html($url); ?></a></p>

/sprout/views/email/page_need_check.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 20: <p>Hi <?php echo Enc::html($approval_operator['name']); ?>,</p>
Line 22: <p>The page "<?php echo Enc::html($page['name']); ?>" has been updated by <?php echo Enc::html($request_operator['name']); ?>.</p>
Line 31: <br><a href="<?php echo Enc::html($url); ?>"><?php echo Enc::html($url); ?></a></p>

/sprout/views/email/page_notify.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 22: <p>The page "<?php echo Enc::html($page['name']); ?>" has been updated by <?php echo Enc::html($request_operator['name']); ?>.</p>
Line 31: <br><a href="<?php echo Enc::html($url); ?>"><?php echo Enc::html($url); ?></a></p>

/sprout/views/email/page_rejected.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 19: <p>Hi <?= Enc::html($addressee); ?>,</p>
Line 21: <p>Unfortunately, your changes to the page "<?= Enc::html($page_name); ?>" have been rejected.</p>
Line 25: <p><?= Enc::html($message); ?></p>
Line 30: <br><a href="<?php echo Enc::html($url); ?>"><?php echo Enc::html($url); ?></a></p>

/sprout/views/email_share_form.php Highlighted file source
Line 19: use Sprout\Helpers\Enc;
Line 24: <br><a href="<?php echo Enc::html($data['url']); ?>"><?php echo Enc::html($data['title'] ? $data['title'] : $data['url']); ?></a></p>
Line 32: <input type="hidden" name="title" value="<?php echo Enc::html($data['title']); ?>">
Line 33: <input type="hidden" name="url" value="<?php echo Enc::html($data['url']); ?>">
Line 51: <a href="<?php echo Enc::html($data['url']); ?>">Cancel</a>

/sprout/views/file_confirm.php Highlighted file source
Line 16: use Sprout\Helpers\Enc;
Line 32: <p class="file-upload__item__feedback__error__text"><?= Enc::html($error); ?></p>
Line 42: <div style="background-image: url(data:image/png;base64,<?= Enc::html($shrunk_img['encoded_thumbnail']); ?>)" class="file-upload__item__feedback__image"></div>
Line 45: <p class="file-upload__item__feedback__hover__name"><?php echo Enc::html($orig_file['name']); ?></p>
Line 46: <p class="file-upload__item__feedback__hover__size"><?php echo Enc::html(File::humanSize($orig_file['size'])); ?></p>
Line 47: <p class="file-upload__item__feedback__hover__dimensions"><?= Enc::html($shrunk_img['original_height']); ?> × <?= Enc::html($shrunk_img['original_width']); ?></p>
Line 55: <p class="file-upload__item__feedback__name"><?php echo Enc::html($orig_file['name']); ?></p>
Line 56: <p class="file-upload__item__feedback__size"><?php echo Enc::html(File::humanSize($orig_file['size'])); ?></p>

/sprout/views/gallery_compact.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 27: <a href="<?php echo Enc::html(File::url($image->popup_filename)); ?>" rel="facebox">
Line 28: <img src="<?php echo Enc::html(File::resizeUrl($image->filename, 'c50x50')); ?>" alt="" title="<?php echo Enc::html($image->name); ?>">

/sprout/views/image_gallery_tall_grid.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 33: <a href="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['full_size'])); ?>"
Line 34: <?php if ($captions): ?> title="<?php echo Enc::html($image['name'] . ' - ' . $image['description']); ?>"<?php endif; ?>
Line 35: class="image-gallery-side-thumb__link gallery-<?php echo Enc::html($unique); ?>">
Line 36: <img src="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['thumb_size_5'] . '-' . $cropping)) ?>" alt="<?php echo Enc::html($image['name']); ?>">
Line 46: $('.gallery-<?php echo Enc::js($unique); ?>').magnificPopup({

/sprout/views/image_gallery_tall_slider.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 31: <ul class="image-gallery-slider js--<?php echo Enc::html($unique); if ($captions): ?> image-gallery-has-captions<?php endif; ?>">
Line 35: <a href="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['full_size'])); ?>"
Line 36: <?php if ($captions): ?> title="<?php echo Enc::html($image['name'] . ' - ' . $image['description']); ?>"<?php endif; ?>
Line 37: class="image-gallery-slider__link gallery-<?php echo Enc::html($unique); ?>">
Line 38: <img src="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['slider_size'] . '-' . $cropping)) ?>" alt="<?php echo Enc::html($image['name']); ?>">
Line 41: <p class="image-gallery-caption"><?php echo Enc::html($image['name']); ?></p>
Line 50: var unique = '<?php echo Enc::js($unique); ?>';
Line 53: $('.gallery-<?php echo Enc::js($unique); ?>').magnificPopup({
Line 62: dots: <?php echo Enc::js(!empty($slider_dots)?'true':'false'); ?>,
Line 63: arrows: <?php echo Enc::js(!empty($slider_arrows)?'true':'false'); ?>,
Line 64: autoplay: <?php echo Enc::js(!empty($slider_autoplay)?'true':'false'); ?>,
Line 65: autoplaySpeed: <?php echo Enc::js($slider_speed * 1000); ?>,

/sprout/views/image_gallery_wide.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 29: <div class="-clearfix image-gallery-rows-<?php echo Enc::html($row_count); ?> <?php if ($captions): ?>image-gallery-has-captions<?php endif; ?>">
Line 34: <a href="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['full_size'])); ?>"
Line 35: <?php if ($captions): ?> title="<?php echo Enc::html($image['name'] . ' - ' . $image['description']); ?>"<?php endif; ?>
Line 36: class="thumb gallery-<?php echo Enc::html($unique); ?>">
Line 37: <img src="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['thumb_size_5'] . '-' . $cropping)) ?>" alt="<?php echo Enc::html($image['name']); ?>">
Line 40: <p class="image-gallery-caption"><?php echo Enc::html($image['name']); ?></p>
Line 50: $('.gallery-<?php echo Enc::js($unique); ?>').magnificPopup({

/sprout/views/image_gallery_wide_grid.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 30: <div class="-clearfix image-gallery-cols image-gallery-col-<?php echo Enc::html($row_count); ?> <?php if ($captions): ?>image-gallery-has-captions<?php endif; ?>">
Line 34: <a href="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['full_size'])); ?>"
Line 35: <?php if ($captions): ?> title="<?php echo Enc::html($image['name'] . ' - ' . $image['description']); ?>"<?php endif; ?>
Line 36: class="thumb gallery-<?php echo Enc::html($unique); ?>">
Line 37: <img src="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['thumb_size_' . Enc::html($row_count) . ''] . '-' . $cropping)) ?>" alt="<?php echo Enc::html($image['name']); ?>">
Line 40: <p class="image-gallery-caption"><?php echo Enc::html($image['name']); ?></p>
Line 49: $('.gallery-<?php echo Enc::js($unique); ?>').magnificPopup({

/sprout/views/image_gallery_wide_slider.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 31: <ul class="image-gallery-slider js--<?php echo Enc::html($unique); if ($captions): ?> image-gallery-has-captions<?php endif; ?>">
Line 35: <a href="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['full_size'])); ?>"
Line 36: <?php if ($captions): ?> title="<?php echo Enc::html($image['name'] . ' - ' . $image['description']); ?>"<?php endif; ?>
Line 37: class="image-gallery-slider__link gallery-<?php echo Enc::html($unique); ?>">
Line 38: <img src="<?php echo Enc::html(File::resizeUrl($image['filename'], $config['slider_size'] . '-' . $cropping)) ?>" alt="<?php echo Enc::html($image['name']); ?>">
Line 41: <p class="image-gallery-caption"><?php echo Enc::html($image['name']); ?></p>
Line 50: var unique = '<?php echo Enc::js($unique); ?>';
Line 53: $('.gallery-<?php echo Enc::js($unique); ?>').magnificPopup({
Line 62: dots: <?php echo Enc::js(!empty($slider_dots)?'true':'false'); ?>,
Line 63: arrows: <?php echo Enc::js(!empty($slider_arrows)?'true':'false'); ?>,
Line 64: autoplay: <?php echo Enc::js(!empty($slider_autoplay)?'true':'false'); ?>,
Line 65: autoplaySpeed: <?php echo Enc::js($slider_speed * 1000); ?>,
Line 66: slidesToShow: <?php echo Enc::js($slider_images); ?>,
Line 67: slidesToScroll: <?php echo Enc::js($slider_images); ?>,

/sprout/views/map_widget.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 5: <?php if (!empty($align)): ?><div class="<?php echo Enc::html($align); ?>"><?php endif; ?>
Line 7: <div id="map_<?php echo Enc::html($unique); ?>" style="width: <?php echo Enc::html($width); ?>px; height: <?php echo Enc::html($height); ?>px;"></div>
Line 9: var map_<?php Enc::js($unique); ?> = 'map_<?php echo Enc::js($unique); ?>';
Line 12: initMapWidget(map_<?php echo Enc::js($unique); ?>,
Line 13: <?php echo Enc::js($latlng['lat']); ?>,
Line 14: <?php echo Enc::js($latlng['lng']); ?>,
Line 15: <?php echo Enc::js($zoom); ?>,

/sprout/views/navigation_dropdown.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 12: <h2 class="mega-menu-preview-title"><?php echo Enc::html($parent_node->getNavigationName()); ?></h2>
Line 15: <p><?php echo Enc::html($extra['text']); ?></p>
Line 36: echo '<h2 class="mega-menu-column-title">', Enc::html($name), '</h2>', PHP_EOL;
Line 44: echo '<li class="', Enc::html(implode(' ', $classes)), '">';
Line 45: echo '<a href="', Enc::html($node->getFriendlyUrl()), '">', Enc::html($node->getNavigationName()), '</a>';

/sprout/views/rss_feed.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 8: <h2><a href="<?php echo Enc::html($item['url']); ?>"><?php echo Enc::html($item['name']); ?></a></h2>
Line 11: <img src="<?php echo Enc::html($item['image']); ?>" width="200" class="right">
Line 14: <p><b><?php echo Enc::html($item['date']->format('d M Y \a\t g:ia')); ?></b></p>
Line 16: <p><?php echo Enc::html($item['text']); ?></p>

/sprout/views/search_form.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 24: <label for="fm-site-search">Search the <?php echo Enc::html(Kohana::config('sprout.site_title')); ?> website</label>
Line 27: <input id="fm-site-search" class="textbox" type="text" name="q" value="<?php echo Enc::html(@$_GET['q']); ?>" placeholder="Enter your search here">

/sprout/views/system/error_development.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 29: <title><?php echo Enc::html($error) ?></title>
Line 34: <h3><?php echo Enc::html($error) ?></h3>
Line 35: <p><?php echo Enc::html($description) ?></p>
Line 39: <p><code class="block"><?php echo Enc::html($message) ?></code></p>
Line 41: <p class="helpful-msg"><a href="<?php echo Enc::html(Sprout::absRoot()); ?>dbtools/sync">You can probably <span>run a DB sync</span> to fix this problem</a></p>

/sprout/views/tinymce4/image_gallery.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 157: <?php if (!empty($category_name)): ?>Currently chosen <strong><?php echo Enc::html($category_name); ?></strong>.<?php endif; ?>
Line 169: <a href="javascript:;" data-id="<?php echo Enc::html($category['id']); ?>" data-title="<?php echo Enc::html($category['name']); ?>" class="js-gallery-cat <?php if ($category['id'] == $data['cat']): echo 'active'; endif; ?>">
Line 174: <img src="<?php echo File::resizeUrl($filename, 'c102x102'); ?>" class="idx <?php echo Enc::html($index); ?>">
Line 183: <div class="name"><?php echo Enc::html($category['name']); ?></div>

/sprout/views/tinymce4/image_size.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 25: Choose the size you would like to insert the image <b><?php echo Enc::html($image['name']); ?></b>.
Line 32: echo '<li class="up"><a href="', Enc::html($up_url), '">Up one level</a></li>';
Line 37: echo '<a href="javascript:;" data-src="', Enc::html(File::sizeUrl($image['id'], $size)), '" data-alt="', Enc::html($image['name']), '">', ucwords(str_replace('_', ' ', $size)), '</a>';
Line 41: echo '<a href="javascript:;" data-src="', Enc::html(File::relUrl($image['id'])), '" data-alt="', Enc::html($image['name']), '">Original</a>';

/sprout/views/tinymce4/library_browse.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 23: Browse the <b><?php echo Enc::html($library_name); ?></b> using the list below.
Line 30: echo '<li class="up"><a href="', Enc::html($up_url), '">Up one level</a></li>';
Line 34: echo '<li class="container"><a href="', Enc::html($url), '">', Enc::html($name), '</a></li>';
Line 40: echo '<li class="', $obj->getIconClass(), '"><a href="javascript:;" data-src="', Enc::html($attrs['href']), '" data-title="', Enc::html(@$attrs['title']), '">';
Line 41: echo Enc::html($obj->getLabel());

/sprout/views/tinymce4/library_search.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 23: Browse the <b><?php echo Enc::html($library_name); ?></b> search results using the list below.
Line 40: echo '<li class="', $obj->getIconClass(), '"><a href="javascript:;" data-src="', Enc::html($attrs['href']), '" data-title="', Enc::html(@$attrs['title']), '">';
Line 41: echo Enc::html($obj->getLabel());

/sprout/views/tinymce4/toolbar.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 33: <a class="button button-small" href="SITE/<?php echo Enc::html($upload_url); ?>"><?php echo Enc::html($upload_label); ?></a>
Line 37: <form method="get" action="SITE/<?php echo Enc::html($search_url); ?>">
Line 40: <label class="emu-mce-label" for="mceu_img_search_input"><?php echo Enc::html($search_label); ?></label>
Line 43: <input id="mceu_img_search_input" class="textbox" type="text" name="search" value="<?php echo Enc::html($search_query); ?>">
Line 50: <a class="button button-grey button-small" href="SITE/<?php echo Enc::html($reset_url); ?>" style="vertical-align: top;">Reset</a>

/sprout/views/tinymce4/upload.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 31: <form action="SITE/admin/call/file/quickUpload" method="post" target="quick-upload" enctype="multipart/form-data" id="mce-upload">
Line 46: <input type="hidden" name="type" value="<?= Enc::html(@$_GET['type']); ?>">

/sprout/views/tinymce4/video_list.php Highlighted file source
Line 17: use Sprout\Helpers\Enc;
Line 31: <li class="up"><a href="<?= Enc::html($up_url); ?>">Up one level</a></li>
Line 35: <li class="object"><a href="javascript:;" data-src="<?= Enc::html(File::relUrl($row['filename'])); ?>"
Line 36: data-title="<?= Enc::html($row['name']); ?>"><?= Enc::html($row['name']); ?></a></li>

/sprout/views/video_playlist.php Highlighted file source
Line 2: use Sprout\Helpers\Enc;
Line 12: <ul class="video-gallery -clearfix video-gallery--cols-<?php echo Enc::html($thumb_rows); ?>">
Line 15: <a href="<?php echo Enc::html(Url::addUrlScheme('www.youtube.com/watch?v=' . $video['id'])); ?>">
Line 16: <img src="<?php echo Enc::html($video['thumb_url']); ?>" alt="<?php echo Enc::html($video['title']); ?>">
Line 19: <p class="video-gallery__item__caption"><?php echo Enc::html($video['title']); ?></p>

/sprout/Widgets/RelatedLinksWidget.php Highlighted file source
Line 18: use Sprout\Helpers\Enc;
Line 60: $out = str_replace('SECTION', Enc::html($top_anc->getNavigationName()), $out);
Line 70: $page_title = Enc::html($top_anc->getNavigationName());
Line 71: $page_url = Enc::html($top_anc->getFriendlyUrl());
Line 76: $out .= "<li class=\"{$classes}\"><a href=\"{$page_url}\">" . Enc::html($top) . "</a></li>";
Line 107: $node_title = Enc::html($node->getNavigationName());
Line 108: $node_url = Enc::html($node->getFriendlyUrl());
A total of 1381 lines in 228 files were found