[Caic-commits] r74 - pkg/inst/doc www

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Oct 4 12:06:08 CEST 2008


Author: petzoldt
Date: 2008-10-04 12:06:07 +0200 (Sat, 04 Oct 2008)
New Revision: 74

Added:
   pkg/inst/doc/Benchmark.Rda
Modified:
   www/index.php
Log:
fix project homepage and benchmark-vignette

Added: pkg/inst/doc/Benchmark.Rda
===================================================================
(Binary files differ)


Property changes on: pkg/inst/doc/Benchmark.Rda
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: www/index.php
===================================================================
--- www/index.php	2008-10-03 11:10:53 UTC (rev 73)
+++ www/index.php	2008-10-04 10:06:07 UTC (rev 74)
@@ -4,8 +4,8 @@
 
 <?php
 
-$domain=eregM.Massreplace('[^\.]*\.(.*)$','\1',$M.MassSERVER['HTTPM.MassHOST']);
-$groupM.Massname=eregM.Massreplace('([^\.]*)\..*$','\1',$M.MassSERVER['HTTPM.MassHOST']);
+$domain=ereg_replace('[^\.]*\.(.*)$','\1',$_SERVER['HTTP_HOST']);
+$group_name=ereg_replace('([^\.]*)\..*$','\1',$_SERVER['HTTP_HOST']);
 $themeroot='http://r-forge.r-project.org/themes/rforge/';
 
 echo '<?xml version="1.0" encoding="UTF-8"?>';
@@ -17,7 +17,7 @@
 
   <head>
 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-	<title><?php echo $groupM.Massname; ?></title>
+	<title><?php echo $group_name; ?></title>
 	<link href="<?php echo $themeroot; ?>styles/estilo1.css" rel="stylesheet" type="text/css" />
   </head>
 
@@ -33,7 +33,7 @@
 <!-- get project title  -->
 <!-- own website starts here, the following may be changed as you like -->
 
-<?php if ($handle=fopen('http://'.$domain.'/export/projtitl.php?groupM.Massname='.$groupM.Massname,'r')){
+<?php if ($handle=fopen('http://'.$domain.'/export/projtitl.php?group_name='.$group_name,'r')){
 $contents = '';
 while (!feof($handle)) {
 	$contents .= fread($handle, 8192);
@@ -45,7 +45,7 @@
 
 <p> No content added. </p>
 
-<p> The <strong>project summary page</strong> you can find <a href="http://<?php echo $domain; ?>/projects/<?php echo $groupM.Massname; ?>/"><strong>here</strong></a>. </p>
+<p> The <strong>project summary page</strong> you can find <a href="http://<?php echo $domain; ?>/projects/<?php echo $group_name; ?>/"><strong>here</strong></a>. </p>
 
 </body>
 </html>



More information about the Caic-commits mailing list