Server IP : 184.154.167.98 / Your IP : 3.148.115.40 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/oficios/sis/includes/ |
Upload File : |
<?php ob_start(); session_start(); //set timezone date_default_timezone_set('Europe/London'); //database credentials define('DBHOST','localhost'); define('DBUSER','puertode_registro'); define('DBPASS','Ryogoku21@'); define('DBNAME','puertode_registro'); //application address define('DIR','http://oficios.puertodetampico.com.mx/sis/'); define('SITEEMAIL','jdsistemas@puertodetampico.com.mx'); try { //create PDO connection $db = new PDO("mysql:host=".DBHOST.";charset=utf8mb4;dbname=".DBNAME, DBUSER, DBPASS); //$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);//Suggested to uncomment on production websites $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);//Suggested to comment on production websites $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); } catch(PDOException $e) { //show error echo '<p class="bg-danger">'.$e->getMessage().'</p>'; exit; } //include the user class, pass in the database connection include('classes/user.php'); include('classes/phpmailer/mail.php'); $user = new User($db); ?>