Changeset 11 for index.php


Ignore:
Timestamp:
Aug 11, 2007, 12:04:22 AM (17 years ago)
Author:
george
Message:

Sjednocení parametrů připojení k databázi do jednoho souboru config.php.
Přepsání všech cest na relativní.
Přidání parametru BaseUrl do souboru config.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r5 r11  
    3737<tr>
    3838<td>MaNGOS TBC</td>
    39 <td><? if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td>
     39<td><?php if(CheckPortStatus($WoWServer, 8085)) echo('<span style="color: #33ff33;">ONLINE</span>'); else echo('<span style="color: red;">OFFLINE</span>'); ?></td>
    4040<td><a href="<?php echo('http://'.$WoWServer); ?>/online_player.php"><? echo(file_get_contents('http://'.$WoWServer.'/mangos/players.php')); ?></a></td>
    4141<td><a href="jak_zacit.php">zde</a></td>
    42 <td><?  include('registrace/LockRegistration/script.php');
    43         AdresaRegistrace();
     42<td><?php echo('<a href="'.$BaseUrl.'registrace/">zde</a>');
     43 //include('registrace/LockRegistration/script.php');
     44        //AdresaRegistrace();
    4445       ?></td>
    45 <td><? StafRegistraci(); 
     46<td><?php echo('POVOLENÉ');
     47//StafRegistraci(); 
    4648?></td>
    47 <td><? echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td>
    48 <td><? echo(file_get_contents('http://'.$WoWServer.'/mangos/accounts.php')); ?></td>
    49 <td><? echo(file_get_contents('http://'.$WoWServer.'/mangos/characters.php')); ?></td>
     49<td><?php echo(round((time()-mktime (0,0,0,4,21,2007))/3600/24)); ?></td>
     50<td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/accounts.php')); ?></td>
     51<td><?php echo(file_get_contents('http://'.$WoWServer.'/mangos/characters.php')); ?></td>
    5052</tr>
    5153</table>
     
    6062<div><?php
    6163    include 'administrace/SubFiles/DatabaseConection.php';
    62     $Database = new Database('localhost','root','gurubashi');
     64    $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword);
    6365    $Database->SelectDatabase('wow');
    6466
Note: See TracChangeset for help on using the changeset viewer.