403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/INVOICE/wp-content/plugins/kaya-qr-code-generator/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/INVOICE/wp-content/plugins/kaya-qr-code-generator/lib/functions-database.php
<?php

/**
 * Kaya QR Code Generator - Database Functions.
 * Functions for the plugin database management.
 *
 * @since 1.5.0
 */

if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly
}

if (!function_exists('wpkqcg_database_installSetup'))
{
	/**
	 * Default setup on plugin activation.
	 *
	 * @since 1.5.0
	 */
	function wpkqcg_database_installSetup()
	{
		if (!current_user_can('manage_options'))
		{
			wp_die('<p>' . __('You do not have sufficient permissions.') . '</p>');
		}

		if (!get_option(WPKQCG_QRCODE_GENERATOR_DB))
		{
			// loading localisation before the first setup.
			wpkqcg_plugin_loadLocalisation();
			// set default settings
			wpkqcg_database_defaultValues();
		}

		// setup default settings for multisite
		if (is_multisite())
		{
			$subSites = get_sites();
			foreach ($subSites as $i_site)
			{
				switch_to_blog($i_site->blog_id);
				if (!get_option(WPKQCG_QRCODE_GENERATOR_DB))
				{
					// loading localisation before the setup.
					wpkqcg_plugin_loadLocalisation();
					// set default settings
					wpkqcg_database_defaultValues();
				}
				restore_current_blog();
			}
		}
	}
}

if (!function_exists('wpkqcg_database_installSetupNewSite'))
{
	/**
	 * Default setup on new site creation in multisite.
	 *
	 * @param WP_Site $new_site New site object.
	 *
	 * @since 1.5.0
	 */
	function wpkqcg_database_installSetupNewSite($new_site)
	{
		if (!current_user_can('manage_options'))
		{
			wp_die('<p>' . __('You do not have sufficient permissions.') . '</p>');
		}

		// setup default settings for multisite
		if (is_multisite())
		{
			switch_to_blog($new_site->id);
			if (!get_option(WPKQCG_QRCODE_GENERATOR_DB))
			{
				// loading localisation before the setup.
				wpkqcg_plugin_loadLocalisation();
				// set default settings
				wpkqcg_database_defaultValues();
			}
			restore_current_blog();
		}
	}
}

if (!function_exists('wpkqcg_database_defaultValues'))
{
	/**
	 * Set default database values.
	 *
	 * @since 1.5.0
	 */
	function wpkqcg_database_defaultValues()
	{
		if (!current_user_can('manage_options'))
		{
			wp_die('<p>' . __('You do not have sufficient permissions.') . '</p>');
		}

		require_once(WPKQCG_PLUGIN_PATH . 'lib/class.crud_qrcode_generator.php');
		$kayaQRCodeGenerator = new WPKQCG_qrcode_generator('new');
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit