23 lines
380 B
PHP
Executable file
23 lines
380 B
PHP
Executable file
<?php
|
|
|
|
include "common.php";
|
|
|
|
if(isset($_GET["aid"])){
|
|
$aid = intval($_GET["aid"]);
|
|
$info = $aniDB->getAnime($aid);
|
|
if($info === null){
|
|
header("Location: add.php");
|
|
die();
|
|
}
|
|
if($database->isTracking($aid)){
|
|
$database->clearTrackedEpisodes($aid);
|
|
$database->stopTrack($aid);
|
|
}
|
|
|
|
header("Location: index.php");
|
|
die();
|
|
}
|
|
|
|
header("Location: show.php?aid=$aid");
|
|
die();
|