upload_form_processing_sanitisation($_POST); $error = self::$processing->upload_form_processing_validation($form); if (empty($error)) { $feed_file_value = TRUE; echo self::$files->update_record($form); } else { echo self::$check->failure_message_facade($error); } // end if error } // end if isset($_POST['submitInd']) $max_up = ah_max_upload(); $feed_file_value = FALSE; // CHANGE THIS - only need cron data and $form_data = $this->db_select_all($_GET['unique_name']); echo '

Feed details for '.$_GET['unique_name'].'

'; echo '
'; echo "
"; // populate form with previously saved values if ($this->db_check_table($_GET['unique_name']) == NULL) { $feed_url_value = 'YES'; } else { $item = $this->db_select_all($_GET['unique_name']); if ($item->URL == '') { $feed_url_value = 'YES'; } else { $feed_url_value = $item->URL; } } if (isset($item)) { echo '

Max upload size for this server is '.($max_up / 1048576). 'MBs

'; echo '

File can be found here: '.''.AH_FEEDS_DIR.$item->fileName. '

'; echo '

Edit this form feed here

'; } else { echo '

You have not uploaded a flle for '.$_GET['unique_name']. ' yet!

'; } $feed_file = array( 'input' => 'file', // input type 'name' => 'feedFile', // name attribute 'desc' => 'Add file here', // for use in input label 'maxlength' => FALSE, // max attribute 'value' => $feed_file_value, // value attribute 'select' => $_GET['unique_name'] // array only for the select input ); $form = array( 'method' => 'post', 'action' => '#wpbody', 'enctype' => 'multipart/form-data', 'description' => '

Individual feed details

', 'option' => FALSE, 'submit' => 'submitInd', 'submtiTwo' => NULL, 'synchronize' => NULL, 'tracking' => NULL); self::$form_builder->create_form($form, $feed_file); } // end if isset($_GET['unique_name']) } /** * Upload_Form::upload_form_facade() * * @return */ public function upload_form_facade() { $this->upload_form(); } }