Changeset 633
- Timestamp:
- 06/01/07 19:01:59
(2 years ago)
- Author:
- rats
- Message:
Fixed #279: '-' and '_' not allowed in e-mail passwords
Fixed #337: uninitialized value in concatenation during setup warning
Fixed #338: welcome e-mail subject not parsed
Fixed #341: Serverports not deleteable - deleted delete text
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r632 |
r633 |
|
| 20 | 20 | * fixed serveral install bugs |
|---|
| 21 | 21 | - GUI |
|---|
| | 22 | * Fixed #279: '-' and '_' not allowed in e-mail passwords |
|---|
| 22 | 23 | * Fixed #333: Variables "{1}" in the Admin Log |
|---|
| | 24 | * Fixed #337: uninitialized value in concatenation during setup warning |
|---|
| | 25 | * Fixed #338: welcome e-mail subject not parsed |
|---|
| 23 | 26 | * Fixed #340: Logo upload not possible |
|---|
| | 27 | * Fixed #341: Serverports not deleteable - deleted delete text |
|---|
| 24 | 28 | |
|---|
| 25 | 29 | 2007-05-31 Benedikt Heintel |
|---|
| r624 |
r633 |
|
| 2746 | 2746 | push_el(\@main::el, 'setup_ispcpd()', 'Starting...'); |
|---|
| 2747 | 2747 | |
|---|
| 2748 | | sys_command_rs("$main::cfg{'CMD_CHOWN'} root:root $main::cfg{'CMD_ispCPD'} $main::cfg{'CMD_ispCPN'} &> /tmp/ispcp-setup-services.log"); |
|---|
| 2749 | | |
|---|
| 2750 | | sys_command_rs("/bin/chmod 0755 $main::cfg{'CMD_ispCPD'} $main::cfg{'CMD_ispCPN'} &> /tmp/ispcp-setup-services.log"); |
|---|
| | 2748 | sys_command_rs("$main::cfg{'CMD_CHOWN'} root:root $main::cfg{'CMD_ISPCPD'} $main::cfg{'CMD_ISPCPD'} &> /tmp/ispcp-setup-services.log"); |
|---|
| | 2749 | |
|---|
| | 2750 | sys_command_rs("/bin/chmod 0755 $main::cfg{'CMD_ISPCPD'} $main::cfg{'CMD_ISPCPD'} &> /tmp/ispcp-setup-services.log"); |
|---|
| 2751 | 2751 | |
|---|
| 2752 | 2752 | if ( -e "/usr/sbin/update-rc.d" ) { |
|---|
| … | … | |
| 2756 | 2756 | } |
|---|
| 2757 | 2757 | |
|---|
| 2758 | | sys_command_rs("$main::cfg{'CMD_ispCPD'} stop &> /tmp/ispcp-setup-services.log"); |
|---|
| | 2758 | sys_command_rs("$main::cfg{'CMD_ISPCPD'} stop &> /tmp/ispcp-setup-services.log"); |
|---|
| 2759 | 2759 | |
|---|
| 2760 | 2760 | sleep(3); |
|---|
| 2761 | 2761 | |
|---|
| 2762 | | sys_command_rs("$main::cfg{'CMD_ispCPD'} start &> /tmp/ispcp-setup-services.log"); |
|---|
| | 2762 | sys_command_rs("$main::cfg{'CMD_ISPCPD'} start &> /tmp/ispcp-setup-services.log"); |
|---|
| 2763 | 2763 | |
|---|
| 2764 | 2764 | $rs = del_file("/tmp/ispcp-setup-services.log"); |
|---|
| r474 |
r633 |
|
| 1 | 1 | <?php |
|---|
| 2 | 2 | /** |
|---|
| 3 | | * ispCP (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| | 3 | * ispCP (OMEGA) a Virtual Hosting Control System |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * @copyright 2001-2006 by moleSoftware GmbH |
|---|
| … | … | |
| 17 | 17 | * http://opensource.org | osi@opensource.org |
|---|
| 18 | 18 | **/ |
|---|
| 19 | | |
|---|
| | 19 | |
|---|
| 20 | 20 | include '../include/ispcp-lib.php'; |
|---|
| 21 | 21 | |
|---|
| … | … | |
| 154 | 154 | } //while |
|---|
| 155 | 155 | |
|---|
| 156 | | /* |
|---|
| 157 | | $ispcp_status->AddService('localhost', 21, 'FTP', 'tcp'); |
|---|
| 158 | | $ispcp_status->AddService('localhost', 22, 'SSH', 'tcp'); |
|---|
| 159 | | $ispcp_status->AddService('localhost', 23, 'Telnet', 'tcp'); |
|---|
| 160 | | $ispcp_status->AddService('localhost', 25, 'SMTP', 'tcp'); |
|---|
| 161 | | $ispcp_status->AddService('localhost', 53, 'DNS', 'tcp'); |
|---|
| 162 | | $ispcp_status->AddService('localhost', 80, 'HTTP', 'tcp'); |
|---|
| 163 | | $ispcp_status->AddService('localhost', 443, 'HTTP-SSL', 'tcp'); |
|---|
| 164 | | $ispcp_status->AddService('localhost', 110, 'POP3', 'tcp'); |
|---|
| 165 | | $ispcp_status->AddService('localhost', 995, 'POP3-SSL', 'tcp'); |
|---|
| 166 | | $ispcp_status->AddService('localhost', 143, 'IMAP', 'tcp'); |
|---|
| 167 | | $ispcp_status->AddService('localhost', 993, 'IMAP-SSL', 'tcp'); |
|---|
| 168 | | */ |
|---|
| 169 | 156 | $ispcp_status->CheckStatus(5); |
|---|
| 170 | 157 | $data = $ispcp_status->GetStatus(); |
|---|
| r596 |
r633 |
|
| 1 | 1 | <?php |
|---|
| 2 | 2 | /** |
|---|
| 3 | | * ispCP (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| | 3 | * ispCP (OMEGA) a Virtual Hosting Control System |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * @copyright 2001-2006 by moleSoftware GmbH |
|---|
| … | … | |
| 214 | 214 | 'PORT_READONLY' => 'readonly', |
|---|
| 215 | 215 | 'PROTOCOL_READONLY' => 'disabled', |
|---|
| 216 | | 'TR_DELETE' => tr('Delete'), |
|---|
| | 216 | 'TR_DELETE' => '-', |
|---|
| 217 | 217 | 'PORT_DELETE_LINK' => '' |
|---|
| 218 | 218 | ) |
|---|
| r474 |
r633 |
|
| 432 | 432 | } |
|---|
| 433 | 433 | // Not permitted chars |
|---|
| 434 | | if (!preg_match("/^([a-zA-Z0-9@*#!;.+%§=]{6,15})$/", $pass)) { |
|---|
| | 434 | if (!preg_match("/^([a-zA-Z0-9@*#!;.+%§=-_]{6,50})$/", $pass)) { |
|---|
| 435 | 435 | set_page_message(tr('Password data includes not permitted signs!')); |
|---|
| 436 | 436 | return; |
|---|
| r616 |
r633 |
|
| 22 | 22 | * |
|---|
| 23 | 23 | * source: php.net/manual/en/function.mail.php |
|---|
| 24 | | * |
|---|
| | 24 | * |
|---|
| 25 | 25 | * input: |
|---|
| 26 | 26 | * string $in_str - string to be encoded [should be in the $charset charset] |
|---|
| … | … | |
| 35 | 35 | { |
|---|
| 36 | 36 | $out_str = $in_str; |
|---|
| 37 | | if ($out_str && $charset) |
|---|
| 38 | | { |
|---|
| | 37 | if ($out_str && $charset) |
|---|
| | 38 | { |
|---|
| 39 | 39 | // define start delimimter, end delimiter and spacer |
|---|
| 40 | 40 | $end = "?="; |
|---|
| 41 | 41 | $start = "=?" . $charset . "?B?"; |
|---|
| 42 | 42 | $spacer = $end . "\r\n " . $start; |
|---|
| 43 | | |
|---|
| | 43 | |
|---|
| 44 | 44 | // determine length of encoded text within chunks |
|---|
| 45 | 45 | // and ensure length is even |
|---|
| 46 | 46 | $length = 75 - strlen($start) - strlen($end); |
|---|
| 47 | 47 | $length = floor($length/4) * 4; |
|---|
| 48 | | |
|---|
| | 48 | |
|---|
| 49 | 49 | // encode the string and split it into chunks |
|---|
| 50 | 50 | // with spacers after each chunk |
|---|
| 51 | 51 | $out_str = base64_encode($out_str); |
|---|
| 52 | 52 | $out_str = chunk_split($out_str, $length, $spacer); |
|---|
| 53 | | |
|---|
| | 53 | |
|---|
| 54 | 54 | // remove trailing spacer and |
|---|
| 55 | 55 | // add start and end delimiters |
|---|
| … | … | |
| 470 | 470 | 'TR_DELETE' => tr('Delete'), |
|---|
| 471 | 471 | 'URL_DELETE_ADMIN' => "delete_user.php?delete_id=".$rs -> fields['admin_id']."&delete_username=".$rs -> fields['admin_name'], |
|---|
| 472 | | 'ADMIN_USERNAME' => $rs -> fields['admin_name'], |
|---|
| | 472 | 'ADMIN_USERNAME' => $rs -> fields['admin_name'], |
|---|
| 473 | 473 | ) |
|---|
| 474 | 474 | ); |
|---|
| … | … | |
| 1772 | 1772 | $from_email = $data['sender_email']; |
|---|
| 1773 | 1773 | |
|---|
| 1774 | | $subject = encode ($data['subject']); |
|---|
| 1775 | | |
|---|
| 1776 | 1774 | $message = $data['message']; |
|---|
| 1777 | 1775 | |
|---|
| … | … | |
| 1811 | 1809 | $message = preg_replace("/\{PASSWORD\}/", $password, $message); |
|---|
| 1812 | 1810 | $message = preg_replace("/\{BASE_SERVER_VHOST\}/", $base_vhost, $message); |
|---|
| | 1811 | |
|---|
| | 1812 | $subject = encode($data['subject']); |
|---|
| 1813 | 1813 | |
|---|
| 1814 | 1814 | $headers = "From: $from\n"; |
|---|
|