function mgm_parse_query() { global $wpdb; // pre process hook for parse query do_action('mgm_parse_query_pre_process'); //check file uploads: if ($file_upload = mgm_request_var('file_upload', '', true)) { // option switch ($file_upload) { case 'image': mgm_photo_file_upload(); break; } // no process further exit; } // payment process -------------------- // default $process_payments = false; // check foreach (mgm_get_payment_page_query_vars() as $query_var) { // set if if ($isset_query_var = mgm_get_query_var($query_var)) { // process $process_payments = true; break; } } // If buddy press registration page is used. issue #1085 if (!$process_payments) { $process_payments = mgm_is_bp_registration(); } // check if ($process_payments) { // payment html mgm_get_transaction_page_html(false); // exit exit; } // download flag // wp-ecommerce also uses download as slug, check if (!($download_slug = mgm_get_class('system')->get_setting('download_slug'))) { $download_slug = 'download'; } // download call if ($isset_download_slug = mgm_get_query_var($download_slug)) { // get method $code = mgm_request_var('code', '', true); // check mgm_download_file($code); // exit exit; } }
/** * get transactions page */ function mgm_transactions_page($args = array()) { // return return mgm_get_transaction_page_html(true); exit; }