Changeset 250 for quests/Options.php


Ignore:
Timestamp:
Jan 20, 2008, 12:08:14 PM (17 years ago)
Author:
maron
Message:

Dafaultní jazyk, neoznámkované questy, aj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/Options.php

    r240 r250  
    1111    $NewPass = $_POST['NewPass'];
    1212    $NewPass2 = $_POST['NewPass2'];
     13    $Language = $_POST['Language'];
    1314
    1415    $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID']));
     
    1718      echo 'Heslo zmìnìno!<br />';
    1819    } else echo '<br />Hesla se neshodují!<br />';
    19     $Database->SQLCommand("UPDATE user SET Email = '$Email' WHERE ID = ".$_SESSION['UserID']);
     20    $Database->SQLCommand("UPDATE user SET Email = '$Email', Language = '$Language' WHERE ID = ".$_SESSION['UserID']);
    2021      echo 'Úprava nastavení probìhla v poøádku, Email: <b>'.$Email.'</b> U¾ivatel: <b>'.$User.'</b><br />';
    2122      WriteLog('Úprava nastavení!', 3);
     
    4243    </tr>
    4344    <tr>
     45      <td>Normálnì budu pøekládat do: </td>
     46      <td><?php WriteLanguages($Line['Language']); ?></td>
     47    </tr>
     48    <tr>
    4449      <th><input type="submit" value="Ulo¾it"></th>
    4550    </tr>
Note: See TracChangeset for help on using the changeset viewer.