Skip to content
Snippets Groups Projects
Commit c2f1ba09 authored by Stein Magne Bjorklund's avatar Stein Magne Bjorklund
Browse files

Cleanup Importer::showInterface()

parent 9984f7b7
No related branches found
No related tags found
1 merge request!18Resolve "Remove all use of GLOBALS"
...@@ -336,24 +336,25 @@ final class Importer ...@@ -336,24 +336,25 @@ final class Importer
//$this->showFinishing(); //$this->showFinishing();
} }
private function showInterface() private function showInterface(): void
{ {
$doc = "<html> echo <<<HTML
<html>
<head> <head>
<title>Importing options</title> <title>Importing options</title>
</head> </head>
<body> <body>
<h2>Paste application described in LDA</h2> <h2>Paste application described in LDA</h2>
You can paste the data obtained from another LODSPeaKr instance here in the box. You can paste the data obtained from another LODSPeaKr instance here in the box.
You can also automatize this import by adding a parameter '?import=URL' to this page. You can also automatize this import by adding a parameter '?import=URL' to this page.
Usually, the URL will be of the for <tt>http://example.org/foo/export</tt> Usually, the URL will be of the for <pre>https://example.com/export</pre>
<form action='import' method='post'> <form action='import' method='post'>
<textarea cols='100' rows='25' name='importtext'></textarea> <textarea cols='100' rows='25' name='importtext'></textarea>
<input type='submit' value='Import'/> <input type='submit' value='Import'/>
</form> </form>
</body> </body>
</html>"; </html>
echo $doc; HTML;
} }
private function showFinishing(): void private function showFinishing(): void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment