You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
<?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 } ?>
|
|
|