Changeset 355


Ignore:
Timestamp:
Jan 18, 2012, 9:32:41 AM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Nekompletní modul procházení sdílených složek převeden na systémový modul.
Location:
trunk
Files:
2 added
3 deleted
1 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/SharePage.php

    r348 r355  
    11<?php
    2 
    3 include('../global.php');
    42
    53class SharePage extends Page
     
    9997    //if($keyword != '') $view = '';
    10098
    101     $this->Database->select_db('share');
     99    //$this->Database->select_db('share');
    102100
    103101    // Log search
     
    106104
    107105    // Zobrazení formuláře
    108     $Output = '<form action="'.$this->System->Config['Web']['RootFolder'].'/share/" method="post">
     106    $Output = '<form action="?" method="post">
    109107    <input type="hidden" name="view" value="">
    110108    <input type="hidden" name="page" value="0">
     
    184182
    185183    // Omezení na online/offline uživatele
    186     $this->Database->select_db('is');
     184    //$this->Database->select_db('is');
    187185    if($online == 'on') $DbResult = $this->Database->query('SELECT id FROM hosts WHERE online=1 AND user>0');
    188186    else $DbResult = $this->Database->query('SELECT id FROM hosts');
     
    191189    $Podminka .= ' AND (host IN ('.substr($Vyber, 0, -1).'))';
    192190    //echo($Podminka.'<br>');
    193     $this->Database->select_db('share');
     191    //$this->Database->select_db('share');
    194192
    195193    //ShowTime();
     
    321319}
    322320
    323 $System->AddModule(new SharePage());
    324 $System->Modules['SharePage']->GetOutput();
    325 
    326321?>
  • trunk/global.php

    r351 r355  
    204204  $System = new System($Database);
    205205  $System->Config = &$Config;
    206   //$System->ReloadList();
    207   //$System->Install();
     206  $System->ReloadList();
     207  $System->Install();
    208208  $System->Init();
    209209  if(isset($_SERVER['REMOTE_ADDR'])) $System->Models['User']->Check();
Note: See TracChangeset for help on using the changeset viewer.