%PDF- %PDF-
Direktori : /usr/local/sakura-blog/themes/theme-basic/green/v1.1.5/ |
Current File : //usr/local/sakura-blog/themes/theme-basic/green/v1.1.5/utils.php |
<?php function component($name, array $ctx = [], $enabled = true) { if (!$enabled) { return; } $component_path = __DIR__ . "/templates/components/$name.php"; if (!file_exists($component_path)) { return ""; } extract($ctx); require($component_path); } function nl2empty(string $str) { return str_replace(["\r", "\n"], "", $str); } function sanitizeHTML(string $str) { return htmlspecialchars($str, ENT_QUOTES); }