Revision 386
Added by Matthias almost 18 years ago
index.php | ||
---|---|---|
38 | 38 |
header('Location: index.php?sessions_checked=true'); |
39 | 39 |
exit(0); |
40 | 40 |
} else { |
41 |
// Check if session variable has been saved after reload
|
|
42 |
if(isset($_SESSION['session_support'])) {
|
|
43 |
$session_support = $_SESSION['session_support'];
|
|
44 |
} else {
|
|
45 |
$session_support = '<font class="bad">Disabled</font>';
|
|
46 |
}
|
|
41 |
// Check if session variable has been saved after reload
|
|
42 |
if(isset($_SESSION['session_support'])) {
|
|
43 |
$session_support = $_SESSION['session_support'];
|
|
44 |
} else {
|
|
45 |
$session_support = '<font class="bad">Disabled</font>';
|
|
46 |
}
|
|
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
?> |
... | ... | |
68 | 68 |
document.getElementById('file_perms_box').style.display = 'none'; |
69 | 69 |
} |
70 | 70 |
} |
71 |
function change_mail_type(type) { |
|
72 |
if(type == 'php') { |
|
73 |
document.getElementById('outgoing_mails_php').checked = true; |
|
74 |
document.getElementById('outgoing_mails_smtp').checked = false; |
|
75 |
document.getElementById('smtp_server').style.display = 'none'; |
|
76 |
document.getElementById('caption_smtp_server').style.color = '#FFF'; |
|
77 |
} else if(type == 'smtp') { |
|
78 |
document.getElementById('outgoing_mails_php').checked = false; |
|
79 |
document.getElementById('outgoing_mails_smtp').checked = true; |
|
80 |
document.getElementById('smtp_server').style.display = 'block'; |
|
81 |
document.getElementById('caption_smtp_server').style.color = '#666'; |
|
82 |
} |
|
83 |
} |
|
71 | 84 |
|
72 | 85 |
</script> |
73 | 86 |
</head> |
... | ... | |
332 | 345 |
</td> |
333 | 346 |
</tr> |
334 | 347 |
<tr> |
348 |
<td colspan="5"><h1>Step 7 (optional)</h1>Please specify options for outgoing mails below...</td> |
|
349 |
</tr> |
|
350 |
<tr> |
|
351 |
<td width="170"> |
|
352 |
Send outgoing mails via: |
|
353 |
</td> |
|
354 |
<td> |
|
355 |
<input type="radio" tabindex="18" name="outgoing_mails" id="outgoing_mails_php" onclick="document.getElementById('smtp_server').style.display = 'none';" value="php"<?php if(!isset($_SESSION['outgoing_mails']) OR $_SESSION['outgoing_mails'] == 'php') { echo ' checked'; } ?> /> |
|
356 |
<font style="cursor: pointer;" onclick="javascript: change_mail_type('php');">PHP mail()</font> |
|
357 |
<br /> |
|
358 |
<input type="radio" tabindex="19" name="outgoing_mails" id="outgoing_mails_smtp" onclick="document.getElementById('smtp_server').style.display = 'block';" value="smtp"<?php if(isset($_SESSION['outgoing_mails']) AND $_SESSION['outgoing_mails'] == 'smtp') { echo ' checked'; } ?> /> |
|
359 |
<font style="cursor: pointer;" onclick="javascript: change_mail_type('smtp');">SMTP</font> |
|
360 |
</td> |
|
361 |
<td id="caption_smtp_server" colspan="2" style="color: <?php if(!isset($_SESSION['outgoing_mails']) OR $_SESSION['outgoing_mails'] == 'php') { echo '#FFF'; } else { echo '#666'; } ?>;">SMTP host:</td> |
|
362 |
<td> |
|
363 |
<input type="text" tabindex="20" id="smtp_server" name="smtp_server" style="display: <?php if(!isset($_SESSION['outgoing_mails']) OR $_SESSION['outgoing_mails'] == 'php') { echo 'none'; } else { echo 'block'; } ?>;" value="<?php if(isset($_SESSION['smtp_server'])) { echo $_SESSION['smtp_server']; } else { echo 'xxx.yourdomain.com'; } ?>" /> |
|
364 |
</td> |
|
365 |
</tr> |
|
366 |
<tr> |
|
367 |
<td colspan="5"> |
|
368 |
<strong>Note:</strong><br \>Some mail provider (like GMX) do not deliver mails not send via SMTP to prevent spamming. |
|
369 |
To enable SMTP for all mails send out by Website Baker, you need to know the SMTP host of your domain.<br \> |
|
370 |
If you are not sure about the settings, or you do not know the SMTP host of your domain, stay with the default setting PHP mail(). You can change the settings |
|
371 |
later by modifying one entry in the config.php file. |
|
372 |
</td> |
|
373 |
</tr> |
|
374 |
<tr> |
|
335 | 375 |
<td colspan="5" style="padding: 10px; padding-bottom: 0;"><h1 style="font-size: 0px;"> </h1></td> |
336 | 376 |
</tr> |
337 | 377 |
<tr> |
Also available in: Unified diff
Added phpmailer class (thanks to doc)