Remove useless variable, add the variable's functinality to .htaccess

instead
This commit is contained in:
speedie 2023-06-28 18:27:49 +02:00
parent d670a55a61
commit 22321311e7
3 changed files with 8 additions and 8 deletions

View file

@ -6,3 +6,7 @@ RewriteRule ^ /%1 [NE,L,R]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ /index.php/$1 [L]
<FilesMatch "config.php">
Deny from All
</FilesMatch>

View file

@ -1,4 +1,4 @@
<?php if (!defined('W2APP')){ die('No direct access.'); }
<?php
/*
* W2
*

View file

@ -1,15 +1,11 @@
<?php
define('W2APP', true);
/*
* W2
* spmenu-wiki
*
* Copyright (C) 2007-2011 Steven Frank <http://stevenf.com/>
* Copyright (C) 2023 speedie <speedie@speedie.site>
*
* Code may be re-used as long as the above copyright notice is retained.
* See README.txt for full details.
*
* Written with Coda: <http://panic.com/coda/>
*
* See LICENSE file for copyright and license details.
*/
// Install PSR-4-compatible class autoloader