Ejemplo n.º 1
0
function remove_images($data)
{
    foreach ($data as $name) {
        if (file_exists('cache/' . $name)) {
            unlink('cache/' . $name);
        }
    }
    reset_hash();
}
Ejemplo n.º 2
0
        if (strlen($val) == 0) {
            $test = false;
            break;
        }
    }
    $settings_update_sql = 'UPDATE config SET ' . implode(', ', $settings_array);
    // delete session var
    $_SESSION = array();
    $_SESSION['logged_admin'] = true;
    if ($test) {
        $settings_update_res = mysql_q($settings_update_sql);
        $output_panel_info .= $lang['a_saved'] . '<br />';
    } else {
        $output_panel_info .= $lang['a_not_saved'] . '<br />';
    }
    reset_hash();
}
/* ###################
 * # CHANGE PASSWORD #
 */
###################
if ($option == 'password') {
    $output_panel .= '
        <form action="admin.php?option=password_save" method="post">
            <table class="table">
                <tr><td class="bold orange">' . $lang['a_user'] . '</td><td></td></tr>
                <tr><td>' . $lang['a_new_password'] . '</td><td><input type="password" name="password" /></td></tr>
                <tr><td>' . $lang['a_new_password_re'] . '</td><td><input type="password" name="password_re" /></td></tr>
                <tr><td class="bold orange">' . $lang['a_admin'] . '</td><td></td></tr>
                <tr><td>' . $lang['a_new_password'] . '</td><td><input type="password" name="password_admin" /></td></tr>
                <tr><td>' . $lang['a_new_password_re'] . '</td><td><input type="password" name="password_admin_re" /></td></tr>