diff --git a/README.md b/README.md index 22d1e78..932d9d9 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,17 @@ This project uses: 2. Change others values you want from `config.php` 3. Connect to the admin page: `admin.php` 4. Add your bot (the `name` of your bot must be UNIQUE!) - 5. Finish :) + 5. Indicate the location of the XML-generated file (it can be an URL, or a file path - eg `/home/user/bot.xml` or `../bot.xml`) + 6. Finish :) +## Problems? + +Try to see if: + + 1. There is no error in the PHP folder (per default `/var/log/php_errors.log`) + 2. When you save your bot, the file `json/data.json` is modified with the values you've set + +Thanks in advance! ## Thanks diff --git a/TODO.md b/TODO.md index a0d9e5d..1493a86 100644 --- a/TODO.md +++ b/TODO.md @@ -2,8 +2,7 @@ ## For v0.3 - - [ ] Download the XML file (from URL)? into cache (use the `lastupdate` tag; an epoch time) - - [ ] Upload the XML file into cache (serialize it? download it?) + - [ ] Save the XML content into cache (use the `lastupdate` tag; an epoch time) - [ ] Possibility of reordering bots/bookmarks in the ADMIN page - [ ] Cache can be refreshed (automatic check?) diff --git a/admin_action.php b/admin_action.php index 5c165ba..585a118 100644 --- a/admin_action.php +++ b/admin_action.php @@ -53,7 +53,7 @@
{$lang[$language]['Fail_load_XML']} | {$lang[$language]['File']} | "; $dom .= ""; foreach($bots as $bot) { - $xml = haveXMLfile(searchBotXMLFile(getBotList(), $bot->getName())); + $xml = haveXMLContent(searchBotXMLContent(getBotList(), $bot->getName())); if (!$xml || !$xml->packlist->pack) ; else
---|