n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/test.en.php

19 lines
468 B
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?php
/* $db = sqlite_open("modules/db.sqlite");
$line = sqlite_query($db, "DELETE FROM news WHERE id='43'");
sqlite_close($db);*/
#include "include/standard.inc.php";
#mailalert("n@tourmentine.com","alerte!","n@tourmentine.com","","alerte");
echo htmlspecialchars("[ ]");
$request = $_SERVER["SCRIPT_NAME"];
if (strstr($request,".en.php"))
{
$redirect = preg_replace("/(.*)\.(en|es|fr)\.php/","$1.php",$request);
header('Location: '.$redirect);
}
?>