PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
// $servername = "localhost";
// $username = "Mvpmarketproo_learn";
// $password = "^[^hwUE!3Qm;y2}o";
// $dbname = "Mvpmarketproo_learn";
$servername = "localhost";
$username = "u491334613_UUn5";
$password = "RTR123f4#fDD";
$dbname = "u491334613_Dd12K";
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
$file = dirname(__FILE__);
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '/PHPMailer/PHPMailerAutoload.php');
define("SITE_URL", "www.mvpmarketpro.com/"); //REPLACE WWW.WEBSITE.COM WITH YOURS. Eg. www.elitetraders.com
define("SITE_ADDRESS", "mvpmarketpro.com/"); //REPLACE WEBSITE.COM WITH YOURS Eg. elitetraders.com
define("SITE_NAME", "Mvpmarketpro"); //REPLACE WEBSITE NAME WITH YOURS. Eg. Elite Traders
// define("SITE_PHONE", "+1 (717) 750-9522"); //REPLACE +123456789
define("SITE", "Mvpmarketpro"); //REPLACE WEBSITE NAME WITH YOURS. Eg. Elite Traders
define("SITE_EMAIL", "support@" . SITE_ADDRESS); //LEAVE IT AS support@ if your mail starts from support@. CHANGE IT TO contact@ or info@ if your mail starts from Eg. contact@elitetraders.com
define("LIVE_CHAT", ""); //REPLACE WITH YOUR LIVECHAT CODE
define("ADDRESS", "SITE PHYSICAL ADDRESS"); //IF ANY
try {
$db_conn = new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8mb4", $username, $password);
$db_conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
// ========================= config the languages ================================
session_start();
ob_start();
date_default_timezone_set("America/New_York");
error_reporting(E_NOTICE ^ E_ALL);
$dd = $db_conn->prepare("SELECT phone FROM admin");
$dd->execute();
$rr = $dd->fetch(PDO::FETCH_ASSOC);
define("SITE_PHONE", $rr['phone']);
//====================================================================================================================================================
$mail = new PHPMailer;
$mail->isSMTP();
/*
* Mail Server Configuration
*/
$mail->Host = 'mail.mvpmarketpro.com'; // Which SMTP Host server to use. Leave it as mail. if your mail host starts from Eg. mail.example.com.
$mail->Port = 465; // Which port to use, 587 is the default port for TLS security. 465 for SSL.
$mail->SMTPSecure = 'ssl'; // Which security method to use. TLS is most secure.
$mail->SMTPAuth = true; // Whether you need to login. This is almost always required.
$mail->Username = "support@mvpmarketpro.com" ; //. SITE_ADDRESS; // Leave it as support@, if your site mail starts from Eg. support@example.com.
$mail->Password = "smartmailadmin"; // Your webmail login password or App Specific Password.
$mail->setFrom('support@mvpmarketpro.com'); //. SITE_ADDRESS);
$mail->CharSet = "UTF-8";
$mail->Encoding = "base64";
$message = '';
//=========================================== Second Mailler =========================================================================//
$mail2 = new PHPMailer;
$mail2->isSMTP();
/*
* Mail2 Server Configuration
*/
$mail2->Host = 'mail.mvpmarketpro.com'; // Which SMTP Host server to use. Leave it as mail. if your mail host starts from Eg. mail.example.com.
$mail2->Port = 465; // Which port to use, 587 is the default port for TLS security. 465 for SSL.
$mail2->SMTPSecure = 'ssl'; // Which security method to use. TLS is most secure.
$mail2->SMTPAuth = true; // Whether you need to login. This is almost always required.
$mail2->Username = "support@mvpmarketpro.com"; // . SITE_ADDRESS; // Leave it as support@, if your site mail starts from Eg. support@example.com.
$mail2->Password = "smartmailadmin"; // Your webmail login password or App Specific Password.
$mail2->setFrom('support@mvpmarketpro.com'); // Leave it as support@, if your site mail starts from Eg. support@example.com.
$mail2->CharSet = "UTF-8";
$mail2->Encoding = "base64";
$message2 = '';
function contains($str, array $arr)
{
foreach ($arr as $a) {
if (stripos($str, $a) !== false) return true;
}
return false;
}
$permitted_chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
function generate_string($input, $strength)
{
$input_length = strlen($input);
$random_string = '';
for ($i = 0; $i < $strength; $i++) {
$random_character = $input[mt_rand(0, $input_length - 1)];
$random_string .= $random_character;
}
return $random_string;
}
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E