function cpg_output_version_row($file_version_info = '', $file_path = '', $cpg_is_file = '')
{
    global $repository_filename, $repository_version, $repository_cvs, $repository_needed, $repository_readwrite, $lang_versioncheck_php, $counter_file_mandatory_not_exist, $counter_file_optional_not_exist, $counter_cpg_version_older, $counter_cpg_version_younger, $counter_cvs_version_older, $counter_cvs_version_younger;
    $file_complete_path = $file_path['path'] . $file_path['file'];
    print '<tr>';
    print '<td class="tableb">';
    if ($cpg_is_file == '') {
        print '<img src="images/folder.gif" width="16" height="16" border="0" alt="" title="" align="left" style="margin-left:0px;margin-right:10px" />';
    } else {
        print '<img src="images/spacer.gif" width="10" height="15" border="0" alt="" title="" style="border:1px solid black;margin-left:2px;margin-right:12px;background-color:#FFFFFF" align="left">';
    }
    $help_ouput = '';
    if ($file_version_info['exists'] == 1) {
        $stylecolor = '';
        $helptitle = '';
    } else {
        if ($repository_needed[$file_complete_path] == 'optional') {
            $stylecolor = 'yellow';
            $helptitle = $lang_versioncheck_php['help_file_not_exist_optional1'];
            $helpoutput = sprintf($lang_versioncheck_php['help_file_not_exist_optional2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
            $counter_file_optional_not_exist++;
        } else {
            $stylecolor = 'red';
            $helptitle = $lang_versioncheck_php['help_file_not_exist_mandatory1'];
            $helpoutput = sprintf($lang_versioncheck_php['help_file_not_exist_mandatory2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
            $counter_file_mandatory_not_exist++;
        }
    }
    print '<span class="' . $stylecolor . '" title="' . $helptitle . '">';
    print $file_path['path'];
    print $file_path['file'];
    if ($stylecolor != '') {
        print '&nbsp;';
        print cpg_display_help('f=index.html&base=64&h=' . urlencode(base64_encode(serialize($helptitle))) . '&t=' . urlencode(base64_encode(serialize($helpoutput))), 400, 150);
    }
    print '</span>';
    print '</td><td class="tableb">';
    // cpg version start
    $cvs_version_check = 'enable';
    if (!$repository_version[$file_complete_path]) {
        $repository_version[$file_complete_path] = '?';
    }
    if ($file_version_info['exists'] != 1) {
        print '-';
        $helptitle = '';
    } elseif (!$file_version_info['cpg_version'] && $repository_version[$file_complete_path] == '?') {
        print 'n/a';
    } elseif ((!$file_version_info['cpg_version'] || $file_version_info['cpg_version'] == 'n/a') && $repository_version[$file_complete_path] != '?') {
        $cvs_version_check = 'disable';
        print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
        print '?';
        print '</span>';
        print ' / ';
        print '<span title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        print '</span>';
        $helptitle = $lang_versioncheck_php['help_no_local_version1'];
        $helpoutput = $lang_versioncheck_php['help_no_local_version2'];
        $counter_cpg_version_older++;
    } elseif ((!$file_version_info['cpg_version'] || $file_version_info['cpg_version'] == 'n/a') && $repository_version[$file_complete_path] == '?') {
        $cvs_version_check = 'disable';
        print '-';
        $helptitle = '';
        $helpoutput = '';
    } elseif ($file_version_info['cpg_version'] == $repository_version[$file_complete_path]) {
        print '<span class="green" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</span>';
        print ' / ';
        print '<span class="green" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</span>';
        $helptitle = '';
    } elseif ($file_version_info['cpg_version'] < $repository_version[$file_complete_path]) {
        $cvs_version_check = 'disable';
        print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</span>';
        print ' / ';
        print '<span title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        print '</span>';
        $helptitle = $lang_versioncheck_php['help_local_version_outdated1'];
        $helpoutput = $lang_versioncheck_php['help_local_version_outdated2'];
        $counter_cpg_version_older++;
    } elseif ($file_version_info['cpg_version'] > $repository_version[$file_complete_path]) {
        $cvs_version_check = 'disable';
        print '<span title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print ' / ';
        print '<span class="yellow" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        print '</span>';
        $helptitle = $lang_versioncheck_php['help_local_version_dev1'];
        $helpoutput = $lang_versioncheck_php['help_local_version_dev2'];
        $counter_cpg_version_younger++;
    } else {
        $cvs_version_check = 'disable';
        print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</span>';
        print ' / ';
        print '<span class="red" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        print '</span>';
        $counter_cpg_version_older++;
    }
    if ($helptitle != '') {
        print '&nbsp;';
        print cpg_display_help('f=index.html&base=64&h=' . urlencode(base64_encode(serialize($helptitle))) . '&t=' . urlencode(base64_encode(serialize($helpoutput))), 400, 150);
    }
    // cpg version end
    print '</td><td class="tableb">';
    // cvs version start
    $helptitle = '';
    if ($file_version_info['cvs_version'] == '//') {
        $file_version_info['cvs_version'] = '';
    }
    if ($cvs_version_check != 'disable') {
        if (!$repository_cvs[$file_complete_path]) {
            $repository_cvs[$file_complete_path] = '?';
        }
        if ($file_version_info['exists'] != 1) {
            print '-';
        } elseif (!$file_version_info['cvs_version'] && $repository_cvs[$file_complete_path] == '?') {
            print 'n/a';
        } elseif ($file_version_info['cvs_version'] == 'n/a' && $file_version_info['cvs_version'] == 'n/a') {
            print 'n/a';
            $helptitle = '';
            $helpoutput = '';
        } elseif (!$file_version_info['cvs_version'] || $file_version_info['cvs_version'] == 'n/a') {
            print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
            print $file_version_info['cvs_version'];
            print '</span>';
            print ' / ';
            print '<span title="' . $lang_versioncheck_php['reference_file'] . '">';
            print $repository_cvs[$file_complete_path];
            print '</span>';
            $helptitle = $lang_versioncheck_php['help_local_version_na1'];
            $helpoutput = $lang_versioncheck_php['help_local_version_na2'];
            $counter_cvs_version_older++;
        } elseif (cpg_version_compare($file_version_info['cvs_version']) == cpg_version_compare($repository_cvs[$file_complete_path])) {
            print '<span class="green" title="' . $lang_versioncheck_php['your_file'] . '">';
            print $file_version_info['cvs_version'];
            print '</span>';
            print ' / ';
            print '<span class="green" title="' . $lang_versioncheck_php['reference_file'] . '">';
            print $repository_cvs[$file_complete_path];
            print '</span>';
        } elseif (cpg_version_compare($file_version_info['cvs_version']) < cpg_version_compare($repository_cvs[$file_complete_path])) {
            print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
            print $file_version_info['cvs_version'];
            print '</span>';
            print ' / ';
            print '<span title="' . $lang_versioncheck_php['reference_file'] . '">';
            print $repository_cvs[$file_complete_path];
            print '</span>';
            $helptitle = $lang_versioncheck_php['help_local_version_outdated1'];
            $helpoutput = $lang_versioncheck_php['help_local_version_outdated2'];
            $counter_cvs_version_older++;
        } elseif (cpg_version_compare($file_version_info['cvs_version']) > cpg_version_compare($repository_cvs[$file_complete_path])) {
            print '<span title="' . $lang_versioncheck_php['your_file'] . '">';
            print $file_version_info['cvs_version'];
            print '</span>';
            print ' / ';
            print '<span class="yellow" title="' . $lang_versioncheck_php['reference_file'] . '">';
            print $repository_cvs[$file_complete_path];
            print '</span>';
            $helptitle = $lang_versioncheck_php['help_local_version_dev1'];
            $helpoutput = $lang_versioncheck_php['help_local_version_dev2'];
            $counter_cvs_version_younger++;
        } else {
            print '<span class="red" title="' . $lang_versioncheck_php['your_file'] . '">';
            print $file_version_info['cvs_version'];
            print '</span>';
            print ' / ';
            print '<span class="red" title="' . $lang_versioncheck_php['reference_file'] . '">';
            print $repository_cvs[$file_complete_path];
            print '</span>';
            $helptitle = $lang_versioncheck_php['help_local_version_outdated1'];
            $helpoutput = $lang_versioncheck_php['help_local_version_outdated2'];
            $counter_cvs_version_older++;
        }
    } else {
        print '-';
    }
    if ($helptitle != '') {
        print '&nbsp;';
        print cpg_display_help('f=index.html&base=64&h=' . urlencode(base64_encode(serialize($helptitle))) . '&t=' . urlencode(base64_encode(serialize($helpoutput)) . '&css=1'), 400, 150);
    }
    // cvs version end
    print '</td>';
    print '<!--<td class="tableb">';
    // writable ? start
    $stylecolor = '';
    if ($file_version_info['writable'] == 0 && $repository_readwrite[$file_complete_path] == 'w') {
        $stylecolor = 'red';
    } elseif ($file_version_info['writable'] == 1 && $repository_readwrite[$file_complete_path] == 'r') {
        $stylecolor = 'yellow';
    }
    print '<span class="' . $stylecolor . '">';
    if ($file_version_info['writable'] == 1) {
        print '&radic;';
    } elseif ($file_version_info['exists'] == 1) {
        print '-';
    }
    print '</span>';
    // writable ? end
    print "</td>--></tr>\n";
}
Пример #2
0
function cpg_output_version_row($file_version_info = '', $file_path = '', $cpg_is_file = '')
{
    global $repository_filename, $repository_version, $repository_cvs, $repository_needed, $repository_readwrite, $lang_versioncheck_php, $counter_file_mandatory_not_exist, $counter_file_optional_not_exist, $counter_cpg_version_older, $counter_cpg_version_younger, $counter_cvs_version_older, $counter_cvs_version_younger, $optional_files, $webcvs, $file_versions, $errors_only, $permissions, $mandatory_files;
    $file_complete_path = $file_path['path'] . $file_path['file'];
    // don't return anything if the options are set to filter optional files the actual file IS optional
    if ($optional_files != 1 && $repository_needed[$file_complete_path] == 'optional') {
        return;
    }
    if ($mandatory_files != 1 && $repository_needed[$file_complete_path] == 'mandatory') {
        return;
    }
    $error_counter = 0;
    ob_start();
    // stop output temporarily
    print '<tr>';
    print '<td class="tableb">';
    print '<a href="' . $file_path['path'] . $file_path['file'] . '">';
    if ($cpg_is_file == '') {
        print '<img src="images/folder.gif" width="16" height="16" border="0" alt="" title="" align="left" style="margin-left:0px;margin-right:10px" />';
    } else {
        print '<img src="images/spacer.gif" width="10" height="15" border="0" alt="" title="" style="border:1px solid black;margin-left:2px;margin-right:12px;background-color:#FFFFFF" align="left">';
    }
    print '</a>';
    $help_ouput = '';
    if ($file_version_info['exists'] == 1) {
        $stylecolor = '';
        $helptitle = '';
    } else {
        if ($repository_needed[$file_complete_path] == 'optional') {
            $stylecolor = 'yellow';
            $helptitle = $lang_versioncheck_php['help_file_not_exist_optional1'];
            $helpoutput = sprintf($lang_versioncheck_php['help_file_not_exist_optional2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
            $counter_file_optional_not_exist++;
            $error_counter++;
        } else {
            $stylecolor = 'red';
            $helptitle = $lang_versioncheck_php['help_file_not_exist_mandatory1'];
            $helpoutput = sprintf($lang_versioncheck_php['help_file_not_exist_mandatory2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
            $counter_file_mandatory_not_exist++;
            $error_counter++;
        }
    }
    print '<span class="' . $stylecolor . '" title="' . $helptitle . '">';
    print $file_path['path'];
    print $file_path['file'];
    print '</span>';
    if ($stylecolor != '') {
        print '&nbsp;';
        print cpg_display_help('f=index.html&amp;base=64&amp;h=' . urlencode(base64_encode(serialize($helptitle))) . '&amp;t=' . urlencode(base64_encode(serialize($helpoutput))), 400, 150);
    }
    // writable ? start
    if (!$cpg_is_file && $permissions == 1) {
        // we have a folder: start
        $stylecolor = '';
        $writable_output = '';
        $helptitle = '';
        $helpoutput = '';
        // check if the writable icon is there. If it isn't, display a plain text
        if (file_exists('images/writable_true_wrong.gif') == true && file_exists('images/writable_true_right.gif') == true && file_exists('images/writable_false_wrong.gif') == true && file_exists('images/writable_false_right.gif') == true) {
            // image files exist: start
            $writable_true_wrong = '<img src="images/writable_true_wrong.gif" width="13" height="15" border="0" alt="" style="" title="' . $lang_versioncheck_php['writable'] . '" />';
            $writable_true_right = '<img src="images/writable_true_right.gif" width="13" height="15" border="0" alt="" style="" title="' . $lang_versioncheck_php['writable'] . '" />';
            $writable_false_wrong = '<img src="images/writable_false_wrong.gif" width="13" height="15" border="0" alt="" style="" title="' . $lang_versioncheck_php['not_writable'] . '" />';
            $writable_false_right = '<img src="images/writable_false_right.gif" width="13" height="15" border="0" alt="" style="" title="' . $lang_versioncheck_php['not_writable'] . '" />';
            $writable_false_undetermined = '<img src="images/writable_false_wrong.gif" width="13" height="15" border="0" alt="" style="border-width:1px;border-style:solid;border-color:yellow;" title="?" />';
        } else {
            // image files exist: end
            $writable_true_wrong = '(<span class="yellow">' . $lang_versioncheck_php['writable'] . '</span>)';
            $writable_true_right = '(<span class="green">' . $lang_versioncheck_php['writable'] . '</span>)';
            $writable_false_wrong = '(<span class="red">' . $lang_versioncheck_php['not_writable'] . '</span>)';
            $writable_false_right = '(<span class="green">' . $lang_versioncheck_php['not_writable'] . '</span>)';
            $writable_false_undetermined = '(<span class="yellow">?</span>';
        }
        if ($repository_readwrite[$file_complete_path] == 'w') {
            if ($file_version_info['writable'] == '-1') {
                $stylecolor = 'red';
                $writable_output = $writable_false_wrong;
                $helptitle = $lang_versioncheck_php['help_not_writable1'];
                $helpoutput = sprintf($lang_versioncheck_php['help_not_writable2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
                $error_counter++;
            } elseif ($file_version_info['writable'] == 1) {
                $stylecolor = 'green';
                $writable_output = $writable_true_right;
            } elseif ($file_version_info['writable'] == 0) {
                $stylecolor = 'yellow';
                $writable_output = $writable_false_undetermined;
                $helptitle = $helptitle = $lang_versioncheck_php['help_not_writable1'];
                $helpoutput = sprintf($lang_versioncheck_php['help_writable_undetermined'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
                $error_counter++;
            }
        } elseif ($repository_readwrite[$file_complete_path] == 'r') {
            if ($file_version_info['writable'] == '-1') {
                $stylecolor = 'green';
                $writable_output = $writable_false_right;
            } elseif ($file_version_info['writable'] == 1) {
                $stylecolor = 'yellow';
                $writable_output = $writable_true_wrong;
                $helptitle = $lang_versioncheck_php['help_writable1'];
                $helpoutput = sprintf($lang_versioncheck_php['help_writable2'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
                $error_counter++;
            } elseif ($file_version_info['writable'] == 0) {
                $stylecolor = 'yellow';
                $writable_output = $writable_false_undetermined;
                $helptitle = $lang_versioncheck_php['help_not_writable1'];
                $helpoutput = sprintf($lang_versioncheck_php['help_writable_undetermined'], '&quot;<i>' . $file_complete_path . '</i>&quot;');
                $error_counter++;
            }
        }
        print ' ';
        print $writable_output;
        if ($helptitle != '') {
            print '&nbsp;';
            print cpg_display_help('f=index.html&amp;base=64&amp;h=' . urlencode(base64_encode(serialize($helptitle))) . '&amp;t=' . urlencode(base64_encode(serialize($helpoutput)) . '&amp;css=1'), 400, 150);
            $helptitle = '';
            $helpoutput = '';
        }
    }
    // we have a folder: end
    // writable ? end
    print '</td>';
    // cpg version start
    $cvs_version_check = 'enable';
    if (!$repository_version[$file_complete_path]) {
        $repository_version[$file_complete_path] = '?';
    }
    if ($file_version_info['exists'] != 1) {
        print '<td class="tableb" colspan="2" align="center">-</td><td class="tableb">';
        $helptitle = '';
    } elseif (!$file_version_info['cpg_version'] && $repository_version[$file_complete_path] == '?') {
        print '<td class="tableb" colspan="2" align="center">';
        print 'n/a';
    } elseif ((!$file_version_info['cpg_version'] || $file_version_info['cpg_version'] == 'n/a') && $repository_version[$file_complete_path] != '?') {
        $cvs_version_check = 'disable';
        print '<td class="tableb" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
        print '?';
        print cpg_vc_help($lang_versioncheck_php['help_no_local_version1'], $lang_versioncheck_php['help_no_local_version2']);
        print '</td><td class="tableb" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        $counter_cpg_version_older++;
        $error_counter++;
    } elseif ((!$file_version_info['cpg_version'] || $file_version_info['cpg_version'] == 'n/a') && $repository_version[$file_complete_path] == '?') {
        $cvs_version_check = 'disable';
        print '<td class="tableb" colspan="2" align="center">';
        print '-';
    } elseif ($file_version_info['cpg_version'] == $repository_version[$file_complete_path]) {
        print '<td class="tablegreen" align="right" class="green" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</td><td class="tablegreen" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $file_version_info['cpg_version'];
    } elseif ($file_version_info['cpg_version'] < $repository_version[$file_complete_path]) {
        $cvs_version_check = 'disable';
        print '<td class="tablered" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print cpg_vc_help($lang_versioncheck_php['help_local_version_outdated1'], $lang_versioncheck_php['help_local_version_outdated2']);
        print '</td><td class="tableb" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        $counter_cpg_version_older++;
        $error_counter++;
    } elseif ($file_version_info['cpg_version'] > $repository_version[$file_complete_path]) {
        $cvs_version_check = 'disable';
        print '<td class="tableb" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</td><td class="tableyellow" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        print cpg_vc_help($lang_versioncheck_php['help_local_version_dev1'], $lang_versioncheck_php['help_local_version_dev2']);
        $counter_cpg_version_younger++;
        $error_counter++;
    } else {
        $cvs_version_check = 'disable';
        print '<td class="tablered" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
        print $file_version_info['cpg_version'];
        print '</td><td class="tablered" title="' . $lang_versioncheck_php['reference_file'] . '">';
        print $repository_version[$file_complete_path];
        $counter_cpg_version_older++;
        $error_counter++;
    }
    // cpg version end
    print '</td>';
    if ($file_versions == 1) {
        //display file versions: start
        //print '<td class="tableb">';
        // cvs version start
        $helptitle = '';
        if ($file_version_info['cvs_version'] == '//') {
            $file_version_info['cvs_version'] = '';
        }
        if ($cvs_version_check != 'disable') {
            if (!$repository_cvs[$file_complete_path]) {
                $repository_cvs[$file_complete_path] = '?';
            }
            if ($file_version_info['exists'] != 1) {
                print '<td class="tableb" colspan="2" align="center">-';
            } elseif (!$file_version_info['cvs_version'] && $repository_cvs[$file_complete_path] == '?') {
                print '<td class="tableb" colspan="2" align="center">n/a';
            } elseif ($file_version_info['cvs_version'] == 'n/a' && $file_version_info['cvs_version'] == 'n/a') {
                print '<td class="tableb" colspan="2" align="center" title="' . $lang_versioncheck_php['your_file'] . '">n/a';
            } elseif (!$file_version_info['cvs_version'] || $file_version_info['cvs_version'] == 'n/a') {
                print '<td class="tablered" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
                print $file_version_info['cvs_version'];
                print cpg_vc_help($lang_versioncheck_php['help_local_version_na1'], $lang_versioncheck_php['help_local_version_na2']);
                print '</td>';
                print '<td class="tableb" title="' . $lang_versioncheck_php['reference_file'] . '">';
                print $repository_cvs[$file_complete_path];
                $counter_cvs_version_older++;
                $error_counter++;
            } elseif (cpg_version_compare($file_version_info['cvs_version']) == cpg_version_compare($repository_cvs[$file_complete_path])) {
                print '<td class="tablegreen" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
                print $file_version_info['cvs_version'];
                print '</td>';
                print '<td class="tablegreen" align="left" title="' . $lang_versioncheck_php['reference_file'] . '">';
                print $repository_cvs[$file_complete_path];
            } elseif (cpg_version_compare($file_version_info['cvs_version']) < cpg_version_compare($repository_cvs[$file_complete_path])) {
                print '<td class="tablered" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
                print $file_version_info['cvs_version'];
                print cpg_vc_help($lang_versioncheck_php['help_local_version_outdated1'], $lang_versioncheck_php['help_local_version_outdated2']);
                print '</td>';
                print '<td class="tableb" title="' . $lang_versioncheck_php['reference_file'] . '">';
                print $repository_cvs[$file_complete_path];
                $counter_cvs_version_older++;
                $error_counter++;
            } elseif (cpg_version_compare($file_version_info['cvs_version']) > cpg_version_compare($repository_cvs[$file_complete_path])) {
                print '<td class="tableb" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
                print $file_version_info['cvs_version'];
                print '</td>';
                print '<td class="tableyellow" title="' . $lang_versioncheck_php['reference_file'] . '">';
                print $repository_cvs[$file_complete_path];
                print cpg_vc_help($lang_versioncheck_php['help_local_version_dev1'], $lang_versioncheck_php['help_local_version_dev2']);
                $counter_cvs_version_younger++;
                $error_counter++;
            } else {
                print '<td class="tablered" align="right" title="' . $lang_versioncheck_php['your_file'] . '">';
                print $file_version_info['cvs_version'];
                print cpg_vc_help($lang_versioncheck_php['help_local_version_outdated1'], $lang_versioncheck_php['help_local_version_outdated2']);
                print '</td>';
                print '<td class="tablered" title="' . $lang_versioncheck_php['reference_file'] . '">';
                print $repository_cvs[$file_complete_path];
                $counter_cvs_version_older++;
                $error_counter++;
            }
        } else {
            print '<td class="tableb" colspan="2" align="center">-</td>';
        }
        // cvs version end
        print '</td>';
    }
    //display file versions: end
    if ($webcvs != '0') {
        print '<td class="tableb">';
        // web cvs start
        $webcvslink = 'http://svn.sourceforge.net/viewcvs.cgi/coppermine/trunk/';
        if ($webcvs == "devel") {
            $webcvslink .= 'cpg1.5.x/';
        } else {
            $webcvslink .= 'cpg1.4.x/';
        }
        $webcvslink .= $file_complete_path;
        print sprintf($lang_versioncheck_php['go_to_webcvs'], '<a href="' . $webcvslink . '">' . $lang_versioncheck_php['webcvs'] . '</a>');
        // web cvs end
        print "</td>";
    }
    print "</tr>\n";
    $string = ob_get_contents();
    ob_end_clean();
    // don't return anything if the options are set to filter stuff and the conditions match
    if ($errors_only == '1' && $error_counter == 0) {
        return;
    }
    print $string;
}