mirror of
https://github.com/holo-gfx/mangadex.git
synced 2024-11-24 22:58:20 -05:00
21 lines
547 B
PHP
21 lines
547 B
PHP
<?php
|
|
$id = $_GET['manga_id'] ?? 1;
|
|
$id = prepare_numeric($id);
|
|
|
|
$manga = new Manga($id);
|
|
|
|
$groups = new Groups();
|
|
$groups_obj = $groups->query_read("group_name ASC", 20000, 1);
|
|
|
|
if (!isset($manga->manga_id)) {
|
|
$page_html = parse_template('partials/alert', ['type' => 'danger', 'strong' => 'Warning', 'text' => 'Manga #'.$id.' does not exist.']);
|
|
} else {
|
|
$templateVars = [
|
|
'group_list' => $groups_obj,
|
|
'user' => $user,
|
|
'manga' => $manga,
|
|
];
|
|
|
|
$page_html = parse_template('chapter/upload', $templateVars);
|
|
}
|