Array ( )
// Add Sponsorif ($_REQUEST['do'] == 'add'){print_form_header("sponsors", "saved", "false", "true", "add_entry", "90%", "", "true", "post");print_table_header("Add Sponsor");print_input_row("Title", "title", $vbulletin->GPC['title'], $htmlise = true, $size = 35, $maxlength = 100, $direction = '', $inputclass = false);print_input_row("URL", "url", $vbulletin->GPC['url'], $htmlise = true, $size = 35, $maxlength = 100, $direction = '', $inputclass = false);print_input_row("Image", "image", $vbulletin->GPC['image'], $htmlise = true, $size = 35, $maxlength = 100, $direction = '', $inputclass = false);print_input_row("Description", "description", $vbulletin->GPC['description'], $htmlise = true, $size = 35, $maxlength = 100, $direction = '', $inputclass = false);print_radio_row('Suspended', 'inactive', array(0 => 'No', 1 => 'Yes'), $vbulletin->GPC['inactive']);echo '<tr><td class="alt2">Image File</td><td class="alt2"><input type="file" name="img_file" /></td></tr>';print_submit_row("Add Sponsor");print_table_footer(); }if($_REQUEST['do'] == 'saved') { $upload = new vB_Upload_Image($vbulletin); $upload->image =& vB_Image::fetch_library($vbulletin); $upload->path = './'.$options['sponsor_imgpath'];// if (!($upload->process_upload($vbulletin->GPC['img_file']))){// eval(standard_error(fetch_error('there_were_errors_encountered_with_your_upload_x', $upload->fetch_error())));// } $sql = "INSERT INTO `" . TABLE_PREFIX . "sponsors` (`title` , `url` , `image` , `description`, `inactive`, `img_file`) VALUES ( '" . $db->escape_string($vbulletin->GPC['title']) . "', '" . $db->escape_string($vbulletin->GPC['url']) . "', '" . $db->escape_string($vbulletin->GPC['image']) . "', '" . $db->escape_string($vbulletin->GPC['description']) . "', '" . $db->escape_string($vbulletin->GPC['inactive']) . "', '" . $vbulletin->GPC['img_file'] . "' )";print_r($vbulletin->GPC['img_file']);$vbulletin->db->query_write($sql);print_cp_message('Sponsor Added.', 'sponsors.php', 5); }