1
0

first alpha

This commit is contained in:
Daniel Tartavel
2021-03-23 20:26:52 +01:00
parent 944e742590
commit fc0c6bdf3f
11 changed files with 145 additions and 61 deletions

View File

@ -4,14 +4,14 @@ if ( !isset($site) )
require_once( "config.inc.php" );
header( 'Location: ' . $accueil );
}
require_once( "db.class.php" );
require_once 'db.class.php';
require_once 'envoi_courriel.inc.php';
// $level => INFO, ALERT, ERROR
function log_write($log, $level=INFO)
{
require_once( "envoi_courriel.inc.php" );
global $table_prefix;
global $table_prefix, $webmaster;
$user = ( !empty( $_SERVER["PHP_AUTH_USER"])?$_SERVER["PHP_AUTH_USER"]:'' );
$log_mail = str_replace ( "<br />", "\n", $log ) . "\n";
$log_mail .= ( !empty( $_SERVER["REQUEST_METHOD"])?'$_SERVER["REQUEST_METHOD"]' . $_SERVER["REQUEST_METHOD"] . "\n":'' );