<?php /**/ ?>#!/usr/bin/php -q
<?php
// mirror.php MySQLicious implementation
// Mirrors del.icio.us bookmarks.
// v1.01 - 8/6/2006

// MySQL configuration
$MySQL_Host   = "mysql.examples.mashupguide.net";  // address of your MySQL server
$MySQL_Database = "mysqlicious";     // name of the MySQL database you want to use
$MySQL_Table  = "delicious";  // name of the MySQL table you want to put del.icio.us bookmarks in
$MySQL_Username = "rdhyee"; // MySQL username
$MySQL_Password = "WGbpZz9+"; // MySQL password

// del.icio.us configuration
$delicious_Username   = "rdhyee"; // del.icio.us username
$delicious_Password   = "xyz123"; // del.icio.us password
$delicious_TagFilter  = "";     // tag to mirror. if left blank, all bookmarks will be mirrored.


// ---------------------------------------------------------------
//  You shouldn't need to change anything below here
// ---------------------------------------------------------------


// import the MySQLicious code
$currentDir = dirname(__FILE__)."/";
require $currentDir."MySQLicious.php";

// initialize MySQLicious
$delicious = new MySQLicious($MySQL_Host, $MySQL_Database, $MySQL_Username, $MySQL_Password);

// un-comment the following line to turn on XML logging
// this should only be necessary as a debugging measure
$delicious->logXml = true;

// perform the mirroring
$delicious->mirror($delicious_Username, $delicious_Password, $MySQL_Table, $delicious_TagFilter);

?> 
