Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('DB_HOST', 'localhost');
- define('DB_NAME', 'truestre4_truestresser');
- define('DB_USERNAME', 'truestre4_beard');
- define('DB_PASSWORD','FeXmUvi4UfobdANHuJGk3ptszP7rsr4ocDBciy3jnef8a2');
- define('ERROR_MESSAGE', 'Error Loading');
- try {
- $odb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USERNAME, DB_PASSWORD);
- } catch( PDOException $Exception ) {
- error_log('ERROR: '.$Exception->getMessage().' - '.$_SERVER['REQUEST_URI'].' at '.date('l jS \of F, Y, h:i:s A')."\n", 3, 'error.log');
- die(ERROR_MESSAGE);
- }
- function error($string){
- return '<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><strong>ERROR:</strong> '.$string.'</div>';
- }
- function success($string) {
- return '<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><strong>SUCCESS:</strong> '.$string.'</div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement