Changeset 712 for trunk/inc/system.php


Ignore:
Timestamp:
Jul 30, 2013, 11:34:19 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Aktualizace inicializačního skriptu pro sql databázi na revizi 710.
  • Upraveno: Aktualizována třída Database na novější využívající třídu PDO a generující výjímky při chybě, které je pak nutno očetřit.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        55minimanager
        66mmfpm
         7.settings
         8.buildpath
         9.project
  • trunk/inc/system.php

    r695 r712  
    4747  function OpenLogonServerDatabase()
    4848  {
    49     $Database = new Database($this->Config['Mangos']['DatabaseHost'], $this->Config['Mangos']['DatabaseUser'], $this->Config['Mangos']['DatabasePassword'], $this->Config['Mangos']['DatabaseRealmd']);
     49    $Database = new Database();
     50    $Database->Connect($this->Config['Mangos']['DatabaseHost'], $this->Config['Mangos']['DatabaseUser'], $this->Config['Mangos']['DatabasePassword'], $this->Config['Mangos']['DatabaseRealmd']);
    5051    if(mysqli_connect_error())
    5152    {
     
    5859  function OpenWebDatabase()
    5960  {
    60     $Database = new Database($this->Config['Database']['Host'], $this->Config['Database']['User'], $this->Config['Database']['Password'], $this->Config['Database']['Database']);
     61    $Database = new Database();
     62    $Database->Connect($this->Config['Database']['Host'], $this->Config['Database']['User'], $this->Config['Database']['Password'], $this->Config['Database']['Database']);
    6163    if(mysqli_connect_error())
    6264    {
Note: See TracChangeset for help on using the changeset viewer.