Changeset 11 for administrace


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.

Location:
administrace
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • administrace/SubFiles/LoginMaster.php

    r5 r11  
    11<?php
     2
     3require_once('../../config.php');
     4
    25  $User = $_POST['user'];
    36  $Pass = $_POST['pass'];
    47
    58    include 'SubFiles/DatabaseConection.php';
    6     $Database = new Database('localhost','root','gurubashi'); // dodìlat IP
     9    $Database = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword);
    710    $Database->SelectDatabase('wow');
    811   
  • administrace/borec/GMlog.php

    r5 r11  
    11<?php
    2        include '../SubFiles/TestLicence.php';
     2
     3$GmCommandsLogFile = '/a/log/gm_commands.log';
     4include('../SubFiles/TestLicence.php');
    35?>
    46<TABLE width="100%" border="0">
     
    79<TD  width="100%" valign="top">
    810
    9 <?
     11<?php
     12$File = fopen($GmCommandsLogFile, 'r');
     13if($File)
     14{
     15  while(!feof($File)) echo(substr(fgets($File), 0).'<br>');
     16  fclose($File);
     17
    1018
    11 $File = fopen('c:\Mangos\Used_GM_Commands.log', 'r');
    12 fgets($File);
    13 while(!feof($File))
    14 echo(substr(fgets($File), 0).'<br>');
    1519?>
     20
    1621</table>
  • administrace/borec/zaznamPovolenychRegistraci.php

    r5 r11  
    11<?php
    2        include '../SubFiles/TestLicence.php';
     2  include '../SubFiles/TestLicence.php';
     3  include('../../config.php');
    34?>
    45<TABLE width="100%" border="0">
     
    78<TD  width="100%" valign="top">
    89
    9 <?
     10<?php
    1011
    11 $File = fopen('c:\www\LockRegistration\záznam.log', 'r');
    12 fgets($File);
    13 while(!feof($File))
    14 echo(substr(fgets($File), 0).'<br>');
     12echo(str_replace("\n", '<br>', (file_get_contents('../../registrace/LockRegistration/záznam.log'))));
     13
    1514?>
    1615</table>
  • administrace/george/gm_news.php

    r5 r11  
    11<?
    22include_once('db.php');
    3 DB_Init('localhost', 'root','gurubashi', 'wow');
     3include('../../config.php');
     4DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow');
    45//DB_Query('SET CHARACTER SET cp1250');
    56
  • administrace/george/list_tele.php

    r5 r11  
    11<?
    22include_once('db.php');
    3 DB_Init('localhost', 'root', '', 'mangos');
     3include('../../config.php');
     4DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'mangos');
    45DB_Query('SET CHARACTER SET cp1250');
    56
  • administrace/george/optimalize.php

    r5 r11  
    11<?php
    22include_once('db.php');
     3include_once('../../config.php');
    34
    45function OptimalizeDb($Database, $Op)
    56{
     7  global $DatabaseHost, $DatabaseUser, $DatabasePassword;
    68  echo('Databáze '.$Database.'...<br><table>');
    7   DB_Init('localhost', 'root', 'gurubashi', $Database);
     9  DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, $Database);
    810  DB_Query('SHOW TABLES');
    911  while($Table = DB_Row())
  • administrace/george/restarty.php

    r5 r11  
    22
    33include_once('db.php');
     4include_once('../../config.php');
    45echo('<strong>Posledních 10 restartù MaNGOSu:</strong><br>');
    56echo('<div style="font-size: small;">');
    6 DB_Init('localhost', 'root','gurubashi', 'wow');
     7DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow');
    78DB_Select('mangos_restart', '*', '1 ORDER BY time DESC LIMIT 10');
    89while($Row = DB_Row())
  • administrace/george/rss.php

    r5 r11  
    33
    44include_once('db.php');
     5include_once('../../config.php');
    56include_once('rss_generator.php');
    6 DB_Init('localhost', 'root', '', 'wow');
     7DB_Init($DatabaseHost, $DatabaseUser, $DatabasePassword, 'wow');
    78DB_Query('SET CHARACTER SET latin2');
    89
  • administrace/listmessage.php

    r5 r11  
    11<?php
    2        include 'SubFiles/TestLicence.php';
    32
    4     include 'SubFiles/DatabaseConection.php';
    5   $Database2 = new Database('localhost','root','gurubashi'); // dodìlat IP
    6   $Database2->SelectDatabase('wow');
     3include 'SubFiles/TestLicence.php';
     4include 'SubFiles/DatabaseConection.php';
     5include('../config.php');
     6
     7$Database2 = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); // dodìlat IP
     8$Database2->SelectDatabase('wow');
     9
    710?>
     11
    812<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    913<html>
  • administrace/master.php

    r5 r11  
    11<?php
     2include('../config.php');
    23        // Test zda je registrovaný uživatel
    34        session_start();
     
    7273              <A href="borec/cheat.php">cheat</A>
    7374              <br>Návody
    74               <A href="/navody/">zde</A>
     75              <A href="../navody/">zde</A>
    7576              <br>Povolené Registrace:
    7677              <A href="borec/zaznamPovolenychRegistraci.php">zde</A>
     
    9091          <td valign="top">
    9192<?php
    92   $Database2 = new Database('localhost','root','gurubashi'); // dodìlat IP
     93  $Database2 = new Database($DatabaseHost, $DatabaseUser, $DatabasePassword); // dodìlat IP
    9394  $Database2->SelectDatabase('mangos');
    9495
     
    138139        <TD width="100%" valign="top">
    139140          <form action="george/gm_news.php?action=add" method="post">
    140             Jste pøihlá‘en jako:
     141            Jste pøihlášen jako:
    141142            <b>
    142143              <?php echo @$_SESSION['User']; ?></b>
Note: See TracChangeset for help on using the changeset viewer.