| @@ 68-70 (lines=3) @@ | ||
| 65 | $_SESSION['database'] = getSettingValue($val); |
|
| 66 | } elseif (substr_count($val, '$pre = ') > 0) { |
|
| 67 | $_SESSION['pre'] = getSettingValue($val); |
|
| 68 | } elseif (substr_count($val, "define('SECUREPATH',") > 0) { |
|
| 69 | $_SESSION['sk_file'] = substr($val, 23, strpos($val, ');')-24)."/sk.php"; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | } |
|
| 73 | if (isset($_SESSION['sk_file']) && !empty($_SESSION['sk_file']) |
|
| @@ 403-405 (lines=3) @@ | ||
| 400 | while (list($key, $val) = each($settingsFile)) { |
|
| 401 | if (substr_count($val, 'charset') > 0) { |
|
| 402 | $superGlobal->put("charset", getSettingValue($val), "SESSION"); |
|
| 403 | } elseif (substr_count($val, '@define(') > 0 && substr_count($val, 'SALT') > 0) { |
|
| 404 | $superGlobal->put("encrypt_key", substr($val, 17, strpos($val, "')") - 17), "SESSION"); |
|
| 405 | } elseif (substr_count($val, '$smtp_server') > 0) { |
|
| 406 | $superGlobal->put("smtp_server", getSettingValue($val), "SESSION"); |
|
| 407 | } elseif (substr_count($val, '$smtp_auth') > 0) { |
|
| 408 | $superGlobal->put("smtp_auth", getSettingValue($val), "SESSION"); |
|
| @@ 433-435 (lines=3) @@ | ||
| 430 | $database = getSettingValue($val); |
|
| 431 | } elseif (substr_count($val, '$pre') > 0) { |
|
| 432 | $pre = getSettingValue($val); |
|
| 433 | } elseif (substr_count($val, "define('SECUREPATH',") > 0) { |
|
| 434 | $superGlobal->put("sk_file", substr($val, 23, strpos($val, ');')-24)."/sk.php", "SESSION"); |
|
| 435 | } |
|
| 436 | } |
|
| 437 | } |
|
| 438 | $session_sk_file = $superGlobal->get("sk_file", "SESSION"); |
|