converted shell scripts into php files and created login form in index.php