}, '{$this->sets['default_lang']}', {$this->sets['default_email_shown']}, {$this->sets['default_pm']}, {$this->sets['default_timezone']})"); $this->sets['last_member'] = $username; $this->sets['last_member_id'] = $this->db->insert_id(); $this->sets['members']++; $this->write_sets(); if ($this->sets['emailactivation']) { return $this->send_activation_email($email, $username, $pass, $this->time); } return $this->message($this->lang->register_reging, sprintf($this->lang->register_done, $this->self)); } } function send_activation_email($email, $username, $pass, $jointime) { include './lib/mailer.php'; $mailer = new mailer($this->sets['admin_incoming'], $this->sets['admin_outgoing'], $this->sets['forum_name'], false); $message = "This is an automated email generated by MercuryBoard, and sent to you in order\n"; $message .= "for you to activate your account with {$this->sets['forum_name']}.\n\n"; $message .= "Please click the following link, or paste it in to your web browser:\n"; $message .= "{$this->sets['loc_of_board']}$this->self?a=register&s=activate&e=" . md5($email . $username . $pass . $jointime); $mailer->setSubject("{$this->sets['forum_name']} - Activating Your Account"); $mailer->setMessage($message); $mailer->setRecipient($email); $mailer->setServer($this->sets['mailserver']); $mailer->doSend(); return $this->message($this->lang->register_reging, sprintf($this->lang->register_must_activate, $email)); } function activateUser() { if (isset($this->get['e'])) { $member = $this->db->fetch("SELECT user_id FROM {$this->pre}users WHERE MD5(CONCAT(user_email, user_name, user_password, user_joined))='{$this->get['e']}' LIMIT 1"); if (isset($member['user_id'])) { $this->db->query("UPDATE {$this->pre}users SET user_group=" . $this->sets['default_group'] . " WHERE user_id={$member['user_id']}"); return $this->message($this->lang->register_activating, $this->lang->register_activated); } } return $this->message($this->lang->register_activating, $this->lang->register_activation_error); } function create_image() { include './lib/jpgraph/jpgraph.php'; include './lib/jpgraph/jpgraph_polar.php'; $graph = new PolarGraph(250, 250); $graph->SetScale('lin'); $graph->SetMargin(0, 1, 0, 1); $graph->axis->ShowAngleLabel(false); $graph->axis->HideTicks(); $graph->axis->HideLabels(); $graph->axis->HideLine(); $fonts = array(FF_ARIAL, FF_VERDANA, FF_TREBUCHE, FF_GEORGIA, FF_COMIC, FF_COURIER, FF_TIMES); $styles = array(FS_NORMAL, FS_BOLD, FS_ITALIC); $text = $this->generate_pass(6); $font = $fonts[rand(0, count($fonts) - 1)]; $style = $styles[rand(0, count($styles) - 1)]; if (($font == FF_COMIC) && ($style == FS_ITALIC)) { $style = FS_NORMAL; } $txt = new Text($text); $txt->Pos(rand(10, 140), rand(10, 140)); $txt->SetFont($font, $style, rand(20, 26)); $txt->SetColor('black'); $txt->SetAngle(rand(-45, 45)); $graph->AddText($txt); $graph->Stroke('./register.png'); return array(md5("{$this->sets['db_pass']}{$this->sets['mostonlinetime']}$text"), './register.png'); } } ?>
Fatal error: Class 'register' not found in D:\home\biggs266\camelsquadron.com\forums\index.php on line 66