Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 788cb99c86eb4b177624c9090c68cab11f1aa03e 1 parent ab406eb
acidvertigo acidvertigo authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 catalog/admin/includes/classes/action_recorder.php
10 catalog/admin/includes/classes/action_recorder.php
@@ -14,16 +14,16 @@
14 14
15 15 class actionRecorderAdmin extends actionRecorder {
16 16 function actionRecorderAdmin($module, $user_id = null, $user_name = null) {
17   - global $language, $PHP_SELF;
  17 + global $language;
18 18
19 19 $module = tep_sanitize_string(str_replace(' ', '', $module));
20 20
21 21 if (defined('MODULE_ACTION_RECORDER_INSTALLED') && tep_not_null(MODULE_ACTION_RECORDER_INSTALLED)) {
22   - if (tep_not_null($module) && in_array($module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
  22 + if (tep_not_null($module) && in_array($module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
23 23 if (!class_exists($module)) {
24   - if (file_exists(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)))) {
25   - include(DIR_FS_CATALOG . 'includes/languages/' . $language . '/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
26   - include(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
  24 + if (file_exists(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)))) {
  25 + include(DIR_FS_CATALOG . 'includes/languages/' . $language . '/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
  26 + include(DIR_FS_CATALOG . 'includes/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
27 27 } else {
28 28 return false;
29 29 }

0 comments on commit 788cb99

Please sign in to comment.
Something went wrong with that request. Please try again.