fixed path problem (missing "/")
[phpfspot.git] / phpfspot_cfg.php.dist
index 4eb5894fe4de1d04809f813972379204b0279ee8..375eab99ae5fd6ebeb7ac6bf1c1d9641c305f5ff 100644 (file)
@@ -49,7 +49,10 @@ class PHPFSPOT_CFG {
    */
    var $smarty_path = "/usr/share/php/smarty";
 
    */
    var $smarty_path = "/usr/share/php/smarty";
 
-   /* it's enough if this database is readonly for the webserver */
+   /* path to the F-Spot sqlite database. This one must be writeable by
+      the webserver too, to create a necessary index to speed up some
+      operations.
+   */
    var $fspot_db = "/var/www/f-spot-dbs/photos.db";
 
    /* this database MUST be writeable for the webserver. Set the directory
    var $fspot_db = "/var/www/f-spot-dbs/photos.db";
 
    /* this database MUST be writeable for the webserver. Set the directory
@@ -79,7 +82,12 @@ class PHPFSPOT_CFG {
    /* Usually the photo directory differs between your local F-Spot installation
       and your webserver. With this you can advice phpfspot to replace all paths
       (they are stored in F-Spot's sqlite3 database).
    /* Usually the photo directory differs between your local F-Spot installation
       and your webserver. With this you can advice phpfspot to replace all paths
       (they are stored in F-Spot's sqlite3 database).
+
+      disable this feature by setting the next variable to false;
    */
    */
+   var $enable_replace_path = true;
+
+   // substitute all "from" matches with "to"
    var $path_replace_from = "/home/unki";
    var $path_replace_to = "/var/www/phpfspot/Photos";
 
    var $path_replace_from = "/home/unki";
    var $path_replace_to = "/var/www/phpfspot/Photos";
 
@@ -116,6 +124,25 @@ class PHPFSPOT_CFG {
    /* path to dcraw to decode Nikon's NEF format */
    // var $dcraw_bin = "/usr/bin/dcraw";
 
    /* path to dcraw to decode Nikon's NEF format */
    // var $dcraw_bin = "/usr/bin/dcraw";
 
+   /* user friendly URLs */
+   var $user_friendly_url = false;
+
+   /* default sort order - possible values are:
+
+        date_asc  => sort by date ascending (17.1, 18.1, 19.1, ...)
+        date_desc => sort by date descending (19.1, 18.1, 17.1, ...)
+        name_asc  => sort by name ascending (alphabetical)
+        name_desc => sort by name descending (alphabetical)
+        tags_asc  => sort by tag ascending (alphabetical)
+        tags_desc => sort by tag descending (alphabetical)
+        rate_asc  => sort by rate value ascending (1, 2, 3, 4, 5)
+        rate_desc => sort by rate value descending (5, 4, 3, 2, 1)
+
+      Attention: Rate value is available beginning with F-Spot version 0.4.1
+
+   */
+   var $sort_order = "tags_asc";
+
    public function __construct()
    {
 
    public function __construct()
    {