Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
prepare("INSERT INTO platforms (platform_name) VALUES (?)");
$stmt->execute([$_POST['platform_name']]);
} elseif (isset($_POST['delete_platform'])) {
$stmt = $pdo->prepare("DELETE FROM platforms WHERE id = ?");
$stmt->execute([$_POST['id']]);
} elseif (isset($_POST['edit_platform'])) {
$stmt = $pdo->prepare("UPDATE platforms SET platform_name = ? WHERE id = ?");
$stmt->execute([$_POST['platform_name'], $_POST['id']]);
}
// Ad Placements
elseif (isset($_POST['add_placement'])) {
$stmt = $pdo->prepare("INSERT INTO ad_placements (placement_name) VALUES (?)");
$stmt->execute([$_POST['placement_name']]);
} elseif (isset($_POST['delete_placement'])) {
$stmt = $pdo->prepare("DELETE FROM ad_placements WHERE id = ?");
$stmt->execute([$_POST['id']]);
} elseif (isset($_POST['edit_placement'])) {
$stmt = $pdo->prepare("UPDATE ad_placements SET placement_name = ? WHERE id = ?");
$stmt->execute([$_POST['placement_name'], $_POST['id']]);
}
// Media Formats
elseif (isset($_POST['add_format'])) {
$stmt = $pdo->prepare("INSERT INTO media_formats (format_name) VALUES (?)");
$stmt->execute([$_POST['format_name']]);
} elseif (isset($_POST['delete_format'])) {
$stmt = $pdo->prepare("DELETE FROM media_formats WHERE id = ?");
$stmt->execute([$_POST['id']]);
} elseif (isset($_POST['edit_format'])) {
$stmt = $pdo->prepare("UPDATE media_formats SET format_name = ? WHERE id = ?");
$stmt->execute([$_POST['format_name'], $_POST['id']]);
}
}
$platforms = $pdo->query("SELECT * FROM platforms ORDER BY platform_name")->fetchAll();
$placements = $pdo->query("SELECT * FROM ad_placements ORDER BY placement_name")->fetchAll();
$formats = $pdo->query("SELECT * FROM media_formats ORDER BY format_name")->fetchAll();
?>