Removed some simplified english, tag changes and cleared out small nuggets of dead code

This commit is contained in:
Andy Dixon
2024-07-23 18:50:27 +01:00
parent 5c41c928a6
commit 2e0296eba1
24 changed files with 299 additions and 275 deletions
+6 -3
View File
@@ -51,12 +51,15 @@ function thecleaner($stuff)
preg_match_all($codereg, $stuff, $code['CODE']);
$stuff = preg_replace($codereg, '----||CODEGO3SHERE||----', $stuff);
function lower($matches) {
function lower($matches)
{
}
//fix uppercase tags
$stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function($matches){return strtolower($matches[0]);}, $stuff);
$stuff = preg_replace_callback('/<(\/|)[A-Z]+[A-Z0-9]*\b/', function ($matches) {
return strtolower($matches[0]);
}, $stuff);
//fix attribute quotes
$stuff = preg_replace('/(<(?!meta)[^>]*\s[A-Za-z]+=)([^>\'\"\s]+)(\s*[^>]*)/', '$1"$2"$3', $stuff);
@@ -104,6 +107,6 @@ function thecleaner($stuff)
$stuff = preg_replace("/\r\n/", "\n", $stuff);
if ($stuff != '' || $stufflen == 0) return $stuff;
else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognized. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.';
else $message = '<strong>Error:</strong> Some characters couldn&rsquo;t be recognised. Try switching to UTF-8 encoding and be sure all special characters are properly encoded.';
}
+4 -4
View File
@@ -1,6 +1,6 @@
<?php
$_users=[];
$_users = [];
error_reporting(E_ALL & ~E_NOTICE);
@session_start();
@@ -28,10 +28,10 @@ if (isset($_SESSION['neoCMSSess']) && strstr($_SESSION['neoCMSSess'], 'neoCMSses
$script = '<script type="text/javascript">window.top.window.location="../";</script>';
echo $script;
} else {
$script = '<script type="text/javascript">window.top.window.loginIncorr("Incorrect Username or Password.");</script>';
echo $script;
$script = '<script type="text/javascript">window.top.window.loginIncorr("Incorrect Username or Password.");</script>';
echo $script;
}
}
}
} else {