altered script.php

- changed min php version
- removed some obsolete functions