Changeset 377 for trunk


Ignore:
Timestamp:
Mar 11, 2010, 8:58:58 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Nenačítat uživatele pokud nejsou aktivní session.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r376 r377  
    2323  { 
    2424    $DbResult = $this->Database->query('SELECT * FROM `Export` WHERE `Id`='.$this->Id);
     25    if($DbResult->num_rows == 0) die('Export '.$this->Id.' neexistuje');
    2526    $this->Export = $DbResult->fetch_assoc();
    2627
  • trunk/export/process_aowow_export.php

    r366 r377  
    88
    99LoadCommandLineParameters();
    10 
    11 
    1210
    1311if(!array_key_exists('AoWoWExportId', $Config)) die('You have to specify ExportId in your config file.');
  • trunk/includes/global.php

    r376 r377  
    3232$System->Init();
    3333$User = new User();
    34 $User->Restore();
    3534
    3635function GetMicrotime()
  • trunk/includes/user.php

    r376 r377  
    1818  function __construct()
    1919  {
    20     $this->Restore();   
     20    if(isset($_SESSION)) $this->Restore();   
    2121  }
    2222 
    2323  function __destroy()
    2424  {
    25     $this->Store();
     25    if(isset($_SESSION)) $this->Store();
    2626  }
    2727 
Note: See TracChangeset for help on using the changeset viewer.