Subversion Repositories ALCASAR

Rev

Rev 386 | Rev 534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 386 Rev 411
Line 102... Line 102...
102
	{
102
	{
103
	echo "<b>Could not include SQL library</b><br>\n";
103
	echo "<b>Could not include SQL library</b><br>\n";
104
	exit();
104
	exit();
105
	}
105
	}
106
include_once($LIBpath.'functions.php');
106
include_once($LIBpath.'functions.php');
107
if ($config[sql_use_operators] == 'true')
107
if ($config['sql_use_operators'] == 'true')
108
	{
108
	{
109
	include($LIBpath."operators.php");
109
	include($LIBpath."operators.php");
110
	$text = ',op';
110
	$text = ',op';
111
	$passwd_op = ",':='";
111
	$passwd_op = ",':='";
112
	}
112
	}
113
$link = @da_sql_pconnect($config);
113
$link = @da_sql_pconnect($config);
114
$choix = $_POST ['choix'];
114
if (isset ($_POST ['choix'])) {	$choix = $_POST ['choix']; }
-
 
115
	else { $choix = ''; }
115
if ($choix == "raz")
116
if ($choix == "raz")
116
	{
117
	{
117
	exec ("sudo /usr/local/sbin/alcasar-mysql.sh --raz");
118
	exec ("sudo /usr/local/sbin/alcasar-mysql.sh --raz");
118
	}
119
	}
119
# un fichier est importé
120
# un fichier est importé