Changeset 7 for scripts


Ignore:
Timestamp:
Jun 4, 2008, 11:02:50 AM (16 years ago)
Author:
george
Message:

Opraveno: Nemožnost editace serveru s názvem obsaženým v jiném názvu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/online.php

    r6 r7  
    11<?php
    22
    3 require ('../includes/config.php');
     3include('../includes/config.php');
    44
    5 $Database = new mysqli($db_config['host'], $db_config['user'], $db_config['pass']);
    6 $Database->select_db($db_config['name']);
     5$Database = new mysqli($db_config['host'], $db_config['user'], $db_config['pass'], $db_config['name']);
     6
     7if(mysqli_connect_errno())
     8{
     9  printf("Connect failed: %s\n", mysqli_connect_error());
     10  exit();
     11}
    712
    813function CheckPortStatus($Ip, $Port)
Note: See TracChangeset for help on using the changeset viewer.