Changeset 15468 for trunk/www/includes


Ignore:
Timestamp:
Dec 13, 2005, 4:26:54 AM (15 years ago)
Author:
matt
Message:

Quick hack to use the darwinports db (not tested though...)

File:
1 edited

Legend:

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

    r15457 r15468  
    11<?php
    22
    3 # $Id: functions.inc,v 1.6 2005/12/12 18:56:58 matt Exp $
     3# $Id: functions.inc,v 1.7 2005/12/13 04:26:54 matt Exp $
    44# Copyright (c) 2003, OpenDarwin
    55
     
    1212$connect = mysql_pconnect($host, $user, $pass) or die("Can't connect to db!");
    1313mysql_select_db($db);
     14
     15# includes for print_available_ports()
     16$connect_darwinports = include_once("$DOCUMENT_ROOT/includes/dp_portlisting.inc");
     17
    1418
    1519######################################################################
     
    280284# print the number or available ports
    281285function print_available_ports() {
    282         global $connect;
     286        global $connect_darwinports;
    283287       
    284288        $result = mysql_query("SELECT count(*) from darwinports.portfiles");
Note: See TracChangeset for help on using the changeset viewer.