-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource.php
More file actions
39 lines (35 loc) · 1.13 KB
/
Copy pathsource.php
File metadata and controls
39 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
session_start();
require_once('functions.php');
print_home_header();
//grab if they choose to use env variables
if(isset($_SESSION['scripted'])){
$_SESSION['scripted'] = "#!" . $_GET['scripted'] . "<br />\n printf " . '"';
}
echo <<<HERE
<div class="container" style='margin-top:100px!important'>
<div class="row">
HERE;
if (!$_SESSION["index_type"]) {
echo "no choice";
} else {
echo <<<HERE
<div class="col-md-4"></div>
<div class="col-md-3">
<h4>Choose your source type:</h4>
<form name="type" action="plainconfig.php" method="post">
<input type="radio" name="source_type" value="mysql">MySQL<br>
<input type="radio" name="source_type" value="pgsql">PostgreSQL<br>
<input type="radio" name="source_type" value="mssql">MSSQL<br>
<input type="radio" name="source_type" value="xmlpipe2">XML<br>
<input type="radio" name="source_type" value="tsvpipe">TSV<br>
<input type="radio" name="source_type" value="odbc">ODBC<br>
<input type="submit" value="Submit">
</form>
<h5><a href="http://sphinxsearch.com/docs/current.html#confgroup-source">learn more</a></h5>
</div>
</div>
</div>
HERE;
}
?>