Subversion Repositories ALCASAR

Rev

Rev 1678 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1678 Rev 2054
Line 202... Line 202...
202
</div>
202
</div>
203
<?php
203
<?php
204
 
204
 
205
require('/etc/freeradius-web/config.php');
205
require('/etc/freeradius-web/config.php');
206
 
206
 
207
if (is_file("./pass/sql/drivers/$config[sql_type]/functions.php"))
-
 
208
	include_once("./pass/sql/drivers/$config[sql_type]/functions.php");
-
 
209
else{
-
 
210
	echo "<b>Could not include SQL library</b>\n";
-
 
211
	exit();
-
 
212
}
-
 
213
 
-
 
214
 
-
 
215
$con = mysqli_connect("$config[sql_server]","$config[sql_username]","$config[sql_password]","gammu");
207
$con = mysqli_connect("$config[sql_server]","$config[sql_username]","$config[sql_password]","gammu");
216
 
208
 
217
if(mysqli_connect_errno())
209
if(mysqli_connect_errno())
218
{
210
{
219
	echo "Fail to connect to $config[sql_type]" . mysqli_connect_error();
211
	echo "Fail to connect to $config[sql_type]" . mysqli_connect_error();