# usc-e-shop/2.12.4/functions/progress-check.php

Welcart e-Commerce, version 2.12.4. 23 lines.

- Page: https://pluginprobe.com/plugins/usc-e-shop/2.12.4/code/functions/progress-check.php
- Raw: https://pluginprobe.com/plugins/usc-e-shop/2.12.4/raw/functions/progress-check.php
- Modified: 2022-12-02T05:46:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/usc-e-shop/2.12.4/code/functions/progress-check.php#L10-L20`.

```php
<?php
/**
 * Check progress.
 *
 * @since 2.7.7
 * @return void
 */
function usces_item_progress_check(){
	check_ajax_referer( 'wel_progress_check_ajax', 'nonce' );

	if ( 4 > usces_get_admin_user_level() ) {
		die( 'user_level' );
	}

	$progressfile = wp_unslash( filter_input( INPUT_POST, 'progressfile', FILTER_DEFAULT ) );
	$progressfile = WP_CONTENT_DIR . USCES_UPLOAD_TEMP . DIRECTORY_SEPARATOR . $progressfile;
	if ( usces_is_reserved_file( $progressfile ) ) {
		$text = file_get_contents( $progressfile );
		echo( $text );
	}
	exit;
}

```
