Localization support and anti-hacking
-
Hi, I’ve added the following lines to your plugin to support localisation and prevent hacking. I would appreciate it if you could please update your code with them:
// Prevent direct call to script
if(preg_match(‘#’ . basename(__FILE__) . ‘#’, $_SERVER[‘PHP_SELF’])) { die(‘You are not allowed to call this page directly.’); }//i18n – change first parameter to your plugin folder name
load_plugin_textdomain(‘usp’, false, basename( dirname( __FILE__ ) ) . ‘/languages’ );Kind regards,
Tailor
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Localization support and anti-hacking’ is closed to new replies.