Changeset 20 for action.php


Ignore:
Timestamp:
Oct 2, 2008, 9:38:57 PM (16 years ago)
Author:
maron
Message:

Vlastní výběr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • action.php

    r16 r20  
    88    echo 'Pøeklad byl smazán!';   
    99      WriteLog('Pøeklad smazán! <a href="form.php?ID='.$QuestID.'">'.$QuestID.'</a>', 4);
     10  }
     11
     12  if (array_key_exists('type_translation', $_POST) and Licence(1)) {
     13    if (array_key_exists('1', $_POST))
     14      $check = 1;     
     15    else $check = 0;
     16    $ID_translation = $_POST['ID_translation'];       
     17    $type_translation = $_POST['type_translation'];       
     18    $Database->SQLCommand("DELETE FROM tag WHERE  ID_user = ".$_SESSION['UserID']." AND ID_translation = $ID_translation AND type_translation = $type_translation");
     19    $Database->SQLCommand("INSERT INTO `tag` ( `type_translation` , `ID_translation` , `ID_user` , `tag` )
     20      VALUES ('$type_translation', '$ID_translation', '".$_SESSION['UserID']."', '$check')");
     21    echo 'Pøeklad oznaèen!';   
     22    if ($type_translation == 1)
     23      WriteLog('Pøeklad oznaèen: '.$check.' <a href="form.php?ID='.$ID_translation.'">'.$ID_translation.'</a>', 5);
     24    if ($type_translation == 2)
     25      WriteLog('Pøeklad oznaèen: '.$check.' <a href="npc_form.php?ID='.$ID_translation.'">'.$ID_translation.'</a>', 5);
     26    if ($type_translation == 3)
     27      WriteLog('Pøeklad oznaèen: '.$check.' <a href="page_form.php?ID='.$ID_translation.'">'.$ID_translation.'</a>', 5);
    1028  }
    1129
Note: See TracChangeset for help on using the changeset viewer.