settings.php 1.87 KB
<form id="export" action="#" method="post">
    <fieldset class="personalblock">
        <legend><strong><?php p($l->t('Export this ownCloud instance'));?></strong></legend>
        <p>
            <?php p($l->t('This will create a compressed file that contains the data of this owncloud instance.'));?>
            <br />
            <?php p($l->t('Please choose the export type:'));?>
        </p>
        <p>
        <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" id="requesttoken">
        <input type="radio" id="export_instance" name="export_type" value="instance" style="width:20px;" /><label for="export_instance"><?php p($l->t('ownCloud instance (user data and database)'));?></label><br />
        <input type="radio" id="export_system" name="export_type" value="system" style="width:20px;" /><label for="export_system"><?php p($l->t('ownCloud system files'));?></label><br />
        <input type="radio" id="export_value" name="export_type" value="userfiles" style="width:20px;" /><label for="export_value"><?php p($l->t('Just user files'));?></label><br />
        <input type="submit" name="admin_export" value="<?php p($l->t('Export')); ?>" />
    </fieldset>
</form>
<?php
/*
 * EXPERIMENTAL
?>
<form id="import" action="#" method="post" enctype="multipart/form-data">
    <fieldset class="personalblock">
        <legend><strong><?php p($l->t('Import an ownCloud instance. THIS WILL DELETE ALL CURRENT OWNCLOUD DATA'));?></strong></legend>
        <p><?php p($l->t('All current ownCloud data will be replaced by the ownCloud instance that is uploaded.'));?>
        </p>
        <p><input type="file" id="owncloud_import" name="owncloud_import"><label for="owncloud_import"><?php p($l->t('ownCloud Export Zip File'));?></label>
        </p>
        <input type="submit" name="admin_import" value="<?php p($l->t('Import')); ?>" />
    </fieldset>
</form>
<?php
*/