1 | <?php
|
---|
2 | include('Global.php');
|
---|
3 | ?>
|
---|
4 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
5 | <HTML>
|
---|
6 | <HEAD>
|
---|
7 | <META http-equiv="Content-Language" content="cs">
|
---|
8 | <META http-equiv="Content-Type" content="text/html; charset=windows-1250">
|
---|
9 | <META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
|
---|
10 | <link rel="SHORTCUT ICON" href="/images/favicon.ico">
|
---|
11 | <TITLE>WoW server Heroes of Fantasy - Projekt pøekládání Questù do CZ</TITLE>
|
---|
12 | </HEAD>
|
---|
13 | <html>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <?php
|
---|
17 | include('Panel.php');
|
---|
18 |
|
---|
19 | if(array_key_exists('inspect', $_GET)) {
|
---|
20 | $entry = mysql_escape_string($_GET['entry']);
|
---|
21 | $User = mysql_escape_string($_GET['user']);
|
---|
22 |
|
---|
23 | $Database->SQLCommand("UPDATE czquests SET state = '1' WHERE entry = '$entry'");
|
---|
24 | $Database->SQLCommand("UPDATE czquests SET state = '2' WHERE user= '$User' AND entry = '$entry'");
|
---|
25 |
|
---|
26 | Echo 'Quest byl zkontrolován';
|
---|
27 | }
|
---|
28 |
|
---|
29 | if ((array_key_exists('save', $_GET)) or (array_key_exists('End', $_GET)) or (array_key_exists('Repair', $_GET))) {
|
---|
30 | if (array_key_exists('End', $_GET))
|
---|
31 | $complete = 1;
|
---|
32 | else
|
---|
33 | $complete = 0;
|
---|
34 | if (array_key_exists('Repair', $_GET))
|
---|
35 | $complete = 1;
|
---|
36 |
|
---|
37 | $entry = mysql_escape_string($_GET['entry']);
|
---|
38 | $Title = mysql_escape_string($_GET['Title']);
|
---|
39 | $Details = mysql_escape_string($_GET['Details']);
|
---|
40 | $Objectives = mysql_escape_string($_GET['Objectives']);
|
---|
41 | $OfferRewardText = mysql_escape_string($_GET['OfferRewardText']);
|
---|
42 | $RequestItemsText = mysql_escape_string($_GET['RequestItemsText']);
|
---|
43 | $User = mysql_escape_string($_GET['user']);
|
---|
44 |
|
---|
45 | if (array_key_exists('Repair', $_GET)) {
|
---|
46 | $User = mysql_escape_string($_GET['UserRepair']);
|
---|
47 | echo 'Opraveno...'.$User;
|
---|
48 | }
|
---|
49 | // echo $User;
|
---|
50 | if (($Title == '') AND ($complete == 1))
|
---|
51 | die('Musite zadat název Q');
|
---|
52 |
|
---|
53 | $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM czquests Where user='$User' AND entry = '$entry'"));
|
---|
54 | if (!$Line) {
|
---|
55 | $Database->SQLCommand("INSERT INTO czquests VALUES('$entry','$Title','$Details','$Objectives','$OfferRewardText','$RequestItemsText','1','$User','$complete')");
|
---|
56 | $Database->SQLCommand("UPDATE ajquests SET state = '1' WHERE entry = '$entry'");
|
---|
57 | } else {
|
---|
58 | $Database->SQLCommand("UPDATE czquests SET complete = '$complete', Title = '$Title', Details = '$Details', Objectives = '$Objectives', OfferRewardText = '$OfferRewardText', RequestItemsText = '$RequestItemsText' WHERE entry = '$entry' AND user='$User'");
|
---|
59 |
|
---|
60 | }
|
---|
61 |
|
---|
62 | if ($complete == 1)
|
---|
63 | echo 'Quest: '.$entry.' uloen, v blízké dobì bude zkontrolován a vloen na server.!<br />';
|
---|
64 | if ($complete == 0)
|
---|
65 | echo 'Quest: '.$entry.' uloen, mùete na nìm pozdìj pracovat!<br />';
|
---|
66 | ++$entry;
|
---|
67 | echo 'Pøekládat: <a href="Form.php?entry='.$entry.'">['.$entry.']</a> ';
|
---|
68 |
|
---|
69 | //nastavení hodnoty 1 pro updatování statistiky
|
---|
70 | $Database->SQLCommand("UPDATE var SET Value = '1' WHERE Name = 'UpdateStatistic'");
|
---|
71 |
|
---|
72 |
|
---|
73 | $Database->Disconnect();
|
---|
74 | }
|
---|
75 | ?>
|
---|
76 | </body>
|
---|
77 | </html>
|
---|