Updated tps.php and added getVar function calls
Updated backup.php to use getVar