Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change $PHP_SELF to $_SERVER['PHP_SELF'] #oscommerce

  • Loading branch information...
commit 788cb99c86eb4b177624c9090c68cab11f1aa03e 1 parent ab406eb
@acidvertigo acidvertigo authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 catalog/admin/includes/classes/action_recorder.php
View
10 catalog/admin/includes/classes/action_recorder.php
@@ -14,16 +14,16 @@
class actionRecorderAdmin extends actionRecorder {
function actionRecorderAdmin($module, $user_id = null, $user_name = null) {
- global $language, $PHP_SELF;
+ global $language;
$module = tep_sanitize_string(str_replace(' ', '', $module));
if (defined('MODULE_ACTION_RECORDER_INSTALLED') && tep_not_null(MODULE_ACTION_RECORDER_INSTALLED)) {
- if (tep_not_null($module) && in_array($module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
+ if (tep_not_null($module) && in_array($module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
if (!class_exists($module)) {
- if (file_exists(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)))) {
- include(DIR_FS_CATALOG . 'includes/languages/' . $language . '/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
- include(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
+ if (file_exists(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)))) {
+ include(DIR_FS_CATALOG . 'includes/languages/' . $language . '/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
+ include(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
} else {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.