Changeset 549 for trunk/save.php


Ignore:
Timestamp:
Jun 18, 2013, 8:30:40 PM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Do hlavní nabídky lze přidávat položky na určitou pozici.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/save.php

    r536 r549  
    88
    99unset($Message);
    10 HandleLoginForm();
     10$System->ModuleManager->Modules['FrontPage']->HandleLoginForm();
    1111if(isset($Message)) $Output .= ShowMessage($Message, $MessageType);
    1212
     
    3131     
    3232      // Get data for english original
    33       $DbResult = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Entry`='.$SourceText['Entry'].') AND (`Language` = '.$Config['OriginalLanguage'].') AND (`VersionStart` = '.$SourceText['VersionStart'].') AND (`VersionEnd` = '.$SourceText['VersionEnd'].')');
     33      $DbResult = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Entry`='.$SourceText['Entry'].
     34        ') AND (`Language` = '.$Config['OriginalLanguage'].') AND (`VersionStart` = '.$SourceText['VersionStart'].
     35        ') AND (`VersionEnd` = '.$SourceText['VersionEnd'].')');
    3436      if($DbResult->num_rows > 0)
    3537      {
     
    4749        {         
    4850          // Get user translation paired to found english item entry
    49           $DbResult2 = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`User` = '.$User->Id.') AND (`Entry` = '.$EnglishFound['Entry'].') AND (`VersionStart` = '.$EnglishFound['VersionStart'].') AND (`VersionEnd` = '.$EnglishFound['VersionEnd'].')');
     51          $DbResult2 = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`User` = '.$User->Id.
     52                ') AND (`Entry` = '.$EnglishFound['Entry'].') AND (`VersionStart` = '.$EnglishFound['VersionStart'].
     53                ') AND (`VersionEnd` = '.$EnglishFound['VersionEnd'].')');
    5054          if($DbResult2->num_rows > 0)
    5155          {
Note: See TracChangeset for help on using the changeset viewer.