My SPGM Picture Gallery

Fatal error: Uncaught Error: Call to undefined function ereg() in /home/phil/public_www/spgm/spgm.php:450 Stack trace: #0 /home/phil/public_www/spgm/spgm.php(778): spgm_IsGallery('booth2') #1 /home/phil/public_www/spgm/spgm.php(1879): spgm_LoadConfig('booth2') #2 /home/phil/public_www/spgm/index.php(32): require('/home/phil/publ...') #3 {main} thrown in /home/phil/public_www/spgm/spgm.php on line 450