function plgavp_settings_page_callback()
    {
        // PHP version check
        $php_version = explode('.', PHP_VERSION);
        $php_version = floatval($php_version[0] . '.' . $php_version[1]);
        /*if ($php_version <= 5.2)
        		{
        			// Error class module is not loaded
        			SGAntiVirus::ShowMessage('Your PHP version is too old ['.PHP_VERSION.']. Please ask your hoster to upgrade PHP.<br><br>This version for PHP 5.3 and older. If you want to use our scanner on your server please download WP Antivirus version 4.8.2. <a href="https://www.siteguarding.com/files/wp-antivirus-site-protection-4.8.2.zip">Click to download</a>');
        			return;
        		}*/
        // Load class
        if (!file_exists(dirname(__FILE__) . '/sgantivirus.class.php')) {
            // Error class module is not loaded
            SGAntiVirus::ShowMessage('File ' . dirname(__FILE__) . '/sgantivirus.class.php is not exist.');
            return;
        }
        include_once dirname(__FILE__) . '/sgantivirus.class.php';
        if (!class_exists('SGAntiVirus_module')) {
            // Error module is not loaded
            SGAntiVirus::ShowMessage('Main antivirus scanner module is not loaded. Please try again.');
            return;
        }
        wp_enqueue_style('plgavp_LoadStyle');
        ?>
			<h2 class="avp_header icon_radar">WP Antivirus Site Protection</h2>
			
		<?php 
        // Actions
        // Confirm Registration
        if (isset($_POST['action']) && $_POST['action'] == 'ConfirmRegistration' && check_admin_referer('name_254f4bd3ea8d')) {
            $errors = SGAntiVirus::checkServerSettings(true);
            $access_key = md5(time() . get_site_url());
            $email = trim($_POST['email']);
            $result = SGAntiVirus::sendRegistration(get_site_url(), $email, $access_key, $errors);
            if ($result === true) {
                $data = array('registered' => 1, 'email' => $email, 'access_key' => $access_key);
                plgwpavp_SetExtraParams($data);
                // Send access_key to user
                $message = 'Dear Customer!' . "<br><br>";
                $message .= 'Thank you for registration your copy of WP Antivirus Site Protection. Please keep this email for your records, it contains your registration information and you will need it in the future.' . "<br><br>";
                $message .= '<b>Registration information:</b>' . "<br><br>";
                $message .= '<b>Domain:</b> ' . get_site_url() . "<br>";
                $message .= '<b>Email:</b> ' . $email . "<br>";
                $message .= '<b>Access Key:</b> ' . $access_key . "<br><br>";
                $subject = 'AntiVirus Registration Information';
                SGAntiVirus_module::SendEmail($email, $message, $subject);
            } else {
                // Show error
                SGAntiVirus::ShowMessage($result);
                return;
            }
        }
        // Start Scan
        if (isset($_POST['action']) && $_POST['action'] == 'StartScan' && check_admin_referer('name_254f4bd3ea8d')) {
            $data = array('allow_scan' => intval($_POST['allow_scan']), 'do_evristic' => intval($_POST['do_evristic']));
            plgwpavp_SetExtraParams($data);
            $params = plgwpavp_GetExtraParams();
            // Check if something in progress
            $progress_info = SGAntiVirus::GetProgressInfo(get_site_url(), $params['access_key']);
            if ($progress_info['in_progress'] > 0) {
                $msg = 'Another scanning process is in progress. In 5-10 minutes you will get report by email or it will be available in Latest Reports section.';
                SGAntiVirus::ShowMessage($msg);
                return;
            }
            global $avp_license_info;
            $session_id = md5(time() . '-' . rand(1, 10000));
            ob_start();
            session_start();
            ob_end_clean();
            $_SESSION['scan']['session_id'] = $session_id;
            SGAntiVirus::ScanProgress($session_id, ABSPATH, $params, $avp_license_info);
            return;
        }
        // Quarantine & Malware remove
        if (isset($_POST['action']) && $_POST['action'] == 'QuarantineFiles' && check_admin_referer('name_254f4bd3ea8d')) {
            $params = plgwpavp_GetExtraParams();
            $license_info = SGAntiVirus::GetLicenseInfo(get_site_url(), $params['access_key']);
            if ($license_info === false) {
                SGAntiVirus::page_ConfirmRegistration();
                return;
            }
            if ($license_info['membership'] == 'pro') {
                if (isset($_POST['filelist'])) {
                    $filelist_type = trim($_POST['filelist']);
                    switch ($filelist_type) {
                        case 'main':
                        case 'heuristic':
                            $a = SGAntiVirus::QuarantineFiles($license_info['last_scan_files'][$filelist_type]);
                            break;
                        default:
                            die('filelist is not allowed');
                            break;
                    }
                }
                if ($a === true) {
                    SGAntiVirus::ShowMessage('Malware moved to quarantine and deleted from the server.');
                } else {
                    SGAntiVirus::ShowMessage('Operation is failed. Some files are not moved to quarantine or not deleted.', 'error');
                }
            }
        }
        // Send files to SiteGuarding.com
        if (isset($_POST['action']) && $_POST['action'] == 'SendFilesForAnalyze' && check_admin_referer('name_254f4bd3ea8d')) {
            $params = plgwpavp_GetExtraParams();
            $license_info = SGAntiVirus::GetLicenseInfo(get_site_url(), $params['access_key']);
            if ($license_info === false) {
                SGAntiVirus::page_ConfirmRegistration();
                return;
            }
            if ($license_info['membership'] == 'pro') {
                $a = SGAntiVirus::SendFilesForAnalyze($license_info['last_scan_files'], $license_info['email']);
                if ($a === true) {
                    SGAntiVirus::ShowMessage('Files sent for analyze. SiteGuarding.com support will contact with you within 24-48 hours. You will get report by email ' . $license_info['email']);
                } else {
                    SGAntiVirus::ShowMessage('Operation is failed. Nothing sent for analyze.', 'error');
                }
            }
        }
        // Get params
        $params = plgwpavp_GetExtraParams();
        // Check if website is registered
        //SGAntiVirus::page_ConfirmRegistration(); return;
        if (!isset($params['registered']) || intval($params['registered']) == 0) {
            SGAntiVirus::page_ConfirmRegistration();
            return;
        }
        // Get data from siteguading about number of scans and exp date
        $license_info = SGAntiVirus::GetLicenseInfo(get_site_url(), $params['access_key']);
        if ($license_info === false) {
            SGAntiVirus::page_ConfirmRegistration();
            return;
        }
        // Check server settings
        if (!SGAntiVirus::checkServerSettings()) {
            return;
        }
        /*
        echo '<pre>';
        print_r($license_info);
        print_r($params);
        echo '</pre>';
        */
        global $avp_license_info;
        SGAntiVirus_module::MembershipFile($avp_license_info['membership'], $avp_license_info['scans'], $params['show_protectedby']);
        foreach ($license_info as $k => $v) {
            $params[$k] = $v;
        }
        SGAntiVirus::page_PreScan($params);
    }