-
Notifications
You must be signed in to change notification settings - Fork 0
/
deleteStuff.php
36 lines (26 loc) · 924 Bytes
/
deleteStuff.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php include("login.php"); ?>
<?php
echo $_POST['id'];
date_default_timezone_set(@date_default_timezone_get());
$guisettingsFile = "config/config.php";
if (file_exists($guisettingsFile)) {
require_once(dirname(__FILE__) . '/config/config.php');
}else{
header("Location: settings.php");
}
if ($plexWatch['https'] == 'yes') {
$plexWatchPmsUrl = "https://".$plexWatch['pmsIp'].":".$plexWatch['pmsHttpsPort']."";
}else if ($plexWatch['https'] == 'no') {
$plexWatchPmsUrl = "http://".$plexWatch['pmsIp'].":".$plexWatch['pmsHttpPort']."";
}
if (!empty($plexWatch['myPlexAuthToken'])) {
$myPlexAuthToken = $plexWatch['myPlexAuthToken'];
}else{
$myPlexAuthToken = '';
}
$db = dbconnect();
$id = (int) $_POST['id'];
if( $id > 0 ) {
$db->query("DELETE FROM processed WHERE id=".$_POST['id']);
}
?>