Exemple #1
0
if (!isset($info['dbhost'])) {
    $info['dbhost'] = 'localhost';
}
if (!isset($info['prefix'])) {
    $info['prefix'] = 'ost_';
}
?>
<div style="padding:3px; padding-top:1px; padding-bottom:5px;">
&nbsp;All fields are required.
<form action=install.php method=post name=setup>
<table width="100%" cellspacing="0" cellpadding="2" class="setup">
	<!-- (issue 6) -->
	<tr>
        <td>OSTicket Language:</td><td>
        <?php 
$langs = Translator::listLanguages();
?>
        <select name="ostlang" id="ostlang" onChange="var uri = '<?php 
$uri = $_SERVER['PHP_SELF'];
if (strpos($uri, '?')) {
    $uri .= '&';
} else {
    $uri .= '?';
}
$uri .= 'ostlang=';
echo $uri;
?>
';
var option=this.options[this.selectedIndex];
if (option.value!='nothing'){
	document.location = uri+option.value ;