| 1 |
This module imports Advogato diary entries to a Drupal 4.7 website |
This module imports Advogato diary entries to a Drupal website |
| 2 |
during cron runs with the cron.php file in the root directory. |
during cron runs with the cron.php file in the root directory. |
| 3 |
|
|
| 4 |
You must configure the administrative settings before users can queue |
You must configure the administrative settings before users can queue |
| 18 |
|
|
| 19 |
AUTHOR |
AUTHOR |
| 20 |
David Kent Norman |
David Kent Norman |
|
deekayen at: deekayen (dot) net |
|
| 21 |
http://deekayen.net/ |
http://deekayen.net/ |
| 22 |
|
|
| 23 |
ADDITIONAL NOTES |
ADDITIONAL NOTES |
| 28 |
To delete the entries from Advogato after you import them, I copied |
To delete the entries from Advogato after you import them, I copied |
| 29 |
Drupal's xmlrpc.php file, put the following to the top it, and ran it |
Drupal's xmlrpc.php file, put the following to the top it, and ran it |
| 30 |
at a command prompt with `php -q xmlrpc.php`. It is not implemented |
at a command prompt with `php -q xmlrpc.php`. It is not implemented |
| 31 |
in the automated part of this module for the obvious data |
in the automated part of this module because of the obvious data |
| 32 |
distruction if something goes wrong. |
destruction if something goes wrong. |
| 33 |
|
|
| 34 |
|
=========================================================== |
| 35 |
|
|
| 36 |
<?php |
<?php |
| 37 |
set_time_limit(0); |
set_time_limit(0); |
| 38 |
$username = 'deekayen'; |
$username = 'your_username'; |
| 39 |
$password = 'my_password'; |
$password = 'my_password'; |
| 40 |
$len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username); |
$len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username); |
| 41 |
$cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password); |
$cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password); |