Version developed during Xmas, not tested
[kewensis.git] / config.php
index 3766162..c2faf91 100644 (file)
@@ -3,11 +3,18 @@
        $admin_mail="short@ucw.cz";
        $cvs_mailhost="vellum.cz";
        $viewcvs=ereg_replace("^/","http://short.vellum.cz/cgi-bin/viewcvs/kewensis/",$HTTP_SERVER_VARS["SCRIPT_NAME"]);
+       $title_prefix="Kewensis";
+       $force_charset="utf-8"; // library texts will be corrupted but who cares
+
+       $limit_max_default=10;
+       $footer_LOCAL=1; // disable remote footer images
 
        $db_host="";
        $db_user="short";
-       $db_pwd_a=file("/home/short/priv/mysql.${db_user}.pwd");
+       $db_pwd_a=@file("/home/short/priv/mysql.${db_user}.pwd");
        $db_pwd=trim($db_pwd_a[0]);
+       if (!$db_pwd) // defaults to $db_pwd=$db_user if no password file found
+               $db_pwd=$db_user;
        $db_name="short";
        $tb_tree="kewensis_tree";