403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/atjconsultores.com/wp-content/plugins/widgetkit-1/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/atjconsultores.com/wp-content/plugins/widgetkit-1/helpers/check.php
<?php
/**
* @package   Widgetkit
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

/*
	Class: CheckWidgetkitHelper
		System helper class
*/
class CheckWidgetkitHelper extends WidgetkitHelper {
	
	// includes a html-list of the detected problems
	private $notice_list = null;

	/*
		Function: notices
			Checks the system for compatability with the widgetkit
		
		Returns:
			true 	if everything is okay
			false 	if problems were detected
	*/
	public function notices() {

		if (!$this->notice_list) {
			$this->run_tests();
		}

		return count($this->notice_list);
	}

	/*
		Function: get_notices
			Runs some compatibility checks on the system

		Returns:
			a list of errormessages as strings
	*/
	public function get_notices() {
		if (!$this->notice_list) {
			$this->run_tests();
		}
		return $this->notice_list;
	}

	/*
		function: run_tests
			Performs all tests on the system
	*/
	private function run_tests() {
		
		$this->notice_list = array();

		// cache writable ?
		if (!file_exists($this['path']->path('cache:')) || !is_writable($this['path']->path('cache:'))) {
			
			$this->notice_list[] = array(
				'type'    => 'critical',
				'message' => 'Widgetkit cache folder is not writable! Please check directory permissions '.$this['path']->path('cache:')
			);
		}

		// check if php version >= 5.2.4
		$needed_version = "5.2.4";
		if (version_compare($needed_version, phpversion(), ">")) {

			$this->notice_list[] = array(
				'type'    => 'critical',
				'message' => 'Your PHP version '.phpversion().' is too old. Make sure to install '.$needed_version.' or newer.'
			);
		}

		// check if installation supports json
		if (!function_exists('json_decode')) {

			$this->notice_list[] = array(
				'type'    => 'critical',
				'message' => 'No JSON support available.'
			);
		}

		// Check GD library support
		if ( !($this['image']->check()) ) {
			
			$this->notice_list[] = array(
				'type'    => 'critical',
				'message' => 'No GD library available.'
			);
		}

	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit