--- antiproxyhack.module Sun Nov 04 23:36:51 2007 +++ antiproxyhack.module Sun Nov 04 23:33:23 2007 @@ -17,6 +17,15 @@ } /** + * Implemenation of hook_perm(). + */ +function antiproxyhack_perm() { + + return array('administer antiproxyhack'); + +} + +/** * Implementation of hook_menu(). */ function antiproxyhack_menu($may_cache) { @@ -109,7 +118,7 @@ // retrieve cloaking data filtered by the supplied parameters function antiproxyhack_get($id = 0, $spider_name = '', $record_type = '', $value = '', $wildcard_value = '', $is_user_defined_data = '', $not_spider_name = '') { // by default, retrieve all records - $q = " SELECT antiproxyhack_cloak_data.* FROM {antiproxyhack_cloak_data} WHERE TRUE "; + $q = " SELECT a.* FROM {antiproxyhack_cloak_data} a WHERE TRUE "; // add filters if ($id) { @@ -152,7 +161,7 @@ // more than 7 days old, and if the online version from iplists.org has changed function antiproxyhack_update_all($delete_user_defined_data = false) { // retrieve last update information from database - $q = "SELECT antiproxyhack_cloak_update.* FROM {antiproxyhack_cloak_update}"; + $q = "SELECT a.* FROM {antiproxyhack_cloak_update} a"; $updated = db_fetch_array(db_query($q)); $db_version = $updated['version']; $updated_on = $updated ['updated_on'];