//Error Reporting - Delete the following line if you wish to debug error_reporting(0); /***** CHANGE HERE WITH YOUR DATABASE INFORMATION *****/ $dbhost = 'localhost'; //Host $dbuser = 'rosslynhouse'; //Username $dbpass = 'sofia070511'; // Password $dbname = 'admin_client_pipeline'; // DB Name /***** PLEASE DON'T CHANGE HERE, UNLESS YOU KNOW WHAT TO DO *****/ //Connect //Check if installation is present if(!isset($install)) { $conn = mysql_connect ($dbhost, $dbuser, $dbpass) or die ("I cannot connect to the database because: " . mysql_error()); mysql_select_db ($dbname) or die ("I cannot select the database '$dbname' because: " . mysql_error()); //Get settings info $query = "SELECT sitename, uploadPath, fromEmail, emailSubject, payConfig, paymentFee, installUrl, businessEmail, currency, itemName, paymentComplete FROM settings"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $sitename = $row['sitename']; $uploadPath = $row['uploadPath']; $fromEmail = $row['fromEmail']; $emailSubject = $row['emailSubject']; $payConfig = $row['payConfig']; $businessEmail = $row['businessEmail']; $currency = $row['currency']; $itemName = $row['itemName']; $paymentComplete = $row['paymentComplete']; $paymentFee = $row['paymentFee']; $installUrl = $row['installUrl']; } $sitename = $sitename; $uploadPath = $uploadPath; //Acceptable Extension $okExts = array("gif", "jpg", "jpeg", "png", "tiff", "tif", "zip", "rar", "ai", "pdf", "svg", "eps", "doc", "txt", "xls", "csv", "mp3", "wav", "mp4", "cda", "psd", "docx", "css", "html", "htm", "bmp"); $fromEmail = $fromEmail; $emailSubject = $emailSubject; $payConfig = $payConfig; $businessEmail = $businessEmail; $currency = $currency; $itemName = $itemName; $paymentComplete = $paymentComplete; $paymentFee = $paymentFee; $installUrl = $installUrl; } ?>