Example #1
0
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.system.network.inc';
include_once 'ressources/class.os.system.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->AsSystemAdministrator) {
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
    die;
}
if (isset($_GET["ssl_client-keys"])) {
    ssl_client_key();
    exit;
}
if (isset($_POST["mysqlSSL"])) {
    mysqlSSLSave();
    exit;
}
if (isset($_POST["GenerateMysqlSSLKeys"])) {
    GenerateMysqlSSLKeys();
    exit;
}
page();
function page()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $mysqlSSL = $sock->GET_INFO("mysqlSSL");
    if (!is_numeric($mysqlSSL)) {
        $mysqlSSL = 0;
Example #2
0
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.httpd.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.os.system.inc');
	include_once('ressources/class.mysql-server.inc');
	
	$usersmenus=new usersMenus();
	if(!$usersmenus->AsSystemAdministrator){
		$tpl=new templates();
		echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
		die();
	}
	if(isset($_GET["ssl_client-keys"])){ssl_client_key();exit;}
	if(isset($_POST["mysqlSSL"])){mysqlSSLSave();exit;}
	if(isset($_POST["GenerateMysqlSSLKeys"])){GenerateMysqlSSLKeys();exit;}
page();


function page(){
	$tpl=new templates();
	$page=CurrentPageName();
	$instance_id=$_GET["instance-id"];
	if(!is_numeric($instance_id)){$instance_id=0;}
	$ssl_conf=Paragraphe("64-ssl-key-params.png","{ssl_certificate}","{ssl_certificate_text}","javascript:Loadjs('postfix.tls.php?js-certificate=yes')");
	
	if($instance_id>0){
		$q=new mysqlserver_multi($instance_id);
		if($q->usesocket==0){echo $tpl->_ENGINE_parse_body("<H2>{cannot_use_ssl_no_networking_set}</H2>");return;}
		$mysqlSSL=$q->mysqlSSL;