Example #1
0
<?php

include "includes/main_functions_test.php";
//include 'http://www.domaindirectory.com/includes/main_functions_test.php';
$dir = new DIR_LIB();
if (isset($_REQUEST['count'])) {
    die($dir->CountLeads($_REQUEST['domain']));
}
$email = $_REQUEST['email'];
$domain = $_REQUEST['domain'];
$user_ip = $_REQUEST['user_ip'];
//add codes to check if the email is already saved in database..
// if already in database, skipp save line
$save = "success";
//else if new email
$save = $dir->SaveLeads($email, $domain, $user_ip);
/*
try {
			$returnArray = array();
			$host = "127.0.0.1";
			$dbname = "domaindi_managedomain";
			$user = "******";
			$pass = "******";
			$DBH = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass);
			
			
			
			$q = $DBH->query("SELECT category_id FROM domain WHERE domain_name='$domain'");
			while($r = $q->fetch()) {
				$catID = $r['category_id'];
			}