admin/main.php 1 location
|
@@ 165-169 (lines=5) @@
|
| 162 |
|
//Check Language |
| 163 |
|
$lang = $xoopsConfig['language']; |
| 164 |
|
// GET various variables from language folder |
| 165 |
|
if (file_exists(XOOPS_ROOT_PATH . '/modules/smallworld/language/js/' . $lang . '/variables.js')) { |
| 166 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/' . $lang . '/js/variables.js'); |
| 167 |
|
} else { |
| 168 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/english/js/variables.js'); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$adminscript = <<<SCRIPT |
| 172 |
|
var smallworld_url="XOOPS_URL/modules/smallworld/"; |
admin/useradmin.php 1 location
|
@@ 94-98 (lines=5) @@
|
| 91 |
|
//Check Language |
| 92 |
|
$lang = $xoopsConfig['language']; |
| 93 |
|
// GET various variables from language folder |
| 94 |
|
if (file_exists(XOOPS_ROOT_PATH . '/modules/smallworld/language/js/' . $lang . '/variables.js')) { |
| 95 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/' . $lang . '/js/variables.js'); |
| 96 |
|
} else { |
| 97 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/english/js/variables.js'); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
$adminscript = <<<SCRIPT |
| 101 |
|
var smallworld_url="XOOPS_URL/modules/smallworld/"; |
include/functions.php 1 location
|
@@ 1183-1187 (lines=5) @@
|
| 1180 |
|
$access = $pub['access']; |
| 1181 |
|
|
| 1182 |
|
// GET various variables from language folder |
| 1183 |
|
if (file_exists(XOOPS_ROOT_PATH . '/modules/smallworld/language/' . $xoopsConfig['language'] . '/js/variables.js')) { |
| 1184 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/' . $xoopsConfig['language'] . '/js/variables.js'); |
| 1185 |
|
} else { |
| 1186 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/english/js/variables.js'); |
| 1187 |
|
} |
| 1188 |
|
|
| 1189 |
|
// Check if USER is smallworld-registered user |
| 1190 |
|
$chkUser = new smallworld\SmallWorldUser; |
userprofile.php 1 location
|
@@ 183-187 (lines=5) @@
|
| 180 |
|
$lang = $xoopsConfig['language']; |
| 181 |
|
|
| 182 |
|
// GET various variables from language folder |
| 183 |
|
if (file_exists(XOOPS_ROOT_PATH . '/modules/smallworld/language/js/' . $lang . '/jquery.countdown.js')) { |
| 184 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/' . $lang . '/js/jquery.countdown.js'); |
| 185 |
|
} else { |
| 186 |
|
$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/language/english/js/jquery.countdown.js'); |
| 187 |
|
} |
| 188 |
|
} else { |
| 189 |
|
//redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); |
| 190 |
|
} |