Subversion Repositories portal2

Rev

Rev 593 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/*  emg - Energy Monitoring & Graphing
*  Copyright (C) 2006-2012 Romain Lievin
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 3 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

?>

<?php
$form_token = md5(uniqid('auth', true));
//$_SESSION['form_token'] = $form_token;
?>

<form
        action="upload_2.php" method="post" enctype="multipart/form-data" \>
        <fieldset>
                <legend>
                        Uploading new file
                </legend>

                <label for="form_dir">
                        Path:
                </label>
                <input type="text" id="form_dir" name="form_dir" value="" />
                <br/>
                <labal for="form_path">File: </label>
                <input type="file" id="form_file" name="form_file" value="" />
                <br/>

                <hr/>
                <input type="hidden" name="MAX_FILE_SIZE" value="10000" />
                <input type="hidden" name="form_token" value="<?php echo $form_token; ?>" />
                <input type="hidden" name="form_data" value="upload" />
                <input type="submit" value="Upload" id="form_load" name="form_load" alt="upload" />

        </fieldset>
</form>