diff --git a/archive.php b/archive.php index 152a6d8..5c46ca9 100644 --- a/archive.php +++ b/archive.php @@ -2,9 +2,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - $date = date('jS F Y'); // Temp count for untagged pastes diff --git a/discover.php b/discover.php index 7a3fd54..6c1bff5 100644 --- a/discover.php +++ b/discover.php @@ -3,9 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - function getMonthPopularPastes(DatabaseHandle $conn, int $count) : array { $query = $conn->prepare( "SELECT pastes.id AS id, title, created_at, updated_at, users.username AS member diff --git a/event.php b/event.php index 34983f2..ace6522 100644 --- a/event.php +++ b/event.php @@ -3,10 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - - $p_title = $lang['archive']; // "Pastes Archive"; // Theme diff --git a/fav.php b/fav.php index cb44abd..be8b7f6 100644 --- a/fav.php +++ b/fav.php @@ -3,9 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - if ($current_user && !empty($_POST['fid'])) { $paste_id = intval($_POST['fid']); $query = $conn->prepare('SELECT 1 FROM pins WHERE paste_id = ? AND user_id = ?'); diff --git a/index.php b/index.php index b4e943e..4827efe 100644 --- a/index.php +++ b/index.php @@ -60,13 +60,6 @@ function validatePasteFields() : string|null { return null; } -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - -// Current date & user IP -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; - // Sitemap $site_sitemap_rows = $conn->query('SELECT * FROM sitemap_options LIMIT 1'); if ($row = $site_sitemap_rows->fetch()) { diff --git a/pages.php b/pages.php index f96d340..1bd1422 100644 --- a/pages.php +++ b/pages.php @@ -3,12 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; - updatePageViews($conn); if (isset($_GET['page'])) { diff --git a/paste.php b/paste.php index 98347d0..2c61437 100644 --- a/paste.php +++ b/paste.php @@ -1,7 +1,4 @@ username : 'Guest'; diff --git a/rules.php b/rules.php index f8b18fa..39bf37b 100644 --- a/rules.php +++ b/rules.php @@ -3,9 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - $p_title = $lang['archive']; // "Pastes Archive"; // Theme diff --git a/user.php b/user.php index a408fb3..b9e508e 100644 --- a/user.php +++ b/user.php @@ -3,12 +3,6 @@ define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); -// UTF-8 -header('Content-Type: text/html; charset=utf-8'); - -$date = date('jS F Y'); -$ip = $_SERVER['REMOTE_ADDR']; - if (empty($_GET['user'])) { // No username provided header("Location: ../error.php");