/** * Get user tags */ public function getTags() { return array('user' => array('id' => $this->user->id, 'name' => $this->user->name, 'email' => $this->user->email, 'created_at' => dateOnly($this->user->created_at), 'updated_at' => dateOnly($this->user->updated_at), 'notes' => $this->user->notes, 'role' => $this->user->role, 'first_name' => $this->user->first_name, 'last_name' => $this->user->last_name, 'birth_date' => dateOnly($this->user->birth_date), 'company' => $this->user->company, 'contact' => $this->user->contact, 'home_phone' => $this->user->home_phone, 'cell_phone' => $this->user->cell_phone, 'work_phone' => $this->user->work_phone, 'fax' => $this->user->fax, 'shipping_contact' => $this->user->shipping_contact, 'shipping_address1' => $this->user->shipping_address1, 'shipping_address2' => $this->user->shipping_address2, 'shipping_city' => $this->user->shipping_city, 'shipping_zip' => $this->user->shipping_zip, 'shipping_state' => $this->user->shipping_state && $this->user->shippingState ? $this->user->shippingState->name : '', 'shipping_country' => $this->user->shipping_country && $this->user->shippingCountry ? $this->user->shippingCountry->name : '', 'billing_contact' => $this->user->billing_contact, 'billing_address1' => $this->user->billing_address1, 'billing_address2' => $this->user->billing_address2, 'billing_city' => $this->user->billing_city, 'billing_zip' => $this->user->billing_zip, 'billing_state' => $this->user->billing_state && $this->user->billingState ? $this->user->billingState->name : '', 'billing_country' => $this->user->billing_country && $this->user->billingCountry ? $this->user->billingCountry->name : '', 'last_visited' => dateOnly($this->user->last_visited))); }
showDebug("Sleeping for " . $vbulletin->options['qhvbmailer_sleepamount'] . " seconds"); sleep($vbulletin->options['qhvbmailer_sleepamount']); $sends = 0; } } else { showDebug("Email cannot be sent to '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 2); } } else { showDebug("Could not get phrases for '" . $user['email'] . "' [ID: " . $user['userid'] . "]", 3); } } } } else { showDebug("'" . $user['email'] . "' [ID: " . $user['userid'] . "] does not wish to receive emails"); } $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET qhvbmailer_ar_day=qhvbmailer_ar_day+1, qhvbmailer_ar_last='" . dateOnly() . "' WHERE userid='" . $user['userid'] . "'"); } showDebug(); } /* Please do not remove this Copyright notice. As you see this is a free script accordingly under GPL laws and you will see a license attached accordingly to GNU. You may NOT rewrite another hack and release it to the vBulletin.org community or another website using this code without our permission, So do NOT try to release a hack using any part of our code without written permission from us! Copyright 2007, BlogToRank.com QH vbMailer v2.1 December 2, 2007 */ /*======================================================================*\ || #################################################################### ||