Fix compatibility with php-5.x.
[www.energie.vellum.cz.git] / config.php
index b554c26..45301fd 100644 (file)
@@ -3,8 +3,8 @@
        $admin_mail="web-www.energie.vellum.cz@jankratochvil.net";
        # All CVS mails now go to $admin_mail
        #$cvs_mailhost="vellum.cz";
-       $mail_to="short@ucw.cz,karel.kratochvil@centrum.cz";
-       $viewcvs=ereg_replace("^/","http://cvs.jankratochvil.net/viewcvs/energie/",$HTTP_SERVER_VARS["SCRIPT_NAME"]);
+       $mail_to="web-www.energie.vellum.cz@jankratochvil.net,karel.kratochvil@centrum.cz";
+       $viewcvs=ereg_replace("^/","http://cvs.jankratochvil.net/viewcvs/energie/",$_SERVER["SCRIPT_NAME"]);
        $title_prefix="Energie & peníze";
        $detect_ent=false;      // used only for w3.org footer, not worth the cost
 
@@ -18,7 +18,7 @@
        // obsah.php:
        $db_host="";
        $db_user="short";
-       $db_pwd_a=file("/home/short/priv/mysql.${db_user}.pwd");
+       $db_pwd_a=file("/home/lace/priv/mysql.${db_user}.pwd");
        $db_pwd=trim($db_pwd_a[0]);
        $db_name="short";
        $tb_obsah="energie_obsah";