|
|
|
<?php if ($this->req == 'export') { ?>
|
|
|
|
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'; // résout bug sur certain serveur ?>
|
|
|
|
<!-- Generated by <?php echo Configuration::title (); ?> -->
|
|
|
|
<opml version="2.0">
|
|
|
|
<head>
|
|
|
|
<title><?php echo Configuration::title (); ?> OPML Feed</title>
|
|
|
|
<dateCreated><?php echo date('D, d M Y H:i:s'); ?></dateCreated>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php echo opml_export ($this->categories); ?>
|
|
|
|
</body>
|
|
|
|
</opml>
|
|
|
|
<?php } else { ?>
|
|
|
|
<div class="table">
|
|
|
|
<?php $this->partial ('configure_aside'); ?>
|
|
|
|
|
|
|
|
<form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data">
|
|
|
|
<h1>Exporter au format OPML</h1>
|
|
|
|
<button formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button>
|
|
|
|
|
|
|
|
<h1>Importer au format OPML</h1>
|
|
|
|
<label for="file">Fichier</label>
|
|
|
|
<input type="file" name="file" id="file" />
|
|
|
|
<input type="submit" value="Charger" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|