rubzebest
09-20-2005, 03:13 AM
in admincalendar.php the code below is used:
if ($_REQUEST['do'] == 'remove')
{
$vbulletin->input->clean_array_gpc('r', array('calendarid' => TYPE_INT));
print_delete_confirmation('calendar', $vbulletin->GPC['calendarid'], 'admincalendar', 'kill', 'calendar', 0);
}
when I use my own admin file (adminfoo.php) this doesn't work :S?
if ($_REQUEST['do'] == 'remove')
{
$vbulletin->input->clean_array_gpc('r', array('foorid' => TYPE_INT));
print_delete_confirmation('foo', $vbulletin->GPC['fooid'], 'adminfoo', 'kill', 'foo', 0);
}
how come? the phrase uses is not bound to the calendar, so why don't i see the message?
when I use this code:
if ($_REQUEST['do'] == 'add' or $_REQUEST['do'] == 'edit')
{
$vbulletin->input->clean_array_gpc('r', array('fooid' => TYPE_INT));
the $vbulletin->GPC['fooid'] doesn't have a value and I have to use this $vbulletin->GPC['fooid'] = intval($_GET['m']); to get the value.
when I use this however:
if ($_POST['do'] == 'update')
{
$vbulletin->input->clean_array_gpc('r', array('fooid' => TYPE_INT));
the $vbulletin->GPC['fooid'] has a value :S...
Anyone that can explain this behavior?
The code is all from vB 3.5 RC3 admincalendar.php...
if ($_REQUEST['do'] == 'remove')
{
$vbulletin->input->clean_array_gpc('r', array('calendarid' => TYPE_INT));
print_delete_confirmation('calendar', $vbulletin->GPC['calendarid'], 'admincalendar', 'kill', 'calendar', 0);
}
when I use my own admin file (adminfoo.php) this doesn't work :S?
if ($_REQUEST['do'] == 'remove')
{
$vbulletin->input->clean_array_gpc('r', array('foorid' => TYPE_INT));
print_delete_confirmation('foo', $vbulletin->GPC['fooid'], 'adminfoo', 'kill', 'foo', 0);
}
how come? the phrase uses is not bound to the calendar, so why don't i see the message?
when I use this code:
if ($_REQUEST['do'] == 'add' or $_REQUEST['do'] == 'edit')
{
$vbulletin->input->clean_array_gpc('r', array('fooid' => TYPE_INT));
the $vbulletin->GPC['fooid'] doesn't have a value and I have to use this $vbulletin->GPC['fooid'] = intval($_GET['m']); to get the value.
when I use this however:
if ($_POST['do'] == 'update')
{
$vbulletin->input->clean_array_gpc('r', array('fooid' => TYPE_INT));
the $vbulletin->GPC['fooid'] has a value :S...
Anyone that can explain this behavior?
The code is all from vB 3.5 RC3 admincalendar.php...