403Webshell
Server IP : 216.250.13.251  /  Your IP : 216.73.216.237
Web Server : nginx/1.24.0
System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 7.4.33
Disable Function : 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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gunay/wp-content/plugins/rt19-extentions/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gunay/wp-content/plugins/rt19-extentions/widgets/flickr.php
<?php
/**
 * RT-Theme Flickr Widget
 *
 * @author RT-Themes
 * @version 1.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

if ( ! class_exists( 'Flickr_Widget' ) ) :

class Flickr_Widget extends WP_Widget {

	function __construct() {
		$opts =array(
					'classname' 	=> 'widget_flickr',
					'description' 	=> __( 'Displays your Flickr feeds','rt_theme' )
				);

		parent::__construct('flickr', '['. RT_THEMENAME.']   '.__('Flickr','rt_theme'), $opts);
	}
	
	function widget( $args, $instance ) {
		extract( $args );
		
		$title           =	! empty( $instance['title'] ) ? apply_filters('widget_title', $instance['title'] ) : "";
		$flickr_username =	! empty( $instance['flickr_username'] ) ? $instance['flickr_username'] : "";
		$show_image      =	empty($instance['show_image']) ? 8 : $instance['show_image'];
		$randomID        =	'flickr-'.rand(10000, 1000000);
		

		echo $before_widget;
		if ($title) echo $before_title . $title . $after_title;
	 
		echo '<ul id="'.$randomID.'"  class="flickr_thumbs"></ul>';		
		
		
			echo '
			<script type="text/javascript">
			/* <![CDATA[ */
				jQuery(document).ready(function(){
					jQuery("#'.$randomID.'").jflickrfeed({limit: '.$show_image.',qstrings: {id: \''.$flickr_username.'\' }, itemTemplate: \'<li><span class="border"><a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a></span></li>\'});
				});		
			/* ]]> */	
			</script>
			';
		
		wp_enqueue_script ('<script type="text/javascript">jQuery("#'.$randomID.'").jflickrfeed({limit: '.$show_image.',qstrings: {id: \''.$flickr_username.'\' }, itemTemplate: \'<li><span class="border"><a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a></span></li>\'});</script>');		


		echo $after_widget;
	}

	function update( $new_instance, $old_instance ) {
		$instance = $old_instance;
		$instance['title']			= strip_tags($new_instance['title']); 
		$instance['flickr_username']	= strip_tags($new_instance['flickr_username']);
		$instance['show_image']		= strip_tags($new_instance['show_image']);
		return $instance;
	}

	function form( $instance ) {
		$title 			= 	isset($instance['title']) ? esc_attr($instance['title']) : '';
		$flickr_username 	=	isset($instance['flickr_username']) ? esc_attr($instance['flickr_username']) : '';
		$show_image		=	isset($instance['show_image']) && Is_Numeric($instance['show_image']) ? absint($instance['show_image']) : 8; 

?>
		<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title ?>" /></p>
	
		<p><label for="<?php echo $this->get_field_id('flickr_username'); ?>"><?php _e('Flickr Username:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('flickr_username'); ?>" name="<?php echo $this->get_field_name('flickr_username'); ?>" type="text" value="<?php echo $flickr_username; ?>" /></p>
	
		<p><label for="<?php echo $this->get_field_id('show_image'); ?>"><?php _e('Number of Photo to Display:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('show_image'); ?>" name="<?php echo $this->get_field_name('show_image'); ?>" type="text" value="<?php echo empty($show_image) ? 4 : $show_image; ?>" /></p>
		
<?php } } 

endif;
register_widget('Flickr_Widget');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit