Scripts are in separate folders which in turn are in a folder Zebroid\resources\export-upload profiles\. The script name undertakes by name of folders. Scripts consist of following files:
- icon.png — icon CMS in the size 16х16
- settings.ini — a file with the basic options of a script (the file format is described more low)
- script.pas — a file with a script of sending of files in админку a site (the file format is described more low)
- macroses.txt — the list of macros for scripts script.pas. As a matter of fact it is the list of additional fields (the file format is described more low)
Format of file settings.ini (On an example adjusted for WordPress):
[FTP] send_images_to=/ send_file_to= [CMS] cms_id=2
File fields of settings.ini:
- send_images_to — the Folder in which to send contents of a folder with pictures
- send_file_to — Where to send the file generated by the program (in case program generates a set of files and folders — then they go all to the specified directory)
- cms_id — Identifier CMS on which the program knows in what format to generate project files
List of identifiers for CMS:
- Zebrum Lite
- WordPress
- DLE
- MaxSite
- Joomla 1.x — 2.x
- NetCat
- Rumba
- Blogger
- MODx
- Drupal
- Kandidat CMS
- Umi shop
- LiveStreet
- Instant CMS
- phpBB 3
- Joomla 3.x
- SMF
- TYPO3
- HostCMS
File format script.pas
program Uploader; procedure Login(); begin // Login script in admin panel end; procedure SendFile(path:string); begin // Script of uploading of a file which is on the way path in admin panel of site end;
Scripts are written with use of all possibilities of scripts of autoposting Zebroid. Both specified above procedure should necessarily be in a script file. Standard macros: $LOGIN — it is replaced with login, $PASS — it is replaced with the password specified by the user. As there is a possibility to expand quantity of macros having described them in macroses.txt . All macroses should not be in unary inverted commas.
File format macroses.txt :
MACROS_NAME=DESCRIPTION|DEFAULST_VALUE
Macro Name can be any. It as a matter of fact that the program searches before script start to replace with value. Description is what to see the user in the list add. fields which it is necessary for it to fill at account creation. value by default is a value which is established before the user will enter it.
Example:
URL=Blog adress|httр://