Skip to content

Instantly share code, notes, and snippets.

@cirpo
Created December 29, 2010 23:46
Show Gist options
  • Select an option

  • Save cirpo/759234 to your computer and use it in GitHub Desktop.

Select an option

Save cirpo/759234 to your computer and use it in GitHub Desktop.
<?php
if (!$this->config->get('config_customer_approval')) {
$customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1'");
} else {
$customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1' AND approved = '1'");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment