Changeset 16 for npc_action.php
- Timestamp:
- Sep 30, 2008, 10:24:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
npc_action.php
r4 r16 8 8 echo 'NPC_text byl smazán!'; 9 9 WriteLog('NPC_text smazán! <a href="form.php?ID='.$npc_ID.'">'.$npc_ID.'</a>', 6); 10 } 11 12 if (array_key_exists('admin_check', $_GET) and Licence(1)) { 13 $ID = $_GET['ID']; 14 $admin_check = $_GET['admin_check']; 15 $entry = mysql_fetch_array($Database->SQLCommand("SELECT entry FROM npc_text Where ID = $ID")); 16 $Database->SQLCommand("UPDATE npc_text SET admin_check = '0' WHERE entry = '".$entry['entry']."' AND Language <> '0'"); 17 $Database->SQLCommand("UPDATE npc_text SET admin_check = '$admin_check' WHERE ID = '$ID' AND Language <> '0'"); 18 if ($admin_check = 1) { 19 echo 'Pøeklad byl zkontrolován!'; 20 WriteLog('Pøeklad byl zkontrolován! <a href="form.php?ID='.$ID.'">'.$ID.'</a>', 4); 21 } else { 22 echo 'U pøekladu bylo zrueno zkontrolování!'; 23 WriteLog('U pøekladu bylo zrueno zkontrolování! <a href="form.php?ID='.$ID.'">'.$ID.'</a>', 4); 24 } 10 25 } 11 26
Note:
See TracChangeset
for help on using the changeset viewer.