403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.153
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/core/BlockJorney.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );

class SQ_Core_BlockJorney extends SQ_Classes_BlockController {

	public $days = false;

	public function init() {
		SQ_Classes_ObjController::getClass( 'SQ_Classes_DisplayController' )->loadMedia( 'jorney' );

		if ( ! $seojorney = SQ_Classes_Helpers_Tools::getOption( 'sq_seojourney' ) ) {
			$this->show_view( 'Blocks/Jorney' );
		} else {

			$days    = 1;
			$seconds = strtotime( date( 'Y-m-d' ) ) - strtotime( $seojorney );

			if ( $seconds > 0 ) {
				$days = $seconds / ( 3600 * 24 );
				$days = (int) $days + 1;
			}

			$this->days = $days;
			$this->show_view( 'Blocks/Jorney' );
		}
	}

	public function getJourneyDays() {
		return $this->days;
	}

	/**
	 * 14 days journey action
	 */
	public function action() {
		switch ( SQ_Classes_Helpers_Tools::getValue( 'action' ) ) {
			//login action
			case 'sq_journey_close':

				if ( ! SQ_Classes_Helpers_Tools::userCan( 'sq_manage_snippet' ) ) {
					return;
				}

				SQ_Classes_Helpers_Tools::saveOptions( 'sq_seojourney_congrats', 0 );
				break;

		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit