-
Notifications
You must be signed in to change notification settings - Fork 0
/
mirror.php
37 lines (29 loc) · 1.37 KB
/
mirror.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/php -q
<?php
// mirror.php MySQLicious implementation
// Mirrors Delicious bookmarks.
// v1.01 - 8/6/2006
// MySQL configuration.
$MySQL_Host = "localhost"; // Address of your MySQL server.
$MySQL_Database = "db"; // Name of the MySQL database you want to use.
$MySQL_Table = "delicious"; // Name of the MySQL table you want to put the Delicious bookmarks in.
$MySQL_Username = "username"; // MySQL username.
$MySQL_Password = "password"; // MySQL password.
// Delicious configuration.
$delicious_Username = "username"; // Delicious username.
$delicious_Password = "password"; // Delicious 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);
?>