Initial commit: plantilla base PHP para webs Acai CMS

This commit is contained in:
Jordan
2026-02-21 21:13:57 +00:00
commit 03acc5b013
321 changed files with 62660 additions and 0 deletions

29
cms/robots.php Executable file
View File

@@ -0,0 +1,29 @@
<?php
require_once __DIR__."/../sesion.php";
require_once __DIR__."/../funciones.php";
if (!function_exists("protocol")) {
function protocol() {
return _isHTTPS() ? "https" : "http";
}
function _isHTTPS() {
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
}
}
header('Content-Type: text/plain');
$filePath = __DIR__."/../robots.txt";
if (file_exists($filePath)) {
echo file_get_contents($filePath);
die();
}
?>
# <?=strtoupper($configuracionRecord["tienda_nombre_empresa"]);?>
User-agent: *
<? if (strpos($_SERVER["HTTP_HOST"], "plandeweb.com")) {?>
Disallow: /
<? }?>
<? if (@$configuracionRecord['pagina_publicada']) {?>
# SITEMAP
Sitemap: <?=protocol();?>://<?=$_SERVER["HTTP_HOST"];?>/sitemap.xml
<? }?>