Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * These are the database login details
- */
- define("HOST", "103.253.212.34"); // The host you want to connect to.
- define("USER", "bale1038_erpjakarta"); // The database username.
- define("PASSWORD", "12345678bC"); // The database password.
- //define("DATABASE", "db_erp_web"); // The database name in localhost.
- define("DATABASE", "bale1038_erp_user"); // The database name.
- define("CAN_REGISTER", "any");
- define("DEFAULT_ROLE", "member");
- define("SECURE", FALSE); // FOR DEVELOPMENT ONLY!!!!
- //Database to access OBU perso
- //define("HOST_PERSO", "10.255.255.100"); // The host you want to connect to.
- define("HOST_PERSO", "103.253.212.34");
- define("USER_PERSO", "bale1038_erpjakarta"); // The database username.
- //define("PASSWORD_PERSO", "erpjakarta"); // The database password.
- define("PASSWORD_PERSO", "12345678bC");
- //define("DATABASE_PERSO", "erp"); // The database name.
- define("DATABASE_PERSO", "bale1038_erp_gantry");
- // Get directory address of file config.php
- define('ABSPATH', dirname(__FILE__).'/');
- //Internal DB Connections
- $mysqli = new mysqli(HOST, USER,PASSWORD, DATABASE);
- if (mysqli_connect_errno()) {
- printf("Error Connection\n", mysqli_connect_error());
- exit;
- }
- $mysqli_perso = new mysqli(HOST_PERSO, USER_PERSO, PASSWORD_PERSO, DATABASE_PERSO);
- if (mysqli_connect_errno()) {
- printf("Error Connection\n", mysqli_connect_error());
- exit;
- }
- //Call file path direction
- //require ABSPATH. 'Function_connect.php';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment