Changeset 15471 for trunk/www/includes


Ignore:
Timestamp:
Dec 13, 2005, 6:07:35 AM (15 years ago)
Author:
yeled
Message:

back out this count(*) malarkey
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/functions.inc

    r15469 r15471  
    11<?php
    22
    3 # $Id: functions.inc,v 1.8 2005/12/13 05:17:05 jmpp Exp $
     3# $Id: functions.inc,v 1.9 2005/12/13 06:07:35 yeled Exp $
    44# Copyright (c) 2003, OpenDarwin
    55
     
    1313mysql_select_db($db);
    1414
    15 # includes for print_available_ports()
    16 $connect_darwinports = include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    1715
    1816
     
    282280######################################################################
    283281
    284 # print the number or available ports
    285 function print_available_ports() {
    286         global $connect_darwinports;
    287        
    288         $result = mysql_query("SELECT count(*) from darwinports.portfiles");
    289         if ($result) {
    290                 $row = mysql_fetch_array($result);
    291                 $count = $row[0];
    292                 echo $count;
    293         } else {
    294                 $count = 0;
    295         }
    296 }
    297 
    298282?>
Note: See TracChangeset for help on using the changeset viewer.