Changeset 70 for trunk/save.php
- Timestamp:
- Feb 6, 2009, 9:20:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/save.php
r67 r70 33 33 if(!$Line) 34 34 { 35 $Columns = '`entry`, `Language` , `User` , `Complete` , `Take` , `Vote` , `CountVote`';36 $Values = $entry.','.$Language.','.$UserID.','.$complete.','.$TextID .', 3 ,1';35 $Columns = '`entry`, `Language` , `User` , `Complete` , `Take`'; 36 $Values = $entry.','.$Language.','.$UserID.','.$complete.','.$TextID; 37 37 foreach($TranslationTree[$GroupId]['Items'] as $GroupItem) 38 38 { … … 53 53 foreach($TranslationTree[$GroupId]['Items'] as $GroupItem) 54 54 $sql .= ', `'.$GroupItem['Column'].'`="'.@$_POST[$GroupItem['Column']].'"'; 55 $sql .= ', `Language` = '.$Language.', `Vote` = 3, `CountVote` = 1,admin_check = 055 $sql .= ', `Language` = '.$Language.', admin_check = 0 56 56 WHERE ID = '.$TextID.' AND Language <> 0'; 57 57 //echo($sql); … … 60 60 echo('Změny v překladu: <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a> uloženy!<br />'); 61 61 WriteLog('Změny v překladu: '.$entry.' uloženy! <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a>', 1); 62 $Database->SQLCommand('DELETE FROM `'.$Table.'_vote` WHERE `TextId` = '.$TextID);63 62 $type_translation = 1; 64 63 $ID_translation = $TextID;
Note:
See TracChangeset
for help on using the changeset viewer.