Phase 1: Update database configuration and schema (OGP to GSP)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
ea665c34d5
commit
7f19731158
82 changed files with 730 additions and 730 deletions
|
|
@ -49,7 +49,7 @@ function exec_ogp_module()
|
|||
|
||||
$current_blacklist = array();
|
||||
|
||||
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `OGP_DB_PREFIXupdate_blacklist`;');
|
||||
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `GSP_DB_PREFIXupdate_blacklist`;');
|
||||
if($blacklisted_files !== FALSE)
|
||||
{
|
||||
$current_blacklist = array();
|
||||
|
|
@ -64,7 +64,7 @@ function exec_ogp_module()
|
|||
foreach($_POST['blacklist'] as $file)
|
||||
{
|
||||
$file = $db->real_escape_string($file);
|
||||
$db->query("INSERT INTO `OGP_DB_PREFIXupdate_blacklist` SET file_path='$file';");
|
||||
$db->query("INSERT INTO `GSP_DB_PREFIXupdate_blacklist` SET file_path='$file';");
|
||||
}
|
||||
|
||||
foreach($_POST['folder_files'] as $file)
|
||||
|
|
@ -74,12 +74,12 @@ function exec_ogp_module()
|
|||
if(!in_array($file,$_POST['blacklist']))
|
||||
{
|
||||
$file = $db->real_escape_string($file);
|
||||
$db->query("DELETE FROM `OGP_DB_PREFIXupdate_blacklist` WHERE file_path='$file';");
|
||||
$db->query("DELETE FROM `GSP_DB_PREFIXupdate_blacklist` WHERE file_path='$file';");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `OGP_DB_PREFIXupdate_blacklist`;');
|
||||
$blacklisted_files = $db->resultQuery('SELECT file_path FROM `GSP_DB_PREFIXupdate_blacklist`;');
|
||||
if($blacklisted_files !== FALSE)
|
||||
{
|
||||
$current_blacklist = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue