All pastes #756785 Raw Edit

Something

public php v1 · immutable
#756785 ·published 2007-10-31 19:03 UTC
rendered paste body
	private function round_message($brackl, $round)	{		if ($brackl == 0)		{			$message = "All hail the champion! (flex fix this message *please* :P)";			return $message;		}		if ($round == self::$rounds[$brackl]['numrounds'] - 1 && $brackl == 1)		{			$message = "Next elimination in one round. Will go down to the champion.";		}		if ($round == self::$rounds[$brackl]['numrounds'] - 1)		{			$message = "Next elimination in one round. Will go down to " . self::$rounds[$brackl - 1]['players'] . " players.";			return $message;		}		if ($round == 0 && $brackl == 1)		{			$message = "Eliminating players, leaving  " . self::$rounds[$brackl]['players'] . ". Scores multiplied by " . self::$rounds[$brackl]['scorescoef'] . ". Next elimination in " . self::$rounds[$brackl]['numrounds'] . ", will go down to the champion.";			return $message;		}		if ($round == 0)		{			$message = "Eliminating players, leaving  " . self::$rounds[$brackl]['players'] . ". Scores multiplied by " . self::$rounds[$brackl]['scorescoef'] . ". Next elimination in " . self::$rounds[$brackl]['numrounds'] . "rounds , will go down to " . self::$rounds[$brackl - 1]['players'] . " players.";			return $message;		}		if ($brackl == 1)		{			$message = "Next elimination in ". (self::$rounds[$brackl]['numrounds'] - $round) ." rounds. Will go down to the champion.";			return $message;		}		$message = "Next elimination in ". (self::$rounds[$brackl]['numrounds'] - $round) ." rounds. Will go down to " . self::$rounds[$brackl - 1]['players'] . " players.";		return $message;	}