|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 07/05/2009 at 11:22AM PDT, ID: 24545053 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: |
<?php
/* $Id: admin_invite.php 8 2009-01-11 06:02:53Z john $ */
$page = "admin_invite";
include "admin_header.php";
if(isset($_POST['task'])) { $task = $_POST['task']; } else { $task = "main"; }
// SET RESULT VARIABLE
$result = 0;
// SAVE CHANGES
if($task == "doinvite") {
$invite_emails = implode(",", array_slice(explode(",", $_POST['invite_emails']), 0, 10));
// NO INVITE CODE REQUIRED
if($setting[setting_signup_invite] == 0) {
send_systememail('invite', $invite_emails, Array($setting[setting_email_fromname], $setting[setting_email_fromemail], "", "<a href=\"".$url->url_base."signup.php\">".$url->url_base."signup.php</a>"), TRUE);
// INVITE CODE NECESSARY
} else {
// LOOP OVER EMAILS
$invite_emails_array = explode(",", $invite_emails);
for($e=0;$e<count($invite_emails_array);$e++) {
$email = trim($invite_emails_array[$e]);
if($email != "") {
// CREATE CODE, INSERT INTO DATABASE, AND SEND EMAIL
$invite_code = randomcode();
$database->database_query("INSERT INTO se_invites (invite_user_id, invite_date, invite_email, invite_code) VALUES ('0', '".time()."', '$email', '$invite_code')");
send_systememail('invitecode', $email, Array($setting[setting_email_fromname], $setting[setting_email_fromemail], "", $invite_code, "<a href=\"".$url->url_base."signup.php?signup_email=$email&signup_invite=$invite_code\">".$url->url_base."signup.php?signup_email=$email&signup_invite=$invite_code</a>"));
}
}
}
$result = 1;
}
// ASSIGN VARIABLES AND SHOW BANNING PAGE
$smarty->assign('result', $result);
include "admin_footer.php";
?>
|
Advertisement