HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/core_OLD/mission.php
<?php

/* Set current mission */

$missions = new MissionsController(( isset($_GET['m']) ? $_GET['m'] : null ), ( isset($_GET['p']) ? $_GET['p'] : null ));

/* Execute operation */

if (!empty($_GET['r']))
	switch ($_GET['r'])
	{
		case 'victory':
			$missions->victory();
		break;
		case 'defeat':
			$missions->defeat();
		break;
	}

$m = $missions->getMissionData();

if (!is_null($m))
{
	switch ($missions->getPhase())
	{
		case 'victory':
			require('view_victory.php');
		break;
		case 'defeat':
			require('view_defeat.php');
		break;
		default:
			$phase = $missions->getPhaseData();

			require('view_battle.php');
		break;
	}
}
else
{
	echo "No hay más misiones";
}