PluginProbe
Welcart e-Commerce / 2.11.30
Welcart e-Commerce v2.11.30
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / functions / progress-check.php

progress-check.php in Welcart e-Commerce 2.11.30, at functions/progress-check.php

23 lines 565 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Check progress.
4 *
5 * @since 2.7.7
6 * @return void
7 */
8 function usces_item_progress_check(){
9 check_ajax_referer( 'wel_progress_check_ajax', 'nonce' );
10
11 if ( 4 > usces_get_admin_user_level() ) {
12 die( 'user_level' );
13 }
14
15 $progressfile = wp_unslash( filter_input( INPUT_POST, 'progressfile', FILTER_DEFAULT ) );
16 $progressfile = WP_CONTENT_DIR . USCES_UPLOAD_TEMP . DIRECTORY_SEPARATOR . $progressfile;
17 if ( usces_is_reserved_file( $progressfile ) ) {
18 $text = file_get_contents( $progressfile );
19 echo( $text );
20 }
21 exit;
22 }
23