diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/dokuwiki.php | 4 | ||||
-rw-r--r-- | conf/license.php | 10 | ||||
-rw-r--r-- | conf/local.php.dist | 12 | ||||
-rw-r--r-- | conf/mime.conf | 20 | ||||
-rw-r--r-- | conf/mysql.conf.php.example | 82 |
5 files changed, 67 insertions, 61 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php index e6a19e60b..19397861c 100644 --- a/conf/dokuwiki.php +++ b/conf/dokuwiki.php @@ -103,8 +103,8 @@ $conf['gdlib'] = 2; //the GDlib version (0, 1 or 2) 2 tries $conf['im_convert'] = ''; //path to ImageMagicks convert (will be used instead of GD) $conf['jpg_quality'] = '70'; //quality of compression when scaling jpg images (0-100) $conf['subscribers'] = 0; //enable change notice subscription support -$conf['subscribe_time'] = 24 * 60 * 60; //Time after which digests / lists are sent (in sec, default 1 day) - //Should be larger than the time specified in recent_days +$conf['subscribe_time'] = 24*60*60; //Time after which digests / lists are sent (in sec, default 1 day) + //Should be smaller than the time specified in recent_days $conf['compress'] = 1; //Strip whitespaces and comments from Styles and JavaScript? 1|0 $conf['hidepages'] = ''; //Regexp for pages to be skipped from RSS, Search and Recent Changes $conf['send404'] = 0; //Send a HTTP 404 status for non existing pages? diff --git a/conf/license.php b/conf/license.php index 9a753baa7..b97cb3cfd 100644 --- a/conf/license.php +++ b/conf/license.php @@ -23,18 +23,22 @@ $license['cc-by-nc-sa'] = array( ); $license['cc-by-nd'] = array( 'name' => 'CC Attribution-No Derivative Works 3.0 Unported', - 'url' => 'cc-by-nd', + 'url' => 'http://creativecommons.org/licenses/by-nd/3.0/', ); $license['cc-by-sa'] = array( 'name' => 'CC Attribution-Share Alike 3.0 Unported', 'url' => 'http://creativecommons.org/licenses/by-sa/3.0/', ); +$license['cc-zero'] = array( + 'name' => 'CC0 1.0 Universal', + 'url' => 'http://creativecommons.org/publicdomain/zero/1.0/', +); $license['publicdomain'] = array( 'name' => 'Public Domain', 'url' => 'http://creativecommons.org/licenses/publicdomain/', ); $license['gnufdl'] = array( - 'name' => 'GNU Free Documentation License 1.2', - 'url' => 'http://www.gnu.org/licenses/fdl-1.2.html', + 'name' => 'GNU Free Documentation License 1.3', + 'url' => 'http://www.gnu.org/licenses/fdl-1.3.html', ); diff --git a/conf/local.php.dist b/conf/local.php.dist index 4af6ea594..0397954f4 100644 --- a/conf/local.php.dist +++ b/conf/local.php.dist @@ -1,6 +1,6 @@ <?php /** - * This is an example of how a local.php coul look like. + * This is an example of how a local.php could look like. * Simply copy the options you want to change from dokuwiki.php * to this file and change them. * @@ -14,13 +14,3 @@ //$conf['useacl'] = 1; //Use Access Control Lists to restrict access? //$conf['superuser'] = 'joe'; -/** - * The following options are usefull, if you use a MySQL - * database as autentication backend. Have a look into - * mysql.conf.php too and adjust the options to match - * your database installation. - */ -//$conf['authtype'] = 'mysql'; -//require_once ("mysql.conf.php"); - - diff --git a/conf/mime.conf b/conf/mime.conf index 2e1ce6bb0..24529b06c 100644 --- a/conf/mime.conf +++ b/conf/mime.conf @@ -7,22 +7,34 @@ jpg image/jpeg jpeg image/jpeg gif image/gif png image/png + +swf application/x-shockwave-flash +mp3 audio/mpeg +ogg audio/ogg +wav audio/wav + tgz !application/octet-stream tar !application/x-gtar gz !application/octet-stream bz2 !application/octet-stream zip !application/zip rar !application/rar +7z !application/x-7z-compressed + pdf application/pdf ps !application/postscript + +rpm !application/octet-stream +deb !application/octet-stream + doc !application/msword xls !application/msexcel ppt !application/mspowerpoint rtf !application/msword -swf application/x-shockwave-flash -rpm !application/octet-stream -deb !application/octet-stream +docx !application/vnd.openxmlformats-officedocument.wordprocessingml.document +xlsx !application/vnd.openxmlformats-officedocument.spreadsheetml.sheet +pptx !application/vnd.openxmlformats-officedocument.presentationml.presentation sxw !application/soffice sxc !application/soffice @@ -48,5 +60,5 @@ odt !application/vnd.oasis.opendocument.text #txt text/plain #conf text/plain #xml text/xml - +#csv text/csv diff --git a/conf/mysql.conf.php.example b/conf/mysql.conf.php.example index bd67be82c..94bc14e1f 100644 --- a/conf/mysql.conf.php.example +++ b/conf/mysql.conf.php.example @@ -8,15 +8,15 @@ * * TABLE users * uid login pass firstname lastname email - * + * * TABLE groups * gid name - * + * * TABLE usergroup * uid gid - * - * To use this configuration you have to copy them to local.php - * or at least include this file in local.php. + * + * To use this configuration you have to copy them to local.protected.php + * or at least include this file in local.protected.php. */ /* Options to configure database access. You need to set up this @@ -59,9 +59,9 @@ $conf['auth']['mysql']['TablesToLock']= array("users", "users AS u","groups", "g * The module access the password as 'pass' so a alias might be necessary. * * Following patters will be replaced: - * %{user} user name - * %{pass} encrypted or clear text password (depends on 'encryptPass') - * %{dgroup} default group name + * %{user} user name + * %{pass} encrypted or clear text password (depends on 'encryptPass') + * %{dgroup} default group name */ $conf['auth']['mysql']['checkPass'] = "SELECT pass FROM usergroup AS ug @@ -80,7 +80,7 @@ $conf['auth']['mysql']['checkPass'] = "SELECT pass * names listed above so aliasses might be neseccary. * * Following patters will be replaced: - * %{user} user name + * %{user} user name */ $conf['auth']['mysql']['getUserInfo'] = "SELECT pass, CONCAT(firstname,' ',lastname) AS name, email AS mail FROM users @@ -92,7 +92,7 @@ $conf['auth']['mysql']['getUserInfo'] = "SELECT pass, CONCAT(firstname,' ',lastn * might be nessecary. * * Following patters will be replaced: - * %{user} user name + * %{user} user name */ $conf['auth']['mysql']['getGroups'] = "SELECT name as `group` FROM groups g, users u, usergroup ug @@ -113,13 +113,13 @@ $conf['auth']['mysql']['getGroups'] = "SELECT name as `group` * The login name will be accessed as 'user' to a alias might be neseccary. * No patterns will be replaced in this statement but following patters * will be replaced in the filter expressions: - * %{user} in FilterLogin user's login name - * %{name} in FilterName user's full name - * %{email} in FilterEmail user's email address - * %{group} in FilterGroup group name + * %{user} in FilterLogin user's login name + * %{name} in FilterName user's full name + * %{email} in FilterEmail user's email address + * %{group} in FilterGroup group name */ $conf['auth']['mysql']['getUsers'] = "SELECT DISTINCT login AS user - FROM users AS u + FROM users AS u LEFT JOIN usergroup AS ug ON u.uid=ug.uid LEFT JOIN groups AS g ON ug.gid=g.gid"; $conf['auth']['mysql']['FilterLogin'] = "login LIKE '%{user}'"; @@ -136,11 +136,11 @@ $conf['auth']['mysql']['SortOrder'] = "ORDER BY login"; * to store are: login name, password, email address and full name. * * Following patterns will be replaced: - * %{user} user's login name - * %{pass} password (encrypted or clear text, depends on 'encryptPass') - * %{email} email address - * %{name} user's full name - */ + * %{user} user's login name + * %{pass} password (encrypted or clear text, depends on 'encryptPass') + * %{email} email address + * %{name} user's full name + */ $conf['auth']['mysql']['addUser'] = "INSERT INTO users (login, pass, email, firstname, lastname) VALUES ('%{user}', '%{pass}', '%{email}', @@ -149,7 +149,7 @@ $conf['auth']['mysql']['addUser'] = "INSERT INTO users /* This statement should add a group to the database. * Following patterns will be replaced: - * %{group} group name + * %{group} group name */ $conf['auth']['mysql']['addGroup'] = "INSERT INTO groups (name) VALUES ('%{group}')"; @@ -157,18 +157,18 @@ $conf['auth']['mysql']['addGroup'] = "INSERT INTO groups (name) /* This statement should connect a user to a group (a user become member * of that group). * Following patterns will be replaced: - * %{user} user's login name - * %{uid} id of a user dataset - * %{group} group name - * %{gid} id of a group dataset + * %{user} user's login name + * %{uid} id of a user dataset + * %{group} group name + * %{gid} id of a group dataset */ $conf['auth']['mysql']['addUserGroup']= "INSERT INTO usergroup (uid, gid) VALUES ('%{uid}', '%{gid}')"; /* This statement should remove a group fom the database. * Following patterns will be replaced: - * %{group} group name - * %{gid} id of a group dataset + * %{group} group name + * %{gid} id of a group dataset */ $conf['auth']['mysql']['delGroup'] = "DELETE FROM groups WHERE gid='%{gid}'"; @@ -177,7 +177,7 @@ $conf['auth']['mysql']['delGroup'] = "DELETE FROM groups * The module will access the index with the name 'id' so a alias might be * necessary. * following patters will be replaced: - * %{user} user name + * %{user} user name */ $conf['auth']['mysql']['getUserID'] = "SELECT uid AS id FROM users @@ -189,8 +189,8 @@ $conf['auth']['mysql']['getUserID'] = "SELECT uid AS id /* This statement should remove a user fom the database. * Following patterns will be replaced: - * %{user} user's login name - * %{uid} id of a user dataset + * %{user} user's login name + * %{uid} id of a user dataset */ $conf['auth']['mysql']['delUser'] = "DELETE FROM users WHERE uid='%{uid}'"; @@ -198,7 +198,7 @@ $conf['auth']['mysql']['delUser'] = "DELETE FROM users /* This statement should remove all connections from a user to any group * (a user quits membership of all groups). * Following patterns will be replaced: - * %{uid} id of a user dataset + * %{uid} id of a user dataset */ $conf['auth']['mysql']['delUserRefs'] = "DELETE FROM usergroup WHERE uid='%{uid}'"; @@ -212,12 +212,12 @@ $conf['auth']['mysql']['delUserRefs'] = "DELETE FROM usergroup * added to updateUser on demand. Only changed parameters will be used. * * Following patterns will be replaced: - * %{user} user's login name - * %{pass} password (encrypted or clear text, depends on 'encryptPass') - * %{email} email address - * %{name} user's full name + * %{user} user's login name + * %{pass} password (encrypted or clear text, depends on 'encryptPass') + * %{email} email address + * %{name} user's full name * %{uid} user id that should be updated - */ + */ $conf['auth']['mysql']['updateUser'] = "UPDATE users SET"; $conf['auth']['mysql']['UpdateLogin'] = "login='%{user}'"; $conf['auth']['mysql']['UpdatePass'] = "pass='%{pass}'"; @@ -230,10 +230,10 @@ $conf['auth']['mysql']['UpdateTarget']= "WHERE uid=%{uid}"; * group (a user quits membership of that group). * * Following patterns will be replaced: - * %{user} user's login name - * %{uid} id of a user dataset - * %{group} group name - * %{gid} id of a group dataset + * %{user} user's login name + * %{uid} id of a user dataset + * %{group} group name + * %{gid} id of a group dataset */ $conf['auth']['mysql']['delUserGroup']= "DELETE FROM usergroup WHERE uid='%{uid}' @@ -244,7 +244,7 @@ $conf['auth']['mysql']['delUserGroup']= "DELETE FROM usergroup * be necessary. * * Following patters will be replaced: - * %{group} group name + * %{group} group name */ $conf['auth']['mysql']['getGroupID'] = "SELECT gid AS id FROM groups |