The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
i solved my last issue by going about it another way:
using: Code:
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));
}
Code:
<a href="moderation.php?do=drcfl_on">Switch</a> this should (IMO) be in global_start and my links like: Code:
<a href="?do=drcfl_on">Switch</a> 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 |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|