Changeset 191 for trunk/Options.php
- Timestamp:
- May 2, 2009, 3:55:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Options.php
r125 r191 15 15 $NewPass2 = $_POST['NewPass2']; 16 16 $Language = $_POST['Language']; 17 $redirecting = $_POST['redirecting']; 17 18 18 $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID']));19 if(($ Line['pass'] == $OldPass) and ($NewPass == $NewPass2))19 // $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE ID = ".$_SESSION['UserID'])); 20 if(($_SESSION['Pass'] == $OldPass) and ($NewPass == $NewPass2)) 20 21 { 21 $Database->SQLCommand('UPDATE user SET pass = sha1("'.$NewPass.'" WHERE ID = '.$_SESSION['UserID']);22 $Database->SQLCommand('UPDATE user SET pass = sha1("'.$NewPass.'") WHERE ID = '.$_SESSION['UserID']); 22 23 echo('Heslo změněno!<br />'); 23 } else echo('<br />Hesla se neshodují!<br /> )');24 $Database->SQLCommand("UPDATE user SET Email = '$Email', Language = '$Language' WHERE ID = ".$_SESSION['UserID']);24 } else echo('<br />Hesla se neshodují!<br />'); 25 $Database->SQLCommand("UPDATE user SET Email = '$Email', Language = '$Language', redirecting = '$redirecting' WHERE ID = ".$_SESSION['UserID']); 25 26 echo('Úprava nastavení proběhla v pořádku, Email: <b>'.$Email.'</b> Uživatel: <b>'.$User.'</b><br />'); 26 27 WriteLog('Úprava nastavení!', 3); … … 54 55 </tr> 55 56 <tr> 57 <td>Po uložení překladu přesměrovat: </td> 58 <td>'); 59 60 echo('<select name="redirecting">'); 61 echo('<option value="0">Nikam</option>'); 62 echo('<option value="1"'); if ($Line['redirecting'] == '1') echo(' selected="selected"'); echo('>Na nepřeložené</option>'); 63 echo('<option value="2"'); if ($Line['redirecting'] == '2') echo(' selected="selected"'); echo('>Na další překlad</option>'); 64 echo('<option value="3"'); if ($Line['redirecting'] == '3') echo(' selected="selected"'); echo('>Na předchozí překlad</option>'); 65 echo('</select>'); 66 67 echo('</td> 68 </tr> 69 <tr> 56 70 <th><input type="submit" value="Uložit" /></th> 57 71 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.