Dr.CustUmz
03-17-2015, 09:37 AM
i solved my last issue by going about it another way:
using:
if ($_REQUEST['do'] == 'drcfl_on' OR $_REQUEST['do'] == 'drcfl_off')
{
require_once(DIR . '/includes/adminfunctions.php');
require_once(DIR . '/includes/functions_bigthree.php');
if($_REQUEST['do'] == 'drcfl_off')
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "setting
SET value = '0'
WHERE varname = 'drc_fl'
");
}
if($_REQUEST['do'] == 'drcfl_on')
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "setting
SET value = '1'
WHERE varname = 'drc_fl'
");
}
build_options();
eval(print_standard_redirect('redirect_' . $_REQUEST['do'], true, true));
}
but im having to put this in moderation_start and do my link to it like
<a href="moderation.php?do=drcfl_on">Switch</a>
or else the redirect doesnt display the template (just a white page with text)
this should (IMO) be in global_start and my links like:
<a href="?do=drcfl_on">Switch</a>
but thats not allowing the redirects to be in the theme's box
https://vborg.vbsupport.ru/attachment.php?attachmentid=152076&stc=1&d=1426588540
any suggestions to get this in global or atleast somwhere where i dont have to include another filename in my links like i have "moderation.php?" now
and yes this is something that will be on every page, thought i'd throw that out there
using:
if ($_REQUEST['do'] == 'drcfl_on' OR $_REQUEST['do'] == 'drcfl_off')
{
require_once(DIR . '/includes/adminfunctions.php');
require_once(DIR . '/includes/functions_bigthree.php');
if($_REQUEST['do'] == 'drcfl_off')
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "setting
SET value = '0'
WHERE varname = 'drc_fl'
");
}
if($_REQUEST['do'] == 'drcfl_on')
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "setting
SET value = '1'
WHERE varname = 'drc_fl'
");
}
build_options();
eval(print_standard_redirect('redirect_' . $_REQUEST['do'], true, true));
}
but im having to put this in moderation_start and do my link to it like
<a href="moderation.php?do=drcfl_on">Switch</a>
or else the redirect doesnt display the template (just a white page with text)
this should (IMO) be in global_start and my links like:
<a href="?do=drcfl_on">Switch</a>
but thats not allowing the redirects to be in the theme's box
https://vborg.vbsupport.ru/attachment.php?attachmentid=152076&stc=1&d=1426588540
any suggestions to get this in global or atleast somwhere where i dont have to include another filename in my links like i have "moderation.php?" now
and yes this is something that will be on every page, thought i'd throw that out there