Changeset 224 for quests/export.php


Ignore:
Timestamp:
Jan 13, 2008, 7:39:02 PM (17 years ago)
Author:
maron
Message:

Menší opravy + import do mangos databáze

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/export.php

    r212 r224  
    3333      $AddObjectiveText4 = @$_GET['AddObjectiveText4'];
    3434
     35      if (($Export == 'Mangos') and (Licence(1))) {} else die('');
     36   
    3537   
    3638    $Buffer = '
     
    6870    while ($Line = mysql_fetch_array($ID)) {
    6971      $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']);   
    8082   
    8183    if ($AddTitle == 'Translate')
     
    109111    if ($Diacritical == False) $sql=WithOutDiacritical($sql);
    110112   
     113    $Database->SelectDatabase($Config['Database']['DatabaseMangos']);   
     114    if ($Export == 'Mangos')   
     115      $Database->SQLCommand($sql);
     116     
    111117    $Buffer .= $sql."
    112118    ";
     
    118124    echo $Buffer;
    119125    echo '</textarea>';
     126  }
     127  if ($Export == 'Mangos') {
     128    echo 'Hotovo';
    120129  }
    121130 
     
    146155        <input type="radio" name="Export" value="Zip" checked="true"> Exportovat do zip<br>
    147156        <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?>
    148162        <br />
    149163        <input type="radio" name="Type" value="Insert"> Insert (zatím nefunguje)<br>
    150164        <input type="radio" name="Type" value="Update" checked="true"> Update <br>
     165        <br />
    151166        <input type="checkbox" name="Use" checked="true"> Pøidat Use mangos <br>
    152167        <br />
Note: See TracChangeset for help on using the changeset viewer.