From ce4a76082e8e962bde6017eb1dccb2fb2da2ef9f Mon Sep 17 00:00:00 2001 From: acydburn Date: Fri, 6 Apr 2007 17:49:47 +0000 Subject: [PATCH] add proper die() statements although /develop is never ever shipped with phpBB... git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@7288 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/develop/fill.php | 9 +++++++++ phpBB/develop/generate_utf_casefold.php | 9 +++++++++ phpBB/develop/generate_utf_tables.php | 9 +++++++++ phpBB/develop/lang_duplicates.php | 9 +++++++++ phpBB/develop/regex.php | 9 +++++++++ phpBB/develop/search_fill.php | 9 +++++++++ phpBB/develop/utf_normalizer_test.php | 9 +++++++++ 7 files changed, 63 insertions(+) diff --git a/phpBB/develop/fill.php b/phpBB/develop/fill.php index 2aee3d333..336e510d0 100644 --- a/phpBB/develop/fill.php +++ b/phpBB/develop/fill.php @@ -10,6 +10,15 @@ // LICENCE : GPL vs2.0 [ see /docs/COPYING ] // // ------------------------------------------------------------- +// +// Security message: +// +// This script is potentially dangerous. +// Remove or comment the next line (die(".... ) to enable this script. +// Do NOT FORGET to either remove this script or disable it after you have used it. +// +die("Please read the first lines of this script for instructions on how to enable it"); + define('IN_PHPBB', true); $phpbb_root_path = './../'; diff --git a/phpBB/develop/generate_utf_casefold.php b/phpBB/develop/generate_utf_casefold.php index d9aace10c..cb8ce489b 100644 --- a/phpBB/develop/generate_utf_casefold.php +++ b/phpBB/develop/generate_utf_casefold.php @@ -13,6 +13,15 @@ if (php_sapi_name() != 'cli') die("This program must be run from the command line.\n"); } +// +// Security message: +// +// This script is potentially dangerous. +// Remove or comment the next line (die(".... ) to enable this script. +// Do NOT FORGET to either remove this script or disable it after you have used it. +// +die("Please read the first lines of this script for instructions on how to enable it"); + set_time_limit(0); define('IN_PHPBB', true); diff --git a/phpBB/develop/generate_utf_tables.php b/phpBB/develop/generate_utf_tables.php index ffad9106d..ce19c2a37 100644 --- a/phpBB/develop/generate_utf_tables.php +++ b/phpBB/develop/generate_utf_tables.php @@ -13,6 +13,15 @@ if (php_sapi_name() != 'cli') die("This program must be run from the command line.\n"); } +// +// Security message: +// +// This script is potentially dangerous. +// Remove or comment the next line (die(".... ) to enable this script. +// Do NOT FORGET to either remove this script or disable it after you have used it. +// +die("Please read the first lines of this script for instructions on how to enable it"); + set_time_limit(0); define('IN_PHPBB', true); diff --git a/phpBB/develop/lang_duplicates.php b/phpBB/develop/lang_duplicates.php index 5a77c7954..5be48f69f 100644 --- a/phpBB/develop/lang_duplicates.php +++ b/phpBB/develop/lang_duplicates.php @@ -4,6 +4,15 @@