svn: /web/qa/trunk/reports/ db/.htaccess index.php install.php viewreports.php

From: Date: Wed, 18 May 2011 23:19:36 +0000
Subject: svn: /web/qa/trunk/reports/ db/.htaccess index.php install.php viewreports.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-65793@lists.php.net to get a copy of this message
odoucet Wed, 18 May 2011 23:19:36 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311221 Log: bugfixes for QA Reports (qa.php.net/reports) - work still in progress Changed paths: U web/qa/trunk/reports/db/.htaccess U web/qa/trunk/reports/index.php U web/qa/trunk/reports/install.php U web/qa/trunk/reports/viewreports.php Modified: web/qa/trunk/reports/db/.htaccess =================================================================== --- web/qa/trunk/reports/db/.htaccess 2011-05-18 22:24:40 UTC (rev 311220) +++ web/qa/trunk/reports/db/.htaccess 2011-05-18 23:19:36 UTC (rev 311221) @@ -1,2 +1,3 @@ -Order deny, allow +Options -Indexes +Order deny,allow deny from all Modified: web/qa/trunk/reports/index.php =================================================================== --- web/qa/trunk/reports/index.php 2011-05-18 22:24:40 UTC (rev 311220) +++ web/qa/trunk/reports/index.php 2011-05-18 23:19:36 UTC (rev 311221) @@ -1,9 +1,9 @@ <?php $startTime = microtime(true); +if (isset($_GET['debug'])) error_reporting(E_ALL); -include("include/functions.php"); +include "../include/functions.php"; - $TITLE = "PHP Test reports Summary"; if (isset($_GET['version'])) { Modified: web/qa/trunk/reports/install.php =================================================================== --- web/qa/trunk/reports/install.php 2011-05-18 22:24:40 UTC (rev 311220) +++ web/qa/trunk/reports/install.php 2011-05-18 23:19:36 UTC (rev 311221) @@ -1,4 +1,6 @@ <?php +error_reporting(E_ALL); +header('Content-Type: text/plain'); // First install ! $DBFILE = dirname(__FILE__).'/db/reports.sqlite'; @@ -7,4 +9,13 @@ exit('install already done !'); } -file_put_contents($DBFILE, file_get_contents('http://phpqa.ajeux.net/reports.sqlite')); +echo date('[d-m-y H:i:s]')."Downloading first version of DB ...\n"; +$data = file_get_contents('http://phpqa.ajeux.net/reports.sqlite'); +echo date('[d-m-y H:i:s]')."OK (Filesize: ".strlen($data)."\n"; +echo date('[d-m-y H:i:s]')."Putting data to sqlite file ...\n"; +file_put_contents($DBFILE, $data); +echo date('[d-m-y H:i:s]')."OK\n"; +echo date('[d-m-y H:i:s]')."Changing chmod ...\n"; +chmod($DBFILE, 0755); +chmod(dirname($DBFILE), 0755); +echo date('[d-m-y H:i:s]')."Done\n"; Modified: web/qa/trunk/reports/viewreports.php =================================================================== --- web/qa/trunk/reports/viewreports.php 2011-05-18 22:24:40 UTC (rev 311220) +++ web/qa/trunk/reports/viewreports.php 2011-05-18 23:19:36 UTC (rev 311221) @@ -1,7 +1,8 @@ <?php +if (isset($_GET['debug'])) error_reporting(E_ALL); $startTime = microtime(true); -include("include/functions.php"); +include "../include/functions.php"; // test testName

« previous php.qa (#65793) next »