HEX
Server: Apache
System: Linux c119.dattaweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: c1190199 (57165)
PHP: 7.4.33
Disabled: mail, system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c1190199/public_html/wp-content/plugins/wptouch-pro/core/class-theme.php
<?php


class WPtouchTheme extends stdClass {
	var $base;
	var $name;
	var $theme_url;
	var $description;
	var $author;
	var $version;
	var $framework;
	var $wptouch_object;
	var $parent_theme;
	var $loaded;

	function __construct( $wptouch_object ) {
		$this->framework = 1;
		$this->wptouch_object = $wptouch_object;
		$this->loaded = false;
	}

	public function load( $theme_location, $theme_url ) {
		$style_file = $theme_location . '/readme.txt';

		$this->load_style_info( $style_file );
	}

	private function load_style_info( $style_file ) {
		if ( file_exists( $style_file ) ) {
			$style_info = $this->wptouch_object->load_file( $style_file );

			$theme_frags = explode( DIRECTORY_SEPARATOR, trim( $theme_location, DIRECTORY_SEPARATOR ) );

			$this->base = $theme_frags[ count( $theme_frags ) - 1 ];
			$this->name = $this->wptouch_object->get_information_fragment( $style_info, 'Theme Name' );
			$this->theme_url = $this->wptouch_object->get_information_fragment( $style_info, 'Theme URI' );
			$this->description = $this->wptouch_object->get_information_fragment( $style_info, 'Description' );
			$this->author = $this->wptouch_object->get_information_fragment( $style_info, 'Author' );
			$this->version = $this->wptouch_object->get_information_fragment( $style_info, 'Version' );
			$this->framework = $this->wptouch_object->get_information_fragment( $style_info, 'Framework' );
			$features = $this->wptouch_object->get_information_fragment( $style_info, 'Features' );

			if ( $features ) {
				$this->features = explode( ',', str_replace( ', ', ',', $features ) );
			} else {
				$this->features = false;
			}

			$parent_info = $this->wptouch_object->get_information_fragment( $style_info, 'Parent' );
			if ( $parent_info ) {
				$this->parent_theme = $parent_info;
			}

			$this->tags = explode( ',', str_replace( ', ', ',', $this->get_information_fragment( $style_info, 'Tags' ) ) );
			$this->screenshot = $theme_url . '/screenshot.png';
			$this->location = str_replace( WP_CONTENT_DIR, '', $theme_location );

			$this->loaded = true;
		}
	}

	public function framework_version() {
		return ( $this->framework );
	}

	public function is_child() {
		return ( $this->parent_theme );
	}
}