0) { mysql_close($link); return true; } else { mysql_close($link); return false; } } function valid_email($domain_name) { // make sure its set if(!isset($domain_name)) { return false; } // split it up to get the domain nane $domain_parts = explode('@', $domain_name); // did we get an array back? if(!is_array($domain_parts)) { return false; } else { $domain = $domain_parts[1]; // is a domain name set in the array? if(isset($domain) && strlen($domain) > 0) { // ping it to see if it's valid if(ping($domain, 80,6)) { return true; } else { return false; } } else { return false; } } } function ping($host,$port=80,$timeout=6) { $fsock = fsockopen($host, $port, $errno, $errstr, $timeout); if ( ! $fsock ) { return FALSE; } else { return TRUE; } } function signupAdd($name, $dpassword, $status, $address, $city, $state, $zip, $contact, $email, $phone, $cell, $detail, $county) { // Description: // Adds item to signup table with status set to open. // // table name to store information $table = "signups"; // todo: use theDate() function $date = date("ymd:His"); // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } $data = mysql_query("SELECT * FROM $table WHERE email='$email'"); if (!$data) { if ($debug == "TRUE") { $message = 'signupAdd_a Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } // see if any rows are returned $anymatches=mysql_num_rows($data); if($anymatches > 0) { // item already exists //echo "\n"; mysql_close($link); return false; } $data = mysql_query("INSERT INTO $table VALUES ('','$name','$dpassword','$status','$address','$city','$state','$zip','$contact','$email','$phone','$cell','$detail','$county','$date')"); if (!$data) { if ($debug == "TRUE") { $message = 'signupAdd_b Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } mysql_close($link); return true; } function signupGetName($email) { } function signupGetID($email) { // Description: // Adds item to signup table with status set to open. // // table name to store information $table = "signups"; // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } $data = mysql_query("SELECT * FROM $table WHERE email='$email'"); if (!$data) { if ($debug == "TRUE") { $message = 'signupGetID Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } while($result = mysql_fetch_array($data)) { $id=$result['id']; } mysql_close($link); return $id; } function signupEdit($email, $id) { } function signupDelete($name, $id) { // Description: // Adds item to signup table with status set to open. // // table name to store information $table = "signups"; // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } $data = mysql_query("DELETE FROM $table WHERE id='$id' AND name='$name'"); if (!$data) { if ($debug == "TRUE") { $message = 'signupDelete Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } mysql_close($link); return true; } function signupUpdateStatus($email,$status) { // Description: // Adds item to signup table with status set to open. // // table name to store information $table = "signups"; //echo "$email, $status
"; // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } $data = mysql_query("UPDATE $table SET status='$status' WHERE email='$email'"); if (!$data) { if ($debug == "TRUE") { $message = 'signupUpdateStatus Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } mysql_close($link); return true; } function signupUser($email,$pass,$photo,$name,$address,$city,$state,$zip,$county,$phone,$hours,$website,$date1,$date2) { // Description: // Adds item to signup table with status set to open. // // table name to store information $table = "users"; $date1 = date("ymd:His"); // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } //$data = mysql_query("UPDATE $table SET status='$status' WHERE email='$email'"); // email, password, photo, name, address, city, state, zip, county, phone, contact, profile, hours, website, date1, date2 $data = mysql_query("INSERT INTO $table VALUES ('','$email','$pass','$photo','$name','$address','$city','$state','$zip','$county','$phone','$contact','$profile','$hours','$website','','$date1','$date2')"); if (!$data) { if ($debug == "TRUE") { $message = 'signupUser Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } mysql_close($link); return true; } function signupList() { // // checks to see if a signup already exists matching $email, returns true/false. // $table = "signups"; // attempt a connection with external info global $username, $password, $database, $debug; $link = mysql_connect(localhost,$username,$password); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db($database, $link); if (!$db_selected) { die ('Unable to select database: ' . mysql_error()); } $data = mysql_query("SELECT * FROM $table ORDER BY id DESC LIMIT 0,20", $link); if (!$data) { if ($debug == "TRUE") { $message = 'signupList Invalid query: ' . mysql_error() . "\n"; //$message .= 'Whole query: ' . $data; die($message); } mysql_close($link); return false; } // check for matches $anymatches=mysql_num_rows($data); if($anymatches == 0) { mysql_close($link); return false; } while($result = mysql_fetch_array($data)) { $id = $result['id']; $name = $result['name']; $dpassword = $result['password']; $status = $result['status']; $address = $result['address']; $city = $result['city']; $state = $result['state']; $zip = $result['zip']; $contact = $result['contact']; $email = $result['email']; $phone = $result['phone']; $cell = $result['cell']; $business = $result['detail']; $county = $result['county']; $date = $result['date']; // create a block signupBlock($id, $name, $dpassword, $status, $address, $city, $state, $zip, $contact, $email, $phone, $cell, $business, $county, $date); } } function signupBlock($id, $name, $dpassword, $status, $address, $city, $state, $zip, $contact, $email, $phone, $cell, $business, $county, $date) { if(isset($status) && strlen($status) > 0) { if($status == 1) { $statusValue = "OPEN"; } if($status == 0) { $statusValue = "CLOSED"; } } $output = "
"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
$id
$date
STAT: ".$statusValue."
\n"; $output = $output . "
"; $output = $output . "
\n"; $output = $output . "
"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
".stripslashes($name)."
\n"; $output = $output . "
$contact
\n"; $output = $output . "
$email
\n"; $output = $output . "
$city
$state
$zip
\n"; $output = $output . "
Username: $email Password: $dpassword
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . " \n"; $output = $output . " \n"; $output = $output . "
RESEND
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "
\n"; $output = $output . "\n"; // fancy html here //$name = addslashes($name); //echo "$id $name $status $address $contact $email $phone $cell $business $county $date Close Enable
"; echo $output; } function signupEmail($name, $email, $pass) { $to = "info@dispensaryfinder.com"; $to1 = "aaron@dispensaryfinder.com"; $from = "info@dispensaryfinder.com"; //$comments = $_REQUEST['comments'] ; $headers = "From: $from"; $subject = "DispensaryFinder.com Account Activation: $name"; $body = "Name: $name\nEmail: $email\nPassword: $pass\n"; //$body = $body."Comments: $comments\n\n"; $headers2 = "From: info@dispensaryfinder.com"; $subject2 = "DispensaryFinder.com Account Activation"; //$autoreply = "$name,\n\nThank you for your interest in DispensaryFinder.com!\n\nYour account has been created and enabled. To begin uploading your menu please visit http://www.dispensaryfinder.com/login.php using:\n\nLogin: $email\nPassword: $pass\n\nIf you have any issues with your login please let us know.\n\nThe DispensaryFinder.com Team."; $autoreply = "Thank you for registering your new collective with DispensaryFinder.com – California and Colorado’s leading medical marijuana business resource.\n\n"; $autoreply = $autoreply . "To access your menu visit http://www.DispensaryFinder.com/login.php\nUsername: $email\nPassword: $pass\n\n"; $autoreply = $autoreply . "Our services don’t just stop with DispensaryFinder.com...\n\n"; $autoreply = $autoreply . "As a professional provider of medical marijuana, you will have many options for advertising your services to the public in order to increase your patient traffic, revenue and membership. We pledge to provide you with the most professional and reliable advertising, promotion and industry consultation available all under one roof.\n\n"; $autoreply = $autoreply . "Dispensary Promotion Start Up Guide\nWith the federal government finally acknowledging the value of cannabis to legal caregivers and dispensaries, now is the best time to promote your collective build confidence with the general public by developing your professional image. If you are a true non-profit, following compliant practices, you have absolutely no reason to stay in the shadows. Below are the options available to your collective through Green Solutions Marketing to promote safe access.\n\n"; //$autoreply = $autoreply . "PRINT ADVERTISING - Reefer Reviews Magazine – http://www.ReeferReviews.com\nReefer Reviews magazine is a free medical marijuana ratings and reviews publication that is distributed monthly to over 35,000 active patients. Copies are available at dispensaries, doctor’s offices, minimarts and smoke shops throughout Northern and Southern California. Readers of Reefer Reviews enjoy detailed strain reviews and insight on the medicine available in their area. Reefer Reviews Magazine is also reserving limited advertising space for our expansion into Colorado this coming December. --REQUEST A COPY TODAY!--\n\n"; //$autoreply = $autoreply . "GRAPHIC DESIGN & PRINTING – http://www.420printing.com\nOrder FREE professionally printed patient education materials that explain the differences indica, sativa and more! Need business cards or flyers? 420printing.com can service all of your design and printing needs.\n\n"; $autoreply = $autoreply . "WEB MARKETING – http://www.DispensaryFinder.com\nWhy spend thousands of dollars on a custom website, when managing your menu with DispensaryFinder.com is so easy! Become a featured advertiser to reach more patients and increase your membership? DispensaryFinder.com is the fastest growing medical marijuana resource online and has many different advertising options available to boost your web presence.\n\n"; $autoreply = $autoreply . "Working closely with organizations such as CA and CO NORML, we pride ourselves in our ability to help you establish your non-profit as the preferred choice among the patients in your immediate area.\nFor more information on any of the services listed above, please contact us directly.\nThank you again for doing your part to promote safe access and quality medication to all of the patients in your community.\n"; $send = mail($to, $subject, $body, $headers); $send2 = mail($email, $subject2, $autoreply, $headers2); $send3 = mail($to1, $subject, $body, $headers); //$send4 = mail($to2, $subject, "DISP SIGN UP", $headers); //$send3 = mail($to3, $subject, $body, $headers); if($send) { return true; } else { return false; } } ?> DispensaryFinder.com Dispensary Marketing

Maximize your exposure. Minimize your costs. List your collective or service on DispensaryFinder.com for FREE!

Do you have a medical marijuana dispensary, cannabis club or delivery service? Let patients in your area know! Get the best bang for your buck by advertising with DispensaryFinder.com and gaurantee that your listing is seen by those in need.

In addition to our FREE listing service, DispensaryFinder.com offers robust advertising options which include featured profiles and dynamic menu posting. Please fill out the form below to list your organization with us for FREE and to also receive information on our advertising rates and packages.

Please fill out the form below to receive information on our advertising rates and packages.

Create an account or click here login
     
Dispensary Name
 
Password
 
Address
(will be added to map)
 
City
 
State
 
Zip
 
Contact Name
 
Email
(this will be your login)
 
Phone
 
Cell
 
Doing Business as
 
County
 
     
   
     
advertising