Select('`sitesOLD`', array('`s_url`', '`s_name`', '`s_description`', '`s_email`', '`s_country`'))) {
$Sites = $BWHD1->Results;
foreach ($Sites as $Key=>$Site) {
if (!$BWHD1->GetFromList('`Sites`', '`ID`', "UPPER(`URL`) = '" . strtoupper("http://{$Site['s_url']}") . "'")) {
foreach ($Site as &$Value) {
$Value = htmlspecialchars($Value, ENT_QUOTES);
}
$UserName = substr($Site['s_url'], 4, 9) . $Key;
$Password = md5('123456');
$CustomerID = $BWHD1->Insert('`BWH_Customers`', array('`UserName`', '`Password`', '`Email`'), array("'$UserName'", "'$Password'", "'{$Site['s_email']}'"));
$BWHD1->Insert('`Sites`', array('`CustomerID`', '`Title`', '`URL`', '`ShortDesc`', '`Desc`', '`DateAdded`', '`Country`'), array("'$CustomerID'", "'{$Site['s_name']}'", "'http://{$Site['s_url']}'", "'{$Site['s_description']}'", "'{$Site['s_description']}'", "NOW()", "'{$Site['s_country']}'"));
}
}
}*/
//SAF_Rank_CheckAllForScore(1, true);
//SAF_Rank_ScoreSite(6);
echo SAF_DisplayRankPage();
?>