<?php

// Determine the location of phpAdsNew on the server
if (strlen(__FILE__) > strlen(basename(__FILE__)))
    define ('phpAds_path', ereg_replace("[/\\\\]misc[/\\\\].+$", '', __FILE__));
else
    define ('phpAds_path', '../..');


include (phpAds_path."/libraries/lib-dbconfig.inc.php");
include (phpAds_path."/libraries/lib-revisions.inc.php");

// Starting scan
echo "Starting scan at ".phpAds_path."<br>\n";

if (phpAds_revisionCreate())
{
	echo "Revision file succesfully created!<br>\n";
}
else
{
	echo "<strong>Error:</strong> Failed to create a new revision file<br>\n";
}


?>