jdel /
sspks
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | if (!file_exists(__DIR__ . '/vendor/autoload.php')) { |
||
| 4 | print('Autoloader not found! Did you follow the instructions from the INSTALL.md?<br />'); |
||
| 5 | print('(If you want to keep the old version, switch to the <tt>legacy</tt> branch by running: <tt>git checkout legacy</tt>'); |
||
| 6 | exit(); |
||
| 7 | } |
||
| 8 | |||
| 9 | require_once __DIR__ . '/vendor/autoload.php'; |
||
| 10 | |||
| 11 | use \SSpkS\Config; |
||
| 12 | use \SSpkS\Handler; |
||
| 13 | |||
| 14 | $config = new Config(__DIR__, 'conf/sspks.yaml'); |
||
| 15 | $config->baseUrlRelative = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/')) . '/'; |
||
|
0 ignored issues
–
show
|
|||
| 16 | $config->baseUrl = 'http' . ($_SERVER['HTTPS']?'s':'') . '://' . $_SERVER['HTTP_HOST'] . $config->baseUrlRelative; |
||
|
0 ignored issues
–
show
The property
baseUrlRelative does not seem to exist. Did you mean baseUrl?
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name. If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading. Loading history...
|
|||
| 17 | |||
| 18 | $handler = new Handler($config); |
||
| 19 | $handler->handle(); |
||
| 20 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.