D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Connecter
/
Filename :
dataconn.php
back
Copy
<?php if (!isset($_SESSION)){ session_start(); } $time = ini_get("session.gc_maxlifetime"); // Star session here if (!isset($_SESSION['loginname'])){// && (time() - $_SESSION['time']) > $time) { session_destroy(); session_unset(); unset($_SESSION); // Your Code Here to logout //header('location: /auth/logout'); header("Refresh: 0; url=index.php?error=Please Re-login"); exit(); } /*else{ $_SESSION['time'] = time(); }*/ # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_csn = "localhost"; //$database_csn = "duresult"; #$database_csn = "duresult_online"; #$username_csn = "root"; #$password_csn = ""; $database_csn = "diafrica_result"; $username_csn = "diafrica_result"; $password_csn = "07036543898Ola."; $csn = @mysql_pconnect($hostname_csn, $username_csn, $password_csn) or trigger_error(mysql_error(),E_USER_ERROR); if (!@mysql_select_db($database_csn, $csn)){ echo ("<p>Unable to locate the Database at this time. Retry Again Later Or Contact Fr. Gabriel OP.</p>"); exit(); } ?>