inc/legacy.php
Because Sofawiki also has to work with old PHP4 installations, some functions had to be moved here.
Functions
swSetTimeZone($zone)
Set default time zone in PHP 5.1 or newer and does nothing in older versions.
The default timezone ("Europe/Zurich") is also set at the end of the file.
swException($message)
The first versions of Sofawiki supported Exceptions. Now it is only a stub.
stripos2($haystack,$needle,$offset=0)
Creates a real lowercase method for strpos.