1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Issue #4283 - Update deprecated sql method usage. Removed old code.

This commit is contained in:
Cameron
2020-12-17 05:52:54 -08:00
parent 8c0e2c0392
commit 42f0e902d4
42 changed files with 76 additions and 3627 deletions

View File

@@ -602,12 +602,12 @@ if (isset($_POST['optionsubmit']))
$temp['upload_maxfilesize'] = $_POST['upload_maxfilesize'];
$temp['upload_class'] = $_POST['upload_class'];
$temp['upload_enabled'] = (FILE_UPLOADS ? $_POST['upload_enabled'] : 0);
if ($temp['upload_enabled'] && !$sql->db_Select("links", "*", "link_url='upload.php' "))
if ($temp['upload_enabled'] && !$sql->select("links", "*", "link_url='upload.php' "))
{
$sql->db_Insert("links", "0, '".LAN_UPLOAD."', 'upload.php', '', '', 1,0,0,0,0");
}
if (!$temp['upload_enabled'] && $sql->db_Select("links", "*", "link_url='upload.php' "))
if (!$temp['upload_enabled'] && $sql->select("links", "*", "link_url='upload.php' "))
{
$sql->db_Delete("links", "link_url='upload.php' ");
}
@@ -798,8 +798,8 @@ switch ($action)
break;
case 'view' :
$sql->db_Select('upload', '*', "upload_id='{$id}'");
$row = $sql->db_Fetch();
$sql->select('upload', '*', "upload_id='{$id}'");
$row = $sql->fetch();
extract($row);
@@ -913,7 +913,7 @@ switch ($action)
$text .= "<tr><td class='forumheader3' style='text-align:center' colspan='6'>";
if (!$active_uploads = $sql->db_Select("upload", "*", "upload_active=0 ORDER BY upload_id ASC"))
if (!$active_uploads = $sql->select("upload", "*", "upload_active=0 ORDER BY upload_id ASC"))
{
$text .= UPLLAN_19.".\n</td>\n</tr>";
}