port code to cPanel

modified code (func_connect_db, php_session_start) to work with cPanel