HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: 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_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/nudepix.eu/public_html/wp-content/themes/cpp/theme-admin-update.php
<?php

if (!class_exists('IMWB_Interest_Update'))
{
	class IMWB_Interest_Update
	{
		/**
		 * Instance Variables
		 */

		var $updateURL = 'http://covertpinpress.com/theme_update/std/update.txt';
		var $checkTime = 43200; // seconds
		var $updateOptionName;
		var $latestVersion;
		var $update = array();

		/**
		 * PHP 4 constructor (for backwards compatibility)
		 *
		 * @param	void
		 * @return	bool	true
		 */

		function IMWB_Interest_Update($theme_name)
		{
			$this->__construct($theme_name);
			return;
		}


		/**
		 * PHP 5 constructor
		 *
		 * @param	void
		 * @return	void
		 */

		function __construct($theme_name)
		{
			// Default to Current Version
			$this->latestVersion = IMWB_INTEREST_VERSION;

			// Set Update Option Name
			$this->updateOptionName = $theme_name.'_update_check';

			// Check For An Update
			$this->lastUpdateCheck();
		}


		function getUpdateInfo()
		{

			$result = wp_remote_get($this->updateURL);

			// Error? Die and Display Error Message
			if(is_wp_error($result))
			{
				return false;
			}

			// Valid Authentication
			if($result['response']['code']=='200')
			{
				// Store Update Information
            $update = explode("\n", $result['body']);
            for($i=0; $i < count($update); $i++)
            {
               if(empty($update[$i]))
                  continue;
                  
					list($key,$value) = explode('|||', $update[$i]);
					if(isset($key) && strlen(trim($key)) > 0) { $this->update[trim($key)] = trim($value); }
				}

				// Update Last Checked
				$this->update['last_checked'] = @date('Y-m-d H:i:s');

				// Set Legacy Variables
				$this->latestVersion = $this->update['latest_version'];

				// Update Options
				update_option($this->updateOptionName, $this->update);
					
				return true;
			}
			
			return false;
		}

		function lastUpdateCheck()
		{
			// Get Options
			$this->getOptions();

			// Last Update Check
			if( @strtotime(@date('Y-m-d H:i:s')) > (@strtotime($this->update['last_checked']) + $this->checkTime) )
			{
				$this->getUpdateInfo();
			}
		}



		function getOptions()
		{
			// Last Update Check
			$this->update = get_option($this->updateOptionName);

			if(!$this->update)
			{
				// Get Latest Update Information
				$this->getUpdateInfo();

				// Create New Option
				$this->update = array('last_checked'=>date('Y-m-d H:i:s'), 'latest_version'=>$this->latestVersion);
				add_option($this->updateOptionName, $this->update);
			}
		}



		function getLatestVersion()
		{
			return($this->update['latest_version']);
		}
	}
}

?>