PHP Method User::getEmailAddress, codiad Code Examples

This page contains top rated real world PHP examples of method User::getEmailAddress from package codiad extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
Show file File: EventTracker.php Project: gg1977/frontend
0
 public function track($action, $params = array())
 {
     $user = new User();
     $url = $this->config->customerio->url;
     $id = $this->config->customerio->id;
     $key = $this->config->customerio->key;
     $email = $user->getEmailAddress();
     $emailHash = sha1($email);
     $url = sprintf('%s/%s/events', $url, $emailHash);
     $data = array();
     foreach ($params as $k => $v) {
         $data[sprintf('data[%s]', $k)] = $v;
     }
     $defaults = array('name' => $action, '-u' => sprintf('%s:%s', $id, $key));
     $params = array_merge($defaults, $data);
     $this->http->fireAndForget($url, 'POST', $params);
 }
Example #2
Show file File: check-in.php Project: tejdeeps/tejcs.com
0
         * Send out email notifications to reviewers
         */
        $file_obj = new FileData($id, $GLOBALS['connection'], DB_NAME);
        $get_full_name = $user_obj->getFullName();
        $full_name = $get_full_name[0] . ' ' . $get_full_name[1];
        $department = $file_obj->getDepartment();
        $reviewer_obj = new Reviewer($id, $GLOBALS['connection'], DB_NAME);
        $reviewer_list = $reviewer_obj->getReviewersForDepartment($department);
        $date = date('Y-m-d H:i:s T');
        // Build email for general notices
        $mail_subject = msg('checkinpage_file_was_checked_in');
        $mail_body2 = msg('checkinpage_file_was_checked_in') . "\n\n";
        $mail_body2 .= msg('label_filename') . ':  ' . $file_obj->getName() . "\n\n";
        $mail_body2 .= msg('label_status') . ': ' . msg('addpage_new') . "\n\n";
        $mail_body2 .= msg('date') . ': ' . $date . "\n\n";
        $mail_body2 .= msg('addpage_uploader') . ': ' . $full_name . "\n\n";
        $mail_body2 .= msg('email_thank_you') . ',' . "\n\n";
        $mail_body2 .= msg('email_automated_document_messenger') . "\n\n";
        $mail_body2 .= $GLOBALS['CONFIG']['base_url'] . "\n\n";
        $email_obj = new Email();
        $email_obj->setFullName($full_name);
        $email_obj->setSubject($mail_subject);
        $email_obj->setFrom($full_name . ' <' . $user_obj->getEmailAddress() . '>');
        $email_obj->setRecipients($reviewer_list);
        $email_obj->setBody($mail_body2);
        $email_obj->sendEmail();
        // clean up and back to main page
        $last_message = msg('message_document_checked_in');
        header('Location: out.php?last_message=' . urlencode($last_message));
    }
}
Example #3
Show file File: details.php Project: watsonad/opendocman
0
    $stmt->execute(array(':log_id' => $request_id));
    $revisionData = $stmt->fetchAll();
}
$rows = $stmt->rowCount();
if ($rows == 1 && !isset($revision_id)) {
    $revision = "1";
} elseif (isset($revision_id)) {
    $revision = $revision_id + 1;
} else {
    $revision = "{$rows}";
}
$file_under_review = $file_data_obj->isPublishable() == -1 ? true : false;
$to_value = isset($reviewer_comments_fields[0]) ? substr($reviewer_comments_fields[0], 3) : '';
$subject_value = isset($reviewer_comments_fields[1]) ? substr($reviewer_comments_fields[1], 8) : '';
$comments_value = isset($reviewer_comments_fields[2]) ? substr($reviewer_comments_fields[2], 9) : '';
$file_detail_array = array('file_unlocked' => $file_unlocked, 'to_value' => $to_value, 'subject_value' => $subject_value, 'comments_value' => $comments_value, 'realname' => $real_name, 'category' => $category, 'filesize' => $file_size, 'created' => fix_date($created), 'owner_email' => $user_obj->getEmailAddress(), 'owner' => $owner_last_first, 'owner_fullname' => $owner_first_last, 'description' => wordwrap($description, 50, '<br />'), 'comment' => wordwrap($comment, 50, '<br />'), 'udf_details_display' => udf_details_display($request_id), 'revision' => $revision, 'file_under_review' => $file_under_review, 'reviewer' => $reviewer, 'status' => $status);
if ($status > 0) {
    // status != 0 -> file checked out to another user. status = uid of the check-out person
    // query to find out who...
    $checkout_person_obj = $file_data_obj->getCheckerOBJ();
    $full_name = $checkout_person_obj->getFullName();
    $GLOBALS['smarty']->assign('checkout_person_full_name', $full_name);
    $GLOBALS['smarty']->assign('checkout_person_email', $checkout_person_obj->getEmailAddress());
}
// Can they Read?
if ($user_permission_obj->getAuthority($request_id, $file_data_obj) >= $user_permission_obj->READ_RIGHT) {
    $view_link = 'view_file.php?id=' . e::h($full_requestId) . '&state=' . ($state + 1);
    $GLOBALS['smarty']->assign('view_link', $view_link);
}
// Lets figure out which buttons to show
if ($status == 0 || $status == -1 && $file_data_obj->isOwner($_SESSION['uid'])) {
Example #4
Show file File: DatabaseMySql.php Project: jjdelc/frontend
0
 private function getActor()
 {
     if ($this->actor !== null) {
         return $this->actor;
     }
     $user = new User();
     $this->actor = $user->getEmailAddress();
     return $this->actor;
 }
Example #5
Show file File: BaseModel.php Project: gg1977/frontend
0
 public function getActor()
 {
     $user = new User();
     return $user->getEmailAddress();
 }
Example #6
Show file File: user.php Project: tejdeeps/tejcs.com
0
        $full_name = $get_full_name[0] . ' ' . $get_full_name[1];
        $get_full_name = $new_user_obj->getFullName();
        $new_user_full_name = $get_full_name[0] . ' ' . $get_full_name[1];
        $mail_from = $full_name . ' <' . $user_obj->getEmailAddress() . '>';
        $mail_headers = "From: {$mail_from}" . "\r\n";
        $mail_headers .= "Content-Type: text/plain; charset=UTF-8" . "\r\n";
        $mail_subject = msg('message_account_created_add_user');
        $mail_greeting = $new_user_full_name . ":\n\r\t" . msg('email_i_would_like_to_inform');
        $mail_body = msg('email_your_account_created') . ' ' . $date . '.  ' . msg('email_you_can_now_login') . ':' . "\n\r";
        $mail_body .= $GLOBALS['CONFIG']['base_url'] . "\n\n";
        $mail_body .= msg('username') . ': ' . $new_user_obj->getName() . "\n\n";
        if ($GLOBALS['CONFIG']['authen'] == 'mysql') {
            $mail_body .= msg('password') . ': ' . $_POST['password'] . "\n\n";
        }
        $mail_salute = "\n\r" . msg('email_salute') . ",\n\r{$full_name}";
        $mail_to = $new_user_obj->getEmailAddress();
        if ($GLOBALS['CONFIG']['demo'] == 'False') {
            mail($mail_to, $mail_subject, $mail_greeting . ' ' . $mail_body . $mail_salute, $mail_headers);
        }
        $last_message = urlencode(msg('message_user_successfully_added'));
        // Call the plugin API call for this section
        callPluginMethod('onAfterAddUser');
        header('Location: ' . $secureurl->encode('admin.php?last_message=' . $last_message));
    }
} elseif (isset($_POST['submit']) && 'Delete User' == $_POST['submit']) {
    // Make sure they are an admin
    if (!$user_obj->isAdmin()) {
        header('Location:' . $secureurl->encode('error.php?ec=4'));
        exit;
    }
    // form has been submitted -> process data
Example #7
Show file File: add.php Project: PramodhKG/dms
0
 }
 // use id to generate a file name
 // save uploaded file with new name
 $newFileName = $fileId . '.dat';
 move_uploaded_file($tmp_name[$count], $GLOBALS['CONFIG']['dataDir'] . '/' . $newFileName);
 //copy($GLOBALS['CONFIG']['dataDir'] . '/' . ($fileId-1) . '.dat', $GLOBALS['CONFIG']['dataDir'] . '/' . $newFileName);
 AccessLog::addLogEntry($fileId, 'A', $pdo);
 // back to main page
 $message = urlencode(msg('message_document_added'));
 /**
  * Send out email notifications to reviewers
  */
 $file_obj = new FileData($fileId, $pdo);
 $get_full_name = $user_obj->getFullName();
 $full_name = $get_full_name[0] . ' ' . $get_full_name[1];
 $from = $user_obj->getEmailAddress();
 $department = $file_obj->getDepartment();
 $reviewer_obj = new Reviewer($fileId, $pdo);
 $reviewer_list = $reviewer_obj->getReviewersForDepartment($department);
 $date = date('Y-m-d H:i:s T');
 // Build email for general notices
 $mail_subject = msg('addpage_new_file_added');
 $mail_body2 = msg('email_a_new_file_has_been_added') . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('label_filename') . ':  ' . $file_obj->getName() . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('label_status') . ': ' . msg('addpage_new') . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('date') . ': ' . $date . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('addpage_uploader') . ': ' . $full_name . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('email_thank_you') . ',' . PHP_EOL . PHP_EOL;
 $mail_body2 .= msg('email_automated_document_messenger') . PHP_EOL . PHP_EOL;
 $mail_body2 .= $GLOBALS['CONFIG']['base_url'] . PHP_EOL . PHP_EOL;
 $email_obj = new Email();
Example #8
Show file File: data.php Project: jamiezyx/MorpheusPets
0
 /**
  * Update User information
  *
  * @param User   $profileUser
  * @param string $description
  */
 public function updateUser($profileUser, $description)
 {
     $id = $profileUser->getId();
     $username = $profileUser->getUsername();
     $email_address = $profileUser->getEmailAddress();
     $password_hash = $profileUser->getPasswordHash();
     $this->updateUserStatement->bind_param("ssssi", $username, $password_hash, $email_address, $description, $id);
     $this->updateUserStatement->execute();
 }
Example #9
Show file File: user_view.php Project: laiello/candydolldb
0
     if ($_POST['txtRepeatPassword'] && $_POST['txtRepeatPassword'] == $_POST['txtPassword']) {
         $NewSalt = Utils::GenerateGarbage(20);
         $_SESSION['UserSalt'] = $NewSalt;
         $User->setSalt($NewSalt);
         $User->setPassword(Utils::HashString($_POST['txtPassword'], $NewSalt));
     } else {
         $PasswordError = TRUE;
     }
 }
 if ($_POST['txtBirthDate'] && $_POST['txtBirthDate'] != 'YYYY-MM-DD' && strtotime($_POST['txtBirthDate']) !== FALSE) {
     $User->setBirthDate(strtotime($_POST['txtBirthDate']));
 } else {
     $User->setBirthDate(-1);
 }
 if (!$PasswordError || $DeleteUser) {
     if (Utils::ValidateEmail($User->getEmailAddress()) || $DeleteUser) {
         if ($User->getID()) {
             if ($DeleteUser) {
                 if (User::Delete($User, $CurrentUser)) {
                     session_regenerate_id(TRUE);
                     header('location:user.php');
                     exit;
                 }
             } else {
                 if (User::Update($User, $CurrentUser)) {
                     if ($User->getID() == $CurrentUser->getID()) {
                         $_SESSION['CurrentUser'] = serialize($User);
                     }
                     session_regenerate_id(TRUE);
                     header('location:user.php');
                     exit;