%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/sakura-blog/themes/theme-basic/gray/v1.1.5/
Upload File :
Create Path :
Current File : //usr/local/sakura-blog/themes/theme-basic/gray/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);
}

Zerion Mini Shell 1.0