diff --git a/admin/admin.php b/admin/admin.php index 8704688..3648b17 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -1,18 +1,4 @@ - * - * 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'); diff --git a/admin/ads.php b/admin/ads.php index 359bbb9..c77093f 100644 --- a/admin/ads.php +++ b/admin/ads.php @@ -1,18 +1,4 @@ - * - * 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'); diff --git a/admin/configuration.php b/admin/configuration.php index 02eb69d..f6480d6 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -1,17 +1,4 @@ - * - * 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'); diff --git a/admin/dashboard.php b/admin/dashboard.php index b596cf9..d96a8c6 100644 --- a/admin/dashboard.php +++ b/admin/dashboard.php @@ -1,18 +1,4 @@ - * - * 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'); diff --git a/admin/index.php b/admin/index.php index 964dd89..a3ee63f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,17 +1,4 @@ - * - * 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(__DIR__ . '/../includes/common.php'); diff --git a/admin/interface.php b/admin/interface.php index 1c92433..dafac38 100644 --- a/admin/interface.php +++ b/admin/interface.php @@ -1,17 +1,4 @@ - * - * 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. - */ session_start(); if (!isset($_SESSION['login'])) { diff --git a/admin/ipbans.php b/admin/ipbans.php index e64660d..3f36b92 100644 --- a/admin/ipbans.php +++ b/admin/ipbans.php @@ -1,17 +1,4 @@ - * - * 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. - */ session_start(); if (!isset($_SESSION['login'])) { diff --git a/admin/pastes.php b/admin/pastes.php index dad4dcf..083738d 100644 --- a/admin/pastes.php +++ b/admin/pastes.php @@ -1,17 +1,4 @@ - * - * 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'); diff --git a/admin/reports.php b/admin/reports.php index 5c67828..873c5e4 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -1,22 +1,7 @@ - * - * 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. - */ session_start(); -if (isset($_SESSION['login'])) { -// Do nothing -} else { +if (!isset($_SESSION['login'])) { header("Location: ."); exit(); } diff --git a/admin/sitemap.php b/admin/sitemap.php index 6879dc7..2dfe871 100644 --- a/admin/sitemap.php +++ b/admin/sitemap.php @@ -1,22 +1,7 @@ - * - * 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. - */ session_start(); -if (isset($_SESSION['login'])) { -// Do nothing -} else { +if (!isset($_SESSION['login'])) { header("Location: ."); exit(); } diff --git a/admin/stats.php b/admin/stats.php index 95cbd45..07b9365 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -1,22 +1,7 @@ - * - * 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. - */ session_start(); -if (isset($_SESSION['login'])) { -// Do nothing -} else { +if (!isset($_SESSION['login'])) { header("Location: ."); exit(); } diff --git a/admin/tasksqqq.php b/admin/tasksqqq.php index 441f086..d80597e 100644 --- a/admin/tasksqqq.php +++ b/admin/tasksqqq.php @@ -1,17 +1,4 @@ - * - * 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. - */ session_start(); if (!isset($_SESSION['login'])) { diff --git a/admin/users.php b/admin/users.php index cf08727..e502add 100644 --- a/admin/users.php +++ b/admin/users.php @@ -1,20 +1,6 @@ - * - * 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(__DIR__ . '/common.php'); - ?> diff --git a/archive.php b/archive.php index 7205e2d..152a6d8 100644 --- a/archive.php +++ b/archive.php @@ -1,18 +1,4 @@ - * - * 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('includes/common.php'); diff --git a/composer.json b/composer.json index 595d01b..961e059 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,7 @@ "ext-pdo": "*", "ext-openssl": "*", "erusev/parsedown": "^1.7", - "ext-gd": "*" + "ext-gd": "*", + "ext-mbstring": "*" } } diff --git a/discover.php b/discover.php index c20cce8..7a3fd54 100644 --- a/discover.php +++ b/discover.php @@ -1,17 +1,4 @@ - * - * 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('includes/common.php'); require_once('includes/functions.php'); diff --git a/event.php b/event.php index c9d904f..34983f2 100644 --- a/event.php +++ b/event.php @@ -1,18 +1,4 @@ - * - * 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('includes/common.php'); require_once('includes/functions.php'); diff --git a/includes/functions.php b/includes/functions.php index 829bb80..6b9db26 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1,18 +1,4 @@ - * - * 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. - */ - function getPasteTags(DatabaseHandle $conn, int $paste_id) : array { return $conn->query( 'SELECT name, slug FROM tags diff --git a/index.php b/index.php index ded2b82..df69ec4 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,4 @@ - * - * 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. - */ - -$directory = 'install'; - -if (file_exists($directory)) { - header("Location: install"); - exit(); -} - -// Required functions define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/captcha.php'); diff --git a/login.php b/login.php index f096b56..dee7f80 100644 --- a/login.php +++ b/login.php @@ -1,19 +1,4 @@ - * - * 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. - */ - -// Required functions define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); diff --git a/logout.php b/logout.php index 3fa5dfe..3019e94 100644 --- a/logout.php +++ b/logout.php @@ -1,5 +1,4 @@ - * - * 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('includes/common.php'); require_once('includes/functions.php'); diff --git a/paste.php b/paste.php index b5b1f78..cbb64c9 100644 --- a/paste.php +++ b/paste.php @@ -1,22 +1,7 @@ - * - * 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. - */ - // UTF-8 header('Content-Type: text/html; charset=utf-8'); -// Required functions define('IN_PONEPASTE', 1); require_once('includes/common.php'); require_once('includes/functions.php'); diff --git a/profile.php b/profile.php index 67a042f..56a2383 100644 --- a/profile.php +++ b/profile.php @@ -1,18 +1,4 @@ - * - * 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('includes/common.php'); require_once('includes/functions.php'); diff --git a/theme/bulma/archive.php b/theme/bulma/archive.php index af45981..572fce5 100644 --- a/theme/bulma/archive.php +++ b/theme/bulma/archive.php @@ -1,19 +1,3 @@ - - Bulma theme - * Theme by wsehl (January, 2021) - * - * 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. - */ -?> diff --git a/theme/bulma/pages.php b/theme/bulma/pages.php index e55ce26..9635827 100644 --- a/theme/bulma/pages.php +++ b/theme/bulma/pages.php @@ -1,20 +1,3 @@ - - Bulma theme - * Theme by wsehl (January, 2021) - * - * 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. - */ -?> -
diff --git a/theme/bulma/profile.php b/theme/bulma/profile.php index 077285e..b99475c 100644 --- a/theme/bulma/profile.php +++ b/theme/bulma/profile.php @@ -1,20 +1,3 @@ - - Bulma theme - * Theme by wsehl (January, 2021) - * - * 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. - */ -?> -
diff --git a/theme/bulma/report.php b/theme/bulma/report.php index 6fa5109..387fd1e 100644 --- a/theme/bulma/report.php +++ b/theme/bulma/report.php @@ -1,19 +1,3 @@ - - Bulma theme - * Theme by wsehl (January, 2021) - * - * 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. - */ -?>
diff --git a/theme/bulma/user_profile.php b/theme/bulma/user_profile.php index bc1c4d6..dc2e2fe 100644 --- a/theme/bulma/user_profile.php +++ b/theme/bulma/user_profile.php @@ -1,20 +1,3 @@ - - Bulma theme - * Theme by wsehl (January, 2021) - * - * 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. - */ -$protocol = paste_protocol(); -?>