+phys_2007
[www.energie.vellum.cz.git] / common.php
index 85835de..1d666bd 100644 (file)
@@ -14,7 +14,7 @@
                                ."<a href=\"".ereg_replace("/viewcvs/","\\0~checkout~/",$viewcvs)."?rev=".$cvs_id_split[2]."\">"
                                .$cvs_id_split[2]."</a>";
                $cvs_id_split[1]="<a href=\"$viewcvs\">".$cvs_id_split[1]."</a>";
-               $cvs_id_split[5]="<a href=\"mailto:".$cvs_id_split[5]."@$cvs_mailhost\">".$cvs_id_split[5]."</a>";
+               $cvs_id_split[5]="<a href=\"mailto:$admin_mail\">".$cvs_id_split[5]."</a>";
                }
        $cvs_id_html=join(" ",$cvs_id_split);
 
@@ -262,7 +262,7 @@ function title_icons_table_month($year,$month,$month_last,$sequential,$has_conte
        $result=db_query("select name,id from $tb_clanek where year=$year and month=$month order by id");
        while ($row=mysql_fetch_array($result))
                print("&bull;&nbsp;<a href=\"clanek.php?year=$year&amp;month=$month&amp;id=".$row["id"]."\">"
-                               .htmlspecialchars($row["name"])."</a><br />\n");
+                               .htmlspecialchars(ereg_replace("^.*\\|","",$row["name"]))."</a><br />\n");
        mysql_free_result($result);
        print("</td></tr></table>");
 }