Skip to content

Commit

Permalink
Change $PHP_SELF to $_SERVER['PHP_SELF'] #oscommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
acidvertigo committed Jan 16, 2012
1 parent ab406eb commit 788cb99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions catalog/admin/includes/classes/action_recorder.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 788cb99

Please sign in to comment.