403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.114
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/domains/siparentOLD/wp-content/plugins/sliceshow/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/domains/siparentOLD/wp-content/plugins/sliceshow/lib/sliceshow.cycle2.class.php
<?php
/* cycle2 Output class */

Class SliceShow_Cycle2 {
	/**
	 * the slideshow's id
	 * @var integer
	 */
	private $show_id;
	
	public function __construct( $show_id ) {
		$this->set_show_id( $show_id );
	} //__construct
	
	/**
	 * setter for show_id
	 * @param integer $show_id 
	 */
	private function set_show_id( $show_id = 0 ) {
		$show_id = (int)$show_id;
		
		if( $show_id != 0 ) {
			$this->show_id = $show_id;
		}
	} //set_show_id
	
	/**
	 * getter for show_id
	 * @return integer 
	 */
	private function get_show_id() {
		return $this->show_id;
	} //get_show_id
	
	//load document.ready code and cycle2 init for each slideshow
	/**
	 * creates the jquery code to run the slideshow
	 * @return string the javascript code that runs the slider
	 */
	public function sliceshow_load_cycle2_js() {
		$cycle2_out = '';
		
		if( $this->get_show_id() ) {
			$ids = array( $this->get_show_id() );
		} else {
			//get ids of slideshows
			$ids = SliceShow_Helper::sliceshow_get_published_slideshows();
		}
		
		if( $ids ) {
			$cycle2_out .= '<script type="text/javascript">'.PHP_EOL;
			$cycle2_out .= '/* <![CDATA[ */'.PHP_EOL;
			$cycle2_out .= 'jQuery(window).load(function(){'.PHP_EOL;
			//loop through ids, get settings, and create cycle2 init for slideshow
			foreach( $ids as $id ) {
				$slideshow_speed = (int) get_post_meta( $id, 'cycle2-settings-slideshow-speed', true );
				$slideshow_speed = ($slideshow_speed == 0) ? 7000 : $slideshow_speed;
				$animation_speed = (int ) get_post_meta( $id, 'cycle2-settings-animation-speed', true );
				$animation_speed = ($animation_speed == 0) ? 600 : $animation_speed;
				
				$direction = get_post_meta( $id, 'cycle2-settings-direction', true );
				$direction = 'horizontal'; //override until we figure out vertical issue;
				$animation = get_post_meta( $id, 'cycle2-settings-animation', true );
				$arrows = get_post_meta( $id, 'cycle2-settings-show-arrows', true );
				$nav = get_post_meta( $id, 'cycle2-settings-show-nav', true );
				
				$cycle2_out .= 'jQuery("#'.SliceShow_Helper::sliceshow_get_post_name( $id ).'").cycle2({'.PHP_EOL;
				if( $nav == 'yes' ) {
					$cycle2_out .= 'controlNav: true';
				} else {
					$cycle2_out .= 'controlNav: false';
				}//arrows = yes
				
				if( $arrows == 'yes' ) {
					$cycle2_out .= ','.PHP_EOL.'directionNav: true';
				} else {
					$cycle2_out .= ','.PHP_EOL.'directionNav: false';
				}//nav = yes
				
				$cycle2_out .= ','.PHP_EOL.'slideshowSpeed: '.$slideshow_speed;
				$cycle2_out .= ','.PHP_EOL.'animationSpeed: '.$animation_speed;
				
				$cycle2_out .= ','.PHP_EOL.'animation: "'.$animation.'"';
				$cycle2_out .= ','.PHP_EOL.'pauseOnHover: true'; // pause on hover
				$cycle2_out .= ','.PHP_EOL.'direction: "'.$direction.'"'.PHP_EOL;
				$cycle2_out .= '});'.PHP_EOL;
			}//foreach ids as id
			
			$cycle2_out .= '});'.PHP_EOL;
			$cycle2_out .= '/* ]]> */'.PHP_EOL;
			$cycle2_out .= '</script>'.PHP_EOL.PHP_EOL;
		}//if ids
		//print $cycle2_out;
	}//sliceshow_load_cycle2_js
	
} //SliceShow_cycle2

Youez - 2016 - github.com/yon3zu
LinuXploit