Changeset 72


Ignore:
Timestamp:
Aug 23, 2009, 6:37:45 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Doplněny další Controllery.
Location:
trunk/www/Application
Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Controller/HomePage.php

    r71 r72  
    3737    if(array_key_exists('Action', $_GET))
    3838    {
    39       if($_GET['Action'] == 'EmulatorShow')
    40       {
    41         $EmulatorView = new EmulatorView($this->Database, $this->System);
    42         $Output .= $EmulatorView->Item();
    43       } else
    44       if($_GET['Action'] == 'EmulatorList')
    45       {
    46         $EmulatorView = new EmulatorView($this->Database, $this->System);
    47         $Output .= $EmulatorView->ItemList();
    48       } else
    49       if($_GET['Action'] == 'EmulatorCompile')
    50       {
    51         $EmulatorView = new EmulatorView($this->Database, $this->System);
    52         $Output .= $EmulatorView->Compile();
    53       } else
    54       if($_GET['Action'] == 'EmulatorDownload')
    55       {
    56         $EmulatorView = new EmulatorView($this->Database, $this->System);
    57         $Output .= $EmulatorView->Download();
    58       } else
    59       if($_GET['Action'] == 'EmulatorAdd')
    60       {
    61         $EmulatorView = new EmulatorView($this->Database, $this->System);
    62         $Output .= $EmulatorView->Add();
    63       } else
    64       if($_GET['Action'] == 'EmulatorAdd2')
    65       {
    66         $EmulatorView = new EmulatorView($this->Database, $this->System);
    67         $Output .= $EmulatorView->AddFinish();
    68       } else     
    69       if($_GET['Action'] == 'ClientList')
    70       {
    71         $ClientView = new ClientView($this->Database, $this->System);
    72         $Output .= $ClientView->ItemList();
    73       } else     
    7439      if($_GET['Action'] == 'BackupList')
    7540      {
    7641        $BackupView = new BackupView($this->Database, $this->System);
    7742        $Output .= $BackupView->ItemList();
    78       } else     
    79       if($_GET['Action'] == 'DebugView')
    80       {
    81         $DebugView = new DebugView($this->Database, $this->System);
    82         $Output .= $DebugView->Item();
    83       } else     
    84       if($_GET['Action'] == 'DebugList')
    85       {
    86         $DebugView = new DebugView($this->Database, $this->System);
    87         $Output .= $DebugView->ItemList();
    8843      } else     
    8944      if($_GET['Action'] == 'UpdateList')
     
    10762        $Output .= $BackupView->Download();
    10863      } else     
    109       if($_GET['Action'] == 'TaskList')
    110       {
    111         $TaskView = new TaskView($this->Database, $this->System);
    112         $Output .= $TaskView->ItemList();
    113       } else     
    114       if($_GET['Action'] == 'TaskShowErrorLog')
    115       {
    116         $TaskView = new TaskView($this->Database, $this->System);
    117         $Output .= $TaskView->ErrorLog();
    118       } else     
    119       if($_GET['Action'] == 'TaskShowStandardLog')
    120       {
    121         $TaskView = new TaskView($this->Database, $this->System);
    122         $Output .= $TaskView->StandardLog();
    123       } else     
    12464      if($_GET['Action'] == 'Update')
    12565      {
     
    12767        $Output .= $UpdateView->Update();
    12868      } else     
    129       if($_GET['Action'] == 'NewsAdd')
    130       {
    131         $NewsView = new NewsView($this->Database, $this->System);
    132         $Output .= $NewsView->Add();
    133       } else     
    134       if($_GET['Action'] == 'NewsAdd2')
    135       {
    136         $NewsView = new NewsView($this->Database, $this->System);
    137         $Output .= $NewsView->AddFinish();
    138       } else     
    139       if($_GET['Action'] == 'EmulatorShow')
    140       {
    141         $EmulatorView = new EmulatorView($this->Database, $this->System);
    142         $Output .= $EmulatorView->Item();
    143       } else
    144       if($_GET['Action'] == 'State')
    145       {
    146         $BaseView = new BaseView($this->Database, $this->System);
    147         $Output .= $BaseView->State();
    148       } else
    149       if($_GET['Action'] == 'RealmList')
    150       {
    151         $RealmView = new RealmView($this->Database, $this->System);
    152         $Output .= $RealmView->ItemList();
    153       } else
    154       if($_GET['Action'] == 'RealmShow')
    155       {
    156         $RealmView = new RealmView($this->Database, $this->System);
    157         $Output .= $RealmView->Item();
    158       } else
    159       if($_GET['Action'] == 'RealmAdd')
    160       {
    161         $RealmView = new RealmView($this->Database, $this->System);
    162         $Output .= $RealmView->Add();
    163       } else
    164       if($_GET['Action'] == 'RealmCreate')
    165       {
    166         $RealmView = new RealmView($this->Database, $this->System);
    167         $Output .= $RealmView->Create();
    168       } else
    169       if($_GET['Action'] == 'RealmInitDatabase')
    170       {
    171         $RealmView = new RealmView($this->Database, $this->System);
    172         $Output .= $RealmView->InitDatabase();
    173       } else
    174       if($_GET['Action'] == 'RealmEdit')
    175       {
    176         $RealmView = new RealmView($this->Database, $this->System);
    177         $Output .= $RealmView->Edit();
    178       } else
    179       if($_GET['Action'] == 'RealmSave')
    180       {
    181         $RealmView = new RealmView($this->Database, $this->System);
    182         $Output .= $RealmView->Save();
    183       } else
    184       if($_GET['Action'] == 'RealmEditDetailed')
    185       {
    186         $RealmView = new RealmView($this->Database, $this->System);
    187         $Output .= $RealmView->EditDetailed();
    188       } else
    189       if($_GET['Action'] == 'RealmSaveDetailed')
    190       {
    191         $RealmView = new RealmView($this->Database, $this->System);
    192         $Output .= $RealmView->SaveDetailed();
    193       } else
    194       if($_GET['Action'] == 'RealmStart')
    195       {
    196         $RealmView = new RealmView($this->Database, $this->System);
    197         $Output .= $RealmView->Start();
    198       } else
    199       if($_GET['Action'] == 'RealmStop')
    200       {
    201         $RealmView = new RealmView($this->Database, $this->System);
    202         $Output .= $RealmView->Stop();
    203       } else
    204       if($_GET['Action'] == 'UpdateRealmCharacters')
    205       {
    206         $Server = new Server($this->Database, $_GET['Id']);
    207         $Output .= $Server->UpdateRealmlistAccountCount();
    208       } else
    209       if($_GET['Action'] == 'Test')
    210       {
    211         //$Emulator = new Emulator($this->Database, 2);
    212         //  $Emulator->Compile();
    213         //$Server = new Server($this->Database, 1);
    214         //$Output .= $Server->ImportDatabase();
    215         //$Config = new MangosConfigurationFile($this->Database);
    216         //$Config->Load('../emu/mangos/7681/etc/mangosd.conf');
    217         //$Config->Save('../server/1/etc/mangosd.conf');
    218       } else
    219       {
    220         $BaseView = new BaseView($this->Database, $this->System);
    221         $Output .= $BaseView->Welcome();
    222       }
    223     } else
    224     {
    225       $BaseView = new BaseView($this->Database, $this->System);
    226       $Output .= $BaseView->Welcome();
    227     }
    22869   
    22970    $BaseView = new BaseView($this->Database, $this->System);
  • trunk/www/Application/Controller/Include.php

    r71 r72  
    55include('Application/Controller/Server.php');
    66include('Application/Controller/User.php');
     7include('Application/Controller/Client.php');
     8include('Application/Controller/Emulator.php');
     9include('Application/Controller/Task.php');
     10include('Application/Controller/News.php');
     11include('Application/Controller/Debug.php');
    712
    813?>
  • trunk/www/Application/Controller/Realm.php

    r69 r72  
    33class RealmController extends Controller
    44{
    5  
     5  function ItemList()
     6  {
     7    $Page = new PageView($this->System);
     8    $View = new RealmView($this->System);
     9    return($Page->GetOutput($View->ItemList()));
     10  }   
     11
     12  function Show()
     13  {
     14    $Page = new PageView($this->System);
     15    $View = new RealmView($this->System);
     16    return($Page->GetOutput($View->Item()));
     17  }   
     18
     19  function Add()
     20  {
     21    $Page = new PageView($this->System);
     22    $View = new RealmView($this->System);
     23    return($Page->GetOutput($View->Add()));
     24  }   
     25
     26  function Create()
     27  {
     28    $Page = new PageView($this->System);
     29    $View = new RealmView($this->System);
     30    return($Page->GetOutput($View->Create()));
     31  }   
     32
     33  function InitDatabase()
     34  {
     35    $Page = new PageView($this->System);
     36    $View = new RealmView($this->System);
     37    return($Page->GetOutput($View->InitDatabase()));
     38  }   
     39     
     40  function Edit()
     41  {
     42    $Page = new PageView($this->System);
     43    $View = new RealmView($this->System);
     44    return($Page->GetOutput($View->Edit()));
     45  }   
     46
     47  function Save()
     48  {
     49    $Page = new PageView($this->System);
     50    $View = new RealmView($this->System);
     51    return($Page->GetOutput($View->Save()));
     52  }   
     53
     54  function EditDetailed()
     55  {
     56    $Page = new PageView($this->System);
     57    $View = new RealmView($this->System);
     58    return($Page->GetOutput($View->EditDetailed()));
     59  }   
     60
     61  function SaveDetailed()
     62  {
     63    $Page = new PageView($this->System);
     64    $View = new RealmView($this->System);
     65    return($Page->GetOutput($View->SaveDetailed()));
     66  }   
     67   
     68  function Start()
     69  {
     70    $Page = new PageView($this->System);
     71    $View = new RealmView($this->System);
     72    return($Page->GetOutput($View->Start()));
     73  }   
     74
     75  function Stop()
     76  {
     77    $Page = new PageView($this->System);
     78    $View = new RealmView($this->System);
     79    return($Page->GetOutput($View->Stop()));
     80  }   
     81
     82  function UpdateCharacters()
     83  {
     84    $Page = new PageView($this->System);
     85    $View = new RealmView($this->System);
     86    return($Page->GetOutput($View->UpdateRealmlistAccountCount()));
     87  }   
    688}
    789
  • trunk/www/Application/View/Debug.php

    r69 r72  
    2828  function ShowListOnRow($Row)
    2929  {
    30     $Row['Time'] = '<a href="?Action=DebugView&amp;Id='.$Row['Id'].'&amp;Show=Backtrace">'.str_replace(' ', '&nbsp;', $Row['Time']).'</a>';
     30    $Row['Time'] = '<a href="?Module=Debug&amp;Action=View&amp;Id='.$Row['Id'].'&amp;Show=Backtrace">'.str_replace(' ', '&nbsp;', $Row['Time']).'</a>';
    3131    $Row['Uptime'] = TimeToHumanTime($Row['Uptime']);
    3232    return($Row);
     
    6969   
    7070    $MangosDebug = new MangosDebug($this->Database, $this->System);
    71     $Form = new Form($this->ItemFormClass);
     71    $Form = new Form($this->System, $this->ItemFormClass);
    7272    if($Form->LoadValuesFromDatabase($_GET['Id']))
    7373    {
     
    7575        $Output .= $Form->ShowTable();
    7676     
    77         $Output .= '<a href="?Action=DebugView&amp;Id='.$_GET['Id'].'&amp;Show=Backtrace">Backtrace</a>'.
    78           '  <a href="?Action=DebugView&amp;Id='.$_GET['Id'].'&amp;Show=Log">Mangos log</a>'.
    79           '  <a href="?Action=DebugView&amp;Id='.$_GET['Id'].'&amp;Show=Error">Console error log</a>'.
    80           '  <a href="?Action=DebugView&amp;Id='.$_GET['Id'].'&amp;Show=DbErrors">Database error log</a>'.
    81           '  <a href="?Action=DebugView&amp;Id='.$_GET['Id'].'&amp;Show=Configuration">Mangos configuration</a>'.
     77        $Output .= '<a href="?Module=Debug&amp;Action=View&amp;Id='.$_GET['Id'].'&amp;Show=Backtrace">Backtrace</a>'.
     78          '  <a href="?Module=Debug&amp;Action=View&amp;Id='.$_GET['Id'].'&amp;Show=Log">Mangos log</a>'.
     79          '  <a href="?Module=Debug&amp;Action=View&amp;Id='.$_GET['Id'].'&amp;Show=Error">Console error log</a>'.
     80          '  <a href="?Module=Debug&amp;Action=View&amp;Id='.$_GET['Id'].'&amp;Show=DbErrors">Database error log</a>'.
     81          '  <a href="?Module=Debug&amp;Action=View&amp;Id='.$_GET['Id'].'&amp;Show=Configuration">Mangos configuration</a>'.
    8282          '<hr>';
    8383        if(array_key_exists('Show', $_GET))
  • trunk/www/Application/View/Emulator.php

    r69 r72  
    4343    foreach($Table->Values as $Index => $Item)
    4444    {
    45       $Table->Values[$Index]['Actions'] = '<a href="?Action=EmulatorShow&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
     45      $Table->Values[$Index]['Actions'] = '<a href="?Module=Emulator&amp;Action=Show&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
    4646      unset($Table->Values[$Index]['Id']);
    4747    }
     
    4949    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    5050    {
    51       $Output .= '<br /><div style="text-align: center;"><a href="?Action=EmulatorAdd">Přidat emulátor</a></dev>';     
     51      $Output .= '<br /><div style="text-align: center;"><a href="?Module=Emulator&amp;Action=Add">Přidat emulátor</a></dev>';     
    5252    }
    5353    return($Output);
     
    5959    //$Server = new Server($this->Database, $Id);
    6060    $Output = '<h4>Podrobnosti emulátoru</h4>';
    61     $Form = new Form($this->ItemFormClass);
     61    $Form = new Form($this->System, $this->ItemFormClass);
    6262    $Form->LoadValuesFromDatabase($Id);
    6363    $Output .= $Form->ShowTable();
     
    6666    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    6767    {
    68       if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Action=EmulatorDownload&amp;Id='.$Id.'">Stáhnout</a>';
    69       if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Action=EmulatorCompile&amp;Id='.$Id.'">Přeložit</a>';
     68      if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&amp;Action=Download&amp;Id='.$Id.'">Stáhnout</a>';
     69      if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&amp;Action=Compile&amp;Id='.$Id.'">Přeložit</a>';
    7070    }
    7171    $Output .= '</div>';
     
    7777    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    7878    {
    79       $Form = new Form($this->ItemFormClass);
     79      $Form = new Form($this->System, $this->ItemFormClass);
    8080      $Form->LoadValuesFromForm();
    81       $Form->OnSubmit = '?Action=EmulatorAdd2';
     81      $Form->OnSubmit = '?Module=Emulator&amp;Action=AddFinish';
    8282      $Output = $Form->ShowEditForm();
    8383    } else $Output = USER_BAD_ROLE;
     
    8989    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    9090    {
    91       $Form = new Form($this->ItemFormClass);
     91      $Form = new Form($this->System, $this->ItemFormClass);
    9292      $Form->LoadValuesFromForm();
    9393      $Form->SaveValuesToDatabase(0);
  • trunk/www/Application/View/News.php

    r69 r72  
    1616    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    1717    {
    18       $Form = new Form($this->ItemFormClass);
     18      $Form = new Form($this->System, $this->ItemFormClass);
    1919      $Form->LoadValuesFromForm();
    2020      $Form->Values['Time'] = 'NOW()';
     
    3030    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    3131    {
    32       $Form = new Form($this->ItemFormClass);
    33       $Form->OnSubmit = '?Action=NewsAdd2';
     32      $Form = new Form($this->System, $this->ItemFormClass);
     33      $Form->OnSubmit = '?Module=News&amp;Action=AddFinish';
    3434      $Output = $Form->ShowEditForm();
    3535    } else $Output = USER_BAD_ROLE;
  • trunk/www/Application/View/Realm.php

    r69 r72  
    118118    foreach($Table->Values as $Index => $Item)
    119119    {
    120      $Table->Values[$Index]['Actions'] = '<a href="?Action=RealmShow&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
     120     $Table->Values[$Index]['Actions'] = '<a href="?Module=Realm&amp;Action=Show&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
    121121     unset($Table->Values[$Index]['Id']);
    122122    }
     
    130130      //$DbRow = $DbResult->fetch_row();
    131131      if(($RealmCount < $Config['MaxRealmPerServerCount']))
    132         $Output .= '<br /><div style="text-align: center;"><a href="?Action=RealmAdd">Vytvořit nový svět</a></dev>';     
     132        $Output .= '<br /><div style="text-align: center;"><a href="?Module=Realm&amp;Action=Add">Vytvořit nový svět</a></dev>';     
    133133    }
    134134    return($Output);
     
    144144    //{
    145145    $Output = '<h4>Podrobnosti světa</h4>';
    146     $Form = new Form($this->ItemFormClass);
     146    $Form = new Form($this->System, $this->ItemFormClass);
    147147    $Form->LoadValuesFromDatabase($Id);
    148148    $Form->Definition['Items']['Uptime'] = array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => '');
     
    159159      if(array_key_exists('Id', $Realm->Data['Database']) and ($Realm->Data['Lock'] == 0))
    160160      {
    161         if($RealmStatus['WorlddPortState'] == true) $Output .= ' <a href="?Action=RealmStop&amp;Id='.$Realm->Id.'">Zastavit</a>  <a href="?Action=RealmRestart&amp;Id='.$Realm->Id.'">Restartovat</a>';
    162           else $Output .= ' <a href="?Action=RealmStart&amp;Id='.$Realm->Id.'">Spustit</a>';
     161        if($RealmStatus['WorlddPortState'] == true) $Output .= ' <a href="?Module=Realm&amp;Action=Stop&amp;Id='.$Realm->Id.'">Zastavit</a>  <a href="?Module=Realm&amp;Action=Restart&amp;Id='.$Realm->Id.'">Restartovat</a>';
     162          else $Output .= ' <a href="?Module=Realm&amp;Action=Start&amp;Id='.$Realm->Id.'">Spustit</a>';
    163163      }
    164164      if($Realm->Data['Lock'] == 0)
    165165      {
    166         $Output .= ' <a href="?Action=RealmEdit&amp;Id='.$Realm->Id.'">Upravit základní nastavení</a>';
    167         $Output .= ' <a href="?Action=RealmEditDetailed&amp;Id='.$Realm->Id.'">Upravit podrobné nastavení</a>';
    168         $Output .= ' <a href="?Action=RealmInitDatabase&amp;Id='.$Realm->Id.'">Vynulovat databázi</a>';
     166        $Output .= ' <a href="?Module=Realm&amp;Action=Edit&amp;Id='.$Realm->Id.'">Upravit základní nastavení</a>';
     167        $Output .= ' <a href="?Module=Realm&amp;Action=EditDetailed&amp;Id='.$Realm->Id.'">Upravit podrobné nastavení</a>';
     168        $Output .= ' <a href="?Module=Realm&amp;Action=InitDatabase&amp;Id='.$Realm->Id.'">Vynulovat databázi</a>';
    169169      }
    170       $Output .= ' <a href="?Action=DebugList&amp;Id='.$Realm->Id.'">Ladící informace</a>';
     170      $Output .= ' <a href="?Module=Debug&amp;Action=ItemList&amp;Id='.$Realm->Id.'">Ladící informace</a>';
    171171      //$Output .= ' <a href="?Action=ServerDatabaseImport&amp;Id='.$Server->Id.'">Načtení čisté databáze</a>';
    172172    }
     
    193193        else
    194194        {
    195           $Form = new Form($this->CreateFormClass);
     195          $Form = new Form($this->System, $this->CreateFormClass);
    196196          $Form->LoadValuesFromForm();
    197           $Form->OnSubmit = '?Action=RealmCreate&amp;Id='.$ServerId;
     197          $Form->OnSubmit = '?Module=Realm&amp;Action=Create&amp;Id='.$ServerId;
    198198          $Output .= 'Tento formulář vám umožní si vytvořit nový svět. Pečlivě vyplňte požadované údaje.';
    199199          $Output .= $Form->ShowEditForm();
     
    223223        if($NewPortWorldd < $Config['BaseNetworkPortWorldd']) $NewPortWorldd = $Config['BaseNetworkPortWorldd'];
    224224           
    225         $Form = new Form($this->CreateFormClass, array());
     225        $Form = new Form($this->System, $this->CreateFormClass, array());
    226226        $Form->LoadValuesFromForm();
    227227        $this->Database->insert('Realm', array('Name' => $Form->Values['Name'], 'Description' => $Form->Values['Description'], 'Server' => $ServerId, 'Motd' => $Form->Values['Motd'], 'Homepage' => $Form->Values['Homepage'], 'Type' => $Form->Values['Type'], 'Database' => $Form->Values['Database'], 'NetworkPortWorldd' => $NewPortWorldd, 'Lock' => 1, 'TimeCreate' => 'NOW()'));
     
    247247    if(($this->System->Modules['User']->User['Id'] == $Realm->GetUser()) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    248248    {
    249       $Form = new Form($this->EditFormClass, array());
     249      $Form = new Form($this->System, $this->EditFormClass, array());
    250250      $Form->LoadValuesFromForm();
    251251      $RealmId = $_POST['RealmId'];
     
    253253      $Output .= $this->System->SystemMessage('Upravit svět', 'Nastavení světa uloženo.');
    254254      $Form->SaveValuesToDatabase($_POST['RealmId']);
    255       $Form->OnSubmit = '?Action=RealmSave';
     255      $Form->OnSubmit = '?Module=Realm&amp;Action=Save';
    256256       
    257257      $Realm = new Realm($this->Database, $_POST['RealmId']);
     
    269269    if(($this->System->Modules['User']->User['Id'] == $Realm->GetUser()) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    270270    {
    271       $Form = new Form($this->EditFormClass);
     271      $Form = new Form($this->System, $this->EditFormClass);
    272272      $Form->LoadValuesFromDatabase($_GET['Id']);
    273273      $Form->Values['RealmId'] = $_GET['Id'];
    274       $Form->OnSubmit = '?Action=RealmSave';
     274      $Form->OnSubmit = '?Module=Realm&amp;Action=Save';
    275275      $Output .= $Form->ShowEditForm();
    276276    } else $Output = $this->System->SystemMessage('Nastavení světa', 'Nemáte oprávnění');
     
    284284    if(($this->System->Modules['User']->User['Id'] == $Realm->GetUser()) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    285285    {
    286       $Form = new Form($this->SettingDetailedFormClass);
     286      $Form = new Form($this->System, $this->SettingDetailedFormClass);
    287287      $EmulatorConfig = new MangosConfigurationFile($this->Database);
    288288      $EmulatorConfig->Load('../realm/'.$Realm->Id.'/etc/mangosd.conf');
     
    291291        $Form->Values[str_replace('.', '_', $Index)] = $Item;
    292292      $Form->Values['RealmId'] = $_GET['Id'];
    293       $Form->OnSubmit = '?Action=RealmSaveDetailed';
     293      $Form->OnSubmit = '?Module=Realm&amp;Action=SaveDetailed';
    294294      $Output .= $Form->ShowEditForm();
    295295    } else $this->System->SystemMessage('Nastavení světa', 'Nemáte oprávnění');
     
    303303    if(($this->System->Modules['User']->User['Id'] == $Realm->GetUser()) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
    304304    {
    305       $Form = new Form($this->SettingDetailedFormClass, array());
     305      $Form = new Form($this->System, $this->SettingDetailedFormClass, array());
    306306      $Form->LoadValuesFromForm();
    307307      $EmulatorConfig = new MangosConfigurationFile($this->Database);
     
    318318      $Output .= $this->System->SystemMessage('Upravit svět', 'Nastavení světa uloženo.');
    319319      //$Form->SaveValuesToDatabase($_POST['ServerId']);
    320       $Form->OnSubmit = '?Action=RealmSaveDetailed';
     320      $Form->OnSubmit = '?Module=Realm&amp;Action=SaveDetailed';
    321321       
    322322      $Realm = new Realm($this->Database, $_POST['RealmId']);
  • trunk/www/Application/View/Task.php

    r69 r72  
    3737      foreach($Table->Values as $Index => $Item)
    3838      {
    39         $Table->Values[$Index]['Actions'] = '<a href="?Action=TaskShowErrorLog&amp;Id='.$Item['Id'].'">Výpis chyb</a> <a href="?Action=TaskShowStandardLog&amp;Id='.$Item['Id'].'">Výpis výstupu</a> ';
     39        $Table->Values[$Index]['Actions'] = '<a href="?Module=Task&amp;Action=ErrorLog&amp;Id='.$Item['Id'].'">Výpis chyb</a> <a href="?Module=Task&amp;Action=StandardLog&amp;Id='.$Item['Id'].'">Výpis výstupu</a> ';
    4040        unset($Table->Values[$Index]['Id']);
    4141      }
Note: See TracChangeset for help on using the changeset viewer.