} else { $cats = array_filter(array(@$_REQUEST['file_category'], $file->file_category, WPFB_Core::$settings->default_cat)); $file_category = reset($cats); } //$file_category = ($update || empty($_REQUEST['file_category'])) ? $file->file_category : $_REQUEST['file_category']; if (!$update) { $file->file_direct_linking = WPFB_Core::$settings->default_direct_linking; } wpfb_loadclass('AdvUploader'); $adv_uploader = WPFB_AdvUploader::Create($form_url, $update); if (isset($_GET['visual_editor'])) { global $user_ID; update_user_option($user_ID, WPFB . '_visual_editor', (int) $_GET['visual_editor']); } $visual_editor = get_user_option(WPFB . '_visual_editor') && !$in_widget && !$in_editor; WPFB_Admin::PrintAdminSchemeCss(); ?> <?php $adv_uploader->PrintScripts(); ?> <form enctype="multipart/form-data" name="<?php echo $action; ?> " id="<?php echo $action; ?> " method="post" action="<?php echo $form_url; ?>