= 3) { $_SERVER["HTTP_HOST"] = $argv[1]; $_SERVER["SERVER_NAME"] = $argv[1]; $_SERVER["SERVER_PORT"] = $argv[2]; } else { $_SERVER["HTTP_HOST"] = "localhost"; $_SERVER["SERVER_NAME"] = "localhost"; $_SERVER["SERVER_PORT"] = 80; } putenv("SERVER_NAME=" . $_SERVER["SERVER_NAME"]); // Change root dir $root_dir = squareup_chdir($current_dir); squareup_define_route(); if (file_exists($root_dir . '/index.php')) { return $root_dir . '/index.php'; } }