Can't the db login stuff be eliminated by using the config include?
require 'include/config.php';
and instead of this echo "<url><loc>http://www.site.com/video/".$info[0]."/".$SefUrl."/</loc></url>";
put echo "<url><loc>{$base_url}/video/".$info[0]."/".$SefUrl."/</loc></url>";
or will that bork the whole thing....Imma go try it.
Bookmarks