Changeset 224 for quests/export.php
- Timestamp:
- Jan 13, 2008, 7:39:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/export.php
r212 r224 33 33 $AddObjectiveText4 = @$_GET['AddObjectiveText4']; 34 34 35 if (($Export == 'Mangos') and (Licence(1))) {} else die(''); 36 35 37 36 38 $Buffer = ' … … 68 70 while ($Line = mysql_fetch_array($ID)) { 69 71 $entry = $Line['entry']; 70 $Title = $Line['Title'];71 $Details = $Line['Details'];72 $Objectives = $Line['Objectives'];73 $OfferRewardText = $Line['OfferRewardText'];74 $RequestItemsText = $Line['RequestItemsText'];75 $EndText = $Line['EndText'];76 $ObjectiveText1 = $Line['ObjectiveText1'];77 $ObjectiveText2 = $Line['ObjectiveText2'];78 $ObjectiveText3 = $Line['ObjectiveText3'];79 $ObjectiveText4 = $Line['ObjectiveText4'];72 $Title = mysql_escape_string($Line['Title']); 73 $Details = mysql_escape_string($Line['Details']); 74 $Objectives = mysql_escape_string($Line['Objectives']); 75 $OfferRewardText = mysql_escape_string($Line['OfferRewardText']); 76 $RequestItemsText = mysql_escape_string($Line['RequestItemsText']); 77 $EndText = mysql_escape_string($Line['EndText']); 78 $ObjectiveText1 = mysql_escape_string($Line['ObjectiveText1']); 79 $ObjectiveText2 = mysql_escape_string($Line['ObjectiveText2']); 80 $ObjectiveText3 = mysql_escape_string($Line['ObjectiveText3']); 81 $ObjectiveText4 = mysql_escape_string($Line['ObjectiveText4']); 80 82 81 83 if ($AddTitle == 'Translate') … … 109 111 if ($Diacritical == False) $sql=WithOutDiacritical($sql); 110 112 113 $Database->SelectDatabase($Config['Database']['DatabaseMangos']); 114 if ($Export == 'Mangos') 115 $Database->SQLCommand($sql); 116 111 117 $Buffer .= $sql." 112 118 "; … … 118 124 echo $Buffer; 119 125 echo '</textarea>'; 126 } 127 if ($Export == 'Mangos') { 128 echo 'Hotovo'; 120 129 } 121 130 … … 146 155 <input type="radio" name="Export" value="Zip" checked="true"> Exportovat do zip<br> 147 156 <input type="radio" name="Export" value="Display"> Export zobrazit<br> 157 <?php 158 if (Licence(1)) { 159 echo '<input type="radio" name="Export" value="Mangos"> Import na server<br>'; 160 } 161 ?> 148 162 <br /> 149 163 <input type="radio" name="Type" value="Insert"> Insert (zatím nefunguje)<br> 150 164 <input type="radio" name="Type" value="Update" checked="true"> Update <br> 165 <br /> 151 166 <input type="checkbox" name="Use" checked="true"> Pøidat Use mangos <br> 152 167 <br />
Note:
See TracChangeset
for help on using the changeset viewer.