root/dev/common/admin/admin_kill_delete.php

Revision 361, 0.8 KB (checked in by beans, 14 years ago)

* Updated the admin panel. Should now be more "easy" to use.

Line 
1<?php
2require_once('common/includes/class.kill.php');
3
4$page = new Page('Administration - Deletion of Kill ID "'.$_GET['kll_id'].'"');
5$page->setAdmin();
6$dbconn = new DBConnection();
7$kll_id = $_GET['kll_id'];
8
9if ($_GET['confirm'])
10{
11    $kill = new Kill($kll_id);
12    $kill->remove();
13    $html .= "Kill ID \"".$_GET['kll_id']."\" deleted!";
14    $html .= "<br><br><a href=\"javascript:window.close();\">[close]</a>";
15}
16else
17{
18    $html .= "Confirm deletion of Kill ID \"".$_GET['kll_id']."\": ";
19    $html .= "<button onClick=\"window.location.href='?a=admin_kill_delete&confirm=yes&kll_id=".$_GET['kll_id']."'\">Yes</button> ";
20    $html .= "<button onClick=\"window.close();\">No</button>";
21}
22$page->setContent($html);
23$page->generate();
24?>
Note: See TracBrowser for help on using the browser.