cvs: php-gcov-web(SOC06) /www config.php index.php site.api.php

From: Date: Sat, 02 Sep 2006 18:38:45 +0000
Subject: cvs: php-gcov-web(SOC06) /www config.php index.php site.api.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32274@lists.php.net to get a copy of this message
nlopess Sat Sep 2 18:38:45 2006 UTC Modified files: (Branch: SOC06) /php-gcov-web/www config.php index.php site.api.php Log: clean some unused code. adjust the paths to work on other computer than Daniel's :) http://cvs.php.net/viewvc.cgi/php-gcov-web/www/config.php?r1=1.1.2.3&r2=1.1.2.4&diff_format=u Index: php-gcov-web/www/config.php diff -u php-gcov-web/www/config.php:1.1.2.3 php-gcov-web/www/config.php:1.1.2.4 --- php-gcov-web/www/config.php:1.1.2.3 Mon Aug 21 04:06:41 2006 +++ php-gcov-web/www/config.php Sat Sep 2 18:38:45 2006 @@ -12,10 +12,10 @@ $appvars['page'] = array(); // Application page-specific variable array // Define the file that contains the text for each PHP version -$appvars['site']['tagsfile'] = '/home/quadra23/temp/phpqa/tags.inc'; +$appvars['site']['tagsfile'] = '../cron/tags.inc'; // Define the file that contains all needed database connections -$appvars['site']['dbcsfile'] = '/home/quadra23/temp/phpqa/database.php'; +$appvars['site']['dbcsfile'] = '../cron/database.php'; // Define links for the side bar (used in site.api.php) $appvars['site']['sidebarsubitems_localbuilds'] = array( http://cvs.php.net/viewvc.cgi/php-gcov-web/www/index.php?r1=1.1.2.4&r2=1.1.2.5&diff_format=u Index: php-gcov-web/www/index.php diff -u php-gcov-web/www/index.php:1.1.2.4 php-gcov-web/www/index.php:1.1.2.5 --- php-gcov-web/www/index.php:1.1.2.4 Sat Sep 2 18:07:50 2006 +++ php-gcov-web/www/index.php Sat Sep 2 18:38:45 2006 @@ -1,8 +1,6 @@ <?php // Include the site API -include_once 'site.api.php'; - -include_once 'config.php'; +include 'site.api.php'; // Initialize the core components api_init($appvars); @@ -11,28 +9,6 @@ $appvars['page']['title'] = 'PHP: Test and Code Coverage Analysis'; $appvars['page']['head'] = 'PHP: Test and Code Coverage Analysis'; -// Function for displaying the tags -function show_link($tag, $link, $path, $file = NULL, $l_time = false) -{ - - if (is_null($file)) - { - $file = $link; - } - $m_time = @filemtime($path. "/$tag/$file"); - if (file_exists($path. "/$tag/$file") && ($l_time === false || $m_time > $l_time)) - { - echo '<td align="left">' - .'<a href="viewer.php?version='.$tag.'&amp;func='.$link.'">' - .date("M d Y H:i:s", $m_time).'</a></td>'; - } - else - { - echo "<td>&nbsp;N/A</td>"; - } - return $m_time; -} - $x = 0; $phptags = array(); @@ -48,21 +24,15 @@ } $phptags[] = $tag; - $x++; + ++$x; } -//print_r($phptags); - $stmt = $mysqlconn->prepare($sql); - $stmt->execute($phptags); // Outputs the site header to the screen - api_showheader($appvars); -//die( $sql ); - ?> <p> This page is dedicated to automatic PHP code coverage testing. On a regular @@ -80,11 +50,8 @@ <th>Last Build <br /> Time (seconds)</th> </tr> <?php - -$path = $appvars['site']['basepath']; // Output PHP versions into a table -//foreach($appvars['site']['tags'] as $tag) while($row = $stmt->fetch(PDO::FETCH_ORI_NEXT)) { list($version_id, $version_name, $version_last_build_time, $version_last_attempted_build_date, $version_last_successful_build_date) = $row; @@ -128,4 +95,3 @@ <?php // Outputs the site footer to the screen api_showfooter($appvars); - http://cvs.php.net/viewvc.cgi/php-gcov-web/www/site.api.php?r1=1.1.2.4&r2=1.1.2.5&diff_format=u Index: php-gcov-web/www/site.api.php diff -u php-gcov-web/www/site.api.php:1.1.2.4 php-gcov-web/www/site.api.php:1.1.2.5 --- php-gcov-web/www/site.api.php:1.1.2.4 Mon Aug 21 04:09:10 2006 +++ php-gcov-web/www/site.api.php Sat Sep 2 18:38:45 2006 @@ -7,10 +7,10 @@ */ // Include other core files -include_once 'config.php'; // Includes configuration settings +include 'config.php'; // Includes configuration settings // Include the database connection file -include_once $appvars['site']['dbcsfile']; +include $appvars['site']['dbcsfile']; if(!$mysqlconn) {

« previous php.mirrors (#32274) next »