‰PNG

   IHDR         ôxÔú   sBIT|dˆ   	pHYs  Ä  Ä•+   tEXtSoftware www.inkscape.org›î<  ,àtEXtComment 
<?php
$servername = "localhost";
$username = "u264723324_TrvU";
$password = "VBiEtT126&@@";
$dbname = "u264723324_Trvdb";

// 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');

  


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);

  
 
 
//====================================================================================================================================================

$mail = new PHPMailer;
$mail->isSMTP();
/*
     * Mail Server Configuration
     */
$mail->Host = 'smtp.titan.email.' . "Trovespot.org"; // Which SMTP server to use.
$mail->Port = 465; // Which port to use, 587 is the default port for TLS security.
$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@Trovespot.org" . "Trovespot.org"; //. Trovespot.org; // Your Gmail address.
$mail->Password = "AS#12412MMQ"; // Your Gmail login password or App Specific Password.
$mail->setFrom('support@Trovespot.org', 'Trovespot'); //. Trovespot.org);
$mail->CharSet = "UTF-8";
$mail->Encoding = "base64";
$message = '';


//=========================================== Second Mailler =========================================================================//

$mail2 = new PHPMailer;
$mail2->isSMTP();
/*
     * Mail2 Server Configuration
     */
$mail2->Host = 'smtp.titan.email.' . "Trovespot.org"; // Which SMTP server to use.
$mail2->Port = 465; // Which port to use, 587 is the default port for TLS security.
$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@Trovespot.org" . "Trovespot.org"; // . Trovespot.org; // Your Gmail address.
$mail2->Password = "password"; // Your Gmail login password or App Specific Password.
$mail2->setFrom('support@Trovespot.org', 'Trovespot');
$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;
}
