mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Update AdminPresenter.php
This commit is contained in:
parent
97b13c935b
commit
ba7a0d711a
1 changed files with 15 additions and 2 deletions
|
@ -82,7 +82,20 @@ final class AdminPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
$this->template->club = $club;
|
$this->template->club = $club;
|
||||||
|
|
||||||
if($_SERVER["REQUEST_METHOD"] === "POST") {
|
if($_SERVER["REQUEST_METHOD"] !== "POST")
|
||||||
|
return;
|
||||||
|
|
||||||
|
switch($_POST["act"] ?? "info") {
|
||||||
|
default:
|
||||||
|
case "info":
|
||||||
|
$club->setOwner($this->postParam("id_owner"));
|
||||||
|
$club->setName($this->postParam("name"));
|
||||||
|
$club->setAbout($this->postParam("about"));
|
||||||
|
$club->setShortCode($this->postParam("shortcode"));
|
||||||
|
$club->setVerified(empty($this->postParam("verify") ? 0 : 1));
|
||||||
|
$club->setBlock_reason($this->postParam("ban_reason"));
|
||||||
|
$club->save();
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue