Exemplo n.º 1
0
function sendMailToEntrepreneur($user_id, $email, $amount, $user_id, $campaign_name)
{
    $from_address = FROM_EMAIL_ADDRESS;
    $bcc_address = SIVI_ADMIN_EMAIL;
    $to = $email;
    global $funding_for, $pledged, $pledgegoal;
    $so_far_pledged = $pledged + $amount;
    $server = 'https://' . $_SERVER['HTTP_HOST'];
    list($first_name, $last_name, $username, $account_email) = getAccountDetails($user_id);
    $name_of_project = getProjectName($user_id);
    $email = $account_email;
    #$name_of_campaign
    #$subject = "New Donation Alert! $fullName Just Pledged \$$amount USD to $name_of_project on LaunchLeader";
    $subject = "Unfortunately, {$first_name} {$last_name}, Your Campaign was Not Successfully Funded on LaunchLeader";
    $message = "<html><body>\nHi {$first_name},<br> \n<br>\nThank you for creating your {$campaign_name} campaign for <a href=\"{$server}/profile?u={$username}\">{$name_of_project}</a>. <br>\nUnfortunately, this campaign did not reach its funding goal by the deadline. Because campaigns on LaunchLeader<br>\nmust reach their minimum goal in order to receive funding, your donation pledges of \${$amount} USD have been<br>\ncancelled and your donor's credit cards will not be charged<br>\n<br>\nEven though this campaign did not reach its goal, your entrepreneurial spirit is still highly appreciated.<br>\nEntrepreneurship is about overcoming small failures to achieve overall success. We encourage you to<br>\ncontinue engaging your community by going back to the <a href=\"{$server}/profile?u={$username}\">project page</a> and creating new campaigns,<br>\nupdating your profile and posting updates.<br><br>\nAs always, please <a href=\\mailto:support@launchleader.com\">let us know</a> if there’s anything we can do to help!<br>\n<br>\nBest wishes!<br>\n<br>\n The LaunchLeader Team<br>\n</body></html>\n";
    //     'Reply-To: webmaster@example.com' . "\r\n" .
    $headers = "From: {$from_address}" . "\r\n";
    $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
    if ($bcc_address != "") {
        $headers .= "Bcc: {$bcc_address}\r\n";
    }
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    mail($to, $subject, $message, $headers);
}
Exemplo n.º 2
0
    ?>
		<div class="resolved-issue-msg-notification"><?php 
    getValue('msg_resolved_consult');
    ?>
</div>
	<?php 
}
?>
	<div>
		<div>
			<div class="consultation_detail_icon">
				<img alt="consult_detail_icon.gif" src="templates/medicnexus/images/consult_detail_icon.gif" />
			</div>
			<div class="consultation_detail_title">
			<?php 
getProjectName();
echo ' - ';
getValue('label_consultation_details');
?>
			</div>
		</div>
		<div class="consultation_detail_body">
			<table width="100%" cellpadding="3" cellspacing="0">
				<tr valign="top">
					<td class="consult_det_title"><label><?php 
getValue('label_payment_type');
?>
:</label>
					</td>
					<td class="consult_det_info"><?php 
echo replaceRToBr($issue->custom_fields[0]->value);
Exemplo n.º 3
0
function sendMailToEntrepreneur($fullName, $email, $amount, $username)
{
    global $pmode;
    $from_address = FROM_EMAIL_ADDRESS;
    $bcc_address = SIVI_ADMIN_EMAIL;
    global $funding_for, $pledged, $pledgegoal;
    $so_far_pledged = $pledged + $amount;
    $server = 'http://' . $_SERVER['HTTP_HOST'];
    list($first_name, $last_name, $user_id, $email) = getAccountDetails($username);
    $to = $email;
    $name_of_project = getProjectName($user_id);
    #$name_of_campaign
    #$subject = "New Donation Alert! $fullName Just Pledged \$$amount USD to $name_of_project on LaunchLeader";
    $subject = "New Donation Alert! {$fullName} Just Pledged \${$amount} USD to your project on LaunchLeader";
    $message = "<html><body>\nHi {$first_name},<br> \n<br>\nGood news! {$fullName} just donated to {$funding_for} for <a href=\"{$server}/profile/{$username}?pmode={$pmode}\">{$name_of_project}</a> <br>\n<br>\nAmount pledged: \${$amount} USD<br>\n<br>\nNow \${$so_far_pledged} USD is currently pledged toward your \${$pledgegoal} USD goal.<br>\n<br>\nRemember that you must reach your campaign goal by the deadline in order to receive any funding.<br>\n<br>\nGo to your <a href=\"{$server}/login?pmode={$pmode}\">project page dashboard</a> to review activity, engage your donors and continue promoting your<br>\ncampaign.<br>\n<br>\nBest wishes!<br>\n<br>\n The LaunchLeader Team\n</body></html>\n";
    //     'Reply-To: webmaster@example.com' . "\r\n" .
    $headers = "From: {$from_address}" . "\r\n";
    $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
    if ($bcc_address != "") {
        $headers .= "Bcc: {$bcc_address}\r\n";
    }
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    mail($to, $subject, $message, $headers);
}
Exemplo n.º 4
0
function sendDeclinedMailToEntrepreneur($funding_details_id, $fund_amount, $funder_id)
{
    $from_address = FROM_EMAIL_ADDRESS;
    $cc_address = SIVI_ADMIN_EMAIL;
    global $eID, $aID, $application_fee;
    $stripe_fee = 3 + $application_fee;
    $server = '//' . $_SERVER['HTTP_HOST'];
    list($first_name, $last_name, $username, $email, $pmode) = getAccountDetails($aID);
    $campaign_name = getCampaignName($eID);
    list($funder_name, $email) = getFullName($funder_id);
    $to = $email;
    $name_of_project = getProjectName($aID);
    #$name_of_campaign
    $subject = "Unable To Process Funding for Your {$campaign_name} Campaign on LaunchLeader";
    $message = "<html><body>\n    Hi {$first_name},<br>\n    <br>\n    The good news is that your {$campaign_name} for <a href=\"{$server}/profile?u={$username}&pmode={$pmode}\">{$name_of_project}</a> just successfully reached its<br>\n    funding goal on LaunchLeader.<br>\n    <br>\n\n    The bad news is that <br>we are unable to process the following donations because the donor’s credit card has been declined by his/her bank.</b><br>\n    This could be due to a variety of reasons such as changes with the card information or passing the expiration date.<br>\n    <br>\n    -- {$funder_name}, Amount pledged \${$fund_amount} USD<br>\n\n    <br>\n    Thanks,<br>\n    <br>\n    The LaunchLeader Team\n    </body></html>\n    ";
    //     'Reply-To: webmaster@example.com' . "\r\n" .
    $headers = "From: {$from_address}" . "\r\n";
    $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
    if ($cc_address != "") {
        $headers .= "CC: {$cc_address}\r\n";
    }
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    mail($to, $subject, $message, $headers);
}
Exemplo n.º 5
0
    } else {
        // Else, there was an programming error related to de $_FILES variable
        $ret["success"] = 1;
        $ret["successMsg"] = "Internal upload problem";
    }
    // Check if any problems uploading all files
    if (is_array($_FILES['folderPost']['error'])) {
        foreach ($_FILES['folderPost']['error'] as $key => $val) {
            if ($val != 0) {
                $ret["success"] = 2;
                $ret["successMsg"] = "Problem uploading file " . $_FILES['folderPost']['name'][$key];
            }
        }
    }
    //return project name (the name of the folder of the project, after being fixed if it had whitespace characters)
    $ret["projectName"] = getProjectName($valFullPath[0]);
    //0 because is the first file. any file can give us the root path.
    echo json_encode($ret);
}
// Recursively fixes names of all folders of the given path, that should be the path of a file.
// (e.g. folder "one/folder two/file name.csv" returns "folder_one/folder_two/file_name.csv")
function fixFolderName($path)
{
    $parts = explode('/', $path);
    if (count($parts) > 1) {
        $osPathSeparator = '/';
    } else {
        unset($parts);
        $parts = explode('\\', $path);
        // my paths are built with '/'
        if (count($parts) > 1) {
Exemplo n.º 6
0
      <!--
        body {font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; text-align: center; color: #3A3A3A; background-color: #F4F4F4}
        h1 {color: #036;}
        li {margin: 10px;}
        ul {border: 1px dotted #040404; width: 600px; }
        .red {color: red;}
        a:link, a:visited, a:active { text-decoration: underline; color: #444444}
        a:hover { text-decoration: underline; color: #0482FE }
        .mainframe {text-align: left; margin: 50px; padding: 50px; width: 80%; }
      -->
      </style>
   </head>
   <body>
      <div class='mainframe'>
      <h1><?php 
echo getProjectName();
?>
 Linux-Downloads</h1>
      Please choose the download matching your architecture!
      <ul>
         <li>Ubuntu <b class='red'>32 bit</b> (i386): <a href="<?php 
echo $_link32;
?>
" title="32bit">http://code.google.com/p/vlc-record/down ... i386.deb</a></li>
         <li>Ubuntu <b class='red'>64 bit</b> (amd64): <a href="<?php 
echo $_link64;
?>
" title="64bit">http://code.google.com/p/vlc-record/down ... amd64.deb</a></li>
      </ul>
      </div>
   </body>
Exemplo n.º 7
0
function display_project_user_list($project_id)
{
    $user_list = getProjectUsers($project_id);
    if (empty($user_list)) {
        print '<span >';
        print getProjectName($project_id) . '<br/>';
        print 'No Users Assigned!';
        print '<br/>';
        print '<input type="button" name="add_user" value="Add User" onclick="selectUsers(' . $project_id . ')"/>';
        print '</span>';
        return;
    }
    foreach ($user_list as $id => $attributes) {
        print '<input type="checkbox" value="' . $id . '" ';
        print 'checked="checked" ';
        print 'id="user_' . $id . '" />';
        print $attributes['firstname'] . ' ' . $attributes['lastname'];
        print '<br/>';
    }
    print '<input type="button" name="update_users" value="Update User List" onclick="removeUsers(' . $project_id . ')"/>';
    print '<input type="button" name="add_user" value="Add User" onclick="selectUsers(' . $project_id . ')"/>';
}