* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ define('IN_PONEPASTE', 1); require_once('common.php'); updateAdminHistory($conn); $row = $conn->query('SELECT text_ads, ads_1, ads_2 FROM ads LIMIT 1')->fetch(); if ($row) { $text_ads = trim($row['text_ads']); $ads_1 = trim($row['ads_1']); $ads_2 = trim($row['ads_2']); } else { $text_ads = ''; $ads_1 = ''; $ads_2 = ''; } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $text_ads = trim($_POST['text_ads']); $ads_1 = trim($_POST['ads_1']); $ads_2 = trim($_POST['ads_2']); $conn->prepare('UPDATE ads SET text_ads = ?, ads_1 = ?, ads_2 = ? WHERE id = 1')->execute([$text_ads, $ads_1, $ads_2]); $msg = '
Ads saved
'; } ?> Paste - Ads
Manage Ads