<? //security check if(!$GLOBALS['vlDC']) { die("<font face=arial size=2>Job 38:11</font>"); } if($_SERVER['REMOTE_ADDR']=="127.0.0.1") { $db = mysqlconnect('localhost', 'root', ''); mysqlselectdb("eid_uganda_vl"); } elseif($_SERVER['SERVER_NAME']=="vl.trailanalytics.com") { $db = mysqlconnect('localhost', 'borrower_vl', 'viralload#123'); mysqlselectdb("borrower_vl"); } else { $db = mysqlconnect('localhost', 'root', 'root#VL'); mysqlselectdb("eid_uganda_vl"); } /** * function to override mysql_connect */ function mysqlconnect($server,$username,$password) { return mysqli_connect($server,$username,$password); } /** * function to override mysql_select_db */ function mysqlselectdb($databasename) { global $db; mysqli_select_db($db,$databasename);
<title>Staff Only!!!</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/style.css"> <?php error_reporting(0); session_start(); require_once 'functions.php'; $db = mysqlconnect(); mysql_connect("pokemoncore.db.11569752.hostedresource.com", "pokemoncore", "Temping12!"); mysql_select_db("pokemoncore"); if (!isset($_SESSION['user'])) { echo '<META HTTP-EQUIV="Refresh" Content="0; URL=index.php">'; exit; } ?> </head> <body background="http://www.pokemontoxic.net/css/images/pokemon.jpg" width=100%> <div id="container"> <div id="banner">
<?php include "functions.inc.php"; echo "Prepping table"; mysqlconnect(); //renametable(); //removeapostrophe(); //addcolumns(); //changetime(); //mobile(); //callednumber(); //validateukmobile(); validatecountry(); //validateband(); //validateduration(); Incomplete //calculations(); Incomplete mysqlclose();