If the script is called directly, exit with a redirection tip

This commit is contained in:
pezcurrel 2022-12-31 10:19:09 +01:00
parent 9919583261
commit d981e429f6
7 changed files with 45 additions and 0 deletions

View file

@ -1,4 +1,8 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a> (but why? Oh well).');
exit(0);
}
echo('</nav>
<div class="scrwide">
<div class="scrwidein">

View file

@ -1,5 +1,10 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
echo('</nav>
<div class="scrwide">
<div class="scrwidein">

View file

@ -1,5 +1,10 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
echo('</nav>
<div class="scrwide">
<div class="scrwidein">

View file

@ -1,4 +1,10 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
echo('
<div id="summlink" onclick="shsum()">
'._('Index').'

View file

@ -1,5 +1,10 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
$bt=microtime(true);
$dlanguc=strtoupper($dlang);

View file

@ -1,5 +1,10 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
require('lib/fnum.php');
echo('</nav>

View file

@ -1,5 +1,20 @@
<?php
if (!defined('N')) {
echo('You probably meant <a href="'.preg_replace('/\.php$/','',$_SERVER['REQUEST_URI']).'">this</a>.');
exit(0);
}
echo('</nav>
<div class="scrwide">
<div class="scrwidein">
<section class="sectcontm">
<h3>Under construction.</h3>
</section>
</div>
</div>'.N);
exit(0);
$bt=microtime(true);
$dlanguc=strtoupper($dlang);