Changeset 1612

Show
Ignore:
Timestamp:
11/25/2006 09:51:15 AM (2 years ago)
Author:
driehle
Message:

implemented password protection for update

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/update.php

    r1608 r1612  
    1616               dieses Plugins ist nicht notwendig.</p> 
    1717            <form action='' method='post'> 
     18             <p>Admin-Passwort: <input type='text' name='password' /></p> 
    1819             <p><input type='submit' name='update' value='Update durchführen' /></p> 
    1920            </form>"; 
    2021 
    21     if(isset($_POST['update'])) { 
     22    if(isset($_POST['update']) AND md5($_POST['password']) == JLOG_ADMIN_PASSWORD) { 
    2223        // Slashs in categorie URLs are no longer supported, therefore we are going 
    2324        // to replace all slashs in existings categories with an underline. 
     
    3536        $c['main'] .= "<p>Update erfolgreich verlaufen. <a href='../'>Viel Spaß!</a></p>"; 
    3637    } 
     38    elseif(isset($_POST['update'])) { 
     39        $c['main'] .= error_output(array("Das Passwort ist leider falsch.")) . $form; 
     40    } 
    3741    else { 
    3842        $c['main'] .= $form;