Port the code to PHP 8.5.
Replace the short open tags and the removed functions (mcrypt, mysql_error, salt-less crypt). Decode the reCAPTCHA reply as JSON, turn off mysqli exceptions, drop stripslashes(), and default missing input values. Fix the misplaced continue in prune_images().
This commit is contained in:
+7
-7
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
if ( ! isset($_SERVER['HTTPS'])) {
|
||||
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
|
||||
}
|
||||
@@ -22,9 +22,9 @@ if (!isset($_SESSION['editor'])) {
|
||||
<link rel='stylesheet' type='text/css' href='../publish/style.css' />
|
||||
<script type="text/javascript" src="../utilities.js"></script>
|
||||
<link rel="alternate" type="application/rss+xml" title="xxx.org.za RSS feed" href="/feed" />
|
||||
<? include_once('./tinymce_init.inc.php'); ?>
|
||||
<?php include_once('./tinymce_init.inc.php'); ?>
|
||||
</head>
|
||||
<?
|
||||
<?php
|
||||
flush();
|
||||
require_once("../get_data.lib.php");
|
||||
open_db('open');
|
||||
@@ -35,13 +35,13 @@ if (!isset($_SESSION['editor'])) {
|
||||
?>
|
||||
<body>
|
||||
<div id='container'>
|
||||
<? include_once("../sidebar.inc.php"); ?>
|
||||
<?php include_once("../sidebar.inc.php"); ?>
|
||||
<div id='main'>
|
||||
<div id='maintext'>
|
||||
|
||||
<H1>edit</H1>
|
||||
|
||||
<?
|
||||
<?php
|
||||
|
||||
/* Authenticated admin user allowed to: check the queue
|
||||
edit article on the queue
|
||||
@@ -116,9 +116,9 @@ switch ($action) {
|
||||
</div> <!-- maintext -->
|
||||
</div> <!-- main -->
|
||||
</div> <!-- container -->
|
||||
<? include_once("../bottombar.inc.php"); ?>
|
||||
<?php include_once("../bottombar.inc.php"); ?>
|
||||
|
||||
<? open_db('close'); ?>
|
||||
<?php open_db('close'); ?>
|
||||
<!-- Finis -->
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user