-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'phacUFPE/multiworld_system' into feature/status-multiworld
- Loading branch information
Showing
11 changed files
with
403 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,3 @@ | |
'lastkills' => $last_kills, | ||
'world' => $world, | ||
)); | ||
|
||
//search bar | ||
$twig->display('online.form.html.twig'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php global $db, $config, $twig, $status; | ||
/** | ||
* Online | ||
* | ||
* @package MyAAC | ||
* @author OpenTibiaBR | ||
* @copyright 2024 MyAAC | ||
* @link https://github.com/opentibiabr/myaac | ||
*/ | ||
defined('MYAAC') or die('Direct access not allowed!'); | ||
$title = 'Worlds'; | ||
|
||
if ($w = $_POST['world'] ?? null) { | ||
header("Location: ?worlds/$w"); | ||
} | ||
|
||
if ($world = $_GET['world'] ?? null) { | ||
$world = $db->query("SELECT * FROM `worlds` WHERE `name` = {$db->quote(urldecode($world))}")->fetch(PDO::FETCH_ASSOC) ?? null; | ||
} | ||
|
||
$twig->display('worlds.html.twig', [ | ||
'_worlds' => $db->query("SELECT * FROM `worlds`")->fetchAll(PDO::FETCH_ASSOC), | ||
'world' => $world, | ||
'overall_maximum' => number_format(0) . ' players (on ' . date('M d Y, H:i:s', time()) . ')', | ||
'status' => $world ? ($status[$world['id']] ?? $status) : null, //todo remove $status in other PR | ||
]); | ||
|
||
if ($world) { | ||
// search character | ||
$twig->display('character.search.form.html.twig'); | ||
} |
File renamed without changes.
Oops, something went wrong.