[fix] Still cleaning up the PHP 8.1 issues

master
Solomon Peachy 2 weeks ago
parent 0462c9c6a5
commit 980a0be57f
  1. 4
      src/album.php
  2. 4
      src/folder.php
  3. 3
      src/image.display.php
  4. 4
      src/user.php

@ -22,6 +22,8 @@ include_once "include/common.php";
include_once "include/orderby.php";
include_once "include/site.php";
$database = site_prolog();
$album_id = pg_escape_string($database, $_REQUEST['album']);
$offset = pg_escape_string($database, isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0);
@ -29,8 +31,6 @@ if ($offset && !is_numeric($offset)) {
$offset = 0;
}
$database = site_prolog();
$album = FALSE;
if ($album_id && is_numeric($album_id)) {

@ -22,6 +22,8 @@ include_once "include/common.php";
include_once "include/site.php";
include_once "include/orderby.php";
$database = site_prolog();
$folder_id = pg_escape_string($database, $_REQUEST['folder']);
$offset = pg_escape_string($database, isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0);
@ -29,8 +31,6 @@ if ($offset && !is_numeric($offset)) {
$offset = 0;
}
$database = site_prolog();
$folder = FALSE;
if ($folder_id && is_numeric($folder_id)) {

@ -22,6 +22,8 @@ include_once "include/config.php";
include_once "include/calendar.php";
include_once "include/site.php";
$database = site_prolog();
$photo_id = pg_escape_string($database, isset($_REQUEST['image']) ? $_REQUEST['image'] : FALSE);
$image_size = pg_escape_string($database, isset($_REQUEST['size']) ? $_REQUEST['size'] : 1);
$version = pg_escape_string($database, isset($_REQUEST['ver']) ? $_REQUEST['ver'] : FALSE);
@ -63,7 +65,6 @@ switch ($image_size) {
$compress_pages = FALSE;
ini_set('zlib.output_compression', 'Off');
$database = site_prolog();
$cache_ctrl = FALSE;
/* Figure out SQL based on image */

@ -24,10 +24,10 @@ include_once "include/profile.php";
include_once "include/site.php";
include_once "include/orderby.php";
$owner_id = pg_escape_string($database, isset($_REQUEST['user']) ? $_REQUEST['user'] : 0);
$database = site_prolog();
$owner_id = pg_escape_string($database, isset($_REQUEST['user']) ? $_REQUEST['user'] : 0);
$tmp = FALSE;
if ($owner_id) {

Loading…
Cancel
Save