darktable styles platform
=========================
The darktable styles platform is developed by Robert Rosman 2013, without
any warranty whatsoever.
To make it work on your site
============================
- Extract the archive and put the folder where you'd like it.
- Edit lib/db-connection.php to match the credentials for your database.
- Run the SQL commands found in database-scheme.sql on your database to
create proper tables.
- In lib/functions.php, edit authenticate_user() to delete premature "return true"
- Edit lib/wordpress-header.php and lib/wordpress-footer.php to include the
correct template. This would obviously be the place to generate correct title
for the pages, and if you want, move the <script> and <link> tags from
index.php and show-style.php to the head section.
- Make sure www-data or whatever user you're using, have read and write
permissions to the $img_dir (img/ by default).
- If you wish, you may place the lib_dir and img_dir to some other place, but
make sure you modify ./*.php to set the search paths correctly.
- Delete the folder "darktable-filer", since it's hopefully useless once you've
set up the template properly.
To upload styles to the website
===============================
- Open upload_code/upload.c and find this comment:
/* All the values to be used */
- Edit all the values you want and save changes.
- Open upload_code/example.dtstyle
- Edit the name and description and save changes.
- In a terminal, go to the upload_code folder and run:
# gcc upload.c -o upload -lcurl;./upload