blob: 2b7295b640c605c0756f40f45123caa6b6e08011 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<?php
2require_once("core.php");
3security::checkType(security::ADMIN);
4
5if (!security::checkParams("POST", [
6 ["place", security::PARAM_ISINT],
7 ["url", security::PARAM_ISSET]
8])) {
9 security::go("help.php?msg=empty");
10}
11
12$status = help::set($_POST["place"], $_POST["url"]);
13switch ($status) {
14 case 0:
15 security::go("help.php?msg=success");
16 break;
17
18 case 1:
19 security::go("help.php?msg=invalidurl");
20 break;
21
22 default:
23 security::go("help.php?msg=unexpected");
24}