Repository navigation
Expand file tree
/
Copy pathstart.php
More file actions
66 lines (51 loc) · 1.42 KB
/
Copy pathstart.php
File metadata and controls
66 lines (51 loc) · 1.42 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**************************************************************
Call: start.php
Analyse DB tables, select Table Set, start LWT
***************************************************************/
require_once 'inc/session_utility.php';
if ($fixed_tbpref) {
header("Location: index.php");
exit();
}
if (isset($_REQUEST['prefix'])) {
if($_REQUEST['prefix'] !== '-') {
$tbpref = $_REQUEST['prefix'];
LWTTableSet("current_table_prefix", $tbpref);
header("Location: index.php");
exit();
}
}
$prefix = getprefixes();
if (count($prefix) == 0) {
$tbpref = '';
LWTTableSet("current_table_prefix", $tbpref);
header("Location: index.php");
exit();
}
pagestart('Select Table Set', false);
?>
<table class="tab1" style="width: auto;" cellspacing="0" cellpadding="5">
<tr>
<th class="th1">
<form name="f1" class="inline" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<p>Select: <select name="prefix">
<option value="" <?php echo ($tbpref == '' ? 'selected="selected"': ''); ?>>Default Table Set</option>
<?php
foreach ($prefix as $value) {
?>
<option value="<?php echo tohtml($value); ?>" <?php echo (substr($tbpref, 0, -1) == $value ? 'selected="selected"': ''); ?>><?php echo tohtml($value); ?></option>
<?php
}
?>
</select>
</p>
<p class="center"><input type="submit" name="op" value="Start LWT" />
</p>
</form>
</th>
</tr>
</table>
<?php
pageend();
?>