2019-02-28 17:40:11 +01:00
< html >
< head >
< style >
#alert_messages_na{
- moz - border - bottom - right - radius : 5 px ;
- webkit - border - bottom - left - radius : 5 px ;
border - bottom - right - radius : 5 px ;
border - bottom - left - radius : 5 px ;
z - index : 2 ;
position : fixed ;
width : 700 px ;
background : white ;
left : 50 % ;
top : 20 % ;
margin - left :- 350 px ;
}
. modalheade {
text - align : center ;
width : 100 % ;
height : 37 px ;
left : 0 px ;
background - color : #82b92e;
}
. modalheadertex {
color : white ;
position : relative ;
font - family : Nunito ;
font - size : 13 pt ;
top : 8 px ;
}
. modalconten {
color : black ;
background : white ;
}
. modalcontentim {
float : left ;
margin - left : 30 px ;
margin - top : 30 px ;
margin - bottom : 30 px ;
}
. modalcontenttex {
float : left ;
text - align : justify ;
color : black ;
font - size : 9.5 pt ;
line - height : 13 pt ;
margin - top : 40 px ;
width : 430 px ;
margin - left : 30 px ;
}
. modalwikibutto {
cursor : pointer ;
text - align : center ;
margin - right : 45 px ;
float : right ;
- moz - border - radius : 3 px ;
- webkit - border - radius : 3 px ;
margin - bottom : 30 px ;
border - radius : 3 px ;
width : 170 px ;
height : 30 px ;
border : 1 px solid #82b92e;
margin - top : 8 % ;
background - color : #82b92e;
}
. modalwikibuttontex {
color : #ffffff;
font - family : Nunito ;
font - size : 10 pt ;
position : relative ;
top : 6 px ;
}
#opacity{
background : black ; opacity : 0.1 ; left : 0 px ; top : 0 px ; width : 100 % ; height : 100 % ;
2019-08-21 12:44:19 +02:00
background : black ;
opacity : 0.1 ;
left : 0 px ;
top : 0 px ;
width : 100 % ;
height : 100 % ;
position : fixed ;
z - index : 1 ;
}
img . modalclose {
text - align : right ;
float : right ;
padding - right : 11 px ;
padding - top : 11 px ;
vertical - align : middle ;
cursor : pointer ;
2019-02-28 17:40:11 +01:00
}
</ style >
</ head >
< body >
< div id = " alert_messages_na " >
< div class = 'modalheade' >
< span class = 'modalheadertex' >
< ? php echo __ ( 'Database error' ); ?>
</ span >
2020-06-02 09:48:59 +02:00
< img class = 'modalclose' src = '<?php echo $config[' homeurl ']; ?>/images/icono_cerrar.png' >
2019-02-28 17:40:11 +01:00
</ div >
< div class = 'modalconten' >
< img class = 'modalcontentim' src = '<?php echo $config[' homeurl ']; ?>/images/mysqlerr.png' >
< div class = 'modalcontenttex' >
< ? php
2019-12-02 11:20:25 +01:00
if ( $config [ 'history_db_connection' ] === false ) {
2020-01-16 17:58:50 +01:00
echo __ ( 'Failure to connect to historical database, please check the configuration or contact system administrator if you need assistance.' );
2020-01-17 10:09:52 +01:00
} else {
echo __ ( 'Failure to connect to Database server, please check the configuration file config.php or contact system administrator if you need assistance.' );
2019-12-02 11:20:25 +01:00
}
2019-02-28 17:40:11 +01:00
?>
</ div >
</ div >
2019-11-11 13:33:37 +01:00
< ? php
$custom_conf_enabled = false ;
foreach ( $config as $key => $value ) {
if ( preg_match ( '/._alt/i' , $key )) {
$custom_conf_enabled = true ;
break ;
}
}
2019-11-21 11:14:50 +01:00
if ( ! $custom_conf_enabled || isset ( $config [ 'custom_docs_url_alt' ])) {
if ( isset ( $config [ 'custom_docs_url_alt' ])) {
$docs_url = $config [ 'custom_docs_url_alt' ];
} else {
$docs_url = 'https://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Configuration' ;
}
2019-11-11 13:33:37 +01:00
echo '
2019-11-21 11:14:50 +01:00
< a href = " '.ui_get_full_external_url( $docs_url ).' " target = " _blank " >
2020-02-10 17:25:11 +01:00
< div class = " modalwikibutto " >
2019-11-11 13:33:37 +01:00
< span class = " modalwikibuttontex " > '.__(' Documentation ').'
</ span >
</ div >
</ a >
' ;
}
?>
2019-02-28 17:40:11 +01:00
</ a >
</ div >
< div id = " opacity " ></ div >
</ body >
2019-08-21 12:44:19 +02:00
</ html >
< script >
$ ( " .modalclose " ) . click ( function (){
$ ( 'div#alert_messages_na' ) . toggle ();
$ ( 'div#opacity' ) . toggle ();
});
</ script >