Changeset 398 for trunk/cgi-bin


Ignore:
Timestamp:
05/11/10 14:56:06 (15 years ago)
Author:
Kris Deugau
Message:

/trunk

Merge add (r343) and updates (r392 and r393) to quick-hack PHP
customer info editor scripts. See #13.

Location:
trunk/cgi-bin
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/admin.cgi

    r370 r398  
    112112<a href="freespace.pl">Free space</a>:  List total and aggregate free space.  Does not
    113113include private networks (192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8)
     114<hr>(r)WHOIS<br>
     115<a href="list-cust.php">List customer data for WHOIS</a> - data used for blocks with the SWIP box checkmarked.
     116Links to edit/add data are on this page.
    114117);
    115118} else {
  • trunk/cgi-bin/editcust.php

    r343 r398  
    2020<form action=updatecust.php method=post>
    2121<?
    22   $db_conn = pg_connect("dbname=ipdb user=ipdb password=ipdbpwd");
     22  $db_conn = pg_connect("dbname=ipdb user=ipdb password=ipdbpwd host=ipdb-db");
    2323
    2424  if (!$db_conn) {
    2525    echo ("<H1>Failed connection to db ipdb.  Can't continue.</H1>");
     26    echo "db err: ". pg_last_error() ."\n";
    2627    exit;
    2728  }
  • trunk/cgi-bin/list-cust.php

    r343 r398  
    2727</form>
    2828<?
    29   $db_conn = pg_connect("dbname=ipdb user=ipdb password=ipdbpwd");
     29  $db_conn = pg_connect("dbname=ipdb user=ipdb password=ipdbpwd host=ipdb-db");
    3030
    3131  if (!$db_conn) {
    3232    echo ("<H1>Failed connection to db ipdb.  Can't continue.</H1>");
     33    echo "db err: ". pg_last_error() ."\n";
    3334    exit;
    3435  }
Note: See TracChangeset for help on using the changeset viewer.