From 6a56ac2add9b96b97a66cdc63722f30234f4cb6b Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 19 Mar 2011 15:12:04 -0700 Subject: [PATCH] language file security --- boot.php | 2 +- util/.htaccess | 5 +++++ util/README | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 util/.htaccess diff --git a/boot.php b/boot.php index 66d4bc124..c10b1ea6f 100644 --- a/boot.php +++ b/boot.php @@ -2,7 +2,7 @@ set_time_limit(0); -define ( 'FRIENDIKA_VERSION', '2.1.922' ); +define ( 'FRIENDIKA_VERSION', '2.1.923' ); define ( 'DFRN_PROTOCOL_VERSION', '2.1' ); define ( 'DB_UPDATE_VERSION', 1043 ); diff --git a/util/.htaccess b/util/.htaccess new file mode 100644 index 000000000..b311c14c2 --- /dev/null +++ b/util/.htaccess @@ -0,0 +1,5 @@ +Options -Indexes + +# Remove the following line or modify it to run the string translator utility +Deny from all + diff --git a/util/README b/util/README index 8518aafd2..cb2fd9b55 100644 --- a/util/README +++ b/util/README @@ -115,6 +115,7 @@ translation to messages.po. Run: $ php util/php2po.php view//strings.php +You may also use the util/string_translator.php web interface to translate the string file, but it is disabled for website security reasons. The web server will need write permission to your language directories and the "Deny ..." line in util/.htaccess will need to be modified or commented to use the utility.