diff --git a/admin_aps.php b/admin_aps.php index 7971fcd6..3316dc37 100644 --- a/admin_aps.php +++ b/admin_aps.php @@ -1,34 +1,34 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: admin_aps.php 2692 2009-03-27 18:04:47Z flo $ - * @todo - */ - -// Required code - -define('AREA', 'admin'); -require ("./lib/init.php"); -require ("./lib/class_apsparser.php"); -$Id = 0; - -if(isset($_GET['id']))$Id = (int)$_GET['id']; - -if(isset($_POST['id']))$Id = (int)$_POST['id']; -eval("echo \"" . getTemplate("aps/header") . "\";"); -$Aps = new ApsParser($userinfo, $settings, $db); -$Aps->MainHandler($action); -eval("echo \"" . getTemplate("aps/footer") . "\";"); - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: admin_aps.php 2692 2009-03-27 18:04:47Z flo $ + * @todo + */ + +// Required code + +define('AREA', 'admin'); +require ("./lib/init.php"); +require ("./lib/class_apsparser.php"); +$Id = 0; + +if(isset($_GET['id']))$Id = (int)$_GET['id']; + +if(isset($_POST['id']))$Id = (int)$_POST['id']; +eval("echo \"" . getTemplate("aps/header") . "\";"); +$Aps = new ApsParser($userinfo, $settings, $db); +$Aps->MainHandler($action); +eval("echo \"" . getTemplate("aps/footer") . "\";"); + ?> \ No newline at end of file diff --git a/admin_customers.php b/admin_customers.php index 4e13c69c..19fe5c1b 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -1,1185 +1,1185 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: admin_customers.php 2732 2009-10-30 16:24:48Z flo $ - */ - -define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -$need_root_db_sql_data = true; -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'customers' - && $userinfo['customers'] != '0') -{ - if($action == '') - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_customers"); - $fields = array( - 'c.loginname' => $lng['login']['username'], - 'a.loginname' => $lng['admin']['admin'], - 'c.name' => $lng['customer']['name'], - 'c.firstname' => $lng['customer']['firstname'], - 'c.company' => $lng['customer']['company'], - 'c.diskspace' => $lng['customer']['diskspace'], - 'c.diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')', - 'c.traffic' => $lng['customer']['traffic'], - 'c.traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')', - 'c.mysqls' => $lng['customer']['mysqls'], - 'c.mysqls_used' => $lng['customer']['mysqls'] . ' (' . $lng['panel']['used'] . ')', - 'c.ftps' => $lng['customer']['ftps'], - 'c.ftps_used' => $lng['customer']['ftps'] . ' (' . $lng['panel']['used'] . ')', - 'c.subdomains' => $lng['customer']['subdomains'], - 'c.subdomains_used' => $lng['customer']['subdomains'] . ' (' . $lng['panel']['used'] . ')', - 'c.emails' => $lng['customer']['emails'], - 'c.emails_used' => $lng['customer']['emails'] . ' (' . $lng['panel']['used'] . ')', - 'c.email_accounts' => $lng['customer']['accounts'], - 'c.email_accounts_used' => $lng['customer']['accounts'] . ' (' . $lng['panel']['used'] . ')', - 'c.email_forwarders' => $lng['customer']['forwarders'], - 'c.email_forwarders_used' => $lng['customer']['forwarders'] . ' (' . $lng['panel']['used'] . ')', - 'c.email_quota' => $lng['customer']['email_quota'], - 'c.email_quota_used' => $lng['customer']['email_quota'] . ' (' . $lng['panel']['used'] . ')', - 'c.deactivated' => $lng['admin']['deactivated'], - 'c.phpenabled' => $lng['admin']['phpenabled'] - ); - - if($settings['ticket']['enabled'] == 1) - { - $fields['c.tickets'] = $lng['customer']['tickets']; - $fields['c.tickets_used'] = $lng['customer']['tickets'] . ' (' . $lng['panel']['used'] . ')'; - } - - $paging = new paging($userinfo, $db, TABLE_PANEL_CUSTOMERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $customers = ''; - $result = $db->query("SELECT `c`.*, `a`.`loginname` AS `adminname` " . "FROM `" . TABLE_PANEL_CUSTOMERS . "` `c`, `" . TABLE_PANEL_ADMINS . "` `a` " . "WHERE " . ($userinfo['customers_see_all'] ? '' : " `c`.`adminid` = '" . (int)$userinfo['adminid'] . "' AND ") . "`c`.`adminid`=`a`.`adminid` " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng, true); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - $domains = $db->query_first("SELECT COUNT(`id`) AS `domains` " . "FROM `" . TABLE_PANEL_DOMAINS . "` " . "WHERE `customerid`='" . (int)$row['customerid'] . "' AND `parentdomainid`='0' AND `id`<> '" . (int)$row['standardsubdomain'] . "'"); - $row['domains'] = intval($domains['domains']); - $row['traffic_used'] = round($row['traffic_used'] / (1024 * 1024), $settings['panel']['decimal_places']); - $row['traffic'] = round($row['traffic'] / (1024 * 1024), $settings['panel']['decimal_places']); - $row['diskspace_used'] = round($row['diskspace_used'] / 1024, $settings['panel']['decimal_places']); - $row['diskspace'] = round($row['diskspace'] / 1024, $settings['panel']['decimal_places']); - $row = str_replace_array('-1', 'UL', $row, 'diskspace traffic mysqls emails email_accounts email_forwarders ftps tickets subdomains'); - $row = htmlentities_array($row); - eval("\$customers.=\"" . getTemplate("customers/customers_customer") . "\";"); - $count++; - } - - $i++; - } - - eval("echo \"" . getTemplate("customers/customers") . "\";"); - } - elseif($action == 'su' - && $id != 0) - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . (int)$userinfo['adminid'] . "' ")); - $destination_user = $result['loginname']; - - if($destination_user != '') - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid`='" . (int)$userinfo['userid'] . "' AND `hash`='" . $db->escape($s) . "'"); - $s = md5(uniqid(microtime(), 1)); - $db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$id . "', '" . $db->escape($result['ipaddress']) . "', '" . $db->escape($result['useragent']) . "', '" . time() . "', '" . $db->escape($result['language']) . "', '0')"); - $log->logAction(ADM_ACTION, LOG_INFO, "switched user and is now '" . $destination_user . "'"); - redirectTo('customer_index.php', Array('s' => $s)); - } - else - { - redirectTo('index.php', Array('action' => 'login')); - } - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . $db->escape($userinfo['adminid']) . "' ")); - - if($result['loginname'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " WHERE customerid='" . (int)$id . "' ORDER BY `dbserver`"); - $db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], ''); - unset($db_root->password); - $last_dbserver = 0; - - while($row_database = $db->fetch_array($databases)) - { - if($last_dbserver != $row_database['dbserver']) - { - $db_root->query('FLUSH PRIVILEGES;'); - $db_root->close(); - $db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], ''); - unset($db_root->password); - $last_dbserver = $row_database['dbserver']; - } - - foreach(array_unique(explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) - { - $mysql_access_host = trim($mysql_access_host); - $db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($row_database['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); - $db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($row_database['databasename'])) . '` . * FROM `' . $db_root->escape($row_database['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); - $db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($row_database['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"'); - } - - $db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($row_database['databasename']) . '`'); - } - - $db_root->query('FLUSH PRIVILEGES;'); - $db_root->close(); - $db->query("DELETE FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$id . "'"); - $domains_deleted = $db->affected_rows(); - $db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid`='" . (int)$id . "' AND `adminsession` = '0'"); - $db->query("DELETE FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_FTP_GROUPS . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_MAIL_AUTORESPONDER . "` WHERE `customerid`='" . (int)$id . "'"); - $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` - 1 "; - $admin_update_query.= ", `domains_used` = `domains_used` - 0" . (int)($domains_deleted - $result['subdomains_used']); - - if($result['mysqls'] != '-1') - { - $admin_update_query.= ", `mysqls_used` = `mysqls_used` - 0" . (int)$result['mysqls']; - } - - if($result['emails'] != '-1') - { - $admin_update_query.= ", `emails_used` = `emails_used` - 0" . (int)$result['emails']; - } - - if($result['email_accounts'] != '-1') - { - $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` - 0" . (int)$result['email_accounts']; - } - - if($result['email_forwarders'] != '-1') - { - $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` - 0" . (int)$result['email_forwarders']; - } - - if($result['email_quota'] != '-1') - { - $admin_update_query.= ", `email_quota_used` = `email_quota_used` - 0" . (int)$result['email_quota']; - } - - if($result['subdomains'] != '-1') - { - $admin_update_query.= ", `subdomains_used` = `subdomains_used` - 0" . (int)$result['subdomains']; - } - - if($result['ftps'] != '-1') - { - $admin_update_query.= ", `ftps_used` = `ftps_used` - 0" . (int)$result['ftps']; - } - - if($result['tickets'] != '-1') - { - $admin_update_query.= ", `tickets_used` = `tickets_used` - 0" . (int)$result['tickets']; - } - - if(($result['diskspace'] / 1024) != '-1') - { - $admin_update_query.= ", `diskspace_used` = `diskspace_used` - 0" . (int)$result['diskspace']; - } - - $admin_update_query.= " WHERE `adminid` = '" . (int)$result['adminid'] . "'"; - $db->query($admin_update_query); - $log->logAction(ADM_ACTION, LOG_INFO, "deleted user '" . $result['loginname'] . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('admin_customer_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['loginname']); - } - } - } - elseif($action == 'add') - { - if($userinfo['customers_used'] < $userinfo['customers'] - || $userinfo['customers'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $name = validate($_POST['name'], 'name'); - $firstname = validate($_POST['firstname'], 'first name'); - $title = validate($_POST['title'], 'title'); - $company = validate($_POST['company'], 'company'); - $street = validate($_POST['street'], 'street'); - $zipcode = validate($_POST['zipcode'], 'zipcode', '/^[0-9 \-A-Z]*$/'); - $city = validate($_POST['city'], 'city'); - $country = validate($_POST['country'], 'country'); - $phone = validate($_POST['phone'], 'phone', '/^[0-9\- \+\(\)\/]*$/'); - $fax = validate($_POST['fax'], 'fax', '/^[0-9\- \+\(\)\/]*$/'); - $email = $idna_convert->encode(validate($_POST['email'], 'email')); - $customernumber = validate($_POST['customernumber'], 'customer number', '/^[A-Za-z0-9 \-]*$/Di'); - $def_language = validate($_POST['def_language'], 'default language'); - $diskspace = intval_ressource($_POST['diskspace']); - - if(isset($_POST['diskspace_ul'])) - { - $diskspace = - 1; - } - - $traffic = doubleval_ressource($_POST['traffic']); - - if(isset($_POST['traffic_ul'])) - { - $traffic = - 1; - } - - $subdomains = intval_ressource($_POST['subdomains']); - - if(isset($_POST['subdomains_ul'])) - { - $subdomains = - 1; - } - - $emails = intval_ressource($_POST['emails']); - - if(isset($_POST['emails_ul'])) - { - $emails = - 1; - } - - $email_accounts = intval_ressource($_POST['email_accounts']); - - if(isset($_POST['email_accounts_ul'])) - { - $email_accounts = - 1; - } - - $email_forwarders = intval_ressource($_POST['email_forwarders']); - - if(isset($_POST['email_forwarders_ul'])) - { - $email_forwarders = - 1; - } - - if($settings['system']['mail_quota_enabled'] == '1') - { - $email_quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong', array('0', '')); - - if(isset($_POST['email_quota_ul'])) - { - $email_quota = - 1; - } - } - else - { - $email_quota = - 1; - } - - $email_imap = intval_ressource($_POST['email_imap']); - $email_pop3 = intval_ressource($_POST['email_pop3']); - $ftps = intval_ressource($_POST['ftps']); - - if(isset($_POST['ftps_ul'])) - { - $ftps = - 1; - } - - $tickets = ($settings['ticket']['enabled'] == 1 ? intval_ressource($_POST['tickets']) : 0); - - if(isset($_POST['tickets_ul']) - && $settings['ticket']['enabled'] == '1') - { - $tickets = - 1; - } - - $mysqls = intval_ressource($_POST['mysqls']); - - if(isset($_POST['mysqls_ul'])) - { - $mysqls = - 1; - } - - if($settings['aps']['aps_active'] == '1') - { - $number_of_aps_packages = intval_ressource($_POST['number_of_aps_packages']); - - if(isset($_POST['number_of_aps_packages_ul'])) - { - $number_of_aps_packages = - 1; - } - } - else - { - $number_of_aps_packages = 0; - } - - $createstdsubdomain = intval($_POST['createstdsubdomain']); - $password = validate($_POST['customer_password'], 'password'); - $sendpassword = intval($_POST['sendpassword']); - $phpenabled = intval($_POST['phpenabled']); - $diskspace = $diskspace * 1024; - $traffic = $traffic * 1024 * 1024; - - if(((($userinfo['diskspace_used'] + $diskspace) > $userinfo['diskspace']) && ($userinfo['diskspace'] / 1024) != '-1') - || ((($userinfo['mysqls_used'] + $mysqls) > $userinfo['mysqls']) && $userinfo['mysqls'] != '-1') - || ((($userinfo['emails_used'] + $emails) > $userinfo['emails']) && $userinfo['emails'] != '-1') - || ((($userinfo['email_accounts_used'] + $email_accounts) > $userinfo['email_accounts']) && $userinfo['email_accounts'] != '-1') - || ((($userinfo['email_forwarders_used'] + $email_forwarders) > $userinfo['email_forwarders']) && $userinfo['email_forwarders'] != '-1') - || ((($userinfo['email_quota_used'] + $email_quota) > $userinfo['email_quota']) && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') - || ((($userinfo['ftps_used'] + $ftps) > $userinfo['ftps']) && $userinfo['ftps'] != '-1') - || ((($userinfo['tickets_used'] + $tickets) > $userinfo['tickets']) && $userinfo['tickets'] != '-1') - || ((($userinfo['subdomains_used'] + $subdomains) > $userinfo['subdomains']) && $userinfo['subdomains'] != '-1') - || ((($userinfo['aps_packages_used'] + $number_of_aps_packages) > $userinfo['aps_packages']) && $userinfo['aps_packages'] != '-1' && $settings['aps']['aps_active'] == '1') - || (($diskspace / 1024) == '-1' && ($userinfo['diskspace'] / 1024) != '-1') - || ($mysqls == '-1' && $userinfo['mysqls'] != '-1') - || ($emails == '-1' && $userinfo['emails'] != '-1') - || ($email_accounts == '-1' && $userinfo['email_accounts'] != '-1') - || ($email_forwarders == '-1' && $userinfo['email_forwarders'] != '-1') - || ($email_quota == '-1' && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') - || ($ftps == '-1' && $userinfo['ftps'] != '-1') - || ($tickets == '-1' && $userinfo['tickets'] != '-1') - || ($subdomains == '-1' && $userinfo['subdomains'] != '-1') - || ($number_of_aps_packages == '-1' && $userinfo['aps_packages'] != '-1')) - { - standard_error('youcantallocatemorethanyouhave'); - exit; - } - - // Either $name and $firstname or the $company must be inserted - - if($name == '' - && $company == '') - { - standard_error(array('stringisempty', 'myname')); - } - elseif($firstname == '' - && $company == '') - { - standard_error(array('stringisempty', 'myfirstname')); - } - elseif($email == '') - { - standard_error(array('stringisempty', 'emailadd')); - } - elseif(!validateEmail($email)) - { - standard_error('emailiswrong', $email); - } - else - { - if(isset($_POST['loginname']) - && $_POST['loginname'] != '') - { - $accountnumber = intval($settings['system']['lastaccountnumber']); - $loginname = validate($_POST['loginname'], 'loginname', '/^[a-z0-9\-_]+$/i'); - - // Accounts which match systemaccounts are not allowed, filtering them - - if(preg_match('/^' . preg_quote($settings['customer']['accountprefix'], '/') . '([0-9]+)/', $loginname)) - { - standard_error('loginnameissystemaccount', $settings['customer']['accountprefix']); - } - } - else - { - $accountnumber = intval($settings['system']['lastaccountnumber']) + 1; - $loginname = $settings['customer']['accountprefix'] . $accountnumber; - } - - // Check if the account already exists - - $loginname_check = $db->query_first("SELECT `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname` = '" . $db->escape($loginname) . "'"); - $loginname_check_admin = $db->query_first("SELECT `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname` = '" . $db->escape($loginname) . "'"); - - if(strtolower($loginname_check['loginname']) == strtolower($loginname) - || strtolower($loginname_check_admin['loginname']) == strtolower($loginname)) - { - standard_error('loginnameexists', $loginname); - } - elseif(!validateUsername($loginname, $settings['panel']['unix_names'], 14 - strlen($settings['customer']['mysqlprefix']))) - { - standard_error('loginnameiswrong', $loginname); - } - - $guid = intval($settings['system']['lastguid']) + 1; - $documentroot = makeCorrectDir($settings['system']['documentroot_prefix'] . '/' . $loginname); - - if($service_active == 1) - { - $service_active = '1'; - - if(!isset($servicestart_date) - || $servicestart_date == '0000-00-00') - { - $servicestart_date = date('Y-m-d'); - } - } - else - { - $service_active = '0'; - $servicestart_date = '0000-00-00'; - } - - if($calc_tax != '1') - { - $calc_tax = '0'; - } - - if($interval_payment != '1') - { - $interval_payment = '0'; - } - - if(!isset($lng['customer']['payment_methods'][$payment_method])) - { - $payment_method = 0; - } - - if(file_exists($documentroot)) - { - standard_error('documentrootexists', $documentroot); - } - - if($createstdsubdomain != '1') - { - $createstdsubdomain = '0'; - } - - if($phpenabled != '0') - { - $phpenabled = '1'; - } - - if($password == '') - { - $password = substr(md5(uniqid(microtime(), 1)), 12, 6); - } - - $result = $db->query("INSERT INTO `" . TABLE_PANEL_CUSTOMERS . "` (`adminid`, `loginname`, `password`, `name`, `firstname`, `title`, `company`, `street`, `zipcode`, `city`, `country`, `phone`, `fax`, `email`, `customernumber`, `def_language`, `documentroot`, `guid`, `diskspace`, `traffic`, `subdomains`, `emails`, `email_accounts`, `email_forwarders`, `email_quota`, `ftps`, `tickets`, `mysqls`, `standardsubdomain`, `phpenabled`, `imap`, `pop3`, `contract_date`, `contract_number`, `taxid`, `included_domains_qty`, `included_domains_tld`, `additional_traffic_fee`, `additional_traffic_unit`,`additional_diskspace_fee`, `additional_diskspace_unit`, `interval_fee`, `interval_length`, `interval_type`, `interval_payment`, `setup_fee`, `taxclass`, `service_active`, `servicestart_date`, `term_of_payment`, `calc_tax`, `payment_every`, `payment_method`, `bankaccount_holder`, `bankaccount_number`, `bankaccount_blz`, `bankaccount_bank`, `additional_service_description`, `aps_packages`) VALUES ('" . (int)$userinfo['adminid'] . "', '" . $db->escape($loginname) . "', '" . md5($password) . "', '" . $db->escape($name) . "', '" . $db->escape($firstname) . "', '" . $db->escape($title) . "', '" . $db->escape($company) . "', '" . $db->escape($street) . "', '" . $db->escape($zipcode) . "', '" . $db->escape($city) . "', '" . $db->escape($country) . "', '" . $db->escape($phone) . "', '" . $db->escape($fax) . "', '" . $db->escape($email) . "', '" . $db->escape($customernumber) . "','" . $db->escape($def_language) . "', '" . $db->escape($documentroot) . "', '" . $db->escape($guid) . "', '" . $db->escape($diskspace) . "', '" . $db->escape($traffic) . "', '" . $db->escape($subdomains) . "', '" . $db->escape($emails) . "', '" . $db->escape($email_accounts) . "', '" . $db->escape($email_forwarders) . "', '" . $db->escape($email_quota) . "', '" . $db->escape($ftps) . "', '" . $db->escape($tickets) . "', '" . $db->escape($mysqls) . "', '0', '" . $db->escape($phpenabled) . "', '" . $db->escape($email_imap) . "', '" . $db->escape($email_pop3) . "', '" . $db->escape($contract_date) . "', '" . $db->escape($contract_number) . "', '" . $db->escape($taxid) . "', '" . $db->escape($included_domains_qty) . "', '" . $db->escape($included_domains_tld) . "', '" . $db->escape($additional_traffic_fee) . "', '" . $db->escape($additional_traffic_unit) . "','" . $db->escape($additional_diskspace_fee) . "', '" . $db->escape($additional_diskspace_unit) . "','" . $db->escape($interval_fee) . "', '" . $db->escape($interval_length) . "', '" . $db->escape($interval_type) . "', '" . $db->escape($interval_payment) . "', '" . $db->escape($setup_fee) . "', '" . $db->escape($taxclass) . "', '" . $db->escape($service_active) . "', '" . $db->escape($servicestart_date) . "', '" . $db->escape($term_of_payment) . "', '" . $db->escape($calc_tax) . "', '" . $db->escape($payment_every) . "', '" . $db->escape($payment_method) . "', '" . $db->escape($bankaccount_holder) . "', '" . $db->escape($bankaccount_number) . "', '" . $db->escape($bankaccount_blz) . "', '" . $db->escape($bankaccount_bank) . "', '" . $db->escape($additional_service_description) . "', " . (int)$number_of_aps_packages . ")"); - $customerid = $db->insert_id(); - $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` + 1"; - - if($mysqls != '-1') - { - $admin_update_query.= ", `mysqls_used` = `mysqls_used` + 0" . (int)$mysqls; - } - - if($emails != '-1') - { - $admin_update_query.= ", `emails_used` = `emails_used` + 0" . (int)$emails; - } - - if($email_accounts != '-1') - { - $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` + 0" . (int)$email_accounts; - } - - if($email_forwarders != '-1') - { - $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` + 0" . (int)$email_forwarders; - } - - if($email_quota != '-1') - { - $admin_update_query.= ", `email_quota_used` = `email_quota_used` + 0" . (int)$email_quota; - } - - if($subdomains != '-1') - { - $admin_update_query.= ", `subdomains_used` = `subdomains_used` + 0" . (int)$subdomains; - } - - if($ftps != '-1') - { - $admin_update_query.= ", `ftps_used` = `ftps_used` + 0" . (int)$ftps; - } - - if($tickets != '-1' - && $settings['ticket']['enabled'] == 1) - { - $admin_update_query.= ", `tickets_used` = `tickets_used` + 0" . (int)$tickets; - } - - if(($diskspace / 1024) != '-1') - { - $admin_update_query.= ", `diskspace_used` = `diskspace_used` + 0" . (int)$diskspace; - } - - if($number_of_aps_packages != '-1') - { - $admin_update_query.= ", `aps_packages_used` = `aps_packages_used` + 0" . (int)$number_of_aps_packages; - } - - $admin_update_query.= " WHERE `adminid` = '" . (int)$userinfo['adminid'] . "'"; - $db->query($admin_update_query); - $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` " . "SET `value`='" . $db->escape($guid) . "' " . "WHERE `settinggroup`='system' AND `varname`='lastguid'"); - - if($accountnumber != intval($settings['system']['lastaccountnumber'])) - { - $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` " . "SET `value`='" . $db->escape($accountnumber) . "' " . "WHERE `settinggroup`='system' AND `varname`='lastaccountnumber'"); - } - - $log->logAction(ADM_ACTION, LOG_INFO, "added user '" . $loginname . "'"); - inserttask('2', $loginname, $guid, $guid); - - // Add htpasswd for the webalizer stats - - if(CRYPT_STD_DES == 1) - { - $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); - $htpasswdPassword = crypt($password, $saltfordescrypt); - } - else - { - $htpasswdPassword = crypt($password); - } - - $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` " . "(`customerid`, `username`, `password`, `path`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($htpasswdPassword) . "', '" . $db->escape(makeCorrectDir($documentroot . '/webalizer/')) . "')"); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added webalizer htpasswd for user '" . $loginname . "'"); - - if($settings['system']['awstats_enabled'] == '1') - { - $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` " . "(`customerid`, `username`, `password`, `path`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($htpasswdPassword) . "', '" . $db->escape(makeCorrectDir($documentroot . '/awstats/')) . "')"); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added awstats htpasswd for user '" . $loginname . "'"); - } - - inserttask('1'); - $result = $db->query("INSERT INTO `" . TABLE_FTP_USERS . "` " . "(`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($documentroot) . "', 'y', '" . (int)$guid . "', '" . (int)$guid . "')"); - $result = $db->query("INSERT INTO `" . TABLE_FTP_GROUPS . "` " . "(`customerid`, `groupname`, `gid`, `members`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($guid) . "', '" . $db->escape($loginname) . "')"); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added ftp-account for user '" . $loginname . "'"); - - if($createstdsubdomain == '1') - { - $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` " . "(`domain`, `customerid`, `adminid`, `parentdomainid`, `ipandport`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " . "VALUES ('" . $db->escape($loginname . '.' . $settings['system']['hostname']) . "', '" . (int)$customerid . "', '" . (int)$userinfo['adminid'] . "', '-1', '" . $db->escape($settings['system']['defaultip']) . "', '" . $db->escape($documentroot) . "', '', '0', '0', '1', '1', '0', '')"); - $domainid = $db->insert_id(); - $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'' . (int)$domainid . '\' WHERE `customerid`=\'' . (int)$customerid . '\''); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added standardsubdomain for user '" . $loginname . "'"); - inserttask('1'); - } - - if($sendpassword == '1') - { - $replace_arr = array( - 'FIRSTNAME' => $firstname, - 'NAME' => $name, - 'TITLE' => $title, - 'COMPANY' => $company, - 'SALUTATION' => getCorrectUserSalutation(array('firstname' => $firstname, 'name' => $name, 'company' => $company)), - 'USERNAME' => $loginname, - 'PASSWORD' => $password - ); - - // Get mail templates from database; the ones from 'admin' are fetched for fallback - - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($def_language) . '\' AND `templategroup`=\'mails\' AND `varname`=\'createcustomer_subject\''); - $mail_subject = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['createcustomer']['subject']), $replace_arr)); - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($def_language) . '\' AND `templategroup`=\'mails\' AND `varname`=\'createcustomer_mailbody\''); - $mail_body = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['createcustomer']['mailbody']), $replace_arr)); - - $mail->From = $userinfo['email']; - $mail->FromName = $userinfo['name']; - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($email, getCorrectUserSalutation(array('firstname' => $firstname, 'name' => $name, 'company' => $company))); - - if(!$mail->Send()) - { - if($mail->ErrorInfo != '') - { - $mailerr_msg = $mail->ErrorInfo; - } - else - { - $mailerr_msg = $email; - } - - $log->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - standard_error('errorsendingmail', $email); - } - - $mail->ClearAddresses(); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically sent password to user '" . $loginname . "'"); - } - - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $language_options = ''; - - while(list($language_file, $language_name) = each($languages)) - { - $language_options.= makeoption($language_name, $language_file, $userinfo['def_language'], true); - } - - $diskspace_ul = makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $traffic_ul = makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $subdomains_ul = makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $emails_ul = makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $email_accounts_ul = makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $email_forwarders_ul = makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $email_quota_ul = makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $ftps_ul = makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $tickets_ul = makecheckbox('tickets_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $mysqls_ul = makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $number_of_aps_packages_ul = makecheckbox('number_of_aps_packages_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); - $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', '1'); - $email_imap = makeyesno('email_imap', '1', '0', '1'); - $email_pop3 = makeyesno('email_pop3', '1', '0', '1'); - $sendpassword = makeyesno('sendpassword', '1', '0', '1'); - $phpenabled = makeyesno('phpenabled', '1', '0', '1'); - eval("echo \"" . getTemplate("customers/customers_add") . "\";"); - } - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . (int)$userinfo['adminid'] . "' ")); - - if($result['loginname'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $name = validate($_POST['name'], 'name'); - $firstname = validate($_POST['firstname'], 'first name'); - $title = validate($_POST['title'], 'title'); - $company = validate($_POST['company'], 'company'); - $street = validate($_POST['street'], 'street'); - $zipcode = validate($_POST['zipcode'], 'zipcode', '/^[0-9 \-A-Z]*$/'); - $city = validate($_POST['city'], 'city'); - $country = validate($_POST['country'], 'country'); - $phone = validate($_POST['phone'], 'phone', '/^[0-9\- \+\(\)\/]*$/'); - $fax = validate($_POST['fax'], 'fax', '/^[0-9\- \+\(\)\/]*$/'); - $email = $idna_convert->encode(validate($_POST['email'], 'email')); - $customernumber = validate($_POST['customernumber'], 'customer number', '/^[A-Za-z0-9 \-]*$/Di'); - $def_language = validate($_POST['def_language'], 'default language'); - $password = validate($_POST['customer_password'], 'new password'); - $diskspace = intval_ressource($_POST['diskspace']); - - if(isset($_POST['diskspace_ul'])) - { - $diskspace = - 1; - } - - $traffic = doubleval_ressource($_POST['traffic']); - - if(isset($_POST['traffic_ul'])) - { - $traffic = - 1; - } - - $subdomains = intval_ressource($_POST['subdomains']); - - if(isset($_POST['subdomains_ul'])) - { - $subdomains = - 1; - } - - $emails = intval_ressource($_POST['emails']); - - if(isset($_POST['emails_ul'])) - { - $emails = - 1; - } - - $email_accounts = intval_ressource($_POST['email_accounts']); - - if(isset($_POST['email_accounts_ul'])) - { - $email_accounts = - 1; - } - - $email_forwarders = intval_ressource($_POST['email_forwarders']); - - if(isset($_POST['email_forwarders_ul'])) - { - $email_forwarders = - 1; - } - - if($settings['system']['mail_quota_enabled'] == '1') - { - $email_quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong', array('0', '')); - - if(isset($_POST['email_quota_ul'])) - { - $email_quota = - 1; - } - } - else - { - $email_quota = - 1; - } - - $email_imap = intval_ressource($_POST['email_imap']); - $email_pop3 = intval_ressource($_POST['email_pop3']); - $ftps = intval_ressource($_POST['ftps']); - - if(isset($_POST['ftps_ul'])) - { - $ftps = - 1; - } - - $tickets = ($settings['ticket']['enabled'] == 1 ? intval_ressource($_POST['tickets']) : 0); - - if(isset($_POST['tickets_ul']) - && $settings['ticket']['enabled'] == '1') - { - $tickets = - 1; - } - - $mysqls = intval_ressource($_POST['mysqls']); - - if(isset($_POST['mysqls_ul'])) - { - $mysqls = - 1; - } - - $number_of_aps_packages = intval_ressource($_POST['number_of_aps_packages']); - - if(isset($_POST['number_of_aps_packages_ul'])) - { - $number_of_aps_packages = - 1; - } - - $createstdsubdomain = intval($_POST['createstdsubdomain']); - $deactivated = intval($_POST['deactivated']); - $phpenabled = intval($_POST['phpenabled']); - $diskspace = $diskspace * 1024; - $traffic = $traffic * 1024 * 1024; - - if(((($userinfo['diskspace_used'] + $diskspace - $result['diskspace']) > $userinfo['diskspace']) && ($userinfo['diskspace'] / 1024) != '-1') - || ((($userinfo['mysqls_used'] + $mysqls - $result['mysqls']) > $userinfo['mysqls']) && $userinfo['mysqls'] != '-1') - || ((($userinfo['emails_used'] + $emails - $result['emails']) > $userinfo['emails']) && $userinfo['emails'] != '-1') - || ((($userinfo['email_accounts_used'] + $email_accounts - $result['email_accounts']) > $userinfo['email_accounts']) && $userinfo['email_accounts'] != '-1') - || ((($userinfo['email_forwarders_used'] + $email_forwarders - $result['email_forwarders']) > $userinfo['email_forwarders']) && $userinfo['email_forwarders'] != '-1') - || ((($userinfo['email_quota_used'] + $email_quota - $result['email_quota']) > $userinfo['email_quota']) && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') - || ((($userinfo['ftps_used'] + $ftps - $result['ftps']) > $userinfo['ftps']) && $userinfo['ftps'] != '-1') - || ((($userinfo['tickets_used'] + $tickets - $result['tickets']) > $userinfo['tickets']) && $userinfo['tickets'] != '-1') - || ((($userinfo['subdomains_used'] + $subdomains - $result['subdomains']) > $userinfo['subdomains']) && $userinfo['subdomains'] != '-1') - || (($diskspace / 1024) == '-1' && ($userinfo['diskspace'] / 1024) != '-1') - || ((($userinfo['aps_packages'] + $number_of_aps_packages - $result['aps_packages']) > $userinfo['aps_packages']) && $userinfo['aps_packages'] != '-1' && $settings['aps']['aps_active'] == '1') - || ($mysqls == '-1' && $userinfo['mysqls'] != '-1') - || ($emails == '-1' && $userinfo['emails'] != '-1') - || ($email_accounts == '-1' && $userinfo['email_accounts'] != '-1') - || ($email_forwarders == '-1' && $userinfo['email_forwarders'] != '-1') - || ($email_quota == '-1' && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') - || ($ftps == '-1' && $userinfo['ftps'] != '-1') - || ($tickets == '-1' && $userinfo['tickets'] != '-1') - || ($subdomains == '-1' && $userinfo['subdomains'] != '-1') - || ($number_of_aps_packages == '-1' && $userinfo['aps_packages'] != '-1')) - { - standard_error('youcantallocatemorethanyouhave'); - exit; - } - - // Either $name and $firstname or the $company must be inserted - - if($name == '' - && $company == '') - { - standard_error(array('stringisempty', 'myname')); - } - elseif($firstname == '' - && $company == '') - { - standard_error(array('stringisempty', 'myfirstname')); - } - elseif($email == '') - { - standard_error(array('stringisempty', 'emailadd')); - } - elseif(!validateEmail($email)) - { - standard_error('emailiswrong', $email); - } - else - { - if($password != '') - { - $password = md5($password); - } - else - { - $password = $result['password']; - } - - if($createstdsubdomain != '1') - { - $createstdsubdomain = '0'; - } - - if($createstdsubdomain == '1' - && $result['standardsubdomain'] == '0') - { - $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` " . "(`domain`, `customerid`, `adminid`, `parentdomainid`, `ipandport`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " . "VALUES ('" . $db->escape($result['loginname'] . '.' . $settings['system']['hostname']) . "', '" . (int)$result['customerid'] . "', '" . (int)$userinfo['adminid'] . "', '-1', '" . $db->escape($settings['system']['defaultip']) . "', '" . $db->escape($result['documentroot']) . "', '', '0', '0', '1', '1', '0', '')"); - $domainid = $db->insert_id(); - $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'' . (int)$domainid . '\' WHERE `customerid`=\'' . (int)$result['customerid'] . '\''); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added standardsubdomain for user '" . $result['loginname'] . "'"); - inserttask('1'); - } - - if($createstdsubdomain == '0' - && $result['standardsubdomain'] != '0') - { - $db->query('DELETE FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `id`=\'' . (int)$result['standardsubdomain'] . '\''); - $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'0\' WHERE `customerid`=\'' . (int)$result['customerid'] . '\''); - $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically deleted standardsubdomain for user '" . $result['loginname'] . "'"); - inserttask('1'); - } - - if($deactivated != '1') - { - $deactivated = '0'; - } - - if($phpenabled != '0') - { - $phpenabled = '1'; - } - - if($phpenabled != $result['phpenabled']) - { - inserttask('1'); - } - - if($deactivated != $result['deactivated']) - { - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `postfix`='" . (($deactivated) ? 'N' : 'Y') . "', `pop3`='" . (($deactivated) ? '0' : '1') . "', `imap`='" . (($deactivated) ? '0' : '1') . "' WHERE `customerid`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `login_enabled`='" . (($deactivated) ? 'N' : 'Y') . "' WHERE `customerid`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `deactivated`='" . (int)$deactivated . "' WHERE `customerid`='" . (int)$id . "'"); - $log->logAction(ADM_ACTION, LOG_INFO, "deactivated user '" . $result['loginname'] . "'"); - inserttask('1'); - } - - // Disable or enable POP3 Login for customers Mail Accounts - - if($email_pop3 != $result['pop3']) - { - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `pop3`='" . (int)$email_pop3 . "' WHERE `customerid`='" . (int)$id . "'"); - } - - // Disable or enable IMAP Login for customers Mail Accounts - - if($email_imap != $result['imap']) - { - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `imap`='" . (int)$email_imap . "' WHERE `customerid`='" . (int)$id . "'"); - } - - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `name`='" . $db->escape($name) . "', `firstname`='" . $db->escape($firstname) . "', `title`='" . $db->escape($title) . "', `company`='" . $db->escape($company) . "', `street`='" . $db->escape($street) . "', `zipcode`='" . $db->escape($zipcode) . "', `city`='" . $db->escape($city) . "', `country`='" . $db->escape($country) . "', `phone`='" . $db->escape($phone) . "', `fax`='" . $db->escape($fax) . "', `email`='" . $db->escape($email) . "', `customernumber`='" . $db->escape($customernumber) . "', `def_language`='" . $db->escape($def_language) . "', `password` = '" . $password . "', `diskspace`='" . $db->escape($diskspace) . "', `traffic`='" . $db->escape($traffic) . "', `subdomains`='" . $db->escape($subdomains) . "', `emails`='" . $db->escape($emails) . "', `email_accounts` = '" . $db->escape($email_accounts) . "', `email_forwarders`='" . $db->escape($email_forwarders) . "', `ftps`='" . $db->escape($ftps) . "', `tickets`='" . $db->escape($tickets) . "', `mysqls`='" . $db->escape($mysqls) . "', `deactivated`='" . $db->escape($deactivated) . "', `phpenabled`='" . $db->escape($phpenabled) . "', `email_quota`='" . $db->escape($email_quota) . "', `imap`='" . $db->escape($email_imap) . "', `pop3`='" . $db->escape($email_pop3) . "', `contract_date`='" . $db->escape($contract_date) . "', `contract_number`='" . $db->escape($contract_number) . "', `taxid`='" . $db->escape($taxid) . "', `included_domains_qty`='" . $db->escape($included_domains_qty) . "', `included_domains_tld`='" . $db->escape($included_domains_tld) . "', `additional_traffic_fee`='" . $db->escape($additional_traffic_fee) . "', `additional_traffic_unit`='" . $db->escape($additional_traffic_unit) . "', `additional_diskspace_fee`='" . $db->escape($additional_diskspace_fee) . "', `additional_diskspace_unit`='" . $db->escape($additional_diskspace_unit) . "', `interval_fee`='" . $db->escape($interval_fee) . "', `interval_length`='" . $db->escape($interval_length) . "', `interval_type`='" . $db->escape($interval_type) . "', `interval_payment`='" . $db->escape($interval_payment) . "', `setup_fee`='" . $db->escape($setup_fee) . "', `taxclass`='" . $db->escape($taxclass) . "', `service_active`='" . $db->escape($service_active) . "', `servicestart_date`='" . $db->escape($servicestart_date) . "', `serviceend_date`='" . $db->escape($serviceend_date) . "', `term_of_payment`='" . $db->escape($term_of_payment) . "', `calc_tax`='" . $db->escape($calc_tax) . "', `payment_every`='" . $db->escape($payment_every) . "', `payment_method`='" . $db->escape($payment_method) . "', `bankaccount_holder`='" . $db->escape($bankaccount_holder) . "', `bankaccount_number`='" . $db->escape($bankaccount_number) . "', `bankaccount_blz`='" . $db->escape($bankaccount_blz) . "', `bankaccount_bank`='" . $db->escape($bankaccount_bank) . "', `additional_service_description`='" . $db->escape($additional_service_description) . "', `aps_packages`=" . (int)$number_of_aps_packages . " WHERE `customerid`='" . (int)$id . "'"); - $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` "; - - if($mysqls != '-1' - || $result['mysqls'] != '-1') - { - $admin_update_query.= ", `mysqls_used` = `mysqls_used` "; - - if($mysqls != '-1') - { - $admin_update_query.= " + 0" . (int)$mysqls . " "; - } - - if($result['mysqls'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['mysqls'] . " "; - } - } - - if($emails != '-1' - || $result['emails'] != '-1') - { - $admin_update_query.= ", `emails_used` = `emails_used` "; - - if($emails != '-1') - { - $admin_update_query.= " + 0" . (int)$emails . " "; - } - - if($result['emails'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['emails'] . " "; - } - } - - if($email_accounts != '-1' - || $result['email_accounts'] != '-1') - { - $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` "; - - if($email_accounts != '-1') - { - $admin_update_query.= " + 0" . (int)$email_accounts . " "; - } - - if($result['email_accounts'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['email_accounts'] . " "; - } - } - - if($email_forwarders != '-1' - || $result['email_forwarders'] != '-1') - { - $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` "; - - if($email_forwarders != '-1') - { - $admin_update_query.= " + 0" . (int)$email_forwarders . " "; - } - - if($result['email_forwarders'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['email_forwarders'] . " "; - } - } - - if($email_quota != '-1' - || $result['email_quota'] != '-1') - { - $admin_update_query.= ", `email_quota_used` = `email_quota_used` "; - - if($email_quota != '-1') - { - $admin_update_query.= " + 0" . (int)$email_quota . " "; - } - - if($result['email_quota'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['email_quota'] . " "; - } - } - - if($subdomains != '-1' - || $result['subdomains'] != '-1') - { - $admin_update_query.= ", `subdomains_used` = `subdomains_used` "; - - if($subdomains != '-1') - { - $admin_update_query.= " + 0" . (int)$subdomains . " "; - } - - if($result['subdomains'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['subdomains'] . " "; - } - } - - if($ftps != '-1' - || $result['ftps'] != '-1') - { - $admin_update_query.= ", `ftps_used` = `ftps_used` "; - - if($ftps != '-1') - { - $admin_update_query.= " + 0" . (int)$ftps . " "; - } - - if($result['ftps'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['ftps'] . " "; - } - } - - if($tickets != '-1' - || $result['tickets'] != '-1') - { - $admin_update_query.= ", `tickets_used` = `tickets_used` "; - - if($tickets != '-1') - { - $admin_update_query.= " + 0" . (int)$tickets . " "; - } - - if($result['tickets'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['tickets'] . " "; - } - } - - if(($diskspace / 1024) != '-1' - || ($result['diskspace'] / 1024) != '-1') - { - $admin_update_query.= ", `diskspace_used` = `diskspace_used` "; - - if(($diskspace / 1024) != '-1') - { - $admin_update_query.= " + 0" . (int)$diskspace . " "; - } - - if(($result['diskspace'] / 1024) != '-1') - { - $admin_update_query.= " - 0" . (int)$result['diskspace'] . " "; - } - } - - if($number_of_aps_packages != '-1' - || $result['aps_packages'] != '-1') - { - $admin_update_query.= ", `aps_packages_used` = `aps_packages_used` "; - - if($number_of_aps_packages != '-1') - { - $admin_update_query.= " + 0" . (int)$number_of_aps_packages . " "; - } - - if($result['aps_packages'] != '-1') - { - $admin_update_query.= " - 0" . (int)$result['aps_packages'] . " "; - } - } - - $admin_update_query.= " WHERE `adminid` = '" . (int)$result['adminid'] . "'"; - $db->query($admin_update_query); - $log->logAction(ADM_ACTION, LOG_INFO, "edited user '" . $result['loginname'] . "'"); - $redirect_props = Array( - 'page' => $page, - 's' => $s - ); - - redirectTo($filename, $redirect_props); - } - } - else - { - $language_options = ''; - - while(list($language_file, $language_name) = each($languages)) - { - $language_options.= makeoption($language_name, $language_file, $result['def_language'], true); - } - - $result['traffic'] = round($result['traffic'] / (1024 * 1024), $settings['panel']['decimal_places']); - $result['diskspace'] = round($result['diskspace'] / 1024, $settings['panel']['decimal_places']); - $result['email'] = $idna_convert->decode($result['email']); - $diskspace_ul = makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true); - - if($result['diskspace'] == '-1') - { - $result['diskspace'] = ''; - } - - $traffic_ul = makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true); - - if($result['traffic'] == '-1') - { - $result['traffic'] = ''; - } - - $subdomains_ul = makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true); - - if($result['subdomains'] == '-1') - { - $result['subdomains'] = ''; - } - - $emails_ul = makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true); - - if($result['emails'] == '-1') - { - $result['emails'] = ''; - } - - $email_accounts_ul = makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true); - - if($result['email_accounts'] == '-1') - { - $result['email_accounts'] = ''; - } - - $email_forwarders_ul = makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true); - - if($result['email_forwarders'] == '-1') - { - $result['email_forwarders'] = ''; - } - - $email_quota_ul = makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true); - - if($result['email_quota'] == '-1') - { - $result['email_quota'] = ''; - } - - $ftps_ul = makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true); - - if($result['ftps'] == '-1') - { - $result['ftps'] = ''; - } - - $tickets_ul = makecheckbox('tickets_ul', $lng['customer']['unlimited'], '-1', false, $result['tickets'], true, true); - - if($result['tickets'] == '-1') - { - $result['tickets'] = ''; - } - - $mysqls_ul = makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true); - - if($result['mysqls'] == '-1') - { - $result['mysqls'] = ''; - } - - $number_of_aps_packages_ul = makecheckbox('number_of_aps_packages_ul', $lng['customer']['unlimited'], '-1', false, $result['aps_packages'], true, true); - - if($result['aps_packages'] == '-1') - { - $result['aps_packages'] = ''; - } - - $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', (($result['standardsubdomain'] != '0') ? '1' : '0')); - $phpenabled = makeyesno('phpenabled', '1', '0', $result['phpenabled']); - $deactivated = makeyesno('deactivated', '1', '0', $result['deactivated']); - $email_imap = makeyesno('email_imap', '1', '0', $result['imap']); - $email_pop3 = makeyesno('email_pop3', '1', '0', $result['pop3']); - - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("customers/customers_edit") . "\";"); - } - } - } -} - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: admin_customers.php 2732 2009-10-30 16:24:48Z flo $ + */ + +define('AREA', 'admin'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +$need_root_db_sql_data = true; +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'customers' + && $userinfo['customers'] != '0') +{ + if($action == '') + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_customers"); + $fields = array( + 'c.loginname' => $lng['login']['username'], + 'a.loginname' => $lng['admin']['admin'], + 'c.name' => $lng['customer']['name'], + 'c.firstname' => $lng['customer']['firstname'], + 'c.company' => $lng['customer']['company'], + 'c.diskspace' => $lng['customer']['diskspace'], + 'c.diskspace_used' => $lng['customer']['diskspace'] . ' (' . $lng['panel']['used'] . ')', + 'c.traffic' => $lng['customer']['traffic'], + 'c.traffic_used' => $lng['customer']['traffic'] . ' (' . $lng['panel']['used'] . ')', + 'c.mysqls' => $lng['customer']['mysqls'], + 'c.mysqls_used' => $lng['customer']['mysqls'] . ' (' . $lng['panel']['used'] . ')', + 'c.ftps' => $lng['customer']['ftps'], + 'c.ftps_used' => $lng['customer']['ftps'] . ' (' . $lng['panel']['used'] . ')', + 'c.subdomains' => $lng['customer']['subdomains'], + 'c.subdomains_used' => $lng['customer']['subdomains'] . ' (' . $lng['panel']['used'] . ')', + 'c.emails' => $lng['customer']['emails'], + 'c.emails_used' => $lng['customer']['emails'] . ' (' . $lng['panel']['used'] . ')', + 'c.email_accounts' => $lng['customer']['accounts'], + 'c.email_accounts_used' => $lng['customer']['accounts'] . ' (' . $lng['panel']['used'] . ')', + 'c.email_forwarders' => $lng['customer']['forwarders'], + 'c.email_forwarders_used' => $lng['customer']['forwarders'] . ' (' . $lng['panel']['used'] . ')', + 'c.email_quota' => $lng['customer']['email_quota'], + 'c.email_quota_used' => $lng['customer']['email_quota'] . ' (' . $lng['panel']['used'] . ')', + 'c.deactivated' => $lng['admin']['deactivated'], + 'c.phpenabled' => $lng['admin']['phpenabled'] + ); + + if($settings['ticket']['enabled'] == 1) + { + $fields['c.tickets'] = $lng['customer']['tickets']; + $fields['c.tickets_used'] = $lng['customer']['tickets'] . ' (' . $lng['panel']['used'] . ')'; + } + + $paging = new paging($userinfo, $db, TABLE_PANEL_CUSTOMERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $customers = ''; + $result = $db->query("SELECT `c`.*, `a`.`loginname` AS `adminname` " . "FROM `" . TABLE_PANEL_CUSTOMERS . "` `c`, `" . TABLE_PANEL_ADMINS . "` `a` " . "WHERE " . ($userinfo['customers_see_all'] ? '' : " `c`.`adminid` = '" . (int)$userinfo['adminid'] . "' AND ") . "`c`.`adminid`=`a`.`adminid` " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng, true); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + $domains = $db->query_first("SELECT COUNT(`id`) AS `domains` " . "FROM `" . TABLE_PANEL_DOMAINS . "` " . "WHERE `customerid`='" . (int)$row['customerid'] . "' AND `parentdomainid`='0' AND `id`<> '" . (int)$row['standardsubdomain'] . "'"); + $row['domains'] = intval($domains['domains']); + $row['traffic_used'] = round($row['traffic_used'] / (1024 * 1024), $settings['panel']['decimal_places']); + $row['traffic'] = round($row['traffic'] / (1024 * 1024), $settings['panel']['decimal_places']); + $row['diskspace_used'] = round($row['diskspace_used'] / 1024, $settings['panel']['decimal_places']); + $row['diskspace'] = round($row['diskspace'] / 1024, $settings['panel']['decimal_places']); + $row = str_replace_array('-1', 'UL', $row, 'diskspace traffic mysqls emails email_accounts email_forwarders ftps tickets subdomains'); + $row = htmlentities_array($row); + eval("\$customers.=\"" . getTemplate("customers/customers_customer") . "\";"); + $count++; + } + + $i++; + } + + eval("echo \"" . getTemplate("customers/customers") . "\";"); + } + elseif($action == 'su' + && $id != 0) + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . (int)$userinfo['adminid'] . "' ")); + $destination_user = $result['loginname']; + + if($destination_user != '') + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid`='" . (int)$userinfo['userid'] . "' AND `hash`='" . $db->escape($s) . "'"); + $s = md5(uniqid(microtime(), 1)); + $db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$id . "', '" . $db->escape($result['ipaddress']) . "', '" . $db->escape($result['useragent']) . "', '" . time() . "', '" . $db->escape($result['language']) . "', '0')"); + $log->logAction(ADM_ACTION, LOG_INFO, "switched user and is now '" . $destination_user . "'"); + redirectTo('customer_index.php', Array('s' => $s)); + } + else + { + redirectTo('index.php', Array('action' => 'login')); + } + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . $db->escape($userinfo['adminid']) . "' ")); + + if($result['loginname'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " WHERE customerid='" . (int)$id . "' ORDER BY `dbserver`"); + $db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], ''); + unset($db_root->password); + $last_dbserver = 0; + + while($row_database = $db->fetch_array($databases)) + { + if($last_dbserver != $row_database['dbserver']) + { + $db_root->query('FLUSH PRIVILEGES;'); + $db_root->close(); + $db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], ''); + unset($db_root->password); + $last_dbserver = $row_database['dbserver']; + } + + foreach(array_unique(explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) + { + $mysql_access_host = trim($mysql_access_host); + $db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($row_database['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); + $db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($row_database['databasename'])) . '` . * FROM `' . $db_root->escape($row_database['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); + $db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($row_database['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"'); + } + + $db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($row_database['databasename']) . '`'); + } + + $db_root->query('FLUSH PRIVILEGES;'); + $db_root->close(); + $db->query("DELETE FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$id . "'"); + $domains_deleted = $db->affected_rows(); + $db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid`='" . (int)$id . "' AND `adminsession` = '0'"); + $db->query("DELETE FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_FTP_GROUPS . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_MAIL_AUTORESPONDER . "` WHERE `customerid`='" . (int)$id . "'"); + $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` - 1 "; + $admin_update_query.= ", `domains_used` = `domains_used` - 0" . (int)($domains_deleted - $result['subdomains_used']); + + if($result['mysqls'] != '-1') + { + $admin_update_query.= ", `mysqls_used` = `mysqls_used` - 0" . (int)$result['mysqls']; + } + + if($result['emails'] != '-1') + { + $admin_update_query.= ", `emails_used` = `emails_used` - 0" . (int)$result['emails']; + } + + if($result['email_accounts'] != '-1') + { + $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` - 0" . (int)$result['email_accounts']; + } + + if($result['email_forwarders'] != '-1') + { + $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` - 0" . (int)$result['email_forwarders']; + } + + if($result['email_quota'] != '-1') + { + $admin_update_query.= ", `email_quota_used` = `email_quota_used` - 0" . (int)$result['email_quota']; + } + + if($result['subdomains'] != '-1') + { + $admin_update_query.= ", `subdomains_used` = `subdomains_used` - 0" . (int)$result['subdomains']; + } + + if($result['ftps'] != '-1') + { + $admin_update_query.= ", `ftps_used` = `ftps_used` - 0" . (int)$result['ftps']; + } + + if($result['tickets'] != '-1') + { + $admin_update_query.= ", `tickets_used` = `tickets_used` - 0" . (int)$result['tickets']; + } + + if(($result['diskspace'] / 1024) != '-1') + { + $admin_update_query.= ", `diskspace_used` = `diskspace_used` - 0" . (int)$result['diskspace']; + } + + $admin_update_query.= " WHERE `adminid` = '" . (int)$result['adminid'] . "'"; + $db->query($admin_update_query); + $log->logAction(ADM_ACTION, LOG_INFO, "deleted user '" . $result['loginname'] . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('admin_customer_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['loginname']); + } + } + } + elseif($action == 'add') + { + if($userinfo['customers_used'] < $userinfo['customers'] + || $userinfo['customers'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $name = validate($_POST['name'], 'name'); + $firstname = validate($_POST['firstname'], 'first name'); + $title = validate($_POST['title'], 'title'); + $company = validate($_POST['company'], 'company'); + $street = validate($_POST['street'], 'street'); + $zipcode = validate($_POST['zipcode'], 'zipcode', '/^[0-9 \-A-Z]*$/'); + $city = validate($_POST['city'], 'city'); + $country = validate($_POST['country'], 'country'); + $phone = validate($_POST['phone'], 'phone', '/^[0-9\- \+\(\)\/]*$/'); + $fax = validate($_POST['fax'], 'fax', '/^[0-9\- \+\(\)\/]*$/'); + $email = $idna_convert->encode(validate($_POST['email'], 'email')); + $customernumber = validate($_POST['customernumber'], 'customer number', '/^[A-Za-z0-9 \-]*$/Di'); + $def_language = validate($_POST['def_language'], 'default language'); + $diskspace = intval_ressource($_POST['diskspace']); + + if(isset($_POST['diskspace_ul'])) + { + $diskspace = - 1; + } + + $traffic = doubleval_ressource($_POST['traffic']); + + if(isset($_POST['traffic_ul'])) + { + $traffic = - 1; + } + + $subdomains = intval_ressource($_POST['subdomains']); + + if(isset($_POST['subdomains_ul'])) + { + $subdomains = - 1; + } + + $emails = intval_ressource($_POST['emails']); + + if(isset($_POST['emails_ul'])) + { + $emails = - 1; + } + + $email_accounts = intval_ressource($_POST['email_accounts']); + + if(isset($_POST['email_accounts_ul'])) + { + $email_accounts = - 1; + } + + $email_forwarders = intval_ressource($_POST['email_forwarders']); + + if(isset($_POST['email_forwarders_ul'])) + { + $email_forwarders = - 1; + } + + if($settings['system']['mail_quota_enabled'] == '1') + { + $email_quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong', array('0', '')); + + if(isset($_POST['email_quota_ul'])) + { + $email_quota = - 1; + } + } + else + { + $email_quota = - 1; + } + + $email_imap = intval_ressource($_POST['email_imap']); + $email_pop3 = intval_ressource($_POST['email_pop3']); + $ftps = intval_ressource($_POST['ftps']); + + if(isset($_POST['ftps_ul'])) + { + $ftps = - 1; + } + + $tickets = ($settings['ticket']['enabled'] == 1 ? intval_ressource($_POST['tickets']) : 0); + + if(isset($_POST['tickets_ul']) + && $settings['ticket']['enabled'] == '1') + { + $tickets = - 1; + } + + $mysqls = intval_ressource($_POST['mysqls']); + + if(isset($_POST['mysqls_ul'])) + { + $mysqls = - 1; + } + + if($settings['aps']['aps_active'] == '1') + { + $number_of_aps_packages = intval_ressource($_POST['number_of_aps_packages']); + + if(isset($_POST['number_of_aps_packages_ul'])) + { + $number_of_aps_packages = - 1; + } + } + else + { + $number_of_aps_packages = 0; + } + + $createstdsubdomain = intval($_POST['createstdsubdomain']); + $password = validate($_POST['customer_password'], 'password'); + $sendpassword = intval($_POST['sendpassword']); + $phpenabled = intval($_POST['phpenabled']); + $diskspace = $diskspace * 1024; + $traffic = $traffic * 1024 * 1024; + + if(((($userinfo['diskspace_used'] + $diskspace) > $userinfo['diskspace']) && ($userinfo['diskspace'] / 1024) != '-1') + || ((($userinfo['mysqls_used'] + $mysqls) > $userinfo['mysqls']) && $userinfo['mysqls'] != '-1') + || ((($userinfo['emails_used'] + $emails) > $userinfo['emails']) && $userinfo['emails'] != '-1') + || ((($userinfo['email_accounts_used'] + $email_accounts) > $userinfo['email_accounts']) && $userinfo['email_accounts'] != '-1') + || ((($userinfo['email_forwarders_used'] + $email_forwarders) > $userinfo['email_forwarders']) && $userinfo['email_forwarders'] != '-1') + || ((($userinfo['email_quota_used'] + $email_quota) > $userinfo['email_quota']) && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') + || ((($userinfo['ftps_used'] + $ftps) > $userinfo['ftps']) && $userinfo['ftps'] != '-1') + || ((($userinfo['tickets_used'] + $tickets) > $userinfo['tickets']) && $userinfo['tickets'] != '-1') + || ((($userinfo['subdomains_used'] + $subdomains) > $userinfo['subdomains']) && $userinfo['subdomains'] != '-1') + || ((($userinfo['aps_packages_used'] + $number_of_aps_packages) > $userinfo['aps_packages']) && $userinfo['aps_packages'] != '-1' && $settings['aps']['aps_active'] == '1') + || (($diskspace / 1024) == '-1' && ($userinfo['diskspace'] / 1024) != '-1') + || ($mysqls == '-1' && $userinfo['mysqls'] != '-1') + || ($emails == '-1' && $userinfo['emails'] != '-1') + || ($email_accounts == '-1' && $userinfo['email_accounts'] != '-1') + || ($email_forwarders == '-1' && $userinfo['email_forwarders'] != '-1') + || ($email_quota == '-1' && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') + || ($ftps == '-1' && $userinfo['ftps'] != '-1') + || ($tickets == '-1' && $userinfo['tickets'] != '-1') + || ($subdomains == '-1' && $userinfo['subdomains'] != '-1') + || ($number_of_aps_packages == '-1' && $userinfo['aps_packages'] != '-1')) + { + standard_error('youcantallocatemorethanyouhave'); + exit; + } + + // Either $name and $firstname or the $company must be inserted + + if($name == '' + && $company == '') + { + standard_error(array('stringisempty', 'myname')); + } + elseif($firstname == '' + && $company == '') + { + standard_error(array('stringisempty', 'myfirstname')); + } + elseif($email == '') + { + standard_error(array('stringisempty', 'emailadd')); + } + elseif(!validateEmail($email)) + { + standard_error('emailiswrong', $email); + } + else + { + if(isset($_POST['loginname']) + && $_POST['loginname'] != '') + { + $accountnumber = intval($settings['system']['lastaccountnumber']); + $loginname = validate($_POST['loginname'], 'loginname', '/^[a-z0-9\-_]+$/i'); + + // Accounts which match systemaccounts are not allowed, filtering them + + if(preg_match('/^' . preg_quote($settings['customer']['accountprefix'], '/') . '([0-9]+)/', $loginname)) + { + standard_error('loginnameissystemaccount', $settings['customer']['accountprefix']); + } + } + else + { + $accountnumber = intval($settings['system']['lastaccountnumber']) + 1; + $loginname = $settings['customer']['accountprefix'] . $accountnumber; + } + + // Check if the account already exists + + $loginname_check = $db->query_first("SELECT `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname` = '" . $db->escape($loginname) . "'"); + $loginname_check_admin = $db->query_first("SELECT `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname` = '" . $db->escape($loginname) . "'"); + + if(strtolower($loginname_check['loginname']) == strtolower($loginname) + || strtolower($loginname_check_admin['loginname']) == strtolower($loginname)) + { + standard_error('loginnameexists', $loginname); + } + elseif(!validateUsername($loginname, $settings['panel']['unix_names'], 14 - strlen($settings['customer']['mysqlprefix']))) + { + standard_error('loginnameiswrong', $loginname); + } + + $guid = intval($settings['system']['lastguid']) + 1; + $documentroot = makeCorrectDir($settings['system']['documentroot_prefix'] . '/' . $loginname); + + if($service_active == 1) + { + $service_active = '1'; + + if(!isset($servicestart_date) + || $servicestart_date == '0000-00-00') + { + $servicestart_date = date('Y-m-d'); + } + } + else + { + $service_active = '0'; + $servicestart_date = '0000-00-00'; + } + + if($calc_tax != '1') + { + $calc_tax = '0'; + } + + if($interval_payment != '1') + { + $interval_payment = '0'; + } + + if(!isset($lng['customer']['payment_methods'][$payment_method])) + { + $payment_method = 0; + } + + if(file_exists($documentroot)) + { + standard_error('documentrootexists', $documentroot); + } + + if($createstdsubdomain != '1') + { + $createstdsubdomain = '0'; + } + + if($phpenabled != '0') + { + $phpenabled = '1'; + } + + if($password == '') + { + $password = substr(md5(uniqid(microtime(), 1)), 12, 6); + } + + $result = $db->query("INSERT INTO `" . TABLE_PANEL_CUSTOMERS . "` (`adminid`, `loginname`, `password`, `name`, `firstname`, `title`, `company`, `street`, `zipcode`, `city`, `country`, `phone`, `fax`, `email`, `customernumber`, `def_language`, `documentroot`, `guid`, `diskspace`, `traffic`, `subdomains`, `emails`, `email_accounts`, `email_forwarders`, `email_quota`, `ftps`, `tickets`, `mysqls`, `standardsubdomain`, `phpenabled`, `imap`, `pop3`, `contract_date`, `contract_number`, `taxid`, `included_domains_qty`, `included_domains_tld`, `additional_traffic_fee`, `additional_traffic_unit`,`additional_diskspace_fee`, `additional_diskspace_unit`, `interval_fee`, `interval_length`, `interval_type`, `interval_payment`, `setup_fee`, `taxclass`, `service_active`, `servicestart_date`, `term_of_payment`, `calc_tax`, `payment_every`, `payment_method`, `bankaccount_holder`, `bankaccount_number`, `bankaccount_blz`, `bankaccount_bank`, `additional_service_description`, `aps_packages`) VALUES ('" . (int)$userinfo['adminid'] . "', '" . $db->escape($loginname) . "', '" . md5($password) . "', '" . $db->escape($name) . "', '" . $db->escape($firstname) . "', '" . $db->escape($title) . "', '" . $db->escape($company) . "', '" . $db->escape($street) . "', '" . $db->escape($zipcode) . "', '" . $db->escape($city) . "', '" . $db->escape($country) . "', '" . $db->escape($phone) . "', '" . $db->escape($fax) . "', '" . $db->escape($email) . "', '" . $db->escape($customernumber) . "','" . $db->escape($def_language) . "', '" . $db->escape($documentroot) . "', '" . $db->escape($guid) . "', '" . $db->escape($diskspace) . "', '" . $db->escape($traffic) . "', '" . $db->escape($subdomains) . "', '" . $db->escape($emails) . "', '" . $db->escape($email_accounts) . "', '" . $db->escape($email_forwarders) . "', '" . $db->escape($email_quota) . "', '" . $db->escape($ftps) . "', '" . $db->escape($tickets) . "', '" . $db->escape($mysqls) . "', '0', '" . $db->escape($phpenabled) . "', '" . $db->escape($email_imap) . "', '" . $db->escape($email_pop3) . "', '" . $db->escape($contract_date) . "', '" . $db->escape($contract_number) . "', '" . $db->escape($taxid) . "', '" . $db->escape($included_domains_qty) . "', '" . $db->escape($included_domains_tld) . "', '" . $db->escape($additional_traffic_fee) . "', '" . $db->escape($additional_traffic_unit) . "','" . $db->escape($additional_diskspace_fee) . "', '" . $db->escape($additional_diskspace_unit) . "','" . $db->escape($interval_fee) . "', '" . $db->escape($interval_length) . "', '" . $db->escape($interval_type) . "', '" . $db->escape($interval_payment) . "', '" . $db->escape($setup_fee) . "', '" . $db->escape($taxclass) . "', '" . $db->escape($service_active) . "', '" . $db->escape($servicestart_date) . "', '" . $db->escape($term_of_payment) . "', '" . $db->escape($calc_tax) . "', '" . $db->escape($payment_every) . "', '" . $db->escape($payment_method) . "', '" . $db->escape($bankaccount_holder) . "', '" . $db->escape($bankaccount_number) . "', '" . $db->escape($bankaccount_blz) . "', '" . $db->escape($bankaccount_bank) . "', '" . $db->escape($additional_service_description) . "', " . (int)$number_of_aps_packages . ")"); + $customerid = $db->insert_id(); + $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` + 1"; + + if($mysqls != '-1') + { + $admin_update_query.= ", `mysqls_used` = `mysqls_used` + 0" . (int)$mysqls; + } + + if($emails != '-1') + { + $admin_update_query.= ", `emails_used` = `emails_used` + 0" . (int)$emails; + } + + if($email_accounts != '-1') + { + $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` + 0" . (int)$email_accounts; + } + + if($email_forwarders != '-1') + { + $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` + 0" . (int)$email_forwarders; + } + + if($email_quota != '-1') + { + $admin_update_query.= ", `email_quota_used` = `email_quota_used` + 0" . (int)$email_quota; + } + + if($subdomains != '-1') + { + $admin_update_query.= ", `subdomains_used` = `subdomains_used` + 0" . (int)$subdomains; + } + + if($ftps != '-1') + { + $admin_update_query.= ", `ftps_used` = `ftps_used` + 0" . (int)$ftps; + } + + if($tickets != '-1' + && $settings['ticket']['enabled'] == 1) + { + $admin_update_query.= ", `tickets_used` = `tickets_used` + 0" . (int)$tickets; + } + + if(($diskspace / 1024) != '-1') + { + $admin_update_query.= ", `diskspace_used` = `diskspace_used` + 0" . (int)$diskspace; + } + + if($number_of_aps_packages != '-1') + { + $admin_update_query.= ", `aps_packages_used` = `aps_packages_used` + 0" . (int)$number_of_aps_packages; + } + + $admin_update_query.= " WHERE `adminid` = '" . (int)$userinfo['adminid'] . "'"; + $db->query($admin_update_query); + $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` " . "SET `value`='" . $db->escape($guid) . "' " . "WHERE `settinggroup`='system' AND `varname`='lastguid'"); + + if($accountnumber != intval($settings['system']['lastaccountnumber'])) + { + $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` " . "SET `value`='" . $db->escape($accountnumber) . "' " . "WHERE `settinggroup`='system' AND `varname`='lastaccountnumber'"); + } + + $log->logAction(ADM_ACTION, LOG_INFO, "added user '" . $loginname . "'"); + inserttask('2', $loginname, $guid, $guid); + + // Add htpasswd for the webalizer stats + + if(CRYPT_STD_DES == 1) + { + $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); + $htpasswdPassword = crypt($password, $saltfordescrypt); + } + else + { + $htpasswdPassword = crypt($password); + } + + $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` " . "(`customerid`, `username`, `password`, `path`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($htpasswdPassword) . "', '" . $db->escape(makeCorrectDir($documentroot . '/webalizer/')) . "')"); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added webalizer htpasswd for user '" . $loginname . "'"); + + if($settings['system']['awstats_enabled'] == '1') + { + $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` " . "(`customerid`, `username`, `password`, `path`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($htpasswdPassword) . "', '" . $db->escape(makeCorrectDir($documentroot . '/awstats/')) . "')"); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added awstats htpasswd for user '" . $loginname . "'"); + } + + inserttask('1'); + $result = $db->query("INSERT INTO `" . TABLE_FTP_USERS . "` " . "(`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($documentroot) . "', 'y', '" . (int)$guid . "', '" . (int)$guid . "')"); + $result = $db->query("INSERT INTO `" . TABLE_FTP_GROUPS . "` " . "(`customerid`, `groupname`, `gid`, `members`) " . "VALUES ('" . (int)$customerid . "', '" . $db->escape($loginname) . "', '" . $db->escape($guid) . "', '" . $db->escape($loginname) . "')"); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added ftp-account for user '" . $loginname . "'"); + + if($createstdsubdomain == '1') + { + $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` " . "(`domain`, `customerid`, `adminid`, `parentdomainid`, `ipandport`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " . "VALUES ('" . $db->escape($loginname . '.' . $settings['system']['hostname']) . "', '" . (int)$customerid . "', '" . (int)$userinfo['adminid'] . "', '-1', '" . $db->escape($settings['system']['defaultip']) . "', '" . $db->escape($documentroot) . "', '', '0', '0', '1', '1', '0', '')"); + $domainid = $db->insert_id(); + $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'' . (int)$domainid . '\' WHERE `customerid`=\'' . (int)$customerid . '\''); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added standardsubdomain for user '" . $loginname . "'"); + inserttask('1'); + } + + if($sendpassword == '1') + { + $replace_arr = array( + 'FIRSTNAME' => $firstname, + 'NAME' => $name, + 'TITLE' => $title, + 'COMPANY' => $company, + 'SALUTATION' => getCorrectUserSalutation(array('firstname' => $firstname, 'name' => $name, 'company' => $company)), + 'USERNAME' => $loginname, + 'PASSWORD' => $password + ); + + // Get mail templates from database; the ones from 'admin' are fetched for fallback + + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($def_language) . '\' AND `templategroup`=\'mails\' AND `varname`=\'createcustomer_subject\''); + $mail_subject = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['createcustomer']['subject']), $replace_arr)); + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($def_language) . '\' AND `templategroup`=\'mails\' AND `varname`=\'createcustomer_mailbody\''); + $mail_body = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['createcustomer']['mailbody']), $replace_arr)); + + $mail->From = $userinfo['email']; + $mail->FromName = $userinfo['name']; + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($email, getCorrectUserSalutation(array('firstname' => $firstname, 'name' => $name, 'company' => $company))); + + if(!$mail->Send()) + { + if($mail->ErrorInfo != '') + { + $mailerr_msg = $mail->ErrorInfo; + } + else + { + $mailerr_msg = $email; + } + + $log->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); + standard_error('errorsendingmail', $email); + } + + $mail->ClearAddresses(); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically sent password to user '" . $loginname . "'"); + } + + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $language_options = ''; + + while(list($language_file, $language_name) = each($languages)) + { + $language_options.= makeoption($language_name, $language_file, $userinfo['def_language'], true); + } + + $diskspace_ul = makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $traffic_ul = makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $subdomains_ul = makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $emails_ul = makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $email_accounts_ul = makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $email_forwarders_ul = makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $email_quota_ul = makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $ftps_ul = makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $tickets_ul = makecheckbox('tickets_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $mysqls_ul = makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $number_of_aps_packages_ul = makecheckbox('number_of_aps_packages_ul', $lng['customer']['unlimited'], '-1', false, '0', true, true); + $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', '1'); + $email_imap = makeyesno('email_imap', '1', '0', '1'); + $email_pop3 = makeyesno('email_pop3', '1', '0', '1'); + $sendpassword = makeyesno('sendpassword', '1', '0', '1'); + $phpenabled = makeyesno('phpenabled', '1', '0', '1'); + eval("echo \"" . getTemplate("customers/customers_add") . "\";"); + } + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid`='" . (int)$id . "' " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = '" . (int)$userinfo['adminid'] . "' ")); + + if($result['loginname'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $name = validate($_POST['name'], 'name'); + $firstname = validate($_POST['firstname'], 'first name'); + $title = validate($_POST['title'], 'title'); + $company = validate($_POST['company'], 'company'); + $street = validate($_POST['street'], 'street'); + $zipcode = validate($_POST['zipcode'], 'zipcode', '/^[0-9 \-A-Z]*$/'); + $city = validate($_POST['city'], 'city'); + $country = validate($_POST['country'], 'country'); + $phone = validate($_POST['phone'], 'phone', '/^[0-9\- \+\(\)\/]*$/'); + $fax = validate($_POST['fax'], 'fax', '/^[0-9\- \+\(\)\/]*$/'); + $email = $idna_convert->encode(validate($_POST['email'], 'email')); + $customernumber = validate($_POST['customernumber'], 'customer number', '/^[A-Za-z0-9 \-]*$/Di'); + $def_language = validate($_POST['def_language'], 'default language'); + $password = validate($_POST['customer_password'], 'new password'); + $diskspace = intval_ressource($_POST['diskspace']); + + if(isset($_POST['diskspace_ul'])) + { + $diskspace = - 1; + } + + $traffic = doubleval_ressource($_POST['traffic']); + + if(isset($_POST['traffic_ul'])) + { + $traffic = - 1; + } + + $subdomains = intval_ressource($_POST['subdomains']); + + if(isset($_POST['subdomains_ul'])) + { + $subdomains = - 1; + } + + $emails = intval_ressource($_POST['emails']); + + if(isset($_POST['emails_ul'])) + { + $emails = - 1; + } + + $email_accounts = intval_ressource($_POST['email_accounts']); + + if(isset($_POST['email_accounts_ul'])) + { + $email_accounts = - 1; + } + + $email_forwarders = intval_ressource($_POST['email_forwarders']); + + if(isset($_POST['email_forwarders_ul'])) + { + $email_forwarders = - 1; + } + + if($settings['system']['mail_quota_enabled'] == '1') + { + $email_quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong', array('0', '')); + + if(isset($_POST['email_quota_ul'])) + { + $email_quota = - 1; + } + } + else + { + $email_quota = - 1; + } + + $email_imap = intval_ressource($_POST['email_imap']); + $email_pop3 = intval_ressource($_POST['email_pop3']); + $ftps = intval_ressource($_POST['ftps']); + + if(isset($_POST['ftps_ul'])) + { + $ftps = - 1; + } + + $tickets = ($settings['ticket']['enabled'] == 1 ? intval_ressource($_POST['tickets']) : 0); + + if(isset($_POST['tickets_ul']) + && $settings['ticket']['enabled'] == '1') + { + $tickets = - 1; + } + + $mysqls = intval_ressource($_POST['mysqls']); + + if(isset($_POST['mysqls_ul'])) + { + $mysqls = - 1; + } + + $number_of_aps_packages = intval_ressource($_POST['number_of_aps_packages']); + + if(isset($_POST['number_of_aps_packages_ul'])) + { + $number_of_aps_packages = - 1; + } + + $createstdsubdomain = intval($_POST['createstdsubdomain']); + $deactivated = intval($_POST['deactivated']); + $phpenabled = intval($_POST['phpenabled']); + $diskspace = $diskspace * 1024; + $traffic = $traffic * 1024 * 1024; + + if(((($userinfo['diskspace_used'] + $diskspace - $result['diskspace']) > $userinfo['diskspace']) && ($userinfo['diskspace'] / 1024) != '-1') + || ((($userinfo['mysqls_used'] + $mysqls - $result['mysqls']) > $userinfo['mysqls']) && $userinfo['mysqls'] != '-1') + || ((($userinfo['emails_used'] + $emails - $result['emails']) > $userinfo['emails']) && $userinfo['emails'] != '-1') + || ((($userinfo['email_accounts_used'] + $email_accounts - $result['email_accounts']) > $userinfo['email_accounts']) && $userinfo['email_accounts'] != '-1') + || ((($userinfo['email_forwarders_used'] + $email_forwarders - $result['email_forwarders']) > $userinfo['email_forwarders']) && $userinfo['email_forwarders'] != '-1') + || ((($userinfo['email_quota_used'] + $email_quota - $result['email_quota']) > $userinfo['email_quota']) && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') + || ((($userinfo['ftps_used'] + $ftps - $result['ftps']) > $userinfo['ftps']) && $userinfo['ftps'] != '-1') + || ((($userinfo['tickets_used'] + $tickets - $result['tickets']) > $userinfo['tickets']) && $userinfo['tickets'] != '-1') + || ((($userinfo['subdomains_used'] + $subdomains - $result['subdomains']) > $userinfo['subdomains']) && $userinfo['subdomains'] != '-1') + || (($diskspace / 1024) == '-1' && ($userinfo['diskspace'] / 1024) != '-1') + || ((($userinfo['aps_packages'] + $number_of_aps_packages - $result['aps_packages']) > $userinfo['aps_packages']) && $userinfo['aps_packages'] != '-1' && $settings['aps']['aps_active'] == '1') + || ($mysqls == '-1' && $userinfo['mysqls'] != '-1') + || ($emails == '-1' && $userinfo['emails'] != '-1') + || ($email_accounts == '-1' && $userinfo['email_accounts'] != '-1') + || ($email_forwarders == '-1' && $userinfo['email_forwarders'] != '-1') + || ($email_quota == '-1' && $userinfo['email_quota'] != '-1' && $settings['system']['mail_quota_enabled'] == '1') + || ($ftps == '-1' && $userinfo['ftps'] != '-1') + || ($tickets == '-1' && $userinfo['tickets'] != '-1') + || ($subdomains == '-1' && $userinfo['subdomains'] != '-1') + || ($number_of_aps_packages == '-1' && $userinfo['aps_packages'] != '-1')) + { + standard_error('youcantallocatemorethanyouhave'); + exit; + } + + // Either $name and $firstname or the $company must be inserted + + if($name == '' + && $company == '') + { + standard_error(array('stringisempty', 'myname')); + } + elseif($firstname == '' + && $company == '') + { + standard_error(array('stringisempty', 'myfirstname')); + } + elseif($email == '') + { + standard_error(array('stringisempty', 'emailadd')); + } + elseif(!validateEmail($email)) + { + standard_error('emailiswrong', $email); + } + else + { + if($password != '') + { + $password = md5($password); + } + else + { + $password = $result['password']; + } + + if($createstdsubdomain != '1') + { + $createstdsubdomain = '0'; + } + + if($createstdsubdomain == '1' + && $result['standardsubdomain'] == '0') + { + $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` " . "(`domain`, `customerid`, `adminid`, `parentdomainid`, `ipandport`, `documentroot`, `zonefile`, `isemaildomain`, `caneditdomain`, `openbasedir`, `safemode`, `speciallogfile`, `specialsettings`) " . "VALUES ('" . $db->escape($result['loginname'] . '.' . $settings['system']['hostname']) . "', '" . (int)$result['customerid'] . "', '" . (int)$userinfo['adminid'] . "', '-1', '" . $db->escape($settings['system']['defaultip']) . "', '" . $db->escape($result['documentroot']) . "', '', '0', '0', '1', '1', '0', '')"); + $domainid = $db->insert_id(); + $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'' . (int)$domainid . '\' WHERE `customerid`=\'' . (int)$result['customerid'] . '\''); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically added standardsubdomain for user '" . $result['loginname'] . "'"); + inserttask('1'); + } + + if($createstdsubdomain == '0' + && $result['standardsubdomain'] != '0') + { + $db->query('DELETE FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `id`=\'' . (int)$result['standardsubdomain'] . '\''); + $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `standardsubdomain`=\'0\' WHERE `customerid`=\'' . (int)$result['customerid'] . '\''); + $log->logAction(ADM_ACTION, LOG_NOTICE, "automatically deleted standardsubdomain for user '" . $result['loginname'] . "'"); + inserttask('1'); + } + + if($deactivated != '1') + { + $deactivated = '0'; + } + + if($phpenabled != '0') + { + $phpenabled = '1'; + } + + if($phpenabled != $result['phpenabled']) + { + inserttask('1'); + } + + if($deactivated != $result['deactivated']) + { + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `postfix`='" . (($deactivated) ? 'N' : 'Y') . "', `pop3`='" . (($deactivated) ? '0' : '1') . "', `imap`='" . (($deactivated) ? '0' : '1') . "' WHERE `customerid`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `login_enabled`='" . (($deactivated) ? 'N' : 'Y') . "' WHERE `customerid`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `deactivated`='" . (int)$deactivated . "' WHERE `customerid`='" . (int)$id . "'"); + $log->logAction(ADM_ACTION, LOG_INFO, "deactivated user '" . $result['loginname'] . "'"); + inserttask('1'); + } + + // Disable or enable POP3 Login for customers Mail Accounts + + if($email_pop3 != $result['pop3']) + { + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `pop3`='" . (int)$email_pop3 . "' WHERE `customerid`='" . (int)$id . "'"); + } + + // Disable or enable IMAP Login for customers Mail Accounts + + if($email_imap != $result['imap']) + { + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `imap`='" . (int)$email_imap . "' WHERE `customerid`='" . (int)$id . "'"); + } + + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `name`='" . $db->escape($name) . "', `firstname`='" . $db->escape($firstname) . "', `title`='" . $db->escape($title) . "', `company`='" . $db->escape($company) . "', `street`='" . $db->escape($street) . "', `zipcode`='" . $db->escape($zipcode) . "', `city`='" . $db->escape($city) . "', `country`='" . $db->escape($country) . "', `phone`='" . $db->escape($phone) . "', `fax`='" . $db->escape($fax) . "', `email`='" . $db->escape($email) . "', `customernumber`='" . $db->escape($customernumber) . "', `def_language`='" . $db->escape($def_language) . "', `password` = '" . $password . "', `diskspace`='" . $db->escape($diskspace) . "', `traffic`='" . $db->escape($traffic) . "', `subdomains`='" . $db->escape($subdomains) . "', `emails`='" . $db->escape($emails) . "', `email_accounts` = '" . $db->escape($email_accounts) . "', `email_forwarders`='" . $db->escape($email_forwarders) . "', `ftps`='" . $db->escape($ftps) . "', `tickets`='" . $db->escape($tickets) . "', `mysqls`='" . $db->escape($mysqls) . "', `deactivated`='" . $db->escape($deactivated) . "', `phpenabled`='" . $db->escape($phpenabled) . "', `email_quota`='" . $db->escape($email_quota) . "', `imap`='" . $db->escape($email_imap) . "', `pop3`='" . $db->escape($email_pop3) . "', `contract_date`='" . $db->escape($contract_date) . "', `contract_number`='" . $db->escape($contract_number) . "', `taxid`='" . $db->escape($taxid) . "', `included_domains_qty`='" . $db->escape($included_domains_qty) . "', `included_domains_tld`='" . $db->escape($included_domains_tld) . "', `additional_traffic_fee`='" . $db->escape($additional_traffic_fee) . "', `additional_traffic_unit`='" . $db->escape($additional_traffic_unit) . "', `additional_diskspace_fee`='" . $db->escape($additional_diskspace_fee) . "', `additional_diskspace_unit`='" . $db->escape($additional_diskspace_unit) . "', `interval_fee`='" . $db->escape($interval_fee) . "', `interval_length`='" . $db->escape($interval_length) . "', `interval_type`='" . $db->escape($interval_type) . "', `interval_payment`='" . $db->escape($interval_payment) . "', `setup_fee`='" . $db->escape($setup_fee) . "', `taxclass`='" . $db->escape($taxclass) . "', `service_active`='" . $db->escape($service_active) . "', `servicestart_date`='" . $db->escape($servicestart_date) . "', `serviceend_date`='" . $db->escape($serviceend_date) . "', `term_of_payment`='" . $db->escape($term_of_payment) . "', `calc_tax`='" . $db->escape($calc_tax) . "', `payment_every`='" . $db->escape($payment_every) . "', `payment_method`='" . $db->escape($payment_method) . "', `bankaccount_holder`='" . $db->escape($bankaccount_holder) . "', `bankaccount_number`='" . $db->escape($bankaccount_number) . "', `bankaccount_blz`='" . $db->escape($bankaccount_blz) . "', `bankaccount_bank`='" . $db->escape($bankaccount_bank) . "', `additional_service_description`='" . $db->escape($additional_service_description) . "', `aps_packages`=" . (int)$number_of_aps_packages . " WHERE `customerid`='" . (int)$id . "'"); + $admin_update_query = "UPDATE `" . TABLE_PANEL_ADMINS . "` SET `customers_used` = `customers_used` "; + + if($mysqls != '-1' + || $result['mysqls'] != '-1') + { + $admin_update_query.= ", `mysqls_used` = `mysqls_used` "; + + if($mysqls != '-1') + { + $admin_update_query.= " + 0" . (int)$mysqls . " "; + } + + if($result['mysqls'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['mysqls'] . " "; + } + } + + if($emails != '-1' + || $result['emails'] != '-1') + { + $admin_update_query.= ", `emails_used` = `emails_used` "; + + if($emails != '-1') + { + $admin_update_query.= " + 0" . (int)$emails . " "; + } + + if($result['emails'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['emails'] . " "; + } + } + + if($email_accounts != '-1' + || $result['email_accounts'] != '-1') + { + $admin_update_query.= ", `email_accounts_used` = `email_accounts_used` "; + + if($email_accounts != '-1') + { + $admin_update_query.= " + 0" . (int)$email_accounts . " "; + } + + if($result['email_accounts'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['email_accounts'] . " "; + } + } + + if($email_forwarders != '-1' + || $result['email_forwarders'] != '-1') + { + $admin_update_query.= ", `email_forwarders_used` = `email_forwarders_used` "; + + if($email_forwarders != '-1') + { + $admin_update_query.= " + 0" . (int)$email_forwarders . " "; + } + + if($result['email_forwarders'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['email_forwarders'] . " "; + } + } + + if($email_quota != '-1' + || $result['email_quota'] != '-1') + { + $admin_update_query.= ", `email_quota_used` = `email_quota_used` "; + + if($email_quota != '-1') + { + $admin_update_query.= " + 0" . (int)$email_quota . " "; + } + + if($result['email_quota'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['email_quota'] . " "; + } + } + + if($subdomains != '-1' + || $result['subdomains'] != '-1') + { + $admin_update_query.= ", `subdomains_used` = `subdomains_used` "; + + if($subdomains != '-1') + { + $admin_update_query.= " + 0" . (int)$subdomains . " "; + } + + if($result['subdomains'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['subdomains'] . " "; + } + } + + if($ftps != '-1' + || $result['ftps'] != '-1') + { + $admin_update_query.= ", `ftps_used` = `ftps_used` "; + + if($ftps != '-1') + { + $admin_update_query.= " + 0" . (int)$ftps . " "; + } + + if($result['ftps'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['ftps'] . " "; + } + } + + if($tickets != '-1' + || $result['tickets'] != '-1') + { + $admin_update_query.= ", `tickets_used` = `tickets_used` "; + + if($tickets != '-1') + { + $admin_update_query.= " + 0" . (int)$tickets . " "; + } + + if($result['tickets'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['tickets'] . " "; + } + } + + if(($diskspace / 1024) != '-1' + || ($result['diskspace'] / 1024) != '-1') + { + $admin_update_query.= ", `diskspace_used` = `diskspace_used` "; + + if(($diskspace / 1024) != '-1') + { + $admin_update_query.= " + 0" . (int)$diskspace . " "; + } + + if(($result['diskspace'] / 1024) != '-1') + { + $admin_update_query.= " - 0" . (int)$result['diskspace'] . " "; + } + } + + if($number_of_aps_packages != '-1' + || $result['aps_packages'] != '-1') + { + $admin_update_query.= ", `aps_packages_used` = `aps_packages_used` "; + + if($number_of_aps_packages != '-1') + { + $admin_update_query.= " + 0" . (int)$number_of_aps_packages . " "; + } + + if($result['aps_packages'] != '-1') + { + $admin_update_query.= " - 0" . (int)$result['aps_packages'] . " "; + } + } + + $admin_update_query.= " WHERE `adminid` = '" . (int)$result['adminid'] . "'"; + $db->query($admin_update_query); + $log->logAction(ADM_ACTION, LOG_INFO, "edited user '" . $result['loginname'] . "'"); + $redirect_props = Array( + 'page' => $page, + 's' => $s + ); + + redirectTo($filename, $redirect_props); + } + } + else + { + $language_options = ''; + + while(list($language_file, $language_name) = each($languages)) + { + $language_options.= makeoption($language_name, $language_file, $result['def_language'], true); + } + + $result['traffic'] = round($result['traffic'] / (1024 * 1024), $settings['panel']['decimal_places']); + $result['diskspace'] = round($result['diskspace'] / 1024, $settings['panel']['decimal_places']); + $result['email'] = $idna_convert->decode($result['email']); + $diskspace_ul = makecheckbox('diskspace_ul', $lng['customer']['unlimited'], '-1', false, $result['diskspace'], true, true); + + if($result['diskspace'] == '-1') + { + $result['diskspace'] = ''; + } + + $traffic_ul = makecheckbox('traffic_ul', $lng['customer']['unlimited'], '-1', false, $result['traffic'], true, true); + + if($result['traffic'] == '-1') + { + $result['traffic'] = ''; + } + + $subdomains_ul = makecheckbox('subdomains_ul', $lng['customer']['unlimited'], '-1', false, $result['subdomains'], true, true); + + if($result['subdomains'] == '-1') + { + $result['subdomains'] = ''; + } + + $emails_ul = makecheckbox('emails_ul', $lng['customer']['unlimited'], '-1', false, $result['emails'], true, true); + + if($result['emails'] == '-1') + { + $result['emails'] = ''; + } + + $email_accounts_ul = makecheckbox('email_accounts_ul', $lng['customer']['unlimited'], '-1', false, $result['email_accounts'], true, true); + + if($result['email_accounts'] == '-1') + { + $result['email_accounts'] = ''; + } + + $email_forwarders_ul = makecheckbox('email_forwarders_ul', $lng['customer']['unlimited'], '-1', false, $result['email_forwarders'], true, true); + + if($result['email_forwarders'] == '-1') + { + $result['email_forwarders'] = ''; + } + + $email_quota_ul = makecheckbox('email_quota_ul', $lng['customer']['unlimited'], '-1', false, $result['email_quota'], true, true); + + if($result['email_quota'] == '-1') + { + $result['email_quota'] = ''; + } + + $ftps_ul = makecheckbox('ftps_ul', $lng['customer']['unlimited'], '-1', false, $result['ftps'], true, true); + + if($result['ftps'] == '-1') + { + $result['ftps'] = ''; + } + + $tickets_ul = makecheckbox('tickets_ul', $lng['customer']['unlimited'], '-1', false, $result['tickets'], true, true); + + if($result['tickets'] == '-1') + { + $result['tickets'] = ''; + } + + $mysqls_ul = makecheckbox('mysqls_ul', $lng['customer']['unlimited'], '-1', false, $result['mysqls'], true, true); + + if($result['mysqls'] == '-1') + { + $result['mysqls'] = ''; + } + + $number_of_aps_packages_ul = makecheckbox('number_of_aps_packages_ul', $lng['customer']['unlimited'], '-1', false, $result['aps_packages'], true, true); + + if($result['aps_packages'] == '-1') + { + $result['aps_packages'] = ''; + } + + $createstdsubdomain = makeyesno('createstdsubdomain', '1', '0', (($result['standardsubdomain'] != '0') ? '1' : '0')); + $phpenabled = makeyesno('phpenabled', '1', '0', $result['phpenabled']); + $deactivated = makeyesno('deactivated', '1', '0', $result['deactivated']); + $email_imap = makeyesno('email_imap', '1', '0', $result['imap']); + $email_pop3 = makeyesno('email_pop3', '1', '0', $result['pop3']); + + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("customers/customers_edit") . "\";"); + } + } + } +} + +?> diff --git a/admin_ipsandports.php b/admin_ipsandports.php index 3bb7de82..66a50ba7 100644 --- a/admin_ipsandports.php +++ b/admin_ipsandports.php @@ -1,320 +1,320 @@ - - * @author Michael Duergner - * @author Luca Longinotti - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: admin_ipsandports.php 2699 2009-04-14 11:21:26Z flo $ - */ - -define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'ipsandports' - || $page == 'overview') -{ - if($action == '') - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports"); - $fields = array( - 'ip' => $lng['admin']['ipsandports']['ip'], - 'port' => $lng['admin']['ipsandports']['port'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_IPSANDPORTS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $ipsandports = ''; - $result = $db->query("SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl` FROM `" . TABLE_PANEL_IPSANDPORTS . "` " . $paging->getSqlWhere(false) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($row); - - if(filter_var($row['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $row['ip'] = '[' . $row['ip'] . ']'; - } - - eval("\$ipsandports.=\"" . getTemplate("ipsandports/ipsandports_ipandport") . "\";"); - $count++; - } - - $i++; - } - - eval("echo \"" . getTemplate("ipsandports/ipsandports") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); - - if(isset($result['id']) - && $result['id'] == $id) - { - $result_checkdomain = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `ipandport`='" . (int)$id . "'"); - - if($result_checkdomain['id'] == '') - { - if($result['id'] != $settings['system']['defaultip']) - { - $result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'"); - - if(($result['ip'] != $settings['system']['ipaddress']) - || ($result['ip'] == $settings['system']['ipaddress'] && $result_sameipotherport['id'] != '')) - { - $result = $db->query_first("SELECT `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); - - if($result['ip'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $db->query("DELETE FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); - $log->logAction(ADM_ACTION, LOG_WARNING, "deleted IP/port '" . $result['ip'] . ":" . $result['port'] . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('admin_ip_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['ip'] . ':' . $result['port']); - } - } - } - else - { - standard_error('cantdeletesystemip'); - } - } - else - { - standard_error('cantdeletedefaultip'); - } - } - else - { - standard_error('ipstillhasdomains'); - } - } - } - elseif($action == 'add') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $ip = validate_ip($_POST['ip']); - $port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport')); - $listen_statement = intval($_POST['listen_statement']); - $namevirtualhost_statement = intval($_POST['namevirtualhost_statement']); - $vhostcontainer = intval($_POST['vhostcontainer']); - $specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/'); - $vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']); - $ssl = intval($_POST['ssl']); - $ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file'); - $ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file'); - $ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file'); - $default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/'); - - if($listen_statement != '1') - { - $listen_statement = '0'; - } - - if($namevirtualhost_statement != '1') - { - $namevirtualhost_statement = '0'; - } - - if($vhostcontainer != '1') - { - $vhostcontainer = '0'; - } - - if($vhostcontainer_servername_statement != '1') - { - $vhostcontainer_servername_statement = '0'; - } - - if($ssl != '1') - { - $ssl = '0'; - } - - if($ssl_cert_file != '') - { - $ssl_cert_file = makeCorrectFile($ssl_cert_file); - } - - if($ssl_key_file != '') - { - $ssl_key_file = makeCorrectFile($ssl_key_file); - } - - if($ssl_ca_file != '') - { - $ssl_ca_file = makeCorrectFile($ssl_ca_file); - } - - $result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'"); - - if($result_checkfordouble['id'] != '') - { - standard_error('myipnotdouble'); - } - else - { - $db->query("INSERT INTO `" . TABLE_PANEL_IPSANDPORTS . "` (`ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file`, `ssl_key_file`, `ssl_ca_file`, `default_vhostconf_domain`) VALUES ('" . $db->escape($ip) . "', '" . (int)$port . "', '" . (int)$listen_statement . "', '" . (int)$namevirtualhost_statement . "', '" . (int)$vhostcontainer . "', '" . (int)$vhostcontainer_servername_statement . "', '" . $db->escape($specialsettings) . "', '" . (int)$ssl . "', '" . $db->escape($ssl_cert_file) . "', '" . $db->escape($ssl_key_file) . "', '" . $db->escape($ssl_ca_file) . "', '" . $db->escape($default_vhostconf_domain) . "')"); - - if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ip = '[' . $ip . ']'; - } - - $log->logAction(ADM_ACTION, LOG_WARNING, "added IP/port '" . $ip . ":" . $port . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $enable_ssl = makeyesno('ssl', '1', '0', '0'); - $listen_statement = makeyesno('listen_statement', '1', '0', '1'); - $namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', '1'); - $vhostcontainer = makeyesno('vhostcontainer', '1', '0', '1'); - $vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', '1'); - eval("echo \"" . getTemplate("ipsandports/ipsandports_add") . "\";"); - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); - - if($result['ip'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $ip = validate_ip($_POST['ip']); - $port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport')); - $result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'"); - $result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'"); - $listen_statement = intval($_POST['listen_statement']); - $namevirtualhost_statement = intval($_POST['namevirtualhost_statement']); - $vhostcontainer = intval($_POST['vhostcontainer']); - $specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/'); - $vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']); - $ssl = intval($_POST['ssl']); - $ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file'); - $ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file'); - $ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file'); - $default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/'); - - if($listen_statement != '1') - { - $listen_statement = '0'; - } - - if($namevirtualhost_statement != '1') - { - $namevirtualhost_statement = '0'; - } - - if($vhostcontainer != '1') - { - $vhostcontainer = '0'; - } - - if($vhostcontainer_servername_statement != '1') - { - $vhostcontainer_servername_statement = '0'; - } - - if($ssl != '1') - { - $ssl = '0'; - } - - if($ssl_cert_file != '') - { - $ssl_cert_file = makeCorrectFile($ssl_cert_file); - } - - if($ssl_key_file != '') - { - $ssl_key_file = makeCorrectFile($ssl_key_file); - } - - if($ssl_ca_file != '') - { - $ssl_ca_file = makeCorrectFile($ssl_ca_file); - } - - if($result['ip'] != $ip - && $result['ip'] == $settings['system']['ipaddress'] - && $result_sameipotherport['id'] == '') - { - standard_error('cantchangesystemip'); - } - elseif($result_checkfordouble['id'] != '' - && $result_checkfordouble['id'] != $id) - { - standard_error('myipnotdouble'); - } - else - { - $db->query("UPDATE `" . TABLE_PANEL_IPSANDPORTS . "` SET `ip`='" . $db->escape($ip) . "', `port`='" . (int)$port . "', `listen_statement`='" . (int)$listen_statement . "', `namevirtualhost_statement`='" . (int)$namevirtualhost_statement . "', `vhostcontainer`='" . (int)$vhostcontainer . "', `vhostcontainer_servername_statement`='" . (int)$vhostcontainer_servername_statement . "', `specialsettings`='" . $db->escape($specialsettings) . "', `ssl`='" . (int)$ssl . "', `ssl_cert_file`='" . $db->escape($ssl_cert_file) . "', `ssl_key_file`='" . $db->escape($ssl_key_file) . "', `ssl_ca_file`='" . $db->escape($ssl_ca_file) . "', `default_vhostconf_domain`='" . $db->escape($default_vhostconf_domain) . "' WHERE `id`='" . (int)$id . "'"); - $log->logAction(ADM_ACTION, LOG_WARNING, "changed IP/port from '" . $result['ip'] . ":" . $result['port'] . "' to '" . $ip . ":" . $port . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $enable_ssl = makeyesno('ssl', '1', '0', $result['ssl']); - $result = htmlentities_array($result); - $listen_statement = makeyesno('listen_statement', '1', '0', $result['listen_statement']); - $namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', $result['namevirtualhost_statement']); - $vhostcontainer = makeyesno('vhostcontainer', '1', '0', $result['vhostcontainer']); - $vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', $result['vhostcontainer_servername_statement']); - eval("echo \"" . getTemplate("ipsandports/ipsandports_edit") . "\";"); - } - } - } -} - + + * @author Michael Duergner + * @author Luca Longinotti + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: admin_ipsandports.php 2699 2009-04-14 11:21:26Z flo $ + */ + +define('AREA', 'admin'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'ipsandports' + || $page == 'overview') +{ + if($action == '') + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports"); + $fields = array( + 'ip' => $lng['admin']['ipsandports']['ip'], + 'port' => $lng['admin']['ipsandports']['port'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_IPSANDPORTS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $ipsandports = ''; + $result = $db->query("SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl` FROM `" . TABLE_PANEL_IPSANDPORTS . "` " . $paging->getSqlWhere(false) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($row); + + if(filter_var($row['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $row['ip'] = '[' . $row['ip'] . ']'; + } + + eval("\$ipsandports.=\"" . getTemplate("ipsandports/ipsandports_ipandport") . "\";"); + $count++; + } + + $i++; + } + + eval("echo \"" . getTemplate("ipsandports/ipsandports") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); + + if(isset($result['id']) + && $result['id'] == $id) + { + $result_checkdomain = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `ipandport`='" . (int)$id . "'"); + + if($result_checkdomain['id'] == '') + { + if($result['id'] != $settings['system']['defaultip']) + { + $result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'"); + + if(($result['ip'] != $settings['system']['ipaddress']) + || ($result['ip'] == $settings['system']['ipaddress'] && $result_sameipotherport['id'] != '')) + { + $result = $db->query_first("SELECT `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); + + if($result['ip'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $db->query("DELETE FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); + $log->logAction(ADM_ACTION, LOG_WARNING, "deleted IP/port '" . $result['ip'] . ":" . $result['port'] . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('admin_ip_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['ip'] . ':' . $result['port']); + } + } + } + else + { + standard_error('cantdeletesystemip'); + } + } + else + { + standard_error('cantdeletedefaultip'); + } + } + else + { + standard_error('ipstillhasdomains'); + } + } + } + elseif($action == 'add') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $ip = validate_ip($_POST['ip']); + $port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport')); + $listen_statement = intval($_POST['listen_statement']); + $namevirtualhost_statement = intval($_POST['namevirtualhost_statement']); + $vhostcontainer = intval($_POST['vhostcontainer']); + $specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/'); + $vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']); + $ssl = intval($_POST['ssl']); + $ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file'); + $ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file'); + $ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file'); + $default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/'); + + if($listen_statement != '1') + { + $listen_statement = '0'; + } + + if($namevirtualhost_statement != '1') + { + $namevirtualhost_statement = '0'; + } + + if($vhostcontainer != '1') + { + $vhostcontainer = '0'; + } + + if($vhostcontainer_servername_statement != '1') + { + $vhostcontainer_servername_statement = '0'; + } + + if($ssl != '1') + { + $ssl = '0'; + } + + if($ssl_cert_file != '') + { + $ssl_cert_file = makeCorrectFile($ssl_cert_file); + } + + if($ssl_key_file != '') + { + $ssl_key_file = makeCorrectFile($ssl_key_file); + } + + if($ssl_ca_file != '') + { + $ssl_ca_file = makeCorrectFile($ssl_ca_file); + } + + $result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'"); + + if($result_checkfordouble['id'] != '') + { + standard_error('myipnotdouble'); + } + else + { + $db->query("INSERT INTO `" . TABLE_PANEL_IPSANDPORTS . "` (`ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file`, `ssl_key_file`, `ssl_ca_file`, `default_vhostconf_domain`) VALUES ('" . $db->escape($ip) . "', '" . (int)$port . "', '" . (int)$listen_statement . "', '" . (int)$namevirtualhost_statement . "', '" . (int)$vhostcontainer . "', '" . (int)$vhostcontainer_servername_statement . "', '" . $db->escape($specialsettings) . "', '" . (int)$ssl . "', '" . $db->escape($ssl_cert_file) . "', '" . $db->escape($ssl_key_file) . "', '" . $db->escape($ssl_ca_file) . "', '" . $db->escape($default_vhostconf_domain) . "')"); + + if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ip = '[' . $ip . ']'; + } + + $log->logAction(ADM_ACTION, LOG_WARNING, "added IP/port '" . $ip . ":" . $port . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $enable_ssl = makeyesno('ssl', '1', '0', '0'); + $listen_statement = makeyesno('listen_statement', '1', '0', '1'); + $namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', '1'); + $vhostcontainer = makeyesno('vhostcontainer', '1', '0', '1'); + $vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', '1'); + eval("echo \"" . getTemplate("ipsandports/ipsandports_add") . "\";"); + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id`='" . (int)$id . "'"); + + if($result['ip'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $ip = validate_ip($_POST['ip']); + $port = validate($_POST['port'], 'port', '/^(([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-9][0-9][0-9][0-9])|([1-5][0-9][0-9][0-9][0-9])|(6[0-4][0-9][0-9][0-9])|(65[0-4][0-9][0-9])|(655[0-2][0-9])|(6553[0-5]))$/Di', array('stringisempty', 'myport')); + $result_checkfordouble = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($ip) . "' AND `port`='" . (int)$port . "'"); + $result_sameipotherport = $db->query_first("SELECT `id` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `ip`='" . $db->escape($result['ip']) . "' AND `id`!='" . (int)$id . "'"); + $listen_statement = intval($_POST['listen_statement']); + $namevirtualhost_statement = intval($_POST['namevirtualhost_statement']); + $vhostcontainer = intval($_POST['vhostcontainer']); + $specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/'); + $vhostcontainer_servername_statement = intval($_POST['vhostcontainer_servername_statement']); + $ssl = intval($_POST['ssl']); + $ssl_cert_file = validate($_POST['ssl_cert_file'], 'ssl_cert_file'); + $ssl_key_file = validate($_POST['ssl_key_file'], 'ssl_key_file'); + $ssl_ca_file = validate($_POST['ssl_ca_file'], 'ssl_ca_file'); + $default_vhostconf_domain = validate(str_replace("\r\n", "\n", $_POST['default_vhostconf_domain']), 'default_vhostconf_domain', '/^[^\0]*$/'); + + if($listen_statement != '1') + { + $listen_statement = '0'; + } + + if($namevirtualhost_statement != '1') + { + $namevirtualhost_statement = '0'; + } + + if($vhostcontainer != '1') + { + $vhostcontainer = '0'; + } + + if($vhostcontainer_servername_statement != '1') + { + $vhostcontainer_servername_statement = '0'; + } + + if($ssl != '1') + { + $ssl = '0'; + } + + if($ssl_cert_file != '') + { + $ssl_cert_file = makeCorrectFile($ssl_cert_file); + } + + if($ssl_key_file != '') + { + $ssl_key_file = makeCorrectFile($ssl_key_file); + } + + if($ssl_ca_file != '') + { + $ssl_ca_file = makeCorrectFile($ssl_ca_file); + } + + if($result['ip'] != $ip + && $result['ip'] == $settings['system']['ipaddress'] + && $result_sameipotherport['id'] == '') + { + standard_error('cantchangesystemip'); + } + elseif($result_checkfordouble['id'] != '' + && $result_checkfordouble['id'] != $id) + { + standard_error('myipnotdouble'); + } + else + { + $db->query("UPDATE `" . TABLE_PANEL_IPSANDPORTS . "` SET `ip`='" . $db->escape($ip) . "', `port`='" . (int)$port . "', `listen_statement`='" . (int)$listen_statement . "', `namevirtualhost_statement`='" . (int)$namevirtualhost_statement . "', `vhostcontainer`='" . (int)$vhostcontainer . "', `vhostcontainer_servername_statement`='" . (int)$vhostcontainer_servername_statement . "', `specialsettings`='" . $db->escape($specialsettings) . "', `ssl`='" . (int)$ssl . "', `ssl_cert_file`='" . $db->escape($ssl_cert_file) . "', `ssl_key_file`='" . $db->escape($ssl_key_file) . "', `ssl_ca_file`='" . $db->escape($ssl_ca_file) . "', `default_vhostconf_domain`='" . $db->escape($default_vhostconf_domain) . "' WHERE `id`='" . (int)$id . "'"); + $log->logAction(ADM_ACTION, LOG_WARNING, "changed IP/port from '" . $result['ip'] . ":" . $result['port'] . "' to '" . $ip . ":" . $port . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $enable_ssl = makeyesno('ssl', '1', '0', $result['ssl']); + $result = htmlentities_array($result); + $listen_statement = makeyesno('listen_statement', '1', '0', $result['listen_statement']); + $namevirtualhost_statement = makeyesno('namevirtualhost_statement', '1', '0', $result['namevirtualhost_statement']); + $vhostcontainer = makeyesno('vhostcontainer', '1', '0', $result['vhostcontainer']); + $vhostcontainer_servername_statement = makeyesno('vhostcontainer_servername_statement', '1', '0', $result['vhostcontainer_servername_statement']); + eval("echo \"" . getTemplate("ipsandports/ipsandports_edit") . "\";"); + } + } + } +} + ?> \ No newline at end of file diff --git a/admin_logger.php b/admin_logger.php index 762df100..8d1f353b 100644 --- a/admin_logger.php +++ b/admin_logger.php @@ -1,175 +1,175 @@ - - * @license http://www.gnu.org/licenses/gpl.txt - * @package Panel - * @version CVS: $Id: admin_logger.php 2452 2008-11-30 13:12:36Z flo $ - * @link http://www.nutime.de/ - * @since File available since Release 1.2.20 - */ - -define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if($page == 'log' - && $userinfo['change_serversettings'] == '1') -{ - if($action == '') - { - $fields = array( - 'action' => $lng['logger']['action'], - 'date' => $lng['logger']['date'], - 'type' => $lng['logger']['type'], - 'user' => $lng['logger']['user'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_LOG, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $paging->sortfield = 'date'; - $paging->sortorder = 'desc'; - $result = $db->query('SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy() . ' ' . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $clog = array(); - - while($row = $db->fetch_array($result)) - { - if(!isset($clog[$row['action']]) - || !is_array($clog[$row['action']])) - { - $clog[$row['action']] = array(); - } - - $clog[$row['action']][$row['logid']] = $row; - } - - if($paging->sortfield == 'date' - && $paging->sortorder == 'desc') - { - krsort($clog); - } - else - { - ksort($clog); - } - - $i = 0; - $count = 0; - $log_count = 0; - $log = ''; - foreach($clog as $action => $logrows) - { - $_action = 0; - foreach($logrows as $row) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($row); - $row['date'] = date("d.m.y H:i:s", $row['date']); - - if($_action != $action) - { - switch($action) - { - case USR_ACTION: - $_action = $lng['admin']['customer']; - break; - case RES_ACTION: - $_action = 'Reseller'; - break; - case ADM_ACTION: - $_action = 'Administrator'; - break; - case CRON_ACTION: - $_action = 'Cronjob'; - break; - case LOG_ERROR: - $_action = 'Internal'; - break; - default: - $_action = 'Unknown'; - break; - } - - $row['action'] = $_action; - eval("\$log.=\"" . getTemplate("logger/logger_action") . "\";"); - } - - $log_count++; - $type = $row['type']; - $_type = 'unknown'; - - switch($type) - { - case LOG_INFO: - $_type = 'Information'; - break; - case LOG_NOTICE: - $_type = 'Notice'; - break; - case LOG_WARNING: - $_type = 'Warning'; - break; - case LOG_ERR: - $_type = 'Error'; - break; - case LOG_CRIT: - $_type = 'Critical'; - break; - default: - $_type = 'Unknown'; - break; - } - - $row['type'] = $_type; - eval("\$log.=\"" . getTemplate("logger/logger_log") . "\";"); - $count++; - $_action = $action; - } - } - - $i++; - } - - eval("echo \"" . getTemplate("logger/logger") . "\";"); - } - elseif($action == 'truncate') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $yesterday = time() - (60 * 10); - - /* (60*60*24); */ - - $db->query("DELETE FROM `" . TABLE_PANEL_LOG . "` WHERE `date` < '" . $yesterday . "'"); - $log->logAction(ADM_ACTION, LOG_WARNING, "truncated the system-log (mysql)"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('logger_reallytruncate', $filename, array('page' => $page, 'action' => $action), TABLE_PANEL_LOG); - } - } -} - + + * @license http://www.gnu.org/licenses/gpl.txt + * @package Panel + * @version CVS: $Id: admin_logger.php 2452 2008-11-30 13:12:36Z flo $ + * @link http://www.nutime.de/ + * @since File available since Release 1.2.20 + */ + +define('AREA', 'admin'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if($page == 'log' + && $userinfo['change_serversettings'] == '1') +{ + if($action == '') + { + $fields = array( + 'action' => $lng['logger']['action'], + 'date' => $lng['logger']['date'], + 'type' => $lng['logger']['type'], + 'user' => $lng['logger']['user'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_LOG, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $paging->sortfield = 'date'; + $paging->sortorder = 'desc'; + $result = $db->query('SELECT * FROM `' . TABLE_PANEL_LOG . '` ' . $paging->getSqlWhere(false) . ' ' . $paging->getSqlOrderBy() . ' ' . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $clog = array(); + + while($row = $db->fetch_array($result)) + { + if(!isset($clog[$row['action']]) + || !is_array($clog[$row['action']])) + { + $clog[$row['action']] = array(); + } + + $clog[$row['action']][$row['logid']] = $row; + } + + if($paging->sortfield == 'date' + && $paging->sortorder == 'desc') + { + krsort($clog); + } + else + { + ksort($clog); + } + + $i = 0; + $count = 0; + $log_count = 0; + $log = ''; + foreach($clog as $action => $logrows) + { + $_action = 0; + foreach($logrows as $row) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($row); + $row['date'] = date("d.m.y H:i:s", $row['date']); + + if($_action != $action) + { + switch($action) + { + case USR_ACTION: + $_action = $lng['admin']['customer']; + break; + case RES_ACTION: + $_action = 'Reseller'; + break; + case ADM_ACTION: + $_action = 'Administrator'; + break; + case CRON_ACTION: + $_action = 'Cronjob'; + break; + case LOG_ERROR: + $_action = 'Internal'; + break; + default: + $_action = 'Unknown'; + break; + } + + $row['action'] = $_action; + eval("\$log.=\"" . getTemplate("logger/logger_action") . "\";"); + } + + $log_count++; + $type = $row['type']; + $_type = 'unknown'; + + switch($type) + { + case LOG_INFO: + $_type = 'Information'; + break; + case LOG_NOTICE: + $_type = 'Notice'; + break; + case LOG_WARNING: + $_type = 'Warning'; + break; + case LOG_ERR: + $_type = 'Error'; + break; + case LOG_CRIT: + $_type = 'Critical'; + break; + default: + $_type = 'Unknown'; + break; + } + + $row['type'] = $_type; + eval("\$log.=\"" . getTemplate("logger/logger_log") . "\";"); + $count++; + $_action = $action; + } + } + + $i++; + } + + eval("echo \"" . getTemplate("logger/logger") . "\";"); + } + elseif($action == 'truncate') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $yesterday = time() - (60 * 10); + + /* (60*60*24); */ + + $db->query("DELETE FROM `" . TABLE_PANEL_LOG . "` WHERE `date` < '" . $yesterday . "'"); + $log->logAction(ADM_ACTION, LOG_WARNING, "truncated the system-log (mysql)"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('logger_reallytruncate', $filename, array('page' => $page, 'action' => $action), TABLE_PANEL_LOG); + } + } +} + ?> \ No newline at end of file diff --git a/admin_settings.php b/admin_settings.php index 950f9cd1..74f11a12 100644 --- a/admin_settings.php +++ b/admin_settings.php @@ -1,159 +1,159 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: admin_settings.php 2733 2009-11-06 09:32:00Z flo $ - */ - -define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -$need_db_sql_data = true; -$need_root_db_sql_data = true; -require ("./lib/init.php"); - -if(($page == 'settings' || $page == 'overview') - && $userinfo['change_serversettings'] == '1') -{ - $settings_data = loadConfigArrayDir('./actions/admin/settings/'); - $settings = loadSettings(&$settings_data, &$db); - - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - if(processForm(&$settings_data, &$_POST, array('filename' => $filename, 'action' => $action, 'page' => $page))) - { - standard_success('settingssaved', '', array('filename' => $filename, 'action' => $action, 'page' => $page)); - } - } - else - { - $fields = buildForm(&$settings_data); - eval("echo \"" . getTemplate("settings/settings") . "\";"); - } -} -elseif($page == 'rebuildconfigs' - && $userinfo['change_serversettings'] == '1') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $log->logAction(ADM_ACTION, LOG_INFO, "rebuild configfiles"); - inserttask('1'); - inserttask('4'); - inserttask('5'); - redirectTo('admin_index.php', array('s' => $s)); - } - else - { - ask_yesno('admin_configs_reallyrebuild', $filename, array('page' => $page)); - } -} -elseif($page == 'updatecounters' - && $userinfo['change_serversettings'] == '1') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $log->logAction(ADM_ACTION, LOG_INFO, "updated resource-counters"); - $updatecounters = updateCounters(true); - $customers = ''; - foreach($updatecounters['customers'] as $customerid => $customer) - { - eval("\$customers.=\"" . getTemplate("settings/updatecounters_row_customer") . "\";"); - } - - $admins = ''; - foreach($updatecounters['admins'] as $adminid => $admin) - { - eval("\$admins.=\"" . getTemplate("settings/updatecounters_row_admin") . "\";"); - } - - eval("echo \"" . getTemplate("settings/updatecounters") . "\";"); - } - else - { - ask_yesno('admin_counters_reallyupdate', $filename, array('page' => $page)); - } -} -elseif($page == 'wipecleartextmailpws' - && $userinfo['change_serversettings'] == '1') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $log->logAction(ADM_ACTION, LOG_WARNING, "wiped all cleartext mail passwords"); - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `password`='' "); - $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value`='0' WHERE `settinggroup`='system' AND `varname`='mailpwcleartext'"); - redirectTo('admin_settings.php', array('s' => $s)); - } - else - { - ask_yesno('admin_cleartextmailpws_reallywipe', $filename, array('page' => $page)); - } -} -elseif($page == 'wipequotas' - && $userinfo['change_serversettings'] == '1') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $log->logAction(ADM_ACTION, LOG_WARNING, "wiped all mailquotas"); - - // Set the quota to 0 which means unlimited - - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='0' "); - $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = 0"); - redirectTo('admin_settings.php', array('s' => $s)); - } - else - { - ask_yesno('admin_quotas_reallywipe', $filename, array('page' => $page)); - } -} -elseif($page == 'enforcequotas' - && $userinfo['change_serversettings'] == '1') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - // Fetch all accounts - - $result = $db->query("SELECT `quota`, `customerid` FROM " . TABLE_MAIL_USERS); - - while($array = $db->fetch_array($result)) - { - $difference = $settings['system']['mail_quota'] - $array['quota']; - $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = `email_quota_used` + " . (int)$difference . " WHERE `customerid` = '" . $array['customerid'] . "'"); - } - - // Set the new quota - - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='" . $settings['system']['mail_quota'] . "'"); - - // Update the Customer, if the used quota is bigger than the allowed quota - - $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota` = `email_quota_used` WHERE `email_quota` < `email_quota_used`"); - $log->logAction(ADM_ACTION, LOG_WARNING, 'enforcing mailquota to all customers: ' . $settings['system']['mail_quota'] . ' MB'); - redirectTo('admin_settings.php', array('s' => $s)); - } - else - { - ask_yesno('admin_quotas_reallyenforce', $filename, array('page' => $page)); - } -} - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: admin_settings.php 2733 2009-11-06 09:32:00Z flo $ + */ + +define('AREA', 'admin'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +$need_db_sql_data = true; +$need_root_db_sql_data = true; +require ("./lib/init.php"); + +if(($page == 'settings' || $page == 'overview') + && $userinfo['change_serversettings'] == '1') +{ + $settings_data = loadConfigArrayDir('./actions/admin/settings/'); + $settings = loadSettings(&$settings_data, &$db); + + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + if(processForm(&$settings_data, &$_POST, array('filename' => $filename, 'action' => $action, 'page' => $page))) + { + standard_success('settingssaved', '', array('filename' => $filename, 'action' => $action, 'page' => $page)); + } + } + else + { + $fields = buildForm(&$settings_data); + eval("echo \"" . getTemplate("settings/settings") . "\";"); + } +} +elseif($page == 'rebuildconfigs' + && $userinfo['change_serversettings'] == '1') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $log->logAction(ADM_ACTION, LOG_INFO, "rebuild configfiles"); + inserttask('1'); + inserttask('4'); + inserttask('5'); + redirectTo('admin_index.php', array('s' => $s)); + } + else + { + ask_yesno('admin_configs_reallyrebuild', $filename, array('page' => $page)); + } +} +elseif($page == 'updatecounters' + && $userinfo['change_serversettings'] == '1') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $log->logAction(ADM_ACTION, LOG_INFO, "updated resource-counters"); + $updatecounters = updateCounters(true); + $customers = ''; + foreach($updatecounters['customers'] as $customerid => $customer) + { + eval("\$customers.=\"" . getTemplate("settings/updatecounters_row_customer") . "\";"); + } + + $admins = ''; + foreach($updatecounters['admins'] as $adminid => $admin) + { + eval("\$admins.=\"" . getTemplate("settings/updatecounters_row_admin") . "\";"); + } + + eval("echo \"" . getTemplate("settings/updatecounters") . "\";"); + } + else + { + ask_yesno('admin_counters_reallyupdate', $filename, array('page' => $page)); + } +} +elseif($page == 'wipecleartextmailpws' + && $userinfo['change_serversettings'] == '1') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $log->logAction(ADM_ACTION, LOG_WARNING, "wiped all cleartext mail passwords"); + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `password`='' "); + $db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value`='0' WHERE `settinggroup`='system' AND `varname`='mailpwcleartext'"); + redirectTo('admin_settings.php', array('s' => $s)); + } + else + { + ask_yesno('admin_cleartextmailpws_reallywipe', $filename, array('page' => $page)); + } +} +elseif($page == 'wipequotas' + && $userinfo['change_serversettings'] == '1') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $log->logAction(ADM_ACTION, LOG_WARNING, "wiped all mailquotas"); + + // Set the quota to 0 which means unlimited + + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='0' "); + $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = 0"); + redirectTo('admin_settings.php', array('s' => $s)); + } + else + { + ask_yesno('admin_quotas_reallywipe', $filename, array('page' => $page)); + } +} +elseif($page == 'enforcequotas' + && $userinfo['change_serversettings'] == '1') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + // Fetch all accounts + + $result = $db->query("SELECT `quota`, `customerid` FROM " . TABLE_MAIL_USERS); + + while($array = $db->fetch_array($result)) + { + $difference = $settings['system']['mail_quota'] - $array['quota']; + $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota_used` = `email_quota_used` + " . (int)$difference . " WHERE `customerid` = '" . $array['customerid'] . "'"); + } + + // Set the new quota + + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota`='" . $settings['system']['mail_quota'] . "'"); + + // Update the Customer, if the used quota is bigger than the allowed quota + + $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `email_quota` = `email_quota_used` WHERE `email_quota` < `email_quota_used`"); + $log->logAction(ADM_ACTION, LOG_WARNING, 'enforcing mailquota to all customers: ' . $settings['system']['mail_quota'] . ' MB'); + redirectTo('admin_settings.php', array('s' => $s)); + } + else + { + ask_yesno('admin_quotas_reallyenforce', $filename, array('page' => $page)); + } +} + ?> \ No newline at end of file diff --git a/admin_tickets.php b/admin_tickets.php index 47f4890d..0f2b2211 100644 --- a/admin_tickets.php +++ b/admin_tickets.php @@ -1,802 +1,802 @@ - - * @license http://www.gnu.org/licenses/gpl.txt - * @package Panel - * @version CVS: $Id: admin_tickets.php 2537 2008-12-12 15:30:38Z flo $ - * @link http://www.nutime.de/ - * @since File available since Release 1.2.18 - */ - -define('AREA', 'admin'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'tickets' - && $userinfo['customers'] != '0') -{ - if($action == '') - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets"); - $fields = array( - 'status' => $lng['ticket']['status'], - 'priority' => $lng['ticket']['priority'], - 'lastchange' => $lng['ticket']['lastchange'], - 'ticket_answers' => $lng['ticket']['ticket_answers'], - 'subject' => $lng['ticket']['subject'], - 'lastreplier' => $lng['ticket']['lastreplier'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_TICKETS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $paging->sortfield = 'lastchange'; - $paging->sortorder = 'desc'; - $result = $db->query('SELECT `main`.`id`, `main`.`customerid`, (SELECT COUNT(`sub`.`id`) FROM `' . TABLE_PANEL_TICKETS . '` `sub` WHERE `sub`.`answerto` = `main`.`id`) as `ticket_answers`, `main`.`lastchange`, `main`.`subject`, `main`.`status`, `main`.`lastreplier`, `main`.`priority` FROM `' . TABLE_PANEL_TICKETS . '` as `main` WHERE `main`.`answerto` = "0" AND `archived` = "0" AND `adminid` = "' . (int)$userinfo['adminid'] . '" ' . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $ctickets = array(); - - while($row = $db->fetch_array($result)) - { - if(!isset($ctickets[$row['customerid']]) - || !is_array($ctickets[$row['customerid']])) - { - $ctickets[$row['customerid']] = array(); - } - - $ctickets[$row['customerid']][$row['id']] = $row; - } - - if($paging->sortfield == 'customerid' - && $paging->sortorder == 'desc') - { - krsort($ctickets); - } - else - { - ksort($ctickets); - } - - $i = 0; - $count = 0; - $tickets_count = 0; - $tickets = ''; - foreach($ctickets as $cid => $ticketrows) - { - $_cid = 0; - foreach($ticketrows as $row) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($row); - $row['lastchange'] = date("d.m.y H:i", $row['lastchange']); - - if($_cid != $row['customerid']) - { - $cid = $row['customerid']; - $usr = $db->query_first('SELECT `firstname`, `name`, `loginname` FROM `' . TABLE_PANEL_CUSTOMERS . '` - WHERE `customerid` = "' . (int)$cid . '"'); - $customer = $usr['firstname'] . " " . $usr['name'] . " (" . $usr['loginname'] . ")"; - eval("\$tickets.=\"" . getTemplate("ticket/tickets_customer") . "\";"); - } - - $tickets_count++; - - if($row['status'] >= 0 - && $row['status'] <= 2) - { - $reopen = 0; - } - else - { - $reopen = 1; - } - - $row['status'] = ticket::getStatusText($lng, $row['status']); - $row['priority'] = ticket::getPriorityText($lng, $row['priority']); - - if($row['lastreplier'] == '1') - { - $row['lastreplier'] = $lng['ticket']['staff']; - $cananswer = 0; - } - else - { - $row['lastreplier'] = $lng['ticket']['customer']; - $cananswer = 1; - } - - if(strlen($row['subject']) > 20) - { - $row['subject'] = substr($row['subject'], 0, 17) . '...'; - } - - eval("\$tickets.=\"" . getTemplate("ticket/tickets_tickets") . "\";"); - $count++; - $_cid = $row['customerid']; - } - } - - $i++; - } - - eval("echo \"" . getTemplate("ticket/tickets") . "\";"); - } - elseif($action == 'new') - { - if($userinfo['tickets_used'] < $userinfo['tickets'] - || $userinfo['tickets'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $newticket = ticket::getInstanceOf($userinfo, $db, $settings, -1); - $newticket->Set('subject', validate($_POST['subject'], 'subject'), true, false); - $newticket->Set('priority', validate($_POST['priority'], 'priority'), true, false); - $newticket->Set('category', validate($_POST['category'], 'category'), true, false); - $newticket->Set('customer', validate($_POST['customer'], 'customer'), true, false); - $newticket->Set('message', validate(str_replace("\r\n", "\n", $_POST['message']), 'message', '/^[^\0]*$/'), true, false); - - if($newticket->Get('subject') == null) - { - standard_error(array('stringisempty', 'mysubject')); - } - elseif($newticket->Get('message') == null) - { - standard_error(array('stringisempty', 'mymessage')); - } - else - { - $now = time(); - $newticket->Set('admin', $userinfo['adminid'], true, true); - $newticket->Set('dt', $now, true, true); - $newticket->Set('lastchange', $now, true, true); - $newticket->Set('ip', $_SERVER['REMOTE_ADDR'], true, true); - $newticket->Set('status', '0', true, true); - $newticket->Set('lastreplier', '1', true, true); - $newticket->Set('by', '1', true, true); - $newticket->Insert(); - $newticket->sendMail((int)$newticket->Get('customer'), 'new_ticket_by_staff_subject', $lng['mails']['new_ticket_by_staff']['subject'], 'new_ticket_by_staff_mailbody', $lng['mails']['new_ticket_by_staff']['mailbody']); - $log->logAction(ADM_ACTION, LOG_NOTICE, "opened a new ticket for customer #" . $newticket->Get('customer') . " - '" . $newticket->Get('subject') . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $categories = ''; - $result = $db->query_first('SELECT `id`, `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `adminid` = "' . $userinfo['adminid'] . '" ORDER BY `name` ASC'); - - if(isset($result['name']) - && $result['name'] != '') - { - $result2 = $db->query('SELECT `id`, `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `adminid` = "' . $userinfo['adminid'] . '" ORDER BY `name` ASC'); - - while($row = $db->fetch_array($result2)) - { - $categories.= makeoption($row['name'], $row['id']); - } - } - else - { - $categories = makeoption($lng['ticket']['no_cat'], '0'); - } - - $customers = ''; - $result_customers = $db->query("SELECT `customerid`, `loginname`, `name`, `firstname`, `company` FROM `" . TABLE_PANEL_CUSTOMERS . "` " . ($userinfo['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int)$userinfo['adminid'] . "' ") . " ORDER BY `name` ASC"); - - while($row_customer = $db->fetch_array($result_customers)) - { - if($row_customer['company'] == '') - { - $customers.= makeoption($row_customer['name'] . ', ' . $row_customer['firstname'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); - } - else - { - if($row_customer['name'] != '' - && $row_customer['firstname'] != '') - { - $customers.= makeoption($row_customer['name'] . ', ' . $row_customer['firstname'] . ' | ' . $row_customer['company'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); - } - else - { - $customers.= makeoption($row_customer['company'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); - } - } - } - - $priorities = makeoption($lng['ticket']['unf_high'], '1'); - $priorities.= makeoption($lng['ticket']['unf_normal'], '2'); - $priorities.= makeoption($lng['ticket']['unf_low'], '3'); - eval("echo \"" . getTemplate("ticket/tickets_new") . "\";"); - } - } - else - { - standard_error('nomoreticketsavailable'); - } - } - elseif($action == 'answer' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $replyticket = ticket::getInstanceOf($userinfo, $db, $settings, -1); - $replyticket->Set('subject', validate($_POST['subject'], 'subject'), true, false); - $replyticket->Set('priority', validate($_POST['priority'], 'priority'), true, false); - $replyticket->Set('message', validate(str_replace("\r\n", "\n", $_POST['message']), 'message', '/^[^\0]*$/'), true, false); - - if($replyticket->Get('message') == null) - { - standard_error(array('stringisempty', 'mymessage')); - } - else - { - $now = time(); - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $replyticket->Set('customerid', $mainticket->Get('customer'), true, true); - $replyticket->Set('lastchange', $now, true, true); - $replyticket->Set('ip', $_SERVER['REMOTE_ADDR'], true, true); - $replyticket->Set('status', '1', true, true); - $replyticket->Set('answerto', (int)$id, true, false); - $replyticket->Set('by', '1', true, true); - $replyticket->Insert(); - - // Update priority if changed - - if($replyticket->Get('priority') != $mainticket->Get('priority')) - { - $mainticket->Set('priority', $replyticket->Get('priority'), true); - } - - $mainticket->Set('lastchange', $now); - $mainticket->Set('lastreplier', '1'); - $mainticket->Set('status', '2'); - $mainticket->Update(); - $mainticket->sendMail((int)$mainticket->Get('customer'), 'new_reply_ticket_by_staff_subject', $lng['mails']['new_reply_ticket_by_staff']['subject'], 'new_reply_ticket_by_staff_mailbody', $lng['mails']['new_reply_ticket_by_staff']['mailbody']); - $log->logAction(ADM_ACTION, LOG_NOTICE, "answered ticket '" . $mainticket->Get('subject') . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $ticket_replies = ''; - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); - $status = ticket::getStatusText($lng, $mainticket->Get('status')); - - if($mainticket->Get('status') >= 0 - && $mainticket->Get('status') <= 2) - { - $isclosed = 0; - } - else - { - $isclosed = 1; - } - - if($mainticket->Get('by') == '1') - { - $by = $lng['ticket']['staff']; - } - else - { - $by = $lng['ticket']['customer']; - } - - $subject = $mainticket->Get('subject'); - $message = $mainticket->Get('message'); - eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_main") . "\";"); - $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` - WHERE `id`="' . (int)$mainticket->Get('category') . '"'); - $row = $db->fetch_array($result); - $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` DESC'); - - while($row2 = $db->fetch_array($andere)) - { - $subticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row2['id']); - $lastchange = date("d.m.Y H:i\h", $subticket->Get('lastchange')); - - if($subticket->Get('by') == '1') - { - $by = $lng['ticket']['staff']; - } - else - { - $by = $lng['ticket']['customer']; - } - - $subject = $subticket->Get('subject'); - $message = $subticket->Get('message'); - eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_list") . "\";"); - } - - $priorities = makeoption($lng['ticket']['high'], '1', $mainticket->Get('priority'), true, true); - $priorities.= makeoption($lng['ticket']['normal'], '2', $mainticket->Get('priority'), true, true); - $priorities.= makeoption($lng['ticket']['low'], '3', $mainticket->Get('priority'), true, true); - $subject = $mainticket->Get('subject'); - $ticket_replies_count = $db->num_rows($andere) + 1; - - // don't forget the main-ticket! - - eval("echo \"" . getTemplate("ticket/tickets_reply") . "\";"); - } - } - elseif($action == 'close' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $now = time(); - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $mainticket->Set('lastchange', $now, true, true); - $mainticket->Set('lastreplier', '1', true, true); - $mainticket->Set('status', '3', true, true); - $mainticket->Update(); - $log->logAction(ADM_ACTION, LOG_NOTICE, "closed ticket '" . $mainticket->Get('subject') . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - ask_yesno('ticket_reallyclose', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); - } - } - elseif($action == 'reopen' - && $id != 0) - { - $now = time(); - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $mainticket->Set('lastchange', $now, true, true); - $mainticket->Set('lastreplier', '1', true, true); - $mainticket->Set('status', '0', true, true); - $mainticket->Update(); - $log->logAction(ADM_ACTION, LOG_NOTICE, "reopened ticket '" . $mainticket->Get('subject') . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - elseif($action == 'archive' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $now = time(); - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $mainticket->Set('lastchange', $now, true, true); - $mainticket->Set('lastreplier', '1', true, true); - $mainticket->Set('status', '3', true, true); - $mainticket->Update(); - $mainticket->Archive(); - $log->logAction(ADM_ACTION, LOG_NOTICE, "archived ticket '" . $mainticket->Get('subject') . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - ask_yesno('ticket_reallyarchive', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); - } - } - elseif($action == 'delete' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $log->logAction(ADM_ACTION, LOG_INFO, "deleted ticket '" . $mainticket->Get('subject') . "'"); - $mainticket->Delete(); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - ask_yesno('ticket_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); - } - } -} -elseif($page == 'categories' - && $userinfo['customers'] != '0') -{ - if($action == '') - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets::categories"); - $fields = array( - 'name' => $lng['ticket']['category'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_TICKET_CATS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `main`.`id`, `main`.`name`, ( - SELECT COUNT(`sub`.`id`) FROM `" . TABLE_PANEL_TICKETS . "` `sub` - WHERE `sub`.`category` = `main`.`id` - AND `sub`.`answerto` = '0' AND `sub`.`adminid` = '" . $userinfo['adminid'] . "') - as `ticketcount`, ( - SELECT COUNT(`sub2`.`id`) FROM `" . TABLE_PANEL_TICKETS . "` `sub2` - WHERE `sub2`.`category` = `main`.`id` - AND `sub2`.`answerto` = '0' - AND (`sub2`.`status` = '0' OR `sub2`.`status` = '1' OR `sub2`.`status` = '2') - AND `sub2`.`adminid` = '" . $userinfo['adminid'] . "' - ) as `ticketcountnotclosed` - FROM `" . TABLE_PANEL_TICKET_CATS . "` `main` WHERE `main`.`adminid` = '" . (int)$userinfo['adminid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - $ticketcategories = ''; - $categories_count = $db->num_rows($result); - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($row); - $closedtickets_count = ($row['ticketcount'] - $row['ticketcountnotclosed']); - eval("\$ticketcategories.=\"" . getTemplate("ticket/tickets_categories") . "\";"); - $count++; - } - - $i++; - } - - eval("echo \"" . getTemplate("ticket/categories") . "\";"); - } - elseif($action == 'addcategory') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $category = validate($_POST['category'], 'category'); - - if($category == '') - { - standard_error(array('stringisempty', 'mycategory')); - } - else - { - ticket::addCategory($db, $category, $userinfo['adminid']); - $log->logAction(ADM_ACTION, LOG_INFO, "added ticket-category '" . $category . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - eval("echo \"" . getTemplate("ticket/tickets_newcategory") . "\";"); - } - } - elseif($action == 'editcategory' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $category = validate($_POST['category'], 'category'); - - if($category == '') - { - standard_error(array('stringisempty', 'mycategory')); - } - else - { - ticket::editCategory($db, $category, $id); - $log->logAction(ADM_ACTION, LOG_INFO, "edited ticket-category '" . $category . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $row = $db->query_first('SELECT * FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `id` = "' . (int)$id . '"'); - eval("echo \"" . getTemplate("ticket/tickets_editcategory") . "\";"); - } - } - elseif($action == 'deletecategory' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - if(ticket::deleteCategory($db, $id) == false) - { - standard_error('categoryhastickets'); - } - - $log->logAction(ADM_ACTION, LOG_INFO, "deleted ticket-category #" . $id); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - $name = ticket::getCategoryName($db, $id); - ask_yesno('ticket_reallydeletecat', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $name); - } - } -} -elseif($page == 'archive' - && $userinfo['customers'] != '0') -{ - if($action == '') - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets::archive"); - - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $priority = array(); - $categories = array(); - $subject = validate($_POST['subject'], 'subject'); - $priority[0] = isset($_POST['priority1']) ? $_POST['priority1'] : ''; - $priority[1] = isset($_POST['priority2']) ? $_POST['priority2'] : ''; - $priority[2] = isset($_POST['priority3']) ? $_POST['priority3'] : ''; - $fromdate = validate($_POST['fromdate'], 'fromdate'); - $todate = validate($_POST['todate'], 'todate'); - $message = validate($_POST['message'], 'message'); - $customer = validate($_POST['customer'], 'customer'); - $cat = $db->query_first('SELECT COUNT(`id`) as `ccount` FROM `' . TABLE_PANEL_TICKET_CATS . '`'); - for ($x = 0;$x < $cat['ccount'];$x++) - { - $categories[$x] = isset($_POST['category' . $x]) ? $_POST['category' . $x] : ''; - } - - $query = ticket::getArchiveSearchStatement($subject, $priority, $fromdate, $todate, $message, $customer, $userinfo['adminid'], $categories); - $fields = array( - 'lastchange' => $lng['ticket']['lastchange'], - 'ticket_answers' => $lng['ticket']['ticket_answers'], - 'subject' => $lng['ticket']['subject'], - 'lastreplier' => $lng['ticket']['lastreplier'], - 'priority' => $lng['ticket']['priority'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_TICKETS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query($query . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $ctickets = array(); - - while($row = $db->fetch_array($result)) - { - if(!isset($ctickets[$row['customerid']]) - || !is_array($ctickets[$row['customerid']])) - { - $ctickets[$row['customerid']] = array(); - } - - $ctickets[$row['customerid']][$row['id']] = $row; - } - - if($paging->sortfield == 'customerid' - && $paging->sortorder == 'desc') - { - krsort($ctickets); - } - else - { - ksort($ctickets); - } - - $i = 0; - $count = 0; - $tickets_count = 0; - $tickets = ''; - foreach($ctickets as $cid => $ticketrows) - { - if($paging->sortfield == 'lastchange' - && $paging->sortorder == 'desc') - { - krsort($ticketrows); - } - else - { - ksort($ticketrows); - } - - $_cid = 0; - foreach($ticketrows as $ticket) - { - if($paging->checkDisplay($i)) - { - $ticket = htmlentities_array($ticket); - $ticket['lastchange'] = date("d.m.y H:i", $ticket['lastchange']); - - if($_cid != $ticket['customerid']) - { - $cid = $ticket['customerid']; - $usr = $db->query_first('SELECT `firstname`, `name`, `loginname` FROM `' . TABLE_PANEL_CUSTOMERS . '` - WHERE `customerid` = "' . (int)$cid . '"'); - $customer = $usr['firstname'] . " " . $usr['name'] . " (" . $usr['loginname'] . ")"; - eval("\$tickets.=\"" . getTemplate("ticket/tickets_customer") . "\";"); - } - - $tickets_count++; - $ticket['priority'] = ticket::getPriorityText($lng, $ticket['priority']); - - if($ticket['lastreplier'] == '1') - { - $ticket['lastreplier'] = $lng['ticket']['staff']; - } - else - { - $ticket['lastreplier'] = $lng['ticket']['customer']; - } - - if(strlen($ticket['subject']) > 20) - { - $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; - } - - eval("\$tickets.=\"" . getTemplate("ticket/archived_tickets") . "\";"); - $count++; - $_cid = $ticket['customerid']; - } - } - - $i++; - } - - eval("echo \"" . getTemplate("ticket/archivesearch") . "\";"); - } - else - { - $archived = array(); - $archived = ticket::getLastArchived($db, 6, $userinfo['adminid']); - $tickets = ''; - - if($archived !== false) - { - foreach($archived as $id => $ticket) - { - $ticket['lastchange'] = date("d.m.y H:i", $ticket['lastchange']); - $ticket['priority'] = ticket::getPriorityText($lng, $ticket['priority']); - - if($ticket['lastreplier'] == '1') - { - $ticket['lastreplier'] = $lng['ticket']['staff']; - } - else - { - $ticket['lastreplier'] = $lng['ticket']['customer']; - } - - if(strlen($ticket['subject']) > 20) - { - $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; - } - - eval("\$tickets.=\"" . getTemplate("ticket/archived_tickets") . "\";"); - } - } - - $priorities_options = makecheckbox('priority1', $lng['ticket']['unf_high'], '1'); - $priorities_options.= makecheckbox('priority2', $lng['ticket']['unf_normal'], '2'); - $priorities_options.= makecheckbox('priority3', $lng['ticket']['unf_low'], '3'); - $category_options = ''; - $ccount = 0; - $result = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKET_CATS . '` ORDER BY `name` ASC'); - - while($row = $db->fetch_array($result)) - { - $category_options.= makecheckbox('category' . $ccount, $row['name'], $row['id'], true); - $ccount++; - } - - $customers = makeoption($lng['ticket']['nocustomer'], '-1', '-1'); - $result = $db->query_first('SELECT `customerid` FROM `' . TABLE_PANEL_CUSTOMERS . '` ' . ($userinfo['customers_see_all'] ? '' : ' WHERE `adminid` = "' . (int)$userinfo['adminid'] . '" ') . 'ORDER BY `name` ASC'); - - if(isset($result['customerid']) - && $result['customerid'] != '') - { - $result2 = $db->query('SELECT `customerid`, `loginname`, `firstname`, `name` - FROM `' . TABLE_PANEL_CUSTOMERS . '` ' . ($userinfo['customers_see_all'] ? '' : ' WHERE `adminid` = "' . (int)$userinfo['adminid'] . '" ') . ' ORDER BY `name` ASC'); - - while($row = $db->fetch_array($result2)) - { - $customers.= makeoption($row['name'] . ', ' . $row['firstname'] . ' (' . $row['loginname'] . ')', $row['customerid']); - } - } - - eval("echo \"" . getTemplate("ticket/archive") . "\";"); - } - } - elseif($action == 'view' - && $id != 0) - { - $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed archived-ticket #" . $id); - $ticket_replies = ''; - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); - $status = ticket::getStatusText($lng, $mainticket->Get('status')); - $isclosed = 1; - - if($mainticket->Get('by') == '1') - { - $by = $lng['ticket']['staff']; - } - else - { - $by = $lng['ticket']['customer']; - } - - $subject = $mainticket->Get('subject'); - $message = $mainticket->Get('message'); - eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_main") . "\";"); - $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` - WHERE `id`="' . (int)$mainticket->Get('category') . '"'); - $row = $db->fetch_array($result); - $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '"'); - - while($row2 = $db->fetch_array($andere)) - { - $subticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row2['id']); - $lastchange = date("d.m.Y H:i\h", $subticket->Get('lastchange')); - - if($subticket->Get('by') == '1') - { - $by = $lng['ticket']['staff']; - } - else - { - $by = $lng['ticket']['customer']; - } - - $subject = $subticket->Get('subject'); - $message = $subticket->Get('message'); - eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_list") . "\";"); - } - - $priorities = makeoption($lng['ticket']['high'], '1', $mainticket->Get('priority'), true, true); - $priorities.= makeoption($lng['ticket']['normal'], '2', $mainticket->Get('priority'), true, true); - $priorities.= makeoption($lng['ticket']['low'], '3', $mainticket->Get('priority'), true, true); - $subject = $mainticket->Get('subject'); - $ticket_replies_count = $db->num_rows($andere) + 1; - - // don't forget the main-ticket! - - eval("echo \"" . getTemplate("ticket/tickets_view") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - $log->logAction(ADM_ACTION, LOG_INFO, "deleted archived ticket '" . $mainticket->Get('subject') . "'"); - $mainticket->Delete(); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); - ask_yesno('ticket_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); - } - } -} - -?> + + * @license http://www.gnu.org/licenses/gpl.txt + * @package Panel + * @version CVS: $Id: admin_tickets.php 2537 2008-12-12 15:30:38Z flo $ + * @link http://www.nutime.de/ + * @since File available since Release 1.2.18 + */ + +define('AREA', 'admin'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'tickets' + && $userinfo['customers'] != '0') +{ + if($action == '') + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets"); + $fields = array( + 'status' => $lng['ticket']['status'], + 'priority' => $lng['ticket']['priority'], + 'lastchange' => $lng['ticket']['lastchange'], + 'ticket_answers' => $lng['ticket']['ticket_answers'], + 'subject' => $lng['ticket']['subject'], + 'lastreplier' => $lng['ticket']['lastreplier'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_TICKETS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $paging->sortfield = 'lastchange'; + $paging->sortorder = 'desc'; + $result = $db->query('SELECT `main`.`id`, `main`.`customerid`, (SELECT COUNT(`sub`.`id`) FROM `' . TABLE_PANEL_TICKETS . '` `sub` WHERE `sub`.`answerto` = `main`.`id`) as `ticket_answers`, `main`.`lastchange`, `main`.`subject`, `main`.`status`, `main`.`lastreplier`, `main`.`priority` FROM `' . TABLE_PANEL_TICKETS . '` as `main` WHERE `main`.`answerto` = "0" AND `archived` = "0" AND `adminid` = "' . (int)$userinfo['adminid'] . '" ' . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $ctickets = array(); + + while($row = $db->fetch_array($result)) + { + if(!isset($ctickets[$row['customerid']]) + || !is_array($ctickets[$row['customerid']])) + { + $ctickets[$row['customerid']] = array(); + } + + $ctickets[$row['customerid']][$row['id']] = $row; + } + + if($paging->sortfield == 'customerid' + && $paging->sortorder == 'desc') + { + krsort($ctickets); + } + else + { + ksort($ctickets); + } + + $i = 0; + $count = 0; + $tickets_count = 0; + $tickets = ''; + foreach($ctickets as $cid => $ticketrows) + { + $_cid = 0; + foreach($ticketrows as $row) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($row); + $row['lastchange'] = date("d.m.y H:i", $row['lastchange']); + + if($_cid != $row['customerid']) + { + $cid = $row['customerid']; + $usr = $db->query_first('SELECT `firstname`, `name`, `loginname` FROM `' . TABLE_PANEL_CUSTOMERS . '` + WHERE `customerid` = "' . (int)$cid . '"'); + $customer = $usr['firstname'] . " " . $usr['name'] . " (" . $usr['loginname'] . ")"; + eval("\$tickets.=\"" . getTemplate("ticket/tickets_customer") . "\";"); + } + + $tickets_count++; + + if($row['status'] >= 0 + && $row['status'] <= 2) + { + $reopen = 0; + } + else + { + $reopen = 1; + } + + $row['status'] = ticket::getStatusText($lng, $row['status']); + $row['priority'] = ticket::getPriorityText($lng, $row['priority']); + + if($row['lastreplier'] == '1') + { + $row['lastreplier'] = $lng['ticket']['staff']; + $cananswer = 0; + } + else + { + $row['lastreplier'] = $lng['ticket']['customer']; + $cananswer = 1; + } + + if(strlen($row['subject']) > 20) + { + $row['subject'] = substr($row['subject'], 0, 17) . '...'; + } + + eval("\$tickets.=\"" . getTemplate("ticket/tickets_tickets") . "\";"); + $count++; + $_cid = $row['customerid']; + } + } + + $i++; + } + + eval("echo \"" . getTemplate("ticket/tickets") . "\";"); + } + elseif($action == 'new') + { + if($userinfo['tickets_used'] < $userinfo['tickets'] + || $userinfo['tickets'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $newticket = ticket::getInstanceOf($userinfo, $db, $settings, -1); + $newticket->Set('subject', validate($_POST['subject'], 'subject'), true, false); + $newticket->Set('priority', validate($_POST['priority'], 'priority'), true, false); + $newticket->Set('category', validate($_POST['category'], 'category'), true, false); + $newticket->Set('customer', validate($_POST['customer'], 'customer'), true, false); + $newticket->Set('message', validate(str_replace("\r\n", "\n", $_POST['message']), 'message', '/^[^\0]*$/'), true, false); + + if($newticket->Get('subject') == null) + { + standard_error(array('stringisempty', 'mysubject')); + } + elseif($newticket->Get('message') == null) + { + standard_error(array('stringisempty', 'mymessage')); + } + else + { + $now = time(); + $newticket->Set('admin', $userinfo['adminid'], true, true); + $newticket->Set('dt', $now, true, true); + $newticket->Set('lastchange', $now, true, true); + $newticket->Set('ip', $_SERVER['REMOTE_ADDR'], true, true); + $newticket->Set('status', '0', true, true); + $newticket->Set('lastreplier', '1', true, true); + $newticket->Set('by', '1', true, true); + $newticket->Insert(); + $newticket->sendMail((int)$newticket->Get('customer'), 'new_ticket_by_staff_subject', $lng['mails']['new_ticket_by_staff']['subject'], 'new_ticket_by_staff_mailbody', $lng['mails']['new_ticket_by_staff']['mailbody']); + $log->logAction(ADM_ACTION, LOG_NOTICE, "opened a new ticket for customer #" . $newticket->Get('customer') . " - '" . $newticket->Get('subject') . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $categories = ''; + $result = $db->query_first('SELECT `id`, `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `adminid` = "' . $userinfo['adminid'] . '" ORDER BY `name` ASC'); + + if(isset($result['name']) + && $result['name'] != '') + { + $result2 = $db->query('SELECT `id`, `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `adminid` = "' . $userinfo['adminid'] . '" ORDER BY `name` ASC'); + + while($row = $db->fetch_array($result2)) + { + $categories.= makeoption($row['name'], $row['id']); + } + } + else + { + $categories = makeoption($lng['ticket']['no_cat'], '0'); + } + + $customers = ''; + $result_customers = $db->query("SELECT `customerid`, `loginname`, `name`, `firstname`, `company` FROM `" . TABLE_PANEL_CUSTOMERS . "` " . ($userinfo['customers_see_all'] ? '' : " WHERE `adminid` = '" . (int)$userinfo['adminid'] . "' ") . " ORDER BY `name` ASC"); + + while($row_customer = $db->fetch_array($result_customers)) + { + if($row_customer['company'] == '') + { + $customers.= makeoption($row_customer['name'] . ', ' . $row_customer['firstname'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); + } + else + { + if($row_customer['name'] != '' + && $row_customer['firstname'] != '') + { + $customers.= makeoption($row_customer['name'] . ', ' . $row_customer['firstname'] . ' | ' . $row_customer['company'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); + } + else + { + $customers.= makeoption($row_customer['company'] . ' (' . $row_customer['loginname'] . ')', $row_customer['customerid']); + } + } + } + + $priorities = makeoption($lng['ticket']['unf_high'], '1'); + $priorities.= makeoption($lng['ticket']['unf_normal'], '2'); + $priorities.= makeoption($lng['ticket']['unf_low'], '3'); + eval("echo \"" . getTemplate("ticket/tickets_new") . "\";"); + } + } + else + { + standard_error('nomoreticketsavailable'); + } + } + elseif($action == 'answer' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $replyticket = ticket::getInstanceOf($userinfo, $db, $settings, -1); + $replyticket->Set('subject', validate($_POST['subject'], 'subject'), true, false); + $replyticket->Set('priority', validate($_POST['priority'], 'priority'), true, false); + $replyticket->Set('message', validate(str_replace("\r\n", "\n", $_POST['message']), 'message', '/^[^\0]*$/'), true, false); + + if($replyticket->Get('message') == null) + { + standard_error(array('stringisempty', 'mymessage')); + } + else + { + $now = time(); + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $replyticket->Set('customerid', $mainticket->Get('customer'), true, true); + $replyticket->Set('lastchange', $now, true, true); + $replyticket->Set('ip', $_SERVER['REMOTE_ADDR'], true, true); + $replyticket->Set('status', '1', true, true); + $replyticket->Set('answerto', (int)$id, true, false); + $replyticket->Set('by', '1', true, true); + $replyticket->Insert(); + + // Update priority if changed + + if($replyticket->Get('priority') != $mainticket->Get('priority')) + { + $mainticket->Set('priority', $replyticket->Get('priority'), true); + } + + $mainticket->Set('lastchange', $now); + $mainticket->Set('lastreplier', '1'); + $mainticket->Set('status', '2'); + $mainticket->Update(); + $mainticket->sendMail((int)$mainticket->Get('customer'), 'new_reply_ticket_by_staff_subject', $lng['mails']['new_reply_ticket_by_staff']['subject'], 'new_reply_ticket_by_staff_mailbody', $lng['mails']['new_reply_ticket_by_staff']['mailbody']); + $log->logAction(ADM_ACTION, LOG_NOTICE, "answered ticket '" . $mainticket->Get('subject') . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $ticket_replies = ''; + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); + $status = ticket::getStatusText($lng, $mainticket->Get('status')); + + if($mainticket->Get('status') >= 0 + && $mainticket->Get('status') <= 2) + { + $isclosed = 0; + } + else + { + $isclosed = 1; + } + + if($mainticket->Get('by') == '1') + { + $by = $lng['ticket']['staff']; + } + else + { + $by = $lng['ticket']['customer']; + } + + $subject = $mainticket->Get('subject'); + $message = $mainticket->Get('message'); + eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_main") . "\";"); + $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` + WHERE `id`="' . (int)$mainticket->Get('category') . '"'); + $row = $db->fetch_array($result); + $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '" ORDER BY `lastchange` DESC'); + + while($row2 = $db->fetch_array($andere)) + { + $subticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row2['id']); + $lastchange = date("d.m.Y H:i\h", $subticket->Get('lastchange')); + + if($subticket->Get('by') == '1') + { + $by = $lng['ticket']['staff']; + } + else + { + $by = $lng['ticket']['customer']; + } + + $subject = $subticket->Get('subject'); + $message = $subticket->Get('message'); + eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_list") . "\";"); + } + + $priorities = makeoption($lng['ticket']['high'], '1', $mainticket->Get('priority'), true, true); + $priorities.= makeoption($lng['ticket']['normal'], '2', $mainticket->Get('priority'), true, true); + $priorities.= makeoption($lng['ticket']['low'], '3', $mainticket->Get('priority'), true, true); + $subject = $mainticket->Get('subject'); + $ticket_replies_count = $db->num_rows($andere) + 1; + + // don't forget the main-ticket! + + eval("echo \"" . getTemplate("ticket/tickets_reply") . "\";"); + } + } + elseif($action == 'close' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $now = time(); + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $mainticket->Set('lastchange', $now, true, true); + $mainticket->Set('lastreplier', '1', true, true); + $mainticket->Set('status', '3', true, true); + $mainticket->Update(); + $log->logAction(ADM_ACTION, LOG_NOTICE, "closed ticket '" . $mainticket->Get('subject') . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + ask_yesno('ticket_reallyclose', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); + } + } + elseif($action == 'reopen' + && $id != 0) + { + $now = time(); + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $mainticket->Set('lastchange', $now, true, true); + $mainticket->Set('lastreplier', '1', true, true); + $mainticket->Set('status', '0', true, true); + $mainticket->Update(); + $log->logAction(ADM_ACTION, LOG_NOTICE, "reopened ticket '" . $mainticket->Get('subject') . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + elseif($action == 'archive' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $now = time(); + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $mainticket->Set('lastchange', $now, true, true); + $mainticket->Set('lastreplier', '1', true, true); + $mainticket->Set('status', '3', true, true); + $mainticket->Update(); + $mainticket->Archive(); + $log->logAction(ADM_ACTION, LOG_NOTICE, "archived ticket '" . $mainticket->Get('subject') . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + ask_yesno('ticket_reallyarchive', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); + } + } + elseif($action == 'delete' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $log->logAction(ADM_ACTION, LOG_INFO, "deleted ticket '" . $mainticket->Get('subject') . "'"); + $mainticket->Delete(); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + ask_yesno('ticket_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); + } + } +} +elseif($page == 'categories' + && $userinfo['customers'] != '0') +{ + if($action == '') + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets::categories"); + $fields = array( + 'name' => $lng['ticket']['category'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_TICKET_CATS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `main`.`id`, `main`.`name`, ( + SELECT COUNT(`sub`.`id`) FROM `" . TABLE_PANEL_TICKETS . "` `sub` + WHERE `sub`.`category` = `main`.`id` + AND `sub`.`answerto` = '0' AND `sub`.`adminid` = '" . $userinfo['adminid'] . "') + as `ticketcount`, ( + SELECT COUNT(`sub2`.`id`) FROM `" . TABLE_PANEL_TICKETS . "` `sub2` + WHERE `sub2`.`category` = `main`.`id` + AND `sub2`.`answerto` = '0' + AND (`sub2`.`status` = '0' OR `sub2`.`status` = '1' OR `sub2`.`status` = '2') + AND `sub2`.`adminid` = '" . $userinfo['adminid'] . "' + ) as `ticketcountnotclosed` + FROM `" . TABLE_PANEL_TICKET_CATS . "` `main` WHERE `main`.`adminid` = '" . (int)$userinfo['adminid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + $ticketcategories = ''; + $categories_count = $db->num_rows($result); + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($row); + $closedtickets_count = ($row['ticketcount'] - $row['ticketcountnotclosed']); + eval("\$ticketcategories.=\"" . getTemplate("ticket/tickets_categories") . "\";"); + $count++; + } + + $i++; + } + + eval("echo \"" . getTemplate("ticket/categories") . "\";"); + } + elseif($action == 'addcategory') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $category = validate($_POST['category'], 'category'); + + if($category == '') + { + standard_error(array('stringisempty', 'mycategory')); + } + else + { + ticket::addCategory($db, $category, $userinfo['adminid']); + $log->logAction(ADM_ACTION, LOG_INFO, "added ticket-category '" . $category . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + eval("echo \"" . getTemplate("ticket/tickets_newcategory") . "\";"); + } + } + elseif($action == 'editcategory' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $category = validate($_POST['category'], 'category'); + + if($category == '') + { + standard_error(array('stringisempty', 'mycategory')); + } + else + { + ticket::editCategory($db, $category, $id); + $log->logAction(ADM_ACTION, LOG_INFO, "edited ticket-category '" . $category . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $row = $db->query_first('SELECT * FROM `' . TABLE_PANEL_TICKET_CATS . '` WHERE `id` = "' . (int)$id . '"'); + eval("echo \"" . getTemplate("ticket/tickets_editcategory") . "\";"); + } + } + elseif($action == 'deletecategory' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + if(ticket::deleteCategory($db, $id) == false) + { + standard_error('categoryhastickets'); + } + + $log->logAction(ADM_ACTION, LOG_INFO, "deleted ticket-category #" . $id); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + $name = ticket::getCategoryName($db, $id); + ask_yesno('ticket_reallydeletecat', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $name); + } + } +} +elseif($page == 'archive' + && $userinfo['customers'] != '0') +{ + if($action == '') + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_tickets::archive"); + + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $priority = array(); + $categories = array(); + $subject = validate($_POST['subject'], 'subject'); + $priority[0] = isset($_POST['priority1']) ? $_POST['priority1'] : ''; + $priority[1] = isset($_POST['priority2']) ? $_POST['priority2'] : ''; + $priority[2] = isset($_POST['priority3']) ? $_POST['priority3'] : ''; + $fromdate = validate($_POST['fromdate'], 'fromdate'); + $todate = validate($_POST['todate'], 'todate'); + $message = validate($_POST['message'], 'message'); + $customer = validate($_POST['customer'], 'customer'); + $cat = $db->query_first('SELECT COUNT(`id`) as `ccount` FROM `' . TABLE_PANEL_TICKET_CATS . '`'); + for ($x = 0;$x < $cat['ccount'];$x++) + { + $categories[$x] = isset($_POST['category' . $x]) ? $_POST['category' . $x] : ''; + } + + $query = ticket::getArchiveSearchStatement($subject, $priority, $fromdate, $todate, $message, $customer, $userinfo['adminid'], $categories); + $fields = array( + 'lastchange' => $lng['ticket']['lastchange'], + 'ticket_answers' => $lng['ticket']['ticket_answers'], + 'subject' => $lng['ticket']['subject'], + 'lastreplier' => $lng['ticket']['lastreplier'], + 'priority' => $lng['ticket']['priority'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_TICKETS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query($query . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $ctickets = array(); + + while($row = $db->fetch_array($result)) + { + if(!isset($ctickets[$row['customerid']]) + || !is_array($ctickets[$row['customerid']])) + { + $ctickets[$row['customerid']] = array(); + } + + $ctickets[$row['customerid']][$row['id']] = $row; + } + + if($paging->sortfield == 'customerid' + && $paging->sortorder == 'desc') + { + krsort($ctickets); + } + else + { + ksort($ctickets); + } + + $i = 0; + $count = 0; + $tickets_count = 0; + $tickets = ''; + foreach($ctickets as $cid => $ticketrows) + { + if($paging->sortfield == 'lastchange' + && $paging->sortorder == 'desc') + { + krsort($ticketrows); + } + else + { + ksort($ticketrows); + } + + $_cid = 0; + foreach($ticketrows as $ticket) + { + if($paging->checkDisplay($i)) + { + $ticket = htmlentities_array($ticket); + $ticket['lastchange'] = date("d.m.y H:i", $ticket['lastchange']); + + if($_cid != $ticket['customerid']) + { + $cid = $ticket['customerid']; + $usr = $db->query_first('SELECT `firstname`, `name`, `loginname` FROM `' . TABLE_PANEL_CUSTOMERS . '` + WHERE `customerid` = "' . (int)$cid . '"'); + $customer = $usr['firstname'] . " " . $usr['name'] . " (" . $usr['loginname'] . ")"; + eval("\$tickets.=\"" . getTemplate("ticket/tickets_customer") . "\";"); + } + + $tickets_count++; + $ticket['priority'] = ticket::getPriorityText($lng, $ticket['priority']); + + if($ticket['lastreplier'] == '1') + { + $ticket['lastreplier'] = $lng['ticket']['staff']; + } + else + { + $ticket['lastreplier'] = $lng['ticket']['customer']; + } + + if(strlen($ticket['subject']) > 20) + { + $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; + } + + eval("\$tickets.=\"" . getTemplate("ticket/archived_tickets") . "\";"); + $count++; + $_cid = $ticket['customerid']; + } + } + + $i++; + } + + eval("echo \"" . getTemplate("ticket/archivesearch") . "\";"); + } + else + { + $archived = array(); + $archived = ticket::getLastArchived($db, 6, $userinfo['adminid']); + $tickets = ''; + + if($archived !== false) + { + foreach($archived as $id => $ticket) + { + $ticket['lastchange'] = date("d.m.y H:i", $ticket['lastchange']); + $ticket['priority'] = ticket::getPriorityText($lng, $ticket['priority']); + + if($ticket['lastreplier'] == '1') + { + $ticket['lastreplier'] = $lng['ticket']['staff']; + } + else + { + $ticket['lastreplier'] = $lng['ticket']['customer']; + } + + if(strlen($ticket['subject']) > 20) + { + $ticket['subject'] = substr($ticket['subject'], 0, 17) . '...'; + } + + eval("\$tickets.=\"" . getTemplate("ticket/archived_tickets") . "\";"); + } + } + + $priorities_options = makecheckbox('priority1', $lng['ticket']['unf_high'], '1'); + $priorities_options.= makecheckbox('priority2', $lng['ticket']['unf_normal'], '2'); + $priorities_options.= makecheckbox('priority3', $lng['ticket']['unf_low'], '3'); + $category_options = ''; + $ccount = 0; + $result = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKET_CATS . '` ORDER BY `name` ASC'); + + while($row = $db->fetch_array($result)) + { + $category_options.= makecheckbox('category' . $ccount, $row['name'], $row['id'], true); + $ccount++; + } + + $customers = makeoption($lng['ticket']['nocustomer'], '-1', '-1'); + $result = $db->query_first('SELECT `customerid` FROM `' . TABLE_PANEL_CUSTOMERS . '` ' . ($userinfo['customers_see_all'] ? '' : ' WHERE `adminid` = "' . (int)$userinfo['adminid'] . '" ') . 'ORDER BY `name` ASC'); + + if(isset($result['customerid']) + && $result['customerid'] != '') + { + $result2 = $db->query('SELECT `customerid`, `loginname`, `firstname`, `name` + FROM `' . TABLE_PANEL_CUSTOMERS . '` ' . ($userinfo['customers_see_all'] ? '' : ' WHERE `adminid` = "' . (int)$userinfo['adminid'] . '" ') . ' ORDER BY `name` ASC'); + + while($row = $db->fetch_array($result2)) + { + $customers.= makeoption($row['name'] . ', ' . $row['firstname'] . ' (' . $row['loginname'] . ')', $row['customerid']); + } + } + + eval("echo \"" . getTemplate("ticket/archive") . "\";"); + } + } + elseif($action == 'view' + && $id != 0) + { + $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed archived-ticket #" . $id); + $ticket_replies = ''; + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $lastchange = date("d.m.Y H:i\h", $mainticket->Get('lastchange')); + $status = ticket::getStatusText($lng, $mainticket->Get('status')); + $isclosed = 1; + + if($mainticket->Get('by') == '1') + { + $by = $lng['ticket']['staff']; + } + else + { + $by = $lng['ticket']['customer']; + } + + $subject = $mainticket->Get('subject'); + $message = $mainticket->Get('message'); + eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_main") . "\";"); + $result = $db->query('SELECT `name` FROM `' . TABLE_PANEL_TICKET_CATS . '` + WHERE `id`="' . (int)$mainticket->Get('category') . '"'); + $row = $db->fetch_array($result); + $andere = $db->query('SELECT * FROM `' . TABLE_PANEL_TICKETS . '` WHERE `answerto`="' . (int)$id . '"'); + + while($row2 = $db->fetch_array($andere)) + { + $subticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row2['id']); + $lastchange = date("d.m.Y H:i\h", $subticket->Get('lastchange')); + + if($subticket->Get('by') == '1') + { + $by = $lng['ticket']['staff']; + } + else + { + $by = $lng['ticket']['customer']; + } + + $subject = $subticket->Get('subject'); + $message = $subticket->Get('message'); + eval("\$ticket_replies.=\"" . getTemplate("ticket/tickets_tickets_list") . "\";"); + } + + $priorities = makeoption($lng['ticket']['high'], '1', $mainticket->Get('priority'), true, true); + $priorities.= makeoption($lng['ticket']['normal'], '2', $mainticket->Get('priority'), true, true); + $priorities.= makeoption($lng['ticket']['low'], '3', $mainticket->Get('priority'), true, true); + $subject = $mainticket->Get('subject'); + $ticket_replies_count = $db->num_rows($andere) + 1; + + // don't forget the main-ticket! + + eval("echo \"" . getTemplate("ticket/tickets_view") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + $log->logAction(ADM_ACTION, LOG_INFO, "deleted archived ticket '" . $mainticket->Get('subject') . "'"); + $mainticket->Delete(); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$id); + ask_yesno('ticket_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $mainticket->Get('subject')); + } + } +} + +?> diff --git a/customer_domains.php b/customer_domains.php index 956c192b..1844445f 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -1,492 +1,492 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: customer_domains.php 2713 2009-04-17 08:55:53Z flo $ - */ - -define('AREA', 'customer'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'overview') -{ - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains"); - eval("echo \"" . getTemplate("domains/domains") . "\";"); -} -elseif($page == 'domains') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains"); - $fields = array( - 'd.domain' => $lng['domains']['domainname'], - 'd.documentroot' => $lng['panel']['path'], - 'd.aliasdomain' => $lng['domains']['aliasdomain'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_DOMAINS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `d`.`id`, " . " `d`.`customerid`, " . " `d`.`domain`, " . " `d`.`documentroot`, " . " `d`.`isemaildomain`, " . " `d`.`caneditdomain`, " . " `d`.`iswildcarddomain`, " . " `d`.`parentdomainid`, " . " `ad`.`id` AS `aliasdomainid`, " . " `ad`.`domain` AS `aliasdomain`, " . " `da`.`id` AS `domainaliasid`, " . " `da`.`domain` AS `domainalias` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `ad` ON `d`.`aliasdomain`=`ad`.`id` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `da` ON `da`.`aliasdomain`=`d`.`id` " . "WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' " . " AND `d`.`email_only`='0' AND `d`.`id` <> " . (int)$userinfo['standardsubdomain'] . " " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $domains = ''; - $parentdomains_count = 0; - $domains_count = 0; - $domain_array = array(); - - while($row = $db->fetch_array($result)) - { - $row['domain'] = $idna_convert->decode($row['domain']); - $row['aliasdomain'] = $idna_convert->decode($row['aliasdomain']); - $row['domainalias'] = $idna_convert->decode($row['domainalias']); - - if($row['parentdomainid'] == '0' - && $row['iswildcarddomain'] != '1' - && $row['caneditdomain'] == '1') - { - $parentdomains_count++; - } - - $domains_count++; - $domainparts = explode('.', $row['domain']); - $domainparts = array_reverse($domainparts); - $sortkey = ''; - foreach($domainparts as $key => $part) - { - $sortkey.= $part . '.'; - } - - $domain_array[$sortkey] = $row; - } - - ksort($domain_array); - $domain_id_array = array(); - foreach($domain_array as $sortkey => $row) - { - $domain_id_array[$row['id']] = $sortkey; - } - - $domain_sort_array = array(); - foreach($domain_array as $sortkey => $row) - { - if($row['parentdomainid'] == 0) - { - $domain_sort_array[$sortkey][$sortkey] = $row; - } - else - { - $domain_sort_array[$domain_id_array[$row['parentdomainid']]][$sortkey] = $row; - } - } - - $domain_array = array(); - - if($paging->sortfield == 'd.domain' - && $paging->sortorder == 'asc') - { - ksort($domain_sort_array); - } - elseif($paging->sortfield == 'd.domain' - && $paging->sortorder == 'desc') - { - krsort($domain_sort_array); - } - - $i = 0; - foreach($domain_sort_array as $sortkey => $domain_array) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($domain_array[$sortkey]); - eval("\$domains.=\"" . getTemplate("domains/domains_delimiter") . "\";"); - - if($paging->sortfield == 'd.domain' - && $paging->sortorder == 'asc') - { - ksort($domain_array); - } - elseif($paging->sortfield == 'd.domain' - && $paging->sortorder == 'desc') - { - krsort($domain_array); - } - - foreach($domain_array as $row) - { - if(strpos($row['documentroot'], $userinfo['documentroot']) === 0) - { - $row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot']))); - } - - $row = htmlentities_array($row); - eval("\$domains.=\"" . getTemplate("domains/domains_domain") . "\";"); - } - } - - $i+= count($domain_array); - } - - eval("echo \"" . getTemplate("domains/domainlist") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `parentdomainid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $alias_check = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$id . '\''); - - if(isset($result['parentdomainid']) - && $result['parentdomainid'] != '0' - && $alias_check['count'] == 0) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - if($result['isemaildomain'] == '1') - { - $emails = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_MAIL_VIRTUAL . '` WHERE `customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `domainid`=\'' . (int)$id . '\''); - - if($emails['count'] != '0') - { - standard_error('domains_cantdeletedomainwithemail'); - } - } - - $log->logAction(USR_ACTION, LOG_INFO, "deleted subdomain '" . $idna_convert->decode($result['domain']) . "'"); - $result = $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`-1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('domains_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['domain'])); - } - } - else - { - standard_error('domains_cantdeletemaindomain'); - } - } - elseif($action == 'add') - { - if($userinfo['subdomains_used'] < $userinfo['subdomains'] - || $userinfo['subdomains'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $subdomain = $idna_convert->encode(preg_replace(Array('/\:(\d)+$/', '/^https?\:\/\//'), '', validate($_POST['subdomain'], 'subdomain', '', 'subdomainiswrong'))); - $domain = $idna_convert->encode($_POST['domain']); - $domain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' "); - $completedomain = $subdomain . '.' . $domain; - $completedomain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($completedomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `email_only`='0' AND `caneditdomain` = '1'"); - $aliasdomain = intval($_POST['alias']); - $aliasdomain_check = array( - 'id' => 0 - ); - - if($aliasdomain != 0) - { - $aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\''); - } - - if(isset($_POST['url']) - && $_POST['url'] != '' - && validateUrl($idna_convert->encode($_POST['url']))) - { - $path = $_POST['url']; - } - else - { - $path = validate($_POST['path'], 'path'); - } - - if(!preg_match('/^https?\:\/\//', $path) - || !validateUrl($idna_convert->encode($path))) - { - $path = $userinfo['documentroot'] . '/' . $path; - $path = makeCorrectDir($path); - } - - if(isset($_POST['openbasedir_path']) - && $_POST['openbasedir_path'] == '1') - { - $openbasedir_path = '1'; - } - else - { - $openbasedir_path = '0'; - } - - if(isset($_POST['ssl_redirect']) - && $_POST['ssl_redirect'] == '1') - { - $ssl_redirect = '1'; - } - else - { - $ssl_redirect = '0'; - } - - if($path == '') - { - standard_error('patherror'); - } - elseif($subdomain == '') - { - standard_error(array('stringisempty', 'domainname')); - } - elseif($subdomain == 'www' && $domain_check['wwwserveralias'] == '1') - { - standard_error('wwwnotallowed'); - } - elseif($domain == '') - { - standard_error('domaincantbeempty'); - } - elseif(strtolower($completedomain_check['domain']) == strtolower($completedomain)) - { - standard_error('domainexistalready', $completedomain); - } - elseif(strtolower($domain_check['domain']) != strtolower($domain)) - { - standard_error('maindomainnonexist', $domain); - } - elseif($aliasdomain_check['id'] != $aliasdomain) - { - standard_error('domainisaliasorothercustomer'); - } - else - { - $result = $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` (`customerid`, `domain`, `documentroot`, `ipandport`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `openbasedir`, `openbasedir_path`, `safemode`, `speciallogfile`, `specialsettings`, `ssl_redirect`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($completedomain) . "', '" . $db->escape($path) . "', '" . $db->escape($domain_check['ipandport']) . "', " . (($aliasdomain != 0) ? "'" . $db->escape($aliasdomain) . "'" : "NULL") . ", '" . (int)$domain_check['id'] . "', '" . ($domain_check['subcanemaildomain'] == '3' ? '1' : '0') . "', '" . $db->escape($domain_check['openbasedir']) . "', '" . $db->escape($openbasedir_path) . "', '" . $db->escape($domain_check['safemode']) . "', '" . $db->escape($domain_check['speciallogfile']) . "', '" . $db->escape($domain_check['specialsettings']) . "', '" . $ssl_redirect . "')"); - $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "added subdomain '" . $completedomain . "'"); - inserttask('1'); - inserttask('4'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $result = $db->query("SELECT `id`, `domain`, `documentroot`, `ssl_redirect`,`isemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ORDER BY `domain` ASC"); - $domains = ''; - - while($row = $db->fetch_array($result)) - { - $domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']); - } - - $aliasdomains = makeoption($lng['domains']['noaliasdomain'], 0, NULL, true); - $result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id` <> `c`.`standardsubdomain` AND `d`.`customerid`=`c`.`customerid` AND `d`.`email_only`='0' AND `d`.`customerid`=" . (int)$userinfo['customerid'] . " ORDER BY `d`.`domain` ASC"); - - while($row_domain = $db->fetch_array($result_domains)) - { - $aliasdomains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id']); - } - - $ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']); - $openbasedir = makeoption($lng['domain']['docroot'], 0, NULL, true) . makeoption($lng['domain']['homedir'], 1, NULL, true); - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); - eval("echo \"" . getTemplate("domains/domains_add") . "\";"); - } - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`ssl_redirect`, `d`.`aliasdomain`, `d`.`openbasedir_path` ,`pd`.`subcanemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_DOMAINS . "` `pd` WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `d`.`id`='" . (int)$id . "' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'"); - $alias_check = $db->query_first('SELECT COUNT(`id`) AS count FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$result['id'] . '\''); - $alias_check = $alias_check['count']; - - if(isset($result['customerid']) - && $result['customerid'] == $userinfo['customerid']) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - if(isset($_POST['url']) - && $_POST['url'] != '' - && validateUrl($idna_convert->encode($_POST['url']))) - { - $path = $_POST['url']; - } - else - { - $path = validate($_POST['path'], 'path'); - } - - if(!preg_match('/^https?\:\/\//', $path) - || !validateUrl($idna_convert->encode($path))) - { - $path = $userinfo['documentroot'] . '/' . $path; - $path = makeCorrectDir($path); - } - - $aliasdomain = intval($_POST['alias']); - - if(isset($_POST['iswildcarddomain']) - && $_POST['iswildcarddomain'] == '1' - && $result['parentdomainid'] == '0' - && $userinfo['subdomains'] != '0') - { - $wildcarddomaincheck = $db->query("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `parentdomainid` = '" . (int)$result['id'] . "'"); - - if($db->num_rows($wildcarddomaincheck) != '0') - { - standard_error('firstdeleteallsubdomains'); - exit; - } - - $iswildcarddomain = '1'; - } - else - { - $iswildcarddomain = '0'; - } - - if($result['parentdomainid'] != '0' - && ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') - && isset($_POST['isemaildomain'])) - { - $isemaildomain = intval($_POST['isemaildomain']); - } - else - { - $isemaildomain = $result['isemaildomain']; - } - - $aliasdomain_check = array( - 'id' => 0 - ); - - if($aliasdomain != 0) - { - $aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\''); - } - - if($aliasdomain_check['id'] != $aliasdomain) - { - standard_error('domainisaliasorothercustomer'); - } - - if(isset($_POST['openbasedir_path']) - && $_POST['openbasedir_path'] == '1') - { - $openbasedir_path = '1'; - } - else - { - $openbasedir_path = '0'; - } - - if(isset($_POST['ssl_redirect']) - && $_POST['ssl_redirect'] == '1') - { - $ssl_redirect = '1'; - } - else - { - $ssl_redirect = '0'; - } - - if($path == '') - { - standard_error('patherror'); - } - else - { - if(($result['isemaildomain'] == '1') - && ($isemaildomain == '0')) - { - $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'"); - $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'"); - $log->logAction(USR_ACTION, LOG_NOTICE, "automatically deleted mail-table entries for '" . $idna_convert->decode($result['domain']) . "'"); - } - - if($path != $result['documentroot'] - || $isemaildomain != $result['isemaildomain'] - || $iswildcarddomain != $result['iswildcarddomain'] - || $aliasdomain != $result['aliasdomain'] - || $openbasedir_path != $result['openbasedir_path'] - || $ssl_redirect != $result['ssl_redirect']) - { - $log->logAction(USR_ACTION, LOG_INFO, "edited domain '" . $idna_convert->decode($result['domain']) . "'"); - inserttask('1'); - inserttask('4'); - $result = $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `documentroot`='" . $db->escape($path) . "', `isemaildomain`='" . (int)$isemaildomain . "', `iswildcarddomain`='" . (int)$iswildcarddomain . "', `aliasdomain`=" . (($aliasdomain != 0 && $alias_check == 0) ? '\'' . $db->escape($aliasdomain) . '\'' : 'NULL') . ",`openbasedir_path`='" . $db->escape($openbasedir_path) . "', `ssl_redirect`='" . $ssl_redirect . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - } - - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $result['domain'] = $idna_convert->decode($result['domain']); - $domains = makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true); - $result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id`<>'" . (int)$result['id'] . "' AND `c`.`standardsubdomain`<>`d`.`id` AND `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `c`.`customerid`=`d`.`customerid` ORDER BY `d`.`domain` ASC"); - - while($row_domain = $db->fetch_array($result_domains)) - { - $domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']); - } - - if(preg_match('/^https?\:\/\//', $result['documentroot']) - && validateUrl($idna_convert->encode($result['documentroot'])) - && $settings['panel']['pathedit'] == 'Dropdown') - { - $urlvalue = $result['documentroot']; - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); - } - else - { - $urlvalue = ''; - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit'], $result['documentroot']); - } - - $ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']); - $iswildcarddomain = makeyesno('iswildcarddomain', '1', '0', $result['iswildcarddomain']); - $isemaildomain = makeyesno('isemaildomain', '1', '0', $result['isemaildomain']); - $openbasedir = makeoption($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true); - $result = htmlentities_array($result); - - if($settings['system']['use_ssl'] == "1") - { - } - - eval("echo \"" . getTemplate("domains/domains_edit") . "\";"); - } - } - else - { - standard_error('domains_canteditdomain'); - } - } -} - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: customer_domains.php 2713 2009-04-17 08:55:53Z flo $ + */ + +define('AREA', 'customer'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'overview') +{ + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains"); + eval("echo \"" . getTemplate("domains/domains") . "\";"); +} +elseif($page == 'domains') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_domains::domains"); + $fields = array( + 'd.domain' => $lng['domains']['domainname'], + 'd.documentroot' => $lng['panel']['path'], + 'd.aliasdomain' => $lng['domains']['aliasdomain'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_DOMAINS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `d`.`id`, " . " `d`.`customerid`, " . " `d`.`domain`, " . " `d`.`documentroot`, " . " `d`.`isemaildomain`, " . " `d`.`caneditdomain`, " . " `d`.`iswildcarddomain`, " . " `d`.`parentdomainid`, " . " `ad`.`id` AS `aliasdomainid`, " . " `ad`.`domain` AS `aliasdomain`, " . " `da`.`id` AS `domainaliasid`, " . " `da`.`domain` AS `domainalias` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `ad` ON `d`.`aliasdomain`=`ad`.`id` " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `da` ON `da`.`aliasdomain`=`d`.`id` " . "WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' " . " AND `d`.`email_only`='0' AND `d`.`id` <> " . (int)$userinfo['standardsubdomain'] . " " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $domains = ''; + $parentdomains_count = 0; + $domains_count = 0; + $domain_array = array(); + + while($row = $db->fetch_array($result)) + { + $row['domain'] = $idna_convert->decode($row['domain']); + $row['aliasdomain'] = $idna_convert->decode($row['aliasdomain']); + $row['domainalias'] = $idna_convert->decode($row['domainalias']); + + if($row['parentdomainid'] == '0' + && $row['iswildcarddomain'] != '1' + && $row['caneditdomain'] == '1') + { + $parentdomains_count++; + } + + $domains_count++; + $domainparts = explode('.', $row['domain']); + $domainparts = array_reverse($domainparts); + $sortkey = ''; + foreach($domainparts as $key => $part) + { + $sortkey.= $part . '.'; + } + + $domain_array[$sortkey] = $row; + } + + ksort($domain_array); + $domain_id_array = array(); + foreach($domain_array as $sortkey => $row) + { + $domain_id_array[$row['id']] = $sortkey; + } + + $domain_sort_array = array(); + foreach($domain_array as $sortkey => $row) + { + if($row['parentdomainid'] == 0) + { + $domain_sort_array[$sortkey][$sortkey] = $row; + } + else + { + $domain_sort_array[$domain_id_array[$row['parentdomainid']]][$sortkey] = $row; + } + } + + $domain_array = array(); + + if($paging->sortfield == 'd.domain' + && $paging->sortorder == 'asc') + { + ksort($domain_sort_array); + } + elseif($paging->sortfield == 'd.domain' + && $paging->sortorder == 'desc') + { + krsort($domain_sort_array); + } + + $i = 0; + foreach($domain_sort_array as $sortkey => $domain_array) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($domain_array[$sortkey]); + eval("\$domains.=\"" . getTemplate("domains/domains_delimiter") . "\";"); + + if($paging->sortfield == 'd.domain' + && $paging->sortorder == 'asc') + { + ksort($domain_array); + } + elseif($paging->sortfield == 'd.domain' + && $paging->sortorder == 'desc') + { + krsort($domain_array); + } + + foreach($domain_array as $row) + { + if(strpos($row['documentroot'], $userinfo['documentroot']) === 0) + { + $row['documentroot'] = makeCorrectDir(substr($row['documentroot'], strlen($userinfo['documentroot']))); + } + + $row = htmlentities_array($row); + eval("\$domains.=\"" . getTemplate("domains/domains_domain") . "\";"); + } + } + + $i+= count($domain_array); + } + + eval("echo \"" . getTemplate("domains/domainlist") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `customerid`, `domain`, `documentroot`, `isemaildomain`, `parentdomainid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $alias_check = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$id . '\''); + + if(isset($result['parentdomainid']) + && $result['parentdomainid'] != '0' + && $alias_check['count'] == 0) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + if($result['isemaildomain'] == '1') + { + $emails = $db->query_first('SELECT COUNT(`id`) AS `count` FROM `' . TABLE_MAIL_VIRTUAL . '` WHERE `customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `domainid`=\'' . (int)$id . '\''); + + if($emails['count'] != '0') + { + standard_error('domains_cantdeletedomainwithemail'); + } + } + + $log->logAction(USR_ACTION, LOG_INFO, "deleted subdomain '" . $idna_convert->decode($result['domain']) . "'"); + $result = $db->query("DELETE FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`-1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('domains_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['domain'])); + } + } + else + { + standard_error('domains_cantdeletemaindomain'); + } + } + elseif($action == 'add') + { + if($userinfo['subdomains_used'] < $userinfo['subdomains'] + || $userinfo['subdomains'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $subdomain = $idna_convert->encode(preg_replace(Array('/\:(\d)+$/', '/^https?\:\/\//'), '', validate($_POST['subdomain'], 'subdomain', '', 'subdomainiswrong'))); + $domain = $idna_convert->encode($_POST['domain']); + $domain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' "); + $completedomain = $subdomain . '.' . $domain; + $completedomain_check = $db->query_first("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($completedomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `email_only`='0' AND `caneditdomain` = '1'"); + $aliasdomain = intval($_POST['alias']); + $aliasdomain_check = array( + 'id' => 0 + ); + + if($aliasdomain != 0) + { + $aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$userinfo['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\''); + } + + if(isset($_POST['url']) + && $_POST['url'] != '' + && validateUrl($idna_convert->encode($_POST['url']))) + { + $path = $_POST['url']; + } + else + { + $path = validate($_POST['path'], 'path'); + } + + if(!preg_match('/^https?\:\/\//', $path) + || !validateUrl($idna_convert->encode($path))) + { + $path = $userinfo['documentroot'] . '/' . $path; + $path = makeCorrectDir($path); + } + + if(isset($_POST['openbasedir_path']) + && $_POST['openbasedir_path'] == '1') + { + $openbasedir_path = '1'; + } + else + { + $openbasedir_path = '0'; + } + + if(isset($_POST['ssl_redirect']) + && $_POST['ssl_redirect'] == '1') + { + $ssl_redirect = '1'; + } + else + { + $ssl_redirect = '0'; + } + + if($path == '') + { + standard_error('patherror'); + } + elseif($subdomain == '') + { + standard_error(array('stringisempty', 'domainname')); + } + elseif($subdomain == 'www' && $domain_check['wwwserveralias'] == '1') + { + standard_error('wwwnotallowed'); + } + elseif($domain == '') + { + standard_error('domaincantbeempty'); + } + elseif(strtolower($completedomain_check['domain']) == strtolower($completedomain)) + { + standard_error('domainexistalready', $completedomain); + } + elseif(strtolower($domain_check['domain']) != strtolower($domain)) + { + standard_error('maindomainnonexist', $domain); + } + elseif($aliasdomain_check['id'] != $aliasdomain) + { + standard_error('domainisaliasorothercustomer'); + } + else + { + $result = $db->query("INSERT INTO `" . TABLE_PANEL_DOMAINS . "` (`customerid`, `domain`, `documentroot`, `ipandport`, `aliasdomain`, `parentdomainid`, `isemaildomain`, `openbasedir`, `openbasedir_path`, `safemode`, `speciallogfile`, `specialsettings`, `ssl_redirect`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($completedomain) . "', '" . $db->escape($path) . "', '" . $db->escape($domain_check['ipandport']) . "', " . (($aliasdomain != 0) ? "'" . $db->escape($aliasdomain) . "'" : "NULL") . ", '" . (int)$domain_check['id'] . "', '" . ($domain_check['subcanemaildomain'] == '3' ? '1' : '0') . "', '" . $db->escape($domain_check['openbasedir']) . "', '" . $db->escape($openbasedir_path) . "', '" . $db->escape($domain_check['safemode']) . "', '" . $db->escape($domain_check['speciallogfile']) . "', '" . $db->escape($domain_check['specialsettings']) . "', '" . $ssl_redirect . "')"); + $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `subdomains_used`=`subdomains_used`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "added subdomain '" . $completedomain . "'"); + inserttask('1'); + inserttask('4'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $result = $db->query("SELECT `id`, `domain`, `documentroot`, `ssl_redirect`,`isemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `parentdomainid`='0' AND `email_only`='0' AND `iswildcarddomain`='0' AND `caneditdomain`='1' ORDER BY `domain` ASC"); + $domains = ''; + + while($row = $db->fetch_array($result)) + { + $domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']); + } + + $aliasdomains = makeoption($lng['domains']['noaliasdomain'], 0, NULL, true); + $result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id` <> `c`.`standardsubdomain` AND `d`.`customerid`=`c`.`customerid` AND `d`.`email_only`='0' AND `d`.`customerid`=" . (int)$userinfo['customerid'] . " ORDER BY `d`.`domain` ASC"); + + while($row_domain = $db->fetch_array($result_domains)) + { + $aliasdomains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id']); + } + + $ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']); + $openbasedir = makeoption($lng['domain']['docroot'], 0, NULL, true) . makeoption($lng['domain']['homedir'], 1, NULL, true); + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + eval("echo \"" . getTemplate("domains/domains_add") . "\";"); + } + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT `d`.`id`, `d`.`customerid`, `d`.`domain`, `d`.`documentroot`, `d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`parentdomainid`, `d`.`ssl_redirect`, `d`.`aliasdomain`, `d`.`openbasedir_path` ,`pd`.`subcanemaildomain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_DOMAINS . "` `pd` WHERE `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `d`.`id`='" . (int)$id . "' AND ((`d`.`parentdomainid`!='0' AND `pd`.`id`=`d`.`parentdomainid`) OR (`d`.`parentdomainid`='0' AND `pd`.`id`=`d`.`id`)) AND `d`.`caneditdomain`='1'"); + $alias_check = $db->query_first('SELECT COUNT(`id`) AS count FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . (int)$result['id'] . '\''); + $alias_check = $alias_check['count']; + + if(isset($result['customerid']) + && $result['customerid'] == $userinfo['customerid']) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + if(isset($_POST['url']) + && $_POST['url'] != '' + && validateUrl($idna_convert->encode($_POST['url']))) + { + $path = $_POST['url']; + } + else + { + $path = validate($_POST['path'], 'path'); + } + + if(!preg_match('/^https?\:\/\//', $path) + || !validateUrl($idna_convert->encode($path))) + { + $path = $userinfo['documentroot'] . '/' . $path; + $path = makeCorrectDir($path); + } + + $aliasdomain = intval($_POST['alias']); + + if(isset($_POST['iswildcarddomain']) + && $_POST['iswildcarddomain'] == '1' + && $result['parentdomainid'] == '0' + && $userinfo['subdomains'] != '0') + { + $wildcarddomaincheck = $db->query("SELECT `id` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `parentdomainid` = '" . (int)$result['id'] . "'"); + + if($db->num_rows($wildcarddomaincheck) != '0') + { + standard_error('firstdeleteallsubdomains'); + exit; + } + + $iswildcarddomain = '1'; + } + else + { + $iswildcarddomain = '0'; + } + + if($result['parentdomainid'] != '0' + && ($result['subcanemaildomain'] == '1' || $result['subcanemaildomain'] == '2') + && isset($_POST['isemaildomain'])) + { + $isemaildomain = intval($_POST['isemaildomain']); + } + else + { + $isemaildomain = $result['isemaildomain']; + } + + $aliasdomain_check = array( + 'id' => 0 + ); + + if($aliasdomain != 0) + { + $aliasdomain_check = $db->query_first('SELECT `id` FROM `' . TABLE_PANEL_DOMAINS . '` `d`,`' . TABLE_PANEL_CUSTOMERS . '` `c` WHERE `d`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`aliasdomain` IS NULL AND `d`.`id`<>`c`.`standardsubdomain` AND `c`.`customerid`=\'' . (int)$result['customerid'] . '\' AND `d`.`id`=\'' . (int)$aliasdomain . '\''); + } + + if($aliasdomain_check['id'] != $aliasdomain) + { + standard_error('domainisaliasorothercustomer'); + } + + if(isset($_POST['openbasedir_path']) + && $_POST['openbasedir_path'] == '1') + { + $openbasedir_path = '1'; + } + else + { + $openbasedir_path = '0'; + } + + if(isset($_POST['ssl_redirect']) + && $_POST['ssl_redirect'] == '1') + { + $ssl_redirect = '1'; + } + else + { + $ssl_redirect = '0'; + } + + if($path == '') + { + standard_error('patherror'); + } + else + { + if(($result['isemaildomain'] == '1') + && ($isemaildomain == '0')) + { + $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'"); + $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `domainid`='" . (int)$id . "'"); + $log->logAction(USR_ACTION, LOG_NOTICE, "automatically deleted mail-table entries for '" . $idna_convert->decode($result['domain']) . "'"); + } + + if($path != $result['documentroot'] + || $isemaildomain != $result['isemaildomain'] + || $iswildcarddomain != $result['iswildcarddomain'] + || $aliasdomain != $result['aliasdomain'] + || $openbasedir_path != $result['openbasedir_path'] + || $ssl_redirect != $result['ssl_redirect']) + { + $log->logAction(USR_ACTION, LOG_INFO, "edited domain '" . $idna_convert->decode($result['domain']) . "'"); + inserttask('1'); + inserttask('4'); + $result = $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `documentroot`='" . $db->escape($path) . "', `isemaildomain`='" . (int)$isemaildomain . "', `iswildcarddomain`='" . (int)$iswildcarddomain . "', `aliasdomain`=" . (($aliasdomain != 0 && $alias_check == 0) ? '\'' . $db->escape($aliasdomain) . '\'' : 'NULL') . ",`openbasedir_path`='" . $db->escape($openbasedir_path) . "', `ssl_redirect`='" . $ssl_redirect . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + } + + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $result['domain'] = $idna_convert->decode($result['domain']); + $domains = makeoption($lng['domains']['noaliasdomain'], 0, $result['aliasdomain'], true); + $result_domains = $db->query("SELECT `d`.`id`, `d`.`domain` FROM `" . TABLE_PANEL_DOMAINS . "` `d`, `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `d`.`aliasdomain` IS NULL AND `d`.`id`<>'" . (int)$result['id'] . "' AND `c`.`standardsubdomain`<>`d`.`id` AND `d`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `c`.`customerid`=`d`.`customerid` ORDER BY `d`.`domain` ASC"); + + while($row_domain = $db->fetch_array($result_domains)) + { + $domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['id'], $result['aliasdomain']); + } + + if(preg_match('/^https?\:\/\//', $result['documentroot']) + && validateUrl($idna_convert->encode($result['documentroot'])) + && $settings['panel']['pathedit'] == 'Dropdown') + { + $urlvalue = $result['documentroot']; + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + } + else + { + $urlvalue = ''; + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit'], $result['documentroot']); + } + + $ssl_redirect = makeyesno('ssl_redirect', '1', '0', $result['ssl_redirect']); + $iswildcarddomain = makeyesno('iswildcarddomain', '1', '0', $result['iswildcarddomain']); + $isemaildomain = makeyesno('isemaildomain', '1', '0', $result['isemaildomain']); + $openbasedir = makeoption($lng['domain']['docroot'], 0, $result['openbasedir_path'], true) . makeoption($lng['domain']['homedir'], 1, $result['openbasedir_path'], true); + $result = htmlentities_array($result); + + if($settings['system']['use_ssl'] == "1") + { + } + + eval("echo \"" . getTemplate("domains/domains_edit") . "\";"); + } + } + else + { + standard_error('domains_canteditdomain'); + } + } +} + +?> diff --git a/customer_email.php b/customer_email.php index 6ef69c0f..a8d8211d 100644 --- a/customer_email.php +++ b/customer_email.php @@ -1,712 +1,712 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: customer_email.php 2718 2009-04-30 18:36:58Z flo $ - */ - -define('AREA', 'customer'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'overview') -{ - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email"); - eval("echo \"" . getTemplate("email/email") . "\";"); -} -elseif($page == 'emails') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email::emails"); - $fields = array( - 'd.domain' => $lng['domains']['domainname'], - 'm.email_full' => $lng['emails']['emailaddress'], - 'm.destination' => $lng['emails']['forwarders'] - ); - $paging = new paging($userinfo, $db, TABLE_MAIL_VIRTUAL, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query('SELECT `m`.`id`, `m`.`domainid`, `m`.`email`, `m`.`email_full`, `m`.`iscatchall`, `u`.`quota`, `m`.`destination`, `m`.`popaccountid`, `d`.`domain` FROM `' . TABLE_MAIL_VIRTUAL . '` `m` LEFT JOIN `' . TABLE_PANEL_DOMAINS . '` `d` ON (`m`.`domainid` = `d`.`id`) LEFT JOIN `' . TABLE_MAIL_USERS . '` `u` ON (`m`.`popaccountid` = `u`.`id`) WHERE `m`.`customerid`="' . $db->escape($userinfo['customerid']) . '" ' . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $emails = array(); - - while($row = $db->fetch_array($result)) - { - if(!isset($emails[$row['domain']]) - || !is_array($emails[$row['domain']])) - { - $emails[$row['domain']] = array(); - } - - $emails[$row['domain']][$row['email_full']] = $row; - } - - if($paging->sortfield == 'd.domain' - && $paging->sortorder == 'desc') - { - krsort($emails); - } - else - { - ksort($emails); - } - - $i = 0; - $count = 0; - $accounts = ''; - $emails_count = 0; - $domainname = ''; - foreach($emails as $domainid => $emailaddresses) - { - if($paging->sortfield == 'm.email_full' - && $paging->sortorder == 'desc') - { - krsort($emailaddresses); - } - else - { - ksort($emailaddresses); - } - - foreach($emailaddresses as $row) - { - if($paging->checkDisplay($i)) - { - if($domainname != $idna_convert->decode($row['domain'])) - { - $domainname = $idna_convert->decode($row['domain']); - eval("\$accounts.=\"" . getTemplate("email/emails_domain") . "\";"); - } - - $emails_count++; - $row['email'] = $idna_convert->decode($row['email']); - $row['email_full'] = $idna_convert->decode($row['email_full']); - $row['destination'] = explode(' ', $row['destination']); - uasort($row['destination'], 'strcasecmp'); - - while(list($dest_id, $destination) = each($row['destination'])) - { - $row['destination'][$dest_id] = $idna_convert->decode($row['destination'][$dest_id]); - - if($row['destination'][$dest_id] == $row['email_full']) - { - unset($row['destination'][$dest_id]); - } - } - - $destinations_count = count($row['destination']); - $row['destination'] = implode(', ', $row['destination']); - - if(strlen($row['destination']) > 35) - { - $row['destination'] = substr($row['destination'], 0, 32) . '... (' . $destinations_count . ')'; - } - - $row = htmlentities_array($row); - eval("\$accounts.=\"" . getTemplate("email/emails_email") . "\";"); - $count++; - } - - $i++; - } - } - - $emaildomains_count = $db->query_first("SELECT COUNT(`id`) AS `count` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' AND `isemaildomain`='1' ORDER BY `domain` ASC"); - $emaildomains_count = $emaildomains_count['count']; - eval("echo \"" . getTemplate("email/emails") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['email']) - && $result['email'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $update_users_query_addon = ''; - - if($result['destination'] != '') - { - $result['destination'] = explode(' ', $result['destination']); - $number_forwarders = count($result['destination']); - - if($result['popaccountid'] != 0) - { - // Free the Quota used by the email account - - if($settings['system']['mail_quota_enabled'] == 1) - { - $res_quota = $db->query_first("SELECT `quota` FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); - $update_users_query_addon.= " , `email_quota_used` = `email_quota_used` - " . (int)$res_quota['quota'] . " "; - } - - $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); - $update_users_query_addon .= " , `email_accounts_used` = `email_accounts_used` - 1 "; - $number_forwarders-= 1; - $log->logAction(USR_ACTION, LOG_NOTICE, "deleted forwarder for email address '" . $result['email'] . "'"); - } - } - else - { - $number_forwarders = 0; - } - - $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `emails_used`=`emails_used` - 1 , `email_forwarders_used` = `email_forwarders_used` - " . (int)$number_forwarders . " $update_users_query_addon WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "deleted email address '" . $result['email'] . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('email_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full'])); - } - } - } - elseif($action == 'add') - { - if($userinfo['emails_used'] < $userinfo['emails'] - || $userinfo['emails'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $email_part = $_POST['email_part']; - $domain = $idna_convert->encode(validate($_POST['domain'], 'domain')); - $domain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `isemaildomain`='1' "); - - if(isset($_POST['iscatchall']) - && $_POST['iscatchall'] == '1') - { - $iscatchall = '1'; - $email = '@' . $domain; - } - else - { - $iscatchall = '0'; - $email = $email_part . '@' . $domain; - } - - $email_full = $email_part . '@' . $domain; - - if(!validateEmail($email_full)) - { - standard_error('emailiswrong', $email_full); - } - - $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE ( `email`='" . $db->escape($email) . "' OR `email_full` = '" . $db->escape($email_full) . "' ) AND `customerid`='" . (int)$userinfo['customerid'] . "'"); - - if($email == '' - || $email_full == '' - || $email_part == '') - { - standard_error(array('stringisempty', 'emailadd')); - } - elseif($domain == '') - { - standard_error('domaincantbeempty'); - } - elseif($domain_check['domain'] != $domain) - { - standard_error('maindomainnonexist', $domain); - } - elseif($email_check['email_full'] == $email_full) - { - standard_error('emailexistalready', $email_full); - } - elseif($email_check['email'] == $email) - { - standard_error('youhavealreadyacatchallforthisdomain'); - exit; - } - else - { - $db->query("INSERT INTO `" . TABLE_MAIL_VIRTUAL . "` (`customerid`, `email`, `email_full`, `iscatchall`, `domainid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($email) . "', '" . $db->escape($email_full) . "', '" . $db->escape($iscatchall) . "', '" . (int)$domain_check['id'] . "')"); - $address_id = $db->insert_id(); - $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `emails_used` = `emails_used` + 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "added email address '" . $email_full . "'"); - redirectTo($filename, Array('page' => $page, 'action' => 'edit', 'id' => $address_id, 's' => $s)); - } - } - else - { - $result = $db->query("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `isemaildomain`='1' ORDER BY `domain` ASC"); - $domains = ''; - - while($row = $db->fetch_array($result)) - { - $domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']); - } - - $iscatchall = makeyesno('iscatchall', '1', '0', '0'); - eval("echo \"" . getTemplate("email/emails_add") . "\";"); - } - } - else - { - standard_error('allresourcesused'); - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); - - if(isset($result['email']) - && $result['email'] != '') - { - $result['email'] = $idna_convert->decode($result['email']); - $result['email_full'] = $idna_convert->decode($result['email_full']); - $result['destination'] = explode(' ', $result['destination']); - uasort($result['destination'], 'strcasecmp'); - $forwarders = ''; - $forwarders_count = 0; - - while(list($dest_id, $destination) = each($result['destination'])) - { - $destination = $idna_convert->decode($destination); - - if($destination != $result['email_full'] - && $destination != '') - { - eval("\$forwarders.=\"" . getTemplate("email/emails_edit_forwarder") . "\";"); - $forwarders_count++; - } - - $result['destination'][$dest_id] = $destination; - } - - $destinations_count = count($result['destination']); - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("email/emails_edit") . "\";"); - } - } - elseif($action == 'togglecatchall' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['email']) - && $result['email'] != '') - { - if($result['iscatchall'] == '1') - { - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `email` = '" . $db->escape($result['email_full']) . "', `iscatchall` = '0' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['id'] . "'"); - } - else - { - $email_parts = explode('@', $result['email_full']); - $email = '@' . $email_parts[1]; - $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `email`='" . $db->escape($email) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); - - if($email_check['email'] == $email) - { - standard_error('youhavealreadyacatchallforthisdomain'); - exit; - } - else - { - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `email` = '$email' , `iscatchall` = '1' WHERE `customerid`='" . $userinfo['customerid'] . "' AND `id`='" . $result['id'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "edited email address '" . $email . "'"); - } - } - - redirectTo($filename, Array('page' => $page, 'action' => 'edit', 'id' => $id, 's' => $s)); - } - } -} -elseif($page == 'accounts') -{ - if($action == 'add' - && $id != 0) - { - // ensure the int is a positive one - - if(isset($_POST['email_quota'])) - { - $quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong'); - } - - if($userinfo['email_accounts'] == '-1' - || ($userinfo['email_accounts_used'] < $userinfo['email_accounts'])) - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid`, `domainid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['email']) - && $result['email'] != '' - && $result['popaccountid'] == '0') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $email_full = $result['email_full']; - $username = $idna_convert->decode($email_full); - $password = validate($_POST['email_password'], 'password'); - - if($settings['panel']['sendalternativemail'] == 1) - { - $alternative_email = $idna_convert->encode(validate($_POST['alternative_email'], 'alternative_email')); - } - else - { - $alternative_email = ''; - } - - if($settings['system']['mail_quota_enabled'] == 1) - { - if($userinfo['email_quota'] != '-1' - && ($quota == 0 || ($quota + $userinfo['email_quota_used']) > $userinfo['email_quota'])) - { - standard_error('allocatetoomuchquota', $quota); - } - } - else - { - $quota = 0; - } - - if($email_full == '') - { - standard_error(array('stringisempty', 'emailadd')); - } - elseif($password == '' - && !($settings['panel']['sendalternativemail'] == 1 && validateEmail($alternative_email))) - { - standard_error(array('stringisempty', 'mypassword')); - } - else - { - if($password == '') - { - $password = substr(md5(uniqid(microtime(), 1)), 12, 6); - } - - $db->query("INSERT INTO `" . TABLE_MAIL_USERS . "` (`customerid`, `email`, `username`, " . ($settings['system']['mailpwcleartext'] == '1' ? '`password`, ' : '') . " `password_enc`, `homedir`, `maildir`, `uid`, `gid`, `domainid`, `postfix`, `quota`, `imap`, `pop3`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($email_full) . "', '" . $db->escape($username) . "', " . ($settings['system']['mailpwcleartext'] == '1' ? "'" . $db->escape($password) . "'," : '') . " ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($settings['system']['vmail_homedir']) . "', '" . $db->escape($userinfo['loginname'] . '/' . $email_full . '/') . "', '" . (int)$settings['system']['vmail_uid'] . "', '" . (int)$settings['system']['vmail_gid'] . "', '" . (int)$result['domainid'] . "', 'y', '" . (int)$quota . "', '" . (int)$userinfo['imap'] . "', '" . (int)$userinfo['pop3'] . "')"); - $popaccountid = $db->insert_id(); - $result['destination'].= ' ' . $email_full; - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "', `popaccountid` = '" . (int)$popaccountid . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_accounts_used`=`email_accounts_used`+1, `email_quota_used`=`email_quota_used`+" . (int)$quota . " WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "added email account for '" . $email_full . "'"); - $replace_arr = array( - 'EMAIL' => $email_full, - 'USERNAME' => $username, - 'PASSWORD' => $password - ); - $admin = $db->query_first('SELECT `firstname`, `name`, `company`, `email` FROM `' . TABLE_PANEL_ADMINS . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\''); - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_subject\''); - $mail_subject = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success']['subject']), $replace_arr)); - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_mailbody\''); - $mail_body = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success']['mailbody']), $replace_arr)); - $mail->From = $admin['email']; - $mail->FromName = getCorrectUserSalutation($admin); - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($email_full, getCorrectUserSalutation($userinfo)); - - if(!$mail->Send()) - { - if($mail->ErrorInfo != '') - { - $mailerr_msg = $mail->ErrorInfo; - } - else - { - $mailerr_msg = $email; - } - - $log->logAction(USR_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - standard_error('errorsendingmail', $email); - } - - $mail->ClearAddresses(); - - if(validateEmail($alternative_email) - && $settings['panel']['sendalternativemail'] == 1) - { - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_alternative_subject\''); - $mail_subject = replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success_alternative']['subject']), $replace_arr); - $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_alternative_mailbody\''); - $mail_body = replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success_alternative']['mailbody']), $replace_arr); - $mail->From = $admin['email']; - $mail->FromName = getCorrectUserSalutation($admin); - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($idna_convert->encode($alternative_email), getCorrectUserSalutation($userinfo)); - - if(!$mail->Send()) - { - if($mail->ErrorInfo != '') - { - $mailerr_msg = $mail->ErrorInfo; - } - else - { - $mailerr_msg = $alternative_email; - } - - $log->logAction(USR_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - standard_error(array('errorsendingmail', $alternative_email)); - } - - $mail->ClearAddresses(); - } - - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - } - else - { - $result['email_full'] = $idna_convert->decode($result['email_full']); - $result = htmlentities_array($result); - $quota = $settings['system']['mail_quota']; - eval("echo \"" . getTemplate("email/account_add") . "\";"); - } - } - } - else - { - standard_error(array('allresourcesused', 'allocatetoomuchquota'), $quota); - } - } - elseif($action == 'changepw' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['popaccountid']) - && $result['popaccountid'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $password = validate($_POST['email_password'], 'password'); - - if($password == '') - { - standard_error(array('stringisempty', 'mypassword')); - exit; - } - else - { - $log->logAction(USR_ACTION, LOG_NOTICE, "changed email password for '" . $result['email_full'] . "'"); - $result = $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET " . ($settings['system']['mailpwcleartext'] == '1' ? "`password` = '" . $db->escape($password) . "', " : '') . " `password_enc`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - } - else - { - $result['email_full'] = $idna_convert->decode($result['email_full']); - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("email/account_changepw") . "\";"); - } - } - } - elseif($action == 'changequota' - && $settings['system']['mail_quota_enabled'] == '1' - && $id != 0) - { - $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); - - if(isset($result['popaccountid']) - && $result['popaccountid'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $quota = (int)validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong'); - - if($userinfo['email_quota'] != '-1' - && ($quota == 0 || ($quota + $userinfo['email_quota_used'] - $result['quota']) > $userinfo['email_quota'])) - { - standard_error('allocatetoomuchquota', $quota); - } - else - { - $log->logAction(USR_ACTION, LOG_NOTICE, "updated quota for email address '" . $result['email'] . "' to " . $quota . " MB"); - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota` = '" . (int)$quota . "' WHERE `id` = " . $result['popaccountid'] . " AND `customerid`='" . $userinfo['customerid'] . "'"); - - if($userinfo['email_quota'] != '-1') - { - $new_used_quota = $userinfo['email_quota_used'] + ($quota - $result['quota']); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_quota_used` = " . $new_used_quota . " WHERE `customerid` = '" . $userinfo['customerid'] . "'"); - } - - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - } - else - { - $result['email_full'] = $idna_convert->decode($result['email_full']); - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("email/account_changequota") . "\";"); - } - } - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); - - if(isset($result['popaccountid']) - && $result['popaccountid'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); - $result['destination'] = str_replace($result['email_full'], '', $result['destination']); - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "', `popaccountid` = '0' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if($settings['system']['mail_quota_enabled'] == '1' - && $userinfo['email_quota'] != '-1') - { - $quota = (int)$result['quota']; - } - else - { - $quota = 0; - } - - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_accounts_used` = `email_accounts_used` - 1, `email_quota_used` = `email_quota_used` - " . (int)$quota . " WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "deleted email account for '" . $result['email_full'] . "'"); - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - else - { - ask_yesno('email_reallydelete_account', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full'])); - } - } - } -} -elseif($page == 'forwarders') -{ - if($action == 'add' - && $id != 0) - { - if($userinfo['email_forwarders_used'] < $userinfo['email_forwarders'] - || $userinfo['email_forwarders'] == '-1') - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid`, `domainid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['email']) - && $result['email'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $destination = $idna_convert->encode($_POST['destination']); - $result['destination_array'] = explode(' ', $result['destination']); - - if($destination == '') - { - standard_error('destinationnonexist'); - } - elseif(!validateEmail($destination)) - { - standard_error('destinationiswrong', $destination); - } - elseif($destination == $result['email']) - { - standard_error('destinationalreadyexistasmail', $destination); - } - elseif(in_array($destination, $result['destination_array'])) - { - standard_error('destinationalreadyexist', $destination); - } - else - { - $result['destination'].= ' ' . $destination; - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_forwarders_used` = `email_forwarders_used` + 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_NOTICE, "added email forwarder for '" . $result['email_full'] . "'"); - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - } - else - { - $result['email_full'] = $idna_convert->decode($result['email_full']); - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("email/forwarder_add") . "\";"); - } - } - } - else - { - standard_error('allresourcesused'); - } - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['destination']) - && $result['destination'] != '') - { - if(isset($_POST['forwarderid'])) - { - $forwarderid = intval($_POST['forwarderid']); - } - elseif(isset($_GET['forwarderid'])) - { - $forwarderid = intval($_GET['forwarderid']); - } - else - { - $forwarderid = 0; - } - - $result['destination'] = explode(' ', $result['destination']); - - if(isset($result['destination'][$forwarderid]) && $result['email'] != $result['destination'][$forwarderid]) - { - $forwarder = $result['destination'][$forwarderid]; - - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - unset($result['destination'][$forwarderid]); - $result['destination'] = implode(' ', $result['destination']); - $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_forwarders_used` = `email_forwarders_used` - 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - $log->logAction(USR_ACTION, LOG_NOTICE, "deleted email forwarder for '" . $result['email_full'] . "'"); - redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); - } - else - { - ask_yesno('email_reallydelete_forwarder', $filename, array('id' => $id, 'forwarderid' => $forwarderid, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full']) . ' -> ' . $idna_convert->decode($forwarder)); - } - } - } - } -} - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: customer_email.php 2718 2009-04-30 18:36:58Z flo $ + */ + +define('AREA', 'customer'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'overview') +{ + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email"); + eval("echo \"" . getTemplate("email/email") . "\";"); +} +elseif($page == 'emails') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_email::emails"); + $fields = array( + 'd.domain' => $lng['domains']['domainname'], + 'm.email_full' => $lng['emails']['emailaddress'], + 'm.destination' => $lng['emails']['forwarders'] + ); + $paging = new paging($userinfo, $db, TABLE_MAIL_VIRTUAL, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query('SELECT `m`.`id`, `m`.`domainid`, `m`.`email`, `m`.`email_full`, `m`.`iscatchall`, `u`.`quota`, `m`.`destination`, `m`.`popaccountid`, `d`.`domain` FROM `' . TABLE_MAIL_VIRTUAL . '` `m` LEFT JOIN `' . TABLE_PANEL_DOMAINS . '` `d` ON (`m`.`domainid` = `d`.`id`) LEFT JOIN `' . TABLE_MAIL_USERS . '` `u` ON (`m`.`popaccountid` = `u`.`id`) WHERE `m`.`customerid`="' . $db->escape($userinfo['customerid']) . '" ' . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $emails = array(); + + while($row = $db->fetch_array($result)) + { + if(!isset($emails[$row['domain']]) + || !is_array($emails[$row['domain']])) + { + $emails[$row['domain']] = array(); + } + + $emails[$row['domain']][$row['email_full']] = $row; + } + + if($paging->sortfield == 'd.domain' + && $paging->sortorder == 'desc') + { + krsort($emails); + } + else + { + ksort($emails); + } + + $i = 0; + $count = 0; + $accounts = ''; + $emails_count = 0; + $domainname = ''; + foreach($emails as $domainid => $emailaddresses) + { + if($paging->sortfield == 'm.email_full' + && $paging->sortorder == 'desc') + { + krsort($emailaddresses); + } + else + { + ksort($emailaddresses); + } + + foreach($emailaddresses as $row) + { + if($paging->checkDisplay($i)) + { + if($domainname != $idna_convert->decode($row['domain'])) + { + $domainname = $idna_convert->decode($row['domain']); + eval("\$accounts.=\"" . getTemplate("email/emails_domain") . "\";"); + } + + $emails_count++; + $row['email'] = $idna_convert->decode($row['email']); + $row['email_full'] = $idna_convert->decode($row['email_full']); + $row['destination'] = explode(' ', $row['destination']); + uasort($row['destination'], 'strcasecmp'); + + while(list($dest_id, $destination) = each($row['destination'])) + { + $row['destination'][$dest_id] = $idna_convert->decode($row['destination'][$dest_id]); + + if($row['destination'][$dest_id] == $row['email_full']) + { + unset($row['destination'][$dest_id]); + } + } + + $destinations_count = count($row['destination']); + $row['destination'] = implode(', ', $row['destination']); + + if(strlen($row['destination']) > 35) + { + $row['destination'] = substr($row['destination'], 0, 32) . '... (' . $destinations_count . ')'; + } + + $row = htmlentities_array($row); + eval("\$accounts.=\"" . getTemplate("email/emails_email") . "\";"); + $count++; + } + + $i++; + } + } + + $emaildomains_count = $db->query_first("SELECT COUNT(`id`) AS `count` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' AND `isemaildomain`='1' ORDER BY `domain` ASC"); + $emaildomains_count = $emaildomains_count['count']; + eval("echo \"" . getTemplate("email/emails") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['email']) + && $result['email'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $update_users_query_addon = ''; + + if($result['destination'] != '') + { + $result['destination'] = explode(' ', $result['destination']); + $number_forwarders = count($result['destination']); + + if($result['popaccountid'] != 0) + { + // Free the Quota used by the email account + + if($settings['system']['mail_quota_enabled'] == 1) + { + $res_quota = $db->query_first("SELECT `quota` FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); + $update_users_query_addon.= " , `email_quota_used` = `email_quota_used` - " . (int)$res_quota['quota'] . " "; + } + + $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); + $update_users_query_addon .= " , `email_accounts_used` = `email_accounts_used` - 1 "; + $number_forwarders-= 1; + $log->logAction(USR_ACTION, LOG_NOTICE, "deleted forwarder for email address '" . $result['email'] . "'"); + } + } + else + { + $number_forwarders = 0; + } + + $db->query("DELETE FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `emails_used`=`emails_used` - 1 , `email_forwarders_used` = `email_forwarders_used` - " . (int)$number_forwarders . " $update_users_query_addon WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "deleted email address '" . $result['email'] . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('email_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full'])); + } + } + } + elseif($action == 'add') + { + if($userinfo['emails_used'] < $userinfo['emails'] + || $userinfo['emails'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $email_part = $_POST['email_part']; + $domain = $idna_convert->encode(validate($_POST['domain'], 'domain')); + $domain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($domain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "' AND `isemaildomain`='1' "); + + if(isset($_POST['iscatchall']) + && $_POST['iscatchall'] == '1') + { + $iscatchall = '1'; + $email = '@' . $domain; + } + else + { + $iscatchall = '0'; + $email = $email_part . '@' . $domain; + } + + $email_full = $email_part . '@' . $domain; + + if(!validateEmail($email_full)) + { + standard_error('emailiswrong', $email_full); + } + + $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE ( `email`='" . $db->escape($email) . "' OR `email_full` = '" . $db->escape($email_full) . "' ) AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + + if($email == '' + || $email_full == '' + || $email_part == '') + { + standard_error(array('stringisempty', 'emailadd')); + } + elseif($domain == '') + { + standard_error('domaincantbeempty'); + } + elseif($domain_check['domain'] != $domain) + { + standard_error('maindomainnonexist', $domain); + } + elseif($email_check['email_full'] == $email_full) + { + standard_error('emailexistalready', $email_full); + } + elseif($email_check['email'] == $email) + { + standard_error('youhavealreadyacatchallforthisdomain'); + exit; + } + else + { + $db->query("INSERT INTO `" . TABLE_MAIL_VIRTUAL . "` (`customerid`, `email`, `email_full`, `iscatchall`, `domainid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($email) . "', '" . $db->escape($email_full) . "', '" . $db->escape($iscatchall) . "', '" . (int)$domain_check['id'] . "')"); + $address_id = $db->insert_id(); + $db->query("UPDATE " . TABLE_PANEL_CUSTOMERS . " SET `emails_used` = `emails_used` + 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "added email address '" . $email_full . "'"); + redirectTo($filename, Array('page' => $page, 'action' => 'edit', 'id' => $address_id, 's' => $s)); + } + } + else + { + $result = $db->query("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `isemaildomain`='1' ORDER BY `domain` ASC"); + $domains = ''; + + while($row = $db->fetch_array($result)) + { + $domains.= makeoption($idna_convert->decode($row['domain']), $row['domain']); + } + + $iscatchall = makeyesno('iscatchall', '1', '0', '0'); + eval("echo \"" . getTemplate("email/emails_add") . "\";"); + } + } + else + { + standard_error('allresourcesused'); + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); + + if(isset($result['email']) + && $result['email'] != '') + { + $result['email'] = $idna_convert->decode($result['email']); + $result['email_full'] = $idna_convert->decode($result['email_full']); + $result['destination'] = explode(' ', $result['destination']); + uasort($result['destination'], 'strcasecmp'); + $forwarders = ''; + $forwarders_count = 0; + + while(list($dest_id, $destination) = each($result['destination'])) + { + $destination = $idna_convert->decode($destination); + + if($destination != $result['email_full'] + && $destination != '') + { + eval("\$forwarders.=\"" . getTemplate("email/emails_edit_forwarder") . "\";"); + $forwarders_count++; + } + + $result['destination'][$dest_id] = $destination; + } + + $destinations_count = count($result['destination']); + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("email/emails_edit") . "\";"); + } + } + elseif($action == 'togglecatchall' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['email']) + && $result['email'] != '') + { + if($result['iscatchall'] == '1') + { + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `email` = '" . $db->escape($result['email_full']) . "', `iscatchall` = '0' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['id'] . "'"); + } + else + { + $email_parts = explode('@', $result['email_full']); + $email = '@' . $email_parts[1]; + $email_check = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `email`='" . $db->escape($email) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + + if($email_check['email'] == $email) + { + standard_error('youhavealreadyacatchallforthisdomain'); + exit; + } + else + { + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `email` = '$email' , `iscatchall` = '1' WHERE `customerid`='" . $userinfo['customerid'] . "' AND `id`='" . $result['id'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "edited email address '" . $email . "'"); + } + } + + redirectTo($filename, Array('page' => $page, 'action' => 'edit', 'id' => $id, 's' => $s)); + } + } +} +elseif($page == 'accounts') +{ + if($action == 'add' + && $id != 0) + { + // ensure the int is a positive one + + if(isset($_POST['email_quota'])) + { + $quota = validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong'); + } + + if($userinfo['email_accounts'] == '-1' + || ($userinfo['email_accounts_used'] < $userinfo['email_accounts'])) + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid`, `domainid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['email']) + && $result['email'] != '' + && $result['popaccountid'] == '0') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $email_full = $result['email_full']; + $username = $idna_convert->decode($email_full); + $password = validate($_POST['email_password'], 'password'); + + if($settings['panel']['sendalternativemail'] == 1) + { + $alternative_email = $idna_convert->encode(validate($_POST['alternative_email'], 'alternative_email')); + } + else + { + $alternative_email = ''; + } + + if($settings['system']['mail_quota_enabled'] == 1) + { + if($userinfo['email_quota'] != '-1' + && ($quota == 0 || ($quota + $userinfo['email_quota_used']) > $userinfo['email_quota'])) + { + standard_error('allocatetoomuchquota', $quota); + } + } + else + { + $quota = 0; + } + + if($email_full == '') + { + standard_error(array('stringisempty', 'emailadd')); + } + elseif($password == '' + && !($settings['panel']['sendalternativemail'] == 1 && validateEmail($alternative_email))) + { + standard_error(array('stringisempty', 'mypassword')); + } + else + { + if($password == '') + { + $password = substr(md5(uniqid(microtime(), 1)), 12, 6); + } + + $db->query("INSERT INTO `" . TABLE_MAIL_USERS . "` (`customerid`, `email`, `username`, " . ($settings['system']['mailpwcleartext'] == '1' ? '`password`, ' : '') . " `password_enc`, `homedir`, `maildir`, `uid`, `gid`, `domainid`, `postfix`, `quota`, `imap`, `pop3`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($email_full) . "', '" . $db->escape($username) . "', " . ($settings['system']['mailpwcleartext'] == '1' ? "'" . $db->escape($password) . "'," : '') . " ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($settings['system']['vmail_homedir']) . "', '" . $db->escape($userinfo['loginname'] . '/' . $email_full . '/') . "', '" . (int)$settings['system']['vmail_uid'] . "', '" . (int)$settings['system']['vmail_gid'] . "', '" . (int)$result['domainid'] . "', 'y', '" . (int)$quota . "', '" . (int)$userinfo['imap'] . "', '" . (int)$userinfo['pop3'] . "')"); + $popaccountid = $db->insert_id(); + $result['destination'].= ' ' . $email_full; + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "', `popaccountid` = '" . (int)$popaccountid . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_accounts_used`=`email_accounts_used`+1, `email_quota_used`=`email_quota_used`+" . (int)$quota . " WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "added email account for '" . $email_full . "'"); + $replace_arr = array( + 'EMAIL' => $email_full, + 'USERNAME' => $username, + 'PASSWORD' => $password + ); + $admin = $db->query_first('SELECT `firstname`, `name`, `company`, `email` FROM `' . TABLE_PANEL_ADMINS . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\''); + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_subject\''); + $mail_subject = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success']['subject']), $replace_arr)); + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_mailbody\''); + $mail_body = html_entity_decode(replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success']['mailbody']), $replace_arr)); + $mail->From = $admin['email']; + $mail->FromName = getCorrectUserSalutation($admin); + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($email_full, getCorrectUserSalutation($userinfo)); + + if(!$mail->Send()) + { + if($mail->ErrorInfo != '') + { + $mailerr_msg = $mail->ErrorInfo; + } + else + { + $mailerr_msg = $email; + } + + $log->logAction(USR_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); + standard_error('errorsendingmail', $email); + } + + $mail->ClearAddresses(); + + if(validateEmail($alternative_email) + && $settings['panel']['sendalternativemail'] == 1) + { + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_alternative_subject\''); + $mail_subject = replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success_alternative']['subject']), $replace_arr); + $result = $db->query_first('SELECT `value` FROM `' . TABLE_PANEL_TEMPLATES . '` WHERE `adminid`=\'' . (int)$userinfo['adminid'] . '\' AND `language`=\'' . $db->escape($userinfo['def_language']) . '\' AND `templategroup`=\'mails\' AND `varname`=\'pop_success_alternative_mailbody\''); + $mail_body = replace_variables((($result['value'] != '') ? $result['value'] : $lng['mails']['pop_success_alternative']['mailbody']), $replace_arr); + $mail->From = $admin['email']; + $mail->FromName = getCorrectUserSalutation($admin); + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($idna_convert->encode($alternative_email), getCorrectUserSalutation($userinfo)); + + if(!$mail->Send()) + { + if($mail->ErrorInfo != '') + { + $mailerr_msg = $mail->ErrorInfo; + } + else + { + $mailerr_msg = $alternative_email; + } + + $log->logAction(USR_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); + standard_error(array('errorsendingmail', $alternative_email)); + } + + $mail->ClearAddresses(); + } + + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + } + else + { + $result['email_full'] = $idna_convert->decode($result['email_full']); + $result = htmlentities_array($result); + $quota = $settings['system']['mail_quota']; + eval("echo \"" . getTemplate("email/account_add") . "\";"); + } + } + } + else + { + standard_error(array('allresourcesused', 'allocatetoomuchquota'), $quota); + } + } + elseif($action == 'changepw' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['popaccountid']) + && $result['popaccountid'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $password = validate($_POST['email_password'], 'password'); + + if($password == '') + { + standard_error(array('stringisempty', 'mypassword')); + exit; + } + else + { + $log->logAction(USR_ACTION, LOG_NOTICE, "changed email password for '" . $result['email_full'] . "'"); + $result = $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET " . ($settings['system']['mailpwcleartext'] == '1' ? "`password` = '" . $db->escape($password) . "', " : '') . " `password_enc`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + } + else + { + $result['email_full'] = $idna_convert->decode($result['email_full']); + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("email/account_changepw") . "\";"); + } + } + } + elseif($action == 'changequota' + && $settings['system']['mail_quota_enabled'] == '1' + && $id != 0) + { + $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); + + if(isset($result['popaccountid']) + && $result['popaccountid'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $quota = (int)validate($_POST['email_quota'], 'email_quota', '/^\d+$/', 'vmailquotawrong'); + + if($userinfo['email_quota'] != '-1' + && ($quota == 0 || ($quota + $userinfo['email_quota_used'] - $result['quota']) > $userinfo['email_quota'])) + { + standard_error('allocatetoomuchquota', $quota); + } + else + { + $log->logAction(USR_ACTION, LOG_NOTICE, "updated quota for email address '" . $result['email'] . "' to " . $quota . " MB"); + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `quota` = '" . (int)$quota . "' WHERE `id` = " . $result['popaccountid'] . " AND `customerid`='" . $userinfo['customerid'] . "'"); + + if($userinfo['email_quota'] != '-1') + { + $new_used_quota = $userinfo['email_quota_used'] + ($quota - $result['quota']); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_quota_used` = " . $new_used_quota . " WHERE `customerid` = '" . $userinfo['customerid'] . "'"); + } + + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + } + else + { + $result['email_full'] = $idna_convert->decode($result['email_full']); + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("email/account_changequota") . "\";"); + } + } + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `v`.`id`, `v`.`email`, `v`.`email_full`, `v`.`iscatchall`, `v`.`destination`, `v`.`customerid`, `v`.`popaccountid`, `u`.`quota` FROM `" . TABLE_MAIL_VIRTUAL . "` `v` LEFT JOIN `" . TABLE_MAIL_USERS . "` `u` ON(`v`.`popaccountid` = `u`.`id`)WHERE `v`.`customerid`='" . (int)$userinfo['customerid'] . "' AND `v`.`id`='" . (int)$id . "'"); + + if(isset($result['popaccountid']) + && $result['popaccountid'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $db->query("DELETE FROM `" . TABLE_MAIL_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$result['popaccountid'] . "'"); + $result['destination'] = str_replace($result['email_full'], '', $result['destination']); + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "', `popaccountid` = '0' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if($settings['system']['mail_quota_enabled'] == '1' + && $userinfo['email_quota'] != '-1') + { + $quota = (int)$result['quota']; + } + else + { + $quota = 0; + } + + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_accounts_used` = `email_accounts_used` - 1, `email_quota_used` = `email_quota_used` - " . (int)$quota . " WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "deleted email account for '" . $result['email_full'] . "'"); + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + else + { + ask_yesno('email_reallydelete_account', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full'])); + } + } + } +} +elseif($page == 'forwarders') +{ + if($action == 'add' + && $id != 0) + { + if($userinfo['email_forwarders_used'] < $userinfo['email_forwarders'] + || $userinfo['email_forwarders'] == '-1') + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid`, `domainid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['email']) + && $result['email'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $destination = $idna_convert->encode($_POST['destination']); + $result['destination_array'] = explode(' ', $result['destination']); + + if($destination == '') + { + standard_error('destinationnonexist'); + } + elseif(!validateEmail($destination)) + { + standard_error('destinationiswrong', $destination); + } + elseif($destination == $result['email']) + { + standard_error('destinationalreadyexistasmail', $destination); + } + elseif(in_array($destination, $result['destination_array'])) + { + standard_error('destinationalreadyexist', $destination); + } + else + { + $result['destination'].= ' ' . $destination; + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_forwarders_used` = `email_forwarders_used` + 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_NOTICE, "added email forwarder for '" . $result['email_full'] . "'"); + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + } + else + { + $result['email_full'] = $idna_convert->decode($result['email_full']); + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("email/forwarder_add") . "\";"); + } + } + } + else + { + standard_error('allresourcesused'); + } + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `email`, `email_full`, `iscatchall`, `destination`, `customerid`, `popaccountid` FROM `" . TABLE_MAIL_VIRTUAL . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['destination']) + && $result['destination'] != '') + { + if(isset($_POST['forwarderid'])) + { + $forwarderid = intval($_POST['forwarderid']); + } + elseif(isset($_GET['forwarderid'])) + { + $forwarderid = intval($_GET['forwarderid']); + } + else + { + $forwarderid = 0; + } + + $result['destination'] = explode(' ', $result['destination']); + + if(isset($result['destination'][$forwarderid]) && $result['email'] != $result['destination'][$forwarderid]) + { + $forwarder = $result['destination'][$forwarderid]; + + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + unset($result['destination'][$forwarderid]); + $result['destination'] = implode(' ', $result['destination']); + $db->query("UPDATE `" . TABLE_MAIL_VIRTUAL . "` SET `destination` = '" . $db->escape(makeCorrectDestination($result['destination'])) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `email_forwarders_used` = `email_forwarders_used` - 1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + $log->logAction(USR_ACTION, LOG_NOTICE, "deleted email forwarder for '" . $result['email_full'] . "'"); + redirectTo($filename, Array('page' => 'emails', 'action' => 'edit', 'id' => $id, 's' => $s)); + } + else + { + ask_yesno('email_reallydelete_forwarder', $filename, array('id' => $id, 'forwarderid' => $forwarderid, 'page' => $page, 'action' => $action), $idna_convert->decode($result['email_full']) . ' -> ' . $idna_convert->decode($forwarder)); + } + } + } + } +} + +?> diff --git a/customer_extras.php b/customer_extras.php index f08d7173..d18df14c 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -1,426 +1,426 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: customer_extras.php 2692 2009-03-27 18:04:47Z flo $ - */ - -define('AREA', 'customer'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'overview') -{ - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras"); - eval("echo \"" . getTemplate("extras/extras") . "\";"); -} -elseif($page == 'htpasswds') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds"); - $fields = array( - 'username' => $lng['login']['username'], - 'path' => $lng['panel']['path'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_HTPASSWDS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - $htpasswds = ''; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - if(strpos($row['path'], $userinfo['documentroot']) === 0) - { - $row['path'] = substr($row['path'], strlen($userinfo['documentroot'])); - } - - $row = htmlentities_array($row); - eval("\$htpasswds.=\"" . getTemplate("extras/htpasswds_htpasswd") . "\";"); - $count++; - } - - $i++; - } - - eval("echo \"" . getTemplate("extras/htpasswds") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `customerid`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['username']) - && $result['username'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='$id'"); - $log->logAction(USR_ACTION, LOG_INFO, "deleted htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'"); - inserttask('1'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - if(strpos($result['path'], $userinfo['documentroot']) === 0) - { - $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); - } - - ask_yesno('extras_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username'] . ' (' . $result['path'] . ')'); - } - } - } - elseif($action == 'add') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $path = makeCorrectDir(validate($_POST['path'], 'path')); - $userpath = $path; - $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); - $username = validate($_POST['username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/'); - validate($_POST['directory_password'], 'password'); - $username_path_check = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `username`='" . $db->escape($username) . "' AND `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); - - if(CRYPT_STD_DES == 1) - { - $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); - $password = crypt($_POST['directory_password'], $saltfordescrypt); - } - else - { - $password = crypt($_POST['directory_password']); - } - - if(!$_POST['path']) - { - standard_error('invalidpath'); - } - - if($username == '') - { - standard_error(array('stringisempty', 'myloginname')); - } - elseif($username_path_check['username'] == $username - && $username_path_check['path'] == $path) - { - standard_error('userpathcombinationdupe'); - } - elseif($_POST['directory_password'] == '') - { - standard_error(array('stringisempty', 'mypassword')); - } - elseif($path == '') - { - standard_error('patherror'); - } - else - { - $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` (`customerid`, `username`, `password`, `path`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', '" . $db->escape($password) . "', '" . $db->escape($path) . "')"); - $log->logAction(USR_ACTION, LOG_INFO, "added htpasswd for '" . $username . " (" . $path . ")'"); - inserttask('1'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); - eval("echo \"" . getTemplate("extras/htpasswds_add") . "\";"); - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['username']) - && $result['username'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - validate($_POST['directory_password'], 'password'); - - if(CRYPT_STD_DES == 1) - { - $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); - $password = crypt($_POST['directory_password'], $saltfordescrypt); - } - else - { - $password = crypt($_POST['directory_password']); - } - - if($_POST['directory_password'] == '') - { - standard_error(array('stringisempty', 'mypassword')); - } - else - { - $db->query("UPDATE `" . TABLE_PANEL_HTPASSWDS . "` SET `password`='" . $db->escape($password) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "edited htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'"); - inserttask('1'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - if(strpos($result['path'], $userinfo['documentroot']) === 0) - { - $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); - } - - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("extras/htpasswds_edit") . "\";"); - } - } - } -} -elseif($page == 'htaccess') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess"); - $fields = array( - 'path' => $lng['panel']['path'], - 'options_indexes' => $lng['extras']['view_directory'], - 'error404path' => $lng['extras']['error404path'], - 'error403path' => $lng['extras']['error403path'], - 'error500path' => $lng['extras']['error500path'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_HTACCESS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `id`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - $htaccess = ''; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - if(strpos($row['path'], $userinfo['documentroot']) === 0) - { - $row['path'] = substr($row['path'], strlen($userinfo['documentroot'])); - } - - $row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']); - $row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']); - $row = htmlentities_array($row); - eval("\$htaccess.=\"" . getTemplate("extras/htaccess_htaccess") . "\";"); - $count++; - } - - $i++; - } - - eval("echo \"" . getTemplate("extras/htaccess") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['customerid']) - && $result['customerid'] != '' - && $result['customerid'] == $userinfo['customerid']) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $db->query("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "deleted htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'"); - inserttask('1'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('extras_reallydelete_pathoptions', $filename, array('id' => $id, 'page' => $page, 'action' => $action), str_replace($userinfo['documentroot'], '', $result['path'])); - } - } - } - elseif($action == 'add') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $path = makeCorrectDir(validate($_POST['path'], 'path')); - $userpath = $path; - $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); - $path_dupe_check = $db->query_first("SELECT `id`, `path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); - - if(!$_POST['path']) - { - standard_error('invalidpath'); - } - - if(($_POST['error404path'] === '') - || (validateUrl($idna_convert->encode($_POST['error404path'])))) - { - $error404path = $_POST['error404path']; - } - else - { - standard_error('mustbeurl'); - } - - if(($_POST['error403path'] === '') - || (validateUrl($idna_convert->encode($_POST['error403path'])))) - { - $error403path = $_POST['error403path']; - } - else - { - standard_error('mustbeurl'); - } - - if(($_POST['error500path'] === '') - || (validateUrl($idna_convert->encode($_POST['error500path'])))) - { - $error500path = $_POST['error500path']; - } - else - { - standard_error('mustbeurl'); - } - - if($path_dupe_check['path'] == $path) - { - standard_error('errordocpathdupe', $userpath); - } - elseif($path == '') - { - standard_error('patherror'); - } - else - { - $db->query('INSERT INTO `' . TABLE_PANEL_HTACCESS . '` (`customerid`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` ) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($path) . '", "' . $db->escape($_POST['options_indexes'] == '1' ? '1' : '0') . '", "' . $db->escape($error404path) . '", "' . $db->escape($error403path) . '", "' . $db->escape($error500path) . '" )'); - $log->logAction(USR_ACTION, LOG_INFO, "added htaccess for '" . $path . "'"); - inserttask('1'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); - $options_indexes = makeyesno('options_indexes', '1', '0', '1'); - eval("echo \"" . getTemplate("extras/htaccess_add") . "\";"); - } - } - elseif(($action == 'edit') - && ($id != 0)) - { - $result = $db->query_first('SELECT * FROM `' . TABLE_PANEL_HTACCESS . '` WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"'); - - if((isset($result['customerid'])) - && ($result['customerid'] != '') - && ($result['customerid'] == $userinfo['customerid'])) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $option_indexes = intval($_POST['options_indexes']); - - if($option_indexes != '1') - { - $option_indexes = '0'; - } - - if(($_POST['error404path'] === '') - || (validateUrl($idna_convert->encode($_POST['error404path'])))) - { - $error404path = $_POST['error404path']; - } - else - { - standard_error('mustbeurl'); - } - - if(($_POST['error403path'] === '') - || (validateUrl($idna_convert->encode($_POST['error403path'])))) - { - $error403path = $_POST['error403path']; - } - else - { - standard_error('mustbeurl'); - } - - if(($_POST['error500path'] === '') - || (validateUrl($idna_convert->encode($_POST['error500path'])))) - { - $error500path = $_POST['error500path']; - } - else - { - standard_error('mustbeurl'); - } - - if(($option_indexes != $result['options_indexes']) - || ($error404path != $result['error404path']) - || ($error403path != $result['error403path']) - || ($error500path != $result['error500path'])) - { - inserttask('1'); - $db->query('UPDATE `' . TABLE_PANEL_HTACCESS . '` SET `options_indexes` = "' . $db->escape($option_indexes) . '", `error404path` = "' . $db->escape($error404path) . '", `error403path` = "' . $db->escape($error403path) . '", `error500path` = "' . $db->escape($error500path) . '" WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"'); - $log->logAction(USR_ACTION, LOG_INFO, "edited htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'"); - } - - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - if(strpos($result['path'], $userinfo['documentroot']) === 0) - { - $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); - } - - $result['error404path'] = $result['error404path']; - $result['error403path'] = $result['error403path']; - $result['error500path'] = $result['error500path']; - $options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']); - $result = htmlentities_array($result); - eval("echo \"" . getTemplate("extras/htaccess_edit") . "\";"); - } - } - } -} - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: customer_extras.php 2692 2009-03-27 18:04:47Z flo $ + */ + +define('AREA', 'customer'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'overview') +{ + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras"); + eval("echo \"" . getTemplate("extras/extras") . "\";"); +} +elseif($page == 'htpasswds') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htpasswds"); + $fields = array( + 'username' => $lng['login']['username'], + 'path' => $lng['panel']['path'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_HTPASSWDS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + $htpasswds = ''; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + if(strpos($row['path'], $userinfo['documentroot']) === 0) + { + $row['path'] = substr($row['path'], strlen($userinfo['documentroot'])); + } + + $row = htmlentities_array($row); + eval("\$htpasswds.=\"" . getTemplate("extras/htpasswds_htpasswd") . "\";"); + $count++; + } + + $i++; + } + + eval("echo \"" . getTemplate("extras/htpasswds") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `customerid`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['username']) + && $result['username'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $db->query("DELETE FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='$id'"); + $log->logAction(USR_ACTION, LOG_INFO, "deleted htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'"); + inserttask('1'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + if(strpos($result['path'], $userinfo['documentroot']) === 0) + { + $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); + } + + ask_yesno('extras_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username'] . ' (' . $result['path'] . ')'); + } + } + } + elseif($action == 'add') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $path = makeCorrectDir(validate($_POST['path'], 'path')); + $userpath = $path; + $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); + $username = validate($_POST['username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/'); + validate($_POST['directory_password'], 'password'); + $username_path_check = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `username`='" . $db->escape($username) . "' AND `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + + if(CRYPT_STD_DES == 1) + { + $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); + $password = crypt($_POST['directory_password'], $saltfordescrypt); + } + else + { + $password = crypt($_POST['directory_password']); + } + + if(!$_POST['path']) + { + standard_error('invalidpath'); + } + + if($username == '') + { + standard_error(array('stringisempty', 'myloginname')); + } + elseif($username_path_check['username'] == $username + && $username_path_check['path'] == $path) + { + standard_error('userpathcombinationdupe'); + } + elseif($_POST['directory_password'] == '') + { + standard_error(array('stringisempty', 'mypassword')); + } + elseif($path == '') + { + standard_error('patherror'); + } + else + { + $db->query("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` (`customerid`, `username`, `password`, `path`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', '" . $db->escape($password) . "', '" . $db->escape($path) . "')"); + $log->logAction(USR_ACTION, LOG_INFO, "added htpasswd for '" . $username . " (" . $path . ")'"); + inserttask('1'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + eval("echo \"" . getTemplate("extras/htpasswds_add") . "\";"); + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `username`, `path` FROM `" . TABLE_PANEL_HTPASSWDS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['username']) + && $result['username'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + validate($_POST['directory_password'], 'password'); + + if(CRYPT_STD_DES == 1) + { + $saltfordescrypt = substr(md5(uniqid(microtime(), 1)), 4, 2); + $password = crypt($_POST['directory_password'], $saltfordescrypt); + } + else + { + $password = crypt($_POST['directory_password']); + } + + if($_POST['directory_password'] == '') + { + standard_error(array('stringisempty', 'mypassword')); + } + else + { + $db->query("UPDATE `" . TABLE_PANEL_HTPASSWDS . "` SET `password`='" . $db->escape($password) . "' WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "edited htpasswd for '" . $result['username'] . " (" . $result['path'] . ")'"); + inserttask('1'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + if(strpos($result['path'], $userinfo['documentroot']) === 0) + { + $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); + } + + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("extras/htpasswds_edit") . "\";"); + } + } + } +} +elseif($page == 'htaccess') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_extras::htaccess"); + $fields = array( + 'path' => $lng['panel']['path'], + 'options_indexes' => $lng['extras']['view_directory'], + 'error404path' => $lng['extras']['error404path'], + 'error403path' => $lng['extras']['error403path'], + 'error500path' => $lng['extras']['error500path'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_HTACCESS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `id`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + $htaccess = ''; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + if(strpos($row['path'], $userinfo['documentroot']) === 0) + { + $row['path'] = substr($row['path'], strlen($userinfo['documentroot'])); + } + + $row['options_indexes'] = str_replace('1', $lng['panel']['yes'], $row['options_indexes']); + $row['options_indexes'] = str_replace('0', $lng['panel']['no'], $row['options_indexes']); + $row = htmlentities_array($row); + eval("\$htaccess.=\"" . getTemplate("extras/htaccess_htaccess") . "\";"); + $count++; + } + + $i++; + } + + eval("echo \"" . getTemplate("extras/htaccess") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT * FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['customerid']) + && $result['customerid'] != '' + && $result['customerid'] == $userinfo['customerid']) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $db->query("DELETE FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "deleted htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'"); + inserttask('1'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('extras_reallydelete_pathoptions', $filename, array('id' => $id, 'page' => $page, 'action' => $action), str_replace($userinfo['documentroot'], '', $result['path'])); + } + } + } + elseif($action == 'add') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $path = makeCorrectDir(validate($_POST['path'], 'path')); + $userpath = $path; + $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); + $path_dupe_check = $db->query_first("SELECT `id`, `path` FROM `" . TABLE_PANEL_HTACCESS . "` WHERE `path`='" . $db->escape($path) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + + if(!$_POST['path']) + { + standard_error('invalidpath'); + } + + if(($_POST['error404path'] === '') + || (validateUrl($idna_convert->encode($_POST['error404path'])))) + { + $error404path = $_POST['error404path']; + } + else + { + standard_error('mustbeurl'); + } + + if(($_POST['error403path'] === '') + || (validateUrl($idna_convert->encode($_POST['error403path'])))) + { + $error403path = $_POST['error403path']; + } + else + { + standard_error('mustbeurl'); + } + + if(($_POST['error500path'] === '') + || (validateUrl($idna_convert->encode($_POST['error500path'])))) + { + $error500path = $_POST['error500path']; + } + else + { + standard_error('mustbeurl'); + } + + if($path_dupe_check['path'] == $path) + { + standard_error('errordocpathdupe', $userpath); + } + elseif($path == '') + { + standard_error('patherror'); + } + else + { + $db->query('INSERT INTO `' . TABLE_PANEL_HTACCESS . '` (`customerid`, `path`, `options_indexes`, `error404path`, `error403path`, `error500path` ) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($path) . '", "' . $db->escape($_POST['options_indexes'] == '1' ? '1' : '0') . '", "' . $db->escape($error404path) . '", "' . $db->escape($error403path) . '", "' . $db->escape($error500path) . '" )'); + $log->logAction(USR_ACTION, LOG_INFO, "added htaccess for '" . $path . "'"); + inserttask('1'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + $options_indexes = makeyesno('options_indexes', '1', '0', '1'); + eval("echo \"" . getTemplate("extras/htaccess_add") . "\";"); + } + } + elseif(($action == 'edit') + && ($id != 0)) + { + $result = $db->query_first('SELECT * FROM `' . TABLE_PANEL_HTACCESS . '` WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"'); + + if((isset($result['customerid'])) + && ($result['customerid'] != '') + && ($result['customerid'] == $userinfo['customerid'])) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $option_indexes = intval($_POST['options_indexes']); + + if($option_indexes != '1') + { + $option_indexes = '0'; + } + + if(($_POST['error404path'] === '') + || (validateUrl($idna_convert->encode($_POST['error404path'])))) + { + $error404path = $_POST['error404path']; + } + else + { + standard_error('mustbeurl'); + } + + if(($_POST['error403path'] === '') + || (validateUrl($idna_convert->encode($_POST['error403path'])))) + { + $error403path = $_POST['error403path']; + } + else + { + standard_error('mustbeurl'); + } + + if(($_POST['error500path'] === '') + || (validateUrl($idna_convert->encode($_POST['error500path'])))) + { + $error500path = $_POST['error500path']; + } + else + { + standard_error('mustbeurl'); + } + + if(($option_indexes != $result['options_indexes']) + || ($error404path != $result['error404path']) + || ($error403path != $result['error403path']) + || ($error500path != $result['error500path'])) + { + inserttask('1'); + $db->query('UPDATE `' . TABLE_PANEL_HTACCESS . '` SET `options_indexes` = "' . $db->escape($option_indexes) . '", `error404path` = "' . $db->escape($error404path) . '", `error403path` = "' . $db->escape($error403path) . '", `error500path` = "' . $db->escape($error500path) . '" WHERE `customerid` = "' . (int)$userinfo['customerid'] . '" AND `id` = "' . (int)$id . '"'); + $log->logAction(USR_ACTION, LOG_INFO, "edited htaccess for '" . str_replace($userinfo['documentroot'], '', $result['path']) . "'"); + } + + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + if(strpos($result['path'], $userinfo['documentroot']) === 0) + { + $result['path'] = substr($result['path'], strlen($userinfo['documentroot'])); + } + + $result['error404path'] = $result['error404path']; + $result['error403path'] = $result['error403path']; + $result['error500path'] = $result['error500path']; + $options_indexes = makeyesno('options_indexes', '1', '0', $result['options_indexes']); + $result = htmlentities_array($result); + eval("echo \"" . getTemplate("extras/htaccess_edit") . "\";"); + } + } + } +} + +?> diff --git a/customer_ftp.php b/customer_ftp.php index 45e0947b..b33ded0c 100644 --- a/customer_ftp.php +++ b/customer_ftp.php @@ -1,243 +1,243 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: customer_ftp.php 2707 2009-04-17 07:47:29Z flo $ - */ - -define('AREA', 'customer'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'overview') -{ - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp"); - eval("echo \"" . getTemplate("ftp/ftp") . "\";"); -} -elseif($page == 'accounts') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts"); - $fields = array( - 'username' => $lng['login']['username'], - 'homedir' => $lng['panel']['path'] - ); - $paging = new paging($userinfo, $db, TABLE_FTP_USERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - $accounts = ''; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - if(strpos($row['homedir'], $userinfo['documentroot']) === 0) - { - $row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot'])); - } - else - { - $row['documentroot'] = $row['homedir']; - } - - $row['documentroot'] = makeCorrectDir($row['documentroot']); - - $row = htmlentities_array($row); - eval("\$accounts.=\"" . getTemplate("ftp/accounts_account") . "\";"); - $count++; - } - - $i++; - } - - $ftps_count = $db->num_rows($result); - eval("echo \"" . getTemplate("ftp/accounts") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `username`, `homedir`, `up_count`, `up_bytes`, `down_count`, `down_bytes` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['username']) - && $result['username'] != $userinfo['loginname']) - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_count`=`up_count`+'" . (int)$result['up_count'] . "', `up_bytes`=`up_bytes`+'" . (int)$result['up_bytes'] . "', `down_count`=`down_count`+'" . (int)$result['down_count'] . "', `down_bytes`=`down_bytes`+'" . (int)$result['down_bytes'] . "' WHERE `username`='" . $db->escape($userinfo['loginname']) . "'"); - $db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "deleted ftp-account '" . $result['username'] . "'"); - $db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=REPLACE(`members`,'," . $db->escape($result['username']) . "','') WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - - // $db->query("DELETE FROM `".TABLE_FTP_GROUPS."` WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'"); - - if($userinfo['ftps_used'] == '1') - { - $resetaccnumber = " , `ftp_lastaccountnumber`='0'"; - } - else - { - $resetaccnumber = ''; - } - - $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`-1 $resetaccnumber WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('ftp_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username']); - } - } - else - { - standard_error('ftp_cantdeletemainaccount'); - } - } - elseif($action == 'add') - { - if($userinfo['ftps_used'] < $userinfo['ftps'] - || $userinfo['ftps'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $path = validate($_POST['path'], 'path'); - $password = validate($_POST['ftp_password'], 'password'); - - if($settings['customer']['ftpatdomain'] == '1') - { - $ftpusername = validate($_POST['ftp_username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/'); - if($ftpusername == '') - { - standard_error(array('stringisempty', 'username')); - } - $ftpdomain = $idna_convert->encode(validate($_POST['ftp_domain'], 'domain')); - $ftpdomain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($ftpdomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); - if($ftpdomain_check['domain'] != $ftpdomain) - { - standard_error('maindomainnonexist', $domain); - } - $username = $ftpusername . "@" . $ftpdomain; - } - else - { - $username = $userinfo['loginname'] . $settings['customer']['ftpprefix'] . (intval($userinfo['ftp_lastaccountnumber']) + 1); - } - - $username_check = $db->query_first('SELECT * FROM `' . TABLE_FTP_USERS .'` WHERE `username` = \'' . $db->escape($username) . '\''); - - if(!empty($username_check) && $username_check['username'] = $username) - { - standard_error('usernamealreadyexists', $username); - } - elseif($password == '') - { - standard_error(array('stringisempty', 'mypassword')); - } - elseif($path == '') - { - standard_error('patherror'); - } - else - { - $userpath = makeCorrectDir($path); - $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); - - $db->query("INSERT INTO `" . TABLE_FTP_USERS . "` (`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($path) . "', 'y', '" . (int)$userinfo['guid'] . "', '" . (int)$userinfo['guid'] . "')"); - $db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=CONCAT_WS(',',`members`,'" . $db->escape($username) . "') WHERE `customerid`='" . $userinfo['customerid'] . "' AND `gid`='" . (int)$userinfo['guid'] . "'"); - - // $db->query("INSERT INTO `".TABLE_FTP_GROUPS."` (`customerid`, `groupname`, `gid`, `members`) VALUES ('".$userinfo['customerid']."', '$username', '$uid', '$username')"); - - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`+1, `ftp_lastaccountnumber`=`ftp_lastaccountnumber`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - - // $db->query("UPDATE `".TABLE_PANEL_SETTINGS."` SET `value`='$uid' WHERE settinggroup='ftp' AND varname='lastguid'"); - - $log->logAction(USR_ACTION, LOG_INFO, "added ftp-account '" . $username . " (" . $path . ")'"); - inserttask(5); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); - - if($settings['customer']['ftpatdomain'] == '1') - { - $domains = ''; - - $result_domains = $db->query("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); - - while($row_domain = $db->fetch_array($result_domains)) - { - $domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['domain']); - } - } - - eval("echo \"" . getTemplate("ftp/accounts_add") . "\";"); - } - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - - if(isset($result['username']) - && $result['username'] != '') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $password = validate($_POST['ftp_password'], 'password'); - - if($password == '') - { - standard_error(array('stringisempty', 'mypassword')); - exit; - } - else - { - $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `password`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); - $log->logAction(USR_ACTION, LOG_INFO, "edited ftp-account '" . $result['username'] . "'"); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - eval("echo \"" . getTemplate("ftp/accounts_edit") . "\";"); - } - } - } -} - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: customer_ftp.php 2707 2009-04-17 07:47:29Z flo $ + */ + +define('AREA', 'customer'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'overview') +{ + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp"); + eval("echo \"" . getTemplate("ftp/ftp") . "\";"); +} +elseif($page == 'accounts') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_ftp::accounts"); + $fields = array( + 'username' => $lng['login']['username'], + 'homedir' => $lng['panel']['path'] + ); + $paging = new paging($userinfo, $db, TABLE_FTP_USERS, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . $userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + $accounts = ''; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + if(strpos($row['homedir'], $userinfo['documentroot']) === 0) + { + $row['documentroot'] = substr($row['homedir'], strlen($userinfo['documentroot'])); + } + else + { + $row['documentroot'] = $row['homedir']; + } + + $row['documentroot'] = makeCorrectDir($row['documentroot']); + + $row = htmlentities_array($row); + eval("\$accounts.=\"" . getTemplate("ftp/accounts_account") . "\";"); + $count++; + } + + $i++; + } + + $ftps_count = $db->num_rows($result); + eval("echo \"" . getTemplate("ftp/accounts") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `username`, `homedir`, `up_count`, `up_bytes`, `down_count`, `down_bytes` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['username']) + && $result['username'] != $userinfo['loginname']) + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_count`=`up_count`+'" . (int)$result['up_count'] . "', `up_bytes`=`up_bytes`+'" . (int)$result['up_bytes'] . "', `down_count`=`down_count`+'" . (int)$result['down_count'] . "', `down_bytes`=`down_bytes`+'" . (int)$result['down_bytes'] . "' WHERE `username`='" . $db->escape($userinfo['loginname']) . "'"); + $db->query("DELETE FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "deleted ftp-account '" . $result['username'] . "'"); + $db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=REPLACE(`members`,'," . $db->escape($result['username']) . "','') WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + + // $db->query("DELETE FROM `".TABLE_FTP_GROUPS."` WHERE `customerid`='".$userinfo['customerid']."' AND `id`='$id'"); + + if($userinfo['ftps_used'] == '1') + { + $resetaccnumber = " , `ftp_lastaccountnumber`='0'"; + } + else + { + $resetaccnumber = ''; + } + + $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`-1 $resetaccnumber WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('ftp_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['username']); + } + } + else + { + standard_error('ftp_cantdeletemainaccount'); + } + } + elseif($action == 'add') + { + if($userinfo['ftps_used'] < $userinfo['ftps'] + || $userinfo['ftps'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $path = validate($_POST['path'], 'path'); + $password = validate($_POST['ftp_password'], 'password'); + + if($settings['customer']['ftpatdomain'] == '1') + { + $ftpusername = validate($_POST['ftp_username'], 'username', '/^[a-zA-Z0-9][a-zA-Z0-9\-_]+\$?$/'); + if($ftpusername == '') + { + standard_error(array('stringisempty', 'username')); + } + $ftpdomain = $idna_convert->encode(validate($_POST['ftp_domain'], 'domain')); + $ftpdomain_check = $db->query_first("SELECT `id`, `domain`, `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain`='" . $db->escape($ftpdomain) . "' AND `customerid`='" . (int)$userinfo['customerid'] . "'"); + if($ftpdomain_check['domain'] != $ftpdomain) + { + standard_error('maindomainnonexist', $domain); + } + $username = $ftpusername . "@" . $ftpdomain; + } + else + { + $username = $userinfo['loginname'] . $settings['customer']['ftpprefix'] . (intval($userinfo['ftp_lastaccountnumber']) + 1); + } + + $username_check = $db->query_first('SELECT * FROM `' . TABLE_FTP_USERS .'` WHERE `username` = \'' . $db->escape($username) . '\''); + + if(!empty($username_check) && $username_check['username'] = $username) + { + standard_error('usernamealreadyexists', $username); + } + elseif($password == '') + { + standard_error(array('stringisempty', 'mypassword')); + } + elseif($path == '') + { + standard_error('patherror'); + } + else + { + $userpath = makeCorrectDir($path); + $path = makeCorrectDir($userinfo['documentroot'] . '/' . $path); + + $db->query("INSERT INTO `" . TABLE_FTP_USERS . "` (`customerid`, `username`, `password`, `homedir`, `login_enabled`, `uid`, `gid`) VALUES ('" . (int)$userinfo['customerid'] . "', '" . $db->escape($username) . "', ENCRYPT('" . $db->escape($password) . "'), '" . $db->escape($path) . "', 'y', '" . (int)$userinfo['guid'] . "', '" . (int)$userinfo['guid'] . "')"); + $db->query("UPDATE `" . TABLE_FTP_GROUPS . "` SET `members`=CONCAT_WS(',',`members`,'" . $db->escape($username) . "') WHERE `customerid`='" . $userinfo['customerid'] . "' AND `gid`='" . (int)$userinfo['guid'] . "'"); + + // $db->query("INSERT INTO `".TABLE_FTP_GROUPS."` (`customerid`, `groupname`, `gid`, `members`) VALUES ('".$userinfo['customerid']."', '$username', '$uid', '$username')"); + + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`+1, `ftp_lastaccountnumber`=`ftp_lastaccountnumber`+1 WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + + // $db->query("UPDATE `".TABLE_PANEL_SETTINGS."` SET `value`='$uid' WHERE settinggroup='ftp' AND varname='lastguid'"); + + $log->logAction(USR_ACTION, LOG_INFO, "added ftp-account '" . $username . " (" . $path . ")'"); + inserttask(5); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $pathSelect = makePathfield($userinfo['documentroot'], $userinfo['guid'], $userinfo['guid'], $settings['panel']['pathedit']); + + if($settings['customer']['ftpatdomain'] == '1') + { + $domains = ''; + + $result_domains = $db->query("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "'"); + + while($row_domain = $db->fetch_array($result_domains)) + { + $domains.= makeoption($idna_convert->decode($row_domain['domain']), $row_domain['domain']); + } + } + + eval("echo \"" . getTemplate("ftp/accounts_add") . "\";"); + } + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first("SELECT `id`, `username`, `homedir` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + + if(isset($result['username']) + && $result['username'] != '') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $password = validate($_POST['ftp_password'], 'password'); + + if($password == '') + { + standard_error(array('stringisempty', 'mypassword')); + exit; + } + else + { + $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `password`=ENCRYPT('" . $db->escape($password) . "') WHERE `customerid`='" . (int)$userinfo['customerid'] . "' AND `id`='" . (int)$id . "'"); + $log->logAction(USR_ACTION, LOG_INFO, "edited ftp-account '" . $result['username'] . "'"); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + eval("echo \"" . getTemplate("ftp/accounts_edit") . "\";"); + } + } + } +} + ?> \ No newline at end of file diff --git a/customer_mysql.php b/customer_mysql.php index f18d6b44..a220d4a6 100644 --- a/customer_mysql.php +++ b/customer_mysql.php @@ -1,252 +1,252 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: customer_mysql.php 2732 2009-10-30 16:24:48Z flo $ - */ - -define('AREA', 'customer'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -$need_root_db_sql_data = true; -require ("./lib/init.php"); - -if(isset($_POST['id'])) -{ - $id = intval($_POST['id']); -} -elseif(isset($_GET['id'])) -{ - $id = intval($_GET['id']); -} - -if($page == 'overview') -{ - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql"); - $lng['mysql']['description'] = str_replace('', $sql['host'], $lng['mysql']['description']); - eval("echo \"" . getTemplate("mysql/mysql") . "\";"); -} -elseif($page == 'mysqls') -{ - if($action == '') - { - $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls"); - $fields = array( - 'databasename' => $lng['mysql']['databasename'], - 'description' => $lng['mysql']['databasedescription'] - ); - $paging = new paging($userinfo, $db, TABLE_PANEL_DATABASES, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); - $result = $db->query("SELECT `id`, `databasename`, `description`, `dbserver` FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); - $paging->setEntries($db->num_rows($result)); - $sortcode = $paging->getHtmlSortCode($lng); - $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); - $searchcode = $paging->getHtmlSearchCode($lng); - $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); - $i = 0; - $count = 0; - $mysqls = ''; - - while($row = $db->fetch_array($result)) - { - if($paging->checkDisplay($i)) - { - $row = htmlentities_array($row); - eval("\$mysqls.=\"" . getTemplate("mysql/mysqls_database") . "\";"); - $count++; - } - - $i++; - } - - $mysqls_count = $db->num_rows($result); - eval("echo \"" . getTemplate("mysql/mysqls") . "\";"); - } - elseif($action == 'delete' - && $id != 0) - { - $result = $db->query_first('SELECT `id`, `databasename`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); - - if(isset($result['databasename']) - && $result['databasename'] != '') - { - if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']])) - { - $result['dbserver'] = 0; - } - - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - // Begin root-session - - $db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], ''); - unset($db_root->password); - foreach(array_map('trim', array_unique(explode(',', $settings['system']['mysql_access_host']))) as $mysql_access_host) - { - $db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); - $db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($result['databasename'])) . '` . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); - $db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($result['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"'); - } - - $db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($result['databasename']) . '`'); - $db_root->query('FLUSH PRIVILEGES'); - $db_root->close(); - - // End root-session - - $db->query('DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); - - if($userinfo['mysqls_used'] == '1') - { - $resetaccnumber = " , `mysql_lastaccountnumber`='0' "; - } - else - { - $resetaccnumber = ''; - } - - $result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`-1 ' . $resetaccnumber . 'WHERE `customerid`="' . (int)$userinfo['customerid'] . '"'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - ask_yesno('mysql_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['databasename']); - } - } - } - elseif($action == 'add') - { - if($userinfo['mysqls_used'] < $userinfo['mysqls'] - || $userinfo['mysqls'] == '-1') - { - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $password = validate($_POST['mysql_password'], 'password'); - - if($password == '') - { - standard_error(array('stringisempty', 'mypassword')); - } - else - { - $username = $userinfo['loginname'] . $settings['customer']['mysqlprefix'] . (intval($userinfo['mysql_lastaccountnumber']) + 1); - - if(count($sql_root) > 1) - { - $dbserver = validate($_POST['mysql_server'], html_entity_decode($lng['mysql']['mysql_server']), '', '', 0); - - if(!isset($sql_root[$dbserver]) || !is_array($sql_root[$dbserver])) - { - $dbserver = 0; - } - } - else - { - $dbserver = 0; - } - - // Begin root-session - - $db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], ''); - unset($db_root->password); - $db_root->query('CREATE DATABASE `' . $db_root->escape($username) . '`'); - $log->logAction(USR_ACTION, LOG_INFO, "created database '" . $username . "'"); - foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) - { - $db_root->query('GRANT ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($username)) . '`.* TO `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` IDENTIFIED BY \'password\''); - $db_root->query('SET PASSWORD FOR `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')'); - $log->logAction(USR_ACTION, LOG_NOTICE, "grant all privileges for '" . $username . "'@'" . $mysql_access_host . "'"); - } - - $db_root->query('FLUSH PRIVILEGES'); - $db_root->close(); - - // End root-session - // Statement modifyed for Database description -- PH 2004-11-29 - - $databasedescription = validate($_POST['description'], 'description'); - $result = $db->query('INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databasename`, `description`, `dbserver`) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($username) . '", "' . $db->escape($databasedescription) . '", "' . $db->escape($dbserver) . '")'); - $result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . (int)$userinfo['customerid'] . '"'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - } - else - { - $mysql_servers = ''; - - foreach($sql_root as $mysql_server => $mysql_server_details) - { - $mysql_servers .= makeoption($mysql_server_details['caption'], $mysql_server); - } - - eval("echo \"" . getTemplate("mysql/mysqls_add") . "\";"); - } - } - } - elseif($action == 'edit' - && $id != 0) - { - $result = $db->query_first('SELECT `id`, `databasename`, `description`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"'); - - if(isset($result['databasename']) - && $result['databasename'] != '') - { - if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']])) - { - $result['dbserver'] = 0; - } - - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - // Only change Password if it is set, do nothing if it is empty! -- PH 2004-11-29 - - $password = validate($_POST['mysql_password'], 'password'); - - if($password != '') - { - // Begin root-session - - $db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], ''); - unset($db_root->password); - foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) - { - $db_root->query('SET PASSWORD FOR `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')'); - } - - $db_root->query('FLUSH PRIVILEGES'); - $db_root->close(); - - // End root-session - } - - // Update the Database description -- PH 2004-11-29 - - $log->logAction(USR_ACTION, LOG_INFO, "edited database '" . $result['databasename'] . "'"); - $databasedescription = validate($_POST['description'], 'description'); - $result = $db->query('UPDATE `' . TABLE_PANEL_DATABASES . '` SET `description`="' . $db->escape($databasedescription) . '" WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); - redirectTo($filename, Array('page' => $page, 's' => $s)); - } - else - { - eval("echo \"" . getTemplate("mysql/mysqls_edit") . "\";"); - } - } - } -} - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: customer_mysql.php 2732 2009-10-30 16:24:48Z flo $ + */ + +define('AREA', 'customer'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +$need_root_db_sql_data = true; +require ("./lib/init.php"); + +if(isset($_POST['id'])) +{ + $id = intval($_POST['id']); +} +elseif(isset($_GET['id'])) +{ + $id = intval($_GET['id']); +} + +if($page == 'overview') +{ + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql"); + $lng['mysql']['description'] = str_replace('', $sql['host'], $lng['mysql']['description']); + eval("echo \"" . getTemplate("mysql/mysql") . "\";"); +} +elseif($page == 'mysqls') +{ + if($action == '') + { + $log->logAction(USR_ACTION, LOG_NOTICE, "viewed customer_mysql::mysqls"); + $fields = array( + 'databasename' => $lng['mysql']['databasename'], + 'description' => $lng['mysql']['databasedescription'] + ); + $paging = new paging($userinfo, $db, TABLE_PANEL_DATABASES, $fields, $settings['panel']['paging'], $settings['panel']['natsorting']); + $result = $db->query("SELECT `id`, `databasename`, `description`, `dbserver` FROM `" . TABLE_PANEL_DATABASES . "` WHERE `customerid`='" . (int)$userinfo['customerid'] . "' " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit()); + $paging->setEntries($db->num_rows($result)); + $sortcode = $paging->getHtmlSortCode($lng); + $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s); + $searchcode = $paging->getHtmlSearchCode($lng); + $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s); + $i = 0; + $count = 0; + $mysqls = ''; + + while($row = $db->fetch_array($result)) + { + if($paging->checkDisplay($i)) + { + $row = htmlentities_array($row); + eval("\$mysqls.=\"" . getTemplate("mysql/mysqls_database") . "\";"); + $count++; + } + + $i++; + } + + $mysqls_count = $db->num_rows($result); + eval("echo \"" . getTemplate("mysql/mysqls") . "\";"); + } + elseif($action == 'delete' + && $id != 0) + { + $result = $db->query_first('SELECT `id`, `databasename`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); + + if(isset($result['databasename']) + && $result['databasename'] != '') + { + if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']])) + { + $result['dbserver'] = 0; + } + + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + // Begin root-session + + $db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], ''); + unset($db_root->password); + foreach(array_map('trim', array_unique(explode(',', $settings['system']['mysql_access_host']))) as $mysql_access_host) + { + $db_root->query('REVOKE ALL PRIVILEGES ON * . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); + $db_root->query('REVOKE ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($result['databasename'])) . '` . * FROM `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '`'); + $db_root->query('DELETE FROM `mysql`.`user` WHERE `User` = "' . $db_root->escape($result['databasename']) . '" AND `Host` = "' . $db_root->escape($mysql_access_host) . '"'); + } + + $db_root->query('DROP DATABASE IF EXISTS `' . $db_root->escape($result['databasename']) . '`'); + $db_root->query('FLUSH PRIVILEGES'); + $db_root->close(); + + // End root-session + + $db->query('DELETE FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); + + if($userinfo['mysqls_used'] == '1') + { + $resetaccnumber = " , `mysql_lastaccountnumber`='0' "; + } + else + { + $resetaccnumber = ''; + } + + $result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`-1 ' . $resetaccnumber . 'WHERE `customerid`="' . (int)$userinfo['customerid'] . '"'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + ask_yesno('mysql_reallydelete', $filename, array('id' => $id, 'page' => $page, 'action' => $action), $result['databasename']); + } + } + } + elseif($action == 'add') + { + if($userinfo['mysqls_used'] < $userinfo['mysqls'] + || $userinfo['mysqls'] == '-1') + { + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $password = validate($_POST['mysql_password'], 'password'); + + if($password == '') + { + standard_error(array('stringisempty', 'mypassword')); + } + else + { + $username = $userinfo['loginname'] . $settings['customer']['mysqlprefix'] . (intval($userinfo['mysql_lastaccountnumber']) + 1); + + if(count($sql_root) > 1) + { + $dbserver = validate($_POST['mysql_server'], html_entity_decode($lng['mysql']['mysql_server']), '', '', 0); + + if(!isset($sql_root[$dbserver]) || !is_array($sql_root[$dbserver])) + { + $dbserver = 0; + } + } + else + { + $dbserver = 0; + } + + // Begin root-session + + $db_root = new db($sql_root[$dbserver]['host'], $sql_root[$dbserver]['user'], $sql_root[$dbserver]['password'], ''); + unset($db_root->password); + $db_root->query('CREATE DATABASE `' . $db_root->escape($username) . '`'); + $log->logAction(USR_ACTION, LOG_INFO, "created database '" . $username . "'"); + foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) + { + $db_root->query('GRANT ALL PRIVILEGES ON `' . str_replace('_', '\_', $db_root->escape($username)) . '`.* TO `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` IDENTIFIED BY \'password\''); + $db_root->query('SET PASSWORD FOR `' . $db_root->escape($username) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')'); + $log->logAction(USR_ACTION, LOG_NOTICE, "grant all privileges for '" . $username . "'@'" . $mysql_access_host . "'"); + } + + $db_root->query('FLUSH PRIVILEGES'); + $db_root->close(); + + // End root-session + // Statement modifyed for Database description -- PH 2004-11-29 + + $databasedescription = validate($_POST['description'], 'description'); + $result = $db->query('INSERT INTO `' . TABLE_PANEL_DATABASES . '` (`customerid`, `databasename`, `description`, `dbserver`) VALUES ("' . (int)$userinfo['customerid'] . '", "' . $db->escape($username) . '", "' . $db->escape($databasedescription) . '", "' . $db->escape($dbserver) . '")'); + $result = $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `mysqls_used`=`mysqls_used`+1, `mysql_lastaccountnumber`=`mysql_lastaccountnumber`+1 WHERE `customerid`="' . (int)$userinfo['customerid'] . '"'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + } + else + { + $mysql_servers = ''; + + foreach($sql_root as $mysql_server => $mysql_server_details) + { + $mysql_servers .= makeoption($mysql_server_details['caption'], $mysql_server); + } + + eval("echo \"" . getTemplate("mysql/mysqls_add") . "\";"); + } + } + } + elseif($action == 'edit' + && $id != 0) + { + $result = $db->query_first('SELECT `id`, `databasename`, `description`, `dbserver` FROM `' . TABLE_PANEL_DATABASES . '` WHERE `customerid`="' . $userinfo['customerid'] . '" AND `id`="' . $id . '"'); + + if(isset($result['databasename']) + && $result['databasename'] != '') + { + if(!isset($sql_root[$result['dbserver']]) || !is_array($sql_root[$result['dbserver']])) + { + $result['dbserver'] = 0; + } + + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + // Only change Password if it is set, do nothing if it is empty! -- PH 2004-11-29 + + $password = validate($_POST['mysql_password'], 'password'); + + if($password != '') + { + // Begin root-session + + $db_root = new db($sql_root[$result['dbserver']]['host'], $sql_root[$result['dbserver']]['user'], $sql_root[$result['dbserver']]['password'], ''); + unset($db_root->password); + foreach(array_map('trim', explode(',', $settings['system']['mysql_access_host'])) as $mysql_access_host) + { + $db_root->query('SET PASSWORD FOR `' . $db_root->escape($result['databasename']) . '`@`' . $db_root->escape($mysql_access_host) . '` = PASSWORD(\'' . $db_root->escape($password) . '\')'); + } + + $db_root->query('FLUSH PRIVILEGES'); + $db_root->close(); + + // End root-session + } + + // Update the Database description -- PH 2004-11-29 + + $log->logAction(USR_ACTION, LOG_INFO, "edited database '" . $result['databasename'] . "'"); + $databasedescription = validate($_POST['description'], 'description'); + $result = $db->query('UPDATE `' . TABLE_PANEL_DATABASES . '` SET `description`="' . $db->escape($databasedescription) . '" WHERE `customerid`="' . (int)$userinfo['customerid'] . '" AND `id`="' . (int)$id . '"'); + redirectTo($filename, Array('page' => $page, 's' => $s)); + } + else + { + eval("echo \"" . getTemplate("mysql/mysqls_edit") . "\";"); + } + } + } +} + ?> \ No newline at end of file diff --git a/index.php b/index.php index ff1900e5..06dd2967 100644 --- a/index.php +++ b/index.php @@ -1,271 +1,271 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Panel - * @version $Id: index.php 2693 2009-03-27 19:31:48Z flo $ - */ - -define('AREA', 'login'); - -/** - * Include our init.php, which manages Sessions, Language etc. - */ - -require ("./lib/init.php"); - -if($action == '') -{ - $action = 'login'; -} - -if($action == 'login') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $loginname = validate($_POST['loginname'], 'loginname'); - $password = validate($_POST['password'], 'password'); - $row = $db->query_first("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname`='" . $db->escape($loginname) . "'"); - - if($row['customer'] == $loginname) - { - $table = "`" . TABLE_PANEL_CUSTOMERS . "`"; - $uid = 'customerid'; - $adminsession = '0'; - } - else - { - $row = $db->query_first("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname`='" . $db->escape($loginname) . "'"); - - if($row['admin'] == $loginname) - { - $table = "`" . TABLE_PANEL_ADMINS . "`"; - $uid = 'adminid'; - $adminsession = '1'; - } - else - { - redirectTo('index.php', Array('showmessage' => '2'), true); - exit; - } - } - - $userinfo = $db->query_first("SELECT * FROM $table WHERE `loginname`='" . $db->escape($loginname) . "'"); - - if($userinfo['loginfail_count'] >= $settings['login']['maxloginattempts'] - && $userinfo['lastlogin_fail'] > (time() - $settings['login']['deactivatetime'])) - { - redirectTo('index.php', Array('showmessage' => '3'), true); - exit; - } - elseif($userinfo['password'] == md5($password)) - { - // login correct - // reset loginfail_counter, set lastlogin_succ - - $db->query("UPDATE $table SET `lastlogin_succ`='" . time() . "', `loginfail_count`='0' WHERE `$uid`='" . (int)$userinfo[$uid] . "'"); - $userinfo['userid'] = $userinfo[$uid]; - $userinfo['adminsession'] = $adminsession; - } - else - { - // login incorrect - - $db->query("UPDATE $table SET `lastlogin_fail`='" . time() . "', `loginfail_count`=`loginfail_count`+1 WHERE `$uid`='" . (int)$userinfo[$uid] . "'"); - unset($userinfo); - redirectTo('index.php', Array('showmessage' => '2'), true); - exit; - } - - if(isset($userinfo['userid']) - && $userinfo['userid'] != '') - { - $s = md5(uniqid(microtime(), 1)); - - if(isset($_POST['language'])) - { - $language = validate($_POST['language'], 'language'); - - if($language == 'profile') - { - $language = $userinfo['def_language']; - } - elseif(!isset($languages[$language])) - { - $language = $settings['panel']['standardlanguage']; - } - } - else - { - $language = $settings['panel']['standardlanguage']; - } - - if($settings['session']['allow_multiple_login'] != '1') - { - $db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid` = '" . (int)$userinfo['userid'] . "' AND `adminsession` = '" . $db->escape($userinfo['adminsession']) . "'"); - } - - $db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$userinfo['userid'] . "', '" . $db->escape($remote_addr) . "', '" . $db->escape($http_user_agent) . "', '" . time() . "', '" . $db->escape($language) . "', '" . $db->escape($userinfo['adminsession']) . "')"); - - if($userinfo['adminsession'] == '1') - { - redirectTo('admin_index.php', Array('s' => $s), true); - exit; - } - else - { - redirectTo('customer_index.php', Array('s' => $s), true); - exit; - } - } - else - { - redirectTo('index.php', Array('showmessage' => '2'), true); - exit; - } - } - else - { - $language_options = ''; - $language_options.= makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true); - - while(list($language_file, $language_name) = each($languages)) - { - $language_options.= makeoption($language_name, $language_file, 'profile', true); - } - - $smessage = isset($_GET['showmessage']) ? (int)$_GET['showmessage'] : 0; - $message = ''; - - switch($smessage) - { - case 1: - $message = $lng['pwdreminder']['success']; - break; - case 2: - $message = $lng['error']['login']; - break; - case 3: - $message = $lng['error']['login_blocked']; - break; - case 4: - $message = $lng['error']['errorsendingmail']; - break; - } - - eval("echo \"" . getTemplate("login") . "\";"); - } -} - -if($action == 'forgotpwd') -{ - if(isset($_POST['send']) - && $_POST['send'] == 'send') - { - $adminchecked = false; - $loginname = validate($_POST['loginname'], 'loginname'); - $email = validateEmail($_POST['loginemail'], 'email'); - $sql = "SELECT `customerid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "` - WHERE `loginname`='" . $db->escape($loginname) . "' - AND `email`='" . $db->escape($email) . "'"; - $result = $db->query($sql); - - if($db->num_rows() == 0) - { - $sql = "SELECT `adminid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` - WHERE `loginname`='" . $db->escape($loginname) . "' - AND `email`='" . $db->escape($email) . "'"; - $result = $db->query($sql); - $adminchecked = true; - } - - $user = $db->fetch_array($result); - - if(($adminchecked && $settings['panel']['allow_preset_admin'] == '1') - || $adminchecked == false) - { - if($user !== false) - { - $password = substr(md5(uniqid(microtime(), 1)), 12, 6); - - if($adminchecked) - { - $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `password`='" . md5($password) . "' - WHERE `loginname`='" . $user['loginname'] . "' - AND `email`='" . $user['email'] . "'"); - } - else - { - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `password`='" . md5($password) . "' - WHERE `loginname`='" . $user['loginname'] . "' - AND `email`='" . $user['email'] . "'"); - } - - $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); - $rstlog->logAction(USR_ACTION, LOG_WARNING, "Password for user '" . $user['loginname'] . "' has been reset!"); - $body = strtr($lng['pwdreminder']['body'], array('%s' => $user['firstname'] . ' ' . $user['name'], '%p' => $password)); - $mail->From = $settings['panel']['adminmail']; - $mail->FromName = 'SysCP'; - $mail->Subject = $lng['pwdreminder']['subject']; - $mail->Body = $body; - $mail->AddAddress($user['email'], $user['firstname'] . ' ' . $user['name']); - - if(!$mail->Send()) - { - if($mail->ErrorInfo != '') - { - $mailerr_msg = $mail->ErrorInfo; - } - else - { - $mailerr_msg = $email; - } - - $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); - $rstlog->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); - redirectTo('index.php', Array('showmessage' => '4'), true); - exit; - } - - $mail->ClearAddresses(); - redirectTo('index.php', Array('showmessage' => '1'), true); - exit; - } - else - { - $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); - $rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' tried to reset pwd but wasn't found in database!"); - $message = $lng['login']['usernotfound']; - } - - unset($user, $adminchecked); - } - else - { - $message = ''; - } - } - else - { - $message = ''; - } - - if($settings['panel']['allow_preset'] != '1') - { - $message = $lng['pwdreminder']['notallowed']; - } - - eval("echo \"" . getTemplate("fpwd") . "\";"); -} - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Panel + * @version $Id: index.php 2693 2009-03-27 19:31:48Z flo $ + */ + +define('AREA', 'login'); + +/** + * Include our init.php, which manages Sessions, Language etc. + */ + +require ("./lib/init.php"); + +if($action == '') +{ + $action = 'login'; +} + +if($action == 'login') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $loginname = validate($_POST['loginname'], 'loginname'); + $password = validate($_POST['password'], 'password'); + $row = $db->query_first("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `loginname`='" . $db->escape($loginname) . "'"); + + if($row['customer'] == $loginname) + { + $table = "`" . TABLE_PANEL_CUSTOMERS . "`"; + $uid = 'customerid'; + $adminsession = '0'; + } + else + { + $row = $db->query_first("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `loginname`='" . $db->escape($loginname) . "'"); + + if($row['admin'] == $loginname) + { + $table = "`" . TABLE_PANEL_ADMINS . "`"; + $uid = 'adminid'; + $adminsession = '1'; + } + else + { + redirectTo('index.php', Array('showmessage' => '2'), true); + exit; + } + } + + $userinfo = $db->query_first("SELECT * FROM $table WHERE `loginname`='" . $db->escape($loginname) . "'"); + + if($userinfo['loginfail_count'] >= $settings['login']['maxloginattempts'] + && $userinfo['lastlogin_fail'] > (time() - $settings['login']['deactivatetime'])) + { + redirectTo('index.php', Array('showmessage' => '3'), true); + exit; + } + elseif($userinfo['password'] == md5($password)) + { + // login correct + // reset loginfail_counter, set lastlogin_succ + + $db->query("UPDATE $table SET `lastlogin_succ`='" . time() . "', `loginfail_count`='0' WHERE `$uid`='" . (int)$userinfo[$uid] . "'"); + $userinfo['userid'] = $userinfo[$uid]; + $userinfo['adminsession'] = $adminsession; + } + else + { + // login incorrect + + $db->query("UPDATE $table SET `lastlogin_fail`='" . time() . "', `loginfail_count`=`loginfail_count`+1 WHERE `$uid`='" . (int)$userinfo[$uid] . "'"); + unset($userinfo); + redirectTo('index.php', Array('showmessage' => '2'), true); + exit; + } + + if(isset($userinfo['userid']) + && $userinfo['userid'] != '') + { + $s = md5(uniqid(microtime(), 1)); + + if(isset($_POST['language'])) + { + $language = validate($_POST['language'], 'language'); + + if($language == 'profile') + { + $language = $userinfo['def_language']; + } + elseif(!isset($languages[$language])) + { + $language = $settings['panel']['standardlanguage']; + } + } + else + { + $language = $settings['panel']['standardlanguage']; + } + + if($settings['session']['allow_multiple_login'] != '1') + { + $db->query("DELETE FROM `" . TABLE_PANEL_SESSIONS . "` WHERE `userid` = '" . (int)$userinfo['userid'] . "' AND `adminsession` = '" . $db->escape($userinfo['adminsession']) . "'"); + } + + $db->query("INSERT INTO `" . TABLE_PANEL_SESSIONS . "` (`hash`, `userid`, `ipaddress`, `useragent`, `lastactivity`, `language`, `adminsession`) VALUES ('" . $db->escape($s) . "', '" . (int)$userinfo['userid'] . "', '" . $db->escape($remote_addr) . "', '" . $db->escape($http_user_agent) . "', '" . time() . "', '" . $db->escape($language) . "', '" . $db->escape($userinfo['adminsession']) . "')"); + + if($userinfo['adminsession'] == '1') + { + redirectTo('admin_index.php', Array('s' => $s), true); + exit; + } + else + { + redirectTo('customer_index.php', Array('s' => $s), true); + exit; + } + } + else + { + redirectTo('index.php', Array('showmessage' => '2'), true); + exit; + } + } + else + { + $language_options = ''; + $language_options.= makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true); + + while(list($language_file, $language_name) = each($languages)) + { + $language_options.= makeoption($language_name, $language_file, 'profile', true); + } + + $smessage = isset($_GET['showmessage']) ? (int)$_GET['showmessage'] : 0; + $message = ''; + + switch($smessage) + { + case 1: + $message = $lng['pwdreminder']['success']; + break; + case 2: + $message = $lng['error']['login']; + break; + case 3: + $message = $lng['error']['login_blocked']; + break; + case 4: + $message = $lng['error']['errorsendingmail']; + break; + } + + eval("echo \"" . getTemplate("login") . "\";"); + } +} + +if($action == 'forgotpwd') +{ + if(isset($_POST['send']) + && $_POST['send'] == 'send') + { + $adminchecked = false; + $loginname = validate($_POST['loginname'], 'loginname'); + $email = validateEmail($_POST['loginemail'], 'email'); + $sql = "SELECT `customerid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "` + WHERE `loginname`='" . $db->escape($loginname) . "' + AND `email`='" . $db->escape($email) . "'"; + $result = $db->query($sql); + + if($db->num_rows() == 0) + { + $sql = "SELECT `adminid`, `firstname`, `name`, `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` + WHERE `loginname`='" . $db->escape($loginname) . "' + AND `email`='" . $db->escape($email) . "'"; + $result = $db->query($sql); + $adminchecked = true; + } + + $user = $db->fetch_array($result); + + if(($adminchecked && $settings['panel']['allow_preset_admin'] == '1') + || $adminchecked == false) + { + if($user !== false) + { + $password = substr(md5(uniqid(microtime(), 1)), 12, 6); + + if($adminchecked) + { + $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `password`='" . md5($password) . "' + WHERE `loginname`='" . $user['loginname'] . "' + AND `email`='" . $user['email'] . "'"); + } + else + { + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `password`='" . md5($password) . "' + WHERE `loginname`='" . $user['loginname'] . "' + AND `email`='" . $user['email'] . "'"); + } + + $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); + $rstlog->logAction(USR_ACTION, LOG_WARNING, "Password for user '" . $user['loginname'] . "' has been reset!"); + $body = strtr($lng['pwdreminder']['body'], array('%s' => $user['firstname'] . ' ' . $user['name'], '%p' => $password)); + $mail->From = $settings['panel']['adminmail']; + $mail->FromName = 'SysCP'; + $mail->Subject = $lng['pwdreminder']['subject']; + $mail->Body = $body; + $mail->AddAddress($user['email'], $user['firstname'] . ' ' . $user['name']); + + if(!$mail->Send()) + { + if($mail->ErrorInfo != '') + { + $mailerr_msg = $mail->ErrorInfo; + } + else + { + $mailerr_msg = $email; + } + + $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); + $rstlog->logAction(ADM_ACTION, LOG_ERR, "Error sending mail: " . $mailerr_msg); + redirectTo('index.php', Array('showmessage' => '4'), true); + exit; + } + + $mail->ClearAddresses(); + redirectTo('index.php', Array('showmessage' => '1'), true); + exit; + } + else + { + $rstlog = SysCPLogger::getInstanceOf(array('loginname' => 'password_reset'), $db, $settings); + $rstlog->logAction(USR_ACTION, LOG_WARNING, "User '" . $loginname . "' tried to reset pwd but wasn't found in database!"); + $message = $lng['login']['usernotfound']; + } + + unset($user, $adminchecked); + } + else + { + $message = ''; + } + } + else + { + $message = ''; + } + + if($settings['panel']['allow_preset'] != '1') + { + $message = $lng['pwdreminder']['notallowed']; + } + + eval("echo \"" . getTemplate("fpwd") . "\";"); +} + ?> \ No newline at end of file diff --git a/lng/bulgarian.lng.php b/lng/bulgarian.lng.php index e7d02d10..4686dc69 100644 --- a/lng/bulgarian.lng.php +++ b/lng/bulgarian.lng.php @@ -1,436 +1,436 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: bulgarian.lng.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = 'Ðикола Колев'; -$lng['panel']['edit'] = 'редакциÑ'; -$lng['panel']['delete'] = 'изтриване'; -$lng['panel']['create'] = 'Ñъздаване'; -$lng['panel']['save'] = 'запазване'; -$lng['panel']['yes'] = 'да'; -$lng['panel']['no'] = 'не'; -$lng['panel']['emptyfornochanges'] = 'оÑтавете празно, ако нÑма промени'; -$lng['panel']['emptyfordefault'] = 'оÑтавете празно за ÑтойноÑти по подразбиране'; -$lng['panel']['path'] = 'Път'; -$lng['panel']['toggle'] = 'Изберете'; -$lng['panel']['next'] = 'Ñледващ'; -$lng['panel']['dirsmissing'] = 'Ðе мога да Ð½Ð°Ð¼ÐµÑ€Ñ Ð¸Ð»Ð¸ да прочета директориÑта!'; -$lng['panel']['urloverridespath'] = 'URL (Ð¾Ñ‚Ð¼ÐµÐ½Ñ Ð¿ÑŠÑ‚Ñ)'; -$lng['panel']['pathorurl'] = 'Път или URL'; -$lng['panel']['ascending'] = 'възходÑщ'; -$lng['panel']['decending'] = 'низходÑщ'; -$lng['panel']['search'] = 'ТърÑете'; -$lng['panel']['used'] = 'използвани'; -$lng['panel']['translator'] = 'Преводач'; - -/** - * Login - */ - -$lng['login']['username'] = 'ПотребителÑко име'; -$lng['login']['password'] = 'Парола'; -$lng['login']['language'] = 'Език'; -$lng['login']['login'] = 'Вход'; -$lng['login']['logout'] = 'Изход'; -$lng['login']['profile_lng'] = 'Език от профила'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Домашна директориÑ'; -$lng['customer']['name'] = 'ФамилиÑ'; -$lng['customer']['firstname'] = 'Име'; -$lng['customer']['company'] = 'Фирма'; -$lng['customer']['street'] = 'Улица'; -$lng['customer']['zipcode'] = 'ПощенÑки код'; -$lng['customer']['city'] = 'Град'; -$lng['customer']['phone'] = 'Телефон'; -$lng['customer']['fax'] = 'ФакÑ'; -$lng['customer']['email'] = 'E-поща'; -$lng['customer']['customernumber'] = 'КлиентÑки номер'; -$lng['customer']['diskspace'] = 'Уеб проÑтранÑтво (МБ)'; -$lng['customer']['traffic'] = 'Трафик (ГБ)'; -$lng['customer']['mysqls'] = 'MySQL бази данни'; -$lng['customer']['emails'] = 'ÐдреÑи за е-поща'; -$lng['customer']['accounts'] = 'Ðкаунти за е-поща'; -$lng['customer']['forwarders'] = 'Препращане на е-поща'; -$lng['customer']['ftps'] = 'FTP акаунти'; -$lng['customer']['subdomains'] = 'Поддомейн(и)'; -$lng['customer']['domains'] = 'Домейн(и)'; -$lng['customer']['unlimited'] = 'неограничен'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Ðачало'; -$lng['menue']['main']['changepassword'] = 'СмÑна на паролата'; -$lng['menue']['main']['changelanguage'] = 'СмÑна на езика'; -$lng['menue']['email']['email'] = 'Е-поща'; -$lng['menue']['email']['emails'] = 'ÐдреÑи'; -$lng['menue']['email']['webmail'] = 'УебПоща'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Бази данни'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Домейни'; -$lng['menue']['domains']['settings'] = 'ÐаÑтройки'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Ðкаунти'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Допълнителни'; -$lng['menue']['extras']['directoryprotection'] = 'Защита на директории'; -$lng['menue']['extras']['pathoptions'] = 'Опции за директории'; -$lng['menue']['main']['username'] = 'ПотребителÑко име: '; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'ПодробноÑти за клиента'; -$lng['index']['accountdetails'] = 'ПодробноÑти за акаунта'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Стара парола'; -$lng['changepassword']['new_password'] = 'Ðова парола'; -$lng['changepassword']['new_password_confirm'] = 'Ðова парола (още веднъж)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Ðова парола (ако оÑтавите празно, нÑма да Ñе промени)'; -$lng['changepassword']['also_change_ftp'] = ' ÑÐ¼ÐµÐ½Ñ Ñъщо и паролата на Ð³Ð»Ð°Ð²Ð½Ð¸Ñ FTP акаунт'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Тук можете да Ñъздавате (под)домейни и да променÑте техните директории.
.СиÑтемата ще има нужда от извеÑтно време, за да влезе в Ñила вÑÑка промÑна.'; -$lng['domains']['domainsettings'] = 'ÐаÑтройки на домейна'; -$lng['domains']['domainname'] = 'Име на домейна'; -$lng['domains']['subdomain_add'] = 'Създаване на поддомейн'; -$lng['domains']['subdomain_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° (под)домейн'; -$lng['domains']['wildcarddomain'] = 'Създаване като домейн, който прихваща вÑички заÑвки?'; -$lng['domains']['aliasdomain'] = 'ПÑевдоним за домейн'; -$lng['domains']['noaliasdomain'] = 'Без пÑевдоним за домейн'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir-път'; -$lng['domain']['docroot'] = 'Път за полето по-горе'; -$lng['domain']['homedir'] = 'Домашна директориÑ'; -$lng['domains']['hasaliasdomains'] = 'Дали да има пÑевдоними на домейни'; -$lng['domains']['statstics'] = 'СтатиÑтики на потреблението'; - -/** - * eMails - */ - -$lng['emails']['description'] = 'Тук можете да Ñъздавате и да променÑте Ñвоите -адреÑи за електронна поща.
Ðкаунтът предÑтавлÑва нещо като пощенÑка ÐºÑƒÑ‚Ð¸Ñ -пред дома ви. Ðко нÑкой иÑка да ви изпрати електронна поща, Ñ‚Ñ Ñ‰Ðµ бъде доÑтавена -във Ð²Ð°ÑˆÐ¸Ñ Ð°ÐºÐ°ÑƒÐ½Ñ‚.

За да Ñвалите ÑвоÑта електронна поща, използвайте -Ñледните наÑтройки за пощенÑката програма: (Данните в курÑив трÑбва да -бъдат променени по ÑÑŠÐ¾Ñ‚Ð²ÐµÑ‚Ð½Ð¸Ñ Ð½Ð°Ñ‡Ð¸Ð½!)
Име на хоÑÑ‚: Име на -домейн
ПотребителÑко име: Име на акаунта/Ð°Ð´Ñ€ÐµÑ Ð·Ð° електронна -поща
Парола: паролата, коÑто Ñте Ñи избрали'; -$lng['emails']['emailaddress'] = 'Email адреÑ'; -$lng['emails']['emails_add'] = 'Създаване на email адреÑ'; -$lng['emails']['emails_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° email адреÑ'; -$lng['emails']['catchall'] = 'Catchall'; -$lng['emails']['iscatchall'] = 'Да дефинирам ли като catchall адреÑ?'; -$lng['emails']['account'] = 'Ðкаунт'; -$lng['emails']['account_add'] = 'Създаване на акаунт'; -$lng['emails']['account_delete'] = 'Изтриване на акаунт'; -$lng['emails']['from'] = 'Източник'; -$lng['emails']['to'] = 'Ðазначение'; -$lng['emails']['forwarders'] = 'ПренаÑочване към'; -$lng['emails']['forwarder_add'] = 'Създаване на пренаÑочване'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Тук можете да Ñъздадете и да промените Ñвоите -Ñметки за доÑтъп до FTP.
Промените Ñе прилагат незабавно и акаунтите могат -да бъдат използвани веднага'; -$lng['ftp']['account_add'] = 'Създаване на акаунт'; - -/** - * MySQL - */ - -$lng['mysql']['description'] = 'Тук можете да Ñъздавате и редактирате MySQL бази от данни.
Промените влизат в Ñила незабавно, а базите могат да бъдат използвани веднага.
Ð’ менюто отлÑво ще намерите инÑтрумента phpMyAdmin, Ñ ÐºÐ¾Ð¹Ñ‚Ð¾ леÑно можете да админиÑтрирате Ñвоите бази от данни.

За да ги използвате в php Ñкриптове, ви трÑбват Ñледните ÑтойноÑти: (Данните в курÑив трÑбва да бъдат заменени ÑÑŠÑ Ñъответните ÑтойноÑти, които Ñте запиÑали!)
Име на хоÑÑ‚: localhost
ПотребителÑко име: Име на база
Парола: паролата, коÑто Ñте избрали
База данни: Име на базата'; -$lng['mysql']['databasename'] = 'Име на базата или на потребителÑ'; -$lng['mysql']['databasedescription'] = 'ОпиÑание на базата'; -$lng['mysql']['database_create'] = 'Създаване на база'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Тук можете да добавите нÑкои екÑтри, например защита на директориите.
СиÑтемата ще има нужда от време, за да приложи новите наÑтройки Ñлед вÑÑка промÑна.'; -$lng['extras']['directoryprotection_add'] = 'ДобавÑне защита на директории'; -$lng['extras']['view_directory'] = 'показване Ñъдържанието на директориÑта'; -$lng['extras']['pathoptions_add'] = 'добавÑне опции на пътÑ'; -$lng['extras']['directory_browsing'] = 'разглеждане Ñъдържанието на директориÑта'; -$lng['extras']['pathoptions_edit'] = 'редактиране опции на пътÑ'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL към ErrorDocument 404'; -$lng['extras']['errordocument403path'] = 'URL към ErrorDocument 403'; -$lng['extras']['errordocument500path'] = 'URL към ErrorDocument 500'; -$lng['extras']['errordocument401path'] = 'URL към ErrorDocument 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Грешка'; -$lng['error']['directorymustexist'] = 'ДиректориÑта %s трÑбва да ÑъщеÑтвува. МолÑ, Ñъздайте Ñ ÑÑŠÑ ÑÐ²Ð¾Ñ FTP клиент.'; -$lng['error']['filemustexist'] = 'Файлът %s трÑбва да ÑъщеÑтвува.'; -$lng['error']['allresourcesused'] = 'Вече Ñте изразходвали вÑичките Ñи реÑурÑи.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Ðе можете да изтриете домейн, който Ñе използва като email домейн.'; -$lng['error']['domains_canteditdomain'] = 'Ðе можете да редактиране този домейн. Това е забранено от админиÑтратора.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Ðе можете да изтриете домейн, който Ñе използва като email домейн. Първо изтрийте вÑички email адреÑи.'; -$lng['error']['firstdeleteallsubdomains'] = 'Първо трÑбва да изтриете вÑички поддомейни, за да можете да Ñъздадете общ домейн за пренаÑочване.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Вече Ñте дефинирали catchall Ð°Ð´Ñ€ÐµÑ Ð·Ð° този домейн.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Ðе можете да изтриете Ð³Ð»Ð°Ð²Ð½Ð¸Ñ Ñи FTP акаунт'; -$lng['error']['login'] = 'ПотребителÑкото име или паролата Ñа грешни. МолÑ, опитайте отново!'; -$lng['error']['login_blocked'] = 'Ðкаунтът е замразен поради твърде много грешни опити за влизане.
МолÑ, опитайте отново Ñлед ' . $settings['login']['deactivatetime'] . ' Ñекунди.'; -$lng['error']['notallreqfieldsorerrors'] = 'Ðе Ñте попълнили вÑичко, или нÑкои от полетата Ñа попълнени неправилно.'; -$lng['error']['oldpasswordnotcorrect'] = 'Старата ви парола е неправилна.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Ðе можете да раздадете повече реÑурÑи, отколкото има отделени за Ñамите ваÑ.'; -$lng['error']['mustbeurl'] = 'Ðе Ñте въвели правилно или пълно url (напр. http://somedomain.com/error404.htm)'; -$lng['error']['stringisempty'] = 'ЛипÑват въведени данни в поле'; -$lng['error']['stringiswrong'] = 'Грешни въведени данни в поле'; -$lng['error']['myloginname'] = '\'ПотребителÑко име\''; -$lng['error']['mypassword'] = '\'Парола\''; -$lng['error']['oldpassword'] = '\'Стара парола\''; -$lng['error']['newpassword'] = '\'Ðова парола\''; -$lng['error']['newpasswordconfirm'] = '\'Ðова парола (отново)\''; -$lng['error']['newpasswordconfirmerror'] = 'Ðовата парола и потвърждението не Ñъвпадат'; -$lng['error']['myname'] = '\'ФамилиÑ\''; -$lng['error']['myfirstname'] = '\'Име\''; -$lng['error']['emailadd'] = '\'Ел. поща\''; -$lng['error']['mydomain'] = '\'Домейн\''; -$lng['error']['mydocumentroot'] = '\'ОÑновен път\''; -$lng['error']['loginnameexists'] = 'ПотребителÑкото име %s вече ÑъщеÑтвува'; -$lng['error']['emailiswrong'] = 'ЕлектронниÑÑ‚ Ð°Ð´Ñ€ÐµÑ %s Ñъдържа невалидни знаци или е непълен'; -$lng['error']['loginnameiswrong'] = 'ПотребителÑкото име %s Ñъдържа невалидни знаци'; -$lng['error']['userpathcombinationdupe'] = 'КомбинациÑта от потребителÑко име и път вече ÑъщеÑтвува'; -$lng['error']['patherror'] = 'Генерална грешка! ПътÑÑ‚ не може да бъде празен!'; -$lng['error']['errordocpathdupe'] = 'ОпциÑта за път %s вече ÑъщеÑтвува'; -$lng['error']['adduserfirst'] = 'МолÑ, първо Ñъздайте клиент'; -$lng['error']['domainalreadyexists'] = 'Домейнът %s вече е даден на клиент'; -$lng['error']['nolanguageselect'] = 'Ðе е избран език.'; -$lng['error']['nosubjectcreate'] = 'ТрÑбва да изберете тема за този шаблон за електронна поща.'; -$lng['error']['nomailbodycreate'] = 'ТрÑбва да изберете Ñъдържание за този шаблон за електронна поща.'; -$lng['error']['templatenotfound'] = 'Шаблонът не е открит.'; -$lng['error']['alltemplatesdefined'] = 'Ðе можете да дефинирате повече шаблони. Вече Ñе поддържат вÑички езици.'; -$lng['error']['wwwnotallowed'] = 'www не е позволено като име на поддомейн.'; -$lng['error']['subdomainiswrong'] = 'Поддомейнът %s Ñъдържа невалидни знаци.'; -$lng['error']['domaincantbeempty'] = 'Името на домейн не може да бъде празно.'; -$lng['error']['domainexistalready'] = 'Домейнът %s вече ÑъщеÑтвува.'; -$lng['error']['emailexistalready'] = 'ÐдреÑÑŠÑ‚ за електронна поща %s вече ÑъщеÑтвува.'; -$lng['error']['maindomainnonexist'] = 'ГлавниÑÑ‚ домейн %s не ÑъщеÑтвува.'; -$lng['error']['destinationnonexist'] = 'МолÑ, Ñъздайте Ñвоeто препращане в полето \'ДеÑтинациÑ\'.'; -$lng['error']['destinationalreadyexistasmail'] = 'Препращането към %s вече ÑъщеÑтвува като активен ел. адреÑ.'; -$lng['error']['destinationalreadyexist'] = 'Вече Ñте дефинирали препращач %s .'; -$lng['error']['destinationiswrong'] = 'Препращачът %s Ñъдържа невалидни знаци или е непълен.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; -$lng['error']['invalidpath'] = 'Ðе Ñте избрали валиден URL (или може би проблем Ñ Ð¿Ð¾ÐºÐ°Ð·Ð²Ð°Ð½ÐµÑ‚Ð¾ Ñъдържание на директориÑ?)'; -$lng['error']['domainisaliasorothercustomer'] = 'ИзбраниÑÑ‚ пÑевдоним на домейн е или пÑевдоним Ñам по Ñебе Ñи, или принадлежи на друг клиент.'; -$lng['error']['ipstillhasdomains'] = 'КомбинациÑта от IP и порт вÑе още има домейни, Ñвързани Ñ Ð½ÐµÑ. МолÑ, прехвърлете ги към друга IP/порт комбинациÑ, преди да изтриете тази.'; -$lng['error']['cantdeletedefaultip'] = 'Ðе можете да изтриете комбинациÑта по подразбиране от IP и порт за риÑелъри. МолÑ, направете друга ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð¿Ð¾ подразбиране за риÑелъри, преди да изтриете тази.'; -$lng['error']['cantdeletesystemip'] = 'Ðе можете да изтриете поÑледното ÑиÑтемно IP. Можете или да Ñъздадете нова IP/порт ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð·Ð° ÑиÑтемното IP или да зададете ново ÑиÑтемно IP.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Порт\''; -$lng['error']['myipdefault'] = 'ТрÑбва да изберете ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð¾Ñ‚ IP и порт по подразбиране.'; -$lng['error']['myipnotdouble'] = 'Тази ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ IP/порт вече ÑъщеÑтвува.'; -$lng['error']['cantchangesystemip'] = 'Ðе можете да промените поÑледното ÑиÑтемно IP. Можете или да Ñъздадете нова IP/порт ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð·Ð° ÑиÑтемното IP или да зададете ново ÑиÑтемно IP..'; -$lng['error']['loginnameissystemaccount'] = 'Ðе можете да Ñъздавате Ñметки, които Ñа подобни на ÑиÑтемните. МолÑ, въведете друго име на Ñметка.'; -$lng['error']['sessiontimeoutiswrong'] = 'За "Изтичане на ÑеÑиÑ" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; -$lng['error']['maxloginattemptsiswrong'] = 'За "МакÑимален брой опити за влизане" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; -$lng['error']['deactivatetimiswrong'] = 'За "Време за деактивациÑ" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; -$lng['error']['accountprefixiswrong'] = '"КлиентÑки префикÑ" е грешен.'; -$lng['error']['mysqlprefixiswrong'] = '"SQL префикÑ" е грешен.'; -$lng['error']['ftpprefixiswrong'] = '"FTP префикÑ" е грешен.'; -$lng['error']['ipiswrong'] = '"IP адреÑ" е грешен. Позволени Ñа Ñамо валидни IP адреÑи.'; -$lng['error']['vmailuidiswrong'] = '"UID на поща" е грешен. Позволени Ñа Ñамо чиÑлови ÑтойноÑти на UID.'; -$lng['error']['vmailgidiswrong'] = '"GID на поща" е грешен. Позволени Ñа Ñамо чиÑлови ÑтойноÑти на GID.'; -$lng['error']['adminmailiswrong'] = '"ÐÐ´Ñ€ÐµÑ Ð½Ð° изпращач" е грешен. Позволени Ñа Ñамо валидни адреÑи за e-поща.'; -$lng['error']['pagingiswrong'] = 'СтойноÑтта на "ЗапиÑи на Ñтраница" е грешен. Позволени Ñа Ñамо цифрови ÑтойноÑти.'; -$lng['error']['phpmyadminiswrong'] = 'Връзката Ñъм phpMyAdmin е невалидна.'; -$lng['error']['webmailiswrong'] = 'Връзката към уеб поща е невалидна.'; -$lng['error']['webftpiswrong'] = 'Връзката към WebFTP е невалидна.'; -$lng['error']['stringformaterror'] = 'СтойноÑтта в полето "%s" не е в Ð¾Ñ‡Ð°ÐºÐ²Ð°Ð½Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚.'; - -/** - * Questions - */ - -$lng['question']['question'] = 'Таен въпроÑ'; -$lng['question']['admin_customer_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете клиент %s? Това е необратимо!'; -$lng['question']['admin_domain_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете домейн %s?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'ÐаиÑтина ли иÑкате да деактивирате тези наÑтройки на ÑигурноÑтта (OpenBasedir и/или SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете админиÑтраторът %s? Ð’Ñеки негов клиент и домейн ще бъдат прикрепени към Ð³Ð»Ð°Ð²Ð½Ð¸Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸Ñтратор.'; -$lng['question']['admin_template_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете шаблона \'%s\'?'; -$lng['question']['domains_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете домейна %s?'; -$lng['question']['email_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете адреÑа за електронна поща %s?'; -$lng['question']['email_reallydelete_account'] = 'ÐаиÑтина ли иÑкате да изтриете Ñметката за електронна поща на %s?'; -$lng['question']['email_reallydelete_forwarder'] = 'ÐаиÑтина ли иÑкате да изтриете препращането за %s?'; -$lng['question']['extras_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете защитата на Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ %s?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'ÐаиÑтина ли иÑкате да изтриете опциите на Ð¿ÑŠÑ‚Ñ %s?'; -$lng['question']['ftp_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете FTP Ñметката %s?'; -$lng['question']['mysql_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете базата данни %s? Това е необратимо!'; -$lng['question']['admin_configs_reallyrebuild'] = 'ÐаиÑтина ли иÑкате да изградите отново конфигурационните файлове на bind и apache?'; -$lng['question']['admin_ip_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете IP адреÑÑŠÑ‚ %s?'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Сигурни ли Ñте, че иÑкате главната Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° този домейн да не попада в главната Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° клиента?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Здравейте,\n\nвашиÑÑ‚ пощенÑки акаунт {EMAIL}\nе Ñъздаден уÑпешно.\n\nТова Ñъобщение е генерирано автоматично, затова\nмолÑ, не отговарÑйте!\n\nПоздрави, екипът на МÐЕТ'; -$lng['mails']['pop_success']['subject'] = 'ПощенÑкиÑÑ‚ акаунт е Ñъздаден уÑпешно'; -$lng['mails']['createcustomer']['mailbody'] = 'Здравейте {FIRSTNAME} {NAME},\n\nето Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð·Ð° Ð²Ð°ÑˆÐ¸Ñ Ð°ÐºÐ°ÑƒÐ½Ñ‚:\n\nПотребителÑко име: {USERNAME}\nПарола: {PASSWORD}\n\nПоздрави,\nекипът на МÐЕТ'; -$lng['mails']['createcustomer']['subject'] = 'Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð·Ð° Ñметката'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Преглед'; -$lng['admin']['ressourcedetails'] = 'Използвани реÑурÑи'; -$lng['admin']['systemdetails'] = 'СиÑтемни детайли'; -$lng['admin']['syscpdetails'] = 'SysCP детайли'; -$lng['admin']['installedversion'] = 'ИнÑталирана верÑиÑ'; -$lng['admin']['latestversion'] = 'ПоÑледна верÑиÑ'; -$lng['admin']['lookfornewversion']['clickhere'] = 'ПотърÑете чрез уеб уÑлуга'; -$lng['admin']['lookfornewversion']['error'] = 'Грешка при четене'; -$lng['admin']['resources'] = 'РеÑурÑи'; -$lng['admin']['customer'] = 'Клиент'; -$lng['admin']['customers'] = 'Клиенти'; -$lng['admin']['customer_add'] = 'ДобавÑне на клиент'; -$lng['admin']['customer_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° клиент'; -$lng['admin']['domains'] = 'Домейни'; -$lng['admin']['domain_add'] = 'ДобавÑне на домейн'; -$lng['admin']['domain_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° домейн'; -$lng['admin']['subdomainforemail'] = 'Поддомейни като емайл домейни'; -$lng['admin']['admin'] = 'ÐдминиÑтратор'; -$lng['admin']['admins'] = 'ÐдминиÑтратори'; -$lng['admin']['admin_add'] = 'ДобавÑне на админиÑтратор'; -$lng['admin']['admin_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° админиÑтратор'; -$lng['admin']['customers_see_all'] = 'Може ли да вижда вÑички клиенти?'; -$lng['admin']['domains_see_all'] = 'Може ли да вижда вÑички домейни?'; -$lng['admin']['change_serversettings'] = 'Може ли да Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ñ Ð½Ð°Ñтройките на Ñървъра?'; -$lng['admin']['server'] = 'Сървър'; -$lng['admin']['serversettings'] = 'ÐаÑтройки'; -$lng['admin']['stdsubdomain'] = 'Стандартен поддомейн'; -$lng['admin']['stdsubdomain_add'] = 'Създаване на Ñтандартен поддомейн'; -$lng['admin']['deactivated'] = 'Деактивиран'; -$lng['admin']['deactivated_user'] = 'Деактивирай потребител'; -$lng['admin']['sendpassword'] = 'Изпрати парола'; -$lng['admin']['ownvhostsettings'] = 'СобÑтвени наÑтройки на виртуален хоÑÑ‚'; -$lng['admin']['configfiles']['serverconfiguration'] = 'КонфигурациÑ'; -$lng['admin']['configfiles']['files'] = 'Конфигурационни файлове: МолÑ, променете Ñледните файлове или ги Ñъздайте ÑÑŠÑ
Ñледното Ñъдържание, ако не ÑъщеÑтвуват.
Внимание: Паролата за MySQL не е Ñменена поради ÑÑŠÐ¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð·Ð° ÑигурноÑÑ‚.
МолÑ, Ñменете "MYSQL_PASSWORD" Ñами. Ðко забравите ÑвоÑта MySQL md,f.d
можете да Ñ Ð½Ð°Ð¼ÐµÑ€Ð¸Ñ‚Ðµ в "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Команди: МолÑ, изпълнете Ñледните команди в ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´ на обвивката.'; -$lng['admin']['configfiles']['restart'] = 'Restart: МолÑ, изпълнете Ñледните команди в ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´ на обвивката, за да Ñе презареди новата конфигурациÑ.'; -$lng['admin']['templates']['templates'] = 'Шаблони'; -$lng['admin']['templates']['template_add'] = 'ДобавÑне на шаблон'; -$lng['admin']['templates']['template_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° шаблон'; -$lng['admin']['templates']['action'] = 'ДейÑтвие'; -$lng['admin']['templates']['email'] = 'Ел. поща'; -$lng['admin']['templates']['subject'] = 'Тема'; -$lng['admin']['templates']['mailbody'] = 'Съдържание'; -$lng['admin']['templates']['createcustomer'] = 'Поздравителна поща за вÑички клиенти'; -$lng['admin']['templates']['pop_success'] = 'Поздравителна поща за нови Ñметки за ел. поща'; -$lng['admin']['templates']['template_replace_vars'] = 'Променлива, коÑто да бъде заменена в шаблона:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Ще бъде заменено Ñ Ð¿ÑŠÑ€Ð²Ð¾Ñ‚Ð¾ име на клиента.'; -$lng['admin']['templates']['NAME'] = 'Ще бъде заменено Ñ Ð¸Ð¼ÐµÑ‚Ð¾ на клиента.'; -$lng['admin']['templates']['USERNAME'] = 'Ще бъде заменено Ñ Ð¿Ð¾Ñ‚Ñ€ÐµÐ±Ð¸Ñ‚ÐµÐ»Ñкото име на клиента.'; -$lng['admin']['templates']['PASSWORD'] = 'Ще бъде заменено Ñ Ð¿Ð°Ñ€Ð¾Ð»Ð°Ñ‚Ð° за Ñметката на клиента.'; -$lng['admin']['templates']['EMAIL'] = 'Ще бъде заменено ÑÑŠÑ Ñметка за POP3/IMAP.'; -$lng['admin']['rebuildconf'] = 'ВъзÑтановÑване на конфигурационни файлове'; -$lng['admin']['cronlastrun'] = 'ПоÑледен cron'; -$lng['admin']['ipsandports']['ipsandports'] = 'IP адреÑи и портове'; -$lng['admin']['ipsandports']['add'] = 'ДобавÑне на IP/порт'; -$lng['admin']['ipsandports']['edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° на IP/порт'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/порт'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Порт'; -$lng['admin']['memorylimitdisabled'] = 'Забранен'; -$lng['admin']['valuemandatory'] = 'Тази ÑтойноÑÑ‚ е задължителна'; -$lng['admin']['valuemandatorycompany'] = 'ТрÑбва да бъдат попълнени или "фамилиÑ" и "първо име" or "фирма"'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Изтичане на ÑеÑиÑ'; -$lng['serversettings']['session_timeout']['description'] = 'Колко дълго трÑбва да е неактивен един потребител, преди ÑеÑиÑта да Ñтане невалидна (в Ñекунди)?'; -$lng['serversettings']['accountprefix']['title'] = 'ÐŸÑ€ÐµÑ„Ð¸ÐºÑ Ð½Ð° клиент'; -$lng['serversettings']['accountprefix']['description'] = 'Какъв ще бъде префикÑа на Ñметките на клиенти?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL префикÑ'; -$lng['serversettings']['mysqlprefix']['description'] = 'Какъв Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ Ñ‰Ðµ имат Ñметките за MySQL?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP префикÑ'; -$lng['serversettings']['ftpprefix']['description'] = 'Какъв Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ Ñ‰Ðµ имат Ñметките за FTP?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° документи'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички данни?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° журнални файлове'; -$lng['serversettings']['logfiles_directory']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички журнални файлове?'; -$lng['serversettings']['ipaddress']['title'] = 'IP адреÑ'; -$lng['serversettings']['ipaddress']['description'] = 'Какъв е IP адреÑÑŠÑ‚ на този Ñървър?'; -$lng['serversettings']['hostname']['title'] = 'Име на хоÑÑ‚'; -$lng['serversettings']['hostname']['description'] = 'Какво е името на хоÑÑ‚ на този Ñървър?'; -$lng['serversettings']['apachereload_command']['title'] = 'Команда за презареждане на apache'; -$lng['serversettings']['apachereload_command']['description'] = 'Каква е командата за презареждане на apache?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Конфигурационна Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° Bind'; -$lng['serversettings']['bindconf_directory']['description'] = 'Къде Ñе намират конфигурационните файлове на bind?'; -$lng['serversettings']['bindreload_command']['title'] = 'Команда за презареждане на bind'; -$lng['serversettings']['bindreload_command']['description'] = 'Каква е командата за презареждане на bind?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Зона по подразбиране на Bind'; -$lng['serversettings']['binddefaultzone']['description'] = 'Какво е името на зоната по подразбиране?'; -$lng['serversettings']['vmail_uid']['title'] = 'UID на пощите'; -$lng['serversettings']['vmail_uid']['description'] = 'Какво ще бъде потребителÑкото ID на пощите?'; -$lng['serversettings']['vmail_gid']['title'] = 'GID на пощите'; -$lng['serversettings']['vmail_gid']['description'] = 'Какво ще бъде груповото ID на пощите?'; -$lng['serversettings']['vmail_homedir']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° пощи'; -$lng['serversettings']['vmail_homedir']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички пощи?'; -$lng['serversettings']['adminmail']['title'] = 'Изпращач'; -$lng['serversettings']['adminmail']['description'] = 'Какъв ще бъде адреÑа на изпращача на вÑички пощи от този панел?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на phpMyAdmin? (трÑбва да започва Ñ http://)'; -$lng['serversettings']['webmail_url']['title'] = 'ÐÐ´Ñ€ÐµÑ Ð½Ð° уеб поща'; -$lng['serversettings']['webmail_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на уеб пощата? (трÑбва да започва Ñ http://)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на WebFTP? (трÑбва да започва Ñ http://)'; -$lng['serversettings']['language']['description'] = 'Какъв е езикът по подразбиране на Ð²Ð°ÑˆÐ¸Ñ Ñървър?'; -$lng['serversettings']['maxloginattempts']['title'] = 'МакÑимален брой опити за влизане'; -$lng['serversettings']['maxloginattempts']['description'] = 'МакÑимален брой неуÑпешни опити за влизане, преди Ñметката да бъде деактивирана.'; -$lng['serversettings']['deactivatetime']['title'] = 'ПродължителноÑÑ‚ на деактивациÑта'; -$lng['serversettings']['deactivatetime']['description'] = 'Време в Ñекунди, за което ще бъде деактивирана дадена Ñметка при прекалено голÑм брой неуÑпешни опити за влизане.'; -$lng['serversettings']['pathedit']['title'] = 'Тип на въвеждането на пътÑ'; -$lng['serversettings']['pathedit']['description'] = 'ПътÑÑ‚ да бъде избиран поÑредÑтвом падащо меню или поле за вход?'; -$lng['serversettings']['paging']['title'] = 'ЗапиÑи на Ñтраница'; -$lng['serversettings']['paging']['description'] = 'Колко запиÑа да бъдат показвани на Ñтраница? (0 = забранÑва Ñтранирането)'; -$lng['serversettings']['defaultip']['title'] = 'IP/порт по подразбиране'; -$lng['serversettings']['defaultip']['description'] = 'ÐšÐ¾Ñ Ðµ комбинациÑта IP/порт по подразбиране?'; - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: bulgarian.lng.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = 'Ðикола Колев'; +$lng['panel']['edit'] = 'редакциÑ'; +$lng['panel']['delete'] = 'изтриване'; +$lng['panel']['create'] = 'Ñъздаване'; +$lng['panel']['save'] = 'запазване'; +$lng['panel']['yes'] = 'да'; +$lng['panel']['no'] = 'не'; +$lng['panel']['emptyfornochanges'] = 'оÑтавете празно, ако нÑма промени'; +$lng['panel']['emptyfordefault'] = 'оÑтавете празно за ÑтойноÑти по подразбиране'; +$lng['panel']['path'] = 'Път'; +$lng['panel']['toggle'] = 'Изберете'; +$lng['panel']['next'] = 'Ñледващ'; +$lng['panel']['dirsmissing'] = 'Ðе мога да Ð½Ð°Ð¼ÐµÑ€Ñ Ð¸Ð»Ð¸ да прочета директориÑта!'; +$lng['panel']['urloverridespath'] = 'URL (Ð¾Ñ‚Ð¼ÐµÐ½Ñ Ð¿ÑŠÑ‚Ñ)'; +$lng['panel']['pathorurl'] = 'Път или URL'; +$lng['panel']['ascending'] = 'възходÑщ'; +$lng['panel']['decending'] = 'низходÑщ'; +$lng['panel']['search'] = 'ТърÑете'; +$lng['panel']['used'] = 'използвани'; +$lng['panel']['translator'] = 'Преводач'; + +/** + * Login + */ + +$lng['login']['username'] = 'ПотребителÑко име'; +$lng['login']['password'] = 'Парола'; +$lng['login']['language'] = 'Език'; +$lng['login']['login'] = 'Вход'; +$lng['login']['logout'] = 'Изход'; +$lng['login']['profile_lng'] = 'Език от профила'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Домашна директориÑ'; +$lng['customer']['name'] = 'ФамилиÑ'; +$lng['customer']['firstname'] = 'Име'; +$lng['customer']['company'] = 'Фирма'; +$lng['customer']['street'] = 'Улица'; +$lng['customer']['zipcode'] = 'ПощенÑки код'; +$lng['customer']['city'] = 'Град'; +$lng['customer']['phone'] = 'Телефон'; +$lng['customer']['fax'] = 'ФакÑ'; +$lng['customer']['email'] = 'E-поща'; +$lng['customer']['customernumber'] = 'КлиентÑки номер'; +$lng['customer']['diskspace'] = 'Уеб проÑтранÑтво (МБ)'; +$lng['customer']['traffic'] = 'Трафик (ГБ)'; +$lng['customer']['mysqls'] = 'MySQL бази данни'; +$lng['customer']['emails'] = 'ÐдреÑи за е-поща'; +$lng['customer']['accounts'] = 'Ðкаунти за е-поща'; +$lng['customer']['forwarders'] = 'Препращане на е-поща'; +$lng['customer']['ftps'] = 'FTP акаунти'; +$lng['customer']['subdomains'] = 'Поддомейн(и)'; +$lng['customer']['domains'] = 'Домейн(и)'; +$lng['customer']['unlimited'] = 'неограничен'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Ðачало'; +$lng['menue']['main']['changepassword'] = 'СмÑна на паролата'; +$lng['menue']['main']['changelanguage'] = 'СмÑна на езика'; +$lng['menue']['email']['email'] = 'Е-поща'; +$lng['menue']['email']['emails'] = 'ÐдреÑи'; +$lng['menue']['email']['webmail'] = 'УебПоща'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Бази данни'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Домейни'; +$lng['menue']['domains']['settings'] = 'ÐаÑтройки'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Ðкаунти'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Допълнителни'; +$lng['menue']['extras']['directoryprotection'] = 'Защита на директории'; +$lng['menue']['extras']['pathoptions'] = 'Опции за директории'; +$lng['menue']['main']['username'] = 'ПотребителÑко име: '; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'ПодробноÑти за клиента'; +$lng['index']['accountdetails'] = 'ПодробноÑти за акаунта'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Стара парола'; +$lng['changepassword']['new_password'] = 'Ðова парола'; +$lng['changepassword']['new_password_confirm'] = 'Ðова парола (още веднъж)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Ðова парола (ако оÑтавите празно, нÑма да Ñе промени)'; +$lng['changepassword']['also_change_ftp'] = ' ÑÐ¼ÐµÐ½Ñ Ñъщо и паролата на Ð³Ð»Ð°Ð²Ð½Ð¸Ñ FTP акаунт'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Тук можете да Ñъздавате (под)домейни и да променÑте техните директории.
.СиÑтемата ще има нужда от извеÑтно време, за да влезе в Ñила вÑÑка промÑна.'; +$lng['domains']['domainsettings'] = 'ÐаÑтройки на домейна'; +$lng['domains']['domainname'] = 'Име на домейна'; +$lng['domains']['subdomain_add'] = 'Създаване на поддомейн'; +$lng['domains']['subdomain_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° (под)домейн'; +$lng['domains']['wildcarddomain'] = 'Създаване като домейн, който прихваща вÑички заÑвки?'; +$lng['domains']['aliasdomain'] = 'ПÑевдоним за домейн'; +$lng['domains']['noaliasdomain'] = 'Без пÑевдоним за домейн'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir-път'; +$lng['domain']['docroot'] = 'Път за полето по-горе'; +$lng['domain']['homedir'] = 'Домашна директориÑ'; +$lng['domains']['hasaliasdomains'] = 'Дали да има пÑевдоними на домейни'; +$lng['domains']['statstics'] = 'СтатиÑтики на потреблението'; + +/** + * eMails + */ + +$lng['emails']['description'] = 'Тук можете да Ñъздавате и да променÑте Ñвоите +адреÑи за електронна поща.
Ðкаунтът предÑтавлÑва нещо като пощенÑка ÐºÑƒÑ‚Ð¸Ñ +пред дома ви. Ðко нÑкой иÑка да ви изпрати електронна поща, Ñ‚Ñ Ñ‰Ðµ бъде доÑтавена +във Ð²Ð°ÑˆÐ¸Ñ Ð°ÐºÐ°ÑƒÐ½Ñ‚.

За да Ñвалите ÑвоÑта електронна поща, използвайте +Ñледните наÑтройки за пощенÑката програма: (Данните в курÑив трÑбва да +бъдат променени по ÑÑŠÐ¾Ñ‚Ð²ÐµÑ‚Ð½Ð¸Ñ Ð½Ð°Ñ‡Ð¸Ð½!)
Име на хоÑÑ‚: Име на +домейн
ПотребителÑко име: Име на акаунта/Ð°Ð´Ñ€ÐµÑ Ð·Ð° електронна +поща
Парола: паролата, коÑто Ñте Ñи избрали'; +$lng['emails']['emailaddress'] = 'Email адреÑ'; +$lng['emails']['emails_add'] = 'Създаване на email адреÑ'; +$lng['emails']['emails_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° email адреÑ'; +$lng['emails']['catchall'] = 'Catchall'; +$lng['emails']['iscatchall'] = 'Да дефинирам ли като catchall адреÑ?'; +$lng['emails']['account'] = 'Ðкаунт'; +$lng['emails']['account_add'] = 'Създаване на акаунт'; +$lng['emails']['account_delete'] = 'Изтриване на акаунт'; +$lng['emails']['from'] = 'Източник'; +$lng['emails']['to'] = 'Ðазначение'; +$lng['emails']['forwarders'] = 'ПренаÑочване към'; +$lng['emails']['forwarder_add'] = 'Създаване на пренаÑочване'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Тук можете да Ñъздадете и да промените Ñвоите +Ñметки за доÑтъп до FTP.
Промените Ñе прилагат незабавно и акаунтите могат +да бъдат използвани веднага'; +$lng['ftp']['account_add'] = 'Създаване на акаунт'; + +/** + * MySQL + */ + +$lng['mysql']['description'] = 'Тук можете да Ñъздавате и редактирате MySQL бази от данни.
Промените влизат в Ñила незабавно, а базите могат да бъдат използвани веднага.
Ð’ менюто отлÑво ще намерите инÑтрумента phpMyAdmin, Ñ ÐºÐ¾Ð¹Ñ‚Ð¾ леÑно можете да админиÑтрирате Ñвоите бази от данни.

За да ги използвате в php Ñкриптове, ви трÑбват Ñледните ÑтойноÑти: (Данните в курÑив трÑбва да бъдат заменени ÑÑŠÑ Ñъответните ÑтойноÑти, които Ñте запиÑали!)
Име на хоÑÑ‚: localhost
ПотребителÑко име: Име на база
Парола: паролата, коÑто Ñте избрали
База данни: Име на базата'; +$lng['mysql']['databasename'] = 'Име на базата или на потребителÑ'; +$lng['mysql']['databasedescription'] = 'ОпиÑание на базата'; +$lng['mysql']['database_create'] = 'Създаване на база'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Тук можете да добавите нÑкои екÑтри, например защита на директориите.
СиÑтемата ще има нужда от време, за да приложи новите наÑтройки Ñлед вÑÑка промÑна.'; +$lng['extras']['directoryprotection_add'] = 'ДобавÑне защита на директории'; +$lng['extras']['view_directory'] = 'показване Ñъдържанието на директориÑта'; +$lng['extras']['pathoptions_add'] = 'добавÑне опции на пътÑ'; +$lng['extras']['directory_browsing'] = 'разглеждане Ñъдържанието на директориÑта'; +$lng['extras']['pathoptions_edit'] = 'редактиране опции на пътÑ'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL към ErrorDocument 404'; +$lng['extras']['errordocument403path'] = 'URL към ErrorDocument 403'; +$lng['extras']['errordocument500path'] = 'URL към ErrorDocument 500'; +$lng['extras']['errordocument401path'] = 'URL към ErrorDocument 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Грешка'; +$lng['error']['directorymustexist'] = 'ДиректориÑта %s трÑбва да ÑъщеÑтвува. МолÑ, Ñъздайте Ñ ÑÑŠÑ ÑÐ²Ð¾Ñ FTP клиент.'; +$lng['error']['filemustexist'] = 'Файлът %s трÑбва да ÑъщеÑтвува.'; +$lng['error']['allresourcesused'] = 'Вече Ñте изразходвали вÑичките Ñи реÑурÑи.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Ðе можете да изтриете домейн, който Ñе използва като email домейн.'; +$lng['error']['domains_canteditdomain'] = 'Ðе можете да редактиране този домейн. Това е забранено от админиÑтратора.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Ðе можете да изтриете домейн, който Ñе използва като email домейн. Първо изтрийте вÑички email адреÑи.'; +$lng['error']['firstdeleteallsubdomains'] = 'Първо трÑбва да изтриете вÑички поддомейни, за да можете да Ñъздадете общ домейн за пренаÑочване.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Вече Ñте дефинирали catchall Ð°Ð´Ñ€ÐµÑ Ð·Ð° този домейн.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Ðе можете да изтриете Ð³Ð»Ð°Ð²Ð½Ð¸Ñ Ñи FTP акаунт'; +$lng['error']['login'] = 'ПотребителÑкото име или паролата Ñа грешни. МолÑ, опитайте отново!'; +$lng['error']['login_blocked'] = 'Ðкаунтът е замразен поради твърде много грешни опити за влизане.
МолÑ, опитайте отново Ñлед ' . $settings['login']['deactivatetime'] . ' Ñекунди.'; +$lng['error']['notallreqfieldsorerrors'] = 'Ðе Ñте попълнили вÑичко, или нÑкои от полетата Ñа попълнени неправилно.'; +$lng['error']['oldpasswordnotcorrect'] = 'Старата ви парола е неправилна.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Ðе можете да раздадете повече реÑурÑи, отколкото има отделени за Ñамите ваÑ.'; +$lng['error']['mustbeurl'] = 'Ðе Ñте въвели правилно или пълно url (напр. http://somedomain.com/error404.htm)'; +$lng['error']['stringisempty'] = 'ЛипÑват въведени данни в поле'; +$lng['error']['stringiswrong'] = 'Грешни въведени данни в поле'; +$lng['error']['myloginname'] = '\'ПотребителÑко име\''; +$lng['error']['mypassword'] = '\'Парола\''; +$lng['error']['oldpassword'] = '\'Стара парола\''; +$lng['error']['newpassword'] = '\'Ðова парола\''; +$lng['error']['newpasswordconfirm'] = '\'Ðова парола (отново)\''; +$lng['error']['newpasswordconfirmerror'] = 'Ðовата парола и потвърждението не Ñъвпадат'; +$lng['error']['myname'] = '\'ФамилиÑ\''; +$lng['error']['myfirstname'] = '\'Име\''; +$lng['error']['emailadd'] = '\'Ел. поща\''; +$lng['error']['mydomain'] = '\'Домейн\''; +$lng['error']['mydocumentroot'] = '\'ОÑновен път\''; +$lng['error']['loginnameexists'] = 'ПотребителÑкото име %s вече ÑъщеÑтвува'; +$lng['error']['emailiswrong'] = 'ЕлектронниÑÑ‚ Ð°Ð´Ñ€ÐµÑ %s Ñъдържа невалидни знаци или е непълен'; +$lng['error']['loginnameiswrong'] = 'ПотребителÑкото име %s Ñъдържа невалидни знаци'; +$lng['error']['userpathcombinationdupe'] = 'КомбинациÑта от потребителÑко име и път вече ÑъщеÑтвува'; +$lng['error']['patherror'] = 'Генерална грешка! ПътÑÑ‚ не може да бъде празен!'; +$lng['error']['errordocpathdupe'] = 'ОпциÑта за път %s вече ÑъщеÑтвува'; +$lng['error']['adduserfirst'] = 'МолÑ, първо Ñъздайте клиент'; +$lng['error']['domainalreadyexists'] = 'Домейнът %s вече е даден на клиент'; +$lng['error']['nolanguageselect'] = 'Ðе е избран език.'; +$lng['error']['nosubjectcreate'] = 'ТрÑбва да изберете тема за този шаблон за електронна поща.'; +$lng['error']['nomailbodycreate'] = 'ТрÑбва да изберете Ñъдържание за този шаблон за електронна поща.'; +$lng['error']['templatenotfound'] = 'Шаблонът не е открит.'; +$lng['error']['alltemplatesdefined'] = 'Ðе можете да дефинирате повече шаблони. Вече Ñе поддържат вÑички езици.'; +$lng['error']['wwwnotallowed'] = 'www не е позволено като име на поддомейн.'; +$lng['error']['subdomainiswrong'] = 'Поддомейнът %s Ñъдържа невалидни знаци.'; +$lng['error']['domaincantbeempty'] = 'Името на домейн не може да бъде празно.'; +$lng['error']['domainexistalready'] = 'Домейнът %s вече ÑъщеÑтвува.'; +$lng['error']['emailexistalready'] = 'ÐдреÑÑŠÑ‚ за електронна поща %s вече ÑъщеÑтвува.'; +$lng['error']['maindomainnonexist'] = 'ГлавниÑÑ‚ домейн %s не ÑъщеÑтвува.'; +$lng['error']['destinationnonexist'] = 'МолÑ, Ñъздайте Ñвоeто препращане в полето \'ДеÑтинациÑ\'.'; +$lng['error']['destinationalreadyexistasmail'] = 'Препращането към %s вече ÑъщеÑтвува като активен ел. адреÑ.'; +$lng['error']['destinationalreadyexist'] = 'Вече Ñте дефинирали препращач %s .'; +$lng['error']['destinationiswrong'] = 'Препращачът %s Ñъдържа невалидни знаци или е непълен.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; +$lng['error']['invalidpath'] = 'Ðе Ñте избрали валиден URL (или може би проблем Ñ Ð¿Ð¾ÐºÐ°Ð·Ð²Ð°Ð½ÐµÑ‚Ð¾ Ñъдържание на директориÑ?)'; +$lng['error']['domainisaliasorothercustomer'] = 'ИзбраниÑÑ‚ пÑевдоним на домейн е или пÑевдоним Ñам по Ñебе Ñи, или принадлежи на друг клиент.'; +$lng['error']['ipstillhasdomains'] = 'КомбинациÑта от IP и порт вÑе още има домейни, Ñвързани Ñ Ð½ÐµÑ. МолÑ, прехвърлете ги към друга IP/порт комбинациÑ, преди да изтриете тази.'; +$lng['error']['cantdeletedefaultip'] = 'Ðе можете да изтриете комбинациÑта по подразбиране от IP и порт за риÑелъри. МолÑ, направете друга ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð¿Ð¾ подразбиране за риÑелъри, преди да изтриете тази.'; +$lng['error']['cantdeletesystemip'] = 'Ðе можете да изтриете поÑледното ÑиÑтемно IP. Можете или да Ñъздадете нова IP/порт ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð·Ð° ÑиÑтемното IP или да зададете ново ÑиÑтемно IP.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Порт\''; +$lng['error']['myipdefault'] = 'ТрÑбва да изберете ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð¾Ñ‚ IP и порт по подразбиране.'; +$lng['error']['myipnotdouble'] = 'Тази ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ IP/порт вече ÑъщеÑтвува.'; +$lng['error']['cantchangesystemip'] = 'Ðе можете да промените поÑледното ÑиÑтемно IP. Можете или да Ñъздадете нова IP/порт ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð·Ð° ÑиÑтемното IP или да зададете ново ÑиÑтемно IP..'; +$lng['error']['loginnameissystemaccount'] = 'Ðе можете да Ñъздавате Ñметки, които Ñа подобни на ÑиÑтемните. МолÑ, въведете друго име на Ñметка.'; +$lng['error']['sessiontimeoutiswrong'] = 'За "Изтичане на ÑеÑиÑ" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; +$lng['error']['maxloginattemptsiswrong'] = 'За "МакÑимален брой опити за влизане" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; +$lng['error']['deactivatetimiswrong'] = 'За "Време за деактивациÑ" е позволена Ñамо чиÑлова ÑтойноÑÑ‚.'; +$lng['error']['accountprefixiswrong'] = '"КлиентÑки префикÑ" е грешен.'; +$lng['error']['mysqlprefixiswrong'] = '"SQL префикÑ" е грешен.'; +$lng['error']['ftpprefixiswrong'] = '"FTP префикÑ" е грешен.'; +$lng['error']['ipiswrong'] = '"IP адреÑ" е грешен. Позволени Ñа Ñамо валидни IP адреÑи.'; +$lng['error']['vmailuidiswrong'] = '"UID на поща" е грешен. Позволени Ñа Ñамо чиÑлови ÑтойноÑти на UID.'; +$lng['error']['vmailgidiswrong'] = '"GID на поща" е грешен. Позволени Ñа Ñамо чиÑлови ÑтойноÑти на GID.'; +$lng['error']['adminmailiswrong'] = '"ÐÐ´Ñ€ÐµÑ Ð½Ð° изпращач" е грешен. Позволени Ñа Ñамо валидни адреÑи за e-поща.'; +$lng['error']['pagingiswrong'] = 'СтойноÑтта на "ЗапиÑи на Ñтраница" е грешен. Позволени Ñа Ñамо цифрови ÑтойноÑти.'; +$lng['error']['phpmyadminiswrong'] = 'Връзката Ñъм phpMyAdmin е невалидна.'; +$lng['error']['webmailiswrong'] = 'Връзката към уеб поща е невалидна.'; +$lng['error']['webftpiswrong'] = 'Връзката към WebFTP е невалидна.'; +$lng['error']['stringformaterror'] = 'СтойноÑтта в полето "%s" не е в Ð¾Ñ‡Ð°ÐºÐ²Ð°Ð½Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚.'; + +/** + * Questions + */ + +$lng['question']['question'] = 'Таен въпроÑ'; +$lng['question']['admin_customer_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете клиент %s? Това е необратимо!'; +$lng['question']['admin_domain_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете домейн %s?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'ÐаиÑтина ли иÑкате да деактивирате тези наÑтройки на ÑигурноÑтта (OpenBasedir и/или SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете админиÑтраторът %s? Ð’Ñеки негов клиент и домейн ще бъдат прикрепени към Ð³Ð»Ð°Ð²Ð½Ð¸Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸Ñтратор.'; +$lng['question']['admin_template_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете шаблона \'%s\'?'; +$lng['question']['domains_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете домейна %s?'; +$lng['question']['email_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете адреÑа за електронна поща %s?'; +$lng['question']['email_reallydelete_account'] = 'ÐаиÑтина ли иÑкате да изтриете Ñметката за електронна поща на %s?'; +$lng['question']['email_reallydelete_forwarder'] = 'ÐаиÑтина ли иÑкате да изтриете препращането за %s?'; +$lng['question']['extras_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете защитата на Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ %s?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'ÐаиÑтина ли иÑкате да изтриете опциите на Ð¿ÑŠÑ‚Ñ %s?'; +$lng['question']['ftp_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете FTP Ñметката %s?'; +$lng['question']['mysql_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете базата данни %s? Това е необратимо!'; +$lng['question']['admin_configs_reallyrebuild'] = 'ÐаиÑтина ли иÑкате да изградите отново конфигурационните файлове на bind и apache?'; +$lng['question']['admin_ip_reallydelete'] = 'ÐаиÑтина ли иÑкате да изтриете IP адреÑÑŠÑ‚ %s?'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Сигурни ли Ñте, че иÑкате главната Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° този домейн да не попада в главната Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° клиента?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Здравейте,\n\nвашиÑÑ‚ пощенÑки акаунт {EMAIL}\nе Ñъздаден уÑпешно.\n\nТова Ñъобщение е генерирано автоматично, затова\nмолÑ, не отговарÑйте!\n\nПоздрави, екипът на МÐЕТ'; +$lng['mails']['pop_success']['subject'] = 'ПощенÑкиÑÑ‚ акаунт е Ñъздаден уÑпешно'; +$lng['mails']['createcustomer']['mailbody'] = 'Здравейте {FIRSTNAME} {NAME},\n\nето Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð·Ð° Ð²Ð°ÑˆÐ¸Ñ Ð°ÐºÐ°ÑƒÐ½Ñ‚:\n\nПотребителÑко име: {USERNAME}\nПарола: {PASSWORD}\n\nПоздрави,\nекипът на МÐЕТ'; +$lng['mails']['createcustomer']['subject'] = 'Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð·Ð° Ñметката'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Преглед'; +$lng['admin']['ressourcedetails'] = 'Използвани реÑурÑи'; +$lng['admin']['systemdetails'] = 'СиÑтемни детайли'; +$lng['admin']['syscpdetails'] = 'SysCP детайли'; +$lng['admin']['installedversion'] = 'ИнÑталирана верÑиÑ'; +$lng['admin']['latestversion'] = 'ПоÑледна верÑиÑ'; +$lng['admin']['lookfornewversion']['clickhere'] = 'ПотърÑете чрез уеб уÑлуга'; +$lng['admin']['lookfornewversion']['error'] = 'Грешка при четене'; +$lng['admin']['resources'] = 'РеÑурÑи'; +$lng['admin']['customer'] = 'Клиент'; +$lng['admin']['customers'] = 'Клиенти'; +$lng['admin']['customer_add'] = 'ДобавÑне на клиент'; +$lng['admin']['customer_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° клиент'; +$lng['admin']['domains'] = 'Домейни'; +$lng['admin']['domain_add'] = 'ДобавÑне на домейн'; +$lng['admin']['domain_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° домейн'; +$lng['admin']['subdomainforemail'] = 'Поддомейни като емайл домейни'; +$lng['admin']['admin'] = 'ÐдминиÑтратор'; +$lng['admin']['admins'] = 'ÐдминиÑтратори'; +$lng['admin']['admin_add'] = 'ДобавÑне на админиÑтратор'; +$lng['admin']['admin_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° админиÑтратор'; +$lng['admin']['customers_see_all'] = 'Може ли да вижда вÑички клиенти?'; +$lng['admin']['domains_see_all'] = 'Може ли да вижда вÑички домейни?'; +$lng['admin']['change_serversettings'] = 'Може ли да Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ñ Ð½Ð°Ñтройките на Ñървъра?'; +$lng['admin']['server'] = 'Сървър'; +$lng['admin']['serversettings'] = 'ÐаÑтройки'; +$lng['admin']['stdsubdomain'] = 'Стандартен поддомейн'; +$lng['admin']['stdsubdomain_add'] = 'Създаване на Ñтандартен поддомейн'; +$lng['admin']['deactivated'] = 'Деактивиран'; +$lng['admin']['deactivated_user'] = 'Деактивирай потребител'; +$lng['admin']['sendpassword'] = 'Изпрати парола'; +$lng['admin']['ownvhostsettings'] = 'СобÑтвени наÑтройки на виртуален хоÑÑ‚'; +$lng['admin']['configfiles']['serverconfiguration'] = 'КонфигурациÑ'; +$lng['admin']['configfiles']['files'] = 'Конфигурационни файлове: МолÑ, променете Ñледните файлове или ги Ñъздайте ÑÑŠÑ
Ñледното Ñъдържание, ако не ÑъщеÑтвуват.
Внимание: Паролата за MySQL не е Ñменена поради ÑÑŠÐ¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð·Ð° ÑигурноÑÑ‚.
МолÑ, Ñменете "MYSQL_PASSWORD" Ñами. Ðко забравите ÑвоÑта MySQL md,f.d
можете да Ñ Ð½Ð°Ð¼ÐµÑ€Ð¸Ñ‚Ðµ в "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Команди: МолÑ, изпълнете Ñледните команди в ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´ на обвивката.'; +$lng['admin']['configfiles']['restart'] = 'Restart: МолÑ, изпълнете Ñледните команди в ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´ на обвивката, за да Ñе презареди новата конфигурациÑ.'; +$lng['admin']['templates']['templates'] = 'Шаблони'; +$lng['admin']['templates']['template_add'] = 'ДобавÑне на шаблон'; +$lng['admin']['templates']['template_edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° шаблон'; +$lng['admin']['templates']['action'] = 'ДейÑтвие'; +$lng['admin']['templates']['email'] = 'Ел. поща'; +$lng['admin']['templates']['subject'] = 'Тема'; +$lng['admin']['templates']['mailbody'] = 'Съдържание'; +$lng['admin']['templates']['createcustomer'] = 'Поздравителна поща за вÑички клиенти'; +$lng['admin']['templates']['pop_success'] = 'Поздравителна поща за нови Ñметки за ел. поща'; +$lng['admin']['templates']['template_replace_vars'] = 'Променлива, коÑто да бъде заменена в шаблона:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Ще бъде заменено Ñ Ð¿ÑŠÑ€Ð²Ð¾Ñ‚Ð¾ име на клиента.'; +$lng['admin']['templates']['NAME'] = 'Ще бъде заменено Ñ Ð¸Ð¼ÐµÑ‚Ð¾ на клиента.'; +$lng['admin']['templates']['USERNAME'] = 'Ще бъде заменено Ñ Ð¿Ð¾Ñ‚Ñ€ÐµÐ±Ð¸Ñ‚ÐµÐ»Ñкото име на клиента.'; +$lng['admin']['templates']['PASSWORD'] = 'Ще бъде заменено Ñ Ð¿Ð°Ñ€Ð¾Ð»Ð°Ñ‚Ð° за Ñметката на клиента.'; +$lng['admin']['templates']['EMAIL'] = 'Ще бъде заменено ÑÑŠÑ Ñметка за POP3/IMAP.'; +$lng['admin']['rebuildconf'] = 'ВъзÑтановÑване на конфигурационни файлове'; +$lng['admin']['cronlastrun'] = 'ПоÑледен cron'; +$lng['admin']['ipsandports']['ipsandports'] = 'IP адреÑи и портове'; +$lng['admin']['ipsandports']['add'] = 'ДобавÑне на IP/порт'; +$lng['admin']['ipsandports']['edit'] = 'Ð ÐµÐ´Ð°ÐºÑ†Ð¸Ñ Ð½Ð° на IP/порт'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/порт'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Порт'; +$lng['admin']['memorylimitdisabled'] = 'Забранен'; +$lng['admin']['valuemandatory'] = 'Тази ÑтойноÑÑ‚ е задължителна'; +$lng['admin']['valuemandatorycompany'] = 'ТрÑбва да бъдат попълнени или "фамилиÑ" и "първо име" or "фирма"'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Изтичане на ÑеÑиÑ'; +$lng['serversettings']['session_timeout']['description'] = 'Колко дълго трÑбва да е неактивен един потребител, преди ÑеÑиÑта да Ñтане невалидна (в Ñекунди)?'; +$lng['serversettings']['accountprefix']['title'] = 'ÐŸÑ€ÐµÑ„Ð¸ÐºÑ Ð½Ð° клиент'; +$lng['serversettings']['accountprefix']['description'] = 'Какъв ще бъде префикÑа на Ñметките на клиенти?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL префикÑ'; +$lng['serversettings']['mysqlprefix']['description'] = 'Какъв Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ Ñ‰Ðµ имат Ñметките за MySQL?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP префикÑ'; +$lng['serversettings']['ftpprefix']['description'] = 'Какъв Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ Ñ‰Ðµ имат Ñметките за FTP?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° документи'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички данни?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° журнални файлове'; +$lng['serversettings']['logfiles_directory']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички журнални файлове?'; +$lng['serversettings']['ipaddress']['title'] = 'IP адреÑ'; +$lng['serversettings']['ipaddress']['description'] = 'Какъв е IP адреÑÑŠÑ‚ на този Ñървър?'; +$lng['serversettings']['hostname']['title'] = 'Име на хоÑÑ‚'; +$lng['serversettings']['hostname']['description'] = 'Какво е името на хоÑÑ‚ на този Ñървър?'; +$lng['serversettings']['apachereload_command']['title'] = 'Команда за презареждане на apache'; +$lng['serversettings']['apachereload_command']['description'] = 'Каква е командата за презареждане на apache?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Конфигурационна Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð½Ð° Bind'; +$lng['serversettings']['bindconf_directory']['description'] = 'Къде Ñе намират конфигурационните файлове на bind?'; +$lng['serversettings']['bindreload_command']['title'] = 'Команда за презареждане на bind'; +$lng['serversettings']['bindreload_command']['description'] = 'Каква е командата за презареждане на bind?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Зона по подразбиране на Bind'; +$lng['serversettings']['binddefaultzone']['description'] = 'Какво е името на зоната по подразбиране?'; +$lng['serversettings']['vmail_uid']['title'] = 'UID на пощите'; +$lng['serversettings']['vmail_uid']['description'] = 'Какво ще бъде потребителÑкото ID на пощите?'; +$lng['serversettings']['vmail_gid']['title'] = 'GID на пощите'; +$lng['serversettings']['vmail_gid']['description'] = 'Какво ще бъде груповото ID на пощите?'; +$lng['serversettings']['vmail_homedir']['title'] = 'Ð”Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð·Ð° пощи'; +$lng['serversettings']['vmail_homedir']['description'] = 'Къде ще Ñе ÑъхранÑват вÑички пощи?'; +$lng['serversettings']['adminmail']['title'] = 'Изпращач'; +$lng['serversettings']['adminmail']['description'] = 'Какъв ще бъде адреÑа на изпращача на вÑички пощи от този панел?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на phpMyAdmin? (трÑбва да започва Ñ http://)'; +$lng['serversettings']['webmail_url']['title'] = 'ÐÐ´Ñ€ÐµÑ Ð½Ð° уеб поща'; +$lng['serversettings']['webmail_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на уеб пощата? (трÑбва да започва Ñ http://)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = 'Какъв е адреÑÑŠÑ‚ на WebFTP? (трÑбва да започва Ñ http://)'; +$lng['serversettings']['language']['description'] = 'Какъв е езикът по подразбиране на Ð²Ð°ÑˆÐ¸Ñ Ñървър?'; +$lng['serversettings']['maxloginattempts']['title'] = 'МакÑимален брой опити за влизане'; +$lng['serversettings']['maxloginattempts']['description'] = 'МакÑимален брой неуÑпешни опити за влизане, преди Ñметката да бъде деактивирана.'; +$lng['serversettings']['deactivatetime']['title'] = 'ПродължителноÑÑ‚ на деактивациÑта'; +$lng['serversettings']['deactivatetime']['description'] = 'Време в Ñекунди, за което ще бъде деактивирана дадена Ñметка при прекалено голÑм брой неуÑпешни опити за влизане.'; +$lng['serversettings']['pathedit']['title'] = 'Тип на въвеждането на пътÑ'; +$lng['serversettings']['pathedit']['description'] = 'ПътÑÑ‚ да бъде избиран поÑредÑтвом падащо меню или поле за вход?'; +$lng['serversettings']['paging']['title'] = 'ЗапиÑи на Ñтраница'; +$lng['serversettings']['paging']['description'] = 'Колко запиÑа да бъдат показвани на Ñтраница? (0 = забранÑва Ñтранирането)'; +$lng['serversettings']['defaultip']['title'] = 'IP/порт по подразбиране'; +$lng['serversettings']['defaultip']['description'] = 'ÐšÐ¾Ñ Ðµ комбинациÑта IP/порт по подразбиране?'; + +?> diff --git a/lng/czech.lng.php b/lng/czech.lng.php index 955d2478..867da651 100644 --- a/lng/czech.lng.php +++ b/lng/czech.lng.php @@ -1,700 +1,700 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: czech.lng.php 2724 2009-06-07 14:18:02Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = ''; -$lng['panel']['edit'] = 'upravit'; -$lng['panel']['delete'] = 'smazat'; -$lng['panel']['create'] = 'vytvoøit'; -$lng['panel']['save'] = 'uložit'; -$lng['panel']['yes'] = 'ano'; -$lng['panel']['no'] = 'ne'; -$lng['panel']['emptyfornochanges'] = 'prázdné - žádné zmìny'; -$lng['panel']['emptyfordefault'] = 'prázdné - pro výchozí'; -$lng['panel']['path'] = 'Cesta'; -$lng['panel']['toggle'] = 'Pøepnout'; -$lng['panel']['next'] = 'další'; -$lng['panel']['dirsmissing'] = 'Nemohu nejít/èíst adresáø!'; - -/** - * Login - */ - -$lng['login']['username'] = 'Uživatel'; -$lng['login']['password'] = 'Heslo'; -$lng['login']['language'] = 'Jazyk'; -$lng['login']['login'] = 'Pøihlásit'; -$lng['login']['logout'] = 'Odhlásit'; -$lng['login']['profile_lng'] = 'Jazyk profilu'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Domácí adresáø'; -$lng['customer']['name'] = 'Jméno'; -$lng['customer']['firstname'] = 'Køestní jméno'; -$lng['customer']['company'] = 'Spoleènost'; -$lng['customer']['street'] = 'Ulice'; -$lng['customer']['zipcode'] = 'PSÈ'; -$lng['customer']['city'] = 'Mìsto'; -$lng['customer']['phone'] = 'Telefon'; -$lng['customer']['fax'] = 'Fax'; -$lng['customer']['email'] = 'Email'; -$lng['customer']['customernumber'] = 'Zákazníkovo ID'; -$lng['customer']['diskspace'] = 'Webový prostor (MB)'; -$lng['customer']['traffic'] = 'Pøenosy (GB)'; -$lng['customer']['mysqls'] = 'MySQL-Databáze'; -$lng['customer']['emails'] = 'E-mailové-adresy'; -$lng['customer']['accounts'] = 'E-mailvé-Úèty'; -$lng['customer']['forwarders'] = 'E-mailové-Pøeposílaèe'; -$lng['customer']['ftps'] = 'FTP-Úèty'; -$lng['customer']['subdomains'] = 'Sub-Domény'; -$lng['customer']['domains'] = 'Doména'; -$lng['customer']['unlimited'] = 'neomezeno'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Hlavní'; -$lng['menue']['main']['changepassword'] = 'Zmìnit heslo'; -$lng['menue']['main']['changelanguage'] = 'Zmìnit jazyl'; -$lng['menue']['email']['email'] = 'E-mail'; -$lng['menue']['email']['emails'] = 'Adresy'; -$lng['menue']['email']['webmail'] = 'WebMail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Databáze'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Domény'; -$lng['menue']['domains']['settings'] = 'Nastavení'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Úèty'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Extra'; -$lng['menue']['extras']['directoryprotection'] = 'Ochrana adresáøe'; -$lng['menue']['extras']['pathoptions'] = 'nastavení cesty'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Detaily zákazníka'; -$lng['index']['accountdetails'] = 'Detaily úètu'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Staré heslo'; -$lng['changepassword']['new_password'] = 'Nové heslo'; -$lng['changepassword']['new_password_confirm'] = 'Nové heslo (potvrzení)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Nové heslo (prázdné = beze zmìn)'; -$lng['changepassword']['also_change_ftp'] = ' také zmìnit heslo k hlavnímu FTP úètu'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Zde mùžete vytvoøit (sub-)domény a mìnit jejich cesty.
Systém potøebuje nìjaký èas, než se po úpravì nové nastavení projeví.'; -$lng['domains']['domainsettings'] = 'Nastavení domény'; -$lng['domains']['domainname'] = 'Jméno domény'; -$lng['domains']['subdomain_add'] = 'Vytvoøit subdoménu'; -$lng['domains']['subdomain_edit'] = 'Upravit (sub)doménu'; -$lng['domains']['wildcarddomain'] = 'Vytvoøit jako wildcard doménu?'; -$lng['domains']['aliasdomain'] = 'Alias pro doménu'; -$lng['domains']['noaliasdomain'] = 'Žádný alias pro doménu'; - -/** - * E-mails - */ - -$lng['emails']['description'] = 'Zde mùžete také vytvoøit a mìnit e-mailové adresy.
Úèet je jako Vaše poštovní schránka pøed Vaším domem. Pokud Vám nìkdo pošle e-mail, pøijde na tento úèet.

Pro stažení e-mailù použijte následující nastavení ve svém poštovním klientu: (Data kurzívou musí být zmìnìna podle toho, co jste zadali!)
Host: Jméno domény
Uživatelské jméno: Jméno úètu / e-mailové adresy
Heslo: heslo které jste zadali'; -$lng['emails']['emailaddress'] = 'E-mail-adresa'; -$lng['emails']['emails_add'] = 'Vytvoøit e-mailovou-adresu'; -$lng['emails']['emails_edit'] = 'Editovat e-mailovou-addresu'; -$lng['emails']['catchall'] = 'Catchall'; -$lng['emails']['iscatchall'] = 'Definovat jako catchall-adresu?'; -$lng['emails']['account'] = 'Úèet'; -$lng['emails']['account_add'] = 'Vytvoøit úèet'; -$lng['emails']['account_delete'] = 'Smazat úèet'; -$lng['emails']['from'] = 'Zdroj'; -$lng['emails']['to'] = 'Cíl'; -$lng['emails']['forwarders'] = 'Pøeposílatelé'; -$lng['emails']['forwarder_add'] = 'Vytvoøit pøeposílatele'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Zde mùžete vytváøet a mìnit FTP úèty.
Zmìny jsou provedeny okamžitì a úèty mohou být okamžitì použity.'; -$lng['ftp']['account_add'] = 'Vytvoøit úèet'; - -/** - * MySQL - */ - -$lng['mysql']['databasename'] = 'jméno uživatele/databáze'; -$lng['mysql']['databasedescription'] = 'popis databáze'; -$lng['mysql']['database_create'] = 'Vytvoøit databázi'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Zde mùžete vkládat extra vìci, napøíklad ochranu adresáøù.
Systém potøebuje nìjaký èas, než se zmìny projeví.'; -$lng['extras']['directoryprotection_add'] = 'Pøidat ochranu adresáøe'; -$lng['extras']['view_directory'] = 'zobrazit obsah adresáøe'; -$lng['extras']['pathoptions_add'] = 'pøidat nastavení cesty'; -$lng['extras']['directory_browsing'] = 'prohlížení obsahu adresáøe'; -$lng['extras']['pathoptions_edit'] = 'upravit nastavení cesty'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL k Chybové stránce 404'; -$lng['extras']['errordocument403path'] = 'URL k Chybové stránce 403'; -$lng['extras']['errordocument500path'] = 'URL k Chybové stránce 500'; -$lng['extras']['errordocument401path'] = 'URL k Chybové stránce 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Chyba'; -$lng['error']['directorymustexist'] = 'Adresáø %s musí existovat. Prosím vytvoøte jej s pomocí Vašeho FTP klienta.'; -$lng['error']['filemustexist'] = 'Soubor %s musí existovat.'; -$lng['error']['allresourcesused'] = 'Už jste použili všechny své zdroje.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Nemùžete smazat doménu, která se používá jako e-mailová doména.'; -$lng['error']['domains_canteditdomain'] = 'Nemùžete upravovat tuto doménu. Byla zakázána adminem.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Nemùžete smazat doménu, která se používá jako e-mailová doména. Nejdøíve smažte všechny emailové adresy.'; -$lng['error']['firstdeleteallsubdomains'] = 'Musíte smazat všechny subdomény než budete moci vytvoøit "wildcard" doménu.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Už jste definovali "catchall" pro tuto doménu.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Nemùžete smazat svùj hlavní FTP úèet'; -$lng['error']['login'] = 'Uživatelské jméno nebo heslo, které jste zadali, je špatné. Prosím zkuste to znovu!'; -$lng['error']['login_blocked'] = 'Tento úèet byl zablokován z dùvodu pøíliš velkého množství chyb pøi pøihlášení.
Prosím zkuste to znovu za ' . $settings['login']['deactivatetime'] . ' sekund.'; -$lng['error']['notallreqfieldsorerrors'] = 'Nevyplnili jste všechna políèka nebo jsou nìkteré vyplnìna špatnì.'; -$lng['error']['oldpasswordnotcorrect'] = 'Staré heslo není správné.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Nemùžete alokovat více zdrojù než sami vlastníte'; -$lng['error']['mustbeurl'] = 'Vložili jste nesprávnou nebo nekompletní url (napø. http://somedomain.com/error404.htm)'; -$lng['error']['invalidpath'] = 'Nevybrali jste správnou url (možná problém s "dirlistingem"?)'; -$lng['error']['stringisempty'] = 'Chybìjící vstup v poli'; -$lng['error']['stringiswrong'] = 'Špatný vstup v poli'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'Nové heslo se neshoduje s tím pro potvrzení'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'Domain\''; -$lng['error']['mydocumentroot'] = '\'Documentroot\''; -$lng['error']['loginnameexists'] = 'Pøihlašovací jméno %s již existuje'; -$lng['error']['emailiswrong'] = 'Emailová adresa %s obsahuje nepovolené znaky nebo je nekompletní'; -$lng['error']['loginnameiswrong'] = 'Pøihlašovací jméno %s obsahuje nepovolené znaky'; -$lng['error']['userpathcombinationdupe'] = 'Kombinace Uživatelského jména a cesty již existuje'; -$lng['error']['patherror'] = 'Obecná chyba! Cesta nemùže být prázdná'; -$lng['error']['errordocpathdupe'] = 'Možnost pro cestu %s již existuje'; -$lng['error']['adduserfirst'] = 'Vytvoøte prosím nejdøíve zákazníka'; -$lng['error']['domainalreadyexists'] = 'Doména %s je již pøiøazena k zákazníkovi'; -$lng['error']['nolanguageselect'] = 'Nebyl vybrán žádný jazyk.'; -$lng['error']['nosubjectcreate'] = 'Musíte definovat téma pro tuto e-mailovou šablonu.'; -$lng['error']['nomailbodycreate'] = 'Musíte definovat text e-mailu pro tuto e-mailovou šablonu.'; -$lng['error']['templatenotfound'] = 'Šablona nebyla nalezena.'; -$lng['error']['alltemplatesdefined'] = 'Nemùžete definovat více šablon, všechny jazyky jsou již podporovány.'; -$lng['error']['wwwnotallowed'] = 'www není povoleno pro subdomény.'; -$lng['error']['subdomainiswrong'] = 'Subdoména %s obsahuje neplatné znaky.'; -$lng['error']['domaincantbeempty'] = 'Jméno domény nesmí být prázdné.'; -$lng['error']['domainexistalready'] = 'Doména %s již existuje.'; -$lng['error']['domainisaliasorothercustomer'] = 'Vybraný alias pro doménu je buï sama aliasem domény nebo patøí jinému zákazníkovi.'; -$lng['error']['emailexistalready'] = 'E-mailová adresa %s již existuje.'; -$lng['error']['maindomainnonexist'] = 'Hlavní doména %s neexistuje.'; -$lng['error']['destinationnonexist'] = 'Prosím vytvoøte pøeposílatele v poli \'Cíl\'.'; -$lng['error']['destinationalreadyexistasmail'] = 'Pøeposílaè na %s již existuje jako aktivní emailová adresa.'; -$lng['error']['destinationalreadyexist'] = 'Už jste nastavili pøeposílaè na %s .'; -$lng['error']['destinationiswrong'] = 'Pøeposílaè %s obsahuje nesprávné znaky nebo není kompletní.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Bezpeènostní otázka'; -$lng['question']['admin_customer_reallydelete'] = 'Chcete opravdu smazat uživatele %s? Akci nelze vzít zpìt!'; -$lng['question']['admin_domain_reallydelete'] = 'Chcete opravdu smazat doménu %s?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Chcete opravdu deaktivovat tato Bezpeènostní nastavení (OpenBasedir a/nebo SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = 'Chcete opravdu smazat administrátory %s? Každý zákazník a doména bude nastavena k Vašemu úètu.'; -$lng['question']['admin_template_reallydelete'] = 'Chcete opravdu smazat šablonu \'%s\'?'; -$lng['question']['domains_reallydelete'] = 'Chcete opravdu smazat doménu %s?'; -$lng['question']['email_reallydelete'] = 'Opravdu chcete smazat e-mailovou adresu %s?'; -$lng['question']['email_reallydelete_account'] = 'Chcete opravdu smazat e-mailový úèet %s?'; -$lng['question']['email_reallydelete_forwarder'] = 'Chcete opravdu smazat pøeposílaè %s?'; -$lng['question']['extras_reallydelete'] = 'Chcete opravdu odstranit ochranu adresáøe %s?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'Opravdu chcete smazat nastavení cesty pro %s?'; -$lng['question']['ftp_reallydelete'] = 'Opravdu chcete smazat FTP úèet %s?'; -$lng['question']['mysql_reallydelete'] = 'Opravdu chcete smazat databázi %s? Tato akce nemùže být vzata zpìt!'; -$lng['question']['admin_configs_reallyrebuild'] = 'Opravdu chcete rebuildovat apache a nabindovat konfiguraèní soubory?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Dobrý den,\n\nVáš e-mailový úèet {EMAIL}\nbyl v poøádku nastaven.\n\nToto je automaticky vytvoøený\ne-mail, prosím neodpovídejte na nìj!\n\nPøejeme hezký den, SysCP-Team'; -$lng['mails']['pop_success']['subject'] = 'Poštovní úèet byl úspìšnì nastaven'; -$lng['mails']['createcustomer']['mailbody'] = 'Dobrý den, {FIRSTNAME} {NAME},\n\nzde jsou informace o Vašem úètu:\n\nUživatel: {USERNAME}\nHeslo: {PASSWORD}\n\nDìkujeme,\nSysCP-Team'; -$lng['mails']['createcustomer']['subject'] = 'Informace o úètu'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Pøehled'; -$lng['admin']['ressourcedetails'] = 'Použité zdroje'; -$lng['admin']['systemdetails'] = 'Detaily systému'; -$lng['admin']['syscpdetails'] = 'SysCP Detaily'; -$lng['admin']['installedversion'] = 'Nainstalovaná verze'; -$lng['admin']['latestversion'] = 'Poslední verze'; -$lng['admin']['lookfornewversion']['clickhere'] = 'hledat pøes webservice'; -$lng['admin']['lookfornewversion']['error'] = 'Chyba pøi ètení'; -$lng['admin']['resources'] = 'Zdroje'; -$lng['admin']['customer'] = 'Zákazník'; -$lng['admin']['customers'] = 'Zákazníci'; -$lng['admin']['customer_add'] = 'Vytvoøit zákazníka'; -$lng['admin']['customer_edit'] = 'Upravit zákazníka'; -$lng['admin']['domains'] = 'Domény'; -$lng['admin']['domain_add'] = 'Vytvoøit doménu'; -$lng['admin']['domain_edit'] = 'Upravit doménu'; -$lng['admin']['subdomainforemail'] = 'Subdomény jako emailové domény'; -$lng['admin']['admin'] = 'Administrátor'; -$lng['admin']['admins'] = 'Administrátoøi'; -$lng['admin']['admin_add'] = 'Vytvoøit administrátora'; -$lng['admin']['admin_edit'] = 'Upravit administrátora'; -$lng['admin']['customers_see_all'] = 'Mùže vidìt všechy zákazníky?'; -$lng['admin']['domains_see_all'] = 'Mùže vidìt všechny domény?'; -$lng['admin']['change_serversettings'] = 'Mùže mìnit nastavení serveru?'; -$lng['admin']['server'] = 'Server'; -$lng['admin']['serversettings'] = 'Nastavení'; -$lng['admin']['rebuildconf'] = 'Pøebudovat konfiguraèní soubory'; -$lng['admin']['stdsubdomain'] = 'Standardní subdoména'; -$lng['admin']['stdsubdomain_add'] = 'Vytvoøit standardní subdoménu'; -$lng['admin']['phpenabled'] = 'PHP zapnuto'; -$lng['admin']['deactivated'] = 'Deaktivováno'; -$lng['admin']['deactivated_user'] = 'Deaktivovat uživatele'; -$lng['admin']['sendpassword'] = 'Zaslat heslo'; -$lng['admin']['ownvhostsettings'] = 'Vlastní vHost-nastavení'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Konfigurace'; -$lng['admin']['configfiles']['files'] = 'Konfiguraèní soubory: Prosím zmìòte následující soubory nabo je vytvoøte s
následujícím obsahem, pokud neexistují.
Poznámka: MySQL heslo nebylo nahrazeno z bezpeènostních dùvodù.
Prosím nahraïte "MYSQL_PASSWORD" svým vlastním. Pokud jste zapomnìli své mysql heslo
najdete jej v "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Pøíkazy: Prosím spuste následující pøíkazy v pøíkazovém øádku.'; -$lng['admin']['configfiles']['restart'] = 'Restart: Prosím spuste nísledující pøíkazy v pøíkazovém øádku, aby jste nahráli novou konfiguraci.'; -$lng['admin']['templates']['templates'] = 'Šablony'; -$lng['admin']['templates']['template_add'] = 'Pøidat šablonu'; -$lng['admin']['templates']['template_edit'] = 'Upravit šablonu'; -$lng['admin']['templates']['action'] = 'Akce'; -$lng['admin']['templates']['email'] = 'E-Mail'; -$lng['admin']['templates']['subject'] = 'Pøedmìt'; -$lng['admin']['templates']['mailbody'] = 'Tìlo mailu'; -$lng['admin']['templates']['createcustomer'] = 'Uvítací mail pro nové zákazníky'; -$lng['admin']['templates']['pop_success'] = 'Uvítací mail pro nové emailové úèty'; -$lng['admin']['templates']['template_replace_vars'] = 'Promìnné k nahrazení v šablonì:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Nahrazeno køestním jménem zákazníka.'; -$lng['admin']['templates']['NAME'] = 'Nahrazeno jménem zákazníka.'; -$lng['admin']['templates']['USERNAME'] = 'Nahrazeno uživatelským jménem zákazníka.'; -$lng['admin']['templates']['PASSWORD'] = 'Nahrazeno zákazníkovým heslem.'; -$lng['admin']['templates']['EMAIL'] = 'Nahrazeno adresou POP3/IMAP úètu.'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; -$lng['serversettings']['session_timeout']['description'] = 'Jak dlouho musý být uživatel neaktivní, než session vyprší (sekundy)?'; -$lng['serversettings']['accountprefix']['title'] = 'Zákazníkova pøedpona'; -$lng['serversettings']['accountprefix']['description'] = 'Jké pøedpony by mìly mít úèty zákazníkù?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL pøedpona'; -$lng['serversettings']['mysqlprefix']['description'] = 'Jaké pøedpony by mìly mít úèty mysql?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP pøedpona'; -$lng['serversettings']['ftpprefix']['description'] = 'Jakou pøedponu by mìly mít ftp úèty?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Domácí adresáø'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Kde by mìly být uloženy všechny domácí adresáøe?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Adresáø pro log soubory'; -$lng['serversettings']['logfiles_directory']['description'] = 'Kde by mìly být všechny log soubory uloženy?'; -$lng['serversettings']['ipaddress']['title'] = 'IP-Adresa'; -$lng['serversettings']['ipaddress']['description'] = 'Jaká je IP adresa tohoto serveru?'; -$lng['serversettings']['hostname']['title'] = 'Jméno hosta'; -$lng['serversettings']['hostname']['description'] = 'Jaké je jméno hosta tohoto serveru?'; -$lng['serversettings']['apachereload_command']['title'] = 'Pøíkaz pro reload apache'; -$lng['serversettings']['apachereload_command']['description'] = 'Jaký je pøíkaz, kterým apache znovunahraje své konfiguraèní soubory?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Bindujte konfiguraèní adresáø'; -$lng['serversettings']['bindconf_directory']['description'] = 'Kde by mìly být uloženy "bind configfiles"?'; -$lng['serversettings']['bindreload_command']['title'] = 'Bind reload pøíkaz'; -$lng['serversettings']['bindreload_command']['description'] = 'Jaký je pøíkaz pro znovunahrání "bind configfiles"?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Bind výchozí zóna'; -$lng['serversettings']['binddefaultzone']['description'] = 'Jaký je název výchozí zóny?'; -$lng['serversettings']['vmail_uid']['title'] = 'UID-mailù'; -$lng['serversettings']['vmail_uid']['description'] = 'Jaké UserID by mìly e-maily mít?'; -$lng['serversettings']['vmail_gid']['title'] = 'GID-mailù'; -$lng['serversettings']['vmail_gid']['description'] = 'Jaké GroupID by mìly maily mít?'; -$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Home adresáø'; -$lng['serversettings']['vmail_homedir']['description'] = 'Kam by se mìly všechny maily ukládat?'; -$lng['serversettings']['adminmail']['title'] = 'Odesílatel'; -$lng['serversettings']['adminmail']['description'] = 'Jaká je odesílatelova adresa pro emaily odeslané z Panelu?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdminova URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'Jaká je URL adresa phpMyAdmin? (musí zaèínat http(s)://)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMailová URL'; -$lng['serversettings']['webmail_url']['description'] = 'Jaká je URL adresa k WebMailu? (musí zaèínat with http(s)://)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = 'Jaká je URL k WebFTP? (musí zaèínat with http(s)://)'; -$lng['serversettings']['language']['description'] = 'Jaký je výchozí jazyk Vašeho serveru?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Maximální poèet pokusù o pøihlášení'; -$lng['serversettings']['maxloginattempts']['description'] = 'Maximální poèet pokusù o pøihlášení k úètu, než se úèet zablokuje.'; -$lng['serversettings']['deactivatetime']['title'] = 'Deaktivovaný po dobu'; -$lng['serversettings']['deactivatetime']['description'] = 'Èas (sek.) po který bude úèet deaktivován pro pøíliš mnoho pokusù o pøihlášení.'; -$lng['serversettings']['pathedit']['title'] = 'Typ vstupu cesty'; -$lng['serversettings']['pathedit']['description'] = 'Mìla by být cesta vybírána pomocí vyskakovacího menu nebo vstupním polem?'; -$lng['serversettings']['nameservers']['title'] = 'Nameservery'; -$lng['serversettings']['nameservers']['description'] = 'Støedníkem oddìlený seznam obsahující hostname všech nameserverù. První bude primární.'; -$lng['serversettings']['mxservers']['title'] = 'MX servery'; -$lng['serversettings']['mxservers']['description'] = 'Støedníkem oddìlený seznam obsahující páry èísel a hostname oddìlených mezerou (napø. \'10 mx.example.com\') obsahující mx servery.'; - -/** - * CHANGED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['mysql']['description'] = 'Zde mùžete vytváøet a mìnit své MySQL-Databáze.
Zmìny jsou provedeny okamžitì a databáze mùže být okamžitì používána.
V menu vlevo mùžete najít nástroj phpMyAdmin se kterým mùžete jednoduše upravovat svou databázi.

Pro použití databáze ve svých php skriptech použijte následující nastavení: (Data kurzívou musí být zmìnìna na Vámi vložené hodnoty!)
Host:
Uživatelské jméno: Databasename
Heslo: heslo které jste zvolili
Databáze: Databasename'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Poslední generování konfiguraèních souborù'; -$lng['serversettings']['paging']['title'] = 'Záznamù na stránku'; -$lng['serversettings']['paging']['description'] = 'Kolik záznamù by mìlo být zobrazeno na stránce? (0 = zrušit stránkování)'; -$lng['error']['ipstillhasdomains'] = 'IP/Port kombinace, kterou chcete smazat má stále pøiøazené domény, prosím pøeøaïte je k jiné IP/Port kombinaci než smažete tuto IP/Port kombinaci.'; -$lng['error']['cantdeletedefaultip'] = 'Nemùžete smazat IP/Port kombinaci výchozího pøeprodejce, prosím vytvoøte jinou IP/Port kombinaci výchozí pro pøeprodejce než smažete tuto IP/Port kombinaci.'; -$lng['error']['cantdeletesystemip'] = 'Nemùžete smazat poslední systémovou IP, buï vytvoøte novou IP/Port kombinaci pro systémovou IP nebo zmìòte IP systému.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'Musíte vybrat IP/Port kombinaci která by se mìla stát výchozí.'; -$lng['error']['myipnotdouble'] = 'Tato kombinace IP/Portu již existuje.'; -$lng['question']['admin_ip_reallydelete'] = 'Chcete opravdu smayat IP adresu %s?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IP a Porty'; -$lng['admin']['ipsandports']['add'] = 'Pøidat IP/Port'; -$lng['admin']['ipsandports']['edit'] = 'Upravit IP/Port'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Port'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'Nemùžete zmìnit poslední systémovou IP, buï vytvoøte novou IP/Port kombinaci pro systémovou IP nebo zmìòte IP systému.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Jste si jisti, že chcete aby root dokumentù pro tuto doménu nebyl v "customerroot" zákazníka?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Zakázáno'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir-cesta'; -$lng['domain']['docroot'] = 'Cesta z políèka nahoøe'; -$lng['domain']['homedir'] = 'Domovní adresáø'; -$lng['admin']['valuemandatory'] = 'Tato hodnota je povinná'; -$lng['admin']['valuemandatorycompany'] = 'Buï "jméno" a "køestní jméno" nebo "spoleènost" musí být vyplnìna'; -$lng['menue']['main']['username'] = 'Pøihlášen(a) jako: '; -$lng['panel']['urloverridespath'] = 'URL (pøepíše cestu)'; -$lng['panel']['pathorurl'] = 'Cesta nebo URL'; -$lng['error']['sessiontimeoutiswrong'] = 'Pouze èíselné "Session Timeout" je povoleno.'; -$lng['error']['maxloginattemptsiswrong'] = 'ouze èíselné "Maximální poèet pokusù o pøihlášení" je povoleno.'; -$lng['error']['deactivatetimiswrong'] = 'ouze èíselné "Èas deaktivace" je povoleno.'; -$lng['error']['accountprefixiswrong'] = '"Pøedpona uživatele" je špatnì.'; -$lng['error']['mysqlprefixiswrong'] = '"SQL pøedpona" je špatnì.'; -$lng['error']['ftpprefixiswrong'] = '"FTP pøedpona" je špatnì.'; -$lng['error']['ipiswrong'] = '"IP-Adresa" je špatnì. Pouze validní IP adresa je povolena.'; -$lng['error']['vmailuidiswrong'] = '"Mails-uid" je špatnì. Je povoleno pouze èíselné UID.'; -$lng['error']['vmailgidiswrong'] = '"Mails-gid" je špatnì. Je povoleno pouze èíselné GID.'; -$lng['error']['adminmailiswrong'] = '"Sender-address" je špatnì. Je povolena pouze validní emailová adresa.'; -$lng['error']['pagingiswrong'] = '"Entries per Page"-value je špatnì. Jsou povolena pouze èísla.'; -$lng['error']['phpmyadminiswrong'] = 'phpMyAdmin-url naní správná url.'; -$lng['error']['webmailiswrong'] = 'WebMail-odkaz není správný odkaz.'; -$lng['error']['webftpiswrong'] = 'WebFTP-odkaz není správný odkaz.'; -$lng['domains']['hasaliasdomains'] = 'Má aliasové domény'; -$lng['serversettings']['defaultip']['title'] = 'Výchozí IP/Port'; -$lng['serversettings']['defaultip']['description'] = 'Jaká je výchozí IP/Port kombinace?'; -$lng['domains']['statstics'] = 'Statistika použití'; -$lng['panel']['ascending'] = 'sestupnì'; -$lng['panel']['decending'] = 'vzestupnì'; -$lng['panel']['search'] = 'Vyhledávání'; -$lng['panel']['used'] = 'použito'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = 'Pøekladatel'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = 'Hodnota pole "%s" není v oèekávaném formátu.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Software serveru'; -$lng['admin']['phpversion'] = 'PHP-Verze'; -$lng['admin']['phpmemorylimit'] = 'PHP-Limit-Pamìti'; -$lng['admin']['mysqlserverversion'] = 'MySQL verze serveru'; -$lng['admin']['mysqlclientversion'] = 'MySQL verze klienta'; -$lng['admin']['webserverinterface'] = 'Webserver rozhraní'; -$lng['domains']['isassigneddomain'] = 'Je pøiøazená doména'; -$lng['serversettings']['phpappendopenbasedir']['title'] = 'Cesty k pøidání k OpenBasedir'; -$lng['serversettings']['phpappendopenbasedir']['description'] = 'Tyto cesty (oddìleny pomocí "colons") budou vloženy do OpenBasedir-statementu v každém vhost-containeru.'; - -// CHANGED IN 1.2.15-rc1 - -$lng['error']['loginnameissystemaccount'] = 'Nemùžete vytvoøit úèty, které jsou podobné systémovým úètùm (napøíklad zaèínají "%s"). Prosím vložte jiné jméno úètu.'; -$lng['error']['youcantdeleteyourself'] = 'Z bezpeènostních dùvodù se nemùžete smazat.'; -$lng['error']['youcanteditallfieldsofyourself'] = 'Poznámka: Z bezpeènostních dùvodù nemùžete upravovat všechna pole svého úètu.'; - -// ADDED IN 1.2.16-svn1 - -$lng['serversettings']['natsorting']['title'] = 'Použít "lidské" tøídìní v seznamech'; -$lng['serversettings']['natsorting']['description'] = 'Øadit seznamy jako web1 -> web2 -> web11 místo web1 -> web11 -> web2.'; - -// ADDED IN 1.2.16-svn2 - -$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot pro deaktivované uživatele'; -$lng['serversettings']['deactivateddocroot']['description'] = 'Když bude uživatel deaktivován, tato cesta bude použita jako jeho docroot. Ponechte prázdné, pokud nechcete vytváøet.'; - -// ADDED IN 1.2.16-svn4 - -$lng['panel']['reset'] = 'zrušit zmìny'; -$lng['admin']['accountsettings'] = 'Nastavení úètu'; -$lng['admin']['panelsettings'] = 'Nastavení panelu'; -$lng['admin']['systemsettings'] = 'Nastavení systému'; -$lng['admin']['webserversettings'] = 'Nastavení webserveru'; -$lng['admin']['mailserversettings'] = 'Nastavení mailserveru'; -$lng['admin']['nameserversettings'] = 'Nastavení nameserveru'; -$lng['admin']['updatecounters'] = 'Pøepoèítat využití zdrojù'; -$lng['question']['admin_counters_reallyupdate'] = 'Opravdu chcete pøepoèítat využití zdrojù?'; -$lng['panel']['pathDescription'] = 'Pokud adresáø neexistuje, bude vytvoøen automaticky.'; - -// ADDED IN 1.2.16-svn6 - -$lng['mails']['trafficninetypercent']['mailbody'] = 'Vážený uživateli {NAME},\n\nPoužil jste {TRAFFICUSED} MB z Vámi dostupných {TRAFFIC} MB pøenosù.\nTo je více jak 90%.\n\nPøejeme hezký den, SysCP-Team'; -$lng['mails']['trafficninetypercent']['subject'] = 'Dosahujíc vašeho limitu pøenosù'; -$lng['admin']['templates']['trafficninetypercent'] = 'Upozoròovací mail pro zákazníky, pokud vyèerpají 90% z pøenosù'; -$lng['admin']['templates']['TRAFFIC'] = 'Nahrazeno pøenosy, které byly pøidìleny uživateli.'; -$lng['admin']['templates']['TRAFFICUSED'] = 'Nahrazeno pøenosy, které byly vyèerpány zákazníkem.'; - -// ADDED IN 1.2.16-svn7 - -$lng['admin']['subcanemaildomain']['never'] = 'Nikdy'; -$lng['admin']['subcanemaildomain']['choosableno'] = 'Výbìr, výchozí ne'; -$lng['admin']['subcanemaildomain']['choosableyes'] = 'Výbìr, výchozí ano'; -$lng['admin']['subcanemaildomain']['always'] = 'Vždy'; -$lng['changepassword']['also_change_webalizer'] = ' také zmìòte heslo pro webalizer statistics'; - -// ADDED IN 1.2.16-svn8 - -$lng['serversettings']['mailpwcleartext']['title'] = 'Také uložte hesla mailových úètù nešifrovaná v databázi'; -$lng['serversettings']['mailpwcleartext']['description'] = 'Pokud je toto nastaveno na "ano", všechna hesla budou ukládána bez šifrování (èístý text, èitelná pro kohokoliv s pøístupem k databázi) v tabulce mail_users. Toto aktivujte jen pokud to opravdu potøebujete!'; -$lng['serversettings']['mailpwcleartext']['removelink'] = 'Kliknutím zde vymažete všechna nezašifrovaná hesla z tabulky.'; -$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Opravdu chcete vymazat všechna nezašifrovaná hesla pro e-mailové úèty z tabulky mail_users? Tento krok nelze vrátit zpìt!'; -$lng['admin']['configfiles']['overview'] = 'Pøehled'; -$lng['admin']['configfiles']['wizard'] = 'Prùvodce'; -$lng['admin']['configfiles']['distribution'] = 'Distribuce'; -$lng['admin']['configfiles']['service'] = 'Služba'; -$lng['admin']['configfiles']['daemon'] = 'Daemon'; -$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; -$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; -$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; -$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; -$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; -$lng['admin']['configfiles']['etc'] = 'Ostatní (System)'; -$lng['admin']['configfiles']['choosedistribution'] = '-- Vyberte distribuci --'; -$lng['admin']['configfiles']['chooseservice'] = '-- Vyberte službu --'; -$lng['admin']['configfiles']['choosedaemon'] = '-- Vyberte daemona --'; -$lng['admin']['trafficlastrun'] = 'Poslední kalkulace pøenosù'; - -// ADDED IN 1.2.16-svn10 - -$lng['serversettings']['ftpdomain']['title'] = 'FTP úèty na doménì'; -$lng['serversettings']['ftpdomain']['description'] = 'Zákazníci mohou vytváøet FTP úèty user@customerdomain?'; -$lng['panel']['back'] = 'Back'; - -// ADDED IN 1.2.16-svn12 - -$lng['serversettings']['mod_log_sql']['title'] = 'Doèasnì ukládat logy do databáze'; -$lng['serversettings']['mod_log_sql']['description'] = 'Použít mod_log_sql pro doèasné uložení webrequestù
Toto vyžaduje speciální konfiguraci apache!'; -$lng['serversettings']['mod_fcgid']['title'] = 'Includuj PHP pøes mod_fcgid/suexec'; -$lng['serversettings']['mod_fcgid']['description'] = 'Použij mod_fcgid/suexec/libnss_mysql pro bìh PHP s odpovídajícím úøivatelským úètem.
toto vyžaduje speciální konfiguraci apache!'; -$lng['serversettings']['sendalternativemail']['title'] = 'Použij alternativní e-mailovou adresu'; -$lng['serversettings']['sendalternativemail']['description'] = 'Pošli email s heslem na jinou adresu pøi vytváøení emailového úètu'; -$lng['emails']['alternative_emailaddress'] = 'Alternativní e-mailová adresa'; -$lng['mails']['pop_success_alternative']['mailbody'] = 'Vážený uživateli,\n\nVáš emailový úèet {EMAIL}\nbyl úspìšnì nastaven.\nVaše heslo je {PASSWORD}.\n\nTento e-mail byl automaticky vygenerován,\nprosím neodpovídejte na nìj!\n\nPøejeme Vám hezký den, SysCP-Team'; -$lng['mails']['pop_success_alternative']['subject'] = 'E-mailový úèet byl úspìšnì vytvoøen'; -$lng['admin']['templates']['pop_success_alternative'] = 'Uvítací e-mail pro nové úèty byl odeslán na alternativní adresu'; -$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Nahrazeno heslem úètu POP3/IMAP.'; - -// ADDED IN 1.2.16-svn13 - -$lng['error']['documentrootexists'] = 'Adresáø "%s" již existuje pro tohoto zákazníka. Prosím odstraòte jej, než budete znovu zákazníka vkládat.'; - -// ADDED IN 1.2.16-svn14 - -$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost konfiguraèní soubor/dirname'; -$lng['serversettings']['apacheconf_vhost']['description'] = 'Kde by mìla být uložena konfigurace vhosta? Mùžete zde buï specifikovat soubor (všichni vhosti v jednom souboru) nebo adresáø (každý vhost má vlastní soubor).'; -$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions konfiguraèní soubor/dirname'; -$lng['serversettings']['apacheconf_diroptions']['description'] = 'Kde by mìla být uložena konfigurace diroptions? Mùžete zde buï specifikovat soubor (všichni diroptions v jednom souboru) nebo adresáø (každý diroption má vlastní soubor).'; -$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd dirname'; -$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Kde by mìly být uloženy htpasswd soubory pro ochranu adresáøù?'; - -// ADDED IN 1.2.16-svn15 - -$lng['error']['formtokencompromised'] = 'The request seems to be compromised. Z bezpeènostních dùvodù jste byli odhlášeni.'; -$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; -$lng['serversettings']['mysql_access_host']['description'] = 'Støedníkem oddìlený seznam hostù, ze kterých bude dovoleno uživatelùm se pøipojit k MySQL-Serveru.'; - -// ADDED IN 1.2.18-svn1 - -$lng['admin']['ipsandports']['create_listen_statement'] = 'Vytvoøit Listen statement'; -$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Vytvoøit NameVirtualHost statement'; -$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Vytvoøit vHost-Container'; -$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Vytvoøit ServerName statement v vHost-Container'; - -// ADDED IN 1.2.18-svn2 - -$lng['admin']['webalizersettings'] = 'Nastavení Webalizeru'; -$lng['admin']['webalizer']['normal'] = 'Normální'; -$lng['admin']['webalizer']['quiet'] = 'Tichý'; -$lng['admin']['webalizer']['veryquiet'] = 'Žádný výstup'; -$lng['serversettings']['webalizer_quiet']['title'] = 'Výstup Webalizeru'; -$lng['serversettings']['webalizer_quiet']['description'] = 'Povídavost webalizer-programu'; - -// ADDED IN 1.2.18-svn3 - -$lng['ticket']['admin_email'] = 'root@localhost'; -$lng['ticket']['noreply_email'] = 'tikety@syscp'; -$lng['admin']['ticketsystem'] = 'Support-tikety'; -$lng['menue']['ticket']['ticket'] = 'Support tikety'; -$lng['menue']['ticket']['categories'] = 'Kategorie podpory'; -$lng['menue']['ticket']['archive'] = 'Archiv-tiketù'; -$lng['ticket']['description'] = 'Nastavit popis zde!'; -$lng['ticket']['ticket_new'] = 'Otevøít nový tiket'; -$lng['ticket']['ticket_reply'] = 'zodpovìdìt tiket'; -$lng['ticket']['ticket_reopen'] = 'Znovuotevøít tiket'; -$lng['ticket']['ticket_newcateory'] = 'Vytvoøit novou kategorii'; -$lng['ticket']['ticket_editcateory'] = 'Upravit kategorii'; -$lng['ticket']['ticket_view'] = 'Zobrazit ticketcourse'; -$lng['ticket']['ticketcount'] = 'Tikety'; -$lng['ticket']['ticket_answers'] = 'Odpovìdi'; -$lng['ticket']['lastchange'] = 'Poslední akce'; -$lng['ticket']['subject'] = 'Pøedmìt'; -$lng['ticket']['status'] = 'Status'; -$lng['ticket']['lastreplier'] = 'Poslední odpovídající'; -$lng['ticket']['priority'] = 'Priorita'; -$lng['ticket']['low'] = 'Nízká'; -$lng['ticket']['normal'] = 'Normální'; -$lng['ticket']['high'] = 'Vysoká'; -$lng['ticket']['unf_low'] = 'Nízká'; -$lng['ticket']['unf_normal'] = 'Normální'; -$lng['ticket']['unf_high'] = 'Vysoká'; -$lng['ticket']['lastchange'] = 'Poslední zmìna'; -$lng['ticket']['lastchange_from'] = 'Od data (dd.mm.yyyy)'; -$lng['ticket']['lastchange_to'] = 'Do data (dd.mm.yyyy)'; -$lng['ticket']['category'] = 'Kategorie'; -$lng['ticket']['no_cat'] = 'Žádná'; -$lng['ticket']['message'] = 'Zpráva'; -$lng['ticket']['show'] = 'Zobraz'; -$lng['ticket']['answer'] = 'Odpovìï'; -$lng['ticket']['close'] = 'Zavøít'; -$lng['ticket']['reopen'] = 'Znovuotevøít'; -$lng['ticket']['archive'] = 'Archiv'; -$lng['ticket']['ticket_delete'] = 'Smazat tiket'; -$lng['ticket']['lastarchived'] = 'Nedávno archivované tikety'; -$lng['ticket']['archivedtime'] = 'Archivováno'; -$lng['ticket']['open'] = 'Otevøít'; -$lng['ticket']['wait_reply'] = 'Èeká na odpovìï'; -$lng['ticket']['replied'] = 'Odpovìzeno'; -$lng['ticket']['closed'] = 'Zavøený'; -$lng['ticket']['staff'] = 'Personál'; -$lng['ticket']['customer'] = 'Zákazník'; -$lng['ticket']['old_tickets'] = 'Tiket zprávy'; -$lng['ticket']['search'] = 'Prohledat archiv'; -$lng['ticket']['nocustomer'] = 'Žádný výbìr'; -$lng['ticket']['archivesearch'] = 'Výsledky prohledávání archivu'; -$lng['ticket']['noresults'] = 'Nenalezeny žádné tikety'; -$lng['ticket']['notmorethanxopentickets'] = 'Kvùli ochranì proti SPAMu nemùžete mít otevøeno víc jak %s tiketù'; -$lng['ticket']['supportstatus'] = 'Status-podpory'; -$lng['ticket']['supportavailable'] = 'Naše podpora jsou k dispozici a pøipraveni pomoci.'; -$lng['ticket']['supportnotavailable'] = 'Naše podpora není momentálnì dostupná'; -$lng['admin']['templates']['ticket'] = 'Upozoròovací e-maily pro tikety podpory'; -$lng['admin']['templates']['SUBJECT'] = 'Nahrazeno pøedmìtem tiketu podpory'; -$lng['admin']['templates']['new_ticket_for_customer'] = 'Zákaznické upozornìní, že byl tiket odeslán'; -$lng['admin']['templates']['new_ticket_by_customer'] = 'Administrátorské upozornìní, že byl tiket otevøen zákazníkem'; -$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Administrátorské upozornìní, že pøišla odpovìï na tiket od zákazníka'; -$lng['admin']['templates']['new_ticket_by_staff'] = 'Zákaznické upozornìní, že byl tiket otevøen personálem'; -$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Zákaznické upozornìní na odpovìï na tiket od personálu'; -$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\nVáš tiket podpory s pøedmìtem "{SUBJECT}" byl odeslán.\n\nAž pøijde odpovìï na Váš tiket, budete upozornìni.\n\nDìkujeme,\n SysCP-Team'; -$lng['mails']['new_ticket_for_customer']['subject'] = 'Váš tiket na podporu byl odeslán'; -$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Milý administrátore,\n\nbyl odeslán nový tiket s pøedmìtem "{SUBJECT}".\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; -$lng['mails']['new_ticket_by_customer']['subject'] = 'Nový tiket podpory byl odeslán'; -$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Milý administrátore,\n\ntiket podpory "{SUBJECT}" byl zodpovìzen zákazníkem.\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; -$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Nová odpovìï na tiket podpory'; -$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\nbyl pro Vás otevøen tiket podpory s pøedmìtem "{SUBJECT}".\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; -$lng['mails']['new_ticket_by_staff']['subject'] = 'Nový tiket podpory byl odeslán'; -$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\ntiket podpory s pøedmìtem "{SUBJECT}" byl zodpovìzen naším personálem.\n\nPro pøeètení tiketu se prosím pøihlašte.\n\nDìkujem,\n SysCP-Team'; -$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Nová odpovìï na tiket podpory'; -$lng['question']['ticket_reallyclose'] = 'Opravdu chcete zavøít tiket "%s"?'; -$lng['question']['ticket_reallydelete'] = 'Opravdu chcete smazat tiket "%s"?'; -$lng['question']['ticket_reallydeletecat'] = 'Opravdu chcete smazat kategorii "%s"?'; -$lng['question']['ticket_reallyarchive'] = 'Opravdu chcete pøesunout tiket "%s" do archivu?'; -$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; -$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; -$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; -$lng['error']['nomoreticketsavailable'] = 'Použili jste všechny dostupné tikety. Prosím kontaktujte svého administrátora.'; -$lng['error']['nocustomerforticket'] = 'Nemohu vytváøet tikety bez zákazníkù'; -$lng['error']['categoryhastickets'] = 'Kategorie stále obsahuje tikety.
Prosím smažte tikety aby jste mohli smazat kategorii'; -$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; -$lng['admin']['ticketsettings'] = 'Tikety-podpory nastavení'; -$lng['admin']['archivelastrun'] = 'Poslední archivace tiketù'; -$lng['serversettings']['ticket']['noreply_email']['title'] = 'Bez odpovìdní e-mailová adresa'; -$lng['serversettings']['ticket']['noreply_email']['description'] = 'Odesílatelova adresa pro tikety podpory, vìtšinou nìco jako no-reply@domain.tld'; -$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Zaèátek práce podpory (hh:mm)'; -$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-time pokud je podpora k dispozici'; -$lng['serversettings']['ticket']['worktime_end']['title'] = 'Konec práce podpory (hh:mm)'; -$lng['serversettings']['ticket']['worktime_end']['description'] = 'End-time pokud je podpora k dispozici'; -$lng['serversettings']['ticket']['worktime_sat'] = 'Je podpora k dispozici o sobotách?'; -$lng['serversettings']['ticket']['worktime_sun'] = 'Je podpora k dispozici o nedìlích?'; -$lng['serversettings']['ticket']['worktime_all']['title'] = 'Podpora bez èasového omezení'; -$lng['serversettings']['ticket']['worktime_all']['description'] = 'Pokud "Ano" možnosti zaèátku a konce práce podpory bude pøepsána'; -$lng['serversettings']['ticket']['archiving_days'] = 'Po kolika dnech by mìly být uzavøené tikety archivovány?'; -$lng['customer']['tickets'] = 'Tikety podpory'; - -// ADDED IN 1.2.18-svn4 - -$lng['admin']['domain_nocustomeraddingavailable'] = 'Momentálnì není možné pøidat doménu. Nejdøíve musíte pøidat aspoò jednoho zákazníka.'; -$lng['serversettings']['ticket']['enable'] = 'Zapnout systém tiketù'; -$lng['serversettings']['ticket']['concurrentlyopen'] = 'Kolik tiketù by mìlo být k dispozici najednou?'; -$lng['error']['norepymailiswrong'] = '"Bezodpovìdní adresa" je špatnì. Je povolena pouze validní e-mailová adresa.'; -$lng['error']['tadminmailiswrong'] = '"Ticketadmin-adresa" je špatnì. Je povolena pouze validní e-mailová adresa.'; -$lng['ticket']['awaitingticketreply'] = 'Máte %s nezodpovìzených tiketù podpory'; - -// ADDED IN 1.2.18-svn5 - -$lng['serversettings']['ticket']['noreply_name'] = 'Jméno odesílatele tiketù v emailu'; - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: czech.lng.php 2724 2009-06-07 14:18:02Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = ''; +$lng['panel']['edit'] = 'upravit'; +$lng['panel']['delete'] = 'smazat'; +$lng['panel']['create'] = 'vytvoøit'; +$lng['panel']['save'] = 'uložit'; +$lng['panel']['yes'] = 'ano'; +$lng['panel']['no'] = 'ne'; +$lng['panel']['emptyfornochanges'] = 'prázdné - žádné zmìny'; +$lng['panel']['emptyfordefault'] = 'prázdné - pro výchozí'; +$lng['panel']['path'] = 'Cesta'; +$lng['panel']['toggle'] = 'Pøepnout'; +$lng['panel']['next'] = 'další'; +$lng['panel']['dirsmissing'] = 'Nemohu nejít/èíst adresáø!'; + +/** + * Login + */ + +$lng['login']['username'] = 'Uživatel'; +$lng['login']['password'] = 'Heslo'; +$lng['login']['language'] = 'Jazyk'; +$lng['login']['login'] = 'Pøihlásit'; +$lng['login']['logout'] = 'Odhlásit'; +$lng['login']['profile_lng'] = 'Jazyk profilu'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Domácí adresáø'; +$lng['customer']['name'] = 'Jméno'; +$lng['customer']['firstname'] = 'Køestní jméno'; +$lng['customer']['company'] = 'Spoleènost'; +$lng['customer']['street'] = 'Ulice'; +$lng['customer']['zipcode'] = 'PSÈ'; +$lng['customer']['city'] = 'Mìsto'; +$lng['customer']['phone'] = 'Telefon'; +$lng['customer']['fax'] = 'Fax'; +$lng['customer']['email'] = 'Email'; +$lng['customer']['customernumber'] = 'Zákazníkovo ID'; +$lng['customer']['diskspace'] = 'Webový prostor (MB)'; +$lng['customer']['traffic'] = 'Pøenosy (GB)'; +$lng['customer']['mysqls'] = 'MySQL-Databáze'; +$lng['customer']['emails'] = 'E-mailové-adresy'; +$lng['customer']['accounts'] = 'E-mailvé-Úèty'; +$lng['customer']['forwarders'] = 'E-mailové-Pøeposílaèe'; +$lng['customer']['ftps'] = 'FTP-Úèty'; +$lng['customer']['subdomains'] = 'Sub-Domény'; +$lng['customer']['domains'] = 'Doména'; +$lng['customer']['unlimited'] = 'neomezeno'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Hlavní'; +$lng['menue']['main']['changepassword'] = 'Zmìnit heslo'; +$lng['menue']['main']['changelanguage'] = 'Zmìnit jazyl'; +$lng['menue']['email']['email'] = 'E-mail'; +$lng['menue']['email']['emails'] = 'Adresy'; +$lng['menue']['email']['webmail'] = 'WebMail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Databáze'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Domény'; +$lng['menue']['domains']['settings'] = 'Nastavení'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Úèty'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Extra'; +$lng['menue']['extras']['directoryprotection'] = 'Ochrana adresáøe'; +$lng['menue']['extras']['pathoptions'] = 'nastavení cesty'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Detaily zákazníka'; +$lng['index']['accountdetails'] = 'Detaily úètu'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Staré heslo'; +$lng['changepassword']['new_password'] = 'Nové heslo'; +$lng['changepassword']['new_password_confirm'] = 'Nové heslo (potvrzení)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Nové heslo (prázdné = beze zmìn)'; +$lng['changepassword']['also_change_ftp'] = ' také zmìnit heslo k hlavnímu FTP úètu'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Zde mùžete vytvoøit (sub-)domény a mìnit jejich cesty.
Systém potøebuje nìjaký èas, než se po úpravì nové nastavení projeví.'; +$lng['domains']['domainsettings'] = 'Nastavení domény'; +$lng['domains']['domainname'] = 'Jméno domény'; +$lng['domains']['subdomain_add'] = 'Vytvoøit subdoménu'; +$lng['domains']['subdomain_edit'] = 'Upravit (sub)doménu'; +$lng['domains']['wildcarddomain'] = 'Vytvoøit jako wildcard doménu?'; +$lng['domains']['aliasdomain'] = 'Alias pro doménu'; +$lng['domains']['noaliasdomain'] = 'Žádný alias pro doménu'; + +/** + * E-mails + */ + +$lng['emails']['description'] = 'Zde mùžete také vytvoøit a mìnit e-mailové adresy.
Úèet je jako Vaše poštovní schránka pøed Vaším domem. Pokud Vám nìkdo pošle e-mail, pøijde na tento úèet.

Pro stažení e-mailù použijte následující nastavení ve svém poštovním klientu: (Data kurzívou musí být zmìnìna podle toho, co jste zadali!)
Host: Jméno domény
Uživatelské jméno: Jméno úètu / e-mailové adresy
Heslo: heslo které jste zadali'; +$lng['emails']['emailaddress'] = 'E-mail-adresa'; +$lng['emails']['emails_add'] = 'Vytvoøit e-mailovou-adresu'; +$lng['emails']['emails_edit'] = 'Editovat e-mailovou-addresu'; +$lng['emails']['catchall'] = 'Catchall'; +$lng['emails']['iscatchall'] = 'Definovat jako catchall-adresu?'; +$lng['emails']['account'] = 'Úèet'; +$lng['emails']['account_add'] = 'Vytvoøit úèet'; +$lng['emails']['account_delete'] = 'Smazat úèet'; +$lng['emails']['from'] = 'Zdroj'; +$lng['emails']['to'] = 'Cíl'; +$lng['emails']['forwarders'] = 'Pøeposílatelé'; +$lng['emails']['forwarder_add'] = 'Vytvoøit pøeposílatele'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Zde mùžete vytváøet a mìnit FTP úèty.
Zmìny jsou provedeny okamžitì a úèty mohou být okamžitì použity.'; +$lng['ftp']['account_add'] = 'Vytvoøit úèet'; + +/** + * MySQL + */ + +$lng['mysql']['databasename'] = 'jméno uživatele/databáze'; +$lng['mysql']['databasedescription'] = 'popis databáze'; +$lng['mysql']['database_create'] = 'Vytvoøit databázi'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Zde mùžete vkládat extra vìci, napøíklad ochranu adresáøù.
Systém potøebuje nìjaký èas, než se zmìny projeví.'; +$lng['extras']['directoryprotection_add'] = 'Pøidat ochranu adresáøe'; +$lng['extras']['view_directory'] = 'zobrazit obsah adresáøe'; +$lng['extras']['pathoptions_add'] = 'pøidat nastavení cesty'; +$lng['extras']['directory_browsing'] = 'prohlížení obsahu adresáøe'; +$lng['extras']['pathoptions_edit'] = 'upravit nastavení cesty'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL k Chybové stránce 404'; +$lng['extras']['errordocument403path'] = 'URL k Chybové stránce 403'; +$lng['extras']['errordocument500path'] = 'URL k Chybové stránce 500'; +$lng['extras']['errordocument401path'] = 'URL k Chybové stránce 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Chyba'; +$lng['error']['directorymustexist'] = 'Adresáø %s musí existovat. Prosím vytvoøte jej s pomocí Vašeho FTP klienta.'; +$lng['error']['filemustexist'] = 'Soubor %s musí existovat.'; +$lng['error']['allresourcesused'] = 'Už jste použili všechny své zdroje.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Nemùžete smazat doménu, která se používá jako e-mailová doména.'; +$lng['error']['domains_canteditdomain'] = 'Nemùžete upravovat tuto doménu. Byla zakázána adminem.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Nemùžete smazat doménu, která se používá jako e-mailová doména. Nejdøíve smažte všechny emailové adresy.'; +$lng['error']['firstdeleteallsubdomains'] = 'Musíte smazat všechny subdomény než budete moci vytvoøit "wildcard" doménu.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Už jste definovali "catchall" pro tuto doménu.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Nemùžete smazat svùj hlavní FTP úèet'; +$lng['error']['login'] = 'Uživatelské jméno nebo heslo, které jste zadali, je špatné. Prosím zkuste to znovu!'; +$lng['error']['login_blocked'] = 'Tento úèet byl zablokován z dùvodu pøíliš velkého množství chyb pøi pøihlášení.
Prosím zkuste to znovu za ' . $settings['login']['deactivatetime'] . ' sekund.'; +$lng['error']['notallreqfieldsorerrors'] = 'Nevyplnili jste všechna políèka nebo jsou nìkteré vyplnìna špatnì.'; +$lng['error']['oldpasswordnotcorrect'] = 'Staré heslo není správné.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Nemùžete alokovat více zdrojù než sami vlastníte'; +$lng['error']['mustbeurl'] = 'Vložili jste nesprávnou nebo nekompletní url (napø. http://somedomain.com/error404.htm)'; +$lng['error']['invalidpath'] = 'Nevybrali jste správnou url (možná problém s "dirlistingem"?)'; +$lng['error']['stringisempty'] = 'Chybìjící vstup v poli'; +$lng['error']['stringiswrong'] = 'Špatný vstup v poli'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'Nové heslo se neshoduje s tím pro potvrzení'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'Domain\''; +$lng['error']['mydocumentroot'] = '\'Documentroot\''; +$lng['error']['loginnameexists'] = 'Pøihlašovací jméno %s již existuje'; +$lng['error']['emailiswrong'] = 'Emailová adresa %s obsahuje nepovolené znaky nebo je nekompletní'; +$lng['error']['loginnameiswrong'] = 'Pøihlašovací jméno %s obsahuje nepovolené znaky'; +$lng['error']['userpathcombinationdupe'] = 'Kombinace Uživatelského jména a cesty již existuje'; +$lng['error']['patherror'] = 'Obecná chyba! Cesta nemùže být prázdná'; +$lng['error']['errordocpathdupe'] = 'Možnost pro cestu %s již existuje'; +$lng['error']['adduserfirst'] = 'Vytvoøte prosím nejdøíve zákazníka'; +$lng['error']['domainalreadyexists'] = 'Doména %s je již pøiøazena k zákazníkovi'; +$lng['error']['nolanguageselect'] = 'Nebyl vybrán žádný jazyk.'; +$lng['error']['nosubjectcreate'] = 'Musíte definovat téma pro tuto e-mailovou šablonu.'; +$lng['error']['nomailbodycreate'] = 'Musíte definovat text e-mailu pro tuto e-mailovou šablonu.'; +$lng['error']['templatenotfound'] = 'Šablona nebyla nalezena.'; +$lng['error']['alltemplatesdefined'] = 'Nemùžete definovat více šablon, všechny jazyky jsou již podporovány.'; +$lng['error']['wwwnotallowed'] = 'www není povoleno pro subdomény.'; +$lng['error']['subdomainiswrong'] = 'Subdoména %s obsahuje neplatné znaky.'; +$lng['error']['domaincantbeempty'] = 'Jméno domény nesmí být prázdné.'; +$lng['error']['domainexistalready'] = 'Doména %s již existuje.'; +$lng['error']['domainisaliasorothercustomer'] = 'Vybraný alias pro doménu je buï sama aliasem domény nebo patøí jinému zákazníkovi.'; +$lng['error']['emailexistalready'] = 'E-mailová adresa %s již existuje.'; +$lng['error']['maindomainnonexist'] = 'Hlavní doména %s neexistuje.'; +$lng['error']['destinationnonexist'] = 'Prosím vytvoøte pøeposílatele v poli \'Cíl\'.'; +$lng['error']['destinationalreadyexistasmail'] = 'Pøeposílaè na %s již existuje jako aktivní emailová adresa.'; +$lng['error']['destinationalreadyexist'] = 'Už jste nastavili pøeposílaè na %s .'; +$lng['error']['destinationiswrong'] = 'Pøeposílaè %s obsahuje nesprávné znaky nebo není kompletní.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Bezpeènostní otázka'; +$lng['question']['admin_customer_reallydelete'] = 'Chcete opravdu smazat uživatele %s? Akci nelze vzít zpìt!'; +$lng['question']['admin_domain_reallydelete'] = 'Chcete opravdu smazat doménu %s?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Chcete opravdu deaktivovat tato Bezpeènostní nastavení (OpenBasedir a/nebo SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = 'Chcete opravdu smazat administrátory %s? Každý zákazník a doména bude nastavena k Vašemu úètu.'; +$lng['question']['admin_template_reallydelete'] = 'Chcete opravdu smazat šablonu \'%s\'?'; +$lng['question']['domains_reallydelete'] = 'Chcete opravdu smazat doménu %s?'; +$lng['question']['email_reallydelete'] = 'Opravdu chcete smazat e-mailovou adresu %s?'; +$lng['question']['email_reallydelete_account'] = 'Chcete opravdu smazat e-mailový úèet %s?'; +$lng['question']['email_reallydelete_forwarder'] = 'Chcete opravdu smazat pøeposílaè %s?'; +$lng['question']['extras_reallydelete'] = 'Chcete opravdu odstranit ochranu adresáøe %s?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'Opravdu chcete smazat nastavení cesty pro %s?'; +$lng['question']['ftp_reallydelete'] = 'Opravdu chcete smazat FTP úèet %s?'; +$lng['question']['mysql_reallydelete'] = 'Opravdu chcete smazat databázi %s? Tato akce nemùže být vzata zpìt!'; +$lng['question']['admin_configs_reallyrebuild'] = 'Opravdu chcete rebuildovat apache a nabindovat konfiguraèní soubory?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Dobrý den,\n\nVáš e-mailový úèet {EMAIL}\nbyl v poøádku nastaven.\n\nToto je automaticky vytvoøený\ne-mail, prosím neodpovídejte na nìj!\n\nPøejeme hezký den, SysCP-Team'; +$lng['mails']['pop_success']['subject'] = 'Poštovní úèet byl úspìšnì nastaven'; +$lng['mails']['createcustomer']['mailbody'] = 'Dobrý den, {FIRSTNAME} {NAME},\n\nzde jsou informace o Vašem úètu:\n\nUživatel: {USERNAME}\nHeslo: {PASSWORD}\n\nDìkujeme,\nSysCP-Team'; +$lng['mails']['createcustomer']['subject'] = 'Informace o úètu'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Pøehled'; +$lng['admin']['ressourcedetails'] = 'Použité zdroje'; +$lng['admin']['systemdetails'] = 'Detaily systému'; +$lng['admin']['syscpdetails'] = 'SysCP Detaily'; +$lng['admin']['installedversion'] = 'Nainstalovaná verze'; +$lng['admin']['latestversion'] = 'Poslední verze'; +$lng['admin']['lookfornewversion']['clickhere'] = 'hledat pøes webservice'; +$lng['admin']['lookfornewversion']['error'] = 'Chyba pøi ètení'; +$lng['admin']['resources'] = 'Zdroje'; +$lng['admin']['customer'] = 'Zákazník'; +$lng['admin']['customers'] = 'Zákazníci'; +$lng['admin']['customer_add'] = 'Vytvoøit zákazníka'; +$lng['admin']['customer_edit'] = 'Upravit zákazníka'; +$lng['admin']['domains'] = 'Domény'; +$lng['admin']['domain_add'] = 'Vytvoøit doménu'; +$lng['admin']['domain_edit'] = 'Upravit doménu'; +$lng['admin']['subdomainforemail'] = 'Subdomény jako emailové domény'; +$lng['admin']['admin'] = 'Administrátor'; +$lng['admin']['admins'] = 'Administrátoøi'; +$lng['admin']['admin_add'] = 'Vytvoøit administrátora'; +$lng['admin']['admin_edit'] = 'Upravit administrátora'; +$lng['admin']['customers_see_all'] = 'Mùže vidìt všechy zákazníky?'; +$lng['admin']['domains_see_all'] = 'Mùže vidìt všechny domény?'; +$lng['admin']['change_serversettings'] = 'Mùže mìnit nastavení serveru?'; +$lng['admin']['server'] = 'Server'; +$lng['admin']['serversettings'] = 'Nastavení'; +$lng['admin']['rebuildconf'] = 'Pøebudovat konfiguraèní soubory'; +$lng['admin']['stdsubdomain'] = 'Standardní subdoména'; +$lng['admin']['stdsubdomain_add'] = 'Vytvoøit standardní subdoménu'; +$lng['admin']['phpenabled'] = 'PHP zapnuto'; +$lng['admin']['deactivated'] = 'Deaktivováno'; +$lng['admin']['deactivated_user'] = 'Deaktivovat uživatele'; +$lng['admin']['sendpassword'] = 'Zaslat heslo'; +$lng['admin']['ownvhostsettings'] = 'Vlastní vHost-nastavení'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Konfigurace'; +$lng['admin']['configfiles']['files'] = 'Konfiguraèní soubory: Prosím zmìòte následující soubory nabo je vytvoøte s
následujícím obsahem, pokud neexistují.
Poznámka: MySQL heslo nebylo nahrazeno z bezpeènostních dùvodù.
Prosím nahraïte "MYSQL_PASSWORD" svým vlastním. Pokud jste zapomnìli své mysql heslo
najdete jej v "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Pøíkazy: Prosím spuste následující pøíkazy v pøíkazovém øádku.'; +$lng['admin']['configfiles']['restart'] = 'Restart: Prosím spuste nísledující pøíkazy v pøíkazovém øádku, aby jste nahráli novou konfiguraci.'; +$lng['admin']['templates']['templates'] = 'Šablony'; +$lng['admin']['templates']['template_add'] = 'Pøidat šablonu'; +$lng['admin']['templates']['template_edit'] = 'Upravit šablonu'; +$lng['admin']['templates']['action'] = 'Akce'; +$lng['admin']['templates']['email'] = 'E-Mail'; +$lng['admin']['templates']['subject'] = 'Pøedmìt'; +$lng['admin']['templates']['mailbody'] = 'Tìlo mailu'; +$lng['admin']['templates']['createcustomer'] = 'Uvítací mail pro nové zákazníky'; +$lng['admin']['templates']['pop_success'] = 'Uvítací mail pro nové emailové úèty'; +$lng['admin']['templates']['template_replace_vars'] = 'Promìnné k nahrazení v šablonì:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Nahrazeno køestním jménem zákazníka.'; +$lng['admin']['templates']['NAME'] = 'Nahrazeno jménem zákazníka.'; +$lng['admin']['templates']['USERNAME'] = 'Nahrazeno uživatelským jménem zákazníka.'; +$lng['admin']['templates']['PASSWORD'] = 'Nahrazeno zákazníkovým heslem.'; +$lng['admin']['templates']['EMAIL'] = 'Nahrazeno adresou POP3/IMAP úètu.'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; +$lng['serversettings']['session_timeout']['description'] = 'Jak dlouho musý být uživatel neaktivní, než session vyprší (sekundy)?'; +$lng['serversettings']['accountprefix']['title'] = 'Zákazníkova pøedpona'; +$lng['serversettings']['accountprefix']['description'] = 'Jké pøedpony by mìly mít úèty zákazníkù?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL pøedpona'; +$lng['serversettings']['mysqlprefix']['description'] = 'Jaké pøedpony by mìly mít úèty mysql?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP pøedpona'; +$lng['serversettings']['ftpprefix']['description'] = 'Jakou pøedponu by mìly mít ftp úèty?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Domácí adresáø'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Kde by mìly být uloženy všechny domácí adresáøe?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Adresáø pro log soubory'; +$lng['serversettings']['logfiles_directory']['description'] = 'Kde by mìly být všechny log soubory uloženy?'; +$lng['serversettings']['ipaddress']['title'] = 'IP-Adresa'; +$lng['serversettings']['ipaddress']['description'] = 'Jaká je IP adresa tohoto serveru?'; +$lng['serversettings']['hostname']['title'] = 'Jméno hosta'; +$lng['serversettings']['hostname']['description'] = 'Jaké je jméno hosta tohoto serveru?'; +$lng['serversettings']['apachereload_command']['title'] = 'Pøíkaz pro reload apache'; +$lng['serversettings']['apachereload_command']['description'] = 'Jaký je pøíkaz, kterým apache znovunahraje své konfiguraèní soubory?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Bindujte konfiguraèní adresáø'; +$lng['serversettings']['bindconf_directory']['description'] = 'Kde by mìly být uloženy "bind configfiles"?'; +$lng['serversettings']['bindreload_command']['title'] = 'Bind reload pøíkaz'; +$lng['serversettings']['bindreload_command']['description'] = 'Jaký je pøíkaz pro znovunahrání "bind configfiles"?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Bind výchozí zóna'; +$lng['serversettings']['binddefaultzone']['description'] = 'Jaký je název výchozí zóny?'; +$lng['serversettings']['vmail_uid']['title'] = 'UID-mailù'; +$lng['serversettings']['vmail_uid']['description'] = 'Jaké UserID by mìly e-maily mít?'; +$lng['serversettings']['vmail_gid']['title'] = 'GID-mailù'; +$lng['serversettings']['vmail_gid']['description'] = 'Jaké GroupID by mìly maily mít?'; +$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Home adresáø'; +$lng['serversettings']['vmail_homedir']['description'] = 'Kam by se mìly všechny maily ukládat?'; +$lng['serversettings']['adminmail']['title'] = 'Odesílatel'; +$lng['serversettings']['adminmail']['description'] = 'Jaká je odesílatelova adresa pro emaily odeslané z Panelu?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdminova URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'Jaká je URL adresa phpMyAdmin? (musí zaèínat http(s)://)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMailová URL'; +$lng['serversettings']['webmail_url']['description'] = 'Jaká je URL adresa k WebMailu? (musí zaèínat with http(s)://)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = 'Jaká je URL k WebFTP? (musí zaèínat with http(s)://)'; +$lng['serversettings']['language']['description'] = 'Jaký je výchozí jazyk Vašeho serveru?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Maximální poèet pokusù o pøihlášení'; +$lng['serversettings']['maxloginattempts']['description'] = 'Maximální poèet pokusù o pøihlášení k úètu, než se úèet zablokuje.'; +$lng['serversettings']['deactivatetime']['title'] = 'Deaktivovaný po dobu'; +$lng['serversettings']['deactivatetime']['description'] = 'Èas (sek.) po který bude úèet deaktivován pro pøíliš mnoho pokusù o pøihlášení.'; +$lng['serversettings']['pathedit']['title'] = 'Typ vstupu cesty'; +$lng['serversettings']['pathedit']['description'] = 'Mìla by být cesta vybírána pomocí vyskakovacího menu nebo vstupním polem?'; +$lng['serversettings']['nameservers']['title'] = 'Nameservery'; +$lng['serversettings']['nameservers']['description'] = 'Støedníkem oddìlený seznam obsahující hostname všech nameserverù. První bude primární.'; +$lng['serversettings']['mxservers']['title'] = 'MX servery'; +$lng['serversettings']['mxservers']['description'] = 'Støedníkem oddìlený seznam obsahující páry èísel a hostname oddìlených mezerou (napø. \'10 mx.example.com\') obsahující mx servery.'; + +/** + * CHANGED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['mysql']['description'] = 'Zde mùžete vytváøet a mìnit své MySQL-Databáze.
Zmìny jsou provedeny okamžitì a databáze mùže být okamžitì používána.
V menu vlevo mùžete najít nástroj phpMyAdmin se kterým mùžete jednoduše upravovat svou databázi.

Pro použití databáze ve svých php skriptech použijte následující nastavení: (Data kurzívou musí být zmìnìna na Vámi vložené hodnoty!)
Host:
Uživatelské jméno: Databasename
Heslo: heslo které jste zvolili
Databáze: Databasename'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Poslední generování konfiguraèních souborù'; +$lng['serversettings']['paging']['title'] = 'Záznamù na stránku'; +$lng['serversettings']['paging']['description'] = 'Kolik záznamù by mìlo být zobrazeno na stránce? (0 = zrušit stránkování)'; +$lng['error']['ipstillhasdomains'] = 'IP/Port kombinace, kterou chcete smazat má stále pøiøazené domény, prosím pøeøaïte je k jiné IP/Port kombinaci než smažete tuto IP/Port kombinaci.'; +$lng['error']['cantdeletedefaultip'] = 'Nemùžete smazat IP/Port kombinaci výchozího pøeprodejce, prosím vytvoøte jinou IP/Port kombinaci výchozí pro pøeprodejce než smažete tuto IP/Port kombinaci.'; +$lng['error']['cantdeletesystemip'] = 'Nemùžete smazat poslední systémovou IP, buï vytvoøte novou IP/Port kombinaci pro systémovou IP nebo zmìòte IP systému.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'Musíte vybrat IP/Port kombinaci která by se mìla stát výchozí.'; +$lng['error']['myipnotdouble'] = 'Tato kombinace IP/Portu již existuje.'; +$lng['question']['admin_ip_reallydelete'] = 'Chcete opravdu smayat IP adresu %s?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IP a Porty'; +$lng['admin']['ipsandports']['add'] = 'Pøidat IP/Port'; +$lng['admin']['ipsandports']['edit'] = 'Upravit IP/Port'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Port'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'Nemùžete zmìnit poslední systémovou IP, buï vytvoøte novou IP/Port kombinaci pro systémovou IP nebo zmìòte IP systému.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Jste si jisti, že chcete aby root dokumentù pro tuto doménu nebyl v "customerroot" zákazníka?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Zakázáno'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir-cesta'; +$lng['domain']['docroot'] = 'Cesta z políèka nahoøe'; +$lng['domain']['homedir'] = 'Domovní adresáø'; +$lng['admin']['valuemandatory'] = 'Tato hodnota je povinná'; +$lng['admin']['valuemandatorycompany'] = 'Buï "jméno" a "køestní jméno" nebo "spoleènost" musí být vyplnìna'; +$lng['menue']['main']['username'] = 'Pøihlášen(a) jako: '; +$lng['panel']['urloverridespath'] = 'URL (pøepíše cestu)'; +$lng['panel']['pathorurl'] = 'Cesta nebo URL'; +$lng['error']['sessiontimeoutiswrong'] = 'Pouze èíselné "Session Timeout" je povoleno.'; +$lng['error']['maxloginattemptsiswrong'] = 'ouze èíselné "Maximální poèet pokusù o pøihlášení" je povoleno.'; +$lng['error']['deactivatetimiswrong'] = 'ouze èíselné "Èas deaktivace" je povoleno.'; +$lng['error']['accountprefixiswrong'] = '"Pøedpona uživatele" je špatnì.'; +$lng['error']['mysqlprefixiswrong'] = '"SQL pøedpona" je špatnì.'; +$lng['error']['ftpprefixiswrong'] = '"FTP pøedpona" je špatnì.'; +$lng['error']['ipiswrong'] = '"IP-Adresa" je špatnì. Pouze validní IP adresa je povolena.'; +$lng['error']['vmailuidiswrong'] = '"Mails-uid" je špatnì. Je povoleno pouze èíselné UID.'; +$lng['error']['vmailgidiswrong'] = '"Mails-gid" je špatnì. Je povoleno pouze èíselné GID.'; +$lng['error']['adminmailiswrong'] = '"Sender-address" je špatnì. Je povolena pouze validní emailová adresa.'; +$lng['error']['pagingiswrong'] = '"Entries per Page"-value je špatnì. Jsou povolena pouze èísla.'; +$lng['error']['phpmyadminiswrong'] = 'phpMyAdmin-url naní správná url.'; +$lng['error']['webmailiswrong'] = 'WebMail-odkaz není správný odkaz.'; +$lng['error']['webftpiswrong'] = 'WebFTP-odkaz není správný odkaz.'; +$lng['domains']['hasaliasdomains'] = 'Má aliasové domény'; +$lng['serversettings']['defaultip']['title'] = 'Výchozí IP/Port'; +$lng['serversettings']['defaultip']['description'] = 'Jaká je výchozí IP/Port kombinace?'; +$lng['domains']['statstics'] = 'Statistika použití'; +$lng['panel']['ascending'] = 'sestupnì'; +$lng['panel']['decending'] = 'vzestupnì'; +$lng['panel']['search'] = 'Vyhledávání'; +$lng['panel']['used'] = 'použito'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = 'Pøekladatel'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = 'Hodnota pole "%s" není v oèekávaném formátu.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Software serveru'; +$lng['admin']['phpversion'] = 'PHP-Verze'; +$lng['admin']['phpmemorylimit'] = 'PHP-Limit-Pamìti'; +$lng['admin']['mysqlserverversion'] = 'MySQL verze serveru'; +$lng['admin']['mysqlclientversion'] = 'MySQL verze klienta'; +$lng['admin']['webserverinterface'] = 'Webserver rozhraní'; +$lng['domains']['isassigneddomain'] = 'Je pøiøazená doména'; +$lng['serversettings']['phpappendopenbasedir']['title'] = 'Cesty k pøidání k OpenBasedir'; +$lng['serversettings']['phpappendopenbasedir']['description'] = 'Tyto cesty (oddìleny pomocí "colons") budou vloženy do OpenBasedir-statementu v každém vhost-containeru.'; + +// CHANGED IN 1.2.15-rc1 + +$lng['error']['loginnameissystemaccount'] = 'Nemùžete vytvoøit úèty, které jsou podobné systémovým úètùm (napøíklad zaèínají "%s"). Prosím vložte jiné jméno úètu.'; +$lng['error']['youcantdeleteyourself'] = 'Z bezpeènostních dùvodù se nemùžete smazat.'; +$lng['error']['youcanteditallfieldsofyourself'] = 'Poznámka: Z bezpeènostních dùvodù nemùžete upravovat všechna pole svého úètu.'; + +// ADDED IN 1.2.16-svn1 + +$lng['serversettings']['natsorting']['title'] = 'Použít "lidské" tøídìní v seznamech'; +$lng['serversettings']['natsorting']['description'] = 'Øadit seznamy jako web1 -> web2 -> web11 místo web1 -> web11 -> web2.'; + +// ADDED IN 1.2.16-svn2 + +$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot pro deaktivované uživatele'; +$lng['serversettings']['deactivateddocroot']['description'] = 'Když bude uživatel deaktivován, tato cesta bude použita jako jeho docroot. Ponechte prázdné, pokud nechcete vytváøet.'; + +// ADDED IN 1.2.16-svn4 + +$lng['panel']['reset'] = 'zrušit zmìny'; +$lng['admin']['accountsettings'] = 'Nastavení úètu'; +$lng['admin']['panelsettings'] = 'Nastavení panelu'; +$lng['admin']['systemsettings'] = 'Nastavení systému'; +$lng['admin']['webserversettings'] = 'Nastavení webserveru'; +$lng['admin']['mailserversettings'] = 'Nastavení mailserveru'; +$lng['admin']['nameserversettings'] = 'Nastavení nameserveru'; +$lng['admin']['updatecounters'] = 'Pøepoèítat využití zdrojù'; +$lng['question']['admin_counters_reallyupdate'] = 'Opravdu chcete pøepoèítat využití zdrojù?'; +$lng['panel']['pathDescription'] = 'Pokud adresáø neexistuje, bude vytvoøen automaticky.'; + +// ADDED IN 1.2.16-svn6 + +$lng['mails']['trafficninetypercent']['mailbody'] = 'Vážený uživateli {NAME},\n\nPoužil jste {TRAFFICUSED} MB z Vámi dostupných {TRAFFIC} MB pøenosù.\nTo je více jak 90%.\n\nPøejeme hezký den, SysCP-Team'; +$lng['mails']['trafficninetypercent']['subject'] = 'Dosahujíc vašeho limitu pøenosù'; +$lng['admin']['templates']['trafficninetypercent'] = 'Upozoròovací mail pro zákazníky, pokud vyèerpají 90% z pøenosù'; +$lng['admin']['templates']['TRAFFIC'] = 'Nahrazeno pøenosy, které byly pøidìleny uživateli.'; +$lng['admin']['templates']['TRAFFICUSED'] = 'Nahrazeno pøenosy, které byly vyèerpány zákazníkem.'; + +// ADDED IN 1.2.16-svn7 + +$lng['admin']['subcanemaildomain']['never'] = 'Nikdy'; +$lng['admin']['subcanemaildomain']['choosableno'] = 'Výbìr, výchozí ne'; +$lng['admin']['subcanemaildomain']['choosableyes'] = 'Výbìr, výchozí ano'; +$lng['admin']['subcanemaildomain']['always'] = 'Vždy'; +$lng['changepassword']['also_change_webalizer'] = ' také zmìòte heslo pro webalizer statistics'; + +// ADDED IN 1.2.16-svn8 + +$lng['serversettings']['mailpwcleartext']['title'] = 'Také uložte hesla mailových úètù nešifrovaná v databázi'; +$lng['serversettings']['mailpwcleartext']['description'] = 'Pokud je toto nastaveno na "ano", všechna hesla budou ukládána bez šifrování (èístý text, èitelná pro kohokoliv s pøístupem k databázi) v tabulce mail_users. Toto aktivujte jen pokud to opravdu potøebujete!'; +$lng['serversettings']['mailpwcleartext']['removelink'] = 'Kliknutím zde vymažete všechna nezašifrovaná hesla z tabulky.'; +$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Opravdu chcete vymazat všechna nezašifrovaná hesla pro e-mailové úèty z tabulky mail_users? Tento krok nelze vrátit zpìt!'; +$lng['admin']['configfiles']['overview'] = 'Pøehled'; +$lng['admin']['configfiles']['wizard'] = 'Prùvodce'; +$lng['admin']['configfiles']['distribution'] = 'Distribuce'; +$lng['admin']['configfiles']['service'] = 'Služba'; +$lng['admin']['configfiles']['daemon'] = 'Daemon'; +$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; +$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; +$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; +$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; +$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; +$lng['admin']['configfiles']['etc'] = 'Ostatní (System)'; +$lng['admin']['configfiles']['choosedistribution'] = '-- Vyberte distribuci --'; +$lng['admin']['configfiles']['chooseservice'] = '-- Vyberte službu --'; +$lng['admin']['configfiles']['choosedaemon'] = '-- Vyberte daemona --'; +$lng['admin']['trafficlastrun'] = 'Poslední kalkulace pøenosù'; + +// ADDED IN 1.2.16-svn10 + +$lng['serversettings']['ftpdomain']['title'] = 'FTP úèty na doménì'; +$lng['serversettings']['ftpdomain']['description'] = 'Zákazníci mohou vytváøet FTP úèty user@customerdomain?'; +$lng['panel']['back'] = 'Back'; + +// ADDED IN 1.2.16-svn12 + +$lng['serversettings']['mod_log_sql']['title'] = 'Doèasnì ukládat logy do databáze'; +$lng['serversettings']['mod_log_sql']['description'] = 'Použít mod_log_sql pro doèasné uložení webrequestù
Toto vyžaduje speciální konfiguraci apache!'; +$lng['serversettings']['mod_fcgid']['title'] = 'Includuj PHP pøes mod_fcgid/suexec'; +$lng['serversettings']['mod_fcgid']['description'] = 'Použij mod_fcgid/suexec/libnss_mysql pro bìh PHP s odpovídajícím úøivatelským úètem.
toto vyžaduje speciální konfiguraci apache!'; +$lng['serversettings']['sendalternativemail']['title'] = 'Použij alternativní e-mailovou adresu'; +$lng['serversettings']['sendalternativemail']['description'] = 'Pošli email s heslem na jinou adresu pøi vytváøení emailového úètu'; +$lng['emails']['alternative_emailaddress'] = 'Alternativní e-mailová adresa'; +$lng['mails']['pop_success_alternative']['mailbody'] = 'Vážený uživateli,\n\nVáš emailový úèet {EMAIL}\nbyl úspìšnì nastaven.\nVaše heslo je {PASSWORD}.\n\nTento e-mail byl automaticky vygenerován,\nprosím neodpovídejte na nìj!\n\nPøejeme Vám hezký den, SysCP-Team'; +$lng['mails']['pop_success_alternative']['subject'] = 'E-mailový úèet byl úspìšnì vytvoøen'; +$lng['admin']['templates']['pop_success_alternative'] = 'Uvítací e-mail pro nové úèty byl odeslán na alternativní adresu'; +$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Nahrazeno heslem úètu POP3/IMAP.'; + +// ADDED IN 1.2.16-svn13 + +$lng['error']['documentrootexists'] = 'Adresáø "%s" již existuje pro tohoto zákazníka. Prosím odstraòte jej, než budete znovu zákazníka vkládat.'; + +// ADDED IN 1.2.16-svn14 + +$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost konfiguraèní soubor/dirname'; +$lng['serversettings']['apacheconf_vhost']['description'] = 'Kde by mìla být uložena konfigurace vhosta? Mùžete zde buï specifikovat soubor (všichni vhosti v jednom souboru) nebo adresáø (každý vhost má vlastní soubor).'; +$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions konfiguraèní soubor/dirname'; +$lng['serversettings']['apacheconf_diroptions']['description'] = 'Kde by mìla být uložena konfigurace diroptions? Mùžete zde buï specifikovat soubor (všichni diroptions v jednom souboru) nebo adresáø (každý diroption má vlastní soubor).'; +$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd dirname'; +$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Kde by mìly být uloženy htpasswd soubory pro ochranu adresáøù?'; + +// ADDED IN 1.2.16-svn15 + +$lng['error']['formtokencompromised'] = 'The request seems to be compromised. Z bezpeènostních dùvodù jste byli odhlášeni.'; +$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; +$lng['serversettings']['mysql_access_host']['description'] = 'Støedníkem oddìlený seznam hostù, ze kterých bude dovoleno uživatelùm se pøipojit k MySQL-Serveru.'; + +// ADDED IN 1.2.18-svn1 + +$lng['admin']['ipsandports']['create_listen_statement'] = 'Vytvoøit Listen statement'; +$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Vytvoøit NameVirtualHost statement'; +$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Vytvoøit vHost-Container'; +$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Vytvoøit ServerName statement v vHost-Container'; + +// ADDED IN 1.2.18-svn2 + +$lng['admin']['webalizersettings'] = 'Nastavení Webalizeru'; +$lng['admin']['webalizer']['normal'] = 'Normální'; +$lng['admin']['webalizer']['quiet'] = 'Tichý'; +$lng['admin']['webalizer']['veryquiet'] = 'Žádný výstup'; +$lng['serversettings']['webalizer_quiet']['title'] = 'Výstup Webalizeru'; +$lng['serversettings']['webalizer_quiet']['description'] = 'Povídavost webalizer-programu'; + +// ADDED IN 1.2.18-svn3 + +$lng['ticket']['admin_email'] = 'root@localhost'; +$lng['ticket']['noreply_email'] = 'tikety@syscp'; +$lng['admin']['ticketsystem'] = 'Support-tikety'; +$lng['menue']['ticket']['ticket'] = 'Support tikety'; +$lng['menue']['ticket']['categories'] = 'Kategorie podpory'; +$lng['menue']['ticket']['archive'] = 'Archiv-tiketù'; +$lng['ticket']['description'] = 'Nastavit popis zde!'; +$lng['ticket']['ticket_new'] = 'Otevøít nový tiket'; +$lng['ticket']['ticket_reply'] = 'zodpovìdìt tiket'; +$lng['ticket']['ticket_reopen'] = 'Znovuotevøít tiket'; +$lng['ticket']['ticket_newcateory'] = 'Vytvoøit novou kategorii'; +$lng['ticket']['ticket_editcateory'] = 'Upravit kategorii'; +$lng['ticket']['ticket_view'] = 'Zobrazit ticketcourse'; +$lng['ticket']['ticketcount'] = 'Tikety'; +$lng['ticket']['ticket_answers'] = 'Odpovìdi'; +$lng['ticket']['lastchange'] = 'Poslední akce'; +$lng['ticket']['subject'] = 'Pøedmìt'; +$lng['ticket']['status'] = 'Status'; +$lng['ticket']['lastreplier'] = 'Poslední odpovídající'; +$lng['ticket']['priority'] = 'Priorita'; +$lng['ticket']['low'] = 'Nízká'; +$lng['ticket']['normal'] = 'Normální'; +$lng['ticket']['high'] = 'Vysoká'; +$lng['ticket']['unf_low'] = 'Nízká'; +$lng['ticket']['unf_normal'] = 'Normální'; +$lng['ticket']['unf_high'] = 'Vysoká'; +$lng['ticket']['lastchange'] = 'Poslední zmìna'; +$lng['ticket']['lastchange_from'] = 'Od data (dd.mm.yyyy)'; +$lng['ticket']['lastchange_to'] = 'Do data (dd.mm.yyyy)'; +$lng['ticket']['category'] = 'Kategorie'; +$lng['ticket']['no_cat'] = 'Žádná'; +$lng['ticket']['message'] = 'Zpráva'; +$lng['ticket']['show'] = 'Zobraz'; +$lng['ticket']['answer'] = 'Odpovìï'; +$lng['ticket']['close'] = 'Zavøít'; +$lng['ticket']['reopen'] = 'Znovuotevøít'; +$lng['ticket']['archive'] = 'Archiv'; +$lng['ticket']['ticket_delete'] = 'Smazat tiket'; +$lng['ticket']['lastarchived'] = 'Nedávno archivované tikety'; +$lng['ticket']['archivedtime'] = 'Archivováno'; +$lng['ticket']['open'] = 'Otevøít'; +$lng['ticket']['wait_reply'] = 'Èeká na odpovìï'; +$lng['ticket']['replied'] = 'Odpovìzeno'; +$lng['ticket']['closed'] = 'Zavøený'; +$lng['ticket']['staff'] = 'Personál'; +$lng['ticket']['customer'] = 'Zákazník'; +$lng['ticket']['old_tickets'] = 'Tiket zprávy'; +$lng['ticket']['search'] = 'Prohledat archiv'; +$lng['ticket']['nocustomer'] = 'Žádný výbìr'; +$lng['ticket']['archivesearch'] = 'Výsledky prohledávání archivu'; +$lng['ticket']['noresults'] = 'Nenalezeny žádné tikety'; +$lng['ticket']['notmorethanxopentickets'] = 'Kvùli ochranì proti SPAMu nemùžete mít otevøeno víc jak %s tiketù'; +$lng['ticket']['supportstatus'] = 'Status-podpory'; +$lng['ticket']['supportavailable'] = 'Naše podpora jsou k dispozici a pøipraveni pomoci.'; +$lng['ticket']['supportnotavailable'] = 'Naše podpora není momentálnì dostupná'; +$lng['admin']['templates']['ticket'] = 'Upozoròovací e-maily pro tikety podpory'; +$lng['admin']['templates']['SUBJECT'] = 'Nahrazeno pøedmìtem tiketu podpory'; +$lng['admin']['templates']['new_ticket_for_customer'] = 'Zákaznické upozornìní, že byl tiket odeslán'; +$lng['admin']['templates']['new_ticket_by_customer'] = 'Administrátorské upozornìní, že byl tiket otevøen zákazníkem'; +$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Administrátorské upozornìní, že pøišla odpovìï na tiket od zákazníka'; +$lng['admin']['templates']['new_ticket_by_staff'] = 'Zákaznické upozornìní, že byl tiket otevøen personálem'; +$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Zákaznické upozornìní na odpovìï na tiket od personálu'; +$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\nVáš tiket podpory s pøedmìtem "{SUBJECT}" byl odeslán.\n\nAž pøijde odpovìï na Váš tiket, budete upozornìni.\n\nDìkujeme,\n SysCP-Team'; +$lng['mails']['new_ticket_for_customer']['subject'] = 'Váš tiket na podporu byl odeslán'; +$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Milý administrátore,\n\nbyl odeslán nový tiket s pøedmìtem "{SUBJECT}".\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; +$lng['mails']['new_ticket_by_customer']['subject'] = 'Nový tiket podpory byl odeslán'; +$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Milý administrátore,\n\ntiket podpory "{SUBJECT}" byl zodpovìzen zákazníkem.\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; +$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Nová odpovìï na tiket podpory'; +$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\nbyl pro Vás otevøen tiket podpory s pøedmìtem "{SUBJECT}".\n\nProsím pøihlašte se pro otevøení tiketu.\n\nDìkujeme,\n SysCP-Team'; +$lng['mails']['new_ticket_by_staff']['subject'] = 'Nový tiket podpory byl odeslán'; +$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Vážený uživateli {FIRSTNAME} {NAME},\n\ntiket podpory s pøedmìtem "{SUBJECT}" byl zodpovìzen naším personálem.\n\nPro pøeètení tiketu se prosím pøihlašte.\n\nDìkujem,\n SysCP-Team'; +$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Nová odpovìï na tiket podpory'; +$lng['question']['ticket_reallyclose'] = 'Opravdu chcete zavøít tiket "%s"?'; +$lng['question']['ticket_reallydelete'] = 'Opravdu chcete smazat tiket "%s"?'; +$lng['question']['ticket_reallydeletecat'] = 'Opravdu chcete smazat kategorii "%s"?'; +$lng['question']['ticket_reallyarchive'] = 'Opravdu chcete pøesunout tiket "%s" do archivu?'; +$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; +$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; +$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; +$lng['error']['nomoreticketsavailable'] = 'Použili jste všechny dostupné tikety. Prosím kontaktujte svého administrátora.'; +$lng['error']['nocustomerforticket'] = 'Nemohu vytváøet tikety bez zákazníkù'; +$lng['error']['categoryhastickets'] = 'Kategorie stále obsahuje tikety.
Prosím smažte tikety aby jste mohli smazat kategorii'; +$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; +$lng['admin']['ticketsettings'] = 'Tikety-podpory nastavení'; +$lng['admin']['archivelastrun'] = 'Poslední archivace tiketù'; +$lng['serversettings']['ticket']['noreply_email']['title'] = 'Bez odpovìdní e-mailová adresa'; +$lng['serversettings']['ticket']['noreply_email']['description'] = 'Odesílatelova adresa pro tikety podpory, vìtšinou nìco jako no-reply@domain.tld'; +$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Zaèátek práce podpory (hh:mm)'; +$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-time pokud je podpora k dispozici'; +$lng['serversettings']['ticket']['worktime_end']['title'] = 'Konec práce podpory (hh:mm)'; +$lng['serversettings']['ticket']['worktime_end']['description'] = 'End-time pokud je podpora k dispozici'; +$lng['serversettings']['ticket']['worktime_sat'] = 'Je podpora k dispozici o sobotách?'; +$lng['serversettings']['ticket']['worktime_sun'] = 'Je podpora k dispozici o nedìlích?'; +$lng['serversettings']['ticket']['worktime_all']['title'] = 'Podpora bez èasového omezení'; +$lng['serversettings']['ticket']['worktime_all']['description'] = 'Pokud "Ano" možnosti zaèátku a konce práce podpory bude pøepsána'; +$lng['serversettings']['ticket']['archiving_days'] = 'Po kolika dnech by mìly být uzavøené tikety archivovány?'; +$lng['customer']['tickets'] = 'Tikety podpory'; + +// ADDED IN 1.2.18-svn4 + +$lng['admin']['domain_nocustomeraddingavailable'] = 'Momentálnì není možné pøidat doménu. Nejdøíve musíte pøidat aspoò jednoho zákazníka.'; +$lng['serversettings']['ticket']['enable'] = 'Zapnout systém tiketù'; +$lng['serversettings']['ticket']['concurrentlyopen'] = 'Kolik tiketù by mìlo být k dispozici najednou?'; +$lng['error']['norepymailiswrong'] = '"Bezodpovìdní adresa" je špatnì. Je povolena pouze validní e-mailová adresa.'; +$lng['error']['tadminmailiswrong'] = '"Ticketadmin-adresa" je špatnì. Je povolena pouze validní e-mailová adresa.'; +$lng['ticket']['awaitingticketreply'] = 'Máte %s nezodpovìzených tiketù podpory'; + +// ADDED IN 1.2.18-svn5 + +$lng['serversettings']['ticket']['noreply_name'] = 'Jméno odesílatele tiketù v emailu'; + ?> \ No newline at end of file diff --git a/lng/english.lng.php b/lng/english.lng.php index 65273c14..eaa4a14f 100644 --- a/lng/english.lng.php +++ b/lng/english.lng.php @@ -1,1248 +1,1248 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: english.lng.php 2724 2009-06-07 14:18:02Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = ''; -$lng['panel']['edit'] = 'edit'; -$lng['panel']['delete'] = 'delete'; -$lng['panel']['create'] = 'create'; -$lng['panel']['save'] = 'save'; -$lng['panel']['yes'] = 'yes'; -$lng['panel']['no'] = 'no'; -$lng['panel']['emptyfornochanges'] = 'empty for no changes'; -$lng['panel']['emptyfordefault'] = 'empty for defaults'; -$lng['panel']['path'] = 'Path'; -$lng['panel']['toggle'] = 'Toggle'; -$lng['panel']['next'] = 'next'; -$lng['panel']['dirsmissing'] = 'Can not find or read the directory!'; - -/** - * Login - */ - -$lng['login']['username'] = 'Username'; -$lng['login']['password'] = 'Password'; -$lng['login']['language'] = 'Language'; -$lng['login']['login'] = 'Login'; -$lng['login']['logout'] = 'Logout'; -$lng['login']['profile_lng'] = 'Profile language'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Home directory'; -$lng['customer']['name'] = 'Name'; -$lng['customer']['firstname'] = 'First name'; -$lng['customer']['company'] = 'Company'; -$lng['customer']['street'] = 'Street'; -$lng['customer']['zipcode'] = 'Zipcode'; -$lng['customer']['city'] = 'City'; -$lng['customer']['phone'] = 'Phone'; -$lng['customer']['fax'] = 'Fax'; -$lng['customer']['email'] = 'Email'; -$lng['customer']['customernumber'] = 'Customer ID'; -$lng['customer']['diskspace'] = 'Webspace (MB)'; -$lng['customer']['traffic'] = 'Traffic (GB)'; -$lng['customer']['mysqls'] = 'MySQL-Databases'; -$lng['customer']['emails'] = 'E-mail-Addresses'; -$lng['customer']['accounts'] = 'E-mail-Accounts'; -$lng['customer']['forwarders'] = 'E-mail-Forwarders'; -$lng['customer']['ftps'] = 'FTP-Accounts'; -$lng['customer']['subdomains'] = 'Sub-Domain'; -$lng['customer']['domains'] = 'Domain'; -$lng['customer']['unlimited'] = 'unlimited'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Main'; -$lng['menue']['main']['changepassword'] = 'Change password'; -$lng['menue']['main']['changelanguage'] = 'Change language'; -$lng['menue']['email']['email'] = 'E-mail'; -$lng['menue']['email']['emails'] = 'Addresses'; -$lng['menue']['email']['webmail'] = 'WebMail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Databases'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Domains'; -$lng['menue']['domains']['settings'] = 'Settings'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Accounts'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Extras'; -$lng['menue']['extras']['directoryprotection'] = 'Directory protection'; -$lng['menue']['extras']['pathoptions'] = 'path options'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Customer Details'; -$lng['index']['accountdetails'] = 'Account Details'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Old password'; -$lng['changepassword']['new_password'] = 'New password'; -$lng['changepassword']['new_password_confirm'] = 'New password (confirm)'; -$lng['changepassword']['new_password_ifnotempty'] = 'New password (empty = no change)'; -$lng['changepassword']['also_change_ftp'] = ' also change password of the main FTP account'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Here you can create (sub-)domains and change their paths.
The system will need some time to apply the new settings after every change.'; -$lng['domains']['domainsettings'] = 'Domain settings'; -$lng['domains']['domainname'] = 'Domain name'; -$lng['domains']['subdomain_add'] = 'Create subdomain'; -$lng['domains']['subdomain_edit'] = 'Edit (sub)domain'; -$lng['domains']['wildcarddomain'] = 'Create as wildcarddomain?'; -$lng['domains']['aliasdomain'] = 'Alias for domain'; -$lng['domains']['noaliasdomain'] = 'No alias domain'; - -/** - * E-mails - */ - -$lng['emails']['description'] = 'Here you can create and change your e-mail addresses.
An account is like your letterbox in front of your house. If someone sends you an email, it will be dropped into the account.

To download your emails use the following settings in your mailprogram: (The data in italics has to be changed to the equivalents you typed in!)
Hostname: Domainname
Username: Account name / e-mail address
Password: the password you\'ve chosen'; -$lng['emails']['emailaddress'] = 'E-mail-address'; -$lng['emails']['emails_add'] = 'Create e-mail-address'; -$lng['emails']['emails_edit'] = 'Edit e-mail-address'; -$lng['emails']['catchall'] = 'Catchall'; -$lng['emails']['iscatchall'] = 'Define as catchall-address?'; -$lng['emails']['account'] = 'Account'; -$lng['emails']['account_add'] = 'Create account'; -$lng['emails']['account_delete'] = 'Delete account'; -$lng['emails']['from'] = 'Source'; -$lng['emails']['to'] = 'Destination'; -$lng['emails']['forwarders'] = 'Forwarders'; -$lng['emails']['forwarder_add'] = 'Create forwarder'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Here you can create and change your FTP accounts.
The changes are made instantly and the accounts can be used immediately.'; -$lng['ftp']['account_add'] = 'Create Account'; - -/** - * MySQL - */ - -$lng['mysql']['databasename'] = 'user/database name'; -$lng['mysql']['databasedescription'] = 'database description'; -$lng['mysql']['database_create'] = 'Create database'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Here you can add some extras, for example directory protection.
The system will need some time to apply the new settings after every change.'; -$lng['extras']['directoryprotection_add'] = 'Add directory protection'; -$lng['extras']['view_directory'] = 'display directory content'; -$lng['extras']['pathoptions_add'] = 'add path options'; -$lng['extras']['directory_browsing'] = 'directory content browsing'; -$lng['extras']['pathoptions_edit'] = 'edit path options'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL to ErrorDocument 404'; -$lng['extras']['errordocument403path'] = 'URL to ErrorDocument 403'; -$lng['extras']['errordocument500path'] = 'URL to ErrorDocument 500'; -$lng['extras']['errordocument401path'] = 'URL to ErrorDocument 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Error'; -$lng['error']['directorymustexist'] = 'The directory %s must exist. Please create it with your FTP client.'; -$lng['error']['filemustexist'] = 'The file %s must exist.'; -$lng['error']['allresourcesused'] = 'You have already used all of your resources.'; -$lng['error']['domains_cantdeletemaindomain'] = 'You cannot delete a domain which is used as an email-domain.'; -$lng['error']['domains_canteditdomain'] = 'You cannot edit this domain. It has been disabled by the admin.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'You cannot delete a domain which is used as an email-domain. Delete all email addresses first.'; -$lng['error']['firstdeleteallsubdomains'] = 'You have to delete all Subdomains first before you can create a wildcard domain.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'You have already defined a catchall for this domain.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'You cannot delete your main FTP account'; -$lng['error']['login'] = 'The username or password you typed in is wrong. Please try it again!'; -$lng['error']['login_blocked'] = 'This account has been suspended because of too many login errors.
Please try again in ' . $settings['login']['deactivatetime'] . ' seconds.'; -$lng['error']['notallreqfieldsorerrors'] = 'You have not filled in all or filled in some fields incorrectly.'; -$lng['error']['oldpasswordnotcorrect'] = 'The old password is not correct.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'You cannot allocate more resources than you own for yourself.'; -$lng['error']['mustbeurl'] = 'You have not typed a valid or complete url (e.g. http://somedomain.com/error404.htm)'; -$lng['error']['invalidpath'] = 'You have not chosen a valid url (maybe problems with the dirlisting?)'; -$lng['error']['stringisempty'] = 'Missing Input in Field'; -$lng['error']['stringiswrong'] = 'Wrong Input in Field'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'New password and confirmation does not match'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'Domain\''; -$lng['error']['mydocumentroot'] = '\'Documentroot\''; -$lng['error']['loginnameexists'] = 'Login-Name %s already exists'; -$lng['error']['emailiswrong'] = 'E-mail-Address %s contains invalid characters or is incomplete'; -$lng['error']['loginnameiswrong'] = 'Login-Name %s contains invalid characters'; -$lng['error']['userpathcombinationdupe'] = 'Combination of Username and Path already exists'; -$lng['error']['patherror'] = 'General Error! path cannot be empty'; -$lng['error']['errordocpathdupe'] = 'Option for path %s already exists'; -$lng['error']['adduserfirst'] = 'Please create a customer first'; -$lng['error']['domainalreadyexists'] = 'The domain %s is already assigned to a customer'; -$lng['error']['nolanguageselect'] = 'No language selected.'; -$lng['error']['nosubjectcreate'] = 'You must define a topic for this mail template.'; -$lng['error']['nomailbodycreate'] = 'You must define a Mail-Text for this mail template.'; -$lng['error']['templatenotfound'] = 'Template was not found.'; -$lng['error']['alltemplatesdefined'] = 'You cant define more templates, all languages are supported already.'; -$lng['error']['wwwnotallowed'] = 'www is not allowed for subdomains.'; -$lng['error']['subdomainiswrong'] = 'The subdomain %s contains invalid characters.'; -$lng['error']['domaincantbeempty'] = 'The domain-name can not be empty.'; -$lng['error']['domainexistalready'] = 'The domain %s already exists.'; -$lng['error']['domainisaliasorothercustomer'] = 'The selected alias domain is either itself an alias domain or belongs to another customer.'; -$lng['error']['emailexistalready'] = 'The e-mail-Address %s already exists.'; -$lng['error']['maindomainnonexist'] = 'The main-domain %s does not exist.'; -$lng['error']['destinationnonexist'] = 'Please create your forwarder in the field \'Destination\'.'; -$lng['error']['destinationalreadyexistasmail'] = 'The forwarder to %s already exists as active EMail-Address.'; -$lng['error']['destinationalreadyexist'] = 'You have already defined a forwarder to %s .'; -$lng['error']['destinationiswrong'] = 'The forwarder %s contains invalid character(s) or is incomplete.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Security question'; -$lng['question']['admin_customer_reallydelete'] = 'Do you really want to delete the customer %s? This cannot be undone!'; -$lng['question']['admin_domain_reallydelete'] = 'Do you really want to delete the domain %s?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Do you really want to deactivate these Security settings (OpenBasedir and/or SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = 'Do you really want to delete the admin %s? Every customer and domain will be reassigned to your account.'; -$lng['question']['admin_template_reallydelete'] = 'Do you really want to delete the template \'%s\'?'; -$lng['question']['domains_reallydelete'] = 'Do you really want to delete the domain %s?'; -$lng['question']['email_reallydelete'] = 'Do you really want to delete the email-address %s?'; -$lng['question']['email_reallydelete_account'] = 'Do you really want to delete the email-account of %s?'; -$lng['question']['email_reallydelete_forwarder'] = 'Do you really want to delete the forwarder %s?'; -$lng['question']['extras_reallydelete'] = 'Do you really want to delete the directory protection for %s?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'Do you really want to delete the path options for %s?'; -$lng['question']['ftp_reallydelete'] = 'Do you really want to delete the FTP account %s?'; -$lng['question']['mysql_reallydelete'] = 'Do you really want to delete the database %s? This cannot be undone!'; -$lng['question']['admin_configs_reallyrebuild'] = 'Do you really want to rebuild your apache and bind config files?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Hello,\n\nyour Mail account {EMAIL}\nwas set up successfully.\n\nThis is an automatically created\ne-mail, please do not answer!\n\nYours sincerely, the SysCP-Team'; -$lng['mails']['pop_success']['subject'] = 'Mail account set up successfully'; -$lng['mails']['createcustomer']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nhere is your account information:\n\nUsername: {USERNAME}\nPassword: {PASSWORD}\n\nThank you,\nthe SysCP-Team'; -$lng['mails']['createcustomer']['subject'] = 'Account information'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Overview'; -$lng['admin']['ressourcedetails'] = 'Used resources'; -$lng['admin']['systemdetails'] = 'System Details'; -$lng['admin']['syscpdetails'] = 'Froxlor Details'; -$lng['admin']['installedversion'] = 'Installed version'; -$lng['admin']['latestversion'] = 'Latest version'; -$lng['admin']['lookfornewversion']['clickhere'] = 'search via webservice'; -$lng['admin']['lookfornewversion']['error'] = 'Error while reading'; -$lng['admin']['resources'] = 'Resources'; -$lng['admin']['customer'] = 'Customer'; -$lng['admin']['customers'] = 'Customers'; -$lng['admin']['customer_add'] = 'Create customer'; -$lng['admin']['customer_edit'] = 'Edit customer'; -$lng['admin']['domains'] = 'Domains'; -$lng['admin']['domain_add'] = 'Create domain'; -$lng['admin']['domain_edit'] = 'Edit domain'; -$lng['admin']['subdomainforemail'] = 'Subdomains as emaildomains'; -$lng['admin']['admin'] = 'Admin'; -$lng['admin']['admins'] = 'Admins'; -$lng['admin']['admin_add'] = 'Create admin'; -$lng['admin']['admin_edit'] = 'Edit admin'; -$lng['admin']['customers_see_all'] = 'Can see all customers?'; -$lng['admin']['domains_see_all'] = 'Can see all domains?'; -$lng['admin']['change_serversettings'] = 'Can change server settings?'; -$lng['admin']['server'] = 'Server'; -$lng['admin']['serversettings'] = 'Settings'; -$lng['admin']['rebuildconf'] = 'Rebuild Config Files'; -$lng['admin']['stdsubdomain'] = 'Standard subdomain'; -$lng['admin']['stdsubdomain_add'] = 'Create standard subdomain'; -$lng['admin']['phpenabled'] = 'PHP enabled'; -$lng['admin']['deactivated'] = 'Deactivated'; -$lng['admin']['deactivated_user'] = 'Deactivate User'; -$lng['admin']['sendpassword'] = 'Send password'; -$lng['admin']['ownvhostsettings'] = 'Own vHost-Settings'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Configuration'; -$lng['admin']['configfiles']['files'] = 'Configfiles: Please change the following files or create them with
the following content if they do not exist.
Please Note: The MySQL-password has not been replaced for security reasons.
Please replace "MYSQL_PASSWORD" on your own. If you forgot your MySQL-password
you\'ll find it in "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Commands: Please execute the following commands in a shell.'; -$lng['admin']['configfiles']['restart'] = 'Restart: Please execute the following commands in a shell in order to reload the new configuration.'; -$lng['admin']['templates']['templates'] = 'E-Mail-templates'; -$lng['admin']['templates']['template_add'] = 'Add template'; -$lng['admin']['templates']['template_edit'] = 'Edit template'; -$lng['admin']['templates']['action'] = 'Action'; -$lng['admin']['templates']['email'] = 'E-mail & file templates'; -$lng['admin']['templates']['subject'] = 'Subject'; -$lng['admin']['templates']['mailbody'] = 'Mail body'; -$lng['admin']['templates']['createcustomer'] = 'Welcome mail for new customers'; -$lng['admin']['templates']['pop_success'] = 'Welcome mail for new email accounts'; -$lng['admin']['templates']['template_replace_vars'] = 'Variables to be replaced in the template:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Replaced with the customers firstname.'; -$lng['admin']['templates']['NAME'] = 'Replaced with the customers name.'; -$lng['admin']['templates']['USERNAME'] = 'Replaced with the customers account username.'; -$lng['admin']['templates']['PASSWORD'] = 'Replaced with the customers account password.'; -$lng['admin']['templates']['EMAIL'] = 'Replaced with the address of the POP3/IMAP account.'; -$lng['admin']['webserver'] = 'Webserver'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; -$lng['serversettings']['session_timeout']['description'] = 'How long does a user have to be inactive before a session gets invalid (seconds)?'; -$lng['serversettings']['accountprefix']['title'] = 'Customer prefix'; -$lng['serversettings']['accountprefix']['description'] = 'Which prefix should customer accounts have?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL Prefix'; -$lng['serversettings']['mysqlprefix']['description'] = 'Which prefix should mysql accounts have?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP Prefix'; -$lng['serversettings']['ftpprefix']['description'] = 'Which prefix should ftp accounts have?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Home directory'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Where should all home directories be stored?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Logfiles directory'; -$lng['serversettings']['logfiles_directory']['description'] = 'Where should all log files be stored?'; -$lng['serversettings']['ipaddress']['title'] = 'IP-Address'; -$lng['serversettings']['ipaddress']['description'] = 'What\'s the IP-address of this server?'; -$lng['serversettings']['hostname']['title'] = 'Hostname'; -$lng['serversettings']['hostname']['description'] = 'What\'s the Hostname of this server?'; -$lng['serversettings']['apachereload_command']['title'] = 'Apache reload command'; -$lng['serversettings']['apachereload_command']['description'] = 'What\'s the apache command to reload apache configfiles?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Bind config directory'; -$lng['serversettings']['bindconf_directory']['description'] = 'Where should bind configfiles be saved?'; -$lng['serversettings']['bindreload_command']['title'] = 'Bind reload command'; -$lng['serversettings']['bindreload_command']['description'] = 'What\'s the bind command to reload bind configfiles?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Bind default zone'; -$lng['serversettings']['binddefaultzone']['description'] = 'What\'s the name of the default zone?'; -$lng['serversettings']['vmail_uid']['title'] = 'Mails-UID'; -$lng['serversettings']['vmail_uid']['description'] = 'Which UserID should mails have?'; -$lng['serversettings']['vmail_gid']['title'] = 'Mails-GID'; -$lng['serversettings']['vmail_gid']['description'] = 'Which GroupID should mails have?'; -$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Homedir'; -$lng['serversettings']['vmail_homedir']['description'] = 'Where should all mails be stored?'; -$lng['serversettings']['adminmail']['title'] = 'Sender'; -$lng['serversettings']['adminmail']['description'] = 'What\'s the sender address for emails sent from the Panel?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'What\'s the URL to phpMyAdmin? (has to start with http(s)://)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; -$lng['serversettings']['webmail_url']['description'] = 'What\'s the URL to WebMail? (has to start with http(s)://)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = 'What\'s the URL to WebFTP? (has to start with http(s)://)'; -$lng['serversettings']['language']['description'] = 'What\'s your standard server language?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Max Login Attempts'; -$lng['serversettings']['maxloginattempts']['description'] = 'Maximum login attempts after which the account gets deactivated.'; -$lng['serversettings']['deactivatetime']['title'] = 'Deactivate Time'; -$lng['serversettings']['deactivatetime']['description'] = 'Time (sec.) an account gets deactivated after too many login tries.'; -$lng['serversettings']['pathedit']['title'] = 'Type of path input'; -$lng['serversettings']['pathedit']['description'] = 'Should a path be selected by a dropdown menu or by an input field?'; -$lng['serversettings']['nameservers']['title'] = 'Nameservers'; -$lng['serversettings']['nameservers']['description'] = 'A comma separated list containing the hostnames of all nameservers. The first one will be the primary one.'; -$lng['serversettings']['mxservers']['title'] = 'MX servers'; -$lng['serversettings']['mxservers']['description'] = 'A comma seperated list containing a pair of a number and a hostname separated by whitespace (e.g. \'10 mx.example.com\') containing the mx servers.'; - -/** - * CHANGED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['mysql']['description'] = 'Here you can create and change your MySQL-Databases.
The changes are made instantly and the database can be used immediately.
At the menu on the left side you find the tool phpMyAdmin with which you can easily administer your database.

To use your databases in your own php-scripts use the following settings: (The data in italics have to be changed into the equivalents you typed in!)
Hostname:
Username: Databasename
Password: the password you\'ve chosen
Database: Databasename'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Last generating of configfiles'; -$lng['serversettings']['paging']['title'] = 'Entries per page'; -$lng['serversettings']['paging']['description'] = 'How many entries shall be shown on one page? (0 = disable paging)'; -$lng['error']['ipstillhasdomains'] = 'The IP/Port combination you want to delete still has domains assigned to it, please reassign those to other IP/Port combinations before deleting this IP/Port combination.'; -$lng['error']['cantdeletedefaultip'] = 'You cannot delete the default reseller IP/Port combination, please make another IP/Port combination default for resellers before deleting this IP/Port combination.'; -$lng['error']['cantdeletesystemip'] = 'You cannot delete the last system IP, either create a new IP/Port combination for the system IP or change the system IP.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'You need to select an IP/Port combination that should become default.'; -$lng['error']['myipnotdouble'] = 'This IP/Port combination already exists.'; -$lng['error']['admin_domain_emailsystemhostname'] = 'Sorry. You can not use the Server Hostname as email domain'; -$lng['question']['admin_ip_reallydelete'] = 'Do you really want to delete the IP address %s?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IPs and Ports'; -$lng['admin']['ipsandports']['add'] = 'Add IP/Port'; -$lng['admin']['ipsandports']['edit'] = 'Edit IP/Port'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Port'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'You cannot change the last system IP, either create another new IP/Port combination for the system IP or change the system IP.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Are you sure, you want the document root for this domain, not being within the customer root of the customer?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Disabled'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir-path'; -$lng['domain']['docroot'] = 'Path from field above'; -$lng['domain']['homedir'] = 'Home directory'; -$lng['admin']['valuemandatory'] = 'This value is mandatory'; -$lng['admin']['valuemandatorycompany'] = 'Either "name" and "firstname" or "company" must be filled'; -$lng['menue']['main']['username'] = 'Logged in as: '; -$lng['panel']['urloverridespath'] = 'URL (overrides path)'; -$lng['panel']['pathorurl'] = 'Path or URL'; -$lng['error']['sessiontimeoutiswrong'] = 'Only numerical "Session Timeout" is allowed.'; -$lng['error']['maxloginattemptsiswrong'] = 'Only numerical "Max Login Attempts" are allowed.'; -$lng['error']['deactivatetimiswrong'] = 'Only numerical "Deactivate Time" is allowed.'; -$lng['error']['accountprefixiswrong'] = 'The "Customerprefix" is wrong.'; -$lng['error']['mysqlprefixiswrong'] = 'The "SQL Prefix" is wrong.'; -$lng['error']['ftpprefixiswrong'] = 'The "FTP Prefix" is wrong.'; -$lng['error']['ipiswrong'] = 'The "IP-Address" is wrong. Only a valid IP-address is allowed.'; -$lng['error']['vmailuidiswrong'] = 'The "Mails-uid" is wrong. Only a numerical UID is allowed.'; -$lng['error']['vmailgidiswrong'] = 'The "Mails-gid" is wrong. Only a numerical GID is allowed.'; -$lng['error']['adminmailiswrong'] = 'The "Sender-address" is wrong. Only a valid email-address is allowed.'; -$lng['error']['pagingiswrong'] = 'The "Entries per Page"-value is wrong. Only numerical characters are allowed.'; -$lng['error']['phpmyadminiswrong'] = 'The phpMyAdmin-link is not a valid link.'; -$lng['error']['webmailiswrong'] = 'The WebMail-link is not a valid link.'; -$lng['error']['webftpiswrong'] = 'The WebFTP-link is not a valid link.'; -$lng['domains']['hasaliasdomains'] = 'Has alias domain(s)'; -$lng['serversettings']['defaultip']['title'] = 'Default IP/Port'; -$lng['serversettings']['defaultip']['description'] = 'What\'s the default IP/Port combination?'; -$lng['domains']['statstics'] = 'Usage Statistics'; -$lng['panel']['ascending'] = 'ascending'; -$lng['panel']['decending'] = 'decending'; -$lng['panel']['search'] = 'Search'; -$lng['panel']['used'] = 'used'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = 'Translator'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = 'The value for the field "%s" is not in the expected format.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Serversoftware'; -$lng['admin']['phpversion'] = 'PHP-Version'; -$lng['admin']['phpmemorylimit'] = 'PHP-Memory-Limit'; -$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; -$lng['admin']['mysqlclientversion'] = 'MySQL Client Version'; -$lng['admin']['webserverinterface'] = 'Webserver Interface'; -$lng['domains']['isassigneddomain'] = 'Is assigned domain'; -$lng['serversettings']['phpappendopenbasedir']['title'] = 'Paths to append to OpenBasedir'; -$lng['serversettings']['phpappendopenbasedir']['description'] = 'These paths (separated by colons) will be added to the OpenBasedir-statement in every vhost-container.'; - -// CHANGED IN 1.2.15-rc1 - -$lng['error']['loginnameissystemaccount'] = 'You cannot create accounts which are similar to system accounts (as for example begin with "%s"). Please enter another account name.'; -$lng['error']['youcantdeleteyourself'] = 'You cannot delete yourself for security reasons.'; -$lng['error']['youcanteditallfieldsofyourself'] = 'Note: You cannot edit all fields of your own account for security reasons.'; - -// ADDED IN 1.2.16-svn1 - -$lng['serversettings']['natsorting']['title'] = 'Use natural human sorting in list view'; -$lng['serversettings']['natsorting']['description'] = 'Sorts lists as web1 -> web2 -> web11 instead of web1 -> web11 -> web2.'; - -// ADDED IN 1.2.16-svn2 - -$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot for deactivated users'; -$lng['serversettings']['deactivateddocroot']['description'] = 'When a user is deactivated this path is used as his docroot. Leave empty for not creating a vhost at all.'; - -// ADDED IN 1.2.16-svn4 - -$lng['panel']['reset'] = 'discard changes'; -$lng['admin']['accountsettings'] = 'Account settings'; -$lng['admin']['panelsettings'] = 'Panel settings'; -$lng['admin']['systemsettings'] = 'System settings'; -$lng['admin']['webserversettings'] = 'Webserver settings'; -$lng['admin']['mailserversettings'] = 'Mailserver settings'; -$lng['admin']['nameserversettings'] = 'Nameserver settings'; -$lng['admin']['updatecounters'] = 'Recalculate resource usage'; -$lng['question']['admin_counters_reallyupdate'] = 'Do you really want to recalculate resource usage?'; -$lng['panel']['pathDescription'] = 'If the directory doesn\'t exist, it will be created automatically.'; - -// ADDED IN 1.2.16-svn6 - -$lng['mails']['trafficninetypercent']['mailbody'] = 'Dear {NAME},\n\nYou used {TRAFFICUSED} MB of your available {TRAFFIC} MB of traffic.\nThis is more than 90%.\n\nYours sincerely, the Froxlor-Team'; -$lng['mails']['trafficninetypercent']['subject'] = 'Reaching your traffic limit'; -$lng['admin']['templates']['trafficninetypercent'] = 'Notification mail for customers when ninety percent of traffic is exhausted'; -$lng['admin']['templates']['TRAFFIC'] = 'Replaced with the traffic, which was assigned to the customer.'; -$lng['admin']['templates']['TRAFFICUSED'] = 'Replaced with the traffic, which was exhausted by the customer.'; - -// ADDED IN 1.2.16-svn7 - -$lng['admin']['subcanemaildomain']['never'] = 'Never'; -$lng['admin']['subcanemaildomain']['choosableno'] = 'Choosable, default no'; -$lng['admin']['subcanemaildomain']['choosableyes'] = 'Choosable, default yes'; -$lng['admin']['subcanemaildomain']['always'] = 'Always'; -$lng['changepassword']['also_change_webalizer'] = ' also change password of the webalizer statistics'; - -// ADDED IN 1.2.16-svn8 - -$lng['serversettings']['mailpwcleartext']['title'] = 'Also save passwords of mail accounts unencrypted in database'; -$lng['serversettings']['mailpwcleartext']['description'] = 'If this is set to yes, all passwords will also be saved unencrypted (clear text, plain readable for everyone with database access) in the mail_users-table. Only activate this if you really need it!'; -$lng['serversettings']['mailpwcleartext']['removelink'] = 'Click here to wipe all unencrypted passwords from the table.'; -$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Do you really want to wipe all unencrypted mail account passwords from the table mail_users? This cannot be reverted!'; -$lng['admin']['configfiles']['overview'] = 'Overview'; -$lng['admin']['configfiles']['wizard'] = 'Wizard'; -$lng['admin']['configfiles']['distribution'] = 'Distribution'; -$lng['admin']['configfiles']['service'] = 'Service'; -$lng['admin']['configfiles']['daemon'] = 'Daemon'; -$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; -$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; -$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; -$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; -$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; -$lng['admin']['configfiles']['etc'] = 'Others (System)'; -$lng['admin']['configfiles']['choosedistribution'] = '-- Choose a distribution --'; -$lng['admin']['configfiles']['chooseservice'] = '-- Choose a service --'; -$lng['admin']['configfiles']['choosedaemon'] = '-- Choose a daemon --'; -$lng['admin']['trafficlastrun'] = 'Last traffic calculation'; - -// ADDED IN 1.2.16-svn10 - -$lng['serversettings']['ftpdomain']['title'] = 'FTP accounts @domain'; -$lng['serversettings']['ftpdomain']['description'] = 'Customers can create Ftp accounts user@customerdomain?'; -$lng['panel']['back'] = 'Back'; - -// ADDED IN 1.2.16-svn12 - -$lng['serversettings']['mod_log_sql']['title'] = 'Temporary save logs in the database'; -$lng['serversettings']['mod_log_sql']['description'] = 'Use mod_log_sql to save webrequests temporarily
This needs a special apache-configuration!'; -$lng['serversettings']['mod_fcgid']['title'] = 'Include PHP via mod_fcgid/suexec'; -$lng['serversettings']['mod_fcgid']['description'] = 'Use mod_fcgid/suexec/libnss_mysql to run PHP with the corresponding useraccount.
This needs a special Apache configuration. All following options are only valid if the module is enabled.'; -$lng['serversettings']['sendalternativemail']['title'] = 'Use alternative email-address'; -$lng['serversettings']['sendalternativemail']['description'] = 'Send the password-email to a different address during email-account-creation'; -$lng['emails']['alternative_emailaddress'] = 'Alternative e-mail-address'; -$lng['mails']['pop_success_alternative']['mailbody'] = 'Hello,\n\nyour Mail account {EMAIL}\nwas set up successfully.\nYour password is {PASSWORD}.\n\nThis is an automatically created\ne-mail, please do not answer!\n\nYours sincerely, the Froxlor-Team'; -$lng['mails']['pop_success_alternative']['subject'] = 'Mail account set up successfully'; -$lng['admin']['templates']['pop_success_alternative'] = 'Welcome mail for new email accounts sent to alternative address'; -$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Replaced with the POP3/IMAP account password.'; - -// ADDED IN 1.2.16-svn13 - -$lng['error']['documentrootexists'] = 'The directory "%s" already exists for this customer. Please remove this before adding the customer again.'; - -// ADDED IN 1.2.16-svn14 - -$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost configuration file/dirname'; -$lng['serversettings']['apacheconf_vhost']['description'] = 'Where should the vhost configuration be stored? You could either specify a file (all vhosts in one file) or directory (each vhost in his own file) here.'; -$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions configuration file/dirname'; -$lng['serversettings']['apacheconf_diroptions']['description'] = 'Where should the diroptions configuration be stored? You could either specify a file (all diroptions in one file) or directory (each diroption in his own file) here.'; -$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd dirname'; -$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Where should the htpasswd files for directory protection be stored?'; - -// ADDED IN 1.2.16-svn15 - -$lng['error']['formtokencompromised'] = 'The request seems to be compromised. For security reasons you were logged out.'; -$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; -$lng['serversettings']['mysql_access_host']['description'] = 'A comma separated list of hosts from which users should be allowed to connect to the MySQL-Server.'; - -// ADDED IN 1.2.18-svn1 - -$lng['admin']['ipsandports']['create_listen_statement'] = 'Create Listen statement'; -$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Create NameVirtualHost statement'; -$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Create vHost-Container'; -$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Create ServerName statement in vHost-Container'; - -// ADDED IN 1.2.18-svn2 - -$lng['admin']['webalizersettings'] = 'Webalizer settings'; -$lng['admin']['webalizer']['normal'] = 'Normal'; -$lng['admin']['webalizer']['quiet'] = 'Quiet'; -$lng['admin']['webalizer']['veryquiet'] = 'No output'; -$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizer output'; -$lng['serversettings']['webalizer_quiet']['description'] = 'Verbosity of the webalizer-program'; - -// ADDED IN 1.2.18-svn3 - -$lng['ticket']['admin_email'] = 'root@localhost'; -$lng['ticket']['noreply_email'] = 'tickets@froxlor'; -$lng['admin']['ticketsystem'] = 'Support-tickets'; -$lng['menue']['ticket']['ticket'] = 'Support tickets'; -$lng['menue']['ticket']['categories'] = 'Support categories'; -$lng['menue']['ticket']['archive'] = 'Ticket-archive'; -$lng['ticket']['description'] = 'Here you can send help-requests to your responsible administrator.
Notifications will be sent via e-mail.'; -$lng['ticket']['ticket_new'] = 'Open a new ticket'; -$lng['ticket']['ticket_reply'] = 'Answer ticket'; -$lng['ticket']['ticket_reopen'] = 'Reopen ticket'; -$lng['ticket']['ticket_newcateory'] = 'Create new category'; -$lng['ticket']['ticket_editcateory'] = 'Edit category'; -$lng['ticket']['ticket_view'] = 'View ticketcourse'; -$lng['ticket']['ticketcount'] = 'Tickets'; -$lng['ticket']['ticket_answers'] = 'Replies'; -$lng['ticket']['lastchange'] = 'Last action'; -$lng['ticket']['subject'] = 'Subject'; -$lng['ticket']['status'] = 'Status'; -$lng['ticket']['lastreplier'] = 'Last replier'; -$lng['ticket']['priority'] = 'Priority'; -$lng['ticket']['low'] = 'Low'; -$lng['ticket']['normal'] = 'Normal'; -$lng['ticket']['high'] = 'High'; -$lng['ticket']['unf_low'] = 'Low'; -$lng['ticket']['unf_normal'] = 'Normal'; -$lng['ticket']['unf_high'] = 'High'; -$lng['ticket']['lastchange'] = 'Last change'; -$lng['ticket']['lastchange_from'] = 'From date (dd.mm.yyyy)'; -$lng['ticket']['lastchange_to'] = 'To date (dd.mm.yyyy)'; -$lng['ticket']['category'] = 'Category'; -$lng['ticket']['no_cat'] = 'None'; -$lng['ticket']['message'] = 'Message'; -$lng['ticket']['show'] = 'View'; -$lng['ticket']['answer'] = 'Answer'; -$lng['ticket']['close'] = 'Close'; -$lng['ticket']['reopen'] = 'Re-open'; -$lng['ticket']['archive'] = 'Archive'; -$lng['ticket']['ticket_delete'] = 'Delete ticket'; -$lng['ticket']['lastarchived'] = 'Recently archived tickets'; -$lng['ticket']['archivedtime'] = 'Archived'; -$lng['ticket']['open'] = 'Open'; -$lng['ticket']['wait_reply'] = 'Waiting for reply'; -$lng['ticket']['replied'] = 'Replied'; -$lng['ticket']['closed'] = 'Closed'; -$lng['ticket']['staff'] = 'Staff'; -$lng['ticket']['customer'] = 'Customer'; -$lng['ticket']['old_tickets'] = 'Ticket messages'; -$lng['ticket']['search'] = 'Search archive'; -$lng['ticket']['nocustomer'] = 'No choice'; -$lng['ticket']['archivesearch'] = 'Archive searchresults'; -$lng['ticket']['noresults'] = 'No tickets found'; -$lng['ticket']['notmorethanxopentickets'] = 'Due to spam-protection you cannot have more than %s open tickets'; -$lng['ticket']['supportstatus'] = 'Support-Status'; -$lng['ticket']['supportavailable'] = 'Our support engineers are available and ready to assist.'; -$lng['ticket']['supportnotavailable'] = 'Our support engineers are currently not available'; -$lng['admin']['templates']['ticket'] = 'Notification-mails for support-tickets'; -$lng['admin']['templates']['SUBJECT'] = 'Replaced with the support-ticket subject'; -$lng['admin']['templates']['new_ticket_for_customer'] = 'Customer-information that the ticket has been sent'; -$lng['admin']['templates']['new_ticket_by_customer'] = 'Admin-notification for a ticket opened by a customer'; -$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admin-notification for a ticket-reply by a customer'; -$lng['admin']['templates']['new_ticket_by_staff'] = 'Customer-notification for a ticket opened by a staff'; -$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Customer-notification for a ticket-reply by a staff'; -$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nyour support-ticket with the subject "{SUBJECT}" has been sent.\n\nYou will be notified when your ticket has been answered.\n\nThank you,\nthe Froxlor-Team'; -$lng['mails']['new_ticket_for_customer']['subject'] = 'Your support ticket has been sent'; -$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hello admin,\n\na new support-ticket with the subject "{SUBJECT}" has been submitted.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; -$lng['mails']['new_ticket_by_customer']['subject'] = 'New support ticket submitted'; -$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hello admin,\n\nthe support-ticket "{SUBJECT}" has been answered by a customer.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; -$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'New reply to support ticket'; -$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\na support-ticket with the subject "{SUBJECT}" has been opened for you.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; -$lng['mails']['new_ticket_by_staff']['subject'] = 'New support ticket submitted'; -$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nthe support-ticket with the subject "{SUBJECT}" has been answered by our staff.\n\nPlease login to view the ticket.\n\nThank you,\nthe Froxlor-Team'; -$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'New reply to support ticket'; -$lng['question']['ticket_reallyclose'] = 'Do you really want to close the ticket "%s"?'; -$lng['question']['ticket_reallydelete'] = 'Do you really want to delete the ticket "%s"?'; -$lng['question']['ticket_reallydeletecat'] = 'Do you really want to delete the category "%s"?'; -$lng['question']['ticket_reallyarchive'] = 'Do you really want to move the ticket "%s" to the archive?'; -$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; -$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; -$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; -$lng['error']['nomoreticketsavailable'] = 'You have used all your available tickets. Please contact your administrator.'; -$lng['error']['nocustomerforticket'] = 'Cannot create tickets without customers'; -$lng['error']['categoryhastickets'] = 'The category still has tickets in it.
Please delete the tickets to delete the category'; -$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; -$lng['admin']['ticketsettings'] = 'Support-Ticket settings'; -$lng['admin']['archivelastrun'] = 'Last ticket archiving'; -$lng['serversettings']['ticket']['noreply_email']['title'] = 'No-reply e-mail address'; -$lng['serversettings']['ticket']['noreply_email']['description'] = 'The sender-address for support-ticket, mostly something like no-reply@domain.tld'; -$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Begin support-time (hh:mm)'; -$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-time when support is available'; -$lng['serversettings']['ticket']['worktime_end']['title'] = 'End support-time (hh:mm)'; -$lng['serversettings']['ticket']['worktime_end']['description'] = 'End-time when support is available'; -$lng['serversettings']['ticket']['worktime_sat'] = 'Support available on saturdays?'; -$lng['serversettings']['ticket']['worktime_sun'] = 'Support available on sundays?'; -$lng['serversettings']['ticket']['worktime_all']['title'] = 'No time limit for support'; -$lng['serversettings']['ticket']['worktime_all']['description'] = 'If "Yes" the options for start- and endtime will be overwritten'; -$lng['serversettings']['ticket']['archiving_days'] = 'After how many days should closed tickets be archived?'; -$lng['customer']['tickets'] = 'Support-tickets'; - -// ADDED IN 1.2.18-svn4 - -$lng['admin']['domain_nocustomeraddingavailable'] = 'It\'s not possible to add a domain currently. You first need to add at least one customer.'; -$lng['serversettings']['ticket']['enable'] = 'Enable ticketsystem'; -$lng['serversettings']['ticket']['concurrentlyopen'] = 'How many tickets shall be able to be opened at one time?'; -$lng['error']['norepymailiswrong'] = 'The "Noreply-address" is wrong. Only a valid email-address is allowed.'; -$lng['error']['tadminmailiswrong'] = 'The "Ticketadmin-address" is wrong. Only a valid email-address is allowed.'; -$lng['ticket']['awaitingticketreply'] = 'You have %s unanswered support-ticket(s)'; - -// ADDED IN 1.2.18-svn5 - -$lng['serversettings']['ticket']['noreply_name'] = 'Ticket e-mail sendername'; - -// ADDED IN 1.2.19-svn1 - -$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'Configuration directory'; -$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'Where should all fcgid-configuration files be stored? If you don\'t use a self compiled suexec binary, which is the normal situation, this path must be under /var/www/'; -$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'Temp directory'; - -// ADDED IN 1.2.19-svn3 - -$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Reset used tickets cycle'; -$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Reset the customers used ticket counter to 0 in the chosen cycle'; -$lng['admin']['tickets']['daily'] = 'Daily'; -$lng['admin']['tickets']['weekly'] = 'Weekly'; -$lng['admin']['tickets']['monthly'] = 'Monthly'; -$lng['admin']['tickets']['yearly'] = 'Yearly'; -$lng['error']['ticketresetcycleiswrong'] = 'The cycle for ticket-resets has to be "daily", "weekly", "monthly" or "yearly".'; - -// ADDED IN 1.2.19-svn4 - -$lng['menue']['traffic']['traffic'] = 'Traffic'; -$lng['menue']['traffic']['current'] = 'Current Month'; -$lng['traffic']['month'] = "Month"; -$lng['traffic']['day'] = "Day"; -$lng['traffic']['months'][1] = "January"; -$lng['traffic']['months'][2] = "February"; -$lng['traffic']['months'][3] = "March"; -$lng['traffic']['months'][4] = "April"; -$lng['traffic']['months'][5] = "May"; -$lng['traffic']['months'][6] = "June"; -$lng['traffic']['months'][7] = "July"; -$lng['traffic']['months'][8] = "August"; -$lng['traffic']['months'][9] = "September"; -$lng['traffic']['months'][10] = "October"; -$lng['traffic']['months'][11] = "November"; -$lng['traffic']['months'][12] = "December"; -$lng['traffic']['mb'] = "Traffic (MB)"; -$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; -$lng['traffic']['sumhttp'] = 'Summation HTTP-Traffic in'; -$lng['traffic']['sumftp'] = 'Summation FTP-Traffic in'; -$lng['traffic']['summail'] = 'Summation Mail-Traffic in'; - -// ADDED IN 1.2.19-svn4.5 - -$lng['serversettings']['no_robots']['title'] = 'Allow searchengine-robots to index your Froxlor installation'; - -// ADDED IN 1.2.19-svn6 - -$lng['admin']['loggersettings'] = 'Log settings'; -$lng['serversettings']['logger']['enable'] = 'Logging enabled/disabled'; -$lng['serversettings']['logger']['severity'] = 'Logging level'; -$lng['admin']['logger']['normal'] = 'normal'; -$lng['admin']['logger']['paranoid'] = 'paranoid'; -$lng['serversettings']['logger']['types']['title'] = 'Log-type(s)'; -$lng['serversettings']['logger']['types']['description'] = 'Specify logtypes seperated by comma.
Available logtypes are: syslog, file, mysql'; -$lng['serversettings']['logger']['logfile'] = 'Logfile path including filename'; -$lng['error']['logerror'] = 'Log-Error: %s'; -$lng['serversettings']['logger']['logcron'] = 'Log cronjobs (one run)'; -$lng['question']['logger_reallytruncate'] = 'Do you really want to truncate the table "%s"?'; -$lng['admin']['loggersystem'] = 'System-logging'; -$lng['menue']['logger']['logger'] = 'System-logging'; -$lng['logger']['date'] = 'Date'; -$lng['logger']['type'] = 'Type'; -$lng['logger']['action'] = 'Action'; -$lng['logger']['user'] = 'User'; -$lng['logger']['truncate'] = 'Empty log'; - -// ADDED IN 1.2.19-svn7 - -$lng['serversettings']['ssl']['use_ssl'] = 'Use SSL'; -$lng['serversettings']['ssl']['ssl_cert_file'] = 'Path to the SSL certificate'; -$lng['serversettings']['ssl']['openssl_cnf'] = 'Defaults for creating the Cert file'; -$lng['panel']['reseller'] = 'reseller'; -$lng['panel']['admin'] = 'admin'; -$lng['panel']['customer'] = 'customer/s'; -$lng['error']['nomessagetosend'] = 'You did not enter a message.'; -$lng['error']['noreceipientsgiven'] = 'You did not specify any receipient'; -$lng['admin']['emaildomain'] = 'Emaildomain'; -$lng['admin']['email_only'] = 'Only email?'; -$lng['admin']['wwwserveralias'] = 'Add a "www." ServerAlias'; -$lng['admin']['ipsandports']['enable_ssl'] = 'Is this an SSL Port?'; -$lng['admin']['ipsandports']['ssl_cert_file'] = 'Path to the SSL Certificate'; -$lng['panel']['send'] = 'send'; -$lng['admin']['subject'] = 'Subject'; -$lng['admin']['receipient'] = 'Recipient'; -$lng['admin']['message'] = 'Write a Message'; -$lng['admin']['text'] = 'Message'; -$lng['menu']['message'] = 'Messages'; -$lng['error']['errorsendingmail'] = 'The message to "%s" failed'; -$lng['error']['cannotreaddir'] = 'Unable to read directory "%s"'; -$lng['message']['success'] = 'Successfully sent message to %s recipients'; -$lng['message']['noreceipients'] = 'No e-mail has been sent because there are no recipients in the database'; -$lng['admin']['sslsettings'] = 'SSL settings'; -$lng['cronjobs']['notyetrun'] = 'Not yet run'; -$lng['install']['servername_should_be_fqdn'] = 'The servername should be a FQDN and not an IP address'; -$lng['serversettings']['default_vhostconf']['title'] = 'Default vhost-settings'; -$lng['serversettings']['default_vhostconf']['description'] = 'The content of this field will be included into the domain vhost container directly. Attention: The code won\'t be checked for any errors. If it contains errors, apache might ot start again!'; -$lng['error']['invalidip'] = 'Invalid IP address: %s'; -$lng['serversettings']['decimal_places'] = 'Number of decimal places in traffic/webspace output'; - -// ADDED IN 1.2.19-svn8 - -$lng['admin']['dkimsettings'] = 'DomainKey settings'; -$lng['dkim']['dkim_prefix']['title'] = 'Prefix'; -$lng['dkim']['dkim_prefix']['description'] = 'Please specify the path to the DKIM RSA-files as well as to the configuration files for the Milter-plugin'; -$lng['dkim']['dkim_domains']['title'] = 'Domains filename'; -$lng['dkim']['dkim_domains']['description'] = 'Filename of the DKIM Domains parameter specified in the dkim-milter configuration'; -$lng['dkim']['dkim_dkimkeys']['title'] = 'KeyList filename'; -$lng['dkim']['dkim_dkimkeys']['description'] = 'Filename of the DKIM KeyList parameter specified in the dkim-milter configuration'; -$lng['dkim']['dkimrestart_command']['title'] = 'Milter restart command'; -$lng['dkim']['dkimrestart_command']['description'] = 'Please specify the restart command for the DKIM milter service'; - -// ADDED IN 1.2.19-svn9 - -$lng['admin']['caneditphpsettings'] = 'Can change php-related domain settings?'; - -// ADDED IN 1.2.19-svn12 - -$lng['admin']['allips'] = 'All IP\'s'; -$lng['panel']['nosslipsavailable'] = 'There are currently no ssl ip/port combinations for this server'; -$lng['ticket']['by'] = 'by'; -$lng['dkim']['use_dkim']['title'] = 'Activate DKIM support?'; -$lng['dkim']['use_dkim']['description'] = 'Would you like to use the Domain Keys (DKIM) system?'; -$lng['error']['invalidmysqlhost'] = 'Invalid MySQL host address: %s'; -$lng['error']['cannotuseawstatsandwebalizeratonetime'] = 'You cannot enable Webalizer and Awstats at the same time, please chose one of them'; -$lng['serversettings']['webalizer_enabled'] = 'Enable webalizer statistics'; -$lng['serversettings']['awstats_enabled'] = 'Enable awstats statistics'; -$lng['admin']['awstatssettings'] = 'Awstats settings'; -$lng['serversettings']['awstats_domain_file']['title'] = 'Awstats domainfiles directory'; -$lng['serversettings']['awstats_model_file']['title'] = 'Awstats model file'; - -// ADDED IN 1.2.19-svn16 - -$lng['admin']['domain_dns_settings'] = 'Domain dns settings'; -$lng['dns']['destinationip'] = 'Domain IP'; -$lng['dns']['standardip'] = 'Server standard IP'; -$lng['dns']['a_record'] = 'A-Record (IPv6 optional)'; -$lng['dns']['cname_record'] = 'CNAME-Record'; -$lng['dns']['mxrecords'] = 'Define MX records'; -$lng['dns']['standardmx'] = 'Server tandard MX record'; -$lng['dns']['mxconfig'] = 'Custom MX records'; -$lng['dns']['priority10'] = 'Priority 10'; -$lng['dns']['priority20'] = 'Priority 20'; -$lng['dns']['txtrecords'] = 'Define TXT records'; -$lng['dns']['txtexample'] = 'Example (SPF-entry):
v=spf1 ip4:xxx.xxx.xx.0/23 -all'; -$lng['serversettings']['selfdns']['title'] = 'Customer domain dns settings'; -$lng['serversettings']['selfdnscustomer']['title'] = 'Allow customers to edit domain dns settings'; -$lng['admin']['activated'] = 'Activated'; -$lng['admin']['statisticsettings'] = 'Statistic settings'; -$lng['admin']['or'] = 'or'; - -// ADDED IN 1.2.19-svn17 - -$lng['serversettings']['unix_names']['title'] = 'Use UNIX compatible usernames'; -$lng['serversettings']['unix_names']['description'] = 'Allows you to use - and _ in usernames if No'; -$lng['error']['cannotwritetologfile'] = 'Cannot open logfile %s for writing'; -$lng['admin']['sysload'] = 'System load'; -$lng['admin']['noloadavailable'] = 'not available'; -$lng['admin']['nouptimeavailable'] = 'not available'; -$lng['panel']['backtooverview'] = 'Back to overview'; -$lng['admin']['nosubject'] = '(No Subject)'; -$lng['admin']['configfiles']['statistics'] = 'Statistics'; -$lng['login']['forgotpwd'] = 'Forgot your password?'; -$lng['login']['presend'] = 'Reset password'; -$lng['login']['email'] = 'E-mail address'; -$lng['login']['remind'] = 'Reset my password'; -$lng['login']['usernotfound'] = 'User not found!'; -$lng['pwdreminder']['subject'] = 'Froxlor - Password reset'; -$lng['pwdreminder']['body'] = 'Hello %s,\n\nyour froxlor password has been reset!\nThe new password is: %p\n\nThank you,\nthe Froxlor-Team'; -$lng['pwdreminder']['success'] = 'Password reset successfully.
You now should receive an email with your new password.'; - -// ADDED IN 1.2.19-svn18 - -$lng['serversettings']['allow_password_reset']['title'] = 'Allow password reset by customers'; -$lng['pwdreminder']['notallowed'] = 'Password reset is deactivated'; - -// ADDED IN 1.2.19-svn20 - -$lng['serversettings']['awstats_path']['title'] = 'Path to awstats cgi-bin folder'; -$lng['serversettings']['awstats_path']['description'] = 'e.g. /usr/share/webapps/awstats/6.1/webroot/cgi-bin/'; -$lng['serversettings']['awstats_updateall_command']['title'] = 'Path to "awstats_updateall.pl"'; -$lng['serversettings']['awstats_updateall_command']['description'] = 'e.g. /usr/bin/awstats_updateall.pl'; - -// ADDED IN 1.2.19-svn21 - -$lng['customer']['title'] = 'Title'; -$lng['customer']['country'] = 'Country'; -$lng['panel']['dateformat'] = 'YYYY-MM-DD'; -$lng['panel']['dateformat_function'] = 'Y-m-d'; - -// Y = Year, m = Month, d = Day - -$lng['panel']['timeformat_function'] = 'H:i:s'; - -// H = Hour, i = Minute, s = Second - -$lng['panel']['default'] = 'Default'; -$lng['panel']['never'] = 'Never'; -$lng['panel']['active'] = 'Active'; -$lng['panel']['please_choose'] = 'Please choose'; -$lng['panel']['allow_modifications'] = 'Allow modifications'; -$lng['domains']['add_date'] = 'Added to Froxlor'; -$lng['domains']['registration_date'] = 'Added at registry'; -$lng['domains']['topleveldomain'] = 'Top-Level-Domain'; - -// ADDED IN 1.2.19-svn22 - -$lng['serversettings']['allow_password_reset']['description'] = 'Customers can reset their password and a new password will be sent to their e-mail address'; -$lng['serversettings']['allow_password_reset_admin']['title'] = 'Allow password reset by admins'; -$lng['serversettings']['allow_password_reset_admin']['description'] = 'Admins/reseller can reset their password and a new password will be sent to their e-mail address'; - -// ADDED IN 1.2.19-svn25 - -$lng['emails']['quota'] = 'Quota'; -$lng['emails']['noquota'] = 'No quota'; -$lng['emails']['updatequota'] = 'Update Quota'; -$lng['serversettings']['mail_quota']['title'] = 'Mailbox-quota'; -$lng['serversettings']['mail_quota']['description'] = 'The default quota for a new created mailboxes (MegaByte).'; -$lng['serversettings']['mail_quota_enabled']['title'] = 'Use mailbox-quota for customers'; -$lng['serversettings']['mail_quota_enabled']['description'] = 'Activate to use quotas on mailboxes. Default is No since this requires a special setup.'; -$lng['serversettings']['mail_quota_enabled']['removelink'] = 'Click here to wipe all quotas for mail accounts.'; -$lng['serversettings']['mail_quota_enabled']['enforcelink'] = 'Click here to enforce default quota to all User mail accounts.'; -$lng['question']['admin_quotas_reallywipe'] = 'Do you really want to wipe all quotas on table mail_users? This cannot be reverted!'; -$lng['question']['admin_quotas_reallyenforce'] = 'Do you really want to enforce the default quota to all Users? This cannot be reverted!'; -$lng['error']['vmailquotawrong'] = 'The quotasize must be positive number.'; -$lng['customer']['email_quota'] = 'E-mail quota'; -$lng['customer']['email_imap'] = 'E-mail IMAP'; -$lng['customer']['email_pop3'] = 'E-mail POP3'; -$lng['customer']['mail_quota'] = 'Mailquota'; -$lng['panel']['megabyte'] = 'MegaByte'; -$lng['panel']['not_supported'] = 'Not supported in: '; -$lng['emails']['quota_edit'] = 'Change E-Mail Quota'; -$lng['error']['allocatetoomuchquota'] = 'You tried to allocate %s MB ' . $lng['emails']['quota'] . ', but you do not have enough left.'; - -// Autoresponder module - -$lng['menue']['email']['autoresponder'] = 'Autoresponder'; -$lng['autoresponder']['active'] = 'Active'; -$lng['autoresponder']['autoresponder_add'] = 'Add autoresponder'; -$lng['autoresponder']['autoresponder_edit'] = 'Edit autoresponder'; -$lng['autoresponder']['autoresponder_new'] = 'Create new autoresponder'; -$lng['autoresponder']['subject'] = 'Subject'; -$lng['autoresponder']['message'] = 'Message'; -$lng['autoresponder']['account'] = 'Account'; -$lng['autoresponder']['sender'] = 'Sender'; -$lng['question']['autoresponderdelete'] = 'Do you really want to delete the autoresponder?'; -$lng['error']['noemailaccount'] = 'There can be two reasons why you cannot create a new autoresponder: You need at least one email account to create a new autoresponder. Secondly it can be possible that all accounts already have an autoresponder configured.'; -$lng['error']['missingfields'] = 'Not all required fields were filled out.'; -$lng['error']['accountnotexisting'] = 'The given email account doesn\'t exist.'; -$lng['error']['autoresponderalreadyexists'] = 'There is already an autoresponder configured for this account.'; -$lng['error']['invalidautoresponder'] = 'The given account is invalid.'; -$lng['serversettings']['autoresponder_active']['title'] = 'Use autoresponder module'; -$lng['serversettings']['autoresponder_active']['description'] = 'Do you want to use the autoresponder module? Therefore an extra cronjob must be set up.'; -$lng['invoice']['active'] = 'Billing active'; -$lng['admin']['security_settings'] = 'Security Options'; -$lng['admin']['know_what_youre_doing'] = 'Change only, if you know what you\'re doing!'; -$lng['admin']['show_version_login']['title'] = 'Show Froxlor version on login'; -$lng['admin']['show_version_login']['description'] = 'Show the Froxlor version in the footer on the login page'; -$lng['admin']['show_version_footer']['title'] = 'Show Froxlor version in footer'; -$lng['admin']['show_version_footer']['description'] = 'Show the Froxlor version in the footer on the rest of the pages'; -$lng['admin']['syscp_graphic']['title'] = 'Header graphic for SysCP'; -$lng['admin']['syscp_graphic']['description'] = 'What graphic should be shown in the header'; - -//improved syscp - -$lng['menue']['phpsettings']['maintitle'] = 'PHP Configurations'; -$lng['admin']['phpsettings']['title'] = 'PHP Configuration'; -$lng['admin']['phpsettings']['description'] = 'Short description'; -$lng['admin']['phpsettings']['actions'] = 'Actions'; -$lng['admin']['phpsettings']['activedomains'] = 'In use for domain(s)'; -$lng['admin']['phpsettings']['notused'] = 'Configuration not in use'; -$lng['admin']['misc'] = 'Miscellaneous'; -$lng['admin']['phpsettings']['editsettings'] = 'Change PHP settings'; -$lng['admin']['phpsettings']['addsettings'] = 'Create new PHP settings'; -$lng['admin']['phpsettings']['viewsettings'] = 'View PHP settings'; -$lng['admin']['phpsettings']['phpinisettings'] = 'php.ini settings'; -$lng['error']['nopermissionsorinvalidid'] = 'You don\'t have enough permissions to change these settings or an invalid id was given.'; -$lng['panel']['view'] = 'view'; -$lng['question']['phpsetting_reallydelete'] = 'Do you really want to delete these settings? All domains which use these settings currently will be changed to the default config.'; -$lng['admin']['phpsettings']['addnew'] = 'Create new settings'; -$lng['error']['phpsettingidwrong'] = 'A PHP Configuration with this id doesn\'t exist'; -$lng['error']['descriptioninvalid'] = 'The description is too short, too long or contains illegal characters.'; -$lng['error']['info'] = 'Info'; -$lng['admin']['phpconfig']['template_replace_vars'] = 'Variables that will be replaced in the configs'; -$lng['admin']['phpconfig']['safe_mode'] = 'Will be replaced with the safe_mode setting of the domain.'; -$lng['admin']['phpconfig']['pear_dir'] = 'Will be replaced with the global setting for the pear directory.'; -$lng['admin']['phpconfig']['open_basedir_c'] = 'Will insert a ; (semicolon) to comment-out/deactivate open_basedir when set'; -$lng['admin']['phpconfig']['open_basedir'] = 'Will be replaced with the open_basedir setting of the domain.'; -$lng['admin']['phpconfig']['tmp_dir'] = 'Will be replaced with the temporary directory of the domain.'; -$lng['admin']['phpconfig']['open_basedir_global'] = 'Will be replaced with the global value of the path which will be attached to the open_basedir.'; -$lng['admin']['phpconfig']['customer_email'] = 'Will be replaced with the e-mail address of the customer who owns this domain.'; -$lng['admin']['phpconfig']['admin_email'] = 'Will be replaced with e-mail address of the admin who owns this domain.'; -$lng['admin']['phpconfig']['domain'] = 'Will be replaced with the domain.'; -$lng['admin']['phpconfig']['customer'] = 'Will be replaced with the loginname of the customer who owns this domain.'; -$lng['admin']['phpconfig']['admin'] = 'Will be replaced with the loginname of the admin who owns this domain.'; -$lng['login']['backtologin'] = 'Back to login'; -$lng['serversettings']['mod_fcgid']['starter']['title'] = 'Processes per Domain'; -$lng['serversettings']['mod_fcgid']['starter']['description'] = 'How many processes should be started/allowed per domain? The value 0 is recommended cause PHP will then manage the amount of processes itself very efficiently.'; -$lng['serversettings']['mod_fcgid']['wrapper']['title'] = 'Wrapper in Vhosts'; -$lng['serversettings']['mod_fcgid']['wrapper']['description'] = 'How should the wrapper be included in the Vhosts'; -$lng['serversettings']['mod_fcgid']['tmpdir']['description'] = 'Where should the temp directories be stored'; -$lng['serversettings']['mod_fcgid']['peardir']['title'] = 'Global PEAR directories'; -$lng['serversettings']['mod_fcgid']['peardir']['description'] = 'Which global PEAR directories should be replaced in every php.ini config? Different directories must be separated by a colon.'; - -//improved Froxlor 2 - -$lng['admin']['templates']['index_html'] = 'index file for newly created customer directories'; -$lng['admin']['templates']['SERVERNAME'] = 'Replaced with the servername.'; -$lng['admin']['templates']['CUSTOMER'] = 'Replaced with the loginname of the customer.'; -$lng['admin']['templates']['ADMIN'] = 'Replaced with the loginname of the admin.'; -$lng['admin']['templates']['CUSTOMER_EMAIL'] = 'Replaced with the e-mail address of the customer.'; -$lng['admin']['templates']['ADMIN_EMAIL'] = 'Replaced with the e-mail address of the admin.'; -$lng['admin']['templates']['filetemplates'] = 'File templates'; -$lng['admin']['templates']['filecontent'] = 'File content'; -$lng['error']['filecontentnotset'] = 'The file cannot be empty!'; -$lng['serversettings']['index_file_extension']['description'] = 'Which file extension should be used for the index file in newly created customer directories? This file extension will be used, if you or one of your admins has created its own index file template.'; -$lng['serversettings']['index_file_extension']['title'] = 'File extension for index file in newly created customer directories'; -$lng['error']['index_file_extension'] = 'The file extension for the index file must be between 1 and 6 characters long. The extension can only contain characters like a-z, A-Z and 0-9'; -$lng['admin']['expert_settings'] = 'Expert settings!'; -$lng['admin']['mod_fcgid_starter']['title'] = 'PHP Processes for this domain (empty for default value)'; - -//added with aps installer - -$lng['admin']['aps'] = 'APS Installer'; -$lng['customer']['aps'] = 'APS Installer'; -$lng['aps']['scan'] = 'Scan for new packages'; -$lng['aps']['upload'] = 'Upload new packages'; -$lng['aps']['managepackages'] = 'Manage Packages'; -$lng['aps']['manageinstances'] = 'Manage Instances'; -$lng['aps']['overview'] = 'Package overview'; -$lng['aps']['status'] = 'My Packages'; -$lng['aps']['search'] = 'Search for Packages'; -$lng['aps']['upload_description'] = 'Please select the APS Installer zipfiles to install them in the system.'; -$lng['aps']['search_description'] = 'Name, Description, Keyword, Version'; -$lng['aps']['detail'] = 'More information'; -$lng['aps']['install'] = 'Install package'; -$lng['aps']['data'] = 'Data'; -$lng['aps']['version'] = 'Version'; -$lng['aps']['homepage'] = 'Homepage'; -$lng['aps']['installed_size'] = 'Size after Installation'; -$lng['aps']['categories'] = 'Categories'; -$lng['aps']['languages'] = 'Languages'; -$lng['aps']['long_description'] = 'Long description'; -$lng['aps']['configscript'] = 'Configuration script'; -$lng['aps']['changelog'] = 'Changelog'; -$lng['aps']['license'] = 'License'; -$lng['aps']['license_link'] = 'Link to License'; -$lng['aps']['screenshots'] = 'Screenshots'; -$lng['aps']['back'] = 'Back to overview'; -$lng['aps']['install_wizard'] = 'Installation wizard...'; -$lng['aps']['wizard_error'] = 'Your input contains invalid data. Please correct yourself to continue the installation.'; -$lng['aps']['basic_settings'] = 'Basic settings'; -$lng['aps']['application_location'] = 'Installation location'; -$lng['aps']['application_location_description'] = 'Location where the application will be installed.'; -$lng['aps']['no_domains'] = 'No domains found'; -$lng['aps']['database_password'] = 'Database password'; -$lng['aps']['database_password_description'] = 'Password which should be used for the new created database.'; -$lng['aps']['license_agreement'] = 'Agreement'; -$lng['aps']['cancel_install'] = 'Abort Installation'; -$lng['aps']['notazipfile'] = 'The uploaded file is not a zipfile.'; -$lng['aps']['filetoobig'] = 'The file is too big.'; -$lng['aps']['filenotcomplete'] = 'The file wasn\'t uploaded completely.'; -$lng['aps']['phperror'] = 'There occured a PHP internal error. The PHP upload errorcode is #'; -$lng['aps']['moveproblem'] = 'The script failed to move the uploaded file into the destination directory. Please ensure that all permissions are set correctly.'; -$lng['aps']['uploaderrors'] = 'Errors for the file %s
    %s
'; -$lng['aps']['nospecialchars'] = 'Special characters are not allowed in the search term!'; -$lng['aps']['noitemsfound'] = 'No Packages were found!'; -$lng['aps']['nopackagesinstalled'] = 'You haven\'t installed any package yet which could be shown.'; -$lng['aps']['instance_install'] = 'Package Installation pending'; -$lng['aps']['instance_task_active'] = 'Installation running at this moment'; -$lng['aps']['instance_success'] = 'Package is installed/was installed successfully'; -$lng['aps']['instance_error'] = 'Package isn\'t installed - there occured some errors on the Installation'; -$lng['aps']['instance_uninstall'] = 'Package Uninstallation pending'; -$lng['aps']['unknown_status'] = 'Error - Unknown value'; -$lng['aps']['currentstatus'] = 'Current status'; -$lng['aps']['activetasks'] = 'Current tasks'; -$lng['aps']['task_install'] = 'Installation pending'; -$lng['aps']['task_remove'] = 'Uninstallation pending'; -$lng['aps']['task_reconfigure'] = 'Reconfiguration pending'; -$lng['aps']['task_upgrade'] = 'Update/Upgrade pending'; -$lng['aps']['no_task'] = 'No tasks pending'; -$lng['aps']['applicationlinks'] = 'Application links'; -$lng['aps']['mainsite'] = 'Main site'; -$lng['aps']['uninstall'] = 'Uninstall Package'; -$lng['aps']['reconfigure'] = 'Change settings'; -$lng['aps']['erroronnewinstance'] = 'This Package cannot be installed.

Please go back to the Package overview and start a new Installation.'; -$lng['aps']['successonnewinstance'] = '%s will be installed now.

Go back to "My Packages" and wait until the Installation has finished. This can take some time.'; -$lng['aps']['php_misc_handler'] = 'PHP - Misc - There is no support for other file extensions than .php for the PHP Parser.'; -$lng['aps']['php_misc_directoryhandler'] = 'PHP - Misc - There is no support for per directory disabled PHP Handlers.'; -$lng['aps']['asp_net'] = 'ASP.NET - Package not supported.'; -$lng['aps']['cgi'] = 'CGI - Package not supported.'; -$lng['aps']['php_extension'] = 'PHP - Extension "%s" missing.'; -$lng['aps']['php_function'] = 'PHP - Function "%s" missing.'; -$lng['aps']['php_configuration'] = 'PHP - Configuration - Current "%s" setting not supported by Package.'; -$lng['aps']['php_configuration_post_max_size'] = 'PHP - Configuration - "post_max_size" value too low.'; -$lng['aps']['php_configuration_memory_limit'] = 'PHP - Configuration - "memory_limit" value too low.'; -$lng['aps']['php_configuration_max_execution_time'] = 'PHP - Configuration - "max_execution_time" value too low.'; -$lng['aps']['php_general_old'] = 'PHP - General - PHP Version too old.'; -$lng['aps']['php_general_new'] = 'PHP - General - PHP Version too new.'; -$lng['aps']['db_mysql_support'] = 'Database - The Package needs another database engine than MySQL.'; -$lng['aps']['db_mysql_version'] = 'Database - MySQL Server too old.'; -$lng['aps']['webserver_module'] = 'Webserver - Module "%s" missing.'; -$lng['aps']['webserver_fcgid'] = 'Webserver - This Package requires additional modules from the Webserver. In your FastCGI/mod_fcgid environment the function "apache_get_modules" doesn\'t exist. The Package cannot be installed because the APS Installer is unable to verify if this modules are installed.'; -$lng['aps']['webserver_htaccess'] = 'Webserver - This Package requires that .htaccess files are parsed by the Webserver. The Package cannot be installed because the APS Installer is unable to determine if this is enabled.'; -$lng['aps']['misc_configscript'] = 'Misc - The language of the configuration script is not supported.'; -$lng['aps']['misc_charset'] = 'Misc - In the current Installer version its not possibel to validate formfields from the wizard against a specific charset. The Package cannot be installed.'; -$lng['aps']['misc_version_already_installed'] = 'Same version of Package already installed.'; -$lng['aps']['misc_only_newer_versions'] = 'For security reasons only newer Package versions can be installed on the system than them which are already installed.'; -$lng['aps']['erroronscan'] = 'Errors for %s
    %s
'; -$lng['aps']['invalidzipfile'] = 'Errors for %s
  • This is not a valid APS zipfile!
'; -$lng['aps']['successpackageupdate'] = '%s successfully installed as a Package update'; -$lng['aps']['successpackageinstall'] = '%s successfully installed as a new Package'; -$lng['aps']['class_zip_missing'] = 'SimpleXML Class, exec function or ZIP Functions missing or not enabled! For further information about this problem look into the handbook for this module.'; -$lng['aps']['dir_permissions'] = 'The PHP/Webserver process must be able to write in the directory /var/www/syscp/temp/ and /var/www/syscp/packages/'; -$lng['aps']['initerror'] = 'There are some problems with this module:
    %s
Fix these problems, otherwise the module cannot be used!'; -$lng['aps']['iderror'] = 'Wrong id specified!'; -$lng['aps']['nopacketsforinstallation'] = 'There are no packages to install.'; -$lng['aps']['nopackagestoinstall'] = 'There are no packages to view or install.'; -$lng['aps']['nodomains'] = 'Select a domain from the list. If there is none, the Package cannot be installed!'; -$lng['aps']['wrongpath'] = 'Either this path contains invalid characters or there is another application installed already.'; -$lng['aps']['dbpassword'] = 'Specify a password with a minimum length of 8 characters.'; -$lng['aps']['error_text'] = 'Specify a text without special characters.'; -$lng['aps']['error_email'] = 'Specify a valid e-mail address.'; -$lng['aps']['error_domain'] = 'Specify a valid URL like http://www.example.com/'; -$lng['aps']['error_integer'] = 'Specify a numeric value (Integer-Format) e.g. 5 or 7.'; -$lng['aps']['error_float'] = 'Specify a numeric value (Float-Format) e.g. 5,2432 or 7,5346.'; -$lng['aps']['error_password'] = 'Specify a password.'; -$lng['aps']['error_license'] = 'Yes, I have read the license and will abide by its terms.'; -$lng['aps']['error_licensenoaccept'] = 'You must accept the license to install this application.'; -$lng['aps']['stopinstall'] = 'Abort Installation'; -$lng['aps']['installstopped'] = 'The Installation of this Package was aborted successfully.'; -$lng['aps']['installstoperror'] = 'The Installation cannot be aborted anymore because installation has started already. If you\'d like to uninstall the Package, wait until the Installation has finished and then go to "My Packages" to trigger an Uninstallation.'; -$lng['aps']['waitfortask'] = 'There are no actions to select. Wait until all tasks have finished.'; -$lng['aps']['removetaskexisting'] = 'There is already a task for Uninstallation.

Please go back to "My Packages" and wait until the Uninstallation has finished.'; -$lng['aps']['packagewillberemoved'] = 'The Package will be uninstalled now.

Please go back to "My Packages" and wait until the Uninstallation has finished.'; -$lng['question']['reallywanttoremove'] = 'Do you really want to uninstall this Package?

All database contents and files will be erased. Be sure to make a manual backup of a files you need for any further usage!

'; -$lng['aps']['searchoneresult'] = '%s Package found'; -$lng['aps']['searchmultiresult'] = '%s Packages found'; -$lng['question']['reallywanttostop'] = 'Do you really want to abort the Installation of this Package?

'; -$lng['aps']['packagenameandversion'] = 'Packagename & Version'; -$lng['aps']['package_locked'] = 'Locked'; -$lng['aps']['package_enabled'] = 'Enabled'; -$lng['aps']['lock'] = 'Lock'; -$lng['aps']['unlock'] = 'Enable'; -$lng['aps']['remove'] = 'Remove'; -$lng['aps']['allpackages'] = 'All Packages'; -$lng['question']['reallyremovepackages'] = 'Do you really want to delete these packages?

Packages with dependencies can only be remove if the corresponding Instances have been removed!

'; -$lng['aps']['nopackagesinsystem'] = 'There were no packages installed in the system which could be managed.'; -$lng['aps']['packagenameandstatus'] = 'Packagename & Status'; -$lng['aps']['activate_aps']['title'] = 'Enable APS Installer'; -$lng['aps']['activate_aps']['description'] = 'Here the APS Installer can be enabled and disabled globaly.'; -$lng['aps']['packages_per_page']['title'] = 'Packages per page'; -$lng['aps']['packages_per_page']['description'] = 'How many packages should be displayed per page for customers?'; -$lng['aps']['upload_fields']['title'] = 'Upload fields per page'; -$lng['aps']['upload_fields']['description'] = 'How many upload fields should be displayed on the page to install new packages in the system?'; -$lng['aps']['exceptions']['title'] = 'Exceptions for Package validation'; -$lng['aps']['exceptions']['description'] = 'Some packages need special configuration parameters or modules. The Installer cannot always determine if this options/extensions are available. For this reason you can now define exceptions that packages can be installed in the system. Do only select options which match your real configuration setup. For further information about this problem look into the handbook for this module.'; -$lng['aps']['settings_php_extensions'] = 'PHP-Extensions'; -$lng['aps']['settings_php_configuration'] = 'PHP-Configuration'; -$lng['aps']['settings_webserver_modules'] = 'Webserver modules'; -$lng['aps']['settings_webserver_misc'] = 'Webserver miscellaneous'; -$lng['aps']['specialoptions'] = 'Special options'; -$lng['aps']['removeunused'] = 'Remove unused packages'; -$lng['aps']['enablenewest'] = 'Enabled newest version of package, lock others'; -$lng['aps']['installations'] = 'Installations'; -$lng['aps']['statistics'] = 'Statistics'; -$lng['aps']['numerofpackagesinstalled'] = '%s Packages installed
'; -$lng['aps']['numerofpackagesenabled'] = '%s Packages enabled
'; -$lng['aps']['numerofpackageslocked'] = '%s Packages locked
'; -$lng['aps']['numerofinstances'] = '%s Instances installed
'; -$lng['question']['reallydoaction'] = 'Do you really want to execute the selected actions?

Data which can be lost by continuing, cannot be restored later.

'; -$lng['aps']['linktolicense'] = 'Link to license'; -$lng['aps']['initerror_customer'] = 'There is currently a problem with this Froxlor extension. Contact your administrator for further information.'; -$lng['aps']['numerofinstances'] = '%s Installations at all
'; -$lng['aps']['numerofinstancessuccess'] = '%s successful Installations
'; -$lng['aps']['numerofinstanceserror'] = '%s failed Installations
'; -$lng['aps']['numerofinstancesaction'] = '%s planed Installations/Uninstallations'; -$lng['aps']['downloadallpackages'] = 'Download all packages from distribution server'; -$lng['aps']['updateallpackages'] = 'Update all packages by distribution server'; -$lng['aps']['downloadtaskexists'] = 'There is already a task for the download of all packages. Please wait until this task has finished.'; -$lng['aps']['downloadtaskinserted'] = 'A task for the download of all packages has been created. This can take up to several minutes.'; -$lng['aps']['updatetaskexists'] = 'There is already an task for the update of all packages. Please wait until this task has finished.'; -$lng['aps']['updatetaskinserted'] = 'A task for the update of all packages has been created. This can take up to several minutes.'; -$lng['aps']['canmanagepackages'] = 'Can manage APS packages'; -$lng['aps']['numberofapspackages'] = 'Amount of APS installations'; -$lng['aps']['allpackagesused'] = 'Error

You have already reached the number of installable APS applications.'; -$lng['aps']['noinstancesexisting'] = 'There are currently no instances which could be managed. There must be installed at least one application by a customer.'; -$lng['aps']['lightywarning'] = 'Warning'; -$lng['aps']['lightywarningdescription'] = 'You are using the lighttpd webserver together with SysCP. The APS module was mainly written for Apache, so it can be possible that some features do not work with lighttpd. Please remember this when using the APS module. If you have found or experienced any problems in connection with lighttpd and the APS module please report them to the developers that they can be fixed within the next release if SysCP.'; -$lng['error']['customerdoesntexist'] = 'The customer you have chosen doesn\'t exist.'; -$lng['error']['admindoesntexist'] = 'The admin you have chosen doesn\'t exist.'; - -// ADDED IN 1.2.19-svn37 - -$lng['serversettings']['system_realtime_port']['title'] = 'Port for realtime SysCP'; -$lng['serversettings']['system_realtime_port']['description'] = 'Froxlor connects to this port at localhost everytime a new cron task is scheduled. If value is 0 (zero), this feature ist deactivated.
See also: Make Froxlor work in realtime (Froxlor Wiki)'; -$lng['serversettings']['session_allow_multiple_login']['title'] = 'Allow multiple login'; -$lng['serversettings']['session_allow_multiple_login']['description'] = 'If activated a user could login multiple times.'; -$lng['serversettings']['panel_allow_domain_change_admin']['title'] = 'Allow moving domains between admins'; -$lng['serversettings']['panel_allow_domain_change_admin']['description'] = 'If activated you can change the admin of a domain at domainsettings.
Attention: If a customer isn\'t assigned to the same admin as the domain, the admin can see every other domain of that customer!'; -$lng['serversettings']['panel_allow_domain_change_customer']['title'] = 'Allow moving domains between customers'; -$lng['serversettings']['panel_allow_domain_change_customer']['description'] = 'If activated you can change the customer of a domain at domainsettings.
Attention: Froxlor won\'t change any paths. This could render a domain unusable!'; -$lng['domains']['associated_with_domain'] = 'Associated'; -$lng['domains']['aliasdomains'] = 'Alias domains'; -$lng['error']['ipportdoesntexist'] = 'The ip/port combination you have chosen doesn\'t exist.'; - -// ADDED IN 1.2.19-svn38 - -$lng['admin']['phpserversettings'] = 'PHP Settings'; -$lng['admin']['phpsettings']['binary'] = 'PHP Binary'; -$lng['admin']['phpsettings']['file_extensions'] = 'File extensions'; -$lng['admin']['phpsettings']['file_extensions_note'] = '(without dot, separated by spaces)'; -$lng['admin']['mod_fcgid_maxrequests']['title'] = 'Maximum php requests for this domain (empty for default value)'; -$lng['serversettings']['mod_fcgid']['maxrequests']['title'] = 'Maximum Requests per Domain'; -$lng['serversettings']['mod_fcgid']['maxrequests']['description'] = 'How many requests should be allowed per domain?'; - -// fix bug #1124 -$lng['admin']['webserver'] = 'Webserver'; -$lng['error']['admin_domain_emailsystemhostname'] = 'The server-hostname cannot be used as email-domain.'; -$lng['aps']['license_link'] = 'Link to the license'; - -// ADDED IN 1.4.2.1 -$lng['admin']['thankyou'] = 'Thank you'; -$lng['admin']['contributors'] = 'All these people contributed to the Froxlor Project (no particular order)'; - -// ADDED IN 1.4.2.1-1 - -$lng['mysql']['mysql_server'] = 'MySQL-Server'; - -// ADDED IN 1.4.2.1-2 - -$lng['admin']['ipsandports']['webserverdefaultconfig'] = 'Webserver Default Config'; -$lng['admin']['ipsandports']['webserverdomainconfig'] = 'Webserver Domain Config'; -$lng['admin']['ipsandports']['webserverssldomainconfig'] = 'Webserver SSL Config'; -$lng['admin']['ipsandports']['ssl_key_file'] = 'Path to the SSL Keyfile'; -$lng['admin']['ipsandports']['ssl_ca_file'] = 'Path to the SSL CA certificate'; -$lng['admin']['ipsandports']['default_vhostconf_domain'] = 'Default vhost-settings for every domain container'; -$lng['serversettings']['ssl']['ssl_key_file'] = 'Path to the SSL Keyfile'; -$lng['serversettings']['ssl']['ssl_ca_file'] = 'Path to the SSL CA certificate'; - -$lng['error']['usernamealreadyexists'] = 'The username %s already exists.'; - -$lng['error']['plausibilitychecknotunderstood'] = 'Answer of plausibility check not understood.'; -$lng['error']['errorwhensaving'] = 'An error occured when saving the field %s'; - -$lng['success']['success'] = 'Information'; -$lng['success']['clickheretocontinue'] = 'Click here to continue'; -$lng['success']['settingssaved'] = 'The settings have been successfully saved.'; + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: english.lng.php 2724 2009-06-07 14:18:02Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = ''; +$lng['panel']['edit'] = 'edit'; +$lng['panel']['delete'] = 'delete'; +$lng['panel']['create'] = 'create'; +$lng['panel']['save'] = 'save'; +$lng['panel']['yes'] = 'yes'; +$lng['panel']['no'] = 'no'; +$lng['panel']['emptyfornochanges'] = 'empty for no changes'; +$lng['panel']['emptyfordefault'] = 'empty for defaults'; +$lng['panel']['path'] = 'Path'; +$lng['panel']['toggle'] = 'Toggle'; +$lng['panel']['next'] = 'next'; +$lng['panel']['dirsmissing'] = 'Can not find or read the directory!'; + +/** + * Login + */ + +$lng['login']['username'] = 'Username'; +$lng['login']['password'] = 'Password'; +$lng['login']['language'] = 'Language'; +$lng['login']['login'] = 'Login'; +$lng['login']['logout'] = 'Logout'; +$lng['login']['profile_lng'] = 'Profile language'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Home directory'; +$lng['customer']['name'] = 'Name'; +$lng['customer']['firstname'] = 'First name'; +$lng['customer']['company'] = 'Company'; +$lng['customer']['street'] = 'Street'; +$lng['customer']['zipcode'] = 'Zipcode'; +$lng['customer']['city'] = 'City'; +$lng['customer']['phone'] = 'Phone'; +$lng['customer']['fax'] = 'Fax'; +$lng['customer']['email'] = 'Email'; +$lng['customer']['customernumber'] = 'Customer ID'; +$lng['customer']['diskspace'] = 'Webspace (MB)'; +$lng['customer']['traffic'] = 'Traffic (GB)'; +$lng['customer']['mysqls'] = 'MySQL-Databases'; +$lng['customer']['emails'] = 'E-mail-Addresses'; +$lng['customer']['accounts'] = 'E-mail-Accounts'; +$lng['customer']['forwarders'] = 'E-mail-Forwarders'; +$lng['customer']['ftps'] = 'FTP-Accounts'; +$lng['customer']['subdomains'] = 'Sub-Domain'; +$lng['customer']['domains'] = 'Domain'; +$lng['customer']['unlimited'] = 'unlimited'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Main'; +$lng['menue']['main']['changepassword'] = 'Change password'; +$lng['menue']['main']['changelanguage'] = 'Change language'; +$lng['menue']['email']['email'] = 'E-mail'; +$lng['menue']['email']['emails'] = 'Addresses'; +$lng['menue']['email']['webmail'] = 'WebMail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Databases'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Domains'; +$lng['menue']['domains']['settings'] = 'Settings'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Accounts'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Extras'; +$lng['menue']['extras']['directoryprotection'] = 'Directory protection'; +$lng['menue']['extras']['pathoptions'] = 'path options'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Customer Details'; +$lng['index']['accountdetails'] = 'Account Details'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Old password'; +$lng['changepassword']['new_password'] = 'New password'; +$lng['changepassword']['new_password_confirm'] = 'New password (confirm)'; +$lng['changepassword']['new_password_ifnotempty'] = 'New password (empty = no change)'; +$lng['changepassword']['also_change_ftp'] = ' also change password of the main FTP account'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Here you can create (sub-)domains and change their paths.
The system will need some time to apply the new settings after every change.'; +$lng['domains']['domainsettings'] = 'Domain settings'; +$lng['domains']['domainname'] = 'Domain name'; +$lng['domains']['subdomain_add'] = 'Create subdomain'; +$lng['domains']['subdomain_edit'] = 'Edit (sub)domain'; +$lng['domains']['wildcarddomain'] = 'Create as wildcarddomain?'; +$lng['domains']['aliasdomain'] = 'Alias for domain'; +$lng['domains']['noaliasdomain'] = 'No alias domain'; + +/** + * E-mails + */ + +$lng['emails']['description'] = 'Here you can create and change your e-mail addresses.
An account is like your letterbox in front of your house. If someone sends you an email, it will be dropped into the account.

To download your emails use the following settings in your mailprogram: (The data in italics has to be changed to the equivalents you typed in!)
Hostname: Domainname
Username: Account name / e-mail address
Password: the password you\'ve chosen'; +$lng['emails']['emailaddress'] = 'E-mail-address'; +$lng['emails']['emails_add'] = 'Create e-mail-address'; +$lng['emails']['emails_edit'] = 'Edit e-mail-address'; +$lng['emails']['catchall'] = 'Catchall'; +$lng['emails']['iscatchall'] = 'Define as catchall-address?'; +$lng['emails']['account'] = 'Account'; +$lng['emails']['account_add'] = 'Create account'; +$lng['emails']['account_delete'] = 'Delete account'; +$lng['emails']['from'] = 'Source'; +$lng['emails']['to'] = 'Destination'; +$lng['emails']['forwarders'] = 'Forwarders'; +$lng['emails']['forwarder_add'] = 'Create forwarder'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Here you can create and change your FTP accounts.
The changes are made instantly and the accounts can be used immediately.'; +$lng['ftp']['account_add'] = 'Create Account'; + +/** + * MySQL + */ + +$lng['mysql']['databasename'] = 'user/database name'; +$lng['mysql']['databasedescription'] = 'database description'; +$lng['mysql']['database_create'] = 'Create database'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Here you can add some extras, for example directory protection.
The system will need some time to apply the new settings after every change.'; +$lng['extras']['directoryprotection_add'] = 'Add directory protection'; +$lng['extras']['view_directory'] = 'display directory content'; +$lng['extras']['pathoptions_add'] = 'add path options'; +$lng['extras']['directory_browsing'] = 'directory content browsing'; +$lng['extras']['pathoptions_edit'] = 'edit path options'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL to ErrorDocument 404'; +$lng['extras']['errordocument403path'] = 'URL to ErrorDocument 403'; +$lng['extras']['errordocument500path'] = 'URL to ErrorDocument 500'; +$lng['extras']['errordocument401path'] = 'URL to ErrorDocument 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Error'; +$lng['error']['directorymustexist'] = 'The directory %s must exist. Please create it with your FTP client.'; +$lng['error']['filemustexist'] = 'The file %s must exist.'; +$lng['error']['allresourcesused'] = 'You have already used all of your resources.'; +$lng['error']['domains_cantdeletemaindomain'] = 'You cannot delete a domain which is used as an email-domain.'; +$lng['error']['domains_canteditdomain'] = 'You cannot edit this domain. It has been disabled by the admin.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'You cannot delete a domain which is used as an email-domain. Delete all email addresses first.'; +$lng['error']['firstdeleteallsubdomains'] = 'You have to delete all Subdomains first before you can create a wildcard domain.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'You have already defined a catchall for this domain.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'You cannot delete your main FTP account'; +$lng['error']['login'] = 'The username or password you typed in is wrong. Please try it again!'; +$lng['error']['login_blocked'] = 'This account has been suspended because of too many login errors.
Please try again in ' . $settings['login']['deactivatetime'] . ' seconds.'; +$lng['error']['notallreqfieldsorerrors'] = 'You have not filled in all or filled in some fields incorrectly.'; +$lng['error']['oldpasswordnotcorrect'] = 'The old password is not correct.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'You cannot allocate more resources than you own for yourself.'; +$lng['error']['mustbeurl'] = 'You have not typed a valid or complete url (e.g. http://somedomain.com/error404.htm)'; +$lng['error']['invalidpath'] = 'You have not chosen a valid url (maybe problems with the dirlisting?)'; +$lng['error']['stringisempty'] = 'Missing Input in Field'; +$lng['error']['stringiswrong'] = 'Wrong Input in Field'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'New password and confirmation does not match'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'Domain\''; +$lng['error']['mydocumentroot'] = '\'Documentroot\''; +$lng['error']['loginnameexists'] = 'Login-Name %s already exists'; +$lng['error']['emailiswrong'] = 'E-mail-Address %s contains invalid characters or is incomplete'; +$lng['error']['loginnameiswrong'] = 'Login-Name %s contains invalid characters'; +$lng['error']['userpathcombinationdupe'] = 'Combination of Username and Path already exists'; +$lng['error']['patherror'] = 'General Error! path cannot be empty'; +$lng['error']['errordocpathdupe'] = 'Option for path %s already exists'; +$lng['error']['adduserfirst'] = 'Please create a customer first'; +$lng['error']['domainalreadyexists'] = 'The domain %s is already assigned to a customer'; +$lng['error']['nolanguageselect'] = 'No language selected.'; +$lng['error']['nosubjectcreate'] = 'You must define a topic for this mail template.'; +$lng['error']['nomailbodycreate'] = 'You must define a Mail-Text for this mail template.'; +$lng['error']['templatenotfound'] = 'Template was not found.'; +$lng['error']['alltemplatesdefined'] = 'You cant define more templates, all languages are supported already.'; +$lng['error']['wwwnotallowed'] = 'www is not allowed for subdomains.'; +$lng['error']['subdomainiswrong'] = 'The subdomain %s contains invalid characters.'; +$lng['error']['domaincantbeempty'] = 'The domain-name can not be empty.'; +$lng['error']['domainexistalready'] = 'The domain %s already exists.'; +$lng['error']['domainisaliasorothercustomer'] = 'The selected alias domain is either itself an alias domain or belongs to another customer.'; +$lng['error']['emailexistalready'] = 'The e-mail-Address %s already exists.'; +$lng['error']['maindomainnonexist'] = 'The main-domain %s does not exist.'; +$lng['error']['destinationnonexist'] = 'Please create your forwarder in the field \'Destination\'.'; +$lng['error']['destinationalreadyexistasmail'] = 'The forwarder to %s already exists as active EMail-Address.'; +$lng['error']['destinationalreadyexist'] = 'You have already defined a forwarder to %s .'; +$lng['error']['destinationiswrong'] = 'The forwarder %s contains invalid character(s) or is incomplete.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Security question'; +$lng['question']['admin_customer_reallydelete'] = 'Do you really want to delete the customer %s? This cannot be undone!'; +$lng['question']['admin_domain_reallydelete'] = 'Do you really want to delete the domain %s?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Do you really want to deactivate these Security settings (OpenBasedir and/or SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = 'Do you really want to delete the admin %s? Every customer and domain will be reassigned to your account.'; +$lng['question']['admin_template_reallydelete'] = 'Do you really want to delete the template \'%s\'?'; +$lng['question']['domains_reallydelete'] = 'Do you really want to delete the domain %s?'; +$lng['question']['email_reallydelete'] = 'Do you really want to delete the email-address %s?'; +$lng['question']['email_reallydelete_account'] = 'Do you really want to delete the email-account of %s?'; +$lng['question']['email_reallydelete_forwarder'] = 'Do you really want to delete the forwarder %s?'; +$lng['question']['extras_reallydelete'] = 'Do you really want to delete the directory protection for %s?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'Do you really want to delete the path options for %s?'; +$lng['question']['ftp_reallydelete'] = 'Do you really want to delete the FTP account %s?'; +$lng['question']['mysql_reallydelete'] = 'Do you really want to delete the database %s? This cannot be undone!'; +$lng['question']['admin_configs_reallyrebuild'] = 'Do you really want to rebuild your apache and bind config files?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Hello,\n\nyour Mail account {EMAIL}\nwas set up successfully.\n\nThis is an automatically created\ne-mail, please do not answer!\n\nYours sincerely, the SysCP-Team'; +$lng['mails']['pop_success']['subject'] = 'Mail account set up successfully'; +$lng['mails']['createcustomer']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nhere is your account information:\n\nUsername: {USERNAME}\nPassword: {PASSWORD}\n\nThank you,\nthe SysCP-Team'; +$lng['mails']['createcustomer']['subject'] = 'Account information'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Overview'; +$lng['admin']['ressourcedetails'] = 'Used resources'; +$lng['admin']['systemdetails'] = 'System Details'; +$lng['admin']['syscpdetails'] = 'Froxlor Details'; +$lng['admin']['installedversion'] = 'Installed version'; +$lng['admin']['latestversion'] = 'Latest version'; +$lng['admin']['lookfornewversion']['clickhere'] = 'search via webservice'; +$lng['admin']['lookfornewversion']['error'] = 'Error while reading'; +$lng['admin']['resources'] = 'Resources'; +$lng['admin']['customer'] = 'Customer'; +$lng['admin']['customers'] = 'Customers'; +$lng['admin']['customer_add'] = 'Create customer'; +$lng['admin']['customer_edit'] = 'Edit customer'; +$lng['admin']['domains'] = 'Domains'; +$lng['admin']['domain_add'] = 'Create domain'; +$lng['admin']['domain_edit'] = 'Edit domain'; +$lng['admin']['subdomainforemail'] = 'Subdomains as emaildomains'; +$lng['admin']['admin'] = 'Admin'; +$lng['admin']['admins'] = 'Admins'; +$lng['admin']['admin_add'] = 'Create admin'; +$lng['admin']['admin_edit'] = 'Edit admin'; +$lng['admin']['customers_see_all'] = 'Can see all customers?'; +$lng['admin']['domains_see_all'] = 'Can see all domains?'; +$lng['admin']['change_serversettings'] = 'Can change server settings?'; +$lng['admin']['server'] = 'Server'; +$lng['admin']['serversettings'] = 'Settings'; +$lng['admin']['rebuildconf'] = 'Rebuild Config Files'; +$lng['admin']['stdsubdomain'] = 'Standard subdomain'; +$lng['admin']['stdsubdomain_add'] = 'Create standard subdomain'; +$lng['admin']['phpenabled'] = 'PHP enabled'; +$lng['admin']['deactivated'] = 'Deactivated'; +$lng['admin']['deactivated_user'] = 'Deactivate User'; +$lng['admin']['sendpassword'] = 'Send password'; +$lng['admin']['ownvhostsettings'] = 'Own vHost-Settings'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Configuration'; +$lng['admin']['configfiles']['files'] = 'Configfiles: Please change the following files or create them with
the following content if they do not exist.
Please Note: The MySQL-password has not been replaced for security reasons.
Please replace "MYSQL_PASSWORD" on your own. If you forgot your MySQL-password
you\'ll find it in "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Commands: Please execute the following commands in a shell.'; +$lng['admin']['configfiles']['restart'] = 'Restart: Please execute the following commands in a shell in order to reload the new configuration.'; +$lng['admin']['templates']['templates'] = 'E-Mail-templates'; +$lng['admin']['templates']['template_add'] = 'Add template'; +$lng['admin']['templates']['template_edit'] = 'Edit template'; +$lng['admin']['templates']['action'] = 'Action'; +$lng['admin']['templates']['email'] = 'E-mail & file templates'; +$lng['admin']['templates']['subject'] = 'Subject'; +$lng['admin']['templates']['mailbody'] = 'Mail body'; +$lng['admin']['templates']['createcustomer'] = 'Welcome mail for new customers'; +$lng['admin']['templates']['pop_success'] = 'Welcome mail for new email accounts'; +$lng['admin']['templates']['template_replace_vars'] = 'Variables to be replaced in the template:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Replaced with the customers firstname.'; +$lng['admin']['templates']['NAME'] = 'Replaced with the customers name.'; +$lng['admin']['templates']['USERNAME'] = 'Replaced with the customers account username.'; +$lng['admin']['templates']['PASSWORD'] = 'Replaced with the customers account password.'; +$lng['admin']['templates']['EMAIL'] = 'Replaced with the address of the POP3/IMAP account.'; +$lng['admin']['webserver'] = 'Webserver'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; +$lng['serversettings']['session_timeout']['description'] = 'How long does a user have to be inactive before a session gets invalid (seconds)?'; +$lng['serversettings']['accountprefix']['title'] = 'Customer prefix'; +$lng['serversettings']['accountprefix']['description'] = 'Which prefix should customer accounts have?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL Prefix'; +$lng['serversettings']['mysqlprefix']['description'] = 'Which prefix should mysql accounts have?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP Prefix'; +$lng['serversettings']['ftpprefix']['description'] = 'Which prefix should ftp accounts have?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Home directory'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Where should all home directories be stored?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Logfiles directory'; +$lng['serversettings']['logfiles_directory']['description'] = 'Where should all log files be stored?'; +$lng['serversettings']['ipaddress']['title'] = 'IP-Address'; +$lng['serversettings']['ipaddress']['description'] = 'What\'s the IP-address of this server?'; +$lng['serversettings']['hostname']['title'] = 'Hostname'; +$lng['serversettings']['hostname']['description'] = 'What\'s the Hostname of this server?'; +$lng['serversettings']['apachereload_command']['title'] = 'Apache reload command'; +$lng['serversettings']['apachereload_command']['description'] = 'What\'s the apache command to reload apache configfiles?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Bind config directory'; +$lng['serversettings']['bindconf_directory']['description'] = 'Where should bind configfiles be saved?'; +$lng['serversettings']['bindreload_command']['title'] = 'Bind reload command'; +$lng['serversettings']['bindreload_command']['description'] = 'What\'s the bind command to reload bind configfiles?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Bind default zone'; +$lng['serversettings']['binddefaultzone']['description'] = 'What\'s the name of the default zone?'; +$lng['serversettings']['vmail_uid']['title'] = 'Mails-UID'; +$lng['serversettings']['vmail_uid']['description'] = 'Which UserID should mails have?'; +$lng['serversettings']['vmail_gid']['title'] = 'Mails-GID'; +$lng['serversettings']['vmail_gid']['description'] = 'Which GroupID should mails have?'; +$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Homedir'; +$lng['serversettings']['vmail_homedir']['description'] = 'Where should all mails be stored?'; +$lng['serversettings']['adminmail']['title'] = 'Sender'; +$lng['serversettings']['adminmail']['description'] = 'What\'s the sender address for emails sent from the Panel?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'What\'s the URL to phpMyAdmin? (has to start with http(s)://)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; +$lng['serversettings']['webmail_url']['description'] = 'What\'s the URL to WebMail? (has to start with http(s)://)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = 'What\'s the URL to WebFTP? (has to start with http(s)://)'; +$lng['serversettings']['language']['description'] = 'What\'s your standard server language?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Max Login Attempts'; +$lng['serversettings']['maxloginattempts']['description'] = 'Maximum login attempts after which the account gets deactivated.'; +$lng['serversettings']['deactivatetime']['title'] = 'Deactivate Time'; +$lng['serversettings']['deactivatetime']['description'] = 'Time (sec.) an account gets deactivated after too many login tries.'; +$lng['serversettings']['pathedit']['title'] = 'Type of path input'; +$lng['serversettings']['pathedit']['description'] = 'Should a path be selected by a dropdown menu or by an input field?'; +$lng['serversettings']['nameservers']['title'] = 'Nameservers'; +$lng['serversettings']['nameservers']['description'] = 'A comma separated list containing the hostnames of all nameservers. The first one will be the primary one.'; +$lng['serversettings']['mxservers']['title'] = 'MX servers'; +$lng['serversettings']['mxservers']['description'] = 'A comma seperated list containing a pair of a number and a hostname separated by whitespace (e.g. \'10 mx.example.com\') containing the mx servers.'; + +/** + * CHANGED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['mysql']['description'] = 'Here you can create and change your MySQL-Databases.
The changes are made instantly and the database can be used immediately.
At the menu on the left side you find the tool phpMyAdmin with which you can easily administer your database.

To use your databases in your own php-scripts use the following settings: (The data in italics have to be changed into the equivalents you typed in!)
Hostname:
Username: Databasename
Password: the password you\'ve chosen
Database: Databasename'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Last generating of configfiles'; +$lng['serversettings']['paging']['title'] = 'Entries per page'; +$lng['serversettings']['paging']['description'] = 'How many entries shall be shown on one page? (0 = disable paging)'; +$lng['error']['ipstillhasdomains'] = 'The IP/Port combination you want to delete still has domains assigned to it, please reassign those to other IP/Port combinations before deleting this IP/Port combination.'; +$lng['error']['cantdeletedefaultip'] = 'You cannot delete the default reseller IP/Port combination, please make another IP/Port combination default for resellers before deleting this IP/Port combination.'; +$lng['error']['cantdeletesystemip'] = 'You cannot delete the last system IP, either create a new IP/Port combination for the system IP or change the system IP.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'You need to select an IP/Port combination that should become default.'; +$lng['error']['myipnotdouble'] = 'This IP/Port combination already exists.'; +$lng['error']['admin_domain_emailsystemhostname'] = 'Sorry. You can not use the Server Hostname as email domain'; +$lng['question']['admin_ip_reallydelete'] = 'Do you really want to delete the IP address %s?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IPs and Ports'; +$lng['admin']['ipsandports']['add'] = 'Add IP/Port'; +$lng['admin']['ipsandports']['edit'] = 'Edit IP/Port'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Port'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'You cannot change the last system IP, either create another new IP/Port combination for the system IP or change the system IP.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Are you sure, you want the document root for this domain, not being within the customer root of the customer?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Disabled'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir-path'; +$lng['domain']['docroot'] = 'Path from field above'; +$lng['domain']['homedir'] = 'Home directory'; +$lng['admin']['valuemandatory'] = 'This value is mandatory'; +$lng['admin']['valuemandatorycompany'] = 'Either "name" and "firstname" or "company" must be filled'; +$lng['menue']['main']['username'] = 'Logged in as: '; +$lng['panel']['urloverridespath'] = 'URL (overrides path)'; +$lng['panel']['pathorurl'] = 'Path or URL'; +$lng['error']['sessiontimeoutiswrong'] = 'Only numerical "Session Timeout" is allowed.'; +$lng['error']['maxloginattemptsiswrong'] = 'Only numerical "Max Login Attempts" are allowed.'; +$lng['error']['deactivatetimiswrong'] = 'Only numerical "Deactivate Time" is allowed.'; +$lng['error']['accountprefixiswrong'] = 'The "Customerprefix" is wrong.'; +$lng['error']['mysqlprefixiswrong'] = 'The "SQL Prefix" is wrong.'; +$lng['error']['ftpprefixiswrong'] = 'The "FTP Prefix" is wrong.'; +$lng['error']['ipiswrong'] = 'The "IP-Address" is wrong. Only a valid IP-address is allowed.'; +$lng['error']['vmailuidiswrong'] = 'The "Mails-uid" is wrong. Only a numerical UID is allowed.'; +$lng['error']['vmailgidiswrong'] = 'The "Mails-gid" is wrong. Only a numerical GID is allowed.'; +$lng['error']['adminmailiswrong'] = 'The "Sender-address" is wrong. Only a valid email-address is allowed.'; +$lng['error']['pagingiswrong'] = 'The "Entries per Page"-value is wrong. Only numerical characters are allowed.'; +$lng['error']['phpmyadminiswrong'] = 'The phpMyAdmin-link is not a valid link.'; +$lng['error']['webmailiswrong'] = 'The WebMail-link is not a valid link.'; +$lng['error']['webftpiswrong'] = 'The WebFTP-link is not a valid link.'; +$lng['domains']['hasaliasdomains'] = 'Has alias domain(s)'; +$lng['serversettings']['defaultip']['title'] = 'Default IP/Port'; +$lng['serversettings']['defaultip']['description'] = 'What\'s the default IP/Port combination?'; +$lng['domains']['statstics'] = 'Usage Statistics'; +$lng['panel']['ascending'] = 'ascending'; +$lng['panel']['decending'] = 'decending'; +$lng['panel']['search'] = 'Search'; +$lng['panel']['used'] = 'used'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = 'Translator'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = 'The value for the field "%s" is not in the expected format.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Serversoftware'; +$lng['admin']['phpversion'] = 'PHP-Version'; +$lng['admin']['phpmemorylimit'] = 'PHP-Memory-Limit'; +$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; +$lng['admin']['mysqlclientversion'] = 'MySQL Client Version'; +$lng['admin']['webserverinterface'] = 'Webserver Interface'; +$lng['domains']['isassigneddomain'] = 'Is assigned domain'; +$lng['serversettings']['phpappendopenbasedir']['title'] = 'Paths to append to OpenBasedir'; +$lng['serversettings']['phpappendopenbasedir']['description'] = 'These paths (separated by colons) will be added to the OpenBasedir-statement in every vhost-container.'; + +// CHANGED IN 1.2.15-rc1 + +$lng['error']['loginnameissystemaccount'] = 'You cannot create accounts which are similar to system accounts (as for example begin with "%s"). Please enter another account name.'; +$lng['error']['youcantdeleteyourself'] = 'You cannot delete yourself for security reasons.'; +$lng['error']['youcanteditallfieldsofyourself'] = 'Note: You cannot edit all fields of your own account for security reasons.'; + +// ADDED IN 1.2.16-svn1 + +$lng['serversettings']['natsorting']['title'] = 'Use natural human sorting in list view'; +$lng['serversettings']['natsorting']['description'] = 'Sorts lists as web1 -> web2 -> web11 instead of web1 -> web11 -> web2.'; + +// ADDED IN 1.2.16-svn2 + +$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot for deactivated users'; +$lng['serversettings']['deactivateddocroot']['description'] = 'When a user is deactivated this path is used as his docroot. Leave empty for not creating a vhost at all.'; + +// ADDED IN 1.2.16-svn4 + +$lng['panel']['reset'] = 'discard changes'; +$lng['admin']['accountsettings'] = 'Account settings'; +$lng['admin']['panelsettings'] = 'Panel settings'; +$lng['admin']['systemsettings'] = 'System settings'; +$lng['admin']['webserversettings'] = 'Webserver settings'; +$lng['admin']['mailserversettings'] = 'Mailserver settings'; +$lng['admin']['nameserversettings'] = 'Nameserver settings'; +$lng['admin']['updatecounters'] = 'Recalculate resource usage'; +$lng['question']['admin_counters_reallyupdate'] = 'Do you really want to recalculate resource usage?'; +$lng['panel']['pathDescription'] = 'If the directory doesn\'t exist, it will be created automatically.'; + +// ADDED IN 1.2.16-svn6 + +$lng['mails']['trafficninetypercent']['mailbody'] = 'Dear {NAME},\n\nYou used {TRAFFICUSED} MB of your available {TRAFFIC} MB of traffic.\nThis is more than 90%.\n\nYours sincerely, the Froxlor-Team'; +$lng['mails']['trafficninetypercent']['subject'] = 'Reaching your traffic limit'; +$lng['admin']['templates']['trafficninetypercent'] = 'Notification mail for customers when ninety percent of traffic is exhausted'; +$lng['admin']['templates']['TRAFFIC'] = 'Replaced with the traffic, which was assigned to the customer.'; +$lng['admin']['templates']['TRAFFICUSED'] = 'Replaced with the traffic, which was exhausted by the customer.'; + +// ADDED IN 1.2.16-svn7 + +$lng['admin']['subcanemaildomain']['never'] = 'Never'; +$lng['admin']['subcanemaildomain']['choosableno'] = 'Choosable, default no'; +$lng['admin']['subcanemaildomain']['choosableyes'] = 'Choosable, default yes'; +$lng['admin']['subcanemaildomain']['always'] = 'Always'; +$lng['changepassword']['also_change_webalizer'] = ' also change password of the webalizer statistics'; + +// ADDED IN 1.2.16-svn8 + +$lng['serversettings']['mailpwcleartext']['title'] = 'Also save passwords of mail accounts unencrypted in database'; +$lng['serversettings']['mailpwcleartext']['description'] = 'If this is set to yes, all passwords will also be saved unencrypted (clear text, plain readable for everyone with database access) in the mail_users-table. Only activate this if you really need it!'; +$lng['serversettings']['mailpwcleartext']['removelink'] = 'Click here to wipe all unencrypted passwords from the table.'; +$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Do you really want to wipe all unencrypted mail account passwords from the table mail_users? This cannot be reverted!'; +$lng['admin']['configfiles']['overview'] = 'Overview'; +$lng['admin']['configfiles']['wizard'] = 'Wizard'; +$lng['admin']['configfiles']['distribution'] = 'Distribution'; +$lng['admin']['configfiles']['service'] = 'Service'; +$lng['admin']['configfiles']['daemon'] = 'Daemon'; +$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; +$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; +$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; +$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; +$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; +$lng['admin']['configfiles']['etc'] = 'Others (System)'; +$lng['admin']['configfiles']['choosedistribution'] = '-- Choose a distribution --'; +$lng['admin']['configfiles']['chooseservice'] = '-- Choose a service --'; +$lng['admin']['configfiles']['choosedaemon'] = '-- Choose a daemon --'; +$lng['admin']['trafficlastrun'] = 'Last traffic calculation'; + +// ADDED IN 1.2.16-svn10 + +$lng['serversettings']['ftpdomain']['title'] = 'FTP accounts @domain'; +$lng['serversettings']['ftpdomain']['description'] = 'Customers can create Ftp accounts user@customerdomain?'; +$lng['panel']['back'] = 'Back'; + +// ADDED IN 1.2.16-svn12 + +$lng['serversettings']['mod_log_sql']['title'] = 'Temporary save logs in the database'; +$lng['serversettings']['mod_log_sql']['description'] = 'Use mod_log_sql to save webrequests temporarily
This needs a special apache-configuration!'; +$lng['serversettings']['mod_fcgid']['title'] = 'Include PHP via mod_fcgid/suexec'; +$lng['serversettings']['mod_fcgid']['description'] = 'Use mod_fcgid/suexec/libnss_mysql to run PHP with the corresponding useraccount.
This needs a special Apache configuration. All following options are only valid if the module is enabled.'; +$lng['serversettings']['sendalternativemail']['title'] = 'Use alternative email-address'; +$lng['serversettings']['sendalternativemail']['description'] = 'Send the password-email to a different address during email-account-creation'; +$lng['emails']['alternative_emailaddress'] = 'Alternative e-mail-address'; +$lng['mails']['pop_success_alternative']['mailbody'] = 'Hello,\n\nyour Mail account {EMAIL}\nwas set up successfully.\nYour password is {PASSWORD}.\n\nThis is an automatically created\ne-mail, please do not answer!\n\nYours sincerely, the Froxlor-Team'; +$lng['mails']['pop_success_alternative']['subject'] = 'Mail account set up successfully'; +$lng['admin']['templates']['pop_success_alternative'] = 'Welcome mail for new email accounts sent to alternative address'; +$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Replaced with the POP3/IMAP account password.'; + +// ADDED IN 1.2.16-svn13 + +$lng['error']['documentrootexists'] = 'The directory "%s" already exists for this customer. Please remove this before adding the customer again.'; + +// ADDED IN 1.2.16-svn14 + +$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost configuration file/dirname'; +$lng['serversettings']['apacheconf_vhost']['description'] = 'Where should the vhost configuration be stored? You could either specify a file (all vhosts in one file) or directory (each vhost in his own file) here.'; +$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions configuration file/dirname'; +$lng['serversettings']['apacheconf_diroptions']['description'] = 'Where should the diroptions configuration be stored? You could either specify a file (all diroptions in one file) or directory (each diroption in his own file) here.'; +$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd dirname'; +$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Where should the htpasswd files for directory protection be stored?'; + +// ADDED IN 1.2.16-svn15 + +$lng['error']['formtokencompromised'] = 'The request seems to be compromised. For security reasons you were logged out.'; +$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; +$lng['serversettings']['mysql_access_host']['description'] = 'A comma separated list of hosts from which users should be allowed to connect to the MySQL-Server.'; + +// ADDED IN 1.2.18-svn1 + +$lng['admin']['ipsandports']['create_listen_statement'] = 'Create Listen statement'; +$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Create NameVirtualHost statement'; +$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Create vHost-Container'; +$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Create ServerName statement in vHost-Container'; + +// ADDED IN 1.2.18-svn2 + +$lng['admin']['webalizersettings'] = 'Webalizer settings'; +$lng['admin']['webalizer']['normal'] = 'Normal'; +$lng['admin']['webalizer']['quiet'] = 'Quiet'; +$lng['admin']['webalizer']['veryquiet'] = 'No output'; +$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizer output'; +$lng['serversettings']['webalizer_quiet']['description'] = 'Verbosity of the webalizer-program'; + +// ADDED IN 1.2.18-svn3 + +$lng['ticket']['admin_email'] = 'root@localhost'; +$lng['ticket']['noreply_email'] = 'tickets@froxlor'; +$lng['admin']['ticketsystem'] = 'Support-tickets'; +$lng['menue']['ticket']['ticket'] = 'Support tickets'; +$lng['menue']['ticket']['categories'] = 'Support categories'; +$lng['menue']['ticket']['archive'] = 'Ticket-archive'; +$lng['ticket']['description'] = 'Here you can send help-requests to your responsible administrator.
Notifications will be sent via e-mail.'; +$lng['ticket']['ticket_new'] = 'Open a new ticket'; +$lng['ticket']['ticket_reply'] = 'Answer ticket'; +$lng['ticket']['ticket_reopen'] = 'Reopen ticket'; +$lng['ticket']['ticket_newcateory'] = 'Create new category'; +$lng['ticket']['ticket_editcateory'] = 'Edit category'; +$lng['ticket']['ticket_view'] = 'View ticketcourse'; +$lng['ticket']['ticketcount'] = 'Tickets'; +$lng['ticket']['ticket_answers'] = 'Replies'; +$lng['ticket']['lastchange'] = 'Last action'; +$lng['ticket']['subject'] = 'Subject'; +$lng['ticket']['status'] = 'Status'; +$lng['ticket']['lastreplier'] = 'Last replier'; +$lng['ticket']['priority'] = 'Priority'; +$lng['ticket']['low'] = 'Low'; +$lng['ticket']['normal'] = 'Normal'; +$lng['ticket']['high'] = 'High'; +$lng['ticket']['unf_low'] = 'Low'; +$lng['ticket']['unf_normal'] = 'Normal'; +$lng['ticket']['unf_high'] = 'High'; +$lng['ticket']['lastchange'] = 'Last change'; +$lng['ticket']['lastchange_from'] = 'From date (dd.mm.yyyy)'; +$lng['ticket']['lastchange_to'] = 'To date (dd.mm.yyyy)'; +$lng['ticket']['category'] = 'Category'; +$lng['ticket']['no_cat'] = 'None'; +$lng['ticket']['message'] = 'Message'; +$lng['ticket']['show'] = 'View'; +$lng['ticket']['answer'] = 'Answer'; +$lng['ticket']['close'] = 'Close'; +$lng['ticket']['reopen'] = 'Re-open'; +$lng['ticket']['archive'] = 'Archive'; +$lng['ticket']['ticket_delete'] = 'Delete ticket'; +$lng['ticket']['lastarchived'] = 'Recently archived tickets'; +$lng['ticket']['archivedtime'] = 'Archived'; +$lng['ticket']['open'] = 'Open'; +$lng['ticket']['wait_reply'] = 'Waiting for reply'; +$lng['ticket']['replied'] = 'Replied'; +$lng['ticket']['closed'] = 'Closed'; +$lng['ticket']['staff'] = 'Staff'; +$lng['ticket']['customer'] = 'Customer'; +$lng['ticket']['old_tickets'] = 'Ticket messages'; +$lng['ticket']['search'] = 'Search archive'; +$lng['ticket']['nocustomer'] = 'No choice'; +$lng['ticket']['archivesearch'] = 'Archive searchresults'; +$lng['ticket']['noresults'] = 'No tickets found'; +$lng['ticket']['notmorethanxopentickets'] = 'Due to spam-protection you cannot have more than %s open tickets'; +$lng['ticket']['supportstatus'] = 'Support-Status'; +$lng['ticket']['supportavailable'] = 'Our support engineers are available and ready to assist.'; +$lng['ticket']['supportnotavailable'] = 'Our support engineers are currently not available'; +$lng['admin']['templates']['ticket'] = 'Notification-mails for support-tickets'; +$lng['admin']['templates']['SUBJECT'] = 'Replaced with the support-ticket subject'; +$lng['admin']['templates']['new_ticket_for_customer'] = 'Customer-information that the ticket has been sent'; +$lng['admin']['templates']['new_ticket_by_customer'] = 'Admin-notification for a ticket opened by a customer'; +$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admin-notification for a ticket-reply by a customer'; +$lng['admin']['templates']['new_ticket_by_staff'] = 'Customer-notification for a ticket opened by a staff'; +$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Customer-notification for a ticket-reply by a staff'; +$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nyour support-ticket with the subject "{SUBJECT}" has been sent.\n\nYou will be notified when your ticket has been answered.\n\nThank you,\nthe Froxlor-Team'; +$lng['mails']['new_ticket_for_customer']['subject'] = 'Your support ticket has been sent'; +$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hello admin,\n\na new support-ticket with the subject "{SUBJECT}" has been submitted.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; +$lng['mails']['new_ticket_by_customer']['subject'] = 'New support ticket submitted'; +$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hello admin,\n\nthe support-ticket "{SUBJECT}" has been answered by a customer.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; +$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'New reply to support ticket'; +$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\na support-ticket with the subject "{SUBJECT}" has been opened for you.\n\nPlease login to open the ticket.\n\nThank you,\nthe Froxlor-Team'; +$lng['mails']['new_ticket_by_staff']['subject'] = 'New support ticket submitted'; +$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hello {FIRSTNAME} {NAME},\n\nthe support-ticket with the subject "{SUBJECT}" has been answered by our staff.\n\nPlease login to view the ticket.\n\nThank you,\nthe Froxlor-Team'; +$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'New reply to support ticket'; +$lng['question']['ticket_reallyclose'] = 'Do you really want to close the ticket "%s"?'; +$lng['question']['ticket_reallydelete'] = 'Do you really want to delete the ticket "%s"?'; +$lng['question']['ticket_reallydeletecat'] = 'Do you really want to delete the category "%s"?'; +$lng['question']['ticket_reallyarchive'] = 'Do you really want to move the ticket "%s" to the archive?'; +$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; +$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; +$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; +$lng['error']['nomoreticketsavailable'] = 'You have used all your available tickets. Please contact your administrator.'; +$lng['error']['nocustomerforticket'] = 'Cannot create tickets without customers'; +$lng['error']['categoryhastickets'] = 'The category still has tickets in it.
Please delete the tickets to delete the category'; +$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; +$lng['admin']['ticketsettings'] = 'Support-Ticket settings'; +$lng['admin']['archivelastrun'] = 'Last ticket archiving'; +$lng['serversettings']['ticket']['noreply_email']['title'] = 'No-reply e-mail address'; +$lng['serversettings']['ticket']['noreply_email']['description'] = 'The sender-address for support-ticket, mostly something like no-reply@domain.tld'; +$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Begin support-time (hh:mm)'; +$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-time when support is available'; +$lng['serversettings']['ticket']['worktime_end']['title'] = 'End support-time (hh:mm)'; +$lng['serversettings']['ticket']['worktime_end']['description'] = 'End-time when support is available'; +$lng['serversettings']['ticket']['worktime_sat'] = 'Support available on saturdays?'; +$lng['serversettings']['ticket']['worktime_sun'] = 'Support available on sundays?'; +$lng['serversettings']['ticket']['worktime_all']['title'] = 'No time limit for support'; +$lng['serversettings']['ticket']['worktime_all']['description'] = 'If "Yes" the options for start- and endtime will be overwritten'; +$lng['serversettings']['ticket']['archiving_days'] = 'After how many days should closed tickets be archived?'; +$lng['customer']['tickets'] = 'Support-tickets'; + +// ADDED IN 1.2.18-svn4 + +$lng['admin']['domain_nocustomeraddingavailable'] = 'It\'s not possible to add a domain currently. You first need to add at least one customer.'; +$lng['serversettings']['ticket']['enable'] = 'Enable ticketsystem'; +$lng['serversettings']['ticket']['concurrentlyopen'] = 'How many tickets shall be able to be opened at one time?'; +$lng['error']['norepymailiswrong'] = 'The "Noreply-address" is wrong. Only a valid email-address is allowed.'; +$lng['error']['tadminmailiswrong'] = 'The "Ticketadmin-address" is wrong. Only a valid email-address is allowed.'; +$lng['ticket']['awaitingticketreply'] = 'You have %s unanswered support-ticket(s)'; + +// ADDED IN 1.2.18-svn5 + +$lng['serversettings']['ticket']['noreply_name'] = 'Ticket e-mail sendername'; + +// ADDED IN 1.2.19-svn1 + +$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'Configuration directory'; +$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'Where should all fcgid-configuration files be stored? If you don\'t use a self compiled suexec binary, which is the normal situation, this path must be under /var/www/'; +$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'Temp directory'; + +// ADDED IN 1.2.19-svn3 + +$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Reset used tickets cycle'; +$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Reset the customers used ticket counter to 0 in the chosen cycle'; +$lng['admin']['tickets']['daily'] = 'Daily'; +$lng['admin']['tickets']['weekly'] = 'Weekly'; +$lng['admin']['tickets']['monthly'] = 'Monthly'; +$lng['admin']['tickets']['yearly'] = 'Yearly'; +$lng['error']['ticketresetcycleiswrong'] = 'The cycle for ticket-resets has to be "daily", "weekly", "monthly" or "yearly".'; + +// ADDED IN 1.2.19-svn4 + +$lng['menue']['traffic']['traffic'] = 'Traffic'; +$lng['menue']['traffic']['current'] = 'Current Month'; +$lng['traffic']['month'] = "Month"; +$lng['traffic']['day'] = "Day"; +$lng['traffic']['months'][1] = "January"; +$lng['traffic']['months'][2] = "February"; +$lng['traffic']['months'][3] = "March"; +$lng['traffic']['months'][4] = "April"; +$lng['traffic']['months'][5] = "May"; +$lng['traffic']['months'][6] = "June"; +$lng['traffic']['months'][7] = "July"; +$lng['traffic']['months'][8] = "August"; +$lng['traffic']['months'][9] = "September"; +$lng['traffic']['months'][10] = "October"; +$lng['traffic']['months'][11] = "November"; +$lng['traffic']['months'][12] = "December"; +$lng['traffic']['mb'] = "Traffic (MB)"; +$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; +$lng['traffic']['sumhttp'] = 'Summation HTTP-Traffic in'; +$lng['traffic']['sumftp'] = 'Summation FTP-Traffic in'; +$lng['traffic']['summail'] = 'Summation Mail-Traffic in'; + +// ADDED IN 1.2.19-svn4.5 + +$lng['serversettings']['no_robots']['title'] = 'Allow searchengine-robots to index your Froxlor installation'; + +// ADDED IN 1.2.19-svn6 + +$lng['admin']['loggersettings'] = 'Log settings'; +$lng['serversettings']['logger']['enable'] = 'Logging enabled/disabled'; +$lng['serversettings']['logger']['severity'] = 'Logging level'; +$lng['admin']['logger']['normal'] = 'normal'; +$lng['admin']['logger']['paranoid'] = 'paranoid'; +$lng['serversettings']['logger']['types']['title'] = 'Log-type(s)'; +$lng['serversettings']['logger']['types']['description'] = 'Specify logtypes seperated by comma.
Available logtypes are: syslog, file, mysql'; +$lng['serversettings']['logger']['logfile'] = 'Logfile path including filename'; +$lng['error']['logerror'] = 'Log-Error: %s'; +$lng['serversettings']['logger']['logcron'] = 'Log cronjobs (one run)'; +$lng['question']['logger_reallytruncate'] = 'Do you really want to truncate the table "%s"?'; +$lng['admin']['loggersystem'] = 'System-logging'; +$lng['menue']['logger']['logger'] = 'System-logging'; +$lng['logger']['date'] = 'Date'; +$lng['logger']['type'] = 'Type'; +$lng['logger']['action'] = 'Action'; +$lng['logger']['user'] = 'User'; +$lng['logger']['truncate'] = 'Empty log'; + +// ADDED IN 1.2.19-svn7 + +$lng['serversettings']['ssl']['use_ssl'] = 'Use SSL'; +$lng['serversettings']['ssl']['ssl_cert_file'] = 'Path to the SSL certificate'; +$lng['serversettings']['ssl']['openssl_cnf'] = 'Defaults for creating the Cert file'; +$lng['panel']['reseller'] = 'reseller'; +$lng['panel']['admin'] = 'admin'; +$lng['panel']['customer'] = 'customer/s'; +$lng['error']['nomessagetosend'] = 'You did not enter a message.'; +$lng['error']['noreceipientsgiven'] = 'You did not specify any receipient'; +$lng['admin']['emaildomain'] = 'Emaildomain'; +$lng['admin']['email_only'] = 'Only email?'; +$lng['admin']['wwwserveralias'] = 'Add a "www." ServerAlias'; +$lng['admin']['ipsandports']['enable_ssl'] = 'Is this an SSL Port?'; +$lng['admin']['ipsandports']['ssl_cert_file'] = 'Path to the SSL Certificate'; +$lng['panel']['send'] = 'send'; +$lng['admin']['subject'] = 'Subject'; +$lng['admin']['receipient'] = 'Recipient'; +$lng['admin']['message'] = 'Write a Message'; +$lng['admin']['text'] = 'Message'; +$lng['menu']['message'] = 'Messages'; +$lng['error']['errorsendingmail'] = 'The message to "%s" failed'; +$lng['error']['cannotreaddir'] = 'Unable to read directory "%s"'; +$lng['message']['success'] = 'Successfully sent message to %s recipients'; +$lng['message']['noreceipients'] = 'No e-mail has been sent because there are no recipients in the database'; +$lng['admin']['sslsettings'] = 'SSL settings'; +$lng['cronjobs']['notyetrun'] = 'Not yet run'; +$lng['install']['servername_should_be_fqdn'] = 'The servername should be a FQDN and not an IP address'; +$lng['serversettings']['default_vhostconf']['title'] = 'Default vhost-settings'; +$lng['serversettings']['default_vhostconf']['description'] = 'The content of this field will be included into the domain vhost container directly. Attention: The code won\'t be checked for any errors. If it contains errors, apache might ot start again!'; +$lng['error']['invalidip'] = 'Invalid IP address: %s'; +$lng['serversettings']['decimal_places'] = 'Number of decimal places in traffic/webspace output'; + +// ADDED IN 1.2.19-svn8 + +$lng['admin']['dkimsettings'] = 'DomainKey settings'; +$lng['dkim']['dkim_prefix']['title'] = 'Prefix'; +$lng['dkim']['dkim_prefix']['description'] = 'Please specify the path to the DKIM RSA-files as well as to the configuration files for the Milter-plugin'; +$lng['dkim']['dkim_domains']['title'] = 'Domains filename'; +$lng['dkim']['dkim_domains']['description'] = 'Filename of the DKIM Domains parameter specified in the dkim-milter configuration'; +$lng['dkim']['dkim_dkimkeys']['title'] = 'KeyList filename'; +$lng['dkim']['dkim_dkimkeys']['description'] = 'Filename of the DKIM KeyList parameter specified in the dkim-milter configuration'; +$lng['dkim']['dkimrestart_command']['title'] = 'Milter restart command'; +$lng['dkim']['dkimrestart_command']['description'] = 'Please specify the restart command for the DKIM milter service'; + +// ADDED IN 1.2.19-svn9 + +$lng['admin']['caneditphpsettings'] = 'Can change php-related domain settings?'; + +// ADDED IN 1.2.19-svn12 + +$lng['admin']['allips'] = 'All IP\'s'; +$lng['panel']['nosslipsavailable'] = 'There are currently no ssl ip/port combinations for this server'; +$lng['ticket']['by'] = 'by'; +$lng['dkim']['use_dkim']['title'] = 'Activate DKIM support?'; +$lng['dkim']['use_dkim']['description'] = 'Would you like to use the Domain Keys (DKIM) system?'; +$lng['error']['invalidmysqlhost'] = 'Invalid MySQL host address: %s'; +$lng['error']['cannotuseawstatsandwebalizeratonetime'] = 'You cannot enable Webalizer and Awstats at the same time, please chose one of them'; +$lng['serversettings']['webalizer_enabled'] = 'Enable webalizer statistics'; +$lng['serversettings']['awstats_enabled'] = 'Enable awstats statistics'; +$lng['admin']['awstatssettings'] = 'Awstats settings'; +$lng['serversettings']['awstats_domain_file']['title'] = 'Awstats domainfiles directory'; +$lng['serversettings']['awstats_model_file']['title'] = 'Awstats model file'; + +// ADDED IN 1.2.19-svn16 + +$lng['admin']['domain_dns_settings'] = 'Domain dns settings'; +$lng['dns']['destinationip'] = 'Domain IP'; +$lng['dns']['standardip'] = 'Server standard IP'; +$lng['dns']['a_record'] = 'A-Record (IPv6 optional)'; +$lng['dns']['cname_record'] = 'CNAME-Record'; +$lng['dns']['mxrecords'] = 'Define MX records'; +$lng['dns']['standardmx'] = 'Server tandard MX record'; +$lng['dns']['mxconfig'] = 'Custom MX records'; +$lng['dns']['priority10'] = 'Priority 10'; +$lng['dns']['priority20'] = 'Priority 20'; +$lng['dns']['txtrecords'] = 'Define TXT records'; +$lng['dns']['txtexample'] = 'Example (SPF-entry):
v=spf1 ip4:xxx.xxx.xx.0/23 -all'; +$lng['serversettings']['selfdns']['title'] = 'Customer domain dns settings'; +$lng['serversettings']['selfdnscustomer']['title'] = 'Allow customers to edit domain dns settings'; +$lng['admin']['activated'] = 'Activated'; +$lng['admin']['statisticsettings'] = 'Statistic settings'; +$lng['admin']['or'] = 'or'; + +// ADDED IN 1.2.19-svn17 + +$lng['serversettings']['unix_names']['title'] = 'Use UNIX compatible usernames'; +$lng['serversettings']['unix_names']['description'] = 'Allows you to use - and _ in usernames if No'; +$lng['error']['cannotwritetologfile'] = 'Cannot open logfile %s for writing'; +$lng['admin']['sysload'] = 'System load'; +$lng['admin']['noloadavailable'] = 'not available'; +$lng['admin']['nouptimeavailable'] = 'not available'; +$lng['panel']['backtooverview'] = 'Back to overview'; +$lng['admin']['nosubject'] = '(No Subject)'; +$lng['admin']['configfiles']['statistics'] = 'Statistics'; +$lng['login']['forgotpwd'] = 'Forgot your password?'; +$lng['login']['presend'] = 'Reset password'; +$lng['login']['email'] = 'E-mail address'; +$lng['login']['remind'] = 'Reset my password'; +$lng['login']['usernotfound'] = 'User not found!'; +$lng['pwdreminder']['subject'] = 'Froxlor - Password reset'; +$lng['pwdreminder']['body'] = 'Hello %s,\n\nyour froxlor password has been reset!\nThe new password is: %p\n\nThank you,\nthe Froxlor-Team'; +$lng['pwdreminder']['success'] = 'Password reset successfully.
You now should receive an email with your new password.'; + +// ADDED IN 1.2.19-svn18 + +$lng['serversettings']['allow_password_reset']['title'] = 'Allow password reset by customers'; +$lng['pwdreminder']['notallowed'] = 'Password reset is deactivated'; + +// ADDED IN 1.2.19-svn20 + +$lng['serversettings']['awstats_path']['title'] = 'Path to awstats cgi-bin folder'; +$lng['serversettings']['awstats_path']['description'] = 'e.g. /usr/share/webapps/awstats/6.1/webroot/cgi-bin/'; +$lng['serversettings']['awstats_updateall_command']['title'] = 'Path to "awstats_updateall.pl"'; +$lng['serversettings']['awstats_updateall_command']['description'] = 'e.g. /usr/bin/awstats_updateall.pl'; + +// ADDED IN 1.2.19-svn21 + +$lng['customer']['title'] = 'Title'; +$lng['customer']['country'] = 'Country'; +$lng['panel']['dateformat'] = 'YYYY-MM-DD'; +$lng['panel']['dateformat_function'] = 'Y-m-d'; + +// Y = Year, m = Month, d = Day + +$lng['panel']['timeformat_function'] = 'H:i:s'; + +// H = Hour, i = Minute, s = Second + +$lng['panel']['default'] = 'Default'; +$lng['panel']['never'] = 'Never'; +$lng['panel']['active'] = 'Active'; +$lng['panel']['please_choose'] = 'Please choose'; +$lng['panel']['allow_modifications'] = 'Allow modifications'; +$lng['domains']['add_date'] = 'Added to Froxlor'; +$lng['domains']['registration_date'] = 'Added at registry'; +$lng['domains']['topleveldomain'] = 'Top-Level-Domain'; + +// ADDED IN 1.2.19-svn22 + +$lng['serversettings']['allow_password_reset']['description'] = 'Customers can reset their password and a new password will be sent to their e-mail address'; +$lng['serversettings']['allow_password_reset_admin']['title'] = 'Allow password reset by admins'; +$lng['serversettings']['allow_password_reset_admin']['description'] = 'Admins/reseller can reset their password and a new password will be sent to their e-mail address'; + +// ADDED IN 1.2.19-svn25 + +$lng['emails']['quota'] = 'Quota'; +$lng['emails']['noquota'] = 'No quota'; +$lng['emails']['updatequota'] = 'Update Quota'; +$lng['serversettings']['mail_quota']['title'] = 'Mailbox-quota'; +$lng['serversettings']['mail_quota']['description'] = 'The default quota for a new created mailboxes (MegaByte).'; +$lng['serversettings']['mail_quota_enabled']['title'] = 'Use mailbox-quota for customers'; +$lng['serversettings']['mail_quota_enabled']['description'] = 'Activate to use quotas on mailboxes. Default is No since this requires a special setup.'; +$lng['serversettings']['mail_quota_enabled']['removelink'] = 'Click here to wipe all quotas for mail accounts.'; +$lng['serversettings']['mail_quota_enabled']['enforcelink'] = 'Click here to enforce default quota to all User mail accounts.'; +$lng['question']['admin_quotas_reallywipe'] = 'Do you really want to wipe all quotas on table mail_users? This cannot be reverted!'; +$lng['question']['admin_quotas_reallyenforce'] = 'Do you really want to enforce the default quota to all Users? This cannot be reverted!'; +$lng['error']['vmailquotawrong'] = 'The quotasize must be positive number.'; +$lng['customer']['email_quota'] = 'E-mail quota'; +$lng['customer']['email_imap'] = 'E-mail IMAP'; +$lng['customer']['email_pop3'] = 'E-mail POP3'; +$lng['customer']['mail_quota'] = 'Mailquota'; +$lng['panel']['megabyte'] = 'MegaByte'; +$lng['panel']['not_supported'] = 'Not supported in: '; +$lng['emails']['quota_edit'] = 'Change E-Mail Quota'; +$lng['error']['allocatetoomuchquota'] = 'You tried to allocate %s MB ' . $lng['emails']['quota'] . ', but you do not have enough left.'; + +// Autoresponder module + +$lng['menue']['email']['autoresponder'] = 'Autoresponder'; +$lng['autoresponder']['active'] = 'Active'; +$lng['autoresponder']['autoresponder_add'] = 'Add autoresponder'; +$lng['autoresponder']['autoresponder_edit'] = 'Edit autoresponder'; +$lng['autoresponder']['autoresponder_new'] = 'Create new autoresponder'; +$lng['autoresponder']['subject'] = 'Subject'; +$lng['autoresponder']['message'] = 'Message'; +$lng['autoresponder']['account'] = 'Account'; +$lng['autoresponder']['sender'] = 'Sender'; +$lng['question']['autoresponderdelete'] = 'Do you really want to delete the autoresponder?'; +$lng['error']['noemailaccount'] = 'There can be two reasons why you cannot create a new autoresponder: You need at least one email account to create a new autoresponder. Secondly it can be possible that all accounts already have an autoresponder configured.'; +$lng['error']['missingfields'] = 'Not all required fields were filled out.'; +$lng['error']['accountnotexisting'] = 'The given email account doesn\'t exist.'; +$lng['error']['autoresponderalreadyexists'] = 'There is already an autoresponder configured for this account.'; +$lng['error']['invalidautoresponder'] = 'The given account is invalid.'; +$lng['serversettings']['autoresponder_active']['title'] = 'Use autoresponder module'; +$lng['serversettings']['autoresponder_active']['description'] = 'Do you want to use the autoresponder module? Therefore an extra cronjob must be set up.'; +$lng['invoice']['active'] = 'Billing active'; +$lng['admin']['security_settings'] = 'Security Options'; +$lng['admin']['know_what_youre_doing'] = 'Change only, if you know what you\'re doing!'; +$lng['admin']['show_version_login']['title'] = 'Show Froxlor version on login'; +$lng['admin']['show_version_login']['description'] = 'Show the Froxlor version in the footer on the login page'; +$lng['admin']['show_version_footer']['title'] = 'Show Froxlor version in footer'; +$lng['admin']['show_version_footer']['description'] = 'Show the Froxlor version in the footer on the rest of the pages'; +$lng['admin']['syscp_graphic']['title'] = 'Header graphic for SysCP'; +$lng['admin']['syscp_graphic']['description'] = 'What graphic should be shown in the header'; + +//improved syscp + +$lng['menue']['phpsettings']['maintitle'] = 'PHP Configurations'; +$lng['admin']['phpsettings']['title'] = 'PHP Configuration'; +$lng['admin']['phpsettings']['description'] = 'Short description'; +$lng['admin']['phpsettings']['actions'] = 'Actions'; +$lng['admin']['phpsettings']['activedomains'] = 'In use for domain(s)'; +$lng['admin']['phpsettings']['notused'] = 'Configuration not in use'; +$lng['admin']['misc'] = 'Miscellaneous'; +$lng['admin']['phpsettings']['editsettings'] = 'Change PHP settings'; +$lng['admin']['phpsettings']['addsettings'] = 'Create new PHP settings'; +$lng['admin']['phpsettings']['viewsettings'] = 'View PHP settings'; +$lng['admin']['phpsettings']['phpinisettings'] = 'php.ini settings'; +$lng['error']['nopermissionsorinvalidid'] = 'You don\'t have enough permissions to change these settings or an invalid id was given.'; +$lng['panel']['view'] = 'view'; +$lng['question']['phpsetting_reallydelete'] = 'Do you really want to delete these settings? All domains which use these settings currently will be changed to the default config.'; +$lng['admin']['phpsettings']['addnew'] = 'Create new settings'; +$lng['error']['phpsettingidwrong'] = 'A PHP Configuration with this id doesn\'t exist'; +$lng['error']['descriptioninvalid'] = 'The description is too short, too long or contains illegal characters.'; +$lng['error']['info'] = 'Info'; +$lng['admin']['phpconfig']['template_replace_vars'] = 'Variables that will be replaced in the configs'; +$lng['admin']['phpconfig']['safe_mode'] = 'Will be replaced with the safe_mode setting of the domain.'; +$lng['admin']['phpconfig']['pear_dir'] = 'Will be replaced with the global setting for the pear directory.'; +$lng['admin']['phpconfig']['open_basedir_c'] = 'Will insert a ; (semicolon) to comment-out/deactivate open_basedir when set'; +$lng['admin']['phpconfig']['open_basedir'] = 'Will be replaced with the open_basedir setting of the domain.'; +$lng['admin']['phpconfig']['tmp_dir'] = 'Will be replaced with the temporary directory of the domain.'; +$lng['admin']['phpconfig']['open_basedir_global'] = 'Will be replaced with the global value of the path which will be attached to the open_basedir.'; +$lng['admin']['phpconfig']['customer_email'] = 'Will be replaced with the e-mail address of the customer who owns this domain.'; +$lng['admin']['phpconfig']['admin_email'] = 'Will be replaced with e-mail address of the admin who owns this domain.'; +$lng['admin']['phpconfig']['domain'] = 'Will be replaced with the domain.'; +$lng['admin']['phpconfig']['customer'] = 'Will be replaced with the loginname of the customer who owns this domain.'; +$lng['admin']['phpconfig']['admin'] = 'Will be replaced with the loginname of the admin who owns this domain.'; +$lng['login']['backtologin'] = 'Back to login'; +$lng['serversettings']['mod_fcgid']['starter']['title'] = 'Processes per Domain'; +$lng['serversettings']['mod_fcgid']['starter']['description'] = 'How many processes should be started/allowed per domain? The value 0 is recommended cause PHP will then manage the amount of processes itself very efficiently.'; +$lng['serversettings']['mod_fcgid']['wrapper']['title'] = 'Wrapper in Vhosts'; +$lng['serversettings']['mod_fcgid']['wrapper']['description'] = 'How should the wrapper be included in the Vhosts'; +$lng['serversettings']['mod_fcgid']['tmpdir']['description'] = 'Where should the temp directories be stored'; +$lng['serversettings']['mod_fcgid']['peardir']['title'] = 'Global PEAR directories'; +$lng['serversettings']['mod_fcgid']['peardir']['description'] = 'Which global PEAR directories should be replaced in every php.ini config? Different directories must be separated by a colon.'; + +//improved Froxlor 2 + +$lng['admin']['templates']['index_html'] = 'index file for newly created customer directories'; +$lng['admin']['templates']['SERVERNAME'] = 'Replaced with the servername.'; +$lng['admin']['templates']['CUSTOMER'] = 'Replaced with the loginname of the customer.'; +$lng['admin']['templates']['ADMIN'] = 'Replaced with the loginname of the admin.'; +$lng['admin']['templates']['CUSTOMER_EMAIL'] = 'Replaced with the e-mail address of the customer.'; +$lng['admin']['templates']['ADMIN_EMAIL'] = 'Replaced with the e-mail address of the admin.'; +$lng['admin']['templates']['filetemplates'] = 'File templates'; +$lng['admin']['templates']['filecontent'] = 'File content'; +$lng['error']['filecontentnotset'] = 'The file cannot be empty!'; +$lng['serversettings']['index_file_extension']['description'] = 'Which file extension should be used for the index file in newly created customer directories? This file extension will be used, if you or one of your admins has created its own index file template.'; +$lng['serversettings']['index_file_extension']['title'] = 'File extension for index file in newly created customer directories'; +$lng['error']['index_file_extension'] = 'The file extension for the index file must be between 1 and 6 characters long. The extension can only contain characters like a-z, A-Z and 0-9'; +$lng['admin']['expert_settings'] = 'Expert settings!'; +$lng['admin']['mod_fcgid_starter']['title'] = 'PHP Processes for this domain (empty for default value)'; + +//added with aps installer + +$lng['admin']['aps'] = 'APS Installer'; +$lng['customer']['aps'] = 'APS Installer'; +$lng['aps']['scan'] = 'Scan for new packages'; +$lng['aps']['upload'] = 'Upload new packages'; +$lng['aps']['managepackages'] = 'Manage Packages'; +$lng['aps']['manageinstances'] = 'Manage Instances'; +$lng['aps']['overview'] = 'Package overview'; +$lng['aps']['status'] = 'My Packages'; +$lng['aps']['search'] = 'Search for Packages'; +$lng['aps']['upload_description'] = 'Please select the APS Installer zipfiles to install them in the system.'; +$lng['aps']['search_description'] = 'Name, Description, Keyword, Version'; +$lng['aps']['detail'] = 'More information'; +$lng['aps']['install'] = 'Install package'; +$lng['aps']['data'] = 'Data'; +$lng['aps']['version'] = 'Version'; +$lng['aps']['homepage'] = 'Homepage'; +$lng['aps']['installed_size'] = 'Size after Installation'; +$lng['aps']['categories'] = 'Categories'; +$lng['aps']['languages'] = 'Languages'; +$lng['aps']['long_description'] = 'Long description'; +$lng['aps']['configscript'] = 'Configuration script'; +$lng['aps']['changelog'] = 'Changelog'; +$lng['aps']['license'] = 'License'; +$lng['aps']['license_link'] = 'Link to License'; +$lng['aps']['screenshots'] = 'Screenshots'; +$lng['aps']['back'] = 'Back to overview'; +$lng['aps']['install_wizard'] = 'Installation wizard...'; +$lng['aps']['wizard_error'] = 'Your input contains invalid data. Please correct yourself to continue the installation.'; +$lng['aps']['basic_settings'] = 'Basic settings'; +$lng['aps']['application_location'] = 'Installation location'; +$lng['aps']['application_location_description'] = 'Location where the application will be installed.'; +$lng['aps']['no_domains'] = 'No domains found'; +$lng['aps']['database_password'] = 'Database password'; +$lng['aps']['database_password_description'] = 'Password which should be used for the new created database.'; +$lng['aps']['license_agreement'] = 'Agreement'; +$lng['aps']['cancel_install'] = 'Abort Installation'; +$lng['aps']['notazipfile'] = 'The uploaded file is not a zipfile.'; +$lng['aps']['filetoobig'] = 'The file is too big.'; +$lng['aps']['filenotcomplete'] = 'The file wasn\'t uploaded completely.'; +$lng['aps']['phperror'] = 'There occured a PHP internal error. The PHP upload errorcode is #'; +$lng['aps']['moveproblem'] = 'The script failed to move the uploaded file into the destination directory. Please ensure that all permissions are set correctly.'; +$lng['aps']['uploaderrors'] = 'Errors for the file %s
    %s
'; +$lng['aps']['nospecialchars'] = 'Special characters are not allowed in the search term!'; +$lng['aps']['noitemsfound'] = 'No Packages were found!'; +$lng['aps']['nopackagesinstalled'] = 'You haven\'t installed any package yet which could be shown.'; +$lng['aps']['instance_install'] = 'Package Installation pending'; +$lng['aps']['instance_task_active'] = 'Installation running at this moment'; +$lng['aps']['instance_success'] = 'Package is installed/was installed successfully'; +$lng['aps']['instance_error'] = 'Package isn\'t installed - there occured some errors on the Installation'; +$lng['aps']['instance_uninstall'] = 'Package Uninstallation pending'; +$lng['aps']['unknown_status'] = 'Error - Unknown value'; +$lng['aps']['currentstatus'] = 'Current status'; +$lng['aps']['activetasks'] = 'Current tasks'; +$lng['aps']['task_install'] = 'Installation pending'; +$lng['aps']['task_remove'] = 'Uninstallation pending'; +$lng['aps']['task_reconfigure'] = 'Reconfiguration pending'; +$lng['aps']['task_upgrade'] = 'Update/Upgrade pending'; +$lng['aps']['no_task'] = 'No tasks pending'; +$lng['aps']['applicationlinks'] = 'Application links'; +$lng['aps']['mainsite'] = 'Main site'; +$lng['aps']['uninstall'] = 'Uninstall Package'; +$lng['aps']['reconfigure'] = 'Change settings'; +$lng['aps']['erroronnewinstance'] = 'This Package cannot be installed.

Please go back to the Package overview and start a new Installation.'; +$lng['aps']['successonnewinstance'] = '%s will be installed now.

Go back to "My Packages" and wait until the Installation has finished. This can take some time.'; +$lng['aps']['php_misc_handler'] = 'PHP - Misc - There is no support for other file extensions than .php for the PHP Parser.'; +$lng['aps']['php_misc_directoryhandler'] = 'PHP - Misc - There is no support for per directory disabled PHP Handlers.'; +$lng['aps']['asp_net'] = 'ASP.NET - Package not supported.'; +$lng['aps']['cgi'] = 'CGI - Package not supported.'; +$lng['aps']['php_extension'] = 'PHP - Extension "%s" missing.'; +$lng['aps']['php_function'] = 'PHP - Function "%s" missing.'; +$lng['aps']['php_configuration'] = 'PHP - Configuration - Current "%s" setting not supported by Package.'; +$lng['aps']['php_configuration_post_max_size'] = 'PHP - Configuration - "post_max_size" value too low.'; +$lng['aps']['php_configuration_memory_limit'] = 'PHP - Configuration - "memory_limit" value too low.'; +$lng['aps']['php_configuration_max_execution_time'] = 'PHP - Configuration - "max_execution_time" value too low.'; +$lng['aps']['php_general_old'] = 'PHP - General - PHP Version too old.'; +$lng['aps']['php_general_new'] = 'PHP - General - PHP Version too new.'; +$lng['aps']['db_mysql_support'] = 'Database - The Package needs another database engine than MySQL.'; +$lng['aps']['db_mysql_version'] = 'Database - MySQL Server too old.'; +$lng['aps']['webserver_module'] = 'Webserver - Module "%s" missing.'; +$lng['aps']['webserver_fcgid'] = 'Webserver - This Package requires additional modules from the Webserver. In your FastCGI/mod_fcgid environment the function "apache_get_modules" doesn\'t exist. The Package cannot be installed because the APS Installer is unable to verify if this modules are installed.'; +$lng['aps']['webserver_htaccess'] = 'Webserver - This Package requires that .htaccess files are parsed by the Webserver. The Package cannot be installed because the APS Installer is unable to determine if this is enabled.'; +$lng['aps']['misc_configscript'] = 'Misc - The language of the configuration script is not supported.'; +$lng['aps']['misc_charset'] = 'Misc - In the current Installer version its not possibel to validate formfields from the wizard against a specific charset. The Package cannot be installed.'; +$lng['aps']['misc_version_already_installed'] = 'Same version of Package already installed.'; +$lng['aps']['misc_only_newer_versions'] = 'For security reasons only newer Package versions can be installed on the system than them which are already installed.'; +$lng['aps']['erroronscan'] = 'Errors for %s
    %s
'; +$lng['aps']['invalidzipfile'] = 'Errors for %s
  • This is not a valid APS zipfile!
'; +$lng['aps']['successpackageupdate'] = '%s successfully installed as a Package update'; +$lng['aps']['successpackageinstall'] = '%s successfully installed as a new Package'; +$lng['aps']['class_zip_missing'] = 'SimpleXML Class, exec function or ZIP Functions missing or not enabled! For further information about this problem look into the handbook for this module.'; +$lng['aps']['dir_permissions'] = 'The PHP/Webserver process must be able to write in the directory /var/www/syscp/temp/ and /var/www/syscp/packages/'; +$lng['aps']['initerror'] = 'There are some problems with this module:
    %s
Fix these problems, otherwise the module cannot be used!'; +$lng['aps']['iderror'] = 'Wrong id specified!'; +$lng['aps']['nopacketsforinstallation'] = 'There are no packages to install.'; +$lng['aps']['nopackagestoinstall'] = 'There are no packages to view or install.'; +$lng['aps']['nodomains'] = 'Select a domain from the list. If there is none, the Package cannot be installed!'; +$lng['aps']['wrongpath'] = 'Either this path contains invalid characters or there is another application installed already.'; +$lng['aps']['dbpassword'] = 'Specify a password with a minimum length of 8 characters.'; +$lng['aps']['error_text'] = 'Specify a text without special characters.'; +$lng['aps']['error_email'] = 'Specify a valid e-mail address.'; +$lng['aps']['error_domain'] = 'Specify a valid URL like http://www.example.com/'; +$lng['aps']['error_integer'] = 'Specify a numeric value (Integer-Format) e.g. 5 or 7.'; +$lng['aps']['error_float'] = 'Specify a numeric value (Float-Format) e.g. 5,2432 or 7,5346.'; +$lng['aps']['error_password'] = 'Specify a password.'; +$lng['aps']['error_license'] = 'Yes, I have read the license and will abide by its terms.'; +$lng['aps']['error_licensenoaccept'] = 'You must accept the license to install this application.'; +$lng['aps']['stopinstall'] = 'Abort Installation'; +$lng['aps']['installstopped'] = 'The Installation of this Package was aborted successfully.'; +$lng['aps']['installstoperror'] = 'The Installation cannot be aborted anymore because installation has started already. If you\'d like to uninstall the Package, wait until the Installation has finished and then go to "My Packages" to trigger an Uninstallation.'; +$lng['aps']['waitfortask'] = 'There are no actions to select. Wait until all tasks have finished.'; +$lng['aps']['removetaskexisting'] = 'There is already a task for Uninstallation.

Please go back to "My Packages" and wait until the Uninstallation has finished.'; +$lng['aps']['packagewillberemoved'] = 'The Package will be uninstalled now.

Please go back to "My Packages" and wait until the Uninstallation has finished.'; +$lng['question']['reallywanttoremove'] = 'Do you really want to uninstall this Package?

All database contents and files will be erased. Be sure to make a manual backup of a files you need for any further usage!

'; +$lng['aps']['searchoneresult'] = '%s Package found'; +$lng['aps']['searchmultiresult'] = '%s Packages found'; +$lng['question']['reallywanttostop'] = 'Do you really want to abort the Installation of this Package?

'; +$lng['aps']['packagenameandversion'] = 'Packagename & Version'; +$lng['aps']['package_locked'] = 'Locked'; +$lng['aps']['package_enabled'] = 'Enabled'; +$lng['aps']['lock'] = 'Lock'; +$lng['aps']['unlock'] = 'Enable'; +$lng['aps']['remove'] = 'Remove'; +$lng['aps']['allpackages'] = 'All Packages'; +$lng['question']['reallyremovepackages'] = 'Do you really want to delete these packages?

Packages with dependencies can only be remove if the corresponding Instances have been removed!

'; +$lng['aps']['nopackagesinsystem'] = 'There were no packages installed in the system which could be managed.'; +$lng['aps']['packagenameandstatus'] = 'Packagename & Status'; +$lng['aps']['activate_aps']['title'] = 'Enable APS Installer'; +$lng['aps']['activate_aps']['description'] = 'Here the APS Installer can be enabled and disabled globaly.'; +$lng['aps']['packages_per_page']['title'] = 'Packages per page'; +$lng['aps']['packages_per_page']['description'] = 'How many packages should be displayed per page for customers?'; +$lng['aps']['upload_fields']['title'] = 'Upload fields per page'; +$lng['aps']['upload_fields']['description'] = 'How many upload fields should be displayed on the page to install new packages in the system?'; +$lng['aps']['exceptions']['title'] = 'Exceptions for Package validation'; +$lng['aps']['exceptions']['description'] = 'Some packages need special configuration parameters or modules. The Installer cannot always determine if this options/extensions are available. For this reason you can now define exceptions that packages can be installed in the system. Do only select options which match your real configuration setup. For further information about this problem look into the handbook for this module.'; +$lng['aps']['settings_php_extensions'] = 'PHP-Extensions'; +$lng['aps']['settings_php_configuration'] = 'PHP-Configuration'; +$lng['aps']['settings_webserver_modules'] = 'Webserver modules'; +$lng['aps']['settings_webserver_misc'] = 'Webserver miscellaneous'; +$lng['aps']['specialoptions'] = 'Special options'; +$lng['aps']['removeunused'] = 'Remove unused packages'; +$lng['aps']['enablenewest'] = 'Enabled newest version of package, lock others'; +$lng['aps']['installations'] = 'Installations'; +$lng['aps']['statistics'] = 'Statistics'; +$lng['aps']['numerofpackagesinstalled'] = '%s Packages installed
'; +$lng['aps']['numerofpackagesenabled'] = '%s Packages enabled
'; +$lng['aps']['numerofpackageslocked'] = '%s Packages locked
'; +$lng['aps']['numerofinstances'] = '%s Instances installed
'; +$lng['question']['reallydoaction'] = 'Do you really want to execute the selected actions?

Data which can be lost by continuing, cannot be restored later.

'; +$lng['aps']['linktolicense'] = 'Link to license'; +$lng['aps']['initerror_customer'] = 'There is currently a problem with this Froxlor extension. Contact your administrator for further information.'; +$lng['aps']['numerofinstances'] = '%s Installations at all
'; +$lng['aps']['numerofinstancessuccess'] = '%s successful Installations
'; +$lng['aps']['numerofinstanceserror'] = '%s failed Installations
'; +$lng['aps']['numerofinstancesaction'] = '%s planed Installations/Uninstallations'; +$lng['aps']['downloadallpackages'] = 'Download all packages from distribution server'; +$lng['aps']['updateallpackages'] = 'Update all packages by distribution server'; +$lng['aps']['downloadtaskexists'] = 'There is already a task for the download of all packages. Please wait until this task has finished.'; +$lng['aps']['downloadtaskinserted'] = 'A task for the download of all packages has been created. This can take up to several minutes.'; +$lng['aps']['updatetaskexists'] = 'There is already an task for the update of all packages. Please wait until this task has finished.'; +$lng['aps']['updatetaskinserted'] = 'A task for the update of all packages has been created. This can take up to several minutes.'; +$lng['aps']['canmanagepackages'] = 'Can manage APS packages'; +$lng['aps']['numberofapspackages'] = 'Amount of APS installations'; +$lng['aps']['allpackagesused'] = 'Error

You have already reached the number of installable APS applications.'; +$lng['aps']['noinstancesexisting'] = 'There are currently no instances which could be managed. There must be installed at least one application by a customer.'; +$lng['aps']['lightywarning'] = 'Warning'; +$lng['aps']['lightywarningdescription'] = 'You are using the lighttpd webserver together with SysCP. The APS module was mainly written for Apache, so it can be possible that some features do not work with lighttpd. Please remember this when using the APS module. If you have found or experienced any problems in connection with lighttpd and the APS module please report them to the developers that they can be fixed within the next release if SysCP.'; +$lng['error']['customerdoesntexist'] = 'The customer you have chosen doesn\'t exist.'; +$lng['error']['admindoesntexist'] = 'The admin you have chosen doesn\'t exist.'; + +// ADDED IN 1.2.19-svn37 + +$lng['serversettings']['system_realtime_port']['title'] = 'Port for realtime SysCP'; +$lng['serversettings']['system_realtime_port']['description'] = 'Froxlor connects to this port at localhost everytime a new cron task is scheduled. If value is 0 (zero), this feature ist deactivated.
See also: Make Froxlor work in realtime (Froxlor Wiki)'; +$lng['serversettings']['session_allow_multiple_login']['title'] = 'Allow multiple login'; +$lng['serversettings']['session_allow_multiple_login']['description'] = 'If activated a user could login multiple times.'; +$lng['serversettings']['panel_allow_domain_change_admin']['title'] = 'Allow moving domains between admins'; +$lng['serversettings']['panel_allow_domain_change_admin']['description'] = 'If activated you can change the admin of a domain at domainsettings.
Attention: If a customer isn\'t assigned to the same admin as the domain, the admin can see every other domain of that customer!'; +$lng['serversettings']['panel_allow_domain_change_customer']['title'] = 'Allow moving domains between customers'; +$lng['serversettings']['panel_allow_domain_change_customer']['description'] = 'If activated you can change the customer of a domain at domainsettings.
Attention: Froxlor won\'t change any paths. This could render a domain unusable!'; +$lng['domains']['associated_with_domain'] = 'Associated'; +$lng['domains']['aliasdomains'] = 'Alias domains'; +$lng['error']['ipportdoesntexist'] = 'The ip/port combination you have chosen doesn\'t exist.'; + +// ADDED IN 1.2.19-svn38 + +$lng['admin']['phpserversettings'] = 'PHP Settings'; +$lng['admin']['phpsettings']['binary'] = 'PHP Binary'; +$lng['admin']['phpsettings']['file_extensions'] = 'File extensions'; +$lng['admin']['phpsettings']['file_extensions_note'] = '(without dot, separated by spaces)'; +$lng['admin']['mod_fcgid_maxrequests']['title'] = 'Maximum php requests for this domain (empty for default value)'; +$lng['serversettings']['mod_fcgid']['maxrequests']['title'] = 'Maximum Requests per Domain'; +$lng['serversettings']['mod_fcgid']['maxrequests']['description'] = 'How many requests should be allowed per domain?'; + +// fix bug #1124 +$lng['admin']['webserver'] = 'Webserver'; +$lng['error']['admin_domain_emailsystemhostname'] = 'The server-hostname cannot be used as email-domain.'; +$lng['aps']['license_link'] = 'Link to the license'; + +// ADDED IN 1.4.2.1 +$lng['admin']['thankyou'] = 'Thank you'; +$lng['admin']['contributors'] = 'All these people contributed to the Froxlor Project (no particular order)'; + +// ADDED IN 1.4.2.1-1 + +$lng['mysql']['mysql_server'] = 'MySQL-Server'; + +// ADDED IN 1.4.2.1-2 + +$lng['admin']['ipsandports']['webserverdefaultconfig'] = 'Webserver Default Config'; +$lng['admin']['ipsandports']['webserverdomainconfig'] = 'Webserver Domain Config'; +$lng['admin']['ipsandports']['webserverssldomainconfig'] = 'Webserver SSL Config'; +$lng['admin']['ipsandports']['ssl_key_file'] = 'Path to the SSL Keyfile'; +$lng['admin']['ipsandports']['ssl_ca_file'] = 'Path to the SSL CA certificate'; +$lng['admin']['ipsandports']['default_vhostconf_domain'] = 'Default vhost-settings for every domain container'; +$lng['serversettings']['ssl']['ssl_key_file'] = 'Path to the SSL Keyfile'; +$lng['serversettings']['ssl']['ssl_ca_file'] = 'Path to the SSL CA certificate'; + +$lng['error']['usernamealreadyexists'] = 'The username %s already exists.'; + +$lng['error']['plausibilitychecknotunderstood'] = 'Answer of plausibility check not understood.'; +$lng['error']['errorwhensaving'] = 'An error occured when saving the field %s'; + +$lng['success']['success'] = 'Information'; +$lng['success']['clickheretocontinue'] = 'Click here to continue'; +$lng['success']['settingssaved'] = 'The settings have been successfully saved.'; ?> \ No newline at end of file diff --git a/lng/german.lng.php b/lng/german.lng.php index 0787098c..d84d7f56 100644 --- a/lng/german.lng.php +++ b/lng/german.lng.php @@ -1,1229 +1,1229 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: german.lng.php 2724 2009-06-07 14:18:02Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = ''; -$lng['panel']['edit'] = 'bearbeiten'; -$lng['panel']['delete'] = 'löschen'; -$lng['panel']['create'] = 'anlegen'; -$lng['panel']['save'] = 'Speichern'; -$lng['panel']['yes'] = 'Ja'; -$lng['panel']['no'] = 'Nein'; -$lng['panel']['emptyfornochanges'] = 'leer für keine Änderung'; -$lng['panel']['emptyfordefault'] = 'leer für Standardeinstellung'; -$lng['panel']['path'] = 'Pfad'; -$lng['panel']['toggle'] = 'Umschalten'; -$lng['panel']['next'] = 'weiter'; -$lng['panel']['dirsmissing'] = 'Verzeichnisse nicht verfügbar oder lesbar'; - -/** - * Login - */ - -$lng['login']['username'] = 'Benutzername'; -$lng['login']['password'] = 'Passwort'; -$lng['login']['language'] = 'Sprache'; -$lng['login']['login'] = 'Anmelden'; -$lng['login']['logout'] = 'Abmelden'; -$lng['login']['profile_lng'] = 'Profilsprache'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Heimatverzeichnis'; -$lng['customer']['name'] = 'Name'; -$lng['customer']['firstname'] = 'Vorname'; -$lng['customer']['company'] = 'Firma'; -$lng['customer']['street'] = 'Straße'; -$lng['customer']['zipcode'] = 'PLZ'; -$lng['customer']['city'] = 'Ort'; -$lng['customer']['phone'] = 'Telefon'; -$lng['customer']['fax'] = 'Fax'; -$lng['customer']['email'] = 'E-Mail'; -$lng['customer']['customernumber'] = 'Kundennummer'; -$lng['customer']['diskspace'] = 'Webspace (MB)'; -$lng['customer']['traffic'] = 'Traffic (GB)'; -$lng['customer']['mysqls'] = 'MySQL-Datenbanken'; -$lng['customer']['emails'] = 'E-Mail-Adressen'; -$lng['customer']['accounts'] = 'E-Mail-Konten'; -$lng['customer']['forwarders'] = 'E-Mail-Weiterleitungen'; -$lng['customer']['ftps'] = 'FTP-Konten'; -$lng['customer']['subdomains'] = 'Sub-Domain(s)'; -$lng['customer']['domains'] = 'Domain(s)'; -$lng['customer']['unlimited'] = 'unbegrenzt'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Allgemein'; -$lng['menue']['main']['changepassword'] = 'Passwort ändern'; -$lng['menue']['main']['changelanguage'] = 'Sprache ändern'; -$lng['menue']['email']['email'] = 'E-Mail'; -$lng['menue']['email']['emails'] = 'Adressen'; -$lng['menue']['email']['webmail'] = 'WebMail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Datenbanken'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Domains'; -$lng['menue']['domains']['settings'] = 'Einstellungen'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Benutzerkonten'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Extras'; -$lng['menue']['extras']['directoryprotection'] = 'Verzeichnisschutz'; -$lng['menue']['extras']['pathoptions'] = 'Pfadoptionen'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Kundendaten'; -$lng['index']['accountdetails'] = 'Kontodaten'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Altes Passwort'; -$lng['changepassword']['new_password'] = 'Neues Passwort'; -$lng['changepassword']['new_password_confirm'] = 'Neues Passwort (bestätigen)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Neues Passwort (leer = nicht ändern)'; -$lng['changepassword']['also_change_ftp'] = 'Auch Passwort vom Haupt-FTP-Zugang ändern'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Hier können Sie (Sub-)Domains erstellen und deren Pfade ändern.
Nach jeder Änderung braucht das System etwas Zeit um die Konfiguration neu einzulesen.'; -$lng['domains']['domainsettings'] = 'Domaineinstellungen'; -$lng['domains']['domainname'] = 'Domainname'; -$lng['domains']['subdomain_add'] = 'Subdomain anlegen'; -$lng['domains']['subdomain_edit'] = '(Sub-)Domain bearbeiten'; -$lng['domains']['wildcarddomain'] = 'Als Wildcarddomain eintragen?'; -$lng['domains']['aliasdomain'] = 'Alias für Domain'; -$lng['domains']['noaliasdomain'] = 'Keine Aliasdomain'; - -/** - * eMails - */ - -$lng['emails']['description'] = 'Hier können Sie Ihre E-Mail Adressen einrichten.
Ein Konto ist wie Ihr Briefkasten vor der Haustüre. Wenn jemand eine E-Mail an Sie schreibt, dann wird diese in dieses Konto gelegt.

Die Zugangsdaten von Ihrem Mailprogramm sind wie folgt: (Die Angaben in kursiver Schrift sind durch die jeweiligen Einträge zu ersetzen!)
Hostname: Domainname
Benutzername: Kontoname / E-Mail-Adresse
Passwort: das gewählte Passwort'; -$lng['emails']['emailaddress'] = 'E-Mail-Adresse'; -$lng['emails']['emails_add'] = 'E-Mail-Adresse anlegen'; -$lng['emails']['emails_edit'] = 'E-Mail-Adresse ändern'; -$lng['emails']['catchall'] = 'Catchall'; -$lng['emails']['iscatchall'] = 'Als Catchall-Adresse definieren?'; -$lng['emails']['account'] = 'Konto'; -$lng['emails']['account_add'] = 'Konto anlegen'; -$lng['emails']['account_delete'] = 'Konto löschen'; -$lng['emails']['from'] = 'Von'; -$lng['emails']['to'] = 'Nach'; -$lng['emails']['forwarders'] = 'Weiterleitungen'; -$lng['emails']['forwarder_add'] = 'Weiterleitung hinzufügen'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Hier können Sie zusätzliche FTP-Konten einrichten.
Die Änderungen sind sofort wirksam und die FTP-Konten sofort benutzbar.'; -$lng['ftp']['account_add'] = 'Benutzerkonto anlegen'; - -/** - * MySQL - */ - -$lng['mysql']['databasename'] = 'Benutzer-/Datenbankname'; -$lng['mysql']['databasedescription'] = 'Datenbankbeschreibung'; -$lng['mysql']['database_create'] = 'Datenbank anlegen'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Hier können Sie zusätzliche Extras einrichten, wie zum Beispiel Verzeichnisschutz.
Die Änderungen sind erst nach einer bestimmten Zeit wirksam.'; -$lng['extras']['directoryprotection_add'] = 'Verzeichnisschutz anlegen'; -$lng['extras']['view_directory'] = 'Verzeichnis anzeigen'; -$lng['extras']['pathoptions_add'] = 'Pfadoptionen hinzufügen'; -$lng['extras']['directory_browsing'] = 'Verzeichnisinhalt anzeigen'; -$lng['extras']['pathoptions_edit'] = 'Pfadoptionen bearbeiten'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL zum Fehlerdokument 404'; -$lng['extras']['errordocument403path'] = 'URL zum Fehlerdokument 403'; -$lng['extras']['errordocument500path'] = 'URL zum Fehlerdokument 500'; -$lng['extras']['errordocument401path'] = 'URL zum Fehlerdokument 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Fehlermeldung'; -$lng['error']['directorymustexist'] = 'Das Verzeichnis %s muss existieren. Legen Sie es bitte mit Ihrem FTP-Programm an.'; -$lng['error']['filemustexist'] = 'Die Datei %s muss existieren.'; -$lng['error']['allresourcesused'] = 'Sie haben bereits alle Ihnen zur Verfügung stehenden Ressourcen verbraucht.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Sie können keine Domain, die als E-Mail-Domain verwendet wird, löschen. '; -$lng['error']['domains_canteditdomain'] = 'Sie können diese Domain nicht bearbeiten. Dies wurde durch den Admin verweigert'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Sie können keine Domain löschen, die noch als E-Mail-Domain verwendet wird. Löschen Sie zuerst alle E-Mail-Adressen dieser Domain.'; -$lng['error']['firstdeleteallsubdomains'] = 'Sie müssen erst alle Subdomains löschen, bevor Sie eine Wildcarddomain anlegen können.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Sie haben bereits eine Adresse als Catchall für diese Domain definiert.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Sie können Ihren Hauptaccount nicht löschen.'; -$lng['error']['login'] = 'Der angegebene Benutzername/Passwort ist falsch.'; -$lng['error']['login_blocked'] = 'Dieser Account wurde aufgrund zu vieler Fehlversuche vorrübergehend geschlossen.
Bitte versuchen Sie es in ' . $settings['login']['deactivatetime'] . ' Sekunden erneut.'; -$lng['error']['notallreqfieldsorerrors'] = 'Sie haben nicht alle Felder oder ein Feld mit fehlerhaften Angaben ausgefüllt.'; -$lng['error']['oldpasswordnotcorrect'] = 'Das alte Passwort ist nicht korrekt.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Sie können nicht mehr Ressourcen verteilen als Sie noch frei haben.'; -$lng['error']['mustbeurl'] = 'Sie müssen eine vollständige URL angeben (z.B. http://irgendwas.de/error404.htm)'; -$lng['error']['invalidpath'] = 'Sie haben keine gültige URL ausgewählt (Evtl. Probleme beim Verzeichnislisting?)'; -$lng['error']['stringisempty'] = 'Fehlende Eingabe im Feld'; -$lng['error']['stringiswrong'] = 'Falsche Eingabe im Feld'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'Das neue Passwort und die Bestätigung sind nicht identisch.'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'Domain\''; -$lng['error']['mydocumentroot'] = '\'Documentroot\''; -$lng['error']['loginnameexists'] = 'Der Login-Name %s existiert bereits.'; -$lng['error']['emailiswrong'] = 'Die E-Mail-Adresse %s enthält ungültige Zeichen oder ist nicht vollständig.'; -$lng['error']['loginnameiswrong'] = 'Der Login-Name %s enthält ungültige Zeichen.'; -$lng['error']['userpathcombinationdupe'] = 'Kombination aus Benutzername und Pfad existiert bereits.'; -$lng['error']['patherror'] = 'Allgemeiner Fehler! Pfad darf nicht leer sein.'; -$lng['error']['errordocpathdupe'] = 'Option für Pfad %s existiert bereits.'; -$lng['error']['adduserfirst'] = 'Sie müssen zuerst einen Kunden anlegen.'; -$lng['error']['domainalreadyexists'] = 'Die Domain %s wurde bereits einem Kunden zugeordnet.'; -$lng['error']['nolanguageselect'] = 'Keine Sprache ausgewählt.'; -$lng['error']['nosubjectcreate'] = 'Sie müssen einen Betreff angeben.'; -$lng['error']['nomailbodycreate'] = 'Sie müssen einen E-Mail-Text eingeben.'; -$lng['error']['templatenotfound'] = 'Vorlage wurde nicht gefunden.'; -$lng['error']['alltemplatesdefined'] = 'Sie können keine weiteren Vorlagen anlegen, da bereits alle Sprachen mit Vorlagen versorgt sind.'; -$lng['error']['wwwnotallowed'] = 'Ihre Subdomain darf nicht www heissen.'; -$lng['error']['subdomainiswrong'] = 'Die Subdomain %s enthält ungültige Zeichen.'; -$lng['error']['domaincantbeempty'] = 'Der Domain-Name darf nicht leer sein.'; -$lng['error']['domainexistalready'] = 'Die Domain %s existiert bereits.'; -$lng['error']['domainisaliasorothercustomer'] = 'Die ausgewählte Aliasdomain ist entweder selber eine Aliasdomain oder gehört zu einem anderen Kunden.'; -$lng['error']['emailexistalready'] = 'Die E-Mail-Adresse %s existiert bereits.'; -$lng['error']['maindomainnonexist'] = 'Die Haupt-Domain %s existiert nicht.'; -$lng['error']['destinationnonexist'] = 'Bitte geben Sie Ihre Weiterleitungsadresse im Feld \'Nach\' ein.'; -$lng['error']['destinationalreadyexistasmail'] = 'Die Weiterleitung zu %s exisitiert bereits als aktive E-Mail-Adresse.'; -$lng['error']['destinationalreadyexist'] = 'Es gibt bereits eine Weiterleitung nach %s .'; -$lng['error']['destinationiswrong'] = 'Die Weiterleitungsadresse-Adresse %s enthält ungültige Zeichen oder ist nicht vollständig.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Sicherheitsabfrage'; -$lng['question']['admin_customer_reallydelete'] = 'Wollen Sie den Kunden %s wirklich löschen?
ACHTUNG! Alle Daten gehen unwiderruflich verloren! Nach dem Vorgang müssen Sie die Daten aus dem Dateisystem noch manuell entfernen.'; -$lng['question']['admin_domain_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Wollen Sie diese wichtigen Sicherheitseinstellungen (OpenBasedir und/oder SafeMode) wirklich deaktivieren?'; -$lng['question']['admin_admin_reallydelete'] = 'Wollen Sie den Admin %s wirklich löschen?
Alle Kunden und Domains werden Ihrem Account zugeteilt.'; -$lng['question']['admin_template_reallydelete'] = 'Wollen Sie die Vorlage \'%s\' wirklich löschen?'; -$lng['question']['domains_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?'; -$lng['question']['email_reallydelete'] = 'Wollen Sie die E-Mail-Adresse %s wirklich löschen?'; -$lng['question']['email_reallydelete_account'] = 'Wollen Sie das Konto von %s wirklich löschen?'; -$lng['question']['email_reallydelete_forwarder'] = 'Wollen Sie die Weiterleitung %s wirklich löschen?'; -$lng['question']['extras_reallydelete'] = 'Wollen Sie den Verzeichnisschutz für %s wirklich löschen?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'Wollen Sie die Optionen für den Pfad %s wirklich löschen?'; -$lng['question']['ftp_reallydelete'] = 'Wollen Sie das FTP-Benutzerkonto %s wirklich löschen?'; -$lng['question']['mysql_reallydelete'] = 'Wollen Sie die Datenbank %s wirklich löschen?
ACHTUNG! Alle Daten gehen unwiderruflich verloren!'; -$lng['question']['admin_configs_reallyrebuild'] = 'Wollen Sie wirklich Ihre Apache und Bind Konfigurationsdateien neu erstellen lassen?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Hallo,\n\nIhr E-Mail-Konto {USERNAME}\nwurde erfolgreich eingerichtet.\n\nDies ist eine automatisch generierte\nE-Mail, bitte antworten Sie nicht auf\ndiese Mitteilung.\n\nIhr SysCP-Team'; -$lng['mails']['pop_success']['subject'] = 'E-Mail-Konto erfolgreich eingerichtet'; -$lng['mails']['createcustomer']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nhier ihre Accountinformationen:\n\nBenutzername: {USERNAME}\nPassword: {PASSWORD}\n\nVielen Dank,\nIhr SysCP-Team'; -$lng['mails']['createcustomer']['subject'] = 'Kontoinformationen'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Übersicht'; -$lng['admin']['ressourcedetails'] = 'Verbrauchte Ressourcen'; -$lng['admin']['systemdetails'] = 'Systemdetails'; -$lng['admin']['syscpdetails'] = 'SysCP-Details'; -$lng['admin']['installedversion'] = 'Installierte Version'; -$lng['admin']['latestversion'] = 'Neueste Version'; -$lng['admin']['lookfornewversion']['clickhere'] = 'per Webservice abfragen'; -$lng['admin']['lookfornewversion']['error'] = 'Fehler beim Auslesen'; -$lng['admin']['resources'] = 'Ressourcen'; -$lng['admin']['customer'] = 'Kunde'; -$lng['admin']['customers'] = 'Kunden'; -$lng['admin']['customer_add'] = 'Kunden anlegen'; -$lng['admin']['customer_edit'] = 'Kunden bearbeiten'; -$lng['admin']['domains'] = 'Domains'; -$lng['admin']['domain_add'] = 'Domain anlegen'; -$lng['admin']['domain_edit'] = 'Domain bearbeiten'; -$lng['admin']['subdomainforemail'] = 'Subdomains als E-Mail-Domains'; -$lng['admin']['admin'] = 'Admin'; -$lng['admin']['admins'] = 'Admins'; -$lng['admin']['admin_add'] = 'Admin anlegen'; -$lng['admin']['admin_edit'] = 'Admin bearbeiten'; -$lng['admin']['customers_see_all'] = 'Kann alle Kunden sehen?'; -$lng['admin']['domains_see_all'] = 'Kann alle Domains sehen?'; -$lng['admin']['change_serversettings'] = 'Kann Servereinstellungen bearbeiten?'; -$lng['admin']['server'] = 'Server'; -$lng['admin']['serversettings'] = 'Einstellungen'; -$lng['admin']['rebuildconf'] = 'Configs neuschreiben'; -$lng['admin']['stdsubdomain'] = 'Standardsubdomain'; -$lng['admin']['stdsubdomain_add'] = 'Standardsubdomain anlegen'; -$lng['admin']['phpenabled'] = 'PHP verfügbar'; -$lng['admin']['deactivated'] = 'Gesperrt'; -$lng['admin']['deactivated_user'] = 'Benutzer sperren'; -$lng['admin']['sendpassword'] = 'Passwort zusenden'; -$lng['admin']['ownvhostsettings'] = 'Eigene vHost-Einstellungen'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguration'; -$lng['admin']['configfiles']['files'] = 'Konfigurationsdateien: Bitte ändern Sie die entsprechenden Konfigurationsdateien
oder legen sie mit dem folgenden Inhalt neu an, falls sie nicht existieren.
Bitte beachten Sie: Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt.
Bitte ersetzen Sie "MYSQL_PASSWORD" manuell durch das entsprechende Passwort.
Falls Sie es vergessen haben sollten, finden Sie es in der Datei "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Kommandos: Bitte führen Sie die folgenden Kommandos in einer Shell aus.'; -$lng['admin']['configfiles']['restart'] = 'Neustart: Bitte führen Sie die folgenden Kommandos zum Neuladen
der Konfigurationsdateien in einer Shell aus.'; -$lng['admin']['templates']['templates'] = 'E-Mail-Vorlagen'; -$lng['admin']['templates']['template_add'] = 'Vorlage hinzufügen'; -$lng['admin']['templates']['template_edit'] = 'Vorlage bearbeiten'; -$lng['admin']['templates']['action'] = 'Aktion'; -$lng['admin']['templates']['email'] = 'E-Mail & Dateivorlagen'; -$lng['admin']['templates']['subject'] = 'Betreff'; -$lng['admin']['templates']['mailbody'] = 'Mailtext'; -$lng['admin']['templates']['createcustomer'] = 'Willkommensmail für neue Kunden'; -$lng['admin']['templates']['pop_success'] = 'Willkommensmail für neue E-Mail Konten'; -$lng['admin']['wwwserveralias'] = 'www. ServerAlias hinzufügen'; -$lng['admin']['templates']['template_replace_vars'] = 'Variablen, die in den Vorlagen ersetzt werden:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Wird mit dem Vornamen des Kunden ersetzt.'; -$lng['admin']['templates']['NAME'] = 'Wird mit dem Namen des Kunden ersetzt.'; -$lng['admin']['templates']['USERNAME'] = 'Wird mit dem Benutzernamen des neuen Kundenkontos ersetzt.'; -$lng['admin']['templates']['PASSWORD'] = 'Wird mit dem Passwort des neuen Kundenkontos ersetzt.'; -$lng['admin']['templates']['EMAIL'] = 'Wird mit der Adresse des neuen POP3/IMAP Kontos ersetzt.'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; -$lng['serversettings']['session_timeout']['description'] = 'Wie lange muss ein Benutzer inaktiv sein, damit die Session ungültig wird? (Sekunden)'; -$lng['serversettings']['accountprefix']['title'] = 'Kundenprefix'; -$lng['serversettings']['accountprefix']['description'] = 'Welchen Prefix sollen die Kundenaccounts haben?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL-Prefix'; -$lng['serversettings']['mysqlprefix']['description'] = 'Welchen Prefix sollen die MySQL-Benutzerkonten haben?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP-Prefix'; -$lng['serversettings']['ftpprefix']['description'] = 'Welchen Prefix sollen die FTP-Benutzerkonten haben?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Heimatverzeichnis'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Wo sollen alle Heimatverzeichnisse der Kunden liegen?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Apache-Logdateien-Verzeichnis'; -$lng['serversettings']['logfiles_directory']['description'] = 'Wo sollen alle Logdateien des Apache liegen?'; -$lng['serversettings']['ipaddress']['title'] = 'IP-Adresse'; -$lng['serversettings']['ipaddress']['description'] = 'Welche IP-Adresse hat der Server?'; -$lng['serversettings']['hostname']['title'] = 'Hostname'; -$lng['serversettings']['hostname']['description'] = 'Welchen Hostnamen hat der Server?'; -$lng['serversettings']['apachereload_command']['title'] = 'Apache-Reload-Command'; -$lng['serversettings']['apachereload_command']['description'] = 'Wie heisst das Skript zum Neuladen der Apache-Konfigurationsdateien?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Bind-Config-Directory'; -$lng['serversettings']['bindconf_directory']['description'] = 'Wo liegen die Bind-Konfigurationsdateien?'; -$lng['serversettings']['bindreload_command']['title'] = 'Bind-Reload-Command'; -$lng['serversettings']['bindreload_command']['description'] = 'Wie heisst das Skript zum Neuladen der Bind-Konfigurationsdateien?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Bind-Default-Zone'; -$lng['serversettings']['binddefaultzone']['description'] = 'Wie heißt die Default-Zone für alle Domains?'; -$lng['serversettings']['vmail_uid']['title'] = 'Mails-Uid'; -$lng['serversettings']['vmail_uid']['description'] = 'Welche UID sollen die E-Mails haben?'; -$lng['serversettings']['vmail_gid']['title'] = 'Mails-Gid'; -$lng['serversettings']['vmail_gid']['description'] = 'Welche GID sollen die E-Mails haben?'; -$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Homedir'; -$lng['serversettings']['vmail_homedir']['description'] = 'Wo sollen die E-Mails liegen?'; -$lng['serversettings']['adminmail']['title'] = 'Absenderadresse'; -$lng['serversettings']['adminmail']['description'] = 'Wie ist die Absenderadresse für E-Mails aus dem Panel?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin-URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'Wo liegt der phpMyAdmin? (muss mit http(s):// beginnen)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMail-URL'; -$lng['serversettings']['webmail_url']['description'] = 'Wo liegt das WebMail? (muss mit http(s):// beginnen)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP-URL'; -$lng['serversettings']['webftp_url']['description'] = 'Wo liegt das WebFTP? (muss mit http(s):// beginnen)'; -$lng['serversettings']['language']['description'] = 'Welche Sprache ist Ihre Standardsprache?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Maximale Loginversuche'; -$lng['serversettings']['maxloginattempts']['description'] = 'Maximale Anzahl an Loginversuchen bis der Account deaktiviert wird.'; -$lng['serversettings']['deactivatetime']['title'] = 'Länge der Deaktivierung'; -$lng['serversettings']['deactivatetime']['description'] = 'Zeitraum (in sek.) für den der Account deaktiviert ist.'; -$lng['serversettings']['pathedit']['title'] = 'Pfad-Eingabemethode'; -$lng['serversettings']['pathedit']['description'] = 'Soll ein Pfad via Dropdown-Menü ausgewählt oder manuell eingegeben werden können.'; -$lng['serversettings']['nameservers']['title'] = 'Nameserver'; -$lng['serversettings']['nameservers']['description'] = 'Eine durch Komma getrennte Liste mit den Hostnamen aller Nameserver. Der erste ist der primäre.'; -$lng['serversettings']['mxservers']['title'] = 'MX Server'; -$lng['serversettings']['mxservers']['description'] = 'Eine durch Komma getrenne Liste die ein Paar mit einer Nummer und den Hostnamen einen MX Servers, getrennt durch ein Leerzeichen, enthaelt (z.B. \'10 mx.example.com\').'; - -/** - * CHANGED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['mysql']['description'] = 'Hier können Sie MySQL-Datenbanken anlegen und löschen.
Die Änderungen werden sofort wirksam und die Datenbanken sofort benutzbar.
Im Menü finden Sie einen Link zum phpMyAdmin, mit dem Sie Ihre Datenbankeninhalte einfach bearbeiten können.

Die Zugangsdaten von php-Skripten sind wie folgt: (Die Angaben in kursiver Schrift sind durch die jeweiligen Einträge zu ersetzen!)
Hostname:
Benutzername: Datenbankname
Passwort: das gewählte Passwort
Datenbank: Datenbankname'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Letzter Cronjob'; -$lng['serversettings']['paging']['title'] = 'Einträge pro Seite'; -$lng['serversettings']['paging']['description'] = 'Wieviele Einträge sollen auf einer Seite gezeigt werden? (0 = Paging deaktivieren)'; -$lng['error']['ipstillhasdomains'] = 'Die IP/Port Kombination, die Sie löschen wollen ist noch bei einer oder mehreren Domains eingetragen. Bitte ändern sie die Domains vorher auf eine andere IP/Port Kombination um diese löschen zu können.'; -$lng['error']['cantdeletedefaultip'] = 'Sie können die Standard IP/Port Kombination für Reseller nicht löschen. Bitte setzen Sie eine andere IP/Port Kombination als Standard um diese löschen zu können.'; -$lng['error']['cantdeletesystemip'] = 'Sie können die letzte System IP nicht löschen. Entweder legen Sie eine neue IP/Port Kombination als Systemeinstellung an oder ändern die System IP.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'Sie müssen eine IP/Port Kombination auswählen, die den Standard defninieren soll.'; -$lng['error']['myipnotdouble'] = 'Diese Kombination aus IP und Post existiert bereits.'; -$lng['question']['admin_ip_reallydelete'] = 'Wollen Sie wirklich die IP %s löschen?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IPs und Ports'; -$lng['admin']['ipsandports']['add'] = 'IP/Port hinzufügen'; -$lng['admin']['ipsandports']['edit'] = 'IP/Port bearbeiten'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Port'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'Sie können die letzte System IP nicht löschen. Entweder legen Sie noch eine neue IP/Port Kombination als Systemeinstellung an oder ändern die System IP.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Sind Sie sicher, dass der DocumentRoot dieser Domain außerhalb des Heimatverzeichnisses des Kunden liegen soll?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Deaktiviert'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir-Pfad'; -$lng['domain']['docroot'] = 'Oben eingegebener Pfad'; -$lng['domain']['homedir'] = 'Heimverzeichnis'; -$lng['admin']['valuemandatory'] = 'Dieses Feld muss ausgefüllt werden'; -$lng['admin']['valuemandatorycompany'] = 'Entweder "Name" und "Vorname" oder "Firma" muss ausgefüllt werden'; -$lng['menue']['main']['username'] = 'Angemeldet als: '; -$lng['panel']['urloverridespath'] = 'URL (überschreibt Pfad)'; -$lng['panel']['pathorurl'] = 'Pfad oder URL'; -$lng['error']['sessiontimeoutiswrong'] = '"Session-Timeout" muss ein numerischer Wert sein.'; -$lng['error']['maxloginattemptsiswrong'] = '"Maximale Loginversuche" muss ein numerischer Wert sein.'; -$lng['error']['deactivatetimiswrong'] = '"Länge der Deaktivierung" muss numerisch sein.'; -$lng['error']['accountprefixiswrong'] = 'Das "Kundenprefix" ist falsch.'; -$lng['error']['mysqlprefixiswrong'] = 'Das "SQL-Prefix" ist falsch.'; -$lng['error']['ftpprefixiswrong'] = 'Das "FTP-Prefix" ist falsch.'; -$lng['error']['ipiswrong'] = 'Die "IP-Adresse" ist falsch. Es ist nur eine gültige IP-Adresse erlaubt.'; -$lng['error']['vmailuidiswrong'] = 'Die "Mails-UID" ist falsch. Nur eine numerische UID ist erlaubt.'; -$lng['error']['vmailgidiswrong'] = 'Die "Mails-GID" ist falsch. Nur eine numerische GID ist erlaubt.'; -$lng['error']['adminmailiswrong'] = 'Die "Absenderadresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; -$lng['error']['pagingiswrong'] = 'Die "Einträge pro Seite"-Einstellung ist falsch. Nur numerische Zeichen sind erlaubt.'; -$lng['error']['phpmyadminiswrong'] = 'Die "phpMyAdmin-URL" ist keine gültige URL.'; -$lng['error']['webmailiswrong'] = 'Die "WebMail-URL" ist keine gültige URL.'; -$lng['error']['webftpiswrong'] = 'Die "WebFTP-URL" ist keine gültige URL.'; -$lng['domains']['hasaliasdomains'] = 'Hat Aliasdomain(s)'; -$lng['serversettings']['defaultip']['title'] = 'Standard IP/Port'; -$lng['serversettings']['defaultip']['description'] = 'Welche IP/Port-Kombination soll standardmäßig verwendet werden?'; -$lng['domains']['statstics'] = 'Statistiken'; -$lng['panel']['ascending'] = 'aufsteigend'; -$lng['panel']['decending'] = 'absteigend'; -$lng['panel']['search'] = 'Suche'; -$lng['panel']['used'] = 'benutzt'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = 'Übersetzung'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = 'Der Wert des Feldes "%s" ist nicht im erwarteten Format.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Serversoftware'; -$lng['admin']['phpversion'] = 'PHP-Version'; -$lng['admin']['phpmemorylimit'] = 'PHP-Memory-Limit'; -$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; -$lng['admin']['mysqlclientversion'] = 'MySQL Client Version'; -$lng['admin']['webserverinterface'] = 'Webserver Interface'; -$lng['domains']['isassigneddomain'] = 'Ist zugewiesene Domain'; -$lng['serversettings']['phpappendopenbasedir']['title'] = 'An OpenBasedir anzuhängende Pfade'; -$lng['serversettings']['phpappendopenbasedir']['description'] = 'Diese (durch Doppelpunkte getrennten) Pfade werden dem OpenBasedir-Statement in jedem vhost-Container angehängt.'; - -// CHANGED IN 1.2.15-rc1 - -$lng['error']['loginnameissystemaccount'] = 'Sie können keinen Account anlegen, welcher wie ein Systemaccount aussieht (also zum Beispiel mit "%s" anfängt). Bitte wählen Sie einen anderen Accountnamen.'; -$lng['error']['youcantdeleteyourself'] = 'Aus Sicherheitsgründen können Sie sich nicht selbst löschen.'; -$lng['error']['youcanteditallfieldsofyourself'] = 'Hinweis: Aus Sicherheitsgründen können Sie nicht alle Felder Ihres eigenen Accounts bearbeiten.'; - -// ADDED IN 1.2.16-svn1 - -$lng['serversettings']['natsorting']['title'] = 'Natürliche Sortierung in der Listenansicht nutzen'; -$lng['serversettings']['natsorting']['description'] = 'Sortiert die Liste in der Reihenfolge web1 -> web2 -> web11 anstatt web1 -> web11 -> web2.'; - -// ADDED IN 1.2.16-svn2 - -$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot für deaktivierte Benutzer'; -$lng['serversettings']['deactivateddocroot']['description'] = 'Dieser Pfad wird als docroot für deaktivierte Benutzer verwendet. Wenn leer, wird kein vHost erstellt.'; - -// ADDED IN 1.2.16-svn4 - -$lng['panel']['reset'] = 'Änderungen verwerfen'; -$lng['admin']['accountsettings'] = 'Konteneinstellungen'; -$lng['admin']['panelsettings'] = 'Paneleinstellungen'; -$lng['admin']['systemsettings'] = 'Systemeinstellungen'; -$lng['admin']['webserversettings'] = 'Webservereinstellungen'; -$lng['admin']['mailserversettings'] = 'Mailservereinstellungen'; -$lng['admin']['nameserversettings'] = 'Nameservereinstellungen'; -$lng['admin']['updatecounters'] = 'Ressourcenverbrauch'; -$lng['question']['admin_counters_reallyupdate'] = 'Wollen Sie den Ressourcenverbrauch neu berechnen?'; -$lng['panel']['pathDescription'] = 'Wenn das Verzeichnis nicht existiert, wird es automatisch erstellt.'; - -// ADDED IN 1.2.16-svn6 - -$lng['mails']['trafficninetypercent']['mailbody'] = 'Sehr geehrte(r) {NAME},\n\nSie haben bereits {TRAFFICUSED} MB von Ihren insgesamt {TRAFFIC} MB Traffic verbraucht.\nDies sind mehr als 90%.\n\nVielen Dank,\ndas SysCP-Team'; -$lng['mails']['trafficninetypercent']['subject'] = 'Sie erreichen bald Ihr Traffic-Limit'; -$lng['admin']['templates']['trafficninetypercent'] = 'Hinweismail für Kunden, wenn sie 90% des Traffics verbraucht haben'; -$lng['admin']['templates']['TRAFFIC'] = 'Wird mit Traffic, der dem Kunden zugewiesen wurde, ersetzt.'; -$lng['admin']['templates']['TRAFFICUSED'] = 'Wird mit Traffic, der vom Kunden bereits verbraucht wurde, ersetzt.'; - -// ADDED IN 1.2.16-svn7 - -$lng['admin']['subcanemaildomain']['never'] = 'Nie'; -$lng['admin']['subcanemaildomain']['choosableno'] = 'Wählbar, Standardwert: Nein'; -$lng['admin']['subcanemaildomain']['choosableyes'] = 'Wählbar, Standardwert: Ja'; -$lng['admin']['subcanemaildomain']['always'] = 'Immer'; -$lng['changepassword']['also_change_webalizer'] = ' Auch Passwort vom Webalizer ändern'; - -// ADDED IN 1.2.16-svn8 - -$lng['serversettings']['mailpwcleartext']['title'] = 'Passwörter der Mail-Konten auch im Klartext in der Datenbank speichern'; -$lng['serversettings']['mailpwcleartext']['description'] = 'Wenn diese Einstellung auf Ja gesetzt wird, werden alle Passwörter auch unverschlüsselt (also im Klartext, für jeden mit Zugriff auf die SysCP-Datenbank sofort lesbar) in der mail_users-Tabelle gespeichert. Aktivieren Sie diese Option nur dann, wenn Sie sie wirklich gebrauchen!'; -$lng['serversettings']['mailpwcleartext']['removelink'] = 'Klicken Sie hier, um alle unverschlüsselten Passwörter aus der Tabelle zu entfernen.'; -$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Wollen Sie wirklich alle unverschlüsselten Passwörter aus der Tabelle mail_users entfernen? Dieser Schritt kann nicht rückgängig gemacht werden!'; -$lng['admin']['configfiles']['overview'] = 'Übersicht'; -$lng['admin']['configfiles']['wizard'] = 'Assistent'; -$lng['admin']['configfiles']['distribution'] = 'Distribution'; -$lng['admin']['configfiles']['service'] = 'Service'; -$lng['admin']['configfiles']['daemon'] = 'Daemon'; -$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; -$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; -$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; -$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; -$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; -$lng['admin']['configfiles']['etc'] = 'Sonstige (System)'; -$lng['admin']['configfiles']['choosedistribution'] = '-- Distribution wählen --'; -$lng['admin']['configfiles']['chooseservice'] = '-- Service wählen --'; -$lng['admin']['configfiles']['choosedaemon'] = '-- Daemon wählen --'; -$lng['admin']['trafficlastrun'] = 'Letzte Trafficberechnung'; - -// ADDED IN 1.2.16-svn10 - -$lng['serversettings']['ftpdomain']['title'] = 'FTP-Benutzerkonten @domain'; -$lng['serversettings']['ftpdomain']['description'] = 'Können Kunden FTP-Benutzerkonten user@customerdomain anlegen?'; -$lng['panel']['back'] = 'Zurück'; - -// ADDED IN 1.2.16-svn12 - -$lng['serversettings']['mod_log_sql']['title'] = 'Logs in Datenbank zwischenspeichern'; -$lng['serversettings']['mod_log_sql']['description'] = 'mod_log_sql benutzen um die Webzugriffe temporär zu speichern
Dies benötigt eine spezielle Apache-Konfiguration'; -$lng['serversettings']['mod_fcgid']['title'] = 'PHP über mod_fcgid/suexec einbinden'; -$lng['serversettings']['mod_fcgid']['description'] = 'mod_fcgid/suexec/libnss_mysql benutzen um PHP unter dem jeweiligen Useraccount laufen zu lassen
Dies benötigt eine spezielle Apache-Konfiguration'; -$lng['serversettings']['sendalternativemail']['title'] = 'Alternative E-Mail-Adresse benutzen'; -$lng['serversettings']['sendalternativemail']['description'] = 'Während des Erstellens eines Accounts das Passwort an eine andere E-Mail-Adresse senden'; -$lng['emails']['alternative_emailaddress'] = 'Alternative E-Mail-Adresse'; -$lng['mails']['pop_success_alternative']['mailbody'] = 'Hallo,\n\nihr E-Mail-Konto {USERNAME}\nwurde erfolgreich eingerichtet.\nIhr Passwort lautet {PASSWORD}.\n\nDies ist eine automatisch generierte\neMail, bitte antworten Sie nicht auf\ndiese Mitteilung.\n\nIhr SysCP-Team'; -$lng['mails']['pop_success_alternative']['subject'] = 'E-Mail-Konto erfolgreich eingerichtet'; -$lng['admin']['templates']['pop_success_alternative'] = 'Willkommensmail für neue E-Mail Konten für die alternative Email Addresse'; -$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Wird mit dem Passwort des neuen POP3/IMAP Kontos ersetzt.'; - -// ADDED IN 1.2.16-svn13 - -$lng['error']['documentrootexists'] = 'Es existiert noch ein Verzeichnis "%s" für diesen Kunden. Bitte dieses vorher löschen.'; - -// ADDED IN 1.2.16-svn14 - -$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vHost-Konfigurations-Datei/Verzeichnis-Name'; -$lng['serversettings']['apacheconf_vhost']['description'] = 'Wo soll die vHost-Konfigurationen abgelegt werden? Sie können entweder eine Datei (also mit allen vhosts) oder einen Ordner (mit einer Datei pro vhost) angeben.'; -$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache Verzeichnisoption-Konfigurations-Datei/Verzeichnis-Name'; -$lng['serversettings']['apacheconf_diroptions']['description'] = 'Wo soll die Verzeichnisoption-Konfigurationen abgelegt werden? Sie können entweder eine Datei (also mit allen vhosts) oder einen Ordner (mit einer Datei pro vhost) angeben.'; -$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd Verzeichnisname'; -$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Wo sollen die htpasswd-Dateien fü den Verzeichnisschutz abgelegt werden?'; - -// ADDED IN 1.2.16-svn15 - -$lng['error']['formtokencompromised'] = 'Das Formular scheint manipuliert worden zu sein. Aus Sicherheitsgründen wurden Sie ausgelogged.'; -$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; -$lng['serversettings']['mysql_access_host']['description'] = 'Eine durch Komma getrennte Liste mit den Hostnamen aller Hostnames/IP-Adressen, von denen sich die Benutzer einloggen dürfen.'; - -// CHANGED IN 1.2.18 - -$lng['serversettings']['mod_log_sql']['description'] = 'mod_log_sql benutzen um die Webzugriffe temporär zu speichern
Dies benötigt eine spezielle Apache-Konfiguration'; -$lng['serversettings']['mod_fcgid']['description'] = 'mod_fcgid/suexec/libnss_mysql benutzen um PHP unter dem jeweiligen Useraccount laufen zu lassen
Dies benötigt eine spezielle Apache-Konfiguration. Alle nachfolgenden Optionen sind nur gültig wenn das Modul aktiviert wird.'; - -// ADDED IN 1.2.18-svn1 - -$lng['admin']['ipsandports']['create_listen_statement'] = 'Erstelle Listen-Eintrag'; -$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Erstelle NameVirtualHost-Eintrag'; -$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Erstelle vHost-Container'; -$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Erstelle ServerName-Eintrag im vHost-Container'; - -// ADDED IN 1.2.18-svn2 - -$lng['admin']['webalizersettings'] = 'Webalizereinstellungen'; -$lng['admin']['webalizer']['normal'] = 'Normal'; -$lng['admin']['webalizer']['quiet'] = 'Leise'; -$lng['admin']['webalizer']['veryquiet'] = 'Keine Ausgaben'; -$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizerausgabe'; -$lng['serversettings']['webalizer_quiet']['description'] = 'Ausgabefreudigkeit des webalizer-Programms'; - -// ADDED IN 1.2.18-svn3 - -$lng['ticket']['admin_email'] = 'root@localhost'; -$lng['ticket']['noreply_email'] = 'tickets@syscp'; -$lng['admin']['ticketsystem'] = 'Support-Tickets'; -$lng['menue']['ticket']['ticket'] = 'Support Tickets'; -$lng['menue']['ticket']['categories'] = 'Support Kategorien'; -$lng['menue']['ticket']['archive'] = 'Ticket-Archiv'; -$lng['ticket']['description'] = 'Hier können Sie Hilfe-Anfragen an Ihren zuständigen Administrator senden.
Benachrichtigungen werden per E-Mail verschickt.'; -$lng['ticket']['ticket_new'] = 'Neues Support-Ticket erstellen'; -$lng['ticket']['ticket_reply'] = 'Auf Support-Ticket antworten'; -$lng['ticket']['ticket_reopen'] = 'Ticket wiedereröffnen'; -$lng['ticket']['ticket_newcateory'] = 'Neue Kategorie erstellen'; -$lng['ticket']['ticket_editcateory'] = 'Kategorie bearbeiten'; -$lng['ticket']['ticket_view'] = 'Ticketverlauf ansehen'; -$lng['ticket']['ticketcount'] = 'Anzahl Tickets'; -$lng['ticket']['ticket_answers'] = 'Antworten'; -$lng['ticket']['lastchange'] = 'Letzte Aktualisierung'; -$lng['ticket']['subject'] = 'Betreff'; -$lng['ticket']['status'] = 'Status'; -$lng['ticket']['lastreplier'] = 'Letzte Antwort'; -$lng['ticket']['priority'] = 'Priorität'; -$lng['ticket']['low'] = 'Niedrig'; -$lng['ticket']['normal'] = 'Normal'; -$lng['ticket']['high'] = 'Hoch'; -$lng['ticket']['unf_low'] = 'Niedrig'; -$lng['ticket']['unf_normal'] = 'Normal'; -$lng['ticket']['unf_high'] = 'Hoch'; -$lng['ticket']['lastchange'] = 'Letzte Änderung'; -$lng['ticket']['lastchange_from'] = 'Anfangsdatum (tt.mm.jjjj)'; -$lng['ticket']['lastchange_to'] = 'Enddatum (tt.mm.jjjj)'; -$lng['ticket']['category'] = 'Kategorie'; -$lng['ticket']['no_cat'] = 'Keine'; -$lng['ticket']['message'] = 'Nachricht'; -$lng['ticket']['show'] = 'Anschauen'; -$lng['ticket']['answer'] = 'Antworten'; -$lng['ticket']['close'] = 'Schließen'; -$lng['ticket']['reopen'] = 'Wiedereröffnen'; -$lng['ticket']['archive'] = 'Archivieren'; -$lng['ticket']['ticket_delete'] = 'Ticket löschen'; -$lng['ticket']['lastarchived'] = 'Zuletzt archivierte Tickets'; -$lng['ticket']['archivedtime'] = 'Archiviert'; -$lng['ticket']['open'] = 'Offen'; -$lng['ticket']['wait_reply'] = 'Warte auf Antwort'; -$lng['ticket']['replied'] = 'Beantwortet'; -$lng['ticket']['closed'] = 'Geschlossen'; -$lng['ticket']['staff'] = 'Mitarbeiter'; -$lng['ticket']['customer'] = 'Kunde'; -$lng['ticket']['old_tickets'] = 'Bisheriger Ticketverlauf'; -$lng['ticket']['search'] = 'Archiv durchsuchen'; -$lng['ticket']['nocustomer'] = 'Keine Angabe'; -$lng['ticket']['archivesearch'] = 'Archiv Suchergebnis'; -$lng['ticket']['noresults'] = 'Keine Tickets gefunden'; -$lng['ticket']['notmorethanxopentickets'] = 'Zum Schutz gegen Spam können Sie nicht mehr als %s offene Tickets haben'; -$lng['ticket']['supportstatus'] = 'Support-Status'; -$lng['ticket']['supportavailable'] = 'Der Support ist besetzt und steht zu Ihrer Verfügung.'; -$lng['ticket']['supportnotavailable'] = 'Der Support ist zur Zeit nicht besetzt.'; -$lng['admin']['templates']['ticket'] = 'Benachrichtigungs-Mails für Support-Tickets'; -$lng['admin']['templates']['SUBJECT'] = 'Wird mit dem Betreff des Support-Tickets ersetzt'; -$lng['admin']['templates']['new_ticket_for_customer'] = 'Kunden-Information das das Ticket übermittelt wurde'; -$lng['admin']['templates']['new_ticket_by_customer'] = 'Admin-Benachrichtigung für ein Ticket eines Kunden'; -$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admin-Benachrichtigung für ein beantwortetes Ticket'; -$lng['admin']['templates']['new_ticket_by_staff'] = 'Kunden-Benachrichtigung für ein Ticket eines Mitarbeiters'; -$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Kunden-Benachrichtigung für ein beantwortetes Ticket'; -$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nihr Support-Ticket mit dem Betreff "{SUBJECT}" wurde erfolgreich gesendet.\n\nSobald ihr Ticket beantwortet wurde, werden Sie per E-Mail benachrichtigt.\n\nVielen Dank,\nthe SysCP-Team'; -$lng['mails']['new_ticket_for_customer']['subject'] = 'Wir haben Ihr Support-Ticket erhalten.'; -$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hallo Admin,\n\nein neues Support-Ticket wurde uebermittelt.\n\nBitte melde Dich an um es aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; -$lng['mails']['new_ticket_by_customer']['subject'] = 'Neues Support-Ticket'; -$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hallo Admin,\n\ndas Support-Ticket "{SUBJECT}" wurde von einem Kunden beantwortet.\n\nBitte melde Dich an um es aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; -$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Neue Antwort zu einem Support-Ticket'; -$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nein Support-Ticket mit dem Betreff "{SUBJECT}" wurde an Sie übermittelt.\n\nBitte melden Sie sich an, um das Ticket aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; -$lng['mails']['new_ticket_by_staff']['subject'] = 'Neues Support-Ticket'; -$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\ndas Support-Ticket mit dem Betreff "{SUBJECT}" wurde von einem Mitarbeiter beantwortet.\n\nBitte melden Sie sich an, um das Ticket aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; -$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Neue Antwort zu einem Support-Ticket'; -$lng['question']['ticket_reallyclose'] = 'Wollen Sie das Ticket "%s" wirklich schließen?'; -$lng['question']['ticket_reallydelete'] = 'Wollen Sie das Ticket "%s" wirklich löschen?'; -$lng['question']['ticket_reallydeletecat'] = 'Wollen Sie die Kategorie "%s" wirklich löschen?'; -$lng['question']['ticket_reallyarchive'] = 'Wollen Sie das Ticket "%s" wirklich in das Archiv verschieben?'; -$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; -$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; -$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; -$lng['error']['nomoreticketsavailable'] = 'Sie haben Ihr Ticketkontingent aufgebraucht. Bitte kontaktieren Sie ihren Administrator.'; -$lng['error']['nocustomerforticket'] = 'Keine Kunden vorhanden um ein Ticket zu erstellen.'; -$lng['error']['categoryhastickets'] = 'In dieser Kategorie befinden sich noch Tickets.
Bitte löschen Sie diese um die Kategorie zu löschen'; -$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; -$lng['admin']['ticketsettings'] = 'Support-Ticket Einstellungen'; -$lng['admin']['archivelastrun'] = 'Letzte Ticket-Archivierung'; -$lng['serversettings']['ticket']['noreply_email']['title'] = 'Keine-Antwort E-Mail Adresse'; -$lng['serversettings']['ticket']['noreply_email']['description'] = 'Die Absender-Adresse der Support-Tickets. Meist sowas wie KEINE-ANTWORT@domain.tld'; -$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Beginn Support-Zeit (hh:mm)'; -$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Beginn der Zeit in der der Support besetzt ist.'; -$lng['serversettings']['ticket']['worktime_end']['title'] = 'Ende Support-Zeit (hh:mm)'; -$lng['serversettings']['ticket']['worktime_end']['description'] = 'Ende der Zeit in der der Support besetzt ist.'; -$lng['serversettings']['ticket']['worktime_sat'] = 'Support an Samstagen besetzt?'; -$lng['serversettings']['ticket']['worktime_sun'] = 'Support an Sonntagen besetzt?'; -$lng['serversettings']['ticket']['worktime_all']['title'] = 'Kein zeitlich begrenzter Support'; -$lng['serversettings']['ticket']['worktime_all']['description'] = 'Wenn "Ja" überschreibt diese Option Start- und Endzeit des Supports'; -$lng['serversettings']['ticket']['archiving_days'] = 'Nach wievielen Tagen sollen abgeschlossene Tickets archiviert werden?'; -$lng['customer']['tickets'] = 'Support-Tickets'; - -// ADDED IN 1.2.18-svn4 - -$lng['admin']['domain_nocustomeraddingavailable'] = 'Es können derzeit keine Domains angelegt werden. Sie müssen zuerst einen Kunden anlegen'; -$lng['serversettings']['ticket']['enable'] = 'Ticketsystem aktivieren'; -$lng['serversettings']['ticket']['concurrentlyopen'] = 'Wieviele Tickets kann ein Kunde gleichzeitig öffnen?'; -$lng['error']['norepymailiswrong'] = 'Die "Keine-Antwort-Adresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; -$lng['error']['tadminmailiswrong'] = 'Die "Ticket-Admin-Adresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; -$lng['ticket']['awaitingticketreply'] = 'Sie haben %s unbeantwortete(s) Support-Ticket(s)'; - -// ADDED IN 1.2.18-svn5 - -$lng['serversettings']['ticket']['noreply_name'] = 'Ticket E-Mail Absendername'; - -// ADDED IN 1.2.19-svn - -$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'Konfigurations-Verzeichnis'; -$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'Wo sollen alle Konfigurationsdateien von fcgid liegen? Wenn Sie keine selbst kompilierte suexec Binary benutzen, was in der Regel der Fall ist, muss dieser Pfad unter /var/www/ liegen.'; -$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'Temporäres Verzeichnis'; - -// ADDED IN 1.2.19-svn3 - -$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Turnus verbrauchte Tickets zurücksetzen'; -$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Setzt die Anzahl der vom Kunden verbrauchten Tickets in dem angegebenen Turnus auf 0'; -$lng['admin']['tickets']['daily'] = 'Täglich'; -$lng['admin']['tickets']['weekly'] = 'Wöchentlich'; -$lng['admin']['tickets']['monthly'] = 'Monatlich'; -$lng['admin']['tickets']['yearly'] = 'Jährlich'; -$lng['error']['ticketresetcycleiswrong'] = 'Der Turnus des Ticket-Zurücksetzen muss "Täglich", "Wöchentlich", "Monatlich" oder "Jährlich" sein.'; - -// ADDED IN 1.2.19-svn4 - -$lng['menue']['traffic']['traffic'] = 'Traffic'; -$lng['menue']['traffic']['current'] = 'Aktueller Monat'; -$lng['traffic']['month'] = "Monat"; -$lng['traffic']['months'][1] = "Januar"; -$lng['traffic']['months'][2] = "Februar"; -$lng['traffic']['months'][3] = "März"; -$lng['traffic']['months'][4] = "April"; -$lng['traffic']['months'][5] = "Mai"; -$lng['traffic']['months'][6] = "Juni"; -$lng['traffic']['months'][7] = "Juli"; -$lng['traffic']['months'][8] = "August"; -$lng['traffic']['months'][9] = "September"; -$lng['traffic']['months'][10] = "Oktober"; -$lng['traffic']['months'][11] = "November"; -$lng['traffic']['months'][12] = "Dezember"; -$lng['traffic']['mb'] = "Traffic (MB)"; -$lng['traffic']['day'] = "Tag"; -$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; -$lng['traffic']['sumhttp'] = 'Summe HTTP-Traffic in'; -$lng['traffic']['sumftp'] = 'Summe FTP-Traffic in'; -$lng['traffic']['summail'] = 'Summe Mail-Traffic in'; - -// ADDED IN 1.2.19-svn4.5 - -$lng['serversettings']['no_robots']['title'] = 'Erlaube die Indizierung Ihres Froxlor durch Suchmaschinen'; - -// ADDED IN 1.2.19-svn6 - -$lng['admin']['loggersettings'] = 'Log Einstellungen'; -$lng['serversettings']['logger']['enable'] = 'Logging ja/nein'; -$lng['serversettings']['logger']['severity'] = 'Logging Level'; -$lng['admin']['logger']['normal'] = 'Normal'; -$lng['admin']['logger']['paranoid'] = 'Paranoid'; -$lng['serversettings']['logger']['types']['title'] = 'Log-Art(en)'; -$lng['serversettings']['logger']['types']['description'] = 'Tragen Sie hier die gewünschten Logtypen kommagetrennt ein.
Mögliche Logtypen sind: syslog, file, mysql'; -$lng['serversettings']['logger']['logfile'] = 'Log-Datei Pfad inklusive Dateinamen'; -$lng['error']['logerror'] = 'Log-Fehler: %s'; -$lng['serversettings']['logger']['logcron'] = 'Log Cronjobs (einen Durchgang)'; -$lng['question']['logger_reallytruncate'] = 'Wollen Sie die Tabelle "%s" wirklich leeren?'; -$lng['admin']['loggersystem'] = 'System-Logging'; -$lng['menue']['logger']['logger'] = 'System-Logging'; -$lng['logger']['date'] = 'Datum'; -$lng['logger']['type'] = 'Typ'; -$lng['logger']['action'] = 'Aktion'; -$lng['logger']['user'] = 'Benutzer'; -$lng['logger']['truncate'] = 'Log leeren'; - -// ADDED IN 1.2.19-svn7 - -$lng['serversettings']['ssl']['use_ssl'] = 'SSL nutzen'; -$lng['serversettings']['ssl']['ssl_cert_file'] = 'Pfad zum Zertifikat'; -$lng['serversettings']['ssl']['openssl_cnf'] = 'Standardwerte zum Erstellen eines Zertifikats'; -$lng['panel']['reseller'] = 'Reseller'; -$lng['panel']['admin'] = 'Administrator'; -$lng['panel']['customer'] = 'Kunde/n'; -$lng['error']['nomessagetosend'] = 'Keine Nachricht angegeben'; -$lng['error']['noreceipientsgiven'] = 'Keine Empfänger angegeben'; -$lng['admin']['emaildomain'] = 'E-Maildomain'; -$lng['admin']['email_only'] = 'Nur E-Mail?'; -$lng['admin']['wwwserveralias'] = 'Einen "www." ServerAlias hinzufügen'; -$lng['admin']['ipsandports']['enable_ssl'] = 'Ist dies ein SSL-Port?'; -$lng['admin']['ipsandports']['ssl_cert_file'] = 'Pfad zum Zertifikat'; -$lng['panel']['send'] = 'Versenden'; -$lng['admin']['subject'] = 'Betreff'; -$lng['admin']['receipient'] = 'Empfänger'; -$lng['admin']['message'] = 'Rundmail senden'; -$lng['admin']['text'] = 'Nachricht'; -$lng['menu']['message'] = 'Nachrichten'; -$lng['error']['errorsendingmail'] = 'Das Versenden der Nachricht an "%s" schlug fehl.'; -$lng['error']['cannotreaddir'] = 'Der Ordner "%s" kann nicht gelesen werden'; -$lng['message']['success'] = 'Nachricht erfolgreich an %s Empfänger gesendet'; -$lng['message']['noreceipients'] = 'Es wurde keine E-Mail versendet da sich keine Empfänger in der Datenbank befinden'; -$lng['admin']['sslsettings'] = 'SSL Einstellungen'; -$lng['cronjobs']['notyetrun'] = 'Bisher nicht gestartet'; -$lng['install']['servername_should_be_fqdn'] = 'Der Servername sollte eine FQDN sein und keine IP Adresse'; -$lng['serversettings']['default_vhostconf']['title'] = 'Standard Vhost-Einstellungen'; -$lng['serversettings']['default_vhostconf']['description'] = 'Der Inhalt dieses Feldes wird direkt in jeden Domain-vHost-Container übernommen. Achtung: Der Code wird nicht auf Fehler geprüft. Etwaige Fehler werden also auch übernommen. Apache könnte nicht mehr starten!'; -$lng['error']['invalidip'] = 'Ungültige IP Adresse: %s'; -$lng['serversettings']['decimal_places'] = 'Nachkommastellen bei der Ausgabe von Traffic/Webspace'; - -// ADDED IN 1.2.19-svn8 - -$lng['admin']['dkimsettings'] = 'DomainKey - Einstellungen'; -$lng['dkim']['dkim_prefix']['title'] = 'Prefix'; -$lng['dkim']['dkim_prefix']['description'] = 'Wie lautet der Pfad zu den DKIM RSA-Dateien sowie den Einstellungsdateien des Milter-Plugins?'; -$lng['dkim']['dkim_domains']['title'] = 'Domains Dateiname'; -$lng['dkim']['dkim_domains']['description'] = 'Dateiname der DKIM Domains Angabe aus der dkim-milter-Konfigurationsdatei'; -$lng['dkim']['dkim_dkimkeys']['title'] = 'KeyList Dateiname'; -$lng['dkim']['dkim_dkimkeys']['description'] = 'Dateiname der DKIM KeyList Angabe aus der dkim-milter-Konfigurationsdatei'; -$lng['dkim']['dkimrestart_command']['title'] = 'Milter Restart Kommando'; -$lng['dkim']['dkimrestart_command']['description'] = 'Wie lautet das Kommando zum Neustarten des DKIM Milter Dienstes?'; - -// ADDED IN 1.2.19-svn9 - -$lng['admin']['caneditphpsettings'] = 'Kann PHP-bezogene Domaineinstellungen machen?'; - -// ADDED IN 1.2.19-svn12 - -$lng['admin']['allips'] = 'Alle IP\'s'; -$lng['panel']['nosslipsavailable'] = 'Für diesen Server wurden noch keine SSL IP/Port Kombinationen eingetragen'; -$lng['ticket']['by'] = 'von'; -$lng['dkim']['use_dkim']['title'] = 'DKIM Support aktivieren?'; -$lng['dkim']['use_dkim']['description'] = 'Wollen Sie das Domain Keys (DKIM) System benutzen?'; -$lng['error']['invalidmysqlhost'] = 'Ungültige MySQL Host Adresse: %s'; -$lng['error']['cannotuseawstatsandwebalizeratonetime'] = 'Webalizer und Awstats können nicht zur gleichen Zeit aktiviert werden, bitte wählen Sie eines aus'; -$lng['serversettings']['webalizer_enabled'] = 'Nutze Webalizer Statistiken'; -$lng['serversettings']['awstats_enabled'] = 'Nutze AWStats Statistiken'; -$lng['admin']['awstatssettings'] = 'Awstats Einstellungen'; -$lng['serversettings']['awstats_domain_file']['title'] = 'Awstats Domain-Dateien Ordner'; -$lng['serversettings']['awstats_model_file']['title'] = 'Awstats Model Datei'; - -// ADDED IN 1.2.19-svn16 - -$lng['admin']['domain_dns_settings'] = 'Domain DNS Einstellungen'; -$lng['dns']['destinationip'] = 'Domain IP'; -$lng['dns']['standardip'] = 'Server Standard IP'; -$lng['dns']['a_record'] = 'A-Eintrag (IPv6 optional)'; -$lng['dns']['cname_record'] = 'CNAME-Eintrag'; -$lng['dns']['mxrecords'] = 'MX Einträge definieren'; -$lng['dns']['standardmx'] = 'Server Standard MX Eintrag'; -$lng['dns']['mxconfig'] = 'Eigene MX Einträge'; -$lng['dns']['priority10'] = 'Priorität 10'; -$lng['dns']['priority20'] = 'Priorität 20'; -$lng['dns']['txtrecords'] = 'TXT Einträge definieren'; -$lng['dns']['txtexample'] = 'Beispiel (SPF-Eintrag):
v=spf1 ip4:xxx.xxx.xx.0/23 -all'; -$lng['serversettings']['selfdns']['title'] = 'Manuelle DNS Einstellungen für Domains'; -$lng['serversettings']['selfdnscustomer']['title'] = 'Erlaube Kunden eigene DNS Einstellungen vornehmen zu können'; -$lng['admin']['activated'] = 'Aktiviert'; -$lng['admin']['statisticsettings'] = 'Statistik Einstellungen'; -$lng['admin']['or'] = 'oder'; - -// ADDED IN 1.2.19-svn17 - -$lng['serversettings']['unix_names']['title'] = 'Benutze UNIX kompatible Benutzernamen'; -$lng['serversettings']['unix_names']['description'] = 'Erlaubt die Nutzung von - und _ in Benutzernamen wenn Nein'; -$lng['error']['cannotwritetologfile'] = 'Logdatei %s konnte nicht für Schreiboperationen geöffnet werden.'; -$lng['admin']['sysload'] = 'System-Auslastung'; -$lng['admin']['noloadavailable'] = 'nicht verfügbar'; -$lng['admin']['nouptimeavailable'] = 'nicht verfügbar'; -$lng['panel']['backtooverview'] = 'Zurück zur Übersicht'; -$lng['admin']['nosubject'] = '(Kein Betreff)'; -$lng['admin']['configfiles']['statistics'] = 'Statistik'; -$lng['login']['forgotpwd'] = 'Passwort vergessen?'; -$lng['login']['presend'] = 'Passwort zurücksetzen'; -$lng['login']['email'] = 'E-Mail Adresse'; -$lng['login']['remind'] = 'Passwort zurücksetzen'; -$lng['login']['usernotfound'] = 'Fehler: Unbekannter Benutzer!'; -$lng['pwdreminder']['subject'] = 'Froxlor - Passwort zurückgesetzt'; -$lng['pwdreminder']['body'] = 'Hallo %s,\n\nIhr Froxlor Passwort wurde zurückgesetzt!\nDas neue Passwort lautet: %p\n\nVielen Dank,\nIhr SysCP-Team'; -$lng['pwdreminder']['success'] = 'Passwort erfolgreich zurückgesetzt.
Sie sollten nun eine E-Mail mit dem neuen Passwort erhalten.'; - -// ADDED IN 1.2.19-svn18 - -$lng['serversettings']['allow_password_reset']['title'] = 'Erlaube das Zurücksetzen des Kundenpassworts'; -$lng['pwdreminder']['notallowed'] = 'Das Zurücksetzen des Passworts ist deaktiviert'; - -// ADDED IN 1.2.19-svn20 - -$lng['serversettings']['awstats_path']['title'] = 'Pfad zum awstats cgi-bin Ordner'; -$lng['serversettings']['awstats_path']['description'] = 'z.B. /usr/share/webapps/awstats/6.1/webroot/cgi-bin/'; -$lng['serversettings']['awstats_updateall_command']['title'] = 'Pfad zu "awstats_updateall.pl"'; -$lng['serversettings']['awstats_updateall_command']['description'] = 'z.B. /usr/bin/awstats_updateall.pl'; - -// ADDED IN 1.2.19-svn21 - -$lng['customer']['title'] = 'Titel'; -$lng['customer']['country'] = 'Land'; -$lng['panel']['dateformat'] = 'JJJJ-MM-TT'; -$lng['panel']['dateformat_function'] = 'd.m.Y'; - -// Y = Year, m = Month, d = Day - -$lng['panel']['timeformat_function'] = 'H:i:s'; - -// H = Hour, i = Minute, s = Second - -$lng['panel']['default'] = 'Standard'; -$lng['panel']['never'] = 'Nie'; -$lng['panel']['active'] = 'Aktiv'; -$lng['panel']['please_choose'] = 'Bitte auswählen'; -$lng['panel']['allow_modifications'] = 'Änderungen zulassen'; -$lng['domains']['add_date'] = 'Zu Froxlor hinzugefügt'; -$lng['domains']['registration_date'] = 'Bei Registry hinzugefügt'; -$lng['domains']['topleveldomain'] = 'Top-Level-Domain'; - -// ADDED IN 1.2.19-svn22 - -$lng['serversettings']['allow_password_reset']['description'] = 'Kunden können ihr Passwort zurücksetzen und bekommen ein Neues per E-Mail zugesandt'; -$lng['serversettings']['allow_password_reset_admin']['title'] = 'Erlaube das Zurücksetzen von Admin-/Reseller-Passwörtern.'; -$lng['serversettings']['allow_password_reset_admin']['description'] = 'Admins/Reseller können ihr Passwort zurücksetzen und bekommen ein Neues per E-Mail zugesandt'; - -// ADDED IN 1.2.19-svn25 -// Mailquota - -$lng['emails']['quota'] = 'Kontingent'; -$lng['emails']['noquota'] = 'Kein Kontingent'; -$lng['emails']['updatequota'] = 'Update Kontingent'; -$lng['serversettings']['mail_quota']['title'] = 'Mailbox-Kontingent'; -$lng['serversettings']['mail_quota']['description'] = 'Standard-Kontingent für neuerstellte E-Mail Benutzerkonten (MegaByte)'; -$lng['serversettings']['mail_quota_enabled']['title'] = 'Nutze E-Mail Kontingent für Kunden'; -$lng['serversettings']['mail_quota_enabled']['description'] = 'Aktiviere Kontingent für E-Mailkonten. Standard ist Nein da dies eine spezielle Konfiguration voraussetzt.'; -$lng['serversettings']['mail_quota_enabled']['removelink'] = 'Hier klicken, um alle E-Mail Kontingente zu entfernen'; -$lng['serversettings']['mail_quota_enabled']['enforcelink'] = 'Hier klicken, um allen Benutzern das Standard Kontingent zu zuweisen'; -$lng['question']['admin_quotas_reallywipe'] = 'Sind Sie sicher, dass alle E-Mail Kontingente aus der Tabelle mail_users entfernt werden sollen? Dieser Schritt kann nicht rückgängig gemacht werden!'; -$lng['question']['admin_quotas_reallyenforce'] = 'Sind Sie sicher, dass sie allen Benutzern das default Quota zuweisen wollen? Dies kann nicht rückgängig gemacht werden!'; -$lng['error']['vmailquotawrong'] = 'Die Kontingent-Größe muss positiv sein.'; -$lng['customer']['email_quota'] = 'E-Mail Kontingent'; -$lng['customer']['email_imap'] = 'E-Mail IMAP'; -$lng['customer']['email_pop3'] = 'E-Mail POP3'; -$lng['customer']['mail_quota'] = 'E-Mail Kontingent'; -$lng['panel']['megabyte'] = 'MegaByte'; -$lng['emails']['quota_edit'] = 'E-Mail Kontingent ändern'; -$lng['panel']['not_supported'] = 'Nicht ünterstüzt in: '; -$lng['error']['allocatetoomuchquota'] = 'Sie versuchen %s MB ' . $lng['emails']['quota'] . ' zu zuweisen, haben aber nicht genug übrig.'; - -// Autoresponder module - -$lng['menue']['email']['autoresponder'] = 'Abwesenheitsnachrichten'; -$lng['autoresponder']['active'] = 'Aktiviert'; -$lng['autoresponder']['autoresponder_add'] = 'Abwesenheitsnachricht hinzufügen'; -$lng['autoresponder']['autoresponder_edit'] = 'Abwesenheitsnachricht bearbeiten'; -$lng['autoresponder']['autoresponder_new'] = 'Neue Abwesenheitsnachricht erstellen'; -$lng['autoresponder']['subject'] = 'Betreff'; -$lng['autoresponder']['message'] = 'Nachricht'; -$lng['autoresponder']['account'] = 'Konto'; -$lng['autoresponder']['sender'] = 'Absender'; -$lng['question']['autoresponderdelete'] = 'Abwesenheitsnachricht wirklich löschen?'; -$lng['error']['noemailaccount'] = 'Es gibt zwei mögliche Gründe warum keine Abwesenheitsnachricht erstellt werden kann: Sie benötigen mindestens einen E-Mail Account. Zweitens kann es sein dass bereits für alle Accounts eine Abwesenheitsnachricht eingerichtet wurde.'; -$lng['error']['missingfields'] = 'Es wurden nicht alle Felder augefüllt.'; -$lng['error']['accountnotexisting'] = 'Der angegebene E-Mail-Account existiert nicht.'; -$lng['error']['autoresponderalreadyexists'] = 'Für dieses Konto existiert bereits eine Abwesenheitsnachricht.'; -$lng['error']['invalidautoresponder'] = 'Das angegebene Konto ist ungültig.'; -$lng['serversettings']['autoresponder_active']['title'] = 'Abwesenheitsnachrichten-Modul verwenden'; -$lng['serversettings']['autoresponder_active']['description'] = 'Möchten Sie das Abwesenheitsnachrichten-Modul verwenden? Dazu muss ein separater Cronjob eingerichtet sein.'; -$lng['invoice']['active'] = 'Rechnung aktiviert'; -$lng['admin']['show_version_login']['title'] = 'Zeige Froxlor Version beim Login'; -$lng['admin']['show_version_login']['description'] = 'Zeige Froxlor Version in der Fußzeile der Loginseite'; -$lng['admin']['show_version_footer']['title'] = 'Zeige Froxlor Version in Fußzeile'; -$lng['admin']['show_version_footer']['description'] = 'Zeige Froxlor Version in der Fußzeile aller anderen Seiten'; -$lng['admin']['syscp_graphic']['title'] = 'Grafik im Kopfbereich des Panels'; -$lng['admin']['syscp_graphic']['description'] = 'Welche Grafik soll im Kopfbereich des Panels anstatt des Froxlor Logos angezeigt werden?'; - -//improved syscp - -$lng['menue']['phpsettings']['maintitle'] = 'PHP Konfigurationen'; -$lng['admin']['phpsettings']['title'] = 'PHP Konfiguration'; -$lng['admin']['phpsettings']['description'] = 'Kurzbeschreibung'; -$lng['admin']['phpsettings']['actions'] = 'Aktionen'; -$lng['admin']['phpsettings']['activedomains'] = 'In Verwendung für Domain(s)'; -$lng['admin']['phpsettings']['notused'] = 'Konfiguration wird nicht verwendet'; -$lng['admin']['misc'] = 'Sonstiges'; -$lng['admin']['phpsettings']['editsettings'] = 'PHP Konfiguration bearbeiten'; -$lng['admin']['phpsettings']['addsettings'] = 'PHP Konfiguration erstellen'; -$lng['admin']['phpsettings']['viewsettings'] = 'PHP Konfiguration ansehen'; -$lng['admin']['phpsettings']['phpinisettings'] = 'php.ini Einstellungen'; -$lng['error']['nopermissionsorinvalidid'] = 'Entweder fehlen Ihnen die nötigen Rechte diese Einstellung zu ändern oder es wurde eine ungültige Id übergeben'; -$lng['panel']['view'] = 'ansehen'; -$lng['question']['phpsetting_reallydelete'] = 'Wollen Sie diese PHP Einstellungen wirklich löschen? Alle Domains die diese Einstellungen bis jetzt verwendet haben, werden dann auf die Standard Einstellungen umgestellt.'; -$lng['admin']['phpsettings']['addnew'] = 'Neue Konfiguration erstellen'; -$lng['error']['phpsettingidwrong'] = 'Eine PHP Konfiguration mit dieser Id existiert nicht'; -$lng['error']['descriptioninvalid'] = 'Der Beschreibungstext ist zu kurz, zu lang oder enthält ungültige Zeichen'; -$lng['error']['info'] = 'Info'; -$lng['admin']['phpconfig']['template_replace_vars'] = 'Variablen, die in den Konfigurationen ersetzt werden'; -$lng['admin']['phpconfig']['safe_mode'] = 'Wird mit der safe_mode Einstellung der Domain ersetzt.'; -$lng['admin']['phpconfig']['pear_dir'] = 'Wird mit dem globalen Wert für das Include Verzeichnis ersetzt.'; -$lng['admin']['phpconfig']['open_basedir_c'] = 'Wird mit einem ; (Semikolon) ersetzt, um open_basedir auszukommentieren/deaktivieren, wenn eingestellt.'; -$lng['admin']['phpconfig']['open_basedir'] = 'Wird mit der open_basedir Einstellung der Domain ersetzt.'; -$lng['admin']['phpconfig']['tmp_dir'] = 'Wird mit der Einstellung für das temporäre Verzeichnis der Domain ersetzt.'; -$lng['admin']['phpconfig']['open_basedir_global'] = 'Wird mit der globalen Einstellung des Pfades ersetzt, der dem open_basedir hinzugefügt wird.'; -$lng['admin']['phpconfig']['customer_email'] = 'Wird mit der E-Mail Adresse des Kunden ersetzt, dem die Domain gehört.'; -$lng['admin']['phpconfig']['admin_email'] = 'Wird mit der E-Mail Adresse des Admins ersetzt, dem die Domain gehört.'; -$lng['admin']['phpconfig']['domain'] = 'Wird mit der Domain ersetzt.'; -$lng['admin']['phpconfig']['customer'] = 'Wird mit dem Loginnamen des Kunden ersetzt, dem die Domain gehört.'; -$lng['admin']['phpconfig']['admin'] = 'Wird mit dem Loginnamen des Admins ersetzt, dem die Domain gehört.'; -$lng['login']['backtologin'] = 'Zurück zum Login'; -$lng['serversettings']['mod_fcgid']['starter']['title'] = 'Prozesse je Domain'; -$lng['serversettings']['mod_fcgid']['starter']['description'] = 'Wieviele PHP Prozesse pro Domain sollen gestartet/erlaubt werden. Der Wert 0 wird empfohlen, da PHP dann selbst die Anzahl effizient verwaltet.'; -$lng['serversettings']['mod_fcgid']['wrapper']['title'] = 'Wrappereinbindung in Vhosts'; -$lng['serversettings']['mod_fcgid']['wrapper']['description'] = 'Wie sollen die Wrapper in den Vhosts eingebunden werden'; -$lng['serversettings']['mod_fcgid']['tmpdir']['description'] = 'Wo sollen die temporären Verzeichnisse erstellt werden'; -$lng['admin']['know_what_youre_doing'] = 'Ändern Sie diese Einstellungen nur, wenn Sie wissen was Sie tun!'; -$lng['serversettings']['mod_fcgid']['peardir']['title'] = 'Globale PEAR Verzeichnisse'; -$lng['serversettings']['mod_fcgid']['peardir']['description'] = 'Welche globalen PEAR Verzeichnisse sollen in den php.ini Einstellungen ersetzt werden? Einzelne Verzeichnisse sind mit einem Doppelpunkt zu trennen.'; - -//improved Froxlor 2 - -$lng['admin']['templates']['index_html'] = 'index.html Datei für neu erzeugte Kundenverzeichnisse'; -$lng['admin']['templates']['SERVERNAME'] = 'Wird mit dem Servernamen ersetzt.'; -$lng['admin']['templates']['CUSTOMER'] = 'Wird mit dem Loginnamen des Kunden ersetzt.'; -$lng['admin']['templates']['ADMIN'] = 'Wird mit dem Loginnamen des Admins ersetzt.'; -$lng['admin']['templates']['CUSTOMER_EMAIL'] = 'Wird mit der E-Mail Adresse des Kunden ersetzt.'; -$lng['admin']['templates']['ADMIN_EMAIL'] = 'Wird mit der E-Mail Adresse des Admin ersetzt.'; -$lng['admin']['templates']['filetemplates'] = 'Dateivorlagen'; -$lng['admin']['templates']['filecontent'] = 'Dateiinhalt'; -$lng['error']['filecontentnotset'] = 'Diese Datei darf nicht leer sein!'; -$lng['serversettings']['index_file_extension']['description'] = 'Welche Dateiendung soll die index Datei in neu erstellten Kundenverzeichnissen haben? Diese Dateiendung wird dann verwendet, wenn Sie bzw. einer Ihrer Admins eigene index Dateivorlagen erstellt haben.'; -$lng['serversettings']['index_file_extension']['title'] = 'Dateiendung für index Datei in neu erstellen Kundenverzeichnissen'; -$lng['error']['index_file_extension'] = 'Die Dateiendung für die index Datei muss zwischen 1 und 6 Zeichen lang sein und darf nur aus den Zeichen a-z, A-Z und 0-9 bestehen'; -$lng['admin']['security_settings'] = 'Sicherheitseinstellungen'; -$lng['admin']['expert_settings'] = 'Experteneinstellungen!'; -$lng['admin']['mod_fcgid_starter']['title'] = 'PHP Prozesse für diese Domain (leer für Standardwert)'; - -//added with aps installer - -$lng['admin']['aps'] = 'APS Installer'; -$lng['customer']['aps'] = 'APS Installer'; -$lng['aps']['scan'] = 'Neue Pakete einlesen'; -$lng['aps']['upload'] = 'Neue Pakete hochladen'; -$lng['aps']['managepackages'] = 'Pakete verwalten'; -$lng['aps']['manageinstances'] = 'Instanzen verwalten'; -$lng['aps']['overview'] = 'Paketübersicht'; -$lng['aps']['status'] = 'Meine Pakete'; -$lng['aps']['search'] = 'Paket suchen'; -$lng['aps']['upload_description'] = 'Bitte wählen Sie die APS ZIP-Dateien aus, um diese im System zu installieren.'; -$lng['aps']['search_description'] = 'Name, Beschreibung, Schlagwort, Version'; -$lng['aps']['detail'] = 'Weitere Informationen'; -$lng['aps']['install'] = 'Paket installieren'; -$lng['aps']['data'] = 'Daten'; -$lng['aps']['version'] = 'Version'; -$lng['aps']['homepage'] = 'Homepage'; -$lng['aps']['installed_size'] = 'Größe nach Installation'; -$lng['aps']['categories'] = 'Kategorien'; -$lng['aps']['languages'] = 'Sprachen'; -$lng['aps']['long_description'] = 'Langbeschreibung'; -$lng['aps']['configscript'] = 'Konfigurationskript'; -$lng['aps']['changelog'] = 'Changelog'; -$lng['aps']['license'] = 'Lizenz'; -$lng['aps']['linktolicense'] = 'Link zur Lizenz'; -$lng['aps']['screenshots'] = 'Screenshots'; -$lng['aps']['back'] = 'Zurück zur Übersicht'; -$lng['aps']['install_wizard'] = 'Installationsassistent...'; -$lng['aps']['wizard_error'] = 'Ihre Eingaben enthalten ungültige Daten. Bitte korrigieren Sie diese, um mit der Installation fortzufahren.'; -$lng['aps']['basic_settings'] = 'Grundlegende Einstellungen'; -$lng['aps']['application_location'] = 'Installationsort'; -$lng['aps']['application_location_description'] = 'Ort an dem die Anwendung installiert werden soll.'; -$lng['aps']['no_domains'] = 'Keine Domains gefunden'; -$lng['aps']['database_password'] = 'Datenbankpasswort'; -$lng['aps']['database_password_description'] = 'Passwort welches für die neu zu erstellende Datenbank verwendet werden soll.'; -$lng['aps']['license_agreement'] = 'Zustimmung'; -$lng['aps']['cancel_install'] = 'Installation abbrechen'; -$lng['aps']['notazipfile'] = 'Die hochgeladene Datei ist keine gültige ZIP-Datei.'; -$lng['aps']['filetoobig'] = 'Die Datei ist zu groß.'; -$lng['aps']['filenotcomplete'] = 'Die Datei wurde nicht vollständig hochgeladen.'; -$lng['aps']['phperror'] = 'Es trat ein PHP interner Fehler auf. Der Upload Fehlercode lautet #'; -$lng['aps']['moveproblem'] = 'Die hochgeladene Datei konnte nicht aus dem temporären Ordner verschoben werden. Prüfen Sie ob alle Rechte korrekt gesetzt sind. Dies gilt insbesondere fü die Ordner /var/www/syscp/temp/ und /var/www/syscp/packages/.'; -$lng['aps']['uploaderrors'] = 'Fehler für die Datei %s
    %s
'; -$lng['aps']['nospecialchars'] = 'Sonderzeichen sind im Suchausdruck nicht erlaubt!'; -$lng['aps']['noitemsfound'] = 'Es wurden keine Pakete gefunden!'; -$lng['aps']['nopackagesinstalled'] = 'Sie haben noch kein Paket installiert welches angezeigt werden könnte.'; -$lng['aps']['instance_install'] = 'Paket wurde zur Installation vorgemerkt'; -$lng['aps']['instance_task_active'] = 'Paket wird gerade installiert'; -$lng['aps']['instance_success'] = 'Paket ist installiert bzw. wurde erfolgreich installiert'; -$lng['aps']['instance_error'] = 'Paket ist nicht installiert - bei der Installation traten Fehler auf'; -$lng['aps']['instance_uninstall'] = 'Paket wurde zur Deinstallation vorgemerkt'; -$lng['aps']['unknown_status'] = 'Fehler - Unbekannter Wert'; -$lng['aps']['currentstatus'] = 'Aktueller Status'; -$lng['aps']['activetasks'] = 'Aktuelle Jobs'; -$lng['aps']['task_install'] = 'Installation ausstehend'; -$lng['aps']['task_remove'] = 'Deinstallation ausstehend'; -$lng['aps']['task_reconfigure'] = 'Neukonfiguration ausstehend'; -$lng['aps']['task_upgrade'] = 'Aktualisierung ausstehend'; -$lng['aps']['no_task'] = 'Kein Task ausstehend'; -$lng['aps']['applicationlinks'] = 'Anwendungslinks'; -$lng['aps']['mainsite'] = 'Hauptseite'; -$lng['aps']['uninstall'] = 'Paket deinstallieren'; -$lng['aps']['reconfigure'] = 'Einstellungen ändern'; -$lng['aps']['erroronnewinstance'] = 'Dieses Paket kann nicht installiert werden.

Bitte gehen Sie zurück zur Paketübersicht und starten Sie eine neue Installation.'; -$lng['aps']['successonnewinstance'] = '%s wird nun installiert.

Gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Installation abgeschlossen ist. Dies kann einige Minuten in Anspruch nehmen.'; -$lng['aps']['php_misc_handler'] = 'PHP - Sonstiges - Es werden keine anderen Dateiendungen als .php zum Parsen unterstützt.'; -$lng['aps']['php_misc_directoryhandler'] = 'PHP - Sonstiges - Je Verzeichnis deaktivierte PHP Handler werden nicht unterstützt.'; -$lng['aps']['asp_net'] = 'ASP.NET - Paket wird nicht unterstützt.'; -$lng['aps']['cgi'] = 'CGI - Paket wird nicht unterstützt.'; -$lng['aps']['php_extension'] = 'PHP - Erweiterung "%s" fehlt.'; -$lng['aps']['php_function'] = 'PHP - Funktion "%s" fehlt.'; -$lng['aps']['php_configuration'] = 'PHP - Konfiguration - Aktuelle "%s" Einstellung wird von Paket nicht unterstützt.'; -$lng['aps']['php_configuration_post_max_size'] = 'PHP - Konfiguration - "post_max_size" Wert zu klein.'; -$lng['aps']['php_configuration_memory_limit'] = 'PHP - Konfiguration - "memory_limit" Wert zu klein.'; -$lng['aps']['php_configuration_max_execution_time'] = 'PHP - Konfiguration - "max_execution_time" Wert zu klein.'; -$lng['aps']['php_general_old'] = 'PHP - Generell - PHP Version zu alt.'; -$lng['aps']['php_general_new'] = 'PHP - Generell - PHP Version zu neu.'; -$lng['aps']['db_mysql_support'] = 'Datenbank - Das Paket benötigt eine andere Datenbank Engine als MySQL.'; -$lng['aps']['db_mysql_version'] = 'Datenbank - MySQL Server zu alt.'; -$lng['aps']['webserver_module'] = 'Webserver - Modul "%s" fehlt.'; -$lng['aps']['webserver_fcgid'] = 'Webserver - Von diesem Paket werden einige Webserver Module benötigt. Da Sie Froxlor in einer FastCGI/mod_fcgid Umgebung verwenden existiert die Funktion "apache_get_modules" nicht. Es kann also nicht ermittelt werden ob das Paket unterstützt wird.'; -$lng['aps']['webserver_htaccess'] = 'Webserver - Dieses Paket benötigt dass .htaccess Dateien vom Webserver geparst werden. Das Paket kann nicht installiert werden, da nicht ermittelt werden kann ob diese Funktion aktiviert ist.'; -$lng['aps']['misc_configscript'] = 'Sonstiges - Die Sprache des Konfigurationsskriptes wird nicht unterstützt.'; -$lng['aps']['misc_charset'] = 'Sonstiges - In der aktuellen Version wird eine Validierung gegen einen gewissen Zeichensatz im Installationsassitenten nicht unterstützt.'; -$lng['aps']['misc_version_already_installed'] = 'Die gleiche Paketversion ist bereits installiert.'; -$lng['aps']['misc_only_newer_versions'] = 'Aus Sicherheitsgründen können nur Pakete installiert werden die neuer sind als die, die bereits im System installiert sind.'; -$lng['aps']['erroronscan'] = 'Fehler für %s
    %s
'; -$lng['aps']['invalidzipfile'] = 'Fehler für %s
  • Dies ist keine gültige APS ZIP-Datei!
'; -$lng['aps']['successpackageupdate'] = '%s erfolgreich als Paketupdate installiert'; -$lng['aps']['successpackageinstall'] = '%s erfolgreich als neues Paket installiert'; -$lng['aps']['class_zip_missing'] = 'SimpleXML Klasse, exec Funktion oder ZIP Funktionen nicht vorhanden bzw. aktiviert! Für genauere Informationen zu diesem Problem schauen Sie bitte in das Handbuch zu diesem Modul.'; -$lng['aps']['dir_permissions'] = 'Der PHP bzw. Webserver Prozess muss Schreibrechte für /var/www/syscp/temp/ und /var/www/syscp/packages/ haben.'; -$lng['aps']['initerror'] = 'Es gibt ein paar Probleme mit diesem Modul:
    %s
Beheben Sie diese Probleme oder das Modul kann nicht genutzt werden!'; -$lng['aps']['iderror'] = 'Es wurde eine falsche Id übergeben!'; -$lng['aps']['nopacketsforinstallation'] = 'Es wurden keine Pakete zur Installation gefunden.'; -$lng['aps']['nopackagestoinstall'] = 'Es existieren keine Pakete die angezeigt oder installiert werden könnten.'; -$lng['aps']['nodomains'] = 'Wählen Sie eine Domain aus der Liste. Sollte keine Domain vorhanden sein können Sie keine Pakete installieren!'; -$lng['aps']['wrongpath'] = 'Entweder enthält dieser Pfad ungültige Zeichen oder es ist bereits eine Anwendung am gegebenen Ort installiert.'; -$lng['aps']['dbpassword'] = 'Geben Sie ein Passwort mit einer minimalen Länge von 8 Zeichen ein.'; -$lng['aps']['error_text'] = 'Geben Sie einen Text ohne Sonderzeichen ein.'; -$lng['aps']['error_email'] = 'Geben Sie eine gültige E-Mail Adresse ein.'; -$lng['aps']['error_domain'] = 'Geben Sie eine gültige URL wie http://www.example.com/ ein.'; -$lng['aps']['error_integer'] = 'Geben Sie eine Zahl (Integer-Format) ein. Beispiel: 5 oder 7.'; -$lng['aps']['error_float'] = 'Geben Sie eine Zahl (Float-Format) ein. Beispiel: 5,2432 oder 7,5346.'; -$lng['aps']['error_password'] = 'Geben Sie ein Passwort ein.'; -$lng['aps']['error_license'] = 'Ja, ich habe die Lizenz gelesen und willige ein diese zu befolgen.'; -$lng['aps']['error_licensenoaccept'] = 'Sie müssen die Lizenz annehmen um die Anwendung installieren zu können.'; -$lng['aps']['stopinstall'] = 'Installation abbrechen'; -$lng['aps']['installstopped'] = 'Die Installation für dieses Paket wurde erfolgreich abgebrochen.'; -$lng['aps']['installstoperror'] = 'Die Installation kann nicht mehr abgebrochen werden, da diese bereits gestartet wurde. Möchten Sie das Paket entfernen, so warten Sie die Installation ab und entfernen Sie dann das Paket unter "Meine Pakete"'; -$lng['aps']['waitfortask'] = 'Es stehen momentan keine Aktionen zur Verfügung. Warten Sie bis alle Tasks abgearbeitet wurden.'; -$lng['aps']['removetaskexisting'] = 'Es gibt bereits einen Task zur Deinstallation.

Bitte gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Deinstallation abgeschlossen ist.'; -$lng['aps']['packagewillberemoved'] = 'Das Paket wird nun deinstalliert.

Gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Deinstallation abgeschlossen ist.'; -$lng['question']['reallywanttoremove'] = 'Wollen Sie dieses Paket wirklich deinstallieren?

Alle Datenbankinhalte und Dateien werden unwiderruflich gelöscht. Wenn Sie die enthaltenen Daten weiterhin benötigen, stellen Sie sicher dass Sie diese vorher sichern!

'; -$lng['aps']['searchoneresult'] = '%s Paket gefunden'; -$lng['aps']['searchmultiresult'] = '%s Pakete gefunden'; -$lng['question']['reallywanttostop'] = 'Wollen Sie die Installation dieses Paketes wirklich abbrechen?

'; -$lng['aps']['packagenameandversion'] = 'Paketname & Version'; -$lng['aps']['package_locked'] = 'Gesperrt'; -$lng['aps']['package_enabled'] = 'Freigegeben'; -$lng['aps']['lock'] = 'Sperren'; -$lng['aps']['unlock'] = 'Freigeben'; -$lng['aps']['remove'] = 'Löschen'; -$lng['aps']['allpackages'] = 'Alle Pakete'; -$lng['question']['reallyremovepackages'] = 'Wollen Sie diese Pakete wirklich löschen?

Pakete mit Abhängigkeiten können erst gelöscht werden wenn die entsprechenden Instanzen dafür deinstalliert wurden!

'; -$lng['aps']['nopackagesinsystem'] = 'Es wurden noch keine Pakete im System installiert, die verwaltet werden könnten.'; -$lng['aps']['packagenameandstatus'] = 'Paketname & Status'; -$lng['aps']['activate_aps']['title'] = 'APS Installer aktivieren'; -$lng['aps']['activate_aps']['description'] = 'Hier können Sie den APS Installer global aktivieren bzw. deaktivieren.'; -$lng['aps']['packages_per_page']['title'] = 'Pakete pro Seite'; -$lng['aps']['packages_per_page']['description'] = 'Wieviele Pakete sollen Kunden pro Seite angezeigt bekommen?'; -$lng['aps']['upload_fields']['title'] = 'Uploadfelder pro Seite'; -$lng['aps']['upload_fields']['description'] = 'Wieviele Uploadfelder sollen im Panel zur Installation von Paketen angezeigt werden?'; -$lng['aps']['exceptions']['title'] = 'Ausnahmen für Paketvalidierung'; -$lng['aps']['exceptions']['description'] = 'Manche Pakete benötigen spezielle Konfigurationsparameter oder Module. Der Installer selbst kann nicht immer eindeutig feststellen ob diese Optionen/Erweiterungen aktiviert sind. Aus diesem Grund kann man hier nun Ausnahmen festlegen damit Pakete dann trotzdem installiert werden können. Wählen Sie nur die Optionen aus, die auch wirklich so mit der Realität übereinstimmen. Für genauere Informationen zu diesem Problem schauen Sie bitte in das Handbuch zu diesem Modul.'; -$lng['aps']['settings_php_extensions'] = 'PHP-Erweiterungen'; -$lng['aps']['settings_php_configuration'] = 'PHP-Konfiguration'; -$lng['aps']['settings_webserver_modules'] = 'Webserver Module'; -$lng['aps']['settings_webserver_misc'] = 'Webserver Sonstiges'; -$lng['aps']['specialoptions'] = 'Sonderoptionen'; -$lng['aps']['removeunused'] = 'Ungenutzte Pakete entfernen'; -$lng['aps']['enablenewest'] = 'Von jedem Paket neueste Version freigeben, alte sperren'; -$lng['aps']['installations'] = 'Installationen'; -$lng['aps']['statistics'] = 'Statistiken'; -$lng['aps']['numerofpackagesinstalled'] = '%s Pakete vorhanden
'; -$lng['aps']['numerofpackagesenabled'] = '%s Pakete freigegeben
'; -$lng['aps']['numerofpackageslocked'] = '%s Pakete gesperrt
'; -$lng['aps']['numerofinstances'] = '%s Instanzen installiert
'; -$lng['question']['reallydoaction'] = 'Wollen Sie die gewählten Aktionen wirklich durchführen?

Daten, die durch diese Vorgänge möglicherweise gelöscht werden, können anschließend nicht wieder hergestellt werden.

'; -$lng['aps']['initerror_customer'] = 'Es gibt momentan ein Problem mit dieser Froxlor Erweiterung. Wenden Sie sich an Ihren Administrator für weitere Informationen.'; -$lng['aps']['numerofinstances'] = '%s Installationen insgesamt
'; -$lng['aps']['numerofinstancessuccess'] = '%s erfolgreiche Installationen
'; -$lng['aps']['numerofinstanceserror'] = '%s fehlgeschlagene Installationen
'; -$lng['aps']['numerofinstancesaction'] = '%s geplante Installationen/Deinstallationen'; -$lng['aps']['downloadallpackages'] = 'Alle Pakete vom Distributionsserver herunterladen'; -$lng['aps']['updateallpackages'] = 'Alle Pakete über Distributionsserver aktualisieren'; -$lng['aps']['downloadtaskexists'] = 'Es gibt bereits einen Task zum Download aller Pakete. Bitte warten Sie bis dieser abgeschlossen ist.'; -$lng['aps']['downloadtaskinserted'] = 'Es wurde ein Task zum Download aller Pakete erstellt. Dieser Vorgang kann einige Minuten in Anspruch nehmen.'; -$lng['aps']['updatetaskexists'] = 'Es gibt bereits einen Task zur Aktualisierung aller Pakete. Bitte warten Sie bis dieser abgeschlossen ist.'; -$lng['aps']['updatetaskinserted'] = 'Es wurde ein Task zur Aktualisierung aller Pakete erstellt. Dieser Vorgang kann einige Minuten in Anspruch nehmen.'; -$lng['aps']['canmanagepackages'] = 'Darf APS Pakete verwalten'; -$lng['aps']['numberofapspackages'] = 'Anzahl an APS Installationen'; -$lng['aps']['allpackagesused'] = 'Fehler

Sie haben bereits die Anzahl an installierbaren APS Anwendungen erreicht bzw. überschritten.'; -$lng['aps']['noinstancesexisting'] = 'Es gibt momentan noch keine Instanzen, die verwaltet werden könnten. Es muss mindestens eine Anwendung von einem Kunden installiert worden sein.'; -$lng['aps']['lightywarning'] = 'Warnung'; -$lng['aps']['lightywarningdescription'] = 'Sie verwenden den lighttpd Webserver zusammen mit SysCP. Da das APS Modul hauptsächlich für den Apache Webserver geschrieben wurde, kann es unter Umständen vorkommen, dass gewisse Features mit lighttpd nicht funktionieren. Bitte beachten Sie dies bei der Verwendung des APS Moduls. Sollten Sie Fehler bei der Verwendung oder Probleme bei der Nutzung haben, so leiten Sie diese bitte an die Entwickler weiter, damit diese Probleme in der nächsten Version behoben werden können.'; -$lng['error']['customerdoesntexist'] = 'Der ausgewählte Kunde existiert nicht.'; -$lng['error']['admindoesntexist'] = 'Der ausgewählte Admin existiert nicht.'; - -// ADDED IN 1.2.19-svn37 - -$lng['serversettings']['system_realtime_port']['title'] = 'Port für Realtime SysCP'; -$lng['serversettings']['system_realtime_port']['description'] = 'Dieser Port auf localhost wird bei jedem neuen Cron-Task kontaktiert. Wenn der Wert 0 (Null) ist, dann ist dieses Feature deaktiviert.
Siehe dazu auch: Make Froxlor work in realtime (Froxlor Wiki)'; -$lng['serversettings']['session_allow_multiple_login']['title'] = 'Erlaube gleichzeitigen Login'; -$lng['serversettings']['session_allow_multiple_login']['description'] = 'Wenn diese Option aktiviert ist, können sich Nutzer mehrmals gleichzeitig anmelden.'; -$lng['serversettings']['panel_allow_domain_change_admin']['title'] = 'Erlaube Verschieben von Domains unter Admins'; -$lng['serversettings']['panel_allow_domain_change_admin']['description'] = 'Wenn diese Option aktiviert ist, kann unter Domaineinstellungen die Domain einem anderen Admin zugewiesen werden.
Achtung: Wenn der Kunde einer Domain nicht dem gleichen Admin zugeordnet ist wie die Domain selbst, kann dieser Admin alle anderen Domains des Kunden sehen!'; -$lng['serversettings']['panel_allow_domain_change_customer']['title'] = 'Erlaube Verschieben von Domains unter Kunden'; -$lng['serversettings']['panel_allow_domain_change_customer']['description'] = 'Wenn diese Option aktiviert ist, kann unter Domaineinstellungen die Domain einem anderen Kunden zugewiesen werden.
Achtung: Es werden keine Pfade bei dieser Aktion angepasst. Das kann dazu führen, dass die Domain nach dem Verschieben nicht mehr richtig funktioniert!'; -$lng['domains']['associated_with_domain'] = 'Verbunden mit'; -$lng['domains']['aliasdomains'] = 'Aliasdomains'; -$lng['error']['ipportdoesntexist'] = 'Die gewählte IP/Port-Kombination existiert nicht.'; - -// ADDED IN 1.2.19-svn38 - -$lng['admin']['phpserversettings'] = 'PHP Einstellungen'; -$lng['admin']['phpsettings']['binary'] = 'PHP Binary'; -$lng['admin']['phpsettings']['file_extensions'] = 'Dateiendungen'; -$lng['admin']['phpsettings']['file_extensions_note'] = '(ohne Punkt, durch Leerzeichen getrennt)'; -$lng['admin']['mod_fcgid_maxrequests']['title'] = 'Maxmale PHP Requests für diese Domain (leer für Standardwert)'; -$lng['serversettings']['mod_fcgid']['maxrequests']['title'] = 'Maximale Requests pro Domain'; -$lng['serversettings']['mod_fcgid']['maxrequests']['description'] = 'Wieviele PHP Requests pro Domain sollen erlaubt werden?'; - -// fix bug #1124 -$lng['admin']['webserver'] = 'Webserver'; -$lng['error']['admin_domain_emailsystemhostname'] = 'Der Server-Hostname kann leider nicht als E-Mail-Domain verwendet werden.'; -$lng['aps']['license_link'] = 'Link zur Lizenz'; - -// ADDED IN 1.4.2.1 -$lng['admin']['thankyou'] = 'Vielen Dank'; -$lng['admin']['contributors'] = 'Diese Leute haben zum Froxlor Projekt beigetragen (keine besondere Ordnung)'; - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: german.lng.php 2724 2009-06-07 14:18:02Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = ''; +$lng['panel']['edit'] = 'bearbeiten'; +$lng['panel']['delete'] = 'löschen'; +$lng['panel']['create'] = 'anlegen'; +$lng['panel']['save'] = 'Speichern'; +$lng['panel']['yes'] = 'Ja'; +$lng['panel']['no'] = 'Nein'; +$lng['panel']['emptyfornochanges'] = 'leer für keine Änderung'; +$lng['panel']['emptyfordefault'] = 'leer für Standardeinstellung'; +$lng['panel']['path'] = 'Pfad'; +$lng['panel']['toggle'] = 'Umschalten'; +$lng['panel']['next'] = 'weiter'; +$lng['panel']['dirsmissing'] = 'Verzeichnisse nicht verfügbar oder lesbar'; + +/** + * Login + */ + +$lng['login']['username'] = 'Benutzername'; +$lng['login']['password'] = 'Passwort'; +$lng['login']['language'] = 'Sprache'; +$lng['login']['login'] = 'Anmelden'; +$lng['login']['logout'] = 'Abmelden'; +$lng['login']['profile_lng'] = 'Profilsprache'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Heimatverzeichnis'; +$lng['customer']['name'] = 'Name'; +$lng['customer']['firstname'] = 'Vorname'; +$lng['customer']['company'] = 'Firma'; +$lng['customer']['street'] = 'Straße'; +$lng['customer']['zipcode'] = 'PLZ'; +$lng['customer']['city'] = 'Ort'; +$lng['customer']['phone'] = 'Telefon'; +$lng['customer']['fax'] = 'Fax'; +$lng['customer']['email'] = 'E-Mail'; +$lng['customer']['customernumber'] = 'Kundennummer'; +$lng['customer']['diskspace'] = 'Webspace (MB)'; +$lng['customer']['traffic'] = 'Traffic (GB)'; +$lng['customer']['mysqls'] = 'MySQL-Datenbanken'; +$lng['customer']['emails'] = 'E-Mail-Adressen'; +$lng['customer']['accounts'] = 'E-Mail-Konten'; +$lng['customer']['forwarders'] = 'E-Mail-Weiterleitungen'; +$lng['customer']['ftps'] = 'FTP-Konten'; +$lng['customer']['subdomains'] = 'Sub-Domain(s)'; +$lng['customer']['domains'] = 'Domain(s)'; +$lng['customer']['unlimited'] = 'unbegrenzt'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Allgemein'; +$lng['menue']['main']['changepassword'] = 'Passwort ändern'; +$lng['menue']['main']['changelanguage'] = 'Sprache ändern'; +$lng['menue']['email']['email'] = 'E-Mail'; +$lng['menue']['email']['emails'] = 'Adressen'; +$lng['menue']['email']['webmail'] = 'WebMail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Datenbanken'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Domains'; +$lng['menue']['domains']['settings'] = 'Einstellungen'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Benutzerkonten'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Extras'; +$lng['menue']['extras']['directoryprotection'] = 'Verzeichnisschutz'; +$lng['menue']['extras']['pathoptions'] = 'Pfadoptionen'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Kundendaten'; +$lng['index']['accountdetails'] = 'Kontodaten'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Altes Passwort'; +$lng['changepassword']['new_password'] = 'Neues Passwort'; +$lng['changepassword']['new_password_confirm'] = 'Neues Passwort (bestätigen)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Neues Passwort (leer = nicht ändern)'; +$lng['changepassword']['also_change_ftp'] = 'Auch Passwort vom Haupt-FTP-Zugang ändern'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Hier können Sie (Sub-)Domains erstellen und deren Pfade ändern.
Nach jeder Änderung braucht das System etwas Zeit um die Konfiguration neu einzulesen.'; +$lng['domains']['domainsettings'] = 'Domaineinstellungen'; +$lng['domains']['domainname'] = 'Domainname'; +$lng['domains']['subdomain_add'] = 'Subdomain anlegen'; +$lng['domains']['subdomain_edit'] = '(Sub-)Domain bearbeiten'; +$lng['domains']['wildcarddomain'] = 'Als Wildcarddomain eintragen?'; +$lng['domains']['aliasdomain'] = 'Alias für Domain'; +$lng['domains']['noaliasdomain'] = 'Keine Aliasdomain'; + +/** + * eMails + */ + +$lng['emails']['description'] = 'Hier können Sie Ihre E-Mail Adressen einrichten.
Ein Konto ist wie Ihr Briefkasten vor der Haustüre. Wenn jemand eine E-Mail an Sie schreibt, dann wird diese in dieses Konto gelegt.

Die Zugangsdaten von Ihrem Mailprogramm sind wie folgt: (Die Angaben in kursiver Schrift sind durch die jeweiligen Einträge zu ersetzen!)
Hostname: Domainname
Benutzername: Kontoname / E-Mail-Adresse
Passwort: das gewählte Passwort'; +$lng['emails']['emailaddress'] = 'E-Mail-Adresse'; +$lng['emails']['emails_add'] = 'E-Mail-Adresse anlegen'; +$lng['emails']['emails_edit'] = 'E-Mail-Adresse ändern'; +$lng['emails']['catchall'] = 'Catchall'; +$lng['emails']['iscatchall'] = 'Als Catchall-Adresse definieren?'; +$lng['emails']['account'] = 'Konto'; +$lng['emails']['account_add'] = 'Konto anlegen'; +$lng['emails']['account_delete'] = 'Konto löschen'; +$lng['emails']['from'] = 'Von'; +$lng['emails']['to'] = 'Nach'; +$lng['emails']['forwarders'] = 'Weiterleitungen'; +$lng['emails']['forwarder_add'] = 'Weiterleitung hinzufügen'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Hier können Sie zusätzliche FTP-Konten einrichten.
Die Änderungen sind sofort wirksam und die FTP-Konten sofort benutzbar.'; +$lng['ftp']['account_add'] = 'Benutzerkonto anlegen'; + +/** + * MySQL + */ + +$lng['mysql']['databasename'] = 'Benutzer-/Datenbankname'; +$lng['mysql']['databasedescription'] = 'Datenbankbeschreibung'; +$lng['mysql']['database_create'] = 'Datenbank anlegen'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Hier können Sie zusätzliche Extras einrichten, wie zum Beispiel Verzeichnisschutz.
Die Änderungen sind erst nach einer bestimmten Zeit wirksam.'; +$lng['extras']['directoryprotection_add'] = 'Verzeichnisschutz anlegen'; +$lng['extras']['view_directory'] = 'Verzeichnis anzeigen'; +$lng['extras']['pathoptions_add'] = 'Pfadoptionen hinzufügen'; +$lng['extras']['directory_browsing'] = 'Verzeichnisinhalt anzeigen'; +$lng['extras']['pathoptions_edit'] = 'Pfadoptionen bearbeiten'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL zum Fehlerdokument 404'; +$lng['extras']['errordocument403path'] = 'URL zum Fehlerdokument 403'; +$lng['extras']['errordocument500path'] = 'URL zum Fehlerdokument 500'; +$lng['extras']['errordocument401path'] = 'URL zum Fehlerdokument 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Fehlermeldung'; +$lng['error']['directorymustexist'] = 'Das Verzeichnis %s muss existieren. Legen Sie es bitte mit Ihrem FTP-Programm an.'; +$lng['error']['filemustexist'] = 'Die Datei %s muss existieren.'; +$lng['error']['allresourcesused'] = 'Sie haben bereits alle Ihnen zur Verfügung stehenden Ressourcen verbraucht.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Sie können keine Domain, die als E-Mail-Domain verwendet wird, löschen. '; +$lng['error']['domains_canteditdomain'] = 'Sie können diese Domain nicht bearbeiten. Dies wurde durch den Admin verweigert'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Sie können keine Domain löschen, die noch als E-Mail-Domain verwendet wird. Löschen Sie zuerst alle E-Mail-Adressen dieser Domain.'; +$lng['error']['firstdeleteallsubdomains'] = 'Sie müssen erst alle Subdomains löschen, bevor Sie eine Wildcarddomain anlegen können.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Sie haben bereits eine Adresse als Catchall für diese Domain definiert.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Sie können Ihren Hauptaccount nicht löschen.'; +$lng['error']['login'] = 'Der angegebene Benutzername/Passwort ist falsch.'; +$lng['error']['login_blocked'] = 'Dieser Account wurde aufgrund zu vieler Fehlversuche vorrübergehend geschlossen.
Bitte versuchen Sie es in ' . $settings['login']['deactivatetime'] . ' Sekunden erneut.'; +$lng['error']['notallreqfieldsorerrors'] = 'Sie haben nicht alle Felder oder ein Feld mit fehlerhaften Angaben ausgefüllt.'; +$lng['error']['oldpasswordnotcorrect'] = 'Das alte Passwort ist nicht korrekt.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Sie können nicht mehr Ressourcen verteilen als Sie noch frei haben.'; +$lng['error']['mustbeurl'] = 'Sie müssen eine vollständige URL angeben (z.B. http://irgendwas.de/error404.htm)'; +$lng['error']['invalidpath'] = 'Sie haben keine gültige URL ausgewählt (Evtl. Probleme beim Verzeichnislisting?)'; +$lng['error']['stringisempty'] = 'Fehlende Eingabe im Feld'; +$lng['error']['stringiswrong'] = 'Falsche Eingabe im Feld'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'Das neue Passwort und die Bestätigung sind nicht identisch.'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'Domain\''; +$lng['error']['mydocumentroot'] = '\'Documentroot\''; +$lng['error']['loginnameexists'] = 'Der Login-Name %s existiert bereits.'; +$lng['error']['emailiswrong'] = 'Die E-Mail-Adresse %s enthält ungültige Zeichen oder ist nicht vollständig.'; +$lng['error']['loginnameiswrong'] = 'Der Login-Name %s enthält ungültige Zeichen.'; +$lng['error']['userpathcombinationdupe'] = 'Kombination aus Benutzername und Pfad existiert bereits.'; +$lng['error']['patherror'] = 'Allgemeiner Fehler! Pfad darf nicht leer sein.'; +$lng['error']['errordocpathdupe'] = 'Option für Pfad %s existiert bereits.'; +$lng['error']['adduserfirst'] = 'Sie müssen zuerst einen Kunden anlegen.'; +$lng['error']['domainalreadyexists'] = 'Die Domain %s wurde bereits einem Kunden zugeordnet.'; +$lng['error']['nolanguageselect'] = 'Keine Sprache ausgewählt.'; +$lng['error']['nosubjectcreate'] = 'Sie müssen einen Betreff angeben.'; +$lng['error']['nomailbodycreate'] = 'Sie müssen einen E-Mail-Text eingeben.'; +$lng['error']['templatenotfound'] = 'Vorlage wurde nicht gefunden.'; +$lng['error']['alltemplatesdefined'] = 'Sie können keine weiteren Vorlagen anlegen, da bereits alle Sprachen mit Vorlagen versorgt sind.'; +$lng['error']['wwwnotallowed'] = 'Ihre Subdomain darf nicht www heissen.'; +$lng['error']['subdomainiswrong'] = 'Die Subdomain %s enthält ungültige Zeichen.'; +$lng['error']['domaincantbeempty'] = 'Der Domain-Name darf nicht leer sein.'; +$lng['error']['domainexistalready'] = 'Die Domain %s existiert bereits.'; +$lng['error']['domainisaliasorothercustomer'] = 'Die ausgewählte Aliasdomain ist entweder selber eine Aliasdomain oder gehört zu einem anderen Kunden.'; +$lng['error']['emailexistalready'] = 'Die E-Mail-Adresse %s existiert bereits.'; +$lng['error']['maindomainnonexist'] = 'Die Haupt-Domain %s existiert nicht.'; +$lng['error']['destinationnonexist'] = 'Bitte geben Sie Ihre Weiterleitungsadresse im Feld \'Nach\' ein.'; +$lng['error']['destinationalreadyexistasmail'] = 'Die Weiterleitung zu %s exisitiert bereits als aktive E-Mail-Adresse.'; +$lng['error']['destinationalreadyexist'] = 'Es gibt bereits eine Weiterleitung nach %s .'; +$lng['error']['destinationiswrong'] = 'Die Weiterleitungsadresse-Adresse %s enthält ungültige Zeichen oder ist nicht vollständig.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Sicherheitsabfrage'; +$lng['question']['admin_customer_reallydelete'] = 'Wollen Sie den Kunden %s wirklich löschen?
ACHTUNG! Alle Daten gehen unwiderruflich verloren! Nach dem Vorgang müssen Sie die Daten aus dem Dateisystem noch manuell entfernen.'; +$lng['question']['admin_domain_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Wollen Sie diese wichtigen Sicherheitseinstellungen (OpenBasedir und/oder SafeMode) wirklich deaktivieren?'; +$lng['question']['admin_admin_reallydelete'] = 'Wollen Sie den Admin %s wirklich löschen?
Alle Kunden und Domains werden Ihrem Account zugeteilt.'; +$lng['question']['admin_template_reallydelete'] = 'Wollen Sie die Vorlage \'%s\' wirklich löschen?'; +$lng['question']['domains_reallydelete'] = 'Wollen Sie die Domain %s wirklich löschen?'; +$lng['question']['email_reallydelete'] = 'Wollen Sie die E-Mail-Adresse %s wirklich löschen?'; +$lng['question']['email_reallydelete_account'] = 'Wollen Sie das Konto von %s wirklich löschen?'; +$lng['question']['email_reallydelete_forwarder'] = 'Wollen Sie die Weiterleitung %s wirklich löschen?'; +$lng['question']['extras_reallydelete'] = 'Wollen Sie den Verzeichnisschutz für %s wirklich löschen?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'Wollen Sie die Optionen für den Pfad %s wirklich löschen?'; +$lng['question']['ftp_reallydelete'] = 'Wollen Sie das FTP-Benutzerkonto %s wirklich löschen?'; +$lng['question']['mysql_reallydelete'] = 'Wollen Sie die Datenbank %s wirklich löschen?
ACHTUNG! Alle Daten gehen unwiderruflich verloren!'; +$lng['question']['admin_configs_reallyrebuild'] = 'Wollen Sie wirklich Ihre Apache und Bind Konfigurationsdateien neu erstellen lassen?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Hallo,\n\nIhr E-Mail-Konto {USERNAME}\nwurde erfolgreich eingerichtet.\n\nDies ist eine automatisch generierte\nE-Mail, bitte antworten Sie nicht auf\ndiese Mitteilung.\n\nIhr SysCP-Team'; +$lng['mails']['pop_success']['subject'] = 'E-Mail-Konto erfolgreich eingerichtet'; +$lng['mails']['createcustomer']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nhier ihre Accountinformationen:\n\nBenutzername: {USERNAME}\nPassword: {PASSWORD}\n\nVielen Dank,\nIhr SysCP-Team'; +$lng['mails']['createcustomer']['subject'] = 'Kontoinformationen'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Übersicht'; +$lng['admin']['ressourcedetails'] = 'Verbrauchte Ressourcen'; +$lng['admin']['systemdetails'] = 'Systemdetails'; +$lng['admin']['syscpdetails'] = 'SysCP-Details'; +$lng['admin']['installedversion'] = 'Installierte Version'; +$lng['admin']['latestversion'] = 'Neueste Version'; +$lng['admin']['lookfornewversion']['clickhere'] = 'per Webservice abfragen'; +$lng['admin']['lookfornewversion']['error'] = 'Fehler beim Auslesen'; +$lng['admin']['resources'] = 'Ressourcen'; +$lng['admin']['customer'] = 'Kunde'; +$lng['admin']['customers'] = 'Kunden'; +$lng['admin']['customer_add'] = 'Kunden anlegen'; +$lng['admin']['customer_edit'] = 'Kunden bearbeiten'; +$lng['admin']['domains'] = 'Domains'; +$lng['admin']['domain_add'] = 'Domain anlegen'; +$lng['admin']['domain_edit'] = 'Domain bearbeiten'; +$lng['admin']['subdomainforemail'] = 'Subdomains als E-Mail-Domains'; +$lng['admin']['admin'] = 'Admin'; +$lng['admin']['admins'] = 'Admins'; +$lng['admin']['admin_add'] = 'Admin anlegen'; +$lng['admin']['admin_edit'] = 'Admin bearbeiten'; +$lng['admin']['customers_see_all'] = 'Kann alle Kunden sehen?'; +$lng['admin']['domains_see_all'] = 'Kann alle Domains sehen?'; +$lng['admin']['change_serversettings'] = 'Kann Servereinstellungen bearbeiten?'; +$lng['admin']['server'] = 'Server'; +$lng['admin']['serversettings'] = 'Einstellungen'; +$lng['admin']['rebuildconf'] = 'Configs neuschreiben'; +$lng['admin']['stdsubdomain'] = 'Standardsubdomain'; +$lng['admin']['stdsubdomain_add'] = 'Standardsubdomain anlegen'; +$lng['admin']['phpenabled'] = 'PHP verfügbar'; +$lng['admin']['deactivated'] = 'Gesperrt'; +$lng['admin']['deactivated_user'] = 'Benutzer sperren'; +$lng['admin']['sendpassword'] = 'Passwort zusenden'; +$lng['admin']['ownvhostsettings'] = 'Eigene vHost-Einstellungen'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguration'; +$lng['admin']['configfiles']['files'] = 'Konfigurationsdateien: Bitte ändern Sie die entsprechenden Konfigurationsdateien
oder legen sie mit dem folgenden Inhalt neu an, falls sie nicht existieren.
Bitte beachten Sie: Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt.
Bitte ersetzen Sie "MYSQL_PASSWORD" manuell durch das entsprechende Passwort.
Falls Sie es vergessen haben sollten, finden Sie es in der Datei "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Kommandos: Bitte führen Sie die folgenden Kommandos in einer Shell aus.'; +$lng['admin']['configfiles']['restart'] = 'Neustart: Bitte führen Sie die folgenden Kommandos zum Neuladen
der Konfigurationsdateien in einer Shell aus.'; +$lng['admin']['templates']['templates'] = 'E-Mail-Vorlagen'; +$lng['admin']['templates']['template_add'] = 'Vorlage hinzufügen'; +$lng['admin']['templates']['template_edit'] = 'Vorlage bearbeiten'; +$lng['admin']['templates']['action'] = 'Aktion'; +$lng['admin']['templates']['email'] = 'E-Mail & Dateivorlagen'; +$lng['admin']['templates']['subject'] = 'Betreff'; +$lng['admin']['templates']['mailbody'] = 'Mailtext'; +$lng['admin']['templates']['createcustomer'] = 'Willkommensmail für neue Kunden'; +$lng['admin']['templates']['pop_success'] = 'Willkommensmail für neue E-Mail Konten'; +$lng['admin']['wwwserveralias'] = 'www. ServerAlias hinzufügen'; +$lng['admin']['templates']['template_replace_vars'] = 'Variablen, die in den Vorlagen ersetzt werden:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Wird mit dem Vornamen des Kunden ersetzt.'; +$lng['admin']['templates']['NAME'] = 'Wird mit dem Namen des Kunden ersetzt.'; +$lng['admin']['templates']['USERNAME'] = 'Wird mit dem Benutzernamen des neuen Kundenkontos ersetzt.'; +$lng['admin']['templates']['PASSWORD'] = 'Wird mit dem Passwort des neuen Kundenkontos ersetzt.'; +$lng['admin']['templates']['EMAIL'] = 'Wird mit der Adresse des neuen POP3/IMAP Kontos ersetzt.'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Session Timeout'; +$lng['serversettings']['session_timeout']['description'] = 'Wie lange muss ein Benutzer inaktiv sein, damit die Session ungültig wird? (Sekunden)'; +$lng['serversettings']['accountprefix']['title'] = 'Kundenprefix'; +$lng['serversettings']['accountprefix']['description'] = 'Welchen Prefix sollen die Kundenaccounts haben?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL-Prefix'; +$lng['serversettings']['mysqlprefix']['description'] = 'Welchen Prefix sollen die MySQL-Benutzerkonten haben?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP-Prefix'; +$lng['serversettings']['ftpprefix']['description'] = 'Welchen Prefix sollen die FTP-Benutzerkonten haben?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Heimatverzeichnis'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Wo sollen alle Heimatverzeichnisse der Kunden liegen?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Apache-Logdateien-Verzeichnis'; +$lng['serversettings']['logfiles_directory']['description'] = 'Wo sollen alle Logdateien des Apache liegen?'; +$lng['serversettings']['ipaddress']['title'] = 'IP-Adresse'; +$lng['serversettings']['ipaddress']['description'] = 'Welche IP-Adresse hat der Server?'; +$lng['serversettings']['hostname']['title'] = 'Hostname'; +$lng['serversettings']['hostname']['description'] = 'Welchen Hostnamen hat der Server?'; +$lng['serversettings']['apachereload_command']['title'] = 'Apache-Reload-Command'; +$lng['serversettings']['apachereload_command']['description'] = 'Wie heisst das Skript zum Neuladen der Apache-Konfigurationsdateien?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Bind-Config-Directory'; +$lng['serversettings']['bindconf_directory']['description'] = 'Wo liegen die Bind-Konfigurationsdateien?'; +$lng['serversettings']['bindreload_command']['title'] = 'Bind-Reload-Command'; +$lng['serversettings']['bindreload_command']['description'] = 'Wie heisst das Skript zum Neuladen der Bind-Konfigurationsdateien?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Bind-Default-Zone'; +$lng['serversettings']['binddefaultzone']['description'] = 'Wie heißt die Default-Zone für alle Domains?'; +$lng['serversettings']['vmail_uid']['title'] = 'Mails-Uid'; +$lng['serversettings']['vmail_uid']['description'] = 'Welche UID sollen die E-Mails haben?'; +$lng['serversettings']['vmail_gid']['title'] = 'Mails-Gid'; +$lng['serversettings']['vmail_gid']['description'] = 'Welche GID sollen die E-Mails haben?'; +$lng['serversettings']['vmail_homedir']['title'] = 'Mails-Homedir'; +$lng['serversettings']['vmail_homedir']['description'] = 'Wo sollen die E-Mails liegen?'; +$lng['serversettings']['adminmail']['title'] = 'Absenderadresse'; +$lng['serversettings']['adminmail']['description'] = 'Wie ist die Absenderadresse für E-Mails aus dem Panel?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin-URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'Wo liegt der phpMyAdmin? (muss mit http(s):// beginnen)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMail-URL'; +$lng['serversettings']['webmail_url']['description'] = 'Wo liegt das WebMail? (muss mit http(s):// beginnen)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP-URL'; +$lng['serversettings']['webftp_url']['description'] = 'Wo liegt das WebFTP? (muss mit http(s):// beginnen)'; +$lng['serversettings']['language']['description'] = 'Welche Sprache ist Ihre Standardsprache?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Maximale Loginversuche'; +$lng['serversettings']['maxloginattempts']['description'] = 'Maximale Anzahl an Loginversuchen bis der Account deaktiviert wird.'; +$lng['serversettings']['deactivatetime']['title'] = 'Länge der Deaktivierung'; +$lng['serversettings']['deactivatetime']['description'] = 'Zeitraum (in sek.) für den der Account deaktiviert ist.'; +$lng['serversettings']['pathedit']['title'] = 'Pfad-Eingabemethode'; +$lng['serversettings']['pathedit']['description'] = 'Soll ein Pfad via Dropdown-Menü ausgewählt oder manuell eingegeben werden können.'; +$lng['serversettings']['nameservers']['title'] = 'Nameserver'; +$lng['serversettings']['nameservers']['description'] = 'Eine durch Komma getrennte Liste mit den Hostnamen aller Nameserver. Der erste ist der primäre.'; +$lng['serversettings']['mxservers']['title'] = 'MX Server'; +$lng['serversettings']['mxservers']['description'] = 'Eine durch Komma getrenne Liste die ein Paar mit einer Nummer und den Hostnamen einen MX Servers, getrennt durch ein Leerzeichen, enthaelt (z.B. \'10 mx.example.com\').'; + +/** + * CHANGED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['mysql']['description'] = 'Hier können Sie MySQL-Datenbanken anlegen und löschen.
Die Änderungen werden sofort wirksam und die Datenbanken sofort benutzbar.
Im Menü finden Sie einen Link zum phpMyAdmin, mit dem Sie Ihre Datenbankeninhalte einfach bearbeiten können.

Die Zugangsdaten von php-Skripten sind wie folgt: (Die Angaben in kursiver Schrift sind durch die jeweiligen Einträge zu ersetzen!)
Hostname:
Benutzername: Datenbankname
Passwort: das gewählte Passwort
Datenbank: Datenbankname'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Letzter Cronjob'; +$lng['serversettings']['paging']['title'] = 'Einträge pro Seite'; +$lng['serversettings']['paging']['description'] = 'Wieviele Einträge sollen auf einer Seite gezeigt werden? (0 = Paging deaktivieren)'; +$lng['error']['ipstillhasdomains'] = 'Die IP/Port Kombination, die Sie löschen wollen ist noch bei einer oder mehreren Domains eingetragen. Bitte ändern sie die Domains vorher auf eine andere IP/Port Kombination um diese löschen zu können.'; +$lng['error']['cantdeletedefaultip'] = 'Sie können die Standard IP/Port Kombination für Reseller nicht löschen. Bitte setzen Sie eine andere IP/Port Kombination als Standard um diese löschen zu können.'; +$lng['error']['cantdeletesystemip'] = 'Sie können die letzte System IP nicht löschen. Entweder legen Sie eine neue IP/Port Kombination als Systemeinstellung an oder ändern die System IP.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'Sie müssen eine IP/Port Kombination auswählen, die den Standard defninieren soll.'; +$lng['error']['myipnotdouble'] = 'Diese Kombination aus IP und Post existiert bereits.'; +$lng['question']['admin_ip_reallydelete'] = 'Wollen Sie wirklich die IP %s löschen?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IPs und Ports'; +$lng['admin']['ipsandports']['add'] = 'IP/Port hinzufügen'; +$lng['admin']['ipsandports']['edit'] = 'IP/Port bearbeiten'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Port'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'Sie können die letzte System IP nicht löschen. Entweder legen Sie noch eine neue IP/Port Kombination als Systemeinstellung an oder ändern die System IP.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Sind Sie sicher, dass der DocumentRoot dieser Domain außerhalb des Heimatverzeichnisses des Kunden liegen soll?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Deaktiviert'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir-Pfad'; +$lng['domain']['docroot'] = 'Oben eingegebener Pfad'; +$lng['domain']['homedir'] = 'Heimverzeichnis'; +$lng['admin']['valuemandatory'] = 'Dieses Feld muss ausgefüllt werden'; +$lng['admin']['valuemandatorycompany'] = 'Entweder "Name" und "Vorname" oder "Firma" muss ausgefüllt werden'; +$lng['menue']['main']['username'] = 'Angemeldet als: '; +$lng['panel']['urloverridespath'] = 'URL (überschreibt Pfad)'; +$lng['panel']['pathorurl'] = 'Pfad oder URL'; +$lng['error']['sessiontimeoutiswrong'] = '"Session-Timeout" muss ein numerischer Wert sein.'; +$lng['error']['maxloginattemptsiswrong'] = '"Maximale Loginversuche" muss ein numerischer Wert sein.'; +$lng['error']['deactivatetimiswrong'] = '"Länge der Deaktivierung" muss numerisch sein.'; +$lng['error']['accountprefixiswrong'] = 'Das "Kundenprefix" ist falsch.'; +$lng['error']['mysqlprefixiswrong'] = 'Das "SQL-Prefix" ist falsch.'; +$lng['error']['ftpprefixiswrong'] = 'Das "FTP-Prefix" ist falsch.'; +$lng['error']['ipiswrong'] = 'Die "IP-Adresse" ist falsch. Es ist nur eine gültige IP-Adresse erlaubt.'; +$lng['error']['vmailuidiswrong'] = 'Die "Mails-UID" ist falsch. Nur eine numerische UID ist erlaubt.'; +$lng['error']['vmailgidiswrong'] = 'Die "Mails-GID" ist falsch. Nur eine numerische GID ist erlaubt.'; +$lng['error']['adminmailiswrong'] = 'Die "Absenderadresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; +$lng['error']['pagingiswrong'] = 'Die "Einträge pro Seite"-Einstellung ist falsch. Nur numerische Zeichen sind erlaubt.'; +$lng['error']['phpmyadminiswrong'] = 'Die "phpMyAdmin-URL" ist keine gültige URL.'; +$lng['error']['webmailiswrong'] = 'Die "WebMail-URL" ist keine gültige URL.'; +$lng['error']['webftpiswrong'] = 'Die "WebFTP-URL" ist keine gültige URL.'; +$lng['domains']['hasaliasdomains'] = 'Hat Aliasdomain(s)'; +$lng['serversettings']['defaultip']['title'] = 'Standard IP/Port'; +$lng['serversettings']['defaultip']['description'] = 'Welche IP/Port-Kombination soll standardmäßig verwendet werden?'; +$lng['domains']['statstics'] = 'Statistiken'; +$lng['panel']['ascending'] = 'aufsteigend'; +$lng['panel']['decending'] = 'absteigend'; +$lng['panel']['search'] = 'Suche'; +$lng['panel']['used'] = 'benutzt'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = 'Übersetzung'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = 'Der Wert des Feldes "%s" ist nicht im erwarteten Format.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Serversoftware'; +$lng['admin']['phpversion'] = 'PHP-Version'; +$lng['admin']['phpmemorylimit'] = 'PHP-Memory-Limit'; +$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; +$lng['admin']['mysqlclientversion'] = 'MySQL Client Version'; +$lng['admin']['webserverinterface'] = 'Webserver Interface'; +$lng['domains']['isassigneddomain'] = 'Ist zugewiesene Domain'; +$lng['serversettings']['phpappendopenbasedir']['title'] = 'An OpenBasedir anzuhängende Pfade'; +$lng['serversettings']['phpappendopenbasedir']['description'] = 'Diese (durch Doppelpunkte getrennten) Pfade werden dem OpenBasedir-Statement in jedem vhost-Container angehängt.'; + +// CHANGED IN 1.2.15-rc1 + +$lng['error']['loginnameissystemaccount'] = 'Sie können keinen Account anlegen, welcher wie ein Systemaccount aussieht (also zum Beispiel mit "%s" anfängt). Bitte wählen Sie einen anderen Accountnamen.'; +$lng['error']['youcantdeleteyourself'] = 'Aus Sicherheitsgründen können Sie sich nicht selbst löschen.'; +$lng['error']['youcanteditallfieldsofyourself'] = 'Hinweis: Aus Sicherheitsgründen können Sie nicht alle Felder Ihres eigenen Accounts bearbeiten.'; + +// ADDED IN 1.2.16-svn1 + +$lng['serversettings']['natsorting']['title'] = 'Natürliche Sortierung in der Listenansicht nutzen'; +$lng['serversettings']['natsorting']['description'] = 'Sortiert die Liste in der Reihenfolge web1 -> web2 -> web11 anstatt web1 -> web11 -> web2.'; + +// ADDED IN 1.2.16-svn2 + +$lng['serversettings']['deactivateddocroot']['title'] = 'Docroot für deaktivierte Benutzer'; +$lng['serversettings']['deactivateddocroot']['description'] = 'Dieser Pfad wird als docroot für deaktivierte Benutzer verwendet. Wenn leer, wird kein vHost erstellt.'; + +// ADDED IN 1.2.16-svn4 + +$lng['panel']['reset'] = 'Änderungen verwerfen'; +$lng['admin']['accountsettings'] = 'Konteneinstellungen'; +$lng['admin']['panelsettings'] = 'Paneleinstellungen'; +$lng['admin']['systemsettings'] = 'Systemeinstellungen'; +$lng['admin']['webserversettings'] = 'Webservereinstellungen'; +$lng['admin']['mailserversettings'] = 'Mailservereinstellungen'; +$lng['admin']['nameserversettings'] = 'Nameservereinstellungen'; +$lng['admin']['updatecounters'] = 'Ressourcenverbrauch'; +$lng['question']['admin_counters_reallyupdate'] = 'Wollen Sie den Ressourcenverbrauch neu berechnen?'; +$lng['panel']['pathDescription'] = 'Wenn das Verzeichnis nicht existiert, wird es automatisch erstellt.'; + +// ADDED IN 1.2.16-svn6 + +$lng['mails']['trafficninetypercent']['mailbody'] = 'Sehr geehrte(r) {NAME},\n\nSie haben bereits {TRAFFICUSED} MB von Ihren insgesamt {TRAFFIC} MB Traffic verbraucht.\nDies sind mehr als 90%.\n\nVielen Dank,\ndas SysCP-Team'; +$lng['mails']['trafficninetypercent']['subject'] = 'Sie erreichen bald Ihr Traffic-Limit'; +$lng['admin']['templates']['trafficninetypercent'] = 'Hinweismail für Kunden, wenn sie 90% des Traffics verbraucht haben'; +$lng['admin']['templates']['TRAFFIC'] = 'Wird mit Traffic, der dem Kunden zugewiesen wurde, ersetzt.'; +$lng['admin']['templates']['TRAFFICUSED'] = 'Wird mit Traffic, der vom Kunden bereits verbraucht wurde, ersetzt.'; + +// ADDED IN 1.2.16-svn7 + +$lng['admin']['subcanemaildomain']['never'] = 'Nie'; +$lng['admin']['subcanemaildomain']['choosableno'] = 'Wählbar, Standardwert: Nein'; +$lng['admin']['subcanemaildomain']['choosableyes'] = 'Wählbar, Standardwert: Ja'; +$lng['admin']['subcanemaildomain']['always'] = 'Immer'; +$lng['changepassword']['also_change_webalizer'] = ' Auch Passwort vom Webalizer ändern'; + +// ADDED IN 1.2.16-svn8 + +$lng['serversettings']['mailpwcleartext']['title'] = 'Passwörter der Mail-Konten auch im Klartext in der Datenbank speichern'; +$lng['serversettings']['mailpwcleartext']['description'] = 'Wenn diese Einstellung auf Ja gesetzt wird, werden alle Passwörter auch unverschlüsselt (also im Klartext, für jeden mit Zugriff auf die SysCP-Datenbank sofort lesbar) in der mail_users-Tabelle gespeichert. Aktivieren Sie diese Option nur dann, wenn Sie sie wirklich gebrauchen!'; +$lng['serversettings']['mailpwcleartext']['removelink'] = 'Klicken Sie hier, um alle unverschlüsselten Passwörter aus der Tabelle zu entfernen.'; +$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Wollen Sie wirklich alle unverschlüsselten Passwörter aus der Tabelle mail_users entfernen? Dieser Schritt kann nicht rückgängig gemacht werden!'; +$lng['admin']['configfiles']['overview'] = 'Übersicht'; +$lng['admin']['configfiles']['wizard'] = 'Assistent'; +$lng['admin']['configfiles']['distribution'] = 'Distribution'; +$lng['admin']['configfiles']['service'] = 'Service'; +$lng['admin']['configfiles']['daemon'] = 'Daemon'; +$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; +$lng['admin']['configfiles']['dns'] = 'Nameserver (DNS)'; +$lng['admin']['configfiles']['mail'] = 'Mailserver (IMAP/POP3)'; +$lng['admin']['configfiles']['smtp'] = 'Mailserver (SMTP)'; +$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; +$lng['admin']['configfiles']['etc'] = 'Sonstige (System)'; +$lng['admin']['configfiles']['choosedistribution'] = '-- Distribution wählen --'; +$lng['admin']['configfiles']['chooseservice'] = '-- Service wählen --'; +$lng['admin']['configfiles']['choosedaemon'] = '-- Daemon wählen --'; +$lng['admin']['trafficlastrun'] = 'Letzte Trafficberechnung'; + +// ADDED IN 1.2.16-svn10 + +$lng['serversettings']['ftpdomain']['title'] = 'FTP-Benutzerkonten @domain'; +$lng['serversettings']['ftpdomain']['description'] = 'Können Kunden FTP-Benutzerkonten user@customerdomain anlegen?'; +$lng['panel']['back'] = 'Zurück'; + +// ADDED IN 1.2.16-svn12 + +$lng['serversettings']['mod_log_sql']['title'] = 'Logs in Datenbank zwischenspeichern'; +$lng['serversettings']['mod_log_sql']['description'] = 'mod_log_sql benutzen um die Webzugriffe temporär zu speichern
Dies benötigt eine spezielle Apache-Konfiguration'; +$lng['serversettings']['mod_fcgid']['title'] = 'PHP über mod_fcgid/suexec einbinden'; +$lng['serversettings']['mod_fcgid']['description'] = 'mod_fcgid/suexec/libnss_mysql benutzen um PHP unter dem jeweiligen Useraccount laufen zu lassen
Dies benötigt eine spezielle Apache-Konfiguration'; +$lng['serversettings']['sendalternativemail']['title'] = 'Alternative E-Mail-Adresse benutzen'; +$lng['serversettings']['sendalternativemail']['description'] = 'Während des Erstellens eines Accounts das Passwort an eine andere E-Mail-Adresse senden'; +$lng['emails']['alternative_emailaddress'] = 'Alternative E-Mail-Adresse'; +$lng['mails']['pop_success_alternative']['mailbody'] = 'Hallo,\n\nihr E-Mail-Konto {USERNAME}\nwurde erfolgreich eingerichtet.\nIhr Passwort lautet {PASSWORD}.\n\nDies ist eine automatisch generierte\neMail, bitte antworten Sie nicht auf\ndiese Mitteilung.\n\nIhr SysCP-Team'; +$lng['mails']['pop_success_alternative']['subject'] = 'E-Mail-Konto erfolgreich eingerichtet'; +$lng['admin']['templates']['pop_success_alternative'] = 'Willkommensmail für neue E-Mail Konten für die alternative Email Addresse'; +$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Wird mit dem Passwort des neuen POP3/IMAP Kontos ersetzt.'; + +// ADDED IN 1.2.16-svn13 + +$lng['error']['documentrootexists'] = 'Es existiert noch ein Verzeichnis "%s" für diesen Kunden. Bitte dieses vorher löschen.'; + +// ADDED IN 1.2.16-svn14 + +$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vHost-Konfigurations-Datei/Verzeichnis-Name'; +$lng['serversettings']['apacheconf_vhost']['description'] = 'Wo soll die vHost-Konfigurationen abgelegt werden? Sie können entweder eine Datei (also mit allen vhosts) oder einen Ordner (mit einer Datei pro vhost) angeben.'; +$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache Verzeichnisoption-Konfigurations-Datei/Verzeichnis-Name'; +$lng['serversettings']['apacheconf_diroptions']['description'] = 'Wo soll die Verzeichnisoption-Konfigurationen abgelegt werden? Sie können entweder eine Datei (also mit allen vhosts) oder einen Ordner (mit einer Datei pro vhost) angeben.'; +$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd Verzeichnisname'; +$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Wo sollen die htpasswd-Dateien fü den Verzeichnisschutz abgelegt werden?'; + +// ADDED IN 1.2.16-svn15 + +$lng['error']['formtokencompromised'] = 'Das Formular scheint manipuliert worden zu sein. Aus Sicherheitsgründen wurden Sie ausgelogged.'; +$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; +$lng['serversettings']['mysql_access_host']['description'] = 'Eine durch Komma getrennte Liste mit den Hostnamen aller Hostnames/IP-Adressen, von denen sich die Benutzer einloggen dürfen.'; + +// CHANGED IN 1.2.18 + +$lng['serversettings']['mod_log_sql']['description'] = 'mod_log_sql benutzen um die Webzugriffe temporär zu speichern
Dies benötigt eine spezielle Apache-Konfiguration'; +$lng['serversettings']['mod_fcgid']['description'] = 'mod_fcgid/suexec/libnss_mysql benutzen um PHP unter dem jeweiligen Useraccount laufen zu lassen
Dies benötigt eine spezielle Apache-Konfiguration. Alle nachfolgenden Optionen sind nur gültig wenn das Modul aktiviert wird.'; + +// ADDED IN 1.2.18-svn1 + +$lng['admin']['ipsandports']['create_listen_statement'] = 'Erstelle Listen-Eintrag'; +$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Erstelle NameVirtualHost-Eintrag'; +$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Erstelle vHost-Container'; +$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Erstelle ServerName-Eintrag im vHost-Container'; + +// ADDED IN 1.2.18-svn2 + +$lng['admin']['webalizersettings'] = 'Webalizereinstellungen'; +$lng['admin']['webalizer']['normal'] = 'Normal'; +$lng['admin']['webalizer']['quiet'] = 'Leise'; +$lng['admin']['webalizer']['veryquiet'] = 'Keine Ausgaben'; +$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizerausgabe'; +$lng['serversettings']['webalizer_quiet']['description'] = 'Ausgabefreudigkeit des webalizer-Programms'; + +// ADDED IN 1.2.18-svn3 + +$lng['ticket']['admin_email'] = 'root@localhost'; +$lng['ticket']['noreply_email'] = 'tickets@syscp'; +$lng['admin']['ticketsystem'] = 'Support-Tickets'; +$lng['menue']['ticket']['ticket'] = 'Support Tickets'; +$lng['menue']['ticket']['categories'] = 'Support Kategorien'; +$lng['menue']['ticket']['archive'] = 'Ticket-Archiv'; +$lng['ticket']['description'] = 'Hier können Sie Hilfe-Anfragen an Ihren zuständigen Administrator senden.
Benachrichtigungen werden per E-Mail verschickt.'; +$lng['ticket']['ticket_new'] = 'Neues Support-Ticket erstellen'; +$lng['ticket']['ticket_reply'] = 'Auf Support-Ticket antworten'; +$lng['ticket']['ticket_reopen'] = 'Ticket wiedereröffnen'; +$lng['ticket']['ticket_newcateory'] = 'Neue Kategorie erstellen'; +$lng['ticket']['ticket_editcateory'] = 'Kategorie bearbeiten'; +$lng['ticket']['ticket_view'] = 'Ticketverlauf ansehen'; +$lng['ticket']['ticketcount'] = 'Anzahl Tickets'; +$lng['ticket']['ticket_answers'] = 'Antworten'; +$lng['ticket']['lastchange'] = 'Letzte Aktualisierung'; +$lng['ticket']['subject'] = 'Betreff'; +$lng['ticket']['status'] = 'Status'; +$lng['ticket']['lastreplier'] = 'Letzte Antwort'; +$lng['ticket']['priority'] = 'Priorität'; +$lng['ticket']['low'] = 'Niedrig'; +$lng['ticket']['normal'] = 'Normal'; +$lng['ticket']['high'] = 'Hoch'; +$lng['ticket']['unf_low'] = 'Niedrig'; +$lng['ticket']['unf_normal'] = 'Normal'; +$lng['ticket']['unf_high'] = 'Hoch'; +$lng['ticket']['lastchange'] = 'Letzte Änderung'; +$lng['ticket']['lastchange_from'] = 'Anfangsdatum (tt.mm.jjjj)'; +$lng['ticket']['lastchange_to'] = 'Enddatum (tt.mm.jjjj)'; +$lng['ticket']['category'] = 'Kategorie'; +$lng['ticket']['no_cat'] = 'Keine'; +$lng['ticket']['message'] = 'Nachricht'; +$lng['ticket']['show'] = 'Anschauen'; +$lng['ticket']['answer'] = 'Antworten'; +$lng['ticket']['close'] = 'Schließen'; +$lng['ticket']['reopen'] = 'Wiedereröffnen'; +$lng['ticket']['archive'] = 'Archivieren'; +$lng['ticket']['ticket_delete'] = 'Ticket löschen'; +$lng['ticket']['lastarchived'] = 'Zuletzt archivierte Tickets'; +$lng['ticket']['archivedtime'] = 'Archiviert'; +$lng['ticket']['open'] = 'Offen'; +$lng['ticket']['wait_reply'] = 'Warte auf Antwort'; +$lng['ticket']['replied'] = 'Beantwortet'; +$lng['ticket']['closed'] = 'Geschlossen'; +$lng['ticket']['staff'] = 'Mitarbeiter'; +$lng['ticket']['customer'] = 'Kunde'; +$lng['ticket']['old_tickets'] = 'Bisheriger Ticketverlauf'; +$lng['ticket']['search'] = 'Archiv durchsuchen'; +$lng['ticket']['nocustomer'] = 'Keine Angabe'; +$lng['ticket']['archivesearch'] = 'Archiv Suchergebnis'; +$lng['ticket']['noresults'] = 'Keine Tickets gefunden'; +$lng['ticket']['notmorethanxopentickets'] = 'Zum Schutz gegen Spam können Sie nicht mehr als %s offene Tickets haben'; +$lng['ticket']['supportstatus'] = 'Support-Status'; +$lng['ticket']['supportavailable'] = 'Der Support ist besetzt und steht zu Ihrer Verfügung.'; +$lng['ticket']['supportnotavailable'] = 'Der Support ist zur Zeit nicht besetzt.'; +$lng['admin']['templates']['ticket'] = 'Benachrichtigungs-Mails für Support-Tickets'; +$lng['admin']['templates']['SUBJECT'] = 'Wird mit dem Betreff des Support-Tickets ersetzt'; +$lng['admin']['templates']['new_ticket_for_customer'] = 'Kunden-Information das das Ticket übermittelt wurde'; +$lng['admin']['templates']['new_ticket_by_customer'] = 'Admin-Benachrichtigung für ein Ticket eines Kunden'; +$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admin-Benachrichtigung für ein beantwortetes Ticket'; +$lng['admin']['templates']['new_ticket_by_staff'] = 'Kunden-Benachrichtigung für ein Ticket eines Mitarbeiters'; +$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Kunden-Benachrichtigung für ein beantwortetes Ticket'; +$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nihr Support-Ticket mit dem Betreff "{SUBJECT}" wurde erfolgreich gesendet.\n\nSobald ihr Ticket beantwortet wurde, werden Sie per E-Mail benachrichtigt.\n\nVielen Dank,\nthe SysCP-Team'; +$lng['mails']['new_ticket_for_customer']['subject'] = 'Wir haben Ihr Support-Ticket erhalten.'; +$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hallo Admin,\n\nein neues Support-Ticket wurde uebermittelt.\n\nBitte melde Dich an um es aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; +$lng['mails']['new_ticket_by_customer']['subject'] = 'Neues Support-Ticket'; +$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hallo Admin,\n\ndas Support-Ticket "{SUBJECT}" wurde von einem Kunden beantwortet.\n\nBitte melde Dich an um es aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; +$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Neue Antwort zu einem Support-Ticket'; +$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\nein Support-Ticket mit dem Betreff "{SUBJECT}" wurde an Sie übermittelt.\n\nBitte melden Sie sich an, um das Ticket aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; +$lng['mails']['new_ticket_by_staff']['subject'] = 'Neues Support-Ticket'; +$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hallo {FIRSTNAME} {NAME},\n\ndas Support-Ticket mit dem Betreff "{SUBJECT}" wurde von einem Mitarbeiter beantwortet.\n\nBitte melden Sie sich an, um das Ticket aufzurufen.\n\nVielen Dank,\ndas SysCP-Team'; +$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Neue Antwort zu einem Support-Ticket'; +$lng['question']['ticket_reallyclose'] = 'Wollen Sie das Ticket "%s" wirklich schließen?'; +$lng['question']['ticket_reallydelete'] = 'Wollen Sie das Ticket "%s" wirklich löschen?'; +$lng['question']['ticket_reallydeletecat'] = 'Wollen Sie die Kategorie "%s" wirklich löschen?'; +$lng['question']['ticket_reallyarchive'] = 'Wollen Sie das Ticket "%s" wirklich in das Archiv verschieben?'; +$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; +$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; +$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; +$lng['error']['nomoreticketsavailable'] = 'Sie haben Ihr Ticketkontingent aufgebraucht. Bitte kontaktieren Sie ihren Administrator.'; +$lng['error']['nocustomerforticket'] = 'Keine Kunden vorhanden um ein Ticket zu erstellen.'; +$lng['error']['categoryhastickets'] = 'In dieser Kategorie befinden sich noch Tickets.
Bitte löschen Sie diese um die Kategorie zu löschen'; +$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; +$lng['admin']['ticketsettings'] = 'Support-Ticket Einstellungen'; +$lng['admin']['archivelastrun'] = 'Letzte Ticket-Archivierung'; +$lng['serversettings']['ticket']['noreply_email']['title'] = 'Keine-Antwort E-Mail Adresse'; +$lng['serversettings']['ticket']['noreply_email']['description'] = 'Die Absender-Adresse der Support-Tickets. Meist sowas wie KEINE-ANTWORT@domain.tld'; +$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Beginn Support-Zeit (hh:mm)'; +$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Beginn der Zeit in der der Support besetzt ist.'; +$lng['serversettings']['ticket']['worktime_end']['title'] = 'Ende Support-Zeit (hh:mm)'; +$lng['serversettings']['ticket']['worktime_end']['description'] = 'Ende der Zeit in der der Support besetzt ist.'; +$lng['serversettings']['ticket']['worktime_sat'] = 'Support an Samstagen besetzt?'; +$lng['serversettings']['ticket']['worktime_sun'] = 'Support an Sonntagen besetzt?'; +$lng['serversettings']['ticket']['worktime_all']['title'] = 'Kein zeitlich begrenzter Support'; +$lng['serversettings']['ticket']['worktime_all']['description'] = 'Wenn "Ja" überschreibt diese Option Start- und Endzeit des Supports'; +$lng['serversettings']['ticket']['archiving_days'] = 'Nach wievielen Tagen sollen abgeschlossene Tickets archiviert werden?'; +$lng['customer']['tickets'] = 'Support-Tickets'; + +// ADDED IN 1.2.18-svn4 + +$lng['admin']['domain_nocustomeraddingavailable'] = 'Es können derzeit keine Domains angelegt werden. Sie müssen zuerst einen Kunden anlegen'; +$lng['serversettings']['ticket']['enable'] = 'Ticketsystem aktivieren'; +$lng['serversettings']['ticket']['concurrentlyopen'] = 'Wieviele Tickets kann ein Kunde gleichzeitig öffnen?'; +$lng['error']['norepymailiswrong'] = 'Die "Keine-Antwort-Adresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; +$lng['error']['tadminmailiswrong'] = 'Die "Ticket-Admin-Adresse" ist fehlerhaft. Es ist nur eine gültige E-Mail-Adresse erlaubt'; +$lng['ticket']['awaitingticketreply'] = 'Sie haben %s unbeantwortete(s) Support-Ticket(s)'; + +// ADDED IN 1.2.18-svn5 + +$lng['serversettings']['ticket']['noreply_name'] = 'Ticket E-Mail Absendername'; + +// ADDED IN 1.2.19-svn + +$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'Konfigurations-Verzeichnis'; +$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'Wo sollen alle Konfigurationsdateien von fcgid liegen? Wenn Sie keine selbst kompilierte suexec Binary benutzen, was in der Regel der Fall ist, muss dieser Pfad unter /var/www/ liegen.'; +$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'Temporäres Verzeichnis'; + +// ADDED IN 1.2.19-svn3 + +$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Turnus verbrauchte Tickets zurücksetzen'; +$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Setzt die Anzahl der vom Kunden verbrauchten Tickets in dem angegebenen Turnus auf 0'; +$lng['admin']['tickets']['daily'] = 'Täglich'; +$lng['admin']['tickets']['weekly'] = 'Wöchentlich'; +$lng['admin']['tickets']['monthly'] = 'Monatlich'; +$lng['admin']['tickets']['yearly'] = 'Jährlich'; +$lng['error']['ticketresetcycleiswrong'] = 'Der Turnus des Ticket-Zurücksetzen muss "Täglich", "Wöchentlich", "Monatlich" oder "Jährlich" sein.'; + +// ADDED IN 1.2.19-svn4 + +$lng['menue']['traffic']['traffic'] = 'Traffic'; +$lng['menue']['traffic']['current'] = 'Aktueller Monat'; +$lng['traffic']['month'] = "Monat"; +$lng['traffic']['months'][1] = "Januar"; +$lng['traffic']['months'][2] = "Februar"; +$lng['traffic']['months'][3] = "März"; +$lng['traffic']['months'][4] = "April"; +$lng['traffic']['months'][5] = "Mai"; +$lng['traffic']['months'][6] = "Juni"; +$lng['traffic']['months'][7] = "Juli"; +$lng['traffic']['months'][8] = "August"; +$lng['traffic']['months'][9] = "September"; +$lng['traffic']['months'][10] = "Oktober"; +$lng['traffic']['months'][11] = "November"; +$lng['traffic']['months'][12] = "Dezember"; +$lng['traffic']['mb'] = "Traffic (MB)"; +$lng['traffic']['day'] = "Tag"; +$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; +$lng['traffic']['sumhttp'] = 'Summe HTTP-Traffic in'; +$lng['traffic']['sumftp'] = 'Summe FTP-Traffic in'; +$lng['traffic']['summail'] = 'Summe Mail-Traffic in'; + +// ADDED IN 1.2.19-svn4.5 + +$lng['serversettings']['no_robots']['title'] = 'Erlaube die Indizierung Ihres Froxlor durch Suchmaschinen'; + +// ADDED IN 1.2.19-svn6 + +$lng['admin']['loggersettings'] = 'Log Einstellungen'; +$lng['serversettings']['logger']['enable'] = 'Logging ja/nein'; +$lng['serversettings']['logger']['severity'] = 'Logging Level'; +$lng['admin']['logger']['normal'] = 'Normal'; +$lng['admin']['logger']['paranoid'] = 'Paranoid'; +$lng['serversettings']['logger']['types']['title'] = 'Log-Art(en)'; +$lng['serversettings']['logger']['types']['description'] = 'Tragen Sie hier die gewünschten Logtypen kommagetrennt ein.
Mögliche Logtypen sind: syslog, file, mysql'; +$lng['serversettings']['logger']['logfile'] = 'Log-Datei Pfad inklusive Dateinamen'; +$lng['error']['logerror'] = 'Log-Fehler: %s'; +$lng['serversettings']['logger']['logcron'] = 'Log Cronjobs (einen Durchgang)'; +$lng['question']['logger_reallytruncate'] = 'Wollen Sie die Tabelle "%s" wirklich leeren?'; +$lng['admin']['loggersystem'] = 'System-Logging'; +$lng['menue']['logger']['logger'] = 'System-Logging'; +$lng['logger']['date'] = 'Datum'; +$lng['logger']['type'] = 'Typ'; +$lng['logger']['action'] = 'Aktion'; +$lng['logger']['user'] = 'Benutzer'; +$lng['logger']['truncate'] = 'Log leeren'; + +// ADDED IN 1.2.19-svn7 + +$lng['serversettings']['ssl']['use_ssl'] = 'SSL nutzen'; +$lng['serversettings']['ssl']['ssl_cert_file'] = 'Pfad zum Zertifikat'; +$lng['serversettings']['ssl']['openssl_cnf'] = 'Standardwerte zum Erstellen eines Zertifikats'; +$lng['panel']['reseller'] = 'Reseller'; +$lng['panel']['admin'] = 'Administrator'; +$lng['panel']['customer'] = 'Kunde/n'; +$lng['error']['nomessagetosend'] = 'Keine Nachricht angegeben'; +$lng['error']['noreceipientsgiven'] = 'Keine Empfänger angegeben'; +$lng['admin']['emaildomain'] = 'E-Maildomain'; +$lng['admin']['email_only'] = 'Nur E-Mail?'; +$lng['admin']['wwwserveralias'] = 'Einen "www." ServerAlias hinzufügen'; +$lng['admin']['ipsandports']['enable_ssl'] = 'Ist dies ein SSL-Port?'; +$lng['admin']['ipsandports']['ssl_cert_file'] = 'Pfad zum Zertifikat'; +$lng['panel']['send'] = 'Versenden'; +$lng['admin']['subject'] = 'Betreff'; +$lng['admin']['receipient'] = 'Empfänger'; +$lng['admin']['message'] = 'Rundmail senden'; +$lng['admin']['text'] = 'Nachricht'; +$lng['menu']['message'] = 'Nachrichten'; +$lng['error']['errorsendingmail'] = 'Das Versenden der Nachricht an "%s" schlug fehl.'; +$lng['error']['cannotreaddir'] = 'Der Ordner "%s" kann nicht gelesen werden'; +$lng['message']['success'] = 'Nachricht erfolgreich an %s Empfänger gesendet'; +$lng['message']['noreceipients'] = 'Es wurde keine E-Mail versendet da sich keine Empfänger in der Datenbank befinden'; +$lng['admin']['sslsettings'] = 'SSL Einstellungen'; +$lng['cronjobs']['notyetrun'] = 'Bisher nicht gestartet'; +$lng['install']['servername_should_be_fqdn'] = 'Der Servername sollte eine FQDN sein und keine IP Adresse'; +$lng['serversettings']['default_vhostconf']['title'] = 'Standard Vhost-Einstellungen'; +$lng['serversettings']['default_vhostconf']['description'] = 'Der Inhalt dieses Feldes wird direkt in jeden Domain-vHost-Container übernommen. Achtung: Der Code wird nicht auf Fehler geprüft. Etwaige Fehler werden also auch übernommen. Apache könnte nicht mehr starten!'; +$lng['error']['invalidip'] = 'Ungültige IP Adresse: %s'; +$lng['serversettings']['decimal_places'] = 'Nachkommastellen bei der Ausgabe von Traffic/Webspace'; + +// ADDED IN 1.2.19-svn8 + +$lng['admin']['dkimsettings'] = 'DomainKey - Einstellungen'; +$lng['dkim']['dkim_prefix']['title'] = 'Prefix'; +$lng['dkim']['dkim_prefix']['description'] = 'Wie lautet der Pfad zu den DKIM RSA-Dateien sowie den Einstellungsdateien des Milter-Plugins?'; +$lng['dkim']['dkim_domains']['title'] = 'Domains Dateiname'; +$lng['dkim']['dkim_domains']['description'] = 'Dateiname der DKIM Domains Angabe aus der dkim-milter-Konfigurationsdatei'; +$lng['dkim']['dkim_dkimkeys']['title'] = 'KeyList Dateiname'; +$lng['dkim']['dkim_dkimkeys']['description'] = 'Dateiname der DKIM KeyList Angabe aus der dkim-milter-Konfigurationsdatei'; +$lng['dkim']['dkimrestart_command']['title'] = 'Milter Restart Kommando'; +$lng['dkim']['dkimrestart_command']['description'] = 'Wie lautet das Kommando zum Neustarten des DKIM Milter Dienstes?'; + +// ADDED IN 1.2.19-svn9 + +$lng['admin']['caneditphpsettings'] = 'Kann PHP-bezogene Domaineinstellungen machen?'; + +// ADDED IN 1.2.19-svn12 + +$lng['admin']['allips'] = 'Alle IP\'s'; +$lng['panel']['nosslipsavailable'] = 'Für diesen Server wurden noch keine SSL IP/Port Kombinationen eingetragen'; +$lng['ticket']['by'] = 'von'; +$lng['dkim']['use_dkim']['title'] = 'DKIM Support aktivieren?'; +$lng['dkim']['use_dkim']['description'] = 'Wollen Sie das Domain Keys (DKIM) System benutzen?'; +$lng['error']['invalidmysqlhost'] = 'Ungültige MySQL Host Adresse: %s'; +$lng['error']['cannotuseawstatsandwebalizeratonetime'] = 'Webalizer und Awstats können nicht zur gleichen Zeit aktiviert werden, bitte wählen Sie eines aus'; +$lng['serversettings']['webalizer_enabled'] = 'Nutze Webalizer Statistiken'; +$lng['serversettings']['awstats_enabled'] = 'Nutze AWStats Statistiken'; +$lng['admin']['awstatssettings'] = 'Awstats Einstellungen'; +$lng['serversettings']['awstats_domain_file']['title'] = 'Awstats Domain-Dateien Ordner'; +$lng['serversettings']['awstats_model_file']['title'] = 'Awstats Model Datei'; + +// ADDED IN 1.2.19-svn16 + +$lng['admin']['domain_dns_settings'] = 'Domain DNS Einstellungen'; +$lng['dns']['destinationip'] = 'Domain IP'; +$lng['dns']['standardip'] = 'Server Standard IP'; +$lng['dns']['a_record'] = 'A-Eintrag (IPv6 optional)'; +$lng['dns']['cname_record'] = 'CNAME-Eintrag'; +$lng['dns']['mxrecords'] = 'MX Einträge definieren'; +$lng['dns']['standardmx'] = 'Server Standard MX Eintrag'; +$lng['dns']['mxconfig'] = 'Eigene MX Einträge'; +$lng['dns']['priority10'] = 'Priorität 10'; +$lng['dns']['priority20'] = 'Priorität 20'; +$lng['dns']['txtrecords'] = 'TXT Einträge definieren'; +$lng['dns']['txtexample'] = 'Beispiel (SPF-Eintrag):
v=spf1 ip4:xxx.xxx.xx.0/23 -all'; +$lng['serversettings']['selfdns']['title'] = 'Manuelle DNS Einstellungen für Domains'; +$lng['serversettings']['selfdnscustomer']['title'] = 'Erlaube Kunden eigene DNS Einstellungen vornehmen zu können'; +$lng['admin']['activated'] = 'Aktiviert'; +$lng['admin']['statisticsettings'] = 'Statistik Einstellungen'; +$lng['admin']['or'] = 'oder'; + +// ADDED IN 1.2.19-svn17 + +$lng['serversettings']['unix_names']['title'] = 'Benutze UNIX kompatible Benutzernamen'; +$lng['serversettings']['unix_names']['description'] = 'Erlaubt die Nutzung von - und _ in Benutzernamen wenn Nein'; +$lng['error']['cannotwritetologfile'] = 'Logdatei %s konnte nicht für Schreiboperationen geöffnet werden.'; +$lng['admin']['sysload'] = 'System-Auslastung'; +$lng['admin']['noloadavailable'] = 'nicht verfügbar'; +$lng['admin']['nouptimeavailable'] = 'nicht verfügbar'; +$lng['panel']['backtooverview'] = 'Zurück zur Übersicht'; +$lng['admin']['nosubject'] = '(Kein Betreff)'; +$lng['admin']['configfiles']['statistics'] = 'Statistik'; +$lng['login']['forgotpwd'] = 'Passwort vergessen?'; +$lng['login']['presend'] = 'Passwort zurücksetzen'; +$lng['login']['email'] = 'E-Mail Adresse'; +$lng['login']['remind'] = 'Passwort zurücksetzen'; +$lng['login']['usernotfound'] = 'Fehler: Unbekannter Benutzer!'; +$lng['pwdreminder']['subject'] = 'Froxlor - Passwort zurückgesetzt'; +$lng['pwdreminder']['body'] = 'Hallo %s,\n\nIhr Froxlor Passwort wurde zurückgesetzt!\nDas neue Passwort lautet: %p\n\nVielen Dank,\nIhr SysCP-Team'; +$lng['pwdreminder']['success'] = 'Passwort erfolgreich zurückgesetzt.
Sie sollten nun eine E-Mail mit dem neuen Passwort erhalten.'; + +// ADDED IN 1.2.19-svn18 + +$lng['serversettings']['allow_password_reset']['title'] = 'Erlaube das Zurücksetzen des Kundenpassworts'; +$lng['pwdreminder']['notallowed'] = 'Das Zurücksetzen des Passworts ist deaktiviert'; + +// ADDED IN 1.2.19-svn20 + +$lng['serversettings']['awstats_path']['title'] = 'Pfad zum awstats cgi-bin Ordner'; +$lng['serversettings']['awstats_path']['description'] = 'z.B. /usr/share/webapps/awstats/6.1/webroot/cgi-bin/'; +$lng['serversettings']['awstats_updateall_command']['title'] = 'Pfad zu "awstats_updateall.pl"'; +$lng['serversettings']['awstats_updateall_command']['description'] = 'z.B. /usr/bin/awstats_updateall.pl'; + +// ADDED IN 1.2.19-svn21 + +$lng['customer']['title'] = 'Titel'; +$lng['customer']['country'] = 'Land'; +$lng['panel']['dateformat'] = 'JJJJ-MM-TT'; +$lng['panel']['dateformat_function'] = 'd.m.Y'; + +// Y = Year, m = Month, d = Day + +$lng['panel']['timeformat_function'] = 'H:i:s'; + +// H = Hour, i = Minute, s = Second + +$lng['panel']['default'] = 'Standard'; +$lng['panel']['never'] = 'Nie'; +$lng['panel']['active'] = 'Aktiv'; +$lng['panel']['please_choose'] = 'Bitte auswählen'; +$lng['panel']['allow_modifications'] = 'Änderungen zulassen'; +$lng['domains']['add_date'] = 'Zu Froxlor hinzugefügt'; +$lng['domains']['registration_date'] = 'Bei Registry hinzugefügt'; +$lng['domains']['topleveldomain'] = 'Top-Level-Domain'; + +// ADDED IN 1.2.19-svn22 + +$lng['serversettings']['allow_password_reset']['description'] = 'Kunden können ihr Passwort zurücksetzen und bekommen ein Neues per E-Mail zugesandt'; +$lng['serversettings']['allow_password_reset_admin']['title'] = 'Erlaube das Zurücksetzen von Admin-/Reseller-Passwörtern.'; +$lng['serversettings']['allow_password_reset_admin']['description'] = 'Admins/Reseller können ihr Passwort zurücksetzen und bekommen ein Neues per E-Mail zugesandt'; + +// ADDED IN 1.2.19-svn25 +// Mailquota + +$lng['emails']['quota'] = 'Kontingent'; +$lng['emails']['noquota'] = 'Kein Kontingent'; +$lng['emails']['updatequota'] = 'Update Kontingent'; +$lng['serversettings']['mail_quota']['title'] = 'Mailbox-Kontingent'; +$lng['serversettings']['mail_quota']['description'] = 'Standard-Kontingent für neuerstellte E-Mail Benutzerkonten (MegaByte)'; +$lng['serversettings']['mail_quota_enabled']['title'] = 'Nutze E-Mail Kontingent für Kunden'; +$lng['serversettings']['mail_quota_enabled']['description'] = 'Aktiviere Kontingent für E-Mailkonten. Standard ist Nein da dies eine spezielle Konfiguration voraussetzt.'; +$lng['serversettings']['mail_quota_enabled']['removelink'] = 'Hier klicken, um alle E-Mail Kontingente zu entfernen'; +$lng['serversettings']['mail_quota_enabled']['enforcelink'] = 'Hier klicken, um allen Benutzern das Standard Kontingent zu zuweisen'; +$lng['question']['admin_quotas_reallywipe'] = 'Sind Sie sicher, dass alle E-Mail Kontingente aus der Tabelle mail_users entfernt werden sollen? Dieser Schritt kann nicht rückgängig gemacht werden!'; +$lng['question']['admin_quotas_reallyenforce'] = 'Sind Sie sicher, dass sie allen Benutzern das default Quota zuweisen wollen? Dies kann nicht rückgängig gemacht werden!'; +$lng['error']['vmailquotawrong'] = 'Die Kontingent-Größe muss positiv sein.'; +$lng['customer']['email_quota'] = 'E-Mail Kontingent'; +$lng['customer']['email_imap'] = 'E-Mail IMAP'; +$lng['customer']['email_pop3'] = 'E-Mail POP3'; +$lng['customer']['mail_quota'] = 'E-Mail Kontingent'; +$lng['panel']['megabyte'] = 'MegaByte'; +$lng['emails']['quota_edit'] = 'E-Mail Kontingent ändern'; +$lng['panel']['not_supported'] = 'Nicht ünterstüzt in: '; +$lng['error']['allocatetoomuchquota'] = 'Sie versuchen %s MB ' . $lng['emails']['quota'] . ' zu zuweisen, haben aber nicht genug übrig.'; + +// Autoresponder module + +$lng['menue']['email']['autoresponder'] = 'Abwesenheitsnachrichten'; +$lng['autoresponder']['active'] = 'Aktiviert'; +$lng['autoresponder']['autoresponder_add'] = 'Abwesenheitsnachricht hinzufügen'; +$lng['autoresponder']['autoresponder_edit'] = 'Abwesenheitsnachricht bearbeiten'; +$lng['autoresponder']['autoresponder_new'] = 'Neue Abwesenheitsnachricht erstellen'; +$lng['autoresponder']['subject'] = 'Betreff'; +$lng['autoresponder']['message'] = 'Nachricht'; +$lng['autoresponder']['account'] = 'Konto'; +$lng['autoresponder']['sender'] = 'Absender'; +$lng['question']['autoresponderdelete'] = 'Abwesenheitsnachricht wirklich löschen?'; +$lng['error']['noemailaccount'] = 'Es gibt zwei mögliche Gründe warum keine Abwesenheitsnachricht erstellt werden kann: Sie benötigen mindestens einen E-Mail Account. Zweitens kann es sein dass bereits für alle Accounts eine Abwesenheitsnachricht eingerichtet wurde.'; +$lng['error']['missingfields'] = 'Es wurden nicht alle Felder augefüllt.'; +$lng['error']['accountnotexisting'] = 'Der angegebene E-Mail-Account existiert nicht.'; +$lng['error']['autoresponderalreadyexists'] = 'Für dieses Konto existiert bereits eine Abwesenheitsnachricht.'; +$lng['error']['invalidautoresponder'] = 'Das angegebene Konto ist ungültig.'; +$lng['serversettings']['autoresponder_active']['title'] = 'Abwesenheitsnachrichten-Modul verwenden'; +$lng['serversettings']['autoresponder_active']['description'] = 'Möchten Sie das Abwesenheitsnachrichten-Modul verwenden? Dazu muss ein separater Cronjob eingerichtet sein.'; +$lng['invoice']['active'] = 'Rechnung aktiviert'; +$lng['admin']['show_version_login']['title'] = 'Zeige Froxlor Version beim Login'; +$lng['admin']['show_version_login']['description'] = 'Zeige Froxlor Version in der Fußzeile der Loginseite'; +$lng['admin']['show_version_footer']['title'] = 'Zeige Froxlor Version in Fußzeile'; +$lng['admin']['show_version_footer']['description'] = 'Zeige Froxlor Version in der Fußzeile aller anderen Seiten'; +$lng['admin']['syscp_graphic']['title'] = 'Grafik im Kopfbereich des Panels'; +$lng['admin']['syscp_graphic']['description'] = 'Welche Grafik soll im Kopfbereich des Panels anstatt des Froxlor Logos angezeigt werden?'; + +//improved syscp + +$lng['menue']['phpsettings']['maintitle'] = 'PHP Konfigurationen'; +$lng['admin']['phpsettings']['title'] = 'PHP Konfiguration'; +$lng['admin']['phpsettings']['description'] = 'Kurzbeschreibung'; +$lng['admin']['phpsettings']['actions'] = 'Aktionen'; +$lng['admin']['phpsettings']['activedomains'] = 'In Verwendung für Domain(s)'; +$lng['admin']['phpsettings']['notused'] = 'Konfiguration wird nicht verwendet'; +$lng['admin']['misc'] = 'Sonstiges'; +$lng['admin']['phpsettings']['editsettings'] = 'PHP Konfiguration bearbeiten'; +$lng['admin']['phpsettings']['addsettings'] = 'PHP Konfiguration erstellen'; +$lng['admin']['phpsettings']['viewsettings'] = 'PHP Konfiguration ansehen'; +$lng['admin']['phpsettings']['phpinisettings'] = 'php.ini Einstellungen'; +$lng['error']['nopermissionsorinvalidid'] = 'Entweder fehlen Ihnen die nötigen Rechte diese Einstellung zu ändern oder es wurde eine ungültige Id übergeben'; +$lng['panel']['view'] = 'ansehen'; +$lng['question']['phpsetting_reallydelete'] = 'Wollen Sie diese PHP Einstellungen wirklich löschen? Alle Domains die diese Einstellungen bis jetzt verwendet haben, werden dann auf die Standard Einstellungen umgestellt.'; +$lng['admin']['phpsettings']['addnew'] = 'Neue Konfiguration erstellen'; +$lng['error']['phpsettingidwrong'] = 'Eine PHP Konfiguration mit dieser Id existiert nicht'; +$lng['error']['descriptioninvalid'] = 'Der Beschreibungstext ist zu kurz, zu lang oder enthält ungültige Zeichen'; +$lng['error']['info'] = 'Info'; +$lng['admin']['phpconfig']['template_replace_vars'] = 'Variablen, die in den Konfigurationen ersetzt werden'; +$lng['admin']['phpconfig']['safe_mode'] = 'Wird mit der safe_mode Einstellung der Domain ersetzt.'; +$lng['admin']['phpconfig']['pear_dir'] = 'Wird mit dem globalen Wert für das Include Verzeichnis ersetzt.'; +$lng['admin']['phpconfig']['open_basedir_c'] = 'Wird mit einem ; (Semikolon) ersetzt, um open_basedir auszukommentieren/deaktivieren, wenn eingestellt.'; +$lng['admin']['phpconfig']['open_basedir'] = 'Wird mit der open_basedir Einstellung der Domain ersetzt.'; +$lng['admin']['phpconfig']['tmp_dir'] = 'Wird mit der Einstellung für das temporäre Verzeichnis der Domain ersetzt.'; +$lng['admin']['phpconfig']['open_basedir_global'] = 'Wird mit der globalen Einstellung des Pfades ersetzt, der dem open_basedir hinzugefügt wird.'; +$lng['admin']['phpconfig']['customer_email'] = 'Wird mit der E-Mail Adresse des Kunden ersetzt, dem die Domain gehört.'; +$lng['admin']['phpconfig']['admin_email'] = 'Wird mit der E-Mail Adresse des Admins ersetzt, dem die Domain gehört.'; +$lng['admin']['phpconfig']['domain'] = 'Wird mit der Domain ersetzt.'; +$lng['admin']['phpconfig']['customer'] = 'Wird mit dem Loginnamen des Kunden ersetzt, dem die Domain gehört.'; +$lng['admin']['phpconfig']['admin'] = 'Wird mit dem Loginnamen des Admins ersetzt, dem die Domain gehört.'; +$lng['login']['backtologin'] = 'Zurück zum Login'; +$lng['serversettings']['mod_fcgid']['starter']['title'] = 'Prozesse je Domain'; +$lng['serversettings']['mod_fcgid']['starter']['description'] = 'Wieviele PHP Prozesse pro Domain sollen gestartet/erlaubt werden. Der Wert 0 wird empfohlen, da PHP dann selbst die Anzahl effizient verwaltet.'; +$lng['serversettings']['mod_fcgid']['wrapper']['title'] = 'Wrappereinbindung in Vhosts'; +$lng['serversettings']['mod_fcgid']['wrapper']['description'] = 'Wie sollen die Wrapper in den Vhosts eingebunden werden'; +$lng['serversettings']['mod_fcgid']['tmpdir']['description'] = 'Wo sollen die temporären Verzeichnisse erstellt werden'; +$lng['admin']['know_what_youre_doing'] = 'Ändern Sie diese Einstellungen nur, wenn Sie wissen was Sie tun!'; +$lng['serversettings']['mod_fcgid']['peardir']['title'] = 'Globale PEAR Verzeichnisse'; +$lng['serversettings']['mod_fcgid']['peardir']['description'] = 'Welche globalen PEAR Verzeichnisse sollen in den php.ini Einstellungen ersetzt werden? Einzelne Verzeichnisse sind mit einem Doppelpunkt zu trennen.'; + +//improved Froxlor 2 + +$lng['admin']['templates']['index_html'] = 'index.html Datei für neu erzeugte Kundenverzeichnisse'; +$lng['admin']['templates']['SERVERNAME'] = 'Wird mit dem Servernamen ersetzt.'; +$lng['admin']['templates']['CUSTOMER'] = 'Wird mit dem Loginnamen des Kunden ersetzt.'; +$lng['admin']['templates']['ADMIN'] = 'Wird mit dem Loginnamen des Admins ersetzt.'; +$lng['admin']['templates']['CUSTOMER_EMAIL'] = 'Wird mit der E-Mail Adresse des Kunden ersetzt.'; +$lng['admin']['templates']['ADMIN_EMAIL'] = 'Wird mit der E-Mail Adresse des Admin ersetzt.'; +$lng['admin']['templates']['filetemplates'] = 'Dateivorlagen'; +$lng['admin']['templates']['filecontent'] = 'Dateiinhalt'; +$lng['error']['filecontentnotset'] = 'Diese Datei darf nicht leer sein!'; +$lng['serversettings']['index_file_extension']['description'] = 'Welche Dateiendung soll die index Datei in neu erstellten Kundenverzeichnissen haben? Diese Dateiendung wird dann verwendet, wenn Sie bzw. einer Ihrer Admins eigene index Dateivorlagen erstellt haben.'; +$lng['serversettings']['index_file_extension']['title'] = 'Dateiendung für index Datei in neu erstellen Kundenverzeichnissen'; +$lng['error']['index_file_extension'] = 'Die Dateiendung für die index Datei muss zwischen 1 und 6 Zeichen lang sein und darf nur aus den Zeichen a-z, A-Z und 0-9 bestehen'; +$lng['admin']['security_settings'] = 'Sicherheitseinstellungen'; +$lng['admin']['expert_settings'] = 'Experteneinstellungen!'; +$lng['admin']['mod_fcgid_starter']['title'] = 'PHP Prozesse für diese Domain (leer für Standardwert)'; + +//added with aps installer + +$lng['admin']['aps'] = 'APS Installer'; +$lng['customer']['aps'] = 'APS Installer'; +$lng['aps']['scan'] = 'Neue Pakete einlesen'; +$lng['aps']['upload'] = 'Neue Pakete hochladen'; +$lng['aps']['managepackages'] = 'Pakete verwalten'; +$lng['aps']['manageinstances'] = 'Instanzen verwalten'; +$lng['aps']['overview'] = 'Paketübersicht'; +$lng['aps']['status'] = 'Meine Pakete'; +$lng['aps']['search'] = 'Paket suchen'; +$lng['aps']['upload_description'] = 'Bitte wählen Sie die APS ZIP-Dateien aus, um diese im System zu installieren.'; +$lng['aps']['search_description'] = 'Name, Beschreibung, Schlagwort, Version'; +$lng['aps']['detail'] = 'Weitere Informationen'; +$lng['aps']['install'] = 'Paket installieren'; +$lng['aps']['data'] = 'Daten'; +$lng['aps']['version'] = 'Version'; +$lng['aps']['homepage'] = 'Homepage'; +$lng['aps']['installed_size'] = 'Größe nach Installation'; +$lng['aps']['categories'] = 'Kategorien'; +$lng['aps']['languages'] = 'Sprachen'; +$lng['aps']['long_description'] = 'Langbeschreibung'; +$lng['aps']['configscript'] = 'Konfigurationskript'; +$lng['aps']['changelog'] = 'Changelog'; +$lng['aps']['license'] = 'Lizenz'; +$lng['aps']['linktolicense'] = 'Link zur Lizenz'; +$lng['aps']['screenshots'] = 'Screenshots'; +$lng['aps']['back'] = 'Zurück zur Übersicht'; +$lng['aps']['install_wizard'] = 'Installationsassistent...'; +$lng['aps']['wizard_error'] = 'Ihre Eingaben enthalten ungültige Daten. Bitte korrigieren Sie diese, um mit der Installation fortzufahren.'; +$lng['aps']['basic_settings'] = 'Grundlegende Einstellungen'; +$lng['aps']['application_location'] = 'Installationsort'; +$lng['aps']['application_location_description'] = 'Ort an dem die Anwendung installiert werden soll.'; +$lng['aps']['no_domains'] = 'Keine Domains gefunden'; +$lng['aps']['database_password'] = 'Datenbankpasswort'; +$lng['aps']['database_password_description'] = 'Passwort welches für die neu zu erstellende Datenbank verwendet werden soll.'; +$lng['aps']['license_agreement'] = 'Zustimmung'; +$lng['aps']['cancel_install'] = 'Installation abbrechen'; +$lng['aps']['notazipfile'] = 'Die hochgeladene Datei ist keine gültige ZIP-Datei.'; +$lng['aps']['filetoobig'] = 'Die Datei ist zu groß.'; +$lng['aps']['filenotcomplete'] = 'Die Datei wurde nicht vollständig hochgeladen.'; +$lng['aps']['phperror'] = 'Es trat ein PHP interner Fehler auf. Der Upload Fehlercode lautet #'; +$lng['aps']['moveproblem'] = 'Die hochgeladene Datei konnte nicht aus dem temporären Ordner verschoben werden. Prüfen Sie ob alle Rechte korrekt gesetzt sind. Dies gilt insbesondere fü die Ordner /var/www/syscp/temp/ und /var/www/syscp/packages/.'; +$lng['aps']['uploaderrors'] = 'Fehler für die Datei %s
    %s
'; +$lng['aps']['nospecialchars'] = 'Sonderzeichen sind im Suchausdruck nicht erlaubt!'; +$lng['aps']['noitemsfound'] = 'Es wurden keine Pakete gefunden!'; +$lng['aps']['nopackagesinstalled'] = 'Sie haben noch kein Paket installiert welches angezeigt werden könnte.'; +$lng['aps']['instance_install'] = 'Paket wurde zur Installation vorgemerkt'; +$lng['aps']['instance_task_active'] = 'Paket wird gerade installiert'; +$lng['aps']['instance_success'] = 'Paket ist installiert bzw. wurde erfolgreich installiert'; +$lng['aps']['instance_error'] = 'Paket ist nicht installiert - bei der Installation traten Fehler auf'; +$lng['aps']['instance_uninstall'] = 'Paket wurde zur Deinstallation vorgemerkt'; +$lng['aps']['unknown_status'] = 'Fehler - Unbekannter Wert'; +$lng['aps']['currentstatus'] = 'Aktueller Status'; +$lng['aps']['activetasks'] = 'Aktuelle Jobs'; +$lng['aps']['task_install'] = 'Installation ausstehend'; +$lng['aps']['task_remove'] = 'Deinstallation ausstehend'; +$lng['aps']['task_reconfigure'] = 'Neukonfiguration ausstehend'; +$lng['aps']['task_upgrade'] = 'Aktualisierung ausstehend'; +$lng['aps']['no_task'] = 'Kein Task ausstehend'; +$lng['aps']['applicationlinks'] = 'Anwendungslinks'; +$lng['aps']['mainsite'] = 'Hauptseite'; +$lng['aps']['uninstall'] = 'Paket deinstallieren'; +$lng['aps']['reconfigure'] = 'Einstellungen ändern'; +$lng['aps']['erroronnewinstance'] = 'Dieses Paket kann nicht installiert werden.

Bitte gehen Sie zurück zur Paketübersicht und starten Sie eine neue Installation.'; +$lng['aps']['successonnewinstance'] = '%s wird nun installiert.

Gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Installation abgeschlossen ist. Dies kann einige Minuten in Anspruch nehmen.'; +$lng['aps']['php_misc_handler'] = 'PHP - Sonstiges - Es werden keine anderen Dateiendungen als .php zum Parsen unterstützt.'; +$lng['aps']['php_misc_directoryhandler'] = 'PHP - Sonstiges - Je Verzeichnis deaktivierte PHP Handler werden nicht unterstützt.'; +$lng['aps']['asp_net'] = 'ASP.NET - Paket wird nicht unterstützt.'; +$lng['aps']['cgi'] = 'CGI - Paket wird nicht unterstützt.'; +$lng['aps']['php_extension'] = 'PHP - Erweiterung "%s" fehlt.'; +$lng['aps']['php_function'] = 'PHP - Funktion "%s" fehlt.'; +$lng['aps']['php_configuration'] = 'PHP - Konfiguration - Aktuelle "%s" Einstellung wird von Paket nicht unterstützt.'; +$lng['aps']['php_configuration_post_max_size'] = 'PHP - Konfiguration - "post_max_size" Wert zu klein.'; +$lng['aps']['php_configuration_memory_limit'] = 'PHP - Konfiguration - "memory_limit" Wert zu klein.'; +$lng['aps']['php_configuration_max_execution_time'] = 'PHP - Konfiguration - "max_execution_time" Wert zu klein.'; +$lng['aps']['php_general_old'] = 'PHP - Generell - PHP Version zu alt.'; +$lng['aps']['php_general_new'] = 'PHP - Generell - PHP Version zu neu.'; +$lng['aps']['db_mysql_support'] = 'Datenbank - Das Paket benötigt eine andere Datenbank Engine als MySQL.'; +$lng['aps']['db_mysql_version'] = 'Datenbank - MySQL Server zu alt.'; +$lng['aps']['webserver_module'] = 'Webserver - Modul "%s" fehlt.'; +$lng['aps']['webserver_fcgid'] = 'Webserver - Von diesem Paket werden einige Webserver Module benötigt. Da Sie Froxlor in einer FastCGI/mod_fcgid Umgebung verwenden existiert die Funktion "apache_get_modules" nicht. Es kann also nicht ermittelt werden ob das Paket unterstützt wird.'; +$lng['aps']['webserver_htaccess'] = 'Webserver - Dieses Paket benötigt dass .htaccess Dateien vom Webserver geparst werden. Das Paket kann nicht installiert werden, da nicht ermittelt werden kann ob diese Funktion aktiviert ist.'; +$lng['aps']['misc_configscript'] = 'Sonstiges - Die Sprache des Konfigurationsskriptes wird nicht unterstützt.'; +$lng['aps']['misc_charset'] = 'Sonstiges - In der aktuellen Version wird eine Validierung gegen einen gewissen Zeichensatz im Installationsassitenten nicht unterstützt.'; +$lng['aps']['misc_version_already_installed'] = 'Die gleiche Paketversion ist bereits installiert.'; +$lng['aps']['misc_only_newer_versions'] = 'Aus Sicherheitsgründen können nur Pakete installiert werden die neuer sind als die, die bereits im System installiert sind.'; +$lng['aps']['erroronscan'] = 'Fehler für %s
    %s
'; +$lng['aps']['invalidzipfile'] = 'Fehler für %s
  • Dies ist keine gültige APS ZIP-Datei!
'; +$lng['aps']['successpackageupdate'] = '%s erfolgreich als Paketupdate installiert'; +$lng['aps']['successpackageinstall'] = '%s erfolgreich als neues Paket installiert'; +$lng['aps']['class_zip_missing'] = 'SimpleXML Klasse, exec Funktion oder ZIP Funktionen nicht vorhanden bzw. aktiviert! Für genauere Informationen zu diesem Problem schauen Sie bitte in das Handbuch zu diesem Modul.'; +$lng['aps']['dir_permissions'] = 'Der PHP bzw. Webserver Prozess muss Schreibrechte für /var/www/syscp/temp/ und /var/www/syscp/packages/ haben.'; +$lng['aps']['initerror'] = 'Es gibt ein paar Probleme mit diesem Modul:
    %s
Beheben Sie diese Probleme oder das Modul kann nicht genutzt werden!'; +$lng['aps']['iderror'] = 'Es wurde eine falsche Id übergeben!'; +$lng['aps']['nopacketsforinstallation'] = 'Es wurden keine Pakete zur Installation gefunden.'; +$lng['aps']['nopackagestoinstall'] = 'Es existieren keine Pakete die angezeigt oder installiert werden könnten.'; +$lng['aps']['nodomains'] = 'Wählen Sie eine Domain aus der Liste. Sollte keine Domain vorhanden sein können Sie keine Pakete installieren!'; +$lng['aps']['wrongpath'] = 'Entweder enthält dieser Pfad ungültige Zeichen oder es ist bereits eine Anwendung am gegebenen Ort installiert.'; +$lng['aps']['dbpassword'] = 'Geben Sie ein Passwort mit einer minimalen Länge von 8 Zeichen ein.'; +$lng['aps']['error_text'] = 'Geben Sie einen Text ohne Sonderzeichen ein.'; +$lng['aps']['error_email'] = 'Geben Sie eine gültige E-Mail Adresse ein.'; +$lng['aps']['error_domain'] = 'Geben Sie eine gültige URL wie http://www.example.com/ ein.'; +$lng['aps']['error_integer'] = 'Geben Sie eine Zahl (Integer-Format) ein. Beispiel: 5 oder 7.'; +$lng['aps']['error_float'] = 'Geben Sie eine Zahl (Float-Format) ein. Beispiel: 5,2432 oder 7,5346.'; +$lng['aps']['error_password'] = 'Geben Sie ein Passwort ein.'; +$lng['aps']['error_license'] = 'Ja, ich habe die Lizenz gelesen und willige ein diese zu befolgen.'; +$lng['aps']['error_licensenoaccept'] = 'Sie müssen die Lizenz annehmen um die Anwendung installieren zu können.'; +$lng['aps']['stopinstall'] = 'Installation abbrechen'; +$lng['aps']['installstopped'] = 'Die Installation für dieses Paket wurde erfolgreich abgebrochen.'; +$lng['aps']['installstoperror'] = 'Die Installation kann nicht mehr abgebrochen werden, da diese bereits gestartet wurde. Möchten Sie das Paket entfernen, so warten Sie die Installation ab und entfernen Sie dann das Paket unter "Meine Pakete"'; +$lng['aps']['waitfortask'] = 'Es stehen momentan keine Aktionen zur Verfügung. Warten Sie bis alle Tasks abgearbeitet wurden.'; +$lng['aps']['removetaskexisting'] = 'Es gibt bereits einen Task zur Deinstallation.

Bitte gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Deinstallation abgeschlossen ist.'; +$lng['aps']['packagewillberemoved'] = 'Das Paket wird nun deinstalliert.

Gehen Sie zurück zu "Meine Pakete" und warten Sie bis die Deinstallation abgeschlossen ist.'; +$lng['question']['reallywanttoremove'] = 'Wollen Sie dieses Paket wirklich deinstallieren?

Alle Datenbankinhalte und Dateien werden unwiderruflich gelöscht. Wenn Sie die enthaltenen Daten weiterhin benötigen, stellen Sie sicher dass Sie diese vorher sichern!

'; +$lng['aps']['searchoneresult'] = '%s Paket gefunden'; +$lng['aps']['searchmultiresult'] = '%s Pakete gefunden'; +$lng['question']['reallywanttostop'] = 'Wollen Sie die Installation dieses Paketes wirklich abbrechen?

'; +$lng['aps']['packagenameandversion'] = 'Paketname & Version'; +$lng['aps']['package_locked'] = 'Gesperrt'; +$lng['aps']['package_enabled'] = 'Freigegeben'; +$lng['aps']['lock'] = 'Sperren'; +$lng['aps']['unlock'] = 'Freigeben'; +$lng['aps']['remove'] = 'Löschen'; +$lng['aps']['allpackages'] = 'Alle Pakete'; +$lng['question']['reallyremovepackages'] = 'Wollen Sie diese Pakete wirklich löschen?

Pakete mit Abhängigkeiten können erst gelöscht werden wenn die entsprechenden Instanzen dafür deinstalliert wurden!

'; +$lng['aps']['nopackagesinsystem'] = 'Es wurden noch keine Pakete im System installiert, die verwaltet werden könnten.'; +$lng['aps']['packagenameandstatus'] = 'Paketname & Status'; +$lng['aps']['activate_aps']['title'] = 'APS Installer aktivieren'; +$lng['aps']['activate_aps']['description'] = 'Hier können Sie den APS Installer global aktivieren bzw. deaktivieren.'; +$lng['aps']['packages_per_page']['title'] = 'Pakete pro Seite'; +$lng['aps']['packages_per_page']['description'] = 'Wieviele Pakete sollen Kunden pro Seite angezeigt bekommen?'; +$lng['aps']['upload_fields']['title'] = 'Uploadfelder pro Seite'; +$lng['aps']['upload_fields']['description'] = 'Wieviele Uploadfelder sollen im Panel zur Installation von Paketen angezeigt werden?'; +$lng['aps']['exceptions']['title'] = 'Ausnahmen für Paketvalidierung'; +$lng['aps']['exceptions']['description'] = 'Manche Pakete benötigen spezielle Konfigurationsparameter oder Module. Der Installer selbst kann nicht immer eindeutig feststellen ob diese Optionen/Erweiterungen aktiviert sind. Aus diesem Grund kann man hier nun Ausnahmen festlegen damit Pakete dann trotzdem installiert werden können. Wählen Sie nur die Optionen aus, die auch wirklich so mit der Realität übereinstimmen. Für genauere Informationen zu diesem Problem schauen Sie bitte in das Handbuch zu diesem Modul.'; +$lng['aps']['settings_php_extensions'] = 'PHP-Erweiterungen'; +$lng['aps']['settings_php_configuration'] = 'PHP-Konfiguration'; +$lng['aps']['settings_webserver_modules'] = 'Webserver Module'; +$lng['aps']['settings_webserver_misc'] = 'Webserver Sonstiges'; +$lng['aps']['specialoptions'] = 'Sonderoptionen'; +$lng['aps']['removeunused'] = 'Ungenutzte Pakete entfernen'; +$lng['aps']['enablenewest'] = 'Von jedem Paket neueste Version freigeben, alte sperren'; +$lng['aps']['installations'] = 'Installationen'; +$lng['aps']['statistics'] = 'Statistiken'; +$lng['aps']['numerofpackagesinstalled'] = '%s Pakete vorhanden
'; +$lng['aps']['numerofpackagesenabled'] = '%s Pakete freigegeben
'; +$lng['aps']['numerofpackageslocked'] = '%s Pakete gesperrt
'; +$lng['aps']['numerofinstances'] = '%s Instanzen installiert
'; +$lng['question']['reallydoaction'] = 'Wollen Sie die gewählten Aktionen wirklich durchführen?

Daten, die durch diese Vorgänge möglicherweise gelöscht werden, können anschließend nicht wieder hergestellt werden.

'; +$lng['aps']['initerror_customer'] = 'Es gibt momentan ein Problem mit dieser Froxlor Erweiterung. Wenden Sie sich an Ihren Administrator für weitere Informationen.'; +$lng['aps']['numerofinstances'] = '%s Installationen insgesamt
'; +$lng['aps']['numerofinstancessuccess'] = '%s erfolgreiche Installationen
'; +$lng['aps']['numerofinstanceserror'] = '%s fehlgeschlagene Installationen
'; +$lng['aps']['numerofinstancesaction'] = '%s geplante Installationen/Deinstallationen'; +$lng['aps']['downloadallpackages'] = 'Alle Pakete vom Distributionsserver herunterladen'; +$lng['aps']['updateallpackages'] = 'Alle Pakete über Distributionsserver aktualisieren'; +$lng['aps']['downloadtaskexists'] = 'Es gibt bereits einen Task zum Download aller Pakete. Bitte warten Sie bis dieser abgeschlossen ist.'; +$lng['aps']['downloadtaskinserted'] = 'Es wurde ein Task zum Download aller Pakete erstellt. Dieser Vorgang kann einige Minuten in Anspruch nehmen.'; +$lng['aps']['updatetaskexists'] = 'Es gibt bereits einen Task zur Aktualisierung aller Pakete. Bitte warten Sie bis dieser abgeschlossen ist.'; +$lng['aps']['updatetaskinserted'] = 'Es wurde ein Task zur Aktualisierung aller Pakete erstellt. Dieser Vorgang kann einige Minuten in Anspruch nehmen.'; +$lng['aps']['canmanagepackages'] = 'Darf APS Pakete verwalten'; +$lng['aps']['numberofapspackages'] = 'Anzahl an APS Installationen'; +$lng['aps']['allpackagesused'] = 'Fehler

Sie haben bereits die Anzahl an installierbaren APS Anwendungen erreicht bzw. überschritten.'; +$lng['aps']['noinstancesexisting'] = 'Es gibt momentan noch keine Instanzen, die verwaltet werden könnten. Es muss mindestens eine Anwendung von einem Kunden installiert worden sein.'; +$lng['aps']['lightywarning'] = 'Warnung'; +$lng['aps']['lightywarningdescription'] = 'Sie verwenden den lighttpd Webserver zusammen mit SysCP. Da das APS Modul hauptsächlich für den Apache Webserver geschrieben wurde, kann es unter Umständen vorkommen, dass gewisse Features mit lighttpd nicht funktionieren. Bitte beachten Sie dies bei der Verwendung des APS Moduls. Sollten Sie Fehler bei der Verwendung oder Probleme bei der Nutzung haben, so leiten Sie diese bitte an die Entwickler weiter, damit diese Probleme in der nächsten Version behoben werden können.'; +$lng['error']['customerdoesntexist'] = 'Der ausgewählte Kunde existiert nicht.'; +$lng['error']['admindoesntexist'] = 'Der ausgewählte Admin existiert nicht.'; + +// ADDED IN 1.2.19-svn37 + +$lng['serversettings']['system_realtime_port']['title'] = 'Port für Realtime SysCP'; +$lng['serversettings']['system_realtime_port']['description'] = 'Dieser Port auf localhost wird bei jedem neuen Cron-Task kontaktiert. Wenn der Wert 0 (Null) ist, dann ist dieses Feature deaktiviert.
Siehe dazu auch: Make Froxlor work in realtime (Froxlor Wiki)'; +$lng['serversettings']['session_allow_multiple_login']['title'] = 'Erlaube gleichzeitigen Login'; +$lng['serversettings']['session_allow_multiple_login']['description'] = 'Wenn diese Option aktiviert ist, können sich Nutzer mehrmals gleichzeitig anmelden.'; +$lng['serversettings']['panel_allow_domain_change_admin']['title'] = 'Erlaube Verschieben von Domains unter Admins'; +$lng['serversettings']['panel_allow_domain_change_admin']['description'] = 'Wenn diese Option aktiviert ist, kann unter Domaineinstellungen die Domain einem anderen Admin zugewiesen werden.
Achtung: Wenn der Kunde einer Domain nicht dem gleichen Admin zugeordnet ist wie die Domain selbst, kann dieser Admin alle anderen Domains des Kunden sehen!'; +$lng['serversettings']['panel_allow_domain_change_customer']['title'] = 'Erlaube Verschieben von Domains unter Kunden'; +$lng['serversettings']['panel_allow_domain_change_customer']['description'] = 'Wenn diese Option aktiviert ist, kann unter Domaineinstellungen die Domain einem anderen Kunden zugewiesen werden.
Achtung: Es werden keine Pfade bei dieser Aktion angepasst. Das kann dazu führen, dass die Domain nach dem Verschieben nicht mehr richtig funktioniert!'; +$lng['domains']['associated_with_domain'] = 'Verbunden mit'; +$lng['domains']['aliasdomains'] = 'Aliasdomains'; +$lng['error']['ipportdoesntexist'] = 'Die gewählte IP/Port-Kombination existiert nicht.'; + +// ADDED IN 1.2.19-svn38 + +$lng['admin']['phpserversettings'] = 'PHP Einstellungen'; +$lng['admin']['phpsettings']['binary'] = 'PHP Binary'; +$lng['admin']['phpsettings']['file_extensions'] = 'Dateiendungen'; +$lng['admin']['phpsettings']['file_extensions_note'] = '(ohne Punkt, durch Leerzeichen getrennt)'; +$lng['admin']['mod_fcgid_maxrequests']['title'] = 'Maxmale PHP Requests für diese Domain (leer für Standardwert)'; +$lng['serversettings']['mod_fcgid']['maxrequests']['title'] = 'Maximale Requests pro Domain'; +$lng['serversettings']['mod_fcgid']['maxrequests']['description'] = 'Wieviele PHP Requests pro Domain sollen erlaubt werden?'; + +// fix bug #1124 +$lng['admin']['webserver'] = 'Webserver'; +$lng['error']['admin_domain_emailsystemhostname'] = 'Der Server-Hostname kann leider nicht als E-Mail-Domain verwendet werden.'; +$lng['aps']['license_link'] = 'Link zur Lizenz'; + +// ADDED IN 1.4.2.1 +$lng['admin']['thankyou'] = 'Vielen Dank'; +$lng['admin']['contributors'] = 'Diese Leute haben zum Froxlor Projekt beigetragen (keine besondere Ordnung)'; + ?> \ No newline at end of file diff --git a/lng/hungarian.lng.php b/lng/hungarian.lng.php index 1ebd2f08..91cee02e 100644 --- a/lng/hungarian.lng.php +++ b/lng/hungarian.lng.php @@ -1,469 +1,469 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: hungarian.lng.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = 'Puchner László'; -$lng['panel']['edit'] = 'szerkeszt'; -$lng['panel']['delete'] = 'töröl'; -$lng['panel']['create'] = 'létrehoz'; -$lng['panel']['save'] = 'ment'; -$lng['panel']['yes'] = 'igen'; -$lng['panel']['no'] = 'nem'; -$lng['panel']['emptyfornochanges'] = 'változtatásig üres'; -$lng['panel']['emptyfordefault'] = 'alapértelmezésben üres'; -$lng['panel']['path'] = 'Útvonal'; -$lng['panel']['toggle'] = 'Átkapcsol'; -$lng['panel']['next'] = 'következő'; -$lng['panel']['dirsmissing'] = 'Könyvtár nem található vagy nem olvasható!'; - -/** - * Login - */ - -$lng['login']['username'] = 'Felhasználónév'; -$lng['login']['password'] = 'Jelszó'; -$lng['login']['language'] = 'Nyelv'; -$lng['login']['login'] = 'Bejelentkezés'; -$lng['login']['logout'] = 'Kijelentkezés'; -$lng['login']['profile_lng'] = 'Profile nyelve'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Kezdőkönyvtár'; -$lng['customer']['name'] = 'Név'; -$lng['customer']['firstname'] = 'Keresztnév'; -$lng['customer']['company'] = 'Cégnév'; -$lng['customer']['street'] = 'Utca'; -$lng['customer']['zipcode'] = 'Irányítószám'; -$lng['customer']['city'] = 'Település'; -$lng['customer']['phone'] = 'Telefon'; -$lng['customer']['fax'] = 'Fax'; -$lng['customer']['email'] = 'E-mail'; -$lng['customer']['customernumber'] = 'Felhasználó-azonosító'; -$lng['customer']['diskspace'] = 'Tárhely (MB)'; -$lng['customer']['traffic'] = 'Forgalom (GB)'; -$lng['customer']['mysqls'] = 'MySQL-Adatbázis'; -$lng['customer']['emails'] = 'E-mail címek'; -$lng['customer']['accounts'] = 'E-mail fiókok'; -$lng['customer']['forwarders'] = 'E-mail továbbítók'; -$lng['customer']['ftps'] = 'FTP fiókok'; -$lng['customer']['subdomains'] = 'Aldomain(ek)'; -$lng['customer']['domains'] = 'Domain(ek)'; -$lng['customer']['unlimited'] = 'korlátlan'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Főmenü'; -$lng['menue']['main']['changepassword'] = 'Jelszócsere'; -$lng['menue']['main']['changelanguage'] = 'Nyelv-változtatás'; -$lng['menue']['email']['email'] = 'E-mail'; -$lng['menue']['email']['emails'] = 'Címek'; -$lng['menue']['email']['webmail'] = 'WebMail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Adatbázisok'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Domainek'; -$lng['menue']['domains']['settings'] = 'Beállítások'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Fiókok'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Extrák'; -$lng['menue']['extras']['directoryprotection'] = 'Könyvtárvédelem'; -$lng['menue']['extras']['pathoptions'] = 'Útvonal opciók'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Felhasználói adatok'; -$lng['index']['accountdetails'] = 'Fiók adatok'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Régi jelszó'; -$lng['changepassword']['new_password'] = 'Új jelszó'; -$lng['changepassword']['new_password_confirm'] = 'Új jelszó (megerősítés)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Új jelszó (üres = nem változik)'; -$lng['changepassword']['also_change_ftp'] = ' a fő FTP fiók jelszav&aat is megváltoztatja'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Itt hozhat létre (al-)domaineket és megváltoztathatja azok útvonalait.
A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.'; -$lng['domains']['domainsettings'] = 'Domain beállítások'; -$lng['domains']['domainname'] = 'Domain név'; -$lng['domains']['subdomain_add'] = '(Al-)domain létrehozása'; -$lng['domains']['subdomain_edit'] = '(Al-)domain szerkesztése'; -$lng['domains']['wildcarddomain'] = 'Helyettesítőként hozza létre?'; -$lng['domains']['aliasdomain'] = 'Domain alias (álnév)'; -$lng['domains']['noaliasdomain'] = 'Nincs domain alias (álnév)'; - -/** - * E-mails - */ - -$lng['emails']['description'] = 'Itt hozhatja létre és módosíthatja e-mail címeit.
Egy fiók olyan, mint az Ön postaládája a ház előtt. Ha valaki küld Önnek egy e-mailt, az a postaládába érkezik meg.

Az e-mailek letöltéséhez állísa be levelező-programját az alábbiak szerint: (A dőltbetűs adatokat változtassa meg azok alapján, amelyeket beírt!)
Szerver (host) neve: Domain név
felhasználón&eav: Postafiók neve / e-mail cím
Jelszó: A jelszó, amelyet választott'; -$lng['emails']['emailaddress'] = 'E-mail cím'; -$lng['emails']['emails_add'] = 'E-mail cím létrehozása'; -$lng['emails']['emails_edit'] = 'E-mail cím szerkesztése'; -$lng['emails']['catchall'] = 'Gyűjtő'; -$lng['emails']['iscatchall'] = 'Beállítja gyűjtő címként?'; -$lng['emails']['account'] = 'Fiók'; -$lng['emails']['account_add'] = 'Fiók létrehozása'; -$lng['emails']['account_delete'] = 'Fiók törlése'; -$lng['emails']['from'] = 'Feladó'; -$lng['emails']['to'] = 'Cím'; -$lng['emails']['forwarders'] = 'Továbbítók'; -$lng['emails']['forwarder_add'] = 'Továbbító létrehozása'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Itt hozhatja létre és módosíthatja FTP fiókjait.
A változások azonnal érvénybe lépnek és használhatók.'; -$lng['ftp']['account_add'] = 'Fiók létrehozása'; - -/** - * MySQL - */ - -$lng['mysql']['databasename'] = 'felhasználó/adatbázis neve'; -$lng['mysql']['databasedescription'] = 'adatbázis leírása'; -$lng['mysql']['database_create'] = 'Adatbázis létrehozása'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Itt állíthat be egyebeket, pl. könyvtárvédelmet.
A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.'; -$lng['extras']['directoryprotection_add'] = 'Könyvtárvédelem hozzáadása'; -$lng['extras']['view_directory'] = 'A könyvtár tartalmának megmutatása'; -$lng['extras']['pathoptions_add'] = 'Útvonal opciók hozzáadása'; -$lng['extras']['directory_browsing'] = 'A könyvtár tartalmána böngészése'; -$lng['extras']['pathoptions_edit'] = 'Útvonal opciók szerkesztése'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'A 404-es hibaüzenet URL-je'; -$lng['extras']['errordocument403path'] = 'A 403-as hibaüzenet URL-je'; -$lng['extras']['errordocument500path'] = 'A 500-as hibaüzenet URL-je'; -$lng['extras']['errordocument401path'] = 'A 401-es hibaüzenet URL-je'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Hiba'; -$lng['error']['directorymustexist'] = 'Léteznie kell a %s könyvtárnak. Kérem, hozza létre FTP cliensével.'; -$lng['error']['filemustexist'] = 'Léteznie kell a %sfájlnak.'; -$lng['error']['allresourcesused'] = 'Ön már minden erőforrását felhasználta.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak.'; -$lng['error']['domains_canteditdomain'] = 'Nem szerkeszthati ezt a domain nevet. Az adminisztrátor letiltotta.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak. Töröljön ki minden e-mail címet előbb.'; -$lng['error']['firstdeleteallsubdomains'] = 'Mielőtt létrehozna egy gyűjtő-domaint, törölnie kell az összes al-domaint.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Ön már meghatározott egy gyűjtőt erre a domain-re.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Nem törölheti fő FTP hozzáférését.'; -$lng['error']['login'] = 'Helytelen a felhasználónév vagy a jelszó, amelyet begépelt. Kérem, próbálja újra!'; -$lng['error']['login_blocked'] = 'Ezt a hozzáférés fel lett függesztve a túl sok bejelentkezési hiba miatt. Kérem, próbálja újra!'; -$settings['login']['deactivatetime'] . ' seconds.'; -$lng['error']['notallreqfieldsorerrors'] = 'Nem teljesen vagy helytelenül töltötte ki a mezőket.'; -$lng['error']['oldpasswordnotcorrect'] = 'A régi jelszó helytelen.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Nem oszthat ki több erőforrást, mint amennyit birtokol.'; -$lng['error']['mustbeurl'] = 'Nem teljes vagy nem érvényes URL-t (pl.: http://somedomain.com/error404.htm) gépelt be'; -$lng['error']['invalidpath'] = 'Nem választott ki érvényes URL-t (lehet, hogy probléma van a könyvtárlistázással?).'; -$lng['error']['stringisempty'] = 'A mezőben nincs adat.'; -$lng['error']['stringiswrong'] = 'A mezőben helytelen adat van.'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'Az új jelszó és annak megerősítése nem egyezik meg.'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'Domain\''; -$lng['error']['mydocumentroot'] = '\'Dokumentum útvonal\''; -$lng['error']['loginnameexists'] = 'A(z) %s felhasználónév már létezik'; -$lng['error']['emailiswrong'] = 'A(z) %s e-mail cím érvénytelen karaktereket tartalmaz vagy nem teljes.'; -$lng['error']['loginnameiswrong'] = 'A(z) %s felhasználónév érvénytelen karaktereket tartalmaz.'; -$lng['error']['userpathcombinationdupe'] = 'A felhasználónév és útvonal kombinációja már létezik.'; -$lng['error']['patherror'] = 'Általános hiba! Az útvonal nem lehet üres.'; -$lng['error']['errordocpathdupe'] = 'A(z) %s útvonalra vonatkozó opció már létezik.'; -$lng['error']['adduserfirst'] = 'Kérem, előbb hozzon létre egy felhasználót!'; -$lng['error']['domainalreadyexists'] = 'A(z) %s domain név már hozzá van rendelve egy felhasználóhoz.'; -$lng['error']['nolanguageselect'] = 'Nincs kiválasztott nyelv.'; -$lng['error']['nosubjectcreate'] = 'Meg kell határoznia egy tárgyat ehhez a sablonhoz.'; -$lng['error']['nomailbodycreate'] = 'Meg kell határoznia az üzenet szövegét ehhez a sablonhoz.'; -$lng['error']['templatenotfound'] = 'A sablon nem található.'; -$lng['error']['alltemplatesdefined'] = 'Nem készíthet több sablont, már minden nyelv támogatva van.'; -$lng['error']['wwwnotallowed'] = 'a www előtag al-domaineknél nem használható.'; -$lng['error']['subdomainiswrong'] = 'A(z) %s al-domain érvénytelen karaktereket tartalmaz.'; -$lng['error']['domaincantbeempty'] = 'A domain neve nem lehet üres.'; -$lng['error']['domainexistalready'] = 'A(z) %s domain már létezik.'; -$lng['error']['domainisaliasorothercustomer'] = 'A választott domain álnév (alias) vagy maga is domain álnév, vagy más felhasználóhoz tartozik.'; -$lng['error']['emailexistalready'] = 'A(z) %s e-mail cím már létezik.'; -$lng['error']['maindomainnonexist'] = 'A(z) %s fő domain nem létezik.'; -$lng['error']['destinationnonexist'] = 'Kérem, levél-továbbítóját a \'Cél\' mappában hozza létre.'; -$lng['error']['destinationalreadyexistasmail'] = 'A(z) %s továbbító már létezik mint aktív e-mail cím.'; -$lng['error']['destinationalreadyexist'] = 'Ön már létrehozott egy továbbítót ehhez: %s .'; -$lng['error']['destinationiswrong'] = 'A(z) %s továbbító érvénytelen karakter(eke)t tartalmaz vagy nem teljes.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Biztonsági kérdés'; -$lng['question']['admin_customer_reallydelete'] = 'Tényleg törölni akarja a(z) %s felhasználót? Ezt a lépést nem lehet visszavonni!'; -$lng['question']['admin_domain_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Tényleg hatástalanítani akarja ezeket a biztonsági beállításokat (OpenBasedir és/vagy SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = 'Tényleg törölni akarja a(z) %s adminisztrátort? Minden hozzá tartozó felhasználó és domain a főadminisztrátorhoz lesz rendelve.'; -$lng['question']['admin_template_reallydelete'] = 'Tényleg törölni akarja a(z) \'%s\' sablont?'; -$lng['question']['domains_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain-t?'; -$lng['question']['email_reallydelete'] = 'Tényleg törölni akarja a(z) %s e-mail címet?'; -$lng['question']['email_reallydelete_account'] = 'Tényleg törölni akarja a(z) %s e-mail postafiókot?'; -$lng['question']['email_reallydelete_forwarder'] = 'Tényleg törölni akarja a(z) %s továbbítót?'; -$lng['question']['extras_reallydelete'] = 'Tényleg törölni akarja a(z) %s könyvtár-védelmét?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'Tényleg törölni akarja a(z) %s útvonal-beállításait?'; -$lng['question']['ftp_reallydelete'] = 'Tényleg törölni akarja a(z) %s FTP hozzáférést?'; -$lng['question']['mysql_reallydelete'] = 'Tényleg törölni szeretné a(z) adatbázist? Ez a lépés nem vonható vissza!'; -$lng['question']['admin_configs_reallyrebuild'] = 'Tényleg újra szeretné építeni az Apache és Bind konfigurációs állományait?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Üdvözlöm!\n\nE-mail fiókja {EMAIL} létrejött.\n\nEz egy automatikusan küldött\ne-mail, kérem, ne válaszoljon rá!\n\nTisztelettel: a SysCP csapata'; -$lng['mails']['pop_success']['subject'] = 'E-mail fiók létrehozva.'; -$lng['mails']['createcustomer']['mailbody'] = 'Tisztelt {FIRSTNAME} {NAME}!\n\nAz Ön postafiók adatai:\n\nFelhasználónév: {USERNAME}\nJelszó: {PASSWORD}\n\nKöszönjük:\na SysCP csapata'; -$lng['mails']['createcustomer']['subject'] = 'Postafiók információ'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Áttekintés'; -$lng['admin']['ressourcedetails'] = 'Felhasznált erőforrások'; -$lng['admin']['systemdetails'] = 'Rendszeradatok'; -$lng['admin']['syscpdetails'] = 'SysCP adatok'; -$lng['admin']['installedversion'] = 'Installált Verzió'; -$lng['admin']['latestversion'] = 'Legutolsó verzió'; -$lng['admin']['lookfornewversion']['clickhere'] = 'keresés a webszervizen keresztül'; -$lng['admin']['lookfornewversion']['error'] = 'Olvasási hiba'; -$lng['admin']['resources'] = 'Erőforrások'; -$lng['admin']['customer'] = 'Felhasználó'; -$lng['admin']['customers'] = 'Felhasználók'; -$lng['admin']['customer_add'] = 'Felhasználó hozzáadása'; -$lng['admin']['customer_edit'] = 'Felhasználó szerkesztése'; -$lng['admin']['domains'] = 'Domainek'; -$lng['admin']['domain_add'] = 'Domain hozzáadása'; -$lng['admin']['domain_edit'] = 'Domain szerkesztése'; -$lng['admin']['subdomainforemail'] = 'Aldomainek mint e-mail-domainek'; -$lng['admin']['admin'] = 'Adminisztrátor'; -$lng['admin']['admins'] = 'Adminisztrátorok'; -$lng['admin']['admin_add'] = 'Adminisztrátor hozzáadása'; -$lng['admin']['admin_edit'] = 'Adminisztrátor szerkesztése'; -$lng['admin']['customers_see_all'] = 'Láthatja az összes felhasználót?'; -$lng['admin']['domains_see_all'] = 'Láthatja az összes domaint?'; -$lng['admin']['change_serversettings'] = 'Megváltoztathatja a szerver beállításait?'; -$lng['admin']['server'] = 'Szerver'; -$lng['admin']['serversettings'] = 'Beállítások'; -$lng['admin']['rebuildconf'] = 'A konfig. fájlok újraírása'; -$lng['admin']['stdsubdomain'] = 'Egyszerű aldomain'; -$lng['admin']['stdsubdomain_add'] = 'Egyszerű aldomain hozzáadása'; -$lng['admin']['deactivated'] = 'Kikapcsolva'; -$lng['admin']['deactivated_user'] = 'Felhasználó kikapcsolása'; -$lng['admin']['sendpassword'] = 'Jelszó küldése'; -$lng['admin']['ownvhostsettings'] = 'Saját vHost beállítások'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguráció'; -$lng['admin']['configfiles']['files'] = 'Konfig. fájlok: Kérem, változtassa meg a következő fájlokat, vagy - ha még nem léteznek - hozza létre őket a következő tartalommal.
Fontos: A MySQL jelszó biztonsági okokból nem lesz kicserélve. Kérem, cserélje ki a "MYSQL_PASSWORD"-öt! Ha elfelejtette a NySQL jelszót, megtalálja a "lib/userdata.inc.php" fájlban.'; -$lng['admin']['configfiles']['commands'] = 'Parancsok: Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell)!'; -$lng['admin']['configfiles']['restart'] = 'Újraindítás: Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell), hogy az új konfiguráció betöltődjön.'; -$lng['admin']['templates']['templates'] = 'Sablonok'; -$lng['admin']['templates']['template_add'] = 'Sablon hozzáadása'; -$lng['admin']['templates']['template_edit'] = 'Sablon szerkesztése'; -$lng['admin']['templates']['action'] = 'Alkalom'; -$lng['admin']['templates']['email'] = 'E-mail'; -$lng['admin']['templates']['subject'] = 'Tárgy'; -$lng['admin']['templates']['mailbody'] = 'Szövegrörzs'; -$lng['admin']['templates']['createcustomer'] = 'Üdvözlő levél új felhasználóknak'; -$lng['admin']['templates']['pop_success'] = 'Üdvözlő levél új fiók esetén'; -$lng['admin']['templates']['template_replace_vars'] = 'A sablonban használható változók'; -$lng['admin']['templates']['FIRSTNAME'] = 'A felhasználó keresztneve '; -$lng['admin']['templates']['NAME'] = 'A felhasználó neve '; -$lng['admin']['templates']['USERNAME'] = 'A felhasználó felhasználóneve'; -$lng['admin']['templates']['PASSWORD'] = 'A felhasználó felhasználóneve jelszava'; -$lng['admin']['templates']['EMAIL'] = 'A POP3/IMAP fiók címe.'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Munkamenet időtúllépés'; -$lng['serversettings']['session_timeout']['description'] = 'Mennyi idő múlva váljon a munkamenet érvénytelenné a felhasználó utolsó tevékenységétől (másodperc)?'; -$lng['serversettings']['accountprefix']['title'] = 'Felhasználói előtag'; -$lng['serversettings']['accountprefix']['description'] = 'Milyen előtaggal legyenek a felhasználói hozzáférések ellátva?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL előtag'; -$lng['serversettings']['mysqlprefix']['description'] = 'Melyen előtaggal legyenek a mysql hozzáférések ellátva?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP előtag'; -$lng['serversettings']['ftpprefix']['description'] = 'Milyen előtaggal legyenek az FTP hozzáférések ellátva?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Documentum könyvtár'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Hol legyen minen adat tárolva?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Naplófájlok könyvtára'; -$lng['serversettings']['logfiles_directory']['description'] = 'Hol legyen minden naplófájl tárolva?'; -$lng['serversettings']['ipaddress']['title'] = 'IP cím'; -$lng['serversettings']['ipaddress']['description'] = 'Mi az IP címe ennek a szervernek?'; -$lng['serversettings']['hostname']['title'] = 'Hostnév (gépnév)'; -$lng['serversettings']['hostname']['description'] = 'Mi legyen a neve ennek a szervernek?'; -$lng['serversettings']['apachereload_command']['title'] = 'Apache újraindítási parancs'; -$lng['serversettings']['apachereload_command']['description'] = 'Mi az Apache újraindítási parancsa?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurációs könyvtár'; -$lng['serversettings']['bindconf_directory']['description'] = 'Hol vannak a Bind konfigurációs állományok?'; -$lng['serversettings']['bindreload_command']['title'] = 'Bind újraindítási parancs'; -$lng['serversettings']['bindreload_command']['description'] = 'Mi a Bind újraindítási parancsa?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Bind alapértelmezett zóna'; -$lng['serversettings']['binddefaultzone']['description'] = 'Mi az alapértelmezett zóna neve?'; -$lng['serversettings']['vmail_uid']['title'] = 'E-mail felhasználó-azonosító (UID)'; -$lng['serversettings']['vmail_uid']['description'] = 'Melyik felhasználó-azonosítót (UserID) használják a levelek?'; -$lng['serversettings']['vmail_gid']['title'] = 'E-mail csoport-azonosító (GID)'; -$lng['serversettings']['vmail_gid']['description'] = 'Melyik csoport-azonosítót (GroupID) használják a levelek?'; -$lng['serversettings']['vmail_homedir']['title'] = 'E-mail könyvtár'; -$lng['serversettings']['vmail_homedir']['description'] = 'Hol legyenek az e-mailek tárolva?'; -$lng['serversettings']['adminmail']['title'] = 'Feladó'; -$lng['serversettings']['adminmail']['description'] = 'Ki legyen a feladója a panelről küldött leveleknek?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'Mi a phpMyAdmin URL-je? (http://-vel kell kezdődnie)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; -$lng['serversettings']['webmail_url']['description'] = 'Mi a WebMail URL-je? (http://-vel kell kezdődnie)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = 'Mi a WebFTP URL-je? (http://-vel kell kezdődnie)'; -$lng['serversettings']['language']['description'] = 'Mi a szerver alapértelmezett nyelve?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Maximális bejelentkezési kísérlet'; -$lng['serversettings']['maxloginattempts']['description'] = 'Bejelentkezési kísérletek maximális száma, mielőtt a hozzáférés zárolva lesz.'; -$lng['serversettings']['deactivatetime']['title'] = 'Zárlat-idő'; -$lng['serversettings']['deactivatetime']['description'] = 'Az időszak (másodpercekben), ameddig a túl sok bejelentkezési kísérlet után a hozzáférés zárolva lesz.'; -$lng['serversettings']['pathedit']['title'] = 'Az útvonal-megadás típusa'; -$lng['serversettings']['pathedit']['description'] = 'Legördülő menü vagy beviteli mező segítségével lesznek az útvonalak kiválasztva?'; - -/** - * CHANGED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['mysql']['description'] = 'Itt hozhatja létre és változtathatja meg MySQL adatbázisait.
- A változások azonnal érvényre jutnak, és az adatbázis rögtön használható.
- A bal oldali menüben megtalálja a phpMyAdmin eszközt, amellyel könnyedén kezelheti adatbázisát.
-
Saját PHP kódjaiból a következő beállításokkal férhet hozzá adatbázisához: (A dőltbetűs adatokat helyettesítenie kell az Ön által megadottakkal!)
Hostnév:
- Felhasználónév: Adatbázisnév
Jelszó: a jelszó, amelyet Ön kiválasztott
Adatbázis: Adatbázisnév'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Utolsó Cron futás'; -$lng['serversettings']['paging']['title'] = 'Bejegyzések száma egy lapon'; -$lng['serversettings']['paging']['description'] = 'Hány bejegyzés jelenjen meg egy lapon? (0 = lapozás kikapcsolása)'; -$lng['error']['ipstillhasdomains'] = 'A törölni kívánt IP/Port kombinációhoz domainek vannak rendelve. Rendelje hozzá ezeket egy másik IP/Port kombinációhoz, mielőtt a jelenlegi IP/Port kombinációt törli.'; -$lng['error']['cantdeletedefaultip'] = 'Nem törölheti az alapértelmezett viszonteladói IP/Port kombinációt. Hozzon létre új alapértelmezett IP/Port kombinációt a viszonteladóknak, mielőtt ezt az IP/Port kombinációt törli.'; -$lng['error']['cantdeletesystemip'] = 'Nem törölheti a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'Választania kell egy IP/Port kombinációt alapértelmezésnek.'; -$lng['error']['myipnotdouble'] = 'Ez az IP/Port kombináció már létezik.'; -$lng['question']['admin_ip_reallydelete'] = 'Valóban törölni akarja a(z) %s IP címet?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IP címek és Portok'; -$lng['admin']['ipsandports']['add'] = 'IP/Port hozzáadása'; -$lng['admin']['ipsandports']['edit'] = 'IP/Port szerkesztése'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Port'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'Nem változtathatja meg a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Biztos, hogy a dokumentum gyökerét (root) rendeli ehhez a domainhez, nem pedig a felhasználói könyvtárban marad?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Letiltva'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir útvonal'; -$lng['domain']['docroot'] = 'Útvonal a a fenti mezőből'; -$lng['domain']['homedir'] = 'Kezdőkönyvtár'; -$lng['admin']['valuemandatory'] = 'Ez a mező kötelező'; -$lng['admin']['valuemandatorycompany'] = 'Vagy a "név" és "keresztnév", vagy a "cégnév" mezőt ki kell tölteni.'; -$lng['menue']['main']['username'] = 'Bejelentkezve mint: '; -$lng['panel']['urloverridespath'] = 'URL (figyelmen kívül hagyja az útvonalat)'; -$lng['panel']['pathorurl'] = 'Útvonal az URL-hez'; -$lng['error']['sessiontimeoutiswrong'] = 'Csak numerikus "Munkamenet Időtúllépés"adható meg.'; -$lng['error']['maxloginattemptsiswrong'] = 'Csak numerikus "Maximális Bejelentkezési Kísérlet"adható meg. '; -$lng['error']['deactivatetimiswrong'] = 'Csak numerikus "Kikapcsolási Idő" adható meg.'; -$lng['error']['accountprefixiswrong'] = 'A "Felhasználói Előtag" helytelen.'; -$lng['error']['mysqlprefixiswrong'] = 'Az "SQL Előtag" helytelen.'; -$lng['error']['ftpprefixiswrong'] = 'Az "FTP Előtag "helytelen.'; -$lng['error']['ipiswrong'] = 'Az "IP Cím" helytelen. Csak érvényes IPcím adható meg.'; -$lng['error']['vmailuidiswrong'] = 'A "Levelezési Felhasználó-azonosító (LFA) " helytelen. Csak numerikus LFA adható meg.'; -$lng['error']['vmailgidiswrong'] = 'A "Levelezési GID " helytelen. Csak numerikus GID adható meg.'; -$lng['error']['adminmailiswrong'] = 'A "Feladó Címe " helytelen. Csak érvényes e-mail cím adható meg.'; -$lng['error']['pagingiswrong'] = 'A "Laponkénti Bejegyzés " értéke helytelen. Csak numerikus karaktereket lehet megadni..'; -$lng['error']['phpmyadminiswrong'] = 'A phpMyAdmin hivatkozás érvénytelen.'; -$lng['error']['webmailiswrong'] = 'A WebMail hivatkozás érvénytelen.'; -$lng['error']['webftpiswrong'] = 'A WebFTP hivatkozás érvénytelen'; -$lng['domains']['hasaliasdomains'] = 'Alias (al-)domainjei'; -$lng['serversettings']['defaultip']['title'] = 'Alapértelmezett IP/Port'; -$lng['serversettings']['defaultip']['description'] = 'Mi az alapértelmezett IP/Port kombináció?'; -$lng['domains']['statstics'] = 'Használati statisztika'; -$lng['panel']['ascending'] = 'növekvő'; -$lng['panel']['decending'] = 'csökkenő'; -$lng['panel']['search'] = 'Keresés'; -$lng['panel']['used'] = 'felhasznált'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = 'Fordító'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = 'A "%s" mező értéke nem megfelelő formátumú.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Szerverszoftver'; -$lng['admin']['phpversion'] = 'PHP verzió'; -$lng['admin']['phpmemorylimit'] = 'PHP memória korlát'; -$lng['admin']['mysqlserverversion'] = 'MySQL szerver verzió'; -$lng['admin']['mysqlclientversion'] = 'MySQL kliens verzió'; -$lng['admin']['webserverinterface'] = 'Webszerver Interfész'; -$lng['domains']['isassigneddomain'] = 'Hozzárendelt domain'; -$lng['serversettings']['phpappendopenbasedir']['title'] = 'Az OpenBasedir-hez csatolt útvonalak'; -$lng['serversettings']['phpappendopenbasedir']['description'] = 'Ezek az útvonalak (kettősponttal elválasztva) lesznek hozzáadva az OpenBasedir jegyzékhez minden vhost tárolóban.'; - -// CHANGED IN 1.2.15-rc1 - -$lng['error']['loginnameissystemaccount'] = 'Nem hozhat létre olyan fiókot, amely hasonlít a rendszerfiókokhoz (mint pl. a "%s" kezdetűek). Kérem, adjon meg másik fióknevet!'; - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: hungarian.lng.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = 'Puchner László'; +$lng['panel']['edit'] = 'szerkeszt'; +$lng['panel']['delete'] = 'töröl'; +$lng['panel']['create'] = 'létrehoz'; +$lng['panel']['save'] = 'ment'; +$lng['panel']['yes'] = 'igen'; +$lng['panel']['no'] = 'nem'; +$lng['panel']['emptyfornochanges'] = 'változtatásig üres'; +$lng['panel']['emptyfordefault'] = 'alapértelmezésben üres'; +$lng['panel']['path'] = 'Útvonal'; +$lng['panel']['toggle'] = 'Átkapcsol'; +$lng['panel']['next'] = 'következő'; +$lng['panel']['dirsmissing'] = 'Könyvtár nem található vagy nem olvasható!'; + +/** + * Login + */ + +$lng['login']['username'] = 'Felhasználónév'; +$lng['login']['password'] = 'Jelszó'; +$lng['login']['language'] = 'Nyelv'; +$lng['login']['login'] = 'Bejelentkezés'; +$lng['login']['logout'] = 'Kijelentkezés'; +$lng['login']['profile_lng'] = 'Profile nyelve'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Kezdőkönyvtár'; +$lng['customer']['name'] = 'Név'; +$lng['customer']['firstname'] = 'Keresztnév'; +$lng['customer']['company'] = 'Cégnév'; +$lng['customer']['street'] = 'Utca'; +$lng['customer']['zipcode'] = 'Irányítószám'; +$lng['customer']['city'] = 'Település'; +$lng['customer']['phone'] = 'Telefon'; +$lng['customer']['fax'] = 'Fax'; +$lng['customer']['email'] = 'E-mail'; +$lng['customer']['customernumber'] = 'Felhasználó-azonosító'; +$lng['customer']['diskspace'] = 'Tárhely (MB)'; +$lng['customer']['traffic'] = 'Forgalom (GB)'; +$lng['customer']['mysqls'] = 'MySQL-Adatbázis'; +$lng['customer']['emails'] = 'E-mail címek'; +$lng['customer']['accounts'] = 'E-mail fiókok'; +$lng['customer']['forwarders'] = 'E-mail továbbítók'; +$lng['customer']['ftps'] = 'FTP fiókok'; +$lng['customer']['subdomains'] = 'Aldomain(ek)'; +$lng['customer']['domains'] = 'Domain(ek)'; +$lng['customer']['unlimited'] = 'korlátlan'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Főmenü'; +$lng['menue']['main']['changepassword'] = 'Jelszócsere'; +$lng['menue']['main']['changelanguage'] = 'Nyelv-változtatás'; +$lng['menue']['email']['email'] = 'E-mail'; +$lng['menue']['email']['emails'] = 'Címek'; +$lng['menue']['email']['webmail'] = 'WebMail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Adatbázisok'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Domainek'; +$lng['menue']['domains']['settings'] = 'Beállítások'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Fiókok'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Extrák'; +$lng['menue']['extras']['directoryprotection'] = 'Könyvtárvédelem'; +$lng['menue']['extras']['pathoptions'] = 'Útvonal opciók'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Felhasználói adatok'; +$lng['index']['accountdetails'] = 'Fiók adatok'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Régi jelszó'; +$lng['changepassword']['new_password'] = 'Új jelszó'; +$lng['changepassword']['new_password_confirm'] = 'Új jelszó (megerősítés)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Új jelszó (üres = nem változik)'; +$lng['changepassword']['also_change_ftp'] = ' a fő FTP fiók jelszav&aat is megváltoztatja'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Itt hozhat létre (al-)domaineket és megváltoztathatja azok útvonalait.
A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.'; +$lng['domains']['domainsettings'] = 'Domain beállítások'; +$lng['domains']['domainname'] = 'Domain név'; +$lng['domains']['subdomain_add'] = '(Al-)domain létrehozása'; +$lng['domains']['subdomain_edit'] = '(Al-)domain szerkesztése'; +$lng['domains']['wildcarddomain'] = 'Helyettesítőként hozza létre?'; +$lng['domains']['aliasdomain'] = 'Domain alias (álnév)'; +$lng['domains']['noaliasdomain'] = 'Nincs domain alias (álnév)'; + +/** + * E-mails + */ + +$lng['emails']['description'] = 'Itt hozhatja létre és módosíthatja e-mail címeit.
Egy fiók olyan, mint az Ön postaládája a ház előtt. Ha valaki küld Önnek egy e-mailt, az a postaládába érkezik meg.

Az e-mailek letöltéséhez állísa be levelező-programját az alábbiak szerint: (A dőltbetűs adatokat változtassa meg azok alapján, amelyeket beírt!)
Szerver (host) neve: Domain név
felhasználón&eav: Postafiók neve / e-mail cím
Jelszó: A jelszó, amelyet választott'; +$lng['emails']['emailaddress'] = 'E-mail cím'; +$lng['emails']['emails_add'] = 'E-mail cím létrehozása'; +$lng['emails']['emails_edit'] = 'E-mail cím szerkesztése'; +$lng['emails']['catchall'] = 'Gyűjtő'; +$lng['emails']['iscatchall'] = 'Beállítja gyűjtő címként?'; +$lng['emails']['account'] = 'Fiók'; +$lng['emails']['account_add'] = 'Fiók létrehozása'; +$lng['emails']['account_delete'] = 'Fiók törlése'; +$lng['emails']['from'] = 'Feladó'; +$lng['emails']['to'] = 'Cím'; +$lng['emails']['forwarders'] = 'Továbbítók'; +$lng['emails']['forwarder_add'] = 'Továbbító létrehozása'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Itt hozhatja létre és módosíthatja FTP fiókjait.
A változások azonnal érvénybe lépnek és használhatók.'; +$lng['ftp']['account_add'] = 'Fiók létrehozása'; + +/** + * MySQL + */ + +$lng['mysql']['databasename'] = 'felhasználó/adatbázis neve'; +$lng['mysql']['databasedescription'] = 'adatbázis leírása'; +$lng['mysql']['database_create'] = 'Adatbázis létrehozása'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Itt állíthat be egyebeket, pl. könyvtárvédelmet.
A rendszernek minden változtatás után szüksége van némi időre, míg az új beállításokat érvényesíti.'; +$lng['extras']['directoryprotection_add'] = 'Könyvtárvédelem hozzáadása'; +$lng['extras']['view_directory'] = 'A könyvtár tartalmának megmutatása'; +$lng['extras']['pathoptions_add'] = 'Útvonal opciók hozzáadása'; +$lng['extras']['directory_browsing'] = 'A könyvtár tartalmána böngészése'; +$lng['extras']['pathoptions_edit'] = 'Útvonal opciók szerkesztése'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'A 404-es hibaüzenet URL-je'; +$lng['extras']['errordocument403path'] = 'A 403-as hibaüzenet URL-je'; +$lng['extras']['errordocument500path'] = 'A 500-as hibaüzenet URL-je'; +$lng['extras']['errordocument401path'] = 'A 401-es hibaüzenet URL-je'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Hiba'; +$lng['error']['directorymustexist'] = 'Léteznie kell a %s könyvtárnak. Kérem, hozza létre FTP cliensével.'; +$lng['error']['filemustexist'] = 'Léteznie kell a %sfájlnak.'; +$lng['error']['allresourcesused'] = 'Ön már minden erőforrását felhasználta.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak.'; +$lng['error']['domains_canteditdomain'] = 'Nem szerkeszthati ezt a domain nevet. Az adminisztrátor letiltotta.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Nem törölhet le olyan domain nevet, amelyet e-mail domainként használnak. Töröljön ki minden e-mail címet előbb.'; +$lng['error']['firstdeleteallsubdomains'] = 'Mielőtt létrehozna egy gyűjtő-domaint, törölnie kell az összes al-domaint.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Ön már meghatározott egy gyűjtőt erre a domain-re.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Nem törölheti fő FTP hozzáférését.'; +$lng['error']['login'] = 'Helytelen a felhasználónév vagy a jelszó, amelyet begépelt. Kérem, próbálja újra!'; +$lng['error']['login_blocked'] = 'Ezt a hozzáférés fel lett függesztve a túl sok bejelentkezési hiba miatt. Kérem, próbálja újra!'; +$settings['login']['deactivatetime'] . ' seconds.'; +$lng['error']['notallreqfieldsorerrors'] = 'Nem teljesen vagy helytelenül töltötte ki a mezőket.'; +$lng['error']['oldpasswordnotcorrect'] = 'A régi jelszó helytelen.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Nem oszthat ki több erőforrást, mint amennyit birtokol.'; +$lng['error']['mustbeurl'] = 'Nem teljes vagy nem érvényes URL-t (pl.: http://somedomain.com/error404.htm) gépelt be'; +$lng['error']['invalidpath'] = 'Nem választott ki érvényes URL-t (lehet, hogy probléma van a könyvtárlistázással?).'; +$lng['error']['stringisempty'] = 'A mezőben nincs adat.'; +$lng['error']['stringiswrong'] = 'A mezőben helytelen adat van.'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'Az új jelszó és annak megerősítése nem egyezik meg.'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'Domain\''; +$lng['error']['mydocumentroot'] = '\'Dokumentum útvonal\''; +$lng['error']['loginnameexists'] = 'A(z) %s felhasználónév már létezik'; +$lng['error']['emailiswrong'] = 'A(z) %s e-mail cím érvénytelen karaktereket tartalmaz vagy nem teljes.'; +$lng['error']['loginnameiswrong'] = 'A(z) %s felhasználónév érvénytelen karaktereket tartalmaz.'; +$lng['error']['userpathcombinationdupe'] = 'A felhasználónév és útvonal kombinációja már létezik.'; +$lng['error']['patherror'] = 'Általános hiba! Az útvonal nem lehet üres.'; +$lng['error']['errordocpathdupe'] = 'A(z) %s útvonalra vonatkozó opció már létezik.'; +$lng['error']['adduserfirst'] = 'Kérem, előbb hozzon létre egy felhasználót!'; +$lng['error']['domainalreadyexists'] = 'A(z) %s domain név már hozzá van rendelve egy felhasználóhoz.'; +$lng['error']['nolanguageselect'] = 'Nincs kiválasztott nyelv.'; +$lng['error']['nosubjectcreate'] = 'Meg kell határoznia egy tárgyat ehhez a sablonhoz.'; +$lng['error']['nomailbodycreate'] = 'Meg kell határoznia az üzenet szövegét ehhez a sablonhoz.'; +$lng['error']['templatenotfound'] = 'A sablon nem található.'; +$lng['error']['alltemplatesdefined'] = 'Nem készíthet több sablont, már minden nyelv támogatva van.'; +$lng['error']['wwwnotallowed'] = 'a www előtag al-domaineknél nem használható.'; +$lng['error']['subdomainiswrong'] = 'A(z) %s al-domain érvénytelen karaktereket tartalmaz.'; +$lng['error']['domaincantbeempty'] = 'A domain neve nem lehet üres.'; +$lng['error']['domainexistalready'] = 'A(z) %s domain már létezik.'; +$lng['error']['domainisaliasorothercustomer'] = 'A választott domain álnév (alias) vagy maga is domain álnév, vagy más felhasználóhoz tartozik.'; +$lng['error']['emailexistalready'] = 'A(z) %s e-mail cím már létezik.'; +$lng['error']['maindomainnonexist'] = 'A(z) %s fő domain nem létezik.'; +$lng['error']['destinationnonexist'] = 'Kérem, levél-továbbítóját a \'Cél\' mappában hozza létre.'; +$lng['error']['destinationalreadyexistasmail'] = 'A(z) %s továbbító már létezik mint aktív e-mail cím.'; +$lng['error']['destinationalreadyexist'] = 'Ön már létrehozott egy továbbítót ehhez: %s .'; +$lng['error']['destinationiswrong'] = 'A(z) %s továbbító érvénytelen karakter(eke)t tartalmaz vagy nem teljes.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Biztonsági kérdés'; +$lng['question']['admin_customer_reallydelete'] = 'Tényleg törölni akarja a(z) %s felhasználót? Ezt a lépést nem lehet visszavonni!'; +$lng['question']['admin_domain_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Tényleg hatástalanítani akarja ezeket a biztonsági beállításokat (OpenBasedir és/vagy SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = 'Tényleg törölni akarja a(z) %s adminisztrátort? Minden hozzá tartozó felhasználó és domain a főadminisztrátorhoz lesz rendelve.'; +$lng['question']['admin_template_reallydelete'] = 'Tényleg törölni akarja a(z) \'%s\' sablont?'; +$lng['question']['domains_reallydelete'] = 'Tényleg törölni akarja a(z) %s domain-t?'; +$lng['question']['email_reallydelete'] = 'Tényleg törölni akarja a(z) %s e-mail címet?'; +$lng['question']['email_reallydelete_account'] = 'Tényleg törölni akarja a(z) %s e-mail postafiókot?'; +$lng['question']['email_reallydelete_forwarder'] = 'Tényleg törölni akarja a(z) %s továbbítót?'; +$lng['question']['extras_reallydelete'] = 'Tényleg törölni akarja a(z) %s könyvtár-védelmét?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'Tényleg törölni akarja a(z) %s útvonal-beállításait?'; +$lng['question']['ftp_reallydelete'] = 'Tényleg törölni akarja a(z) %s FTP hozzáférést?'; +$lng['question']['mysql_reallydelete'] = 'Tényleg törölni szeretné a(z) adatbázist? Ez a lépés nem vonható vissza!'; +$lng['question']['admin_configs_reallyrebuild'] = 'Tényleg újra szeretné építeni az Apache és Bind konfigurációs állományait?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Üdvözlöm!\n\nE-mail fiókja {EMAIL} létrejött.\n\nEz egy automatikusan küldött\ne-mail, kérem, ne válaszoljon rá!\n\nTisztelettel: a SysCP csapata'; +$lng['mails']['pop_success']['subject'] = 'E-mail fiók létrehozva.'; +$lng['mails']['createcustomer']['mailbody'] = 'Tisztelt {FIRSTNAME} {NAME}!\n\nAz Ön postafiók adatai:\n\nFelhasználónév: {USERNAME}\nJelszó: {PASSWORD}\n\nKöszönjük:\na SysCP csapata'; +$lng['mails']['createcustomer']['subject'] = 'Postafiók információ'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Áttekintés'; +$lng['admin']['ressourcedetails'] = 'Felhasznált erőforrások'; +$lng['admin']['systemdetails'] = 'Rendszeradatok'; +$lng['admin']['syscpdetails'] = 'SysCP adatok'; +$lng['admin']['installedversion'] = 'Installált Verzió'; +$lng['admin']['latestversion'] = 'Legutolsó verzió'; +$lng['admin']['lookfornewversion']['clickhere'] = 'keresés a webszervizen keresztül'; +$lng['admin']['lookfornewversion']['error'] = 'Olvasási hiba'; +$lng['admin']['resources'] = 'Erőforrások'; +$lng['admin']['customer'] = 'Felhasználó'; +$lng['admin']['customers'] = 'Felhasználók'; +$lng['admin']['customer_add'] = 'Felhasználó hozzáadása'; +$lng['admin']['customer_edit'] = 'Felhasználó szerkesztése'; +$lng['admin']['domains'] = 'Domainek'; +$lng['admin']['domain_add'] = 'Domain hozzáadása'; +$lng['admin']['domain_edit'] = 'Domain szerkesztése'; +$lng['admin']['subdomainforemail'] = 'Aldomainek mint e-mail-domainek'; +$lng['admin']['admin'] = 'Adminisztrátor'; +$lng['admin']['admins'] = 'Adminisztrátorok'; +$lng['admin']['admin_add'] = 'Adminisztrátor hozzáadása'; +$lng['admin']['admin_edit'] = 'Adminisztrátor szerkesztése'; +$lng['admin']['customers_see_all'] = 'Láthatja az összes felhasználót?'; +$lng['admin']['domains_see_all'] = 'Láthatja az összes domaint?'; +$lng['admin']['change_serversettings'] = 'Megváltoztathatja a szerver beállításait?'; +$lng['admin']['server'] = 'Szerver'; +$lng['admin']['serversettings'] = 'Beállítások'; +$lng['admin']['rebuildconf'] = 'A konfig. fájlok újraírása'; +$lng['admin']['stdsubdomain'] = 'Egyszerű aldomain'; +$lng['admin']['stdsubdomain_add'] = 'Egyszerű aldomain hozzáadása'; +$lng['admin']['deactivated'] = 'Kikapcsolva'; +$lng['admin']['deactivated_user'] = 'Felhasználó kikapcsolása'; +$lng['admin']['sendpassword'] = 'Jelszó küldése'; +$lng['admin']['ownvhostsettings'] = 'Saját vHost beállítások'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguráció'; +$lng['admin']['configfiles']['files'] = 'Konfig. fájlok: Kérem, változtassa meg a következő fájlokat, vagy - ha még nem léteznek - hozza létre őket a következő tartalommal.
Fontos: A MySQL jelszó biztonsági okokból nem lesz kicserélve. Kérem, cserélje ki a "MYSQL_PASSWORD"-öt! Ha elfelejtette a NySQL jelszót, megtalálja a "lib/userdata.inc.php" fájlban.'; +$lng['admin']['configfiles']['commands'] = 'Parancsok: Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell)!'; +$lng['admin']['configfiles']['restart'] = 'Újraindítás: Kérem, hajtsa végre a következő parancsokat egy héjprogramban (shell), hogy az új konfiguráció betöltődjön.'; +$lng['admin']['templates']['templates'] = 'Sablonok'; +$lng['admin']['templates']['template_add'] = 'Sablon hozzáadása'; +$lng['admin']['templates']['template_edit'] = 'Sablon szerkesztése'; +$lng['admin']['templates']['action'] = 'Alkalom'; +$lng['admin']['templates']['email'] = 'E-mail'; +$lng['admin']['templates']['subject'] = 'Tárgy'; +$lng['admin']['templates']['mailbody'] = 'Szövegrörzs'; +$lng['admin']['templates']['createcustomer'] = 'Üdvözlő levél új felhasználóknak'; +$lng['admin']['templates']['pop_success'] = 'Üdvözlő levél új fiók esetén'; +$lng['admin']['templates']['template_replace_vars'] = 'A sablonban használható változók'; +$lng['admin']['templates']['FIRSTNAME'] = 'A felhasználó keresztneve '; +$lng['admin']['templates']['NAME'] = 'A felhasználó neve '; +$lng['admin']['templates']['USERNAME'] = 'A felhasználó felhasználóneve'; +$lng['admin']['templates']['PASSWORD'] = 'A felhasználó felhasználóneve jelszava'; +$lng['admin']['templates']['EMAIL'] = 'A POP3/IMAP fiók címe.'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Munkamenet időtúllépés'; +$lng['serversettings']['session_timeout']['description'] = 'Mennyi idő múlva váljon a munkamenet érvénytelenné a felhasználó utolsó tevékenységétől (másodperc)?'; +$lng['serversettings']['accountprefix']['title'] = 'Felhasználói előtag'; +$lng['serversettings']['accountprefix']['description'] = 'Milyen előtaggal legyenek a felhasználói hozzáférések ellátva?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL előtag'; +$lng['serversettings']['mysqlprefix']['description'] = 'Melyen előtaggal legyenek a mysql hozzáférések ellátva?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP előtag'; +$lng['serversettings']['ftpprefix']['description'] = 'Milyen előtaggal legyenek az FTP hozzáférések ellátva?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Documentum könyvtár'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Hol legyen minen adat tárolva?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Naplófájlok könyvtára'; +$lng['serversettings']['logfiles_directory']['description'] = 'Hol legyen minden naplófájl tárolva?'; +$lng['serversettings']['ipaddress']['title'] = 'IP cím'; +$lng['serversettings']['ipaddress']['description'] = 'Mi az IP címe ennek a szervernek?'; +$lng['serversettings']['hostname']['title'] = 'Hostnév (gépnév)'; +$lng['serversettings']['hostname']['description'] = 'Mi legyen a neve ennek a szervernek?'; +$lng['serversettings']['apachereload_command']['title'] = 'Apache újraindítási parancs'; +$lng['serversettings']['apachereload_command']['description'] = 'Mi az Apache újraindítási parancsa?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurációs könyvtár'; +$lng['serversettings']['bindconf_directory']['description'] = 'Hol vannak a Bind konfigurációs állományok?'; +$lng['serversettings']['bindreload_command']['title'] = 'Bind újraindítási parancs'; +$lng['serversettings']['bindreload_command']['description'] = 'Mi a Bind újraindítási parancsa?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Bind alapértelmezett zóna'; +$lng['serversettings']['binddefaultzone']['description'] = 'Mi az alapértelmezett zóna neve?'; +$lng['serversettings']['vmail_uid']['title'] = 'E-mail felhasználó-azonosító (UID)'; +$lng['serversettings']['vmail_uid']['description'] = 'Melyik felhasználó-azonosítót (UserID) használják a levelek?'; +$lng['serversettings']['vmail_gid']['title'] = 'E-mail csoport-azonosító (GID)'; +$lng['serversettings']['vmail_gid']['description'] = 'Melyik csoport-azonosítót (GroupID) használják a levelek?'; +$lng['serversettings']['vmail_homedir']['title'] = 'E-mail könyvtár'; +$lng['serversettings']['vmail_homedir']['description'] = 'Hol legyenek az e-mailek tárolva?'; +$lng['serversettings']['adminmail']['title'] = 'Feladó'; +$lng['serversettings']['adminmail']['description'] = 'Ki legyen a feladója a panelről küldött leveleknek?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'Mi a phpMyAdmin URL-je? (http://-vel kell kezdődnie)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; +$lng['serversettings']['webmail_url']['description'] = 'Mi a WebMail URL-je? (http://-vel kell kezdődnie)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = 'Mi a WebFTP URL-je? (http://-vel kell kezdődnie)'; +$lng['serversettings']['language']['description'] = 'Mi a szerver alapértelmezett nyelve?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Maximális bejelentkezési kísérlet'; +$lng['serversettings']['maxloginattempts']['description'] = 'Bejelentkezési kísérletek maximális száma, mielőtt a hozzáférés zárolva lesz.'; +$lng['serversettings']['deactivatetime']['title'] = 'Zárlat-idő'; +$lng['serversettings']['deactivatetime']['description'] = 'Az időszak (másodpercekben), ameddig a túl sok bejelentkezési kísérlet után a hozzáférés zárolva lesz.'; +$lng['serversettings']['pathedit']['title'] = 'Az útvonal-megadás típusa'; +$lng['serversettings']['pathedit']['description'] = 'Legördülő menü vagy beviteli mező segítségével lesznek az útvonalak kiválasztva?'; + +/** + * CHANGED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['mysql']['description'] = 'Itt hozhatja létre és változtathatja meg MySQL adatbázisait.
+ A változások azonnal érvényre jutnak, és az adatbázis rögtön használható.
+ A bal oldali menüben megtalálja a phpMyAdmin eszközt, amellyel könnyedén kezelheti adatbázisát.
+
Saját PHP kódjaiból a következő beállításokkal férhet hozzá adatbázisához: (A dőltbetűs adatokat helyettesítenie kell az Ön által megadottakkal!)
Hostnév:
+ Felhasználónév: Adatbázisnév
Jelszó: a jelszó, amelyet Ön kiválasztott
Adatbázis: Adatbázisnév'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Utolsó Cron futás'; +$lng['serversettings']['paging']['title'] = 'Bejegyzések száma egy lapon'; +$lng['serversettings']['paging']['description'] = 'Hány bejegyzés jelenjen meg egy lapon? (0 = lapozás kikapcsolása)'; +$lng['error']['ipstillhasdomains'] = 'A törölni kívánt IP/Port kombinációhoz domainek vannak rendelve. Rendelje hozzá ezeket egy másik IP/Port kombinációhoz, mielőtt a jelenlegi IP/Port kombinációt törli.'; +$lng['error']['cantdeletedefaultip'] = 'Nem törölheti az alapértelmezett viszonteladói IP/Port kombinációt. Hozzon létre új alapértelmezett IP/Port kombinációt a viszonteladóknak, mielőtt ezt az IP/Port kombinációt törli.'; +$lng['error']['cantdeletesystemip'] = 'Nem törölheti a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'Választania kell egy IP/Port kombinációt alapértelmezésnek.'; +$lng['error']['myipnotdouble'] = 'Ez az IP/Port kombináció már létezik.'; +$lng['question']['admin_ip_reallydelete'] = 'Valóban törölni akarja a(z) %s IP címet?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IP címek és Portok'; +$lng['admin']['ipsandports']['add'] = 'IP/Port hozzáadása'; +$lng['admin']['ipsandports']['edit'] = 'IP/Port szerkesztése'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Port'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'Nem változtathatja meg a rendszer utolsó IP címét. Hozzon létre egy új IP/Port kombinációt a rendszer IP címére, vagy változatassa meg a rendszer IP címét.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Biztos, hogy a dokumentum gyökerét (root) rendeli ehhez a domainhez, nem pedig a felhasználói könyvtárban marad?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Letiltva'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir útvonal'; +$lng['domain']['docroot'] = 'Útvonal a a fenti mezőből'; +$lng['domain']['homedir'] = 'Kezdőkönyvtár'; +$lng['admin']['valuemandatory'] = 'Ez a mező kötelező'; +$lng['admin']['valuemandatorycompany'] = 'Vagy a "név" és "keresztnév", vagy a "cégnév" mezőt ki kell tölteni.'; +$lng['menue']['main']['username'] = 'Bejelentkezve mint: '; +$lng['panel']['urloverridespath'] = 'URL (figyelmen kívül hagyja az útvonalat)'; +$lng['panel']['pathorurl'] = 'Útvonal az URL-hez'; +$lng['error']['sessiontimeoutiswrong'] = 'Csak numerikus "Munkamenet Időtúllépés"adható meg.'; +$lng['error']['maxloginattemptsiswrong'] = 'Csak numerikus "Maximális Bejelentkezési Kísérlet"adható meg. '; +$lng['error']['deactivatetimiswrong'] = 'Csak numerikus "Kikapcsolási Idő" adható meg.'; +$lng['error']['accountprefixiswrong'] = 'A "Felhasználói Előtag" helytelen.'; +$lng['error']['mysqlprefixiswrong'] = 'Az "SQL Előtag" helytelen.'; +$lng['error']['ftpprefixiswrong'] = 'Az "FTP Előtag "helytelen.'; +$lng['error']['ipiswrong'] = 'Az "IP Cím" helytelen. Csak érvényes IPcím adható meg.'; +$lng['error']['vmailuidiswrong'] = 'A "Levelezési Felhasználó-azonosító (LFA) " helytelen. Csak numerikus LFA adható meg.'; +$lng['error']['vmailgidiswrong'] = 'A "Levelezési GID " helytelen. Csak numerikus GID adható meg.'; +$lng['error']['adminmailiswrong'] = 'A "Feladó Címe " helytelen. Csak érvényes e-mail cím adható meg.'; +$lng['error']['pagingiswrong'] = 'A "Laponkénti Bejegyzés " értéke helytelen. Csak numerikus karaktereket lehet megadni..'; +$lng['error']['phpmyadminiswrong'] = 'A phpMyAdmin hivatkozás érvénytelen.'; +$lng['error']['webmailiswrong'] = 'A WebMail hivatkozás érvénytelen.'; +$lng['error']['webftpiswrong'] = 'A WebFTP hivatkozás érvénytelen'; +$lng['domains']['hasaliasdomains'] = 'Alias (al-)domainjei'; +$lng['serversettings']['defaultip']['title'] = 'Alapértelmezett IP/Port'; +$lng['serversettings']['defaultip']['description'] = 'Mi az alapértelmezett IP/Port kombináció?'; +$lng['domains']['statstics'] = 'Használati statisztika'; +$lng['panel']['ascending'] = 'növekvő'; +$lng['panel']['decending'] = 'csökkenő'; +$lng['panel']['search'] = 'Keresés'; +$lng['panel']['used'] = 'felhasznált'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = 'Fordító'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = 'A "%s" mező értéke nem megfelelő formátumú.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Szerverszoftver'; +$lng['admin']['phpversion'] = 'PHP verzió'; +$lng['admin']['phpmemorylimit'] = 'PHP memória korlát'; +$lng['admin']['mysqlserverversion'] = 'MySQL szerver verzió'; +$lng['admin']['mysqlclientversion'] = 'MySQL kliens verzió'; +$lng['admin']['webserverinterface'] = 'Webszerver Interfész'; +$lng['domains']['isassigneddomain'] = 'Hozzárendelt domain'; +$lng['serversettings']['phpappendopenbasedir']['title'] = 'Az OpenBasedir-hez csatolt útvonalak'; +$lng['serversettings']['phpappendopenbasedir']['description'] = 'Ezek az útvonalak (kettősponttal elválasztva) lesznek hozzáadva az OpenBasedir jegyzékhez minden vhost tárolóban.'; + +// CHANGED IN 1.2.15-rc1 + +$lng['error']['loginnameissystemaccount'] = 'Nem hozhat létre olyan fiókot, amely hasonlít a rendszerfiókokhoz (mint pl. a "%s" kezdetűek). Kérem, adjon meg másik fióknevet!'; + ?> \ No newline at end of file diff --git a/lng/spanish.lng.php b/lng/spanish.lng.php index a17c3481..feb756aa 100644 --- a/lng/spanish.lng.php +++ b/lng/spanish.lng.php @@ -1,447 +1,447 @@ - - * @author Ron Brand - * @author Sandra Aders - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: spanish.lng.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = 'Carlo Pedro Woedl, Ron Brand, Sandra Aders'; -$lng['panel']['edit'] = 'modificar'; -$lng['panel']['delete'] = 'borar'; -$lng['panel']['create'] = 'crear'; -$lng['panel']['save'] = 'almacenar'; -$lng['panel']['yes'] = 'si'; -$lng['panel']['no'] = 'no'; -$lng['panel']['emptyfornochanges'] = 'vacío si no hay cambios'; -$lng['panel']['emptyfordefault'] = 'vacia para los valores por defecto'; -$lng['panel']['path'] = 'camino'; -$lng['panel']['toggle'] = 'cambio'; -$lng['panel']['next'] = 'continuar'; -$lng['panel']['dirsmissing'] = 'Los registros no están disponibles o no son leíbles.'; - -/** - * Login - */ - -$lng['login']['username'] = 'Nombre del usuario'; -$lng['login']['password'] = 'contraseña'; -$lng['login']['language'] = 'Lengua'; -$lng['login']['login'] = 'Registrarse'; -$lng['login']['logout'] = 'Finalizar sesión'; -$lng['login']['profile_lng'] = 'Lenguaje del perfil'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Hogar'; -$lng['customer']['name'] = 'Apellido'; -$lng['customer']['firstname'] = 'Nombre'; -$lng['customer']['company'] = 'Razón social'; -$lng['customer']['street'] = 'Dirección'; -$lng['customer']['zipcode'] = 'Codigo Postal/Población'; -$lng['customer']['city'] = 'Ciudad'; -$lng['customer']['phone'] = 'Teléfono'; -$lng['customer']['fax'] = 'Telefax'; -$lng['customer']['email'] = 'Email'; -$lng['customer']['customernumber'] = 'Numero de Cliente'; -$lng['customer']['diskspace'] = 'Espacio de web (MB)'; -$lng['customer']['traffic'] = 'Trafico (GB)'; -$lng['customer']['mysqls'] = 'MySQL-Base de datos'; -$lng['customer']['emails'] = 'Direcciones e-mail'; -$lng['customer']['accounts'] = 'Cuentas e-mail'; -$lng['customer']['forwarders'] = 'e-mail de reenvío'; -$lng['customer']['ftps'] = 'FTP-Cuentas'; -$lng['customer']['subdomains'] = 'Subdominios'; -$lng['customer']['domains'] = 'Dominios'; -$lng['customer']['unlimited'] = 'infinito'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Universal'; -$lng['menue']['main']['changepassword'] = 'Cambiar contraseña'; -$lng['menue']['main']['changelanguage'] = 'Cambiar Idioma'; -$lng['menue']['email']['email'] = 'eMail'; -$lng['menue']['email']['emails'] = 'Direcciones'; -$lng['menue']['email']['webmail'] = 'Sistema Webmail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Base de datos'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Dominios'; -$lng['menue']['domains']['settings'] = 'Configuraciones'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Cuentas'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['directoryprotection'] = 'directorio de protección'; -$lng['menue']['extras']['pathoptions'] = 'Opciones del camino'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Datos de Clientes'; -$lng['index']['accountdetails'] = 'Datos Cuentas'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Contraseña anterior'; -$lng['changepassword']['new_password'] = 'Contraseña nueva'; -$lng['changepassword']['new_password_confirm'] = 'Contraseña (Repetir)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Contraseña nueva (libre=sin cambio)'; -$lng['changepassword']['also_change_ftp'] = 'tambien cambiar la Contraseña del FTP'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Aquí usted puede crear dominios (secundarios) y cambiar sus caminos.
El sistema necesitará un cierto tiempo para aplicar las nuevas configuraciones después de cada cambio.'; -$lng['domains']['domainsettings'] = 'Configuraciones del dominio'; -$lng['domains']['domainname'] = 'Nombre del dominio'; -$lng['domains']['subdomain_add'] = 'Crear el secundario-dominio'; -$lng['domains']['subdomain_edit'] = 'Corrija el dominio (secundario)'; -$lng['domains']['wildcarddomain'] = '¿Crear como comodÃn-dominio?'; -$lng['domains']['aliasdomain'] = 'Alias para dominio'; -$lng['domains']['noaliasdomain'] = 'No es un alias de dominio'; - -/** - * eMails - */ - -$lng['emails']['description'] = 'Aqui puede Usted crear su propia direccion e-mail.
Una Cuenta es como un Buzon en la Puerta de la Casa . Cuando alguien le escribe una email , esta aparece en su cuenta.

Para descargar sus email utilice las configuraciones siguientes en su email-programa: (Los datos en letra kursiva seran sustituidas por las asignadas!)
nombre del Host: Nombre del Domain
Nombre del Usuario: Cuenta / Direccion e-mail
Clave: Clave Elegida'; -$lng['emails']['emailaddress'] = 'Direccion e-mail'; -$lng['emails']['emails_add'] = 'Crear Direccion e-mail'; -$lng['emails']['emails_edit'] = 'Cambiar Direccion e-mail'; -$lng['emails']['catchall'] = 'Catchall'; -$lng['emails']['iscatchall'] = 'Definir como Direccion Catchall'; -$lng['emails']['account'] = 'Cuenta '; -$lng['emails']['account_add'] = 'Crear Cuenta'; -$lng['emails']['account_delete'] = 'Borar Cuenta'; -$lng['emails']['from'] = 'Fuente'; -$lng['emails']['to'] = 'Destinación'; -$lng['emails']['forwarders'] = 'Reenviar'; -$lng['emails']['forwarder_add'] = 'agregar reenvio'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Aqui puede Usted crear FTP-Cuentas adicionales.
Los cambios se actualizan de inmediato y Usted puede Usar los FTP-Cuentas.'; -$lng['ftp']['account_add'] = 'Crear Cuenta'; - -/** - * MySQL - */ - -$lng['mysql']['description'] = 'Aqui se puede crear/cancelar la MySQL Base de Datos.
Los Cambios se actualizan de inmediato y la Base de Datos se puede usar enseguida.
En el menú usted encuentra el phpMyAdmin de la herramienta con el cual usted puede administrar fácilmente su base de datos.

Para utilizar sus bases de datos en sus propias php-escrituras utilice las configuraciones siguientes: (Los datos en letra cursiva seran sustituidas por las asignadas!)
Nombre del Host:
Nombre del Usuario: nombre de la base de datos
Clave: contraseña elegida
Base de datos: Nombre de la base de datos'; -$lng['mysql']['databasename'] = 'Nombre -/Base de Datos'; -$lng['mysql']['databasedescription'] = 'Indentificador de la Base de Datos'; -$lng['mysql']['database_create'] = 'Abrir base de Datos'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Aqui se pueden crear Extras , por Eje.protector de Directorio.
Los cambios son despues de cierto tiempo aplicables.'; -$lng['extras']['directoryprotection_add'] = 'Crear Protección de Directorio'; -$lng['extras']['view_directory'] = 'Mostrar directorio'; -$lng['extras']['pathoptions_add'] = 'agregue las opciones del camino'; -$lng['extras']['directory_browsing'] = 'Mostrar contenido del Directorio'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL para errorDocumento 404'; -$lng['extras']['errordocument403path'] = 'URL para errorDocumento 403'; -$lng['extras']['errordocument500path'] = 'URL para errorDocumento 500'; -$lng['extras']['errordocument401path'] = 'URL para errorDocumento 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Error'; -$lng['error']['directorymustexist'] = 'El Directorio %s tiene que Existir. Crearlo por Favor a traves del FTP-Programa.'; -$lng['error']['filemustexist'] = 'El archivo %s debe existir'; -$lng['error']['allresourcesused'] = 'Usted ha usado todos los recursos a su disposicion.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain.'; -$lng['error']['domains_canteditdomain'] = 'Usted no puede trabajar con este Domain . Debido a que el Admin se lo niega.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain , Borre primero todos las Direcciones e-mail de este dominio.'; -$lng['error']['firstdeleteallsubdomains'] = 'Usted debe primero borar todos los Subdomains, antes de Usted crear un dominio del comodÃn.'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Usted acaba de definer una Direccion como Catchall para este dominio.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Usted no puede suprimir su cuenta principal del ftp'; -$lng['error']['login'] = 'El Nombre de Usuario/Clave esta Errado. Por favor intento otra vez!'; -$lng['error']['login_blocked'] = 'Esta cuenta fue cerrada transitoriamente debido a demasiados intentos falsos.
Por favor intente otra vez en ' . $settings['login']['deactivatetime'] . ' segundos.'; -$lng['error']['notallreqfieldsorerrors'] = 'Usted no ha llenado todos los espacios asignados o ha colocado un dato Erroneo.'; -$lng['error']['oldpasswordnotcorrect'] = 'La Clave Vieja no es correcta.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Usted no puede afectar un aparato más recursos que los que usted posee.'; -$lng['error']['mustbeurl'] = 'Usted tiene que dar una completa direccion URL(por ejemplo: http://algo.de/error404.htm)'; -$lng['error']['invalidpath'] = 'No ha seleccionado una URL válida (¿probablemente problemas con el listado de registros?)'; -$lng['error']['stringisempty'] = 'Falta un dato'; -$lng['error']['stringiswrong'] = 'Dato falso'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'La Clave Nueva a la Confirmacion de Clave no Coinciden'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'dominio\''; -$lng['error']['mydocumentroot'] = '\'Documentroot\''; -$lng['error']['loginnameexists'] = 'Conexión-Nombre %s existe ya'; -$lng['error']['emailiswrong'] = 'Email address %s contiene caracteres inválidos o es incompleta'; -$lng['error']['loginnameiswrong'] = 'Conexión-Nombre %s contiene caracteres inválidos'; -$lng['error']['userpathcombinationdupe'] = 'combinación del nombre del usuario y del camino existe ya'; -$lng['error']['patherror'] = '¡Error general! el camino no puede estar vacÃo'; -$lng['error']['errordocpathdupe'] = 'Opción para el camino %s existe ya'; -$lng['error']['adduserfirst'] = 'Usted debe primero crear un Cliente'; -$lng['error']['domainalreadyexists'] = 'El dominio %s se ha asignado ya a un cliente'; -$lng['error']['nolanguageselect'] = 'Asigne un Idioma.'; -$lng['error']['nosubjectcreate'] = 'Usted debe de asignar un asunto.'; -$lng['error']['nomailbodycreate'] = 'Usted debe de Agregar Texto al Mail.'; -$lng['error']['templatenotfound'] = 'Modelo no encontrado.'; -$lng['error']['alltemplatesdefined'] = 'Usted no puede definir más modelos, todos los lenguajes se utilizan ya.'; -$lng['error']['wwwnotallowed'] = 'www no se permite como nombre para los secundario-dominios.'; -$lng['error']['subdomainiswrong'] = 'El dominio-secundario %s contiene caracteres inválidos.'; -$lng['error']['domaincantbeempty'] = 'El nombre del dominio-Apellido no puede estar Vacio.'; -$lng['error']['domainexistalready'] = 'El dominio %s existe ya.'; -$lng['error']['domainisaliasorothercustomer'] = 'El alias de dominio seleccionado es un propio alias de dominio o pertenece a otro cliente.'; -$lng['error']['emailexistalready'] = 'El email address %s existe ya.'; -$lng['error']['maindomainnonexist'] = 'El dominio-principal %s no existe.'; -$lng['error']['destinationnonexist'] = 'Crear por favor su email-expedición en \'Destinación\'.'; -$lng['error']['destinationalreadyexistasmail'] = 'La direccion Secundaria %s ya existe como Direccion e-mail activa.'; -$lng['error']['destinationalreadyexist'] = 'Ya existe una Direccion Secundaria para %s .'; -$lng['error']['destinationiswrong'] = 'La Direccion Secundaria %s contiene simbolos invalidos o esta incompleta.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Pregunta de seguridad'; -$lng['question']['admin_customer_reallydelete'] = '¿Usted realmente desea suprimir el %s del cliente? ATENCIÒN!todos los datos se perderán definitivamente, deberá borar los datos manualmente del sistema!'; -$lng['question']['admin_domain_reallydelete'] = '¿Usted realmente desea suprimir el dominio %s?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = '¿Usted realmente desea desactivar estas configuraciones de seguridad (OpenBasedir y/o SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = '¿Usted realmente desea suprimir al administrador %s? todos los clientes y dominios serán reasignados al administrador principal.'; -$lng['question']['admin_template_reallydelete'] = 'desea usted realmente suprimir el modelo \'%s\'?'; -$lng['question']['domains_reallydelete'] = '¿desea Usted realmente suprimir el dominio %s?'; -$lng['question']['email_reallydelete'] = '¿Usted realmente desea suprimir el email address %s?'; -$lng['question']['email_reallydelete_account'] = '¿Usted realmente desea suprimir la cuenta de email %s?'; -$lng['question']['email_reallydelete_forwarder'] = '¿Usted realmente desea suprimir el reenvío de email %s?'; -$lng['question']['extras_reallydelete'] = '¿Usted realmente desea suprimir la protección del directorio %s?'; -$lng['question']['extras_reallydelete_pathoptions'] = '¿Usted realmente desea suprimir las opciones del camino para el %s?'; -$lng['question']['ftp_reallydelete'] = '¿Usted realmente desea suprimir la cuenta %s del ftp?'; -$lng['question']['mysql_reallydelete'] = '¿Usted realmente desea suprimir la base de datos %s?ATENCIÒN! todos los datos se perderán definitivamente'; -$lng['question']['admin_configs_reallyrebuild'] = '¿Realmente desea elaborar de nuevo sus archivos de configuración de Apache y Bind? '; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Hola,\n\nsu cuenta del correo {EMAIL}\nfue instalada con éxito .\n\nEsto es un email automáticamente creado,\n\nno conteste por favor!\n\nSinceramente suyo, el SysCP-Equipo'; -$lng['mails']['pop_success']['subject'] = 'cuenta del email instalada con éxito'; -$lng['mails']['createcustomer']['mailbody'] = 'Hola {FIRSTNAME} {NAME},\n\naquà está su información de la cuenta:\n\nNombre del usuario: {USERNAME}\nContraseña: {PASSWORD}\n\nGracias,\nel SysCP-Equipo'; -$lng['mails']['createcustomer']['subject'] = 'Información de la cuenta'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Descripción'; -$lng['admin']['ressourcedetails'] = 'Recursos usados'; -$lng['admin']['systemdetails'] = 'Detalles del sistema'; -$lng['admin']['syscpdetails'] = 'Detalles de SysCP'; -$lng['admin']['installedversion'] = 'Versión instalada'; -$lng['admin']['latestversion'] = 'La última versión'; -$lng['admin']['lookfornewversion']['clickhere'] = 'búsqueda via Web-servicio'; -$lng['admin']['lookfornewversion']['error'] = 'Error de lectura'; -$lng['admin']['resources'] = 'Recursos'; -$lng['admin']['customer'] = 'Cliente'; -$lng['admin']['customers'] = 'Clientes'; -$lng['admin']['customer_add'] = 'Crear un cliente nuevo'; -$lng['admin']['customer_edit'] = 'Corrija a un cliente'; -$lng['admin']['domains'] = 'Dominios'; -$lng['admin']['domain_add'] = 'Crear el dominio'; -$lng['admin']['domain_edit'] = 'Corrija el dominio'; -$lng['admin']['subdomainforemail'] = 'dominio-secundario como dominio de email'; -$lng['admin']['admin'] = 'Administrador'; -$lng['admin']['admins'] = 'Administradores'; -$lng['admin']['admin_add'] = 'Crear un admininstrator'; -$lng['admin']['admin_edit'] = 'corrija el admininstrator'; -$lng['admin']['customers_see_all'] = '¿Puede ver a todos los clientes?'; -$lng['admin']['domains_see_all'] = '¿Puede ver todos los dominios?'; -$lng['admin']['change_serversettings'] = '¿Puede cambiar configuraciones del servidor?'; -$lng['admin']['server'] = 'Servidor'; -$lng['admin']['serversettings'] = 'Configuraciones'; -$lng['admin']['rebuildconf'] = 'Reescribir las configuraciones'; -$lng['admin']['stdsubdomain'] = 'dominio-secundario estándar'; -$lng['admin']['stdsubdomain_add'] = 'Crear el subdomain estándar'; -$lng['admin']['deactivated'] = 'Desactivado'; -$lng['admin']['deactivated_user'] = 'Desactive a utilizador'; -$lng['admin']['sendpassword'] = 'EnvÃe la contraseña'; -$lng['admin']['ownvhostsettings'] = 'vHost-Configuraciones propias'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Configuración'; -$lng['admin']['configfiles']['files'] = 'Configfiles: Cambie por favor los ficheros siguientes
o créelos con el contenido siguiente si no existen.
Por favor note: La MySQL-contraseña no se ha substituido por razones de seguridad.
Substituya por favor "MYSQL_PASSWORD"manualmente por la propia. Si usted se olvidó de su MySQL-contraseña
usted la encontrará en el "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Commands: Ejecute por favor los comandos siguientes en un shell.'; -$lng['admin']['configfiles']['restart'] = 'Relanzar: Ejecute por favor los comandos siguientes en un shell para recargar la nueva configuración.'; -$lng['admin']['templates']['templates'] = 'Modelos'; -$lng['admin']['templates']['template_add'] = 'Agregue el modelo'; -$lng['admin']['templates']['template_edit'] = 'Corrija el modelo'; -$lng['admin']['templates']['action'] = 'Acción'; -$lng['admin']['templates']['email'] = 'E-Mail'; -$lng['admin']['templates']['subject'] = 'asunto'; -$lng['admin']['templates']['mailbody'] = 'email-texto'; -$lng['admin']['templates']['createcustomer'] = 'email de Bienvenida para los nuevos clientes'; -$lng['admin']['templates']['pop_success'] = 'email de Bienvenida para las nuevas cuentas del email'; -$lng['admin']['templates']['template_replace_vars'] = 'Variables que se substituirán en el modelo:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Substituido por el nombre de los clientes.'; -$lng['admin']['templates']['NAME'] = 'Substituido por el Apellido de los clientes.'; -$lng['admin']['templates']['USERNAME'] = 'Substituido por el username de la cuenta de clientes.'; -$lng['admin']['templates']['PASSWORD'] = 'Substituido por la contraseña de la cuenta de clientes.'; -$lng['admin']['templates']['EMAIL'] = 'Substituido por la direccion de la cuenta de POP3/del IMAP.'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Descanso de la sesión'; -$lng['serversettings']['session_timeout']['description'] = '¿Cuanto tiempo un utilizador tiene que estar inactivo antes de que una sesión consiga quedar inválida (segundos)?'; -$lng['serversettings']['accountprefix']['title'] = 'Cliente-prefijo'; -$lng['serversettings']['accountprefix']['description'] = '¿Qué prefijo deben las cuentas de cliente tener??'; -$lng['serversettings']['mysqlprefix']['title'] = 'Prefijo del SQL'; -$lng['serversettings']['mysqlprefix']['description'] = '¿Qué prefijo deben tener las cuentas del mysql?'; -$lng['serversettings']['ftpprefix']['title'] = 'Prefijo del ftp'; -$lng['serversettings']['ftpprefix']['description'] = 'Qué prefijo deben tener las cuentas del ftp?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Directorio de documento'; -$lng['serversettings']['documentroot_prefix']['description'] = '¿Dónde deben quedar todos los clientes?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Directorio de los ficheros de diario'; -$lng['serversettings']['logfiles_directory']['description'] = '¿Dónde deben todos los ficheros de diario ser salvados?'; -$lng['serversettings']['ipaddress']['title'] = 'IP address'; -$lng['serversettings']['ipaddress']['description'] = '¿Cuál es el IP address de este servidor?'; -$lng['serversettings']['hostname']['title'] = 'Hostname'; -$lng['serversettings']['hostname']['description'] = '¿Cuál es el hostname de este servidor?'; -$lng['serversettings']['apachereload_command']['title'] = 'Comando de la recarga de Apache'; -$lng['serversettings']['apachereload_command']['description'] = '¿Cuál es el comando de la recarga de Apache?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Directorio de la configuración de Bind'; -$lng['serversettings']['bindconf_directory']['description'] = '¿Dónde está la configuración del Bind?'; -$lng['serversettings']['bindreload_command']['title'] = 'Comando de la recarga de Bindmm'; -$lng['serversettings']['bindreload_command']['description'] = '¿Cuál es el comando de la recarga de Bind?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Zona del valor por defecto de Bind'; -$lng['serversettings']['binddefaultzone']['description'] = '¿Cuál es el nombre de la zona del valor por defecto?'; -$lng['serversettings']['vmail_uid']['title'] = 'eMail-Uid'; -$lng['serversettings']['vmail_uid']['description'] = '¿Qué UserID deben tener los email?'; -$lng['serversettings']['vmail_gid']['title'] = 'eMail-Gid'; -$lng['serversettings']['vmail_gid']['description'] = '¿Qué identificación del grupo deben tener los email?'; -$lng['serversettings']['vmail_homedir']['title'] = 'Hogar-directorio de los email'; -$lng['serversettings']['vmail_homedir']['description'] = '¿Dónde deben quedar todos los email?'; -$lng['serversettings']['adminmail']['title'] = 'Remitente'; -$lng['serversettings']['adminmail']['description'] = '¿Qué remitente-tratan para los email se envÃa del panel?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = '¿Cuál es el URL al phpMyAdmin? (tienen que comenzar con http://)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; -$lng['serversettings']['webmail_url']['description'] = '¿Cuál es el URL a WebMail? (tienen que comenzar con http://)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = '¿Cuál es el URL a WebFTP?? (tienen que comenzar con http://)'; -$lng['serversettings']['language']['description'] = 'Cuál es su lenguaje estándar del servidor?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Tentativas máximas de registro'; -$lng['serversettings']['maxloginattempts']['description'] = 'Las tentativas máximas de registro después de lo cual la cuenta se desactiva.'; -$lng['serversettings']['deactivatetime']['title'] = 'tiempo de la desactivación'; -$lng['serversettings']['deactivatetime']['description'] = 'tiempo (en segundos) para el cual la cuenta está desactivada.'; -$lng['serversettings']['pathedit']['title'] = 'Método de introducción de datos del trayecto '; -$lng['serversettings']['pathedit']['description'] = 'Prefiere seleccionar un trayecto a través de un menú-dropdown o introducirlo manualmente.'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Último Cron'; -$lng['serversettings']['paging']['title'] = 'Entradas por página'; -$lng['serversettings']['paging']['description'] = '¿Cuantas entradas deben ser mostradas en una página? (0=desactivar paginación)'; -$lng['error']['ipstillhasdomains'] = 'La combinación IP/Puerto que Usted quiere eliminar todavía tiene dominios asignados, por favor vuelva a reasignar estas combinaciones IP/Puerto antes de eliminar esta combinación IP/Puerto.'; -$lng['error']['cantdeletedefaultip'] = 'Usted no puede eliminar la combinación IP/Puerto del distribuidor predeterminada, por favor crea otra combinación IP/Puerto predeterminada para distribuidores antes de eliminar esta combinación IP/Puerto.'; -$lng['error']['cantdeletesystemip'] = 'No puede eliminar la IP del sistema, crea una nueva combinación IP/Puerto para el sistema IP o cambia the sistema IP.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'Debe seleccionar una combinación IP/Puerto que se convierta de manera predeterminado.'; -$lng['error']['myipnotdouble'] = 'Esta combinación IP/Puerto ya existe.'; -$lng['question']['admin_ip_reallydelete'] = '¿Realmente quiere eliminar esta dirección IP %s?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IPs y Puertos'; -$lng['admin']['ipsandports']['add'] = 'Añadir IP/Puerto'; -$lng['admin']['ipsandports']['edit'] = 'Editar IP/Puerto'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Puerto'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Puerto'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'No puede cambiar el último IP de sistema, cree una nueva combinación de IP/Puerto para la IP de sistema o cambie la IP de sistema.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '¿Está seguro de que quiere la raíz de documento para este dominio, ya que no se encuentra dentro de la raíz cliente del cliente?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Desactivado'; -$lng['error']['loginnameissystemaccount'] = 'No puede crear cuentas parecidas a cuentas de sistema. Por favor, introduzca otro nombre de cuenta.'; -$lng['domain']['docroot'] = 'Path del campo de arriba'; -$lng['domain']['homedir'] = 'Hogar-directorio'; -$lng['admin']['valuemandatory'] = 'Este valor es obligatorio'; -$lng['admin']['valuemandatorycompany'] = 'Hay que rellenar ó "apellido" y "nombre" ó "empresa"'; -$lng['panel']['pathorurl'] = 'Path ó URL'; -$lng['error']['sessiontimeoutiswrong'] = 'Sólo están permitidos "descansos de la sesión" numéricos'; -$lng['error']['maxloginattemptsiswrong'] = 'Sólo están permitidos "intentos máximas de registro" numéricos'; -$lng['error']['deactivatetimiswrong'] = 'Sólo está permitido un "tiempo de desactivación" numérico'; -$lng['error']['accountprefixiswrong'] = 'El prefijo de cliente está mal.'; -$lng['error']['mysqlprefixiswrong'] = 'El prefijo del SQL está mal.'; -$lng['error']['ftpprefixiswrong'] = 'El prefijo del FTP está mal.'; -$lng['error']['ipiswrong'] = 'La dirección IP está mal. Sólo se permiten direcciones IP válidas.'; -$lng['error']['vmailuidiswrong'] = 'El eMail-Uid está mal. Sólo se permiten UIDs numéricos.'; -$lng['error']['vmailgidiswrong'] = 'El eMail-Gid está mal. Sólo se permiten GIDs numéricos.'; -$lng['error']['adminmailiswrong'] = 'La dirección del remitente está mal. Sólo se permiten direcciones de correo electrónico válidas.'; -$lng['error']['pagingiswrong'] = 'Las entradas por página están mal. Sólo se permiten caracteres numéricos.'; -$lng['error']['phpmyadminiswrong'] = 'La URL de phpMyAdmin no es una URL válida.'; -$lng['error']['webmailiswrong'] = 'La URL de WebMail no es una URL válida.'; -$lng['error']['webftpiswrong'] = 'La URL de WebFTP no es una URL válida.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Software del servidor'; -$lng['admin']['phpversion'] = 'Versión PHP'; -$lng['admin']['phpmemorylimit'] = 'Limite memoria PHP'; -$lng['admin']['mysqlserverversion'] = 'Versión servidor MySQL'; -$lng['admin']['mysqlclientversion'] = 'Versión cliente MySQL'; -$lng['admin']['webserverinterface'] = 'Interface servidor de red'; -$lng['menue']['extras']['extras'] = 'Extras'; -$lng['extras']['pathoptions_edit'] = 'editar opciones de ruta/directorio'; -$lng['domain']['openbasedirpath'] = 'Directorio OpenBasedir'; -$lng['menue']['main']['username'] = 'Ingreso como: '; -$lng['serversettings']['defaultip']['title'] = 'IP/Puerto por defecto'; -$lng['serversettings']['defaultip']['description'] = '¿Cuál es la combinación de IP y Puerto por defecto?'; -$lng['domains']['statstics'] = 'Estadisticas de uso'; -$lng['panel']['ascending'] = 'ascendiente'; -$lng['panel']['decending'] = 'descendiente'; -$lng['panel']['search'] = 'Buscar'; -$lng['panel']['used'] = 'usado'; -$lng['panel']['translator'] = 'Traductor'; -$lng['error']['stringformaterror'] = 'El valor para la fila "%s" no esta dentro de los formatos esperados.'; - + + * @author Ron Brand + * @author Sandra Aders + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: spanish.lng.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = 'Carlo Pedro Woedl, Ron Brand, Sandra Aders'; +$lng['panel']['edit'] = 'modificar'; +$lng['panel']['delete'] = 'borar'; +$lng['panel']['create'] = 'crear'; +$lng['panel']['save'] = 'almacenar'; +$lng['panel']['yes'] = 'si'; +$lng['panel']['no'] = 'no'; +$lng['panel']['emptyfornochanges'] = 'vacío si no hay cambios'; +$lng['panel']['emptyfordefault'] = 'vacia para los valores por defecto'; +$lng['panel']['path'] = 'camino'; +$lng['panel']['toggle'] = 'cambio'; +$lng['panel']['next'] = 'continuar'; +$lng['panel']['dirsmissing'] = 'Los registros no están disponibles o no son leíbles.'; + +/** + * Login + */ + +$lng['login']['username'] = 'Nombre del usuario'; +$lng['login']['password'] = 'contraseña'; +$lng['login']['language'] = 'Lengua'; +$lng['login']['login'] = 'Registrarse'; +$lng['login']['logout'] = 'Finalizar sesión'; +$lng['login']['profile_lng'] = 'Lenguaje del perfil'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Hogar'; +$lng['customer']['name'] = 'Apellido'; +$lng['customer']['firstname'] = 'Nombre'; +$lng['customer']['company'] = 'Razón social'; +$lng['customer']['street'] = 'Dirección'; +$lng['customer']['zipcode'] = 'Codigo Postal/Población'; +$lng['customer']['city'] = 'Ciudad'; +$lng['customer']['phone'] = 'Teléfono'; +$lng['customer']['fax'] = 'Telefax'; +$lng['customer']['email'] = 'Email'; +$lng['customer']['customernumber'] = 'Numero de Cliente'; +$lng['customer']['diskspace'] = 'Espacio de web (MB)'; +$lng['customer']['traffic'] = 'Trafico (GB)'; +$lng['customer']['mysqls'] = 'MySQL-Base de datos'; +$lng['customer']['emails'] = 'Direcciones e-mail'; +$lng['customer']['accounts'] = 'Cuentas e-mail'; +$lng['customer']['forwarders'] = 'e-mail de reenvío'; +$lng['customer']['ftps'] = 'FTP-Cuentas'; +$lng['customer']['subdomains'] = 'Subdominios'; +$lng['customer']['domains'] = 'Dominios'; +$lng['customer']['unlimited'] = 'infinito'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Universal'; +$lng['menue']['main']['changepassword'] = 'Cambiar contraseña'; +$lng['menue']['main']['changelanguage'] = 'Cambiar Idioma'; +$lng['menue']['email']['email'] = 'eMail'; +$lng['menue']['email']['emails'] = 'Direcciones'; +$lng['menue']['email']['webmail'] = 'Sistema Webmail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Base de datos'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Dominios'; +$lng['menue']['domains']['settings'] = 'Configuraciones'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Cuentas'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['directoryprotection'] = 'directorio de protección'; +$lng['menue']['extras']['pathoptions'] = 'Opciones del camino'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Datos de Clientes'; +$lng['index']['accountdetails'] = 'Datos Cuentas'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Contraseña anterior'; +$lng['changepassword']['new_password'] = 'Contraseña nueva'; +$lng['changepassword']['new_password_confirm'] = 'Contraseña (Repetir)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Contraseña nueva (libre=sin cambio)'; +$lng['changepassword']['also_change_ftp'] = 'tambien cambiar la Contraseña del FTP'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Aquí usted puede crear dominios (secundarios) y cambiar sus caminos.
El sistema necesitará un cierto tiempo para aplicar las nuevas configuraciones después de cada cambio.'; +$lng['domains']['domainsettings'] = 'Configuraciones del dominio'; +$lng['domains']['domainname'] = 'Nombre del dominio'; +$lng['domains']['subdomain_add'] = 'Crear el secundario-dominio'; +$lng['domains']['subdomain_edit'] = 'Corrija el dominio (secundario)'; +$lng['domains']['wildcarddomain'] = '¿Crear como comodÃn-dominio?'; +$lng['domains']['aliasdomain'] = 'Alias para dominio'; +$lng['domains']['noaliasdomain'] = 'No es un alias de dominio'; + +/** + * eMails + */ + +$lng['emails']['description'] = 'Aqui puede Usted crear su propia direccion e-mail.
Una Cuenta es como un Buzon en la Puerta de la Casa . Cuando alguien le escribe una email , esta aparece en su cuenta.

Para descargar sus email utilice las configuraciones siguientes en su email-programa: (Los datos en letra kursiva seran sustituidas por las asignadas!)
nombre del Host: Nombre del Domain
Nombre del Usuario: Cuenta / Direccion e-mail
Clave: Clave Elegida'; +$lng['emails']['emailaddress'] = 'Direccion e-mail'; +$lng['emails']['emails_add'] = 'Crear Direccion e-mail'; +$lng['emails']['emails_edit'] = 'Cambiar Direccion e-mail'; +$lng['emails']['catchall'] = 'Catchall'; +$lng['emails']['iscatchall'] = 'Definir como Direccion Catchall'; +$lng['emails']['account'] = 'Cuenta '; +$lng['emails']['account_add'] = 'Crear Cuenta'; +$lng['emails']['account_delete'] = 'Borar Cuenta'; +$lng['emails']['from'] = 'Fuente'; +$lng['emails']['to'] = 'Destinación'; +$lng['emails']['forwarders'] = 'Reenviar'; +$lng['emails']['forwarder_add'] = 'agregar reenvio'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Aqui puede Usted crear FTP-Cuentas adicionales.
Los cambios se actualizan de inmediato y Usted puede Usar los FTP-Cuentas.'; +$lng['ftp']['account_add'] = 'Crear Cuenta'; + +/** + * MySQL + */ + +$lng['mysql']['description'] = 'Aqui se puede crear/cancelar la MySQL Base de Datos.
Los Cambios se actualizan de inmediato y la Base de Datos se puede usar enseguida.
En el menú usted encuentra el phpMyAdmin de la herramienta con el cual usted puede administrar fácilmente su base de datos.

Para utilizar sus bases de datos en sus propias php-escrituras utilice las configuraciones siguientes: (Los datos en letra cursiva seran sustituidas por las asignadas!)
Nombre del Host:
Nombre del Usuario: nombre de la base de datos
Clave: contraseña elegida
Base de datos: Nombre de la base de datos'; +$lng['mysql']['databasename'] = 'Nombre -/Base de Datos'; +$lng['mysql']['databasedescription'] = 'Indentificador de la Base de Datos'; +$lng['mysql']['database_create'] = 'Abrir base de Datos'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Aqui se pueden crear Extras , por Eje.protector de Directorio.
Los cambios son despues de cierto tiempo aplicables.'; +$lng['extras']['directoryprotection_add'] = 'Crear Protección de Directorio'; +$lng['extras']['view_directory'] = 'Mostrar directorio'; +$lng['extras']['pathoptions_add'] = 'agregue las opciones del camino'; +$lng['extras']['directory_browsing'] = 'Mostrar contenido del Directorio'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL para errorDocumento 404'; +$lng['extras']['errordocument403path'] = 'URL para errorDocumento 403'; +$lng['extras']['errordocument500path'] = 'URL para errorDocumento 500'; +$lng['extras']['errordocument401path'] = 'URL para errorDocumento 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Error'; +$lng['error']['directorymustexist'] = 'El Directorio %s tiene que Existir. Crearlo por Favor a traves del FTP-Programa.'; +$lng['error']['filemustexist'] = 'El archivo %s debe existir'; +$lng['error']['allresourcesused'] = 'Usted ha usado todos los recursos a su disposicion.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain.'; +$lng['error']['domains_canteditdomain'] = 'Usted no puede trabajar con este Domain . Debido a que el Admin se lo niega.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Usted no puede Borar un Domain el cual esta siendo usado como e-mail Domain , Borre primero todos las Direcciones e-mail de este dominio.'; +$lng['error']['firstdeleteallsubdomains'] = 'Usted debe primero borar todos los Subdomains, antes de Usted crear un dominio del comodÃn.'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Usted acaba de definer una Direccion como Catchall para este dominio.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Usted no puede suprimir su cuenta principal del ftp'; +$lng['error']['login'] = 'El Nombre de Usuario/Clave esta Errado. Por favor intento otra vez!'; +$lng['error']['login_blocked'] = 'Esta cuenta fue cerrada transitoriamente debido a demasiados intentos falsos.
Por favor intente otra vez en ' . $settings['login']['deactivatetime'] . ' segundos.'; +$lng['error']['notallreqfieldsorerrors'] = 'Usted no ha llenado todos los espacios asignados o ha colocado un dato Erroneo.'; +$lng['error']['oldpasswordnotcorrect'] = 'La Clave Vieja no es correcta.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Usted no puede afectar un aparato más recursos que los que usted posee.'; +$lng['error']['mustbeurl'] = 'Usted tiene que dar una completa direccion URL(por ejemplo: http://algo.de/error404.htm)'; +$lng['error']['invalidpath'] = 'No ha seleccionado una URL válida (¿probablemente problemas con el listado de registros?)'; +$lng['error']['stringisempty'] = 'Falta un dato'; +$lng['error']['stringiswrong'] = 'Dato falso'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'La Clave Nueva a la Confirmacion de Clave no Coinciden'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'dominio\''; +$lng['error']['mydocumentroot'] = '\'Documentroot\''; +$lng['error']['loginnameexists'] = 'Conexión-Nombre %s existe ya'; +$lng['error']['emailiswrong'] = 'Email address %s contiene caracteres inválidos o es incompleta'; +$lng['error']['loginnameiswrong'] = 'Conexión-Nombre %s contiene caracteres inválidos'; +$lng['error']['userpathcombinationdupe'] = 'combinación del nombre del usuario y del camino existe ya'; +$lng['error']['patherror'] = '¡Error general! el camino no puede estar vacÃo'; +$lng['error']['errordocpathdupe'] = 'Opción para el camino %s existe ya'; +$lng['error']['adduserfirst'] = 'Usted debe primero crear un Cliente'; +$lng['error']['domainalreadyexists'] = 'El dominio %s se ha asignado ya a un cliente'; +$lng['error']['nolanguageselect'] = 'Asigne un Idioma.'; +$lng['error']['nosubjectcreate'] = 'Usted debe de asignar un asunto.'; +$lng['error']['nomailbodycreate'] = 'Usted debe de Agregar Texto al Mail.'; +$lng['error']['templatenotfound'] = 'Modelo no encontrado.'; +$lng['error']['alltemplatesdefined'] = 'Usted no puede definir más modelos, todos los lenguajes se utilizan ya.'; +$lng['error']['wwwnotallowed'] = 'www no se permite como nombre para los secundario-dominios.'; +$lng['error']['subdomainiswrong'] = 'El dominio-secundario %s contiene caracteres inválidos.'; +$lng['error']['domaincantbeempty'] = 'El nombre del dominio-Apellido no puede estar Vacio.'; +$lng['error']['domainexistalready'] = 'El dominio %s existe ya.'; +$lng['error']['domainisaliasorothercustomer'] = 'El alias de dominio seleccionado es un propio alias de dominio o pertenece a otro cliente.'; +$lng['error']['emailexistalready'] = 'El email address %s existe ya.'; +$lng['error']['maindomainnonexist'] = 'El dominio-principal %s no existe.'; +$lng['error']['destinationnonexist'] = 'Crear por favor su email-expedición en \'Destinación\'.'; +$lng['error']['destinationalreadyexistasmail'] = 'La direccion Secundaria %s ya existe como Direccion e-mail activa.'; +$lng['error']['destinationalreadyexist'] = 'Ya existe una Direccion Secundaria para %s .'; +$lng['error']['destinationiswrong'] = 'La Direccion Secundaria %s contiene simbolos invalidos o esta incompleta.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Pregunta de seguridad'; +$lng['question']['admin_customer_reallydelete'] = '¿Usted realmente desea suprimir el %s del cliente? ATENCIÒN!todos los datos se perderán definitivamente, deberá borar los datos manualmente del sistema!'; +$lng['question']['admin_domain_reallydelete'] = '¿Usted realmente desea suprimir el dominio %s?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = '¿Usted realmente desea desactivar estas configuraciones de seguridad (OpenBasedir y/o SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = '¿Usted realmente desea suprimir al administrador %s? todos los clientes y dominios serán reasignados al administrador principal.'; +$lng['question']['admin_template_reallydelete'] = 'desea usted realmente suprimir el modelo \'%s\'?'; +$lng['question']['domains_reallydelete'] = '¿desea Usted realmente suprimir el dominio %s?'; +$lng['question']['email_reallydelete'] = '¿Usted realmente desea suprimir el email address %s?'; +$lng['question']['email_reallydelete_account'] = '¿Usted realmente desea suprimir la cuenta de email %s?'; +$lng['question']['email_reallydelete_forwarder'] = '¿Usted realmente desea suprimir el reenvío de email %s?'; +$lng['question']['extras_reallydelete'] = '¿Usted realmente desea suprimir la protección del directorio %s?'; +$lng['question']['extras_reallydelete_pathoptions'] = '¿Usted realmente desea suprimir las opciones del camino para el %s?'; +$lng['question']['ftp_reallydelete'] = '¿Usted realmente desea suprimir la cuenta %s del ftp?'; +$lng['question']['mysql_reallydelete'] = '¿Usted realmente desea suprimir la base de datos %s?ATENCIÒN! todos los datos se perderán definitivamente'; +$lng['question']['admin_configs_reallyrebuild'] = '¿Realmente desea elaborar de nuevo sus archivos de configuración de Apache y Bind? '; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Hola,\n\nsu cuenta del correo {EMAIL}\nfue instalada con éxito .\n\nEsto es un email automáticamente creado,\n\nno conteste por favor!\n\nSinceramente suyo, el SysCP-Equipo'; +$lng['mails']['pop_success']['subject'] = 'cuenta del email instalada con éxito'; +$lng['mails']['createcustomer']['mailbody'] = 'Hola {FIRSTNAME} {NAME},\n\naquà está su información de la cuenta:\n\nNombre del usuario: {USERNAME}\nContraseña: {PASSWORD}\n\nGracias,\nel SysCP-Equipo'; +$lng['mails']['createcustomer']['subject'] = 'Información de la cuenta'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Descripción'; +$lng['admin']['ressourcedetails'] = 'Recursos usados'; +$lng['admin']['systemdetails'] = 'Detalles del sistema'; +$lng['admin']['syscpdetails'] = 'Detalles de SysCP'; +$lng['admin']['installedversion'] = 'Versión instalada'; +$lng['admin']['latestversion'] = 'La última versión'; +$lng['admin']['lookfornewversion']['clickhere'] = 'búsqueda via Web-servicio'; +$lng['admin']['lookfornewversion']['error'] = 'Error de lectura'; +$lng['admin']['resources'] = 'Recursos'; +$lng['admin']['customer'] = 'Cliente'; +$lng['admin']['customers'] = 'Clientes'; +$lng['admin']['customer_add'] = 'Crear un cliente nuevo'; +$lng['admin']['customer_edit'] = 'Corrija a un cliente'; +$lng['admin']['domains'] = 'Dominios'; +$lng['admin']['domain_add'] = 'Crear el dominio'; +$lng['admin']['domain_edit'] = 'Corrija el dominio'; +$lng['admin']['subdomainforemail'] = 'dominio-secundario como dominio de email'; +$lng['admin']['admin'] = 'Administrador'; +$lng['admin']['admins'] = 'Administradores'; +$lng['admin']['admin_add'] = 'Crear un admininstrator'; +$lng['admin']['admin_edit'] = 'corrija el admininstrator'; +$lng['admin']['customers_see_all'] = '¿Puede ver a todos los clientes?'; +$lng['admin']['domains_see_all'] = '¿Puede ver todos los dominios?'; +$lng['admin']['change_serversettings'] = '¿Puede cambiar configuraciones del servidor?'; +$lng['admin']['server'] = 'Servidor'; +$lng['admin']['serversettings'] = 'Configuraciones'; +$lng['admin']['rebuildconf'] = 'Reescribir las configuraciones'; +$lng['admin']['stdsubdomain'] = 'dominio-secundario estándar'; +$lng['admin']['stdsubdomain_add'] = 'Crear el subdomain estándar'; +$lng['admin']['deactivated'] = 'Desactivado'; +$lng['admin']['deactivated_user'] = 'Desactive a utilizador'; +$lng['admin']['sendpassword'] = 'EnvÃe la contraseña'; +$lng['admin']['ownvhostsettings'] = 'vHost-Configuraciones propias'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Configuración'; +$lng['admin']['configfiles']['files'] = 'Configfiles: Cambie por favor los ficheros siguientes
o créelos con el contenido siguiente si no existen.
Por favor note: La MySQL-contraseña no se ha substituido por razones de seguridad.
Substituya por favor "MYSQL_PASSWORD"manualmente por la propia. Si usted se olvidó de su MySQL-contraseña
usted la encontrará en el "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Commands: Ejecute por favor los comandos siguientes en un shell.'; +$lng['admin']['configfiles']['restart'] = 'Relanzar: Ejecute por favor los comandos siguientes en un shell para recargar la nueva configuración.'; +$lng['admin']['templates']['templates'] = 'Modelos'; +$lng['admin']['templates']['template_add'] = 'Agregue el modelo'; +$lng['admin']['templates']['template_edit'] = 'Corrija el modelo'; +$lng['admin']['templates']['action'] = 'Acción'; +$lng['admin']['templates']['email'] = 'E-Mail'; +$lng['admin']['templates']['subject'] = 'asunto'; +$lng['admin']['templates']['mailbody'] = 'email-texto'; +$lng['admin']['templates']['createcustomer'] = 'email de Bienvenida para los nuevos clientes'; +$lng['admin']['templates']['pop_success'] = 'email de Bienvenida para las nuevas cuentas del email'; +$lng['admin']['templates']['template_replace_vars'] = 'Variables que se substituirán en el modelo:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Substituido por el nombre de los clientes.'; +$lng['admin']['templates']['NAME'] = 'Substituido por el Apellido de los clientes.'; +$lng['admin']['templates']['USERNAME'] = 'Substituido por el username de la cuenta de clientes.'; +$lng['admin']['templates']['PASSWORD'] = 'Substituido por la contraseña de la cuenta de clientes.'; +$lng['admin']['templates']['EMAIL'] = 'Substituido por la direccion de la cuenta de POP3/del IMAP.'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Descanso de la sesión'; +$lng['serversettings']['session_timeout']['description'] = '¿Cuanto tiempo un utilizador tiene que estar inactivo antes de que una sesión consiga quedar inválida (segundos)?'; +$lng['serversettings']['accountprefix']['title'] = 'Cliente-prefijo'; +$lng['serversettings']['accountprefix']['description'] = '¿Qué prefijo deben las cuentas de cliente tener??'; +$lng['serversettings']['mysqlprefix']['title'] = 'Prefijo del SQL'; +$lng['serversettings']['mysqlprefix']['description'] = '¿Qué prefijo deben tener las cuentas del mysql?'; +$lng['serversettings']['ftpprefix']['title'] = 'Prefijo del ftp'; +$lng['serversettings']['ftpprefix']['description'] = 'Qué prefijo deben tener las cuentas del ftp?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Directorio de documento'; +$lng['serversettings']['documentroot_prefix']['description'] = '¿Dónde deben quedar todos los clientes?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Directorio de los ficheros de diario'; +$lng['serversettings']['logfiles_directory']['description'] = '¿Dónde deben todos los ficheros de diario ser salvados?'; +$lng['serversettings']['ipaddress']['title'] = 'IP address'; +$lng['serversettings']['ipaddress']['description'] = '¿Cuál es el IP address de este servidor?'; +$lng['serversettings']['hostname']['title'] = 'Hostname'; +$lng['serversettings']['hostname']['description'] = '¿Cuál es el hostname de este servidor?'; +$lng['serversettings']['apachereload_command']['title'] = 'Comando de la recarga de Apache'; +$lng['serversettings']['apachereload_command']['description'] = '¿Cuál es el comando de la recarga de Apache?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Directorio de la configuración de Bind'; +$lng['serversettings']['bindconf_directory']['description'] = '¿Dónde está la configuración del Bind?'; +$lng['serversettings']['bindreload_command']['title'] = 'Comando de la recarga de Bindmm'; +$lng['serversettings']['bindreload_command']['description'] = '¿Cuál es el comando de la recarga de Bind?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Zona del valor por defecto de Bind'; +$lng['serversettings']['binddefaultzone']['description'] = '¿Cuál es el nombre de la zona del valor por defecto?'; +$lng['serversettings']['vmail_uid']['title'] = 'eMail-Uid'; +$lng['serversettings']['vmail_uid']['description'] = '¿Qué UserID deben tener los email?'; +$lng['serversettings']['vmail_gid']['title'] = 'eMail-Gid'; +$lng['serversettings']['vmail_gid']['description'] = '¿Qué identificación del grupo deben tener los email?'; +$lng['serversettings']['vmail_homedir']['title'] = 'Hogar-directorio de los email'; +$lng['serversettings']['vmail_homedir']['description'] = '¿Dónde deben quedar todos los email?'; +$lng['serversettings']['adminmail']['title'] = 'Remitente'; +$lng['serversettings']['adminmail']['description'] = '¿Qué remitente-tratan para los email se envÃa del panel?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = '¿Cuál es el URL al phpMyAdmin? (tienen que comenzar con http://)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; +$lng['serversettings']['webmail_url']['description'] = '¿Cuál es el URL a WebMail? (tienen que comenzar con http://)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = '¿Cuál es el URL a WebFTP?? (tienen que comenzar con http://)'; +$lng['serversettings']['language']['description'] = 'Cuál es su lenguaje estándar del servidor?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Tentativas máximas de registro'; +$lng['serversettings']['maxloginattempts']['description'] = 'Las tentativas máximas de registro después de lo cual la cuenta se desactiva.'; +$lng['serversettings']['deactivatetime']['title'] = 'tiempo de la desactivación'; +$lng['serversettings']['deactivatetime']['description'] = 'tiempo (en segundos) para el cual la cuenta está desactivada.'; +$lng['serversettings']['pathedit']['title'] = 'Método de introducción de datos del trayecto '; +$lng['serversettings']['pathedit']['description'] = 'Prefiere seleccionar un trayecto a través de un menú-dropdown o introducirlo manualmente.'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Último Cron'; +$lng['serversettings']['paging']['title'] = 'Entradas por página'; +$lng['serversettings']['paging']['description'] = '¿Cuantas entradas deben ser mostradas en una página? (0=desactivar paginación)'; +$lng['error']['ipstillhasdomains'] = 'La combinación IP/Puerto que Usted quiere eliminar todavía tiene dominios asignados, por favor vuelva a reasignar estas combinaciones IP/Puerto antes de eliminar esta combinación IP/Puerto.'; +$lng['error']['cantdeletedefaultip'] = 'Usted no puede eliminar la combinación IP/Puerto del distribuidor predeterminada, por favor crea otra combinación IP/Puerto predeterminada para distribuidores antes de eliminar esta combinación IP/Puerto.'; +$lng['error']['cantdeletesystemip'] = 'No puede eliminar la IP del sistema, crea una nueva combinación IP/Puerto para el sistema IP o cambia the sistema IP.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'Debe seleccionar una combinación IP/Puerto que se convierta de manera predeterminado.'; +$lng['error']['myipnotdouble'] = 'Esta combinación IP/Puerto ya existe.'; +$lng['question']['admin_ip_reallydelete'] = '¿Realmente quiere eliminar esta dirección IP %s?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IPs y Puertos'; +$lng['admin']['ipsandports']['add'] = 'Añadir IP/Puerto'; +$lng['admin']['ipsandports']['edit'] = 'Editar IP/Puerto'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Puerto'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Puerto'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'No puede cambiar el último IP de sistema, cree una nueva combinación de IP/Puerto para la IP de sistema o cambie la IP de sistema.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '¿Está seguro de que quiere la raíz de documento para este dominio, ya que no se encuentra dentro de la raíz cliente del cliente?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Desactivado'; +$lng['error']['loginnameissystemaccount'] = 'No puede crear cuentas parecidas a cuentas de sistema. Por favor, introduzca otro nombre de cuenta.'; +$lng['domain']['docroot'] = 'Path del campo de arriba'; +$lng['domain']['homedir'] = 'Hogar-directorio'; +$lng['admin']['valuemandatory'] = 'Este valor es obligatorio'; +$lng['admin']['valuemandatorycompany'] = 'Hay que rellenar ó "apellido" y "nombre" ó "empresa"'; +$lng['panel']['pathorurl'] = 'Path ó URL'; +$lng['error']['sessiontimeoutiswrong'] = 'Sólo están permitidos "descansos de la sesión" numéricos'; +$lng['error']['maxloginattemptsiswrong'] = 'Sólo están permitidos "intentos máximas de registro" numéricos'; +$lng['error']['deactivatetimiswrong'] = 'Sólo está permitido un "tiempo de desactivación" numérico'; +$lng['error']['accountprefixiswrong'] = 'El prefijo de cliente está mal.'; +$lng['error']['mysqlprefixiswrong'] = 'El prefijo del SQL está mal.'; +$lng['error']['ftpprefixiswrong'] = 'El prefijo del FTP está mal.'; +$lng['error']['ipiswrong'] = 'La dirección IP está mal. Sólo se permiten direcciones IP válidas.'; +$lng['error']['vmailuidiswrong'] = 'El eMail-Uid está mal. Sólo se permiten UIDs numéricos.'; +$lng['error']['vmailgidiswrong'] = 'El eMail-Gid está mal. Sólo se permiten GIDs numéricos.'; +$lng['error']['adminmailiswrong'] = 'La dirección del remitente está mal. Sólo se permiten direcciones de correo electrónico válidas.'; +$lng['error']['pagingiswrong'] = 'Las entradas por página están mal. Sólo se permiten caracteres numéricos.'; +$lng['error']['phpmyadminiswrong'] = 'La URL de phpMyAdmin no es una URL válida.'; +$lng['error']['webmailiswrong'] = 'La URL de WebMail no es una URL válida.'; +$lng['error']['webftpiswrong'] = 'La URL de WebFTP no es una URL válida.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Software del servidor'; +$lng['admin']['phpversion'] = 'Versión PHP'; +$lng['admin']['phpmemorylimit'] = 'Limite memoria PHP'; +$lng['admin']['mysqlserverversion'] = 'Versión servidor MySQL'; +$lng['admin']['mysqlclientversion'] = 'Versión cliente MySQL'; +$lng['admin']['webserverinterface'] = 'Interface servidor de red'; +$lng['menue']['extras']['extras'] = 'Extras'; +$lng['extras']['pathoptions_edit'] = 'editar opciones de ruta/directorio'; +$lng['domain']['openbasedirpath'] = 'Directorio OpenBasedir'; +$lng['menue']['main']['username'] = 'Ingreso como: '; +$lng['serversettings']['defaultip']['title'] = 'IP/Puerto por defecto'; +$lng['serversettings']['defaultip']['description'] = '¿Cuál es la combinación de IP y Puerto por defecto?'; +$lng['domains']['statstics'] = 'Estadisticas de uso'; +$lng['panel']['ascending'] = 'ascendiente'; +$lng['panel']['decending'] = 'descendiente'; +$lng['panel']['search'] = 'Buscar'; +$lng['panel']['used'] = 'usado'; +$lng['panel']['translator'] = 'Traductor'; +$lng['error']['stringformaterror'] = 'El valor para la fila "%s" no esta dentro de los formatos esperados.'; + ?> \ No newline at end of file diff --git a/lng/swedish.lng.php b/lng/swedish.lng.php index 0cc66e1b..bfc97e13 100644 --- a/lng/swedish.lng.php +++ b/lng/swedish.lng.php @@ -1,740 +1,740 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: swedish.lng.php 2724 2009-06-07 14:18:02Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = 'Staffan Starberg'; -$lng['panel']['edit'] = 'Ändra'; -$lng['panel']['delete'] = 'Radera'; -$lng['panel']['create'] = 'Skapa'; -$lng['panel']['save'] = 'Spara'; -$lng['panel']['yes'] = 'Ja'; -$lng['panel']['no'] = 'Nej'; -$lng['panel']['emptyfornochanges'] = 'Tomt fält = ingen ändring'; -$lng['panel']['emptyfordefault'] = 'Förvalt värde används om fältet lämnas tommt'; -$lng['panel']['path'] = 'Sökväg (Path)'; -$lng['panel']['toggle'] = 'Växla (Toggle)'; -$lng['panel']['next'] = 'nästa'; -$lng['panel']['dirsmissing'] = 'Kan inte hitta eller läsa katalogen!'; - -/** - * Login - */ - -$lng['login']['username'] = 'Användarnamn'; -$lng['login']['password'] = 'Lösenord'; -$lng['login']['language'] = 'Språk'; -$lng['login']['login'] = 'Logga in'; -$lng['login']['logout'] = 'Logga ut'; -$lng['login']['profile_lng'] = 'Profilspråk'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = 'Hemkatalog'; -$lng['customer']['name'] = 'Efternamn'; -$lng['customer']['firstname'] = 'Förnamn'; -$lng['customer']['company'] = 'Företag'; -$lng['customer']['street'] = 'Postadress'; -$lng['customer']['zipcode'] = 'Postnummer'; -$lng['customer']['city'] = 'Postort'; -$lng['customer']['phone'] = 'Telefon'; -$lng['customer']['fax'] = 'Fax'; -$lng['customer']['email'] = 'E-post'; -$lng['customer']['customernumber'] = 'Kundnummer'; -$lng['customer']['diskspace'] = 'Webb (MB)'; -$lng['customer']['traffic'] = 'Trafik (GB)'; -$lng['customer']['mysqls'] = 'SQL_DBas'; -$lng['customer']['emails'] = 'E-post_adresser'; -$lng['customer']['accounts'] = 'E-post_konton'; -$lng['customer']['forwarders'] = 'E-post_skicka_vidare'; -$lng['customer']['ftps'] = 'FTP_Kto'; -$lng['customer']['subdomains'] = 'Sub-Domäner'; -$lng['customer']['domains'] = 'Domäner'; -$lng['customer']['unlimited'] = 'Obegränsad'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = 'Huvudsidan'; -$lng['menue']['main']['changepassword'] = 'Ändra lösenord'; -$lng['menue']['main']['changelanguage'] = 'Ändra språk'; -$lng['menue']['email']['email'] = 'E-post'; -$lng['menue']['email']['emails'] = 'E-post'; -$lng['menue']['email']['webmail'] = 'WebMail'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = 'Databaser'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = 'Domäner'; -$lng['menue']['domains']['settings'] = 'Inställningar'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = 'Konton'; -$lng['menue']['ftp']['webftp'] = 'WebFTP'; -$lng['menue']['extras']['extras'] = 'Extras'; -$lng['menue']['extras']['directoryprotection'] = 'Katalog säkerhet'; -$lng['menue']['extras']['pathoptions'] = 'Inställningar sökväg'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = 'Kunddetaljer'; -$lng['index']['accountdetails'] = 'Kontodetaljer'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = 'Gammalt lösenord'; -$lng['changepassword']['new_password'] = 'Nytt lösenord'; -$lng['changepassword']['new_password_confirm'] = 'Nytt lösenord (verifiera)'; -$lng['changepassword']['new_password_ifnotempty'] = 'Nytt lösenord (Tomt fältet = inga ändringar)'; -$lng['changepassword']['also_change_ftp'] = ' Ändra även lösenord för huvud FTP kontot'; - -/** - * Domains - */ - -$lng['domains']['description'] = 'Här kan du skapa (sub-)domäner och ändra i dem.
Systemet behöver dock lite tid på sig att genomföra ändringarna.'; -$lng['domains']['domainsettings'] = 'Domäninställningar'; -$lng['domains']['domainname'] = 'Domännamn'; -$lng['domains']['subdomain_add'] = '[Skapa en ny subdomän]'; -$lng['domains']['subdomain_edit'] = 'Ändra (sub)domän'; -$lng['domains']['wildcarddomain'] = 'Skapa som ospecificerad domän (Create as wildcarddomain?)'; -$lng['domains']['aliasdomain'] = 'Alias for domän'; -$lng['domains']['noaliasdomain'] = '(inget alias)'; - -/** - * E-mails - */ - -$lng['emails']['description'] = 'Här kan du skapa eller ändra dina E-postadresser.
Ett konto är som en brevlåda utanför huset. Om någon skickar dig E-post kommer det att hamna i din brevlåda (ditt konto).

För att hämta din E-post så skall du använda följande inställningar i ditt E-postprogram: (Text i kursiv stil italics måste ändras till det som motsvaras av det du knappade in tidigare!)
Servernamn (Hostname): Domännamn (Domainname)
Användarnamn (Username): Konto namn (Account name) / E-postadress
Lösenord (Password): lösenordet som du valde'; -$lng['emails']['emailaddress'] = 'E-postadress'; -$lng['emails']['emails_add'] = '[Skapa en E-postadress]'; -$lng['emails']['emails_edit'] = 'Ändra E-postadressen'; -$lng['emails']['catchall'] = 'Maildump'; -$lng['emails']['iscatchall'] = 'Skapa en maildump?'; -$lng['emails']['account'] = 'Konto'; -$lng['emails']['account_add'] = 'Skapa konto'; -$lng['emails']['account_delete'] = 'Radera konto'; -$lng['emails']['from'] = 'Från'; -$lng['emails']['to'] = 'Till'; -$lng['emails']['forwarders'] = 'Skicka vidare:'; -$lng['emails']['forwarder_add'] = '[Skapa ny "skicka vidare"]'; - -/** - * FTP - */ - -$lng['ftp']['description'] = 'Här kan du skapa eller änra i dina FTP konton.
Ändringen genomförs omedelbart så man kan använda det nya/ändrade kontot direkt.'; -$lng['ftp']['account_add'] = '[Skapa ett nytt FTP konto]'; - -/** - * MySQL - */ - -$lng['mysql']['databasename'] = 'Användare/databasnamn'; -$lng['mysql']['databasedescription'] = 'Beskrivning av databasen'; -$lng['mysql']['database_create'] = '[Skapa en ny databas]'; - -/** - * Extras - */ - -$lng['extras']['description'] = 'Här kan du ändra övriga saker såsom katalogskydd mm.
Systemet behöver dock lite tid på sig att genomföra ändringarna.'; -$lng['extras']['directoryprotection_add'] = '[Skapa ett nytt katalogskydd]'; -$lng['extras']['view_directory'] = 'Visa kataloginnehåll'; -$lng['extras']['pathoptions_add'] = '[Skapa ny regel för sökvägar]'; -$lng['extras']['directory_browsing'] = 'Visning av katalogstruktur'; -$lng['extras']['pathoptions_edit'] = 'Ändra sökvägsinställningar'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = 'URL to ErrorDocument 404'; -$lng['extras']['errordocument403path'] = 'URL to ErrorDocument 403'; -$lng['extras']['errordocument500path'] = 'URL to ErrorDocument 500'; -$lng['extras']['errordocument401path'] = 'URL to ErrorDocument 401'; - -/** - * Errors - */ - -$lng['error']['error'] = 'Följande fel har uppstått'; -$lng['error']['directorymustexist'] = 'Katalogen %s måste finnas. Skapa den med ditt FTP program.'; -$lng['error']['filemustexist'] = 'Filen %s måste existera.'; -$lng['error']['allresourcesused'] = 'Du har redan skapt så många konton som du har tillstånd till.'; -$lng['error']['domains_cantdeletemaindomain'] = 'Du kan inte radera en domän som användes för E-post.'; -$lng['error']['domains_canteditdomain'] = 'Endast administratörer kan ändra denna domän.'; -$lng['error']['domains_cantdeletedomainwithemail'] = 'Du kan inte radera en domän som användes för E-post. Radera alla E-postadresser först'; -$lng['error']['firstdeleteallsubdomains'] = 'Du måste radera alla sub-domäner innan du kan skapa en maildump (wildcard domain).'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Du har redan skapat en maildump för denna domän.'; -$lng['error']['ftp_cantdeletemainaccount'] = 'Det går inte att radera huvud FTP kontot för domänen'; -$lng['error']['login'] = 'Användarnamnet eller lösenordet var felaktigt, försök igen!'; -$lng['error']['login_blocked'] = 'Kontot har blivit avstängt på grund av för många felaktiga inloggningsförsök.
Försök igen om ' . $settings['login']['deactivatetime'] . ' sekunder.'; -$lng['error']['notallreqfieldsorerrors'] = 'Du har inte fyllt i alla fält eller så har du skrivit in något som inte accepteras.'; -$lng['error']['oldpasswordnotcorrect'] = 'Det gamla lösenordet är fel.'; -$lng['error']['youcantallocatemorethanyouhave'] = 'Du kan inte skapa fler resurser än du äger själv (You cannot allocate more resources than you own for yourself).'; -$lng['error']['mustbeurl'] = 'Du har inte skrivit in en korrekt url (e.g. http://somedomain.com/error404.htm)'; -$lng['error']['invalidpath'] = 'Du har inte valt en korrekt url (Kanske har du lagt till en katalogsäkerhet så att katalogerna inte kan visas?)'; -$lng['error']['stringisempty'] = 'Du måste skriva in något i fältet'; -$lng['error']['stringiswrong'] = 'Fel inatningsfält'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = 'New password and confirmation does not match'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'Domain\''; -$lng['error']['mydocumentroot'] = '\'Documentroot\''; -$lng['error']['loginnameexists'] = 'Login-Name %s är upptaget'; -$lng['error']['emailiswrong'] = 'E-post-Adressen "%s" innehåller ogiltiga tecken eller så är den inte komplett'; -$lng['error']['loginnameiswrong'] = 'Login-Namnet %s innehåller ogiltiga tecken'; -$lng['error']['userpathcombinationdupe'] = 'Användarnamnet och sökvägen tillsammans finns redan'; -$lng['error']['patherror'] = 'Generellt Fel! sökvägen till katalogen kan inte vara tom'; -$lng['error']['errordocpathdupe'] = 'Option för sökvägen %s finns redan'; -$lng['error']['adduserfirst'] = 'Skapa användaren först'; -$lng['error']['domainalreadyexists'] = 'Domänen %s ägs redan av en kund'; -$lng['error']['nolanguageselect'] = 'Inget språk är valt.'; -$lng['error']['nosubjectcreate'] = 'Du måste ha ett rubrik för denna E-postmall.'; -$lng['error']['nomailbodycreate'] = 'Du måste ha skrivit in en E-post text för denna mall.'; -$lng['error']['templatenotfound'] = 'E-postmallen hittades inte.'; -$lng['error']['alltemplatesdefined'] = 'Du kan inte skapa flera mallar, alla språk finns redan.'; -$lng['error']['wwwnotallowed'] = 'www är inte tillåtet att använda för subdomäner.'; -$lng['error']['subdomainiswrong'] = 'Subdomänen %s innehåller ogiltiga tecken.'; -$lng['error']['domaincantbeempty'] = 'Fältet för domännamn får inte vara tommt.'; -$lng['error']['domainexistalready'] = 'Domänen %s finns redan.'; -$lng['error']['domainisaliasorothercustomer'] = 'Den valda domänen är antingen en aliasdomän eller så ägs den redan av en annan kund.'; -$lng['error']['emailexistalready'] = 'E-postadressen %s finns redan.'; -$lng['error']['maindomainnonexist'] = 'Huvuddomänen %s finns inte.'; -$lng['error']['destinationnonexist'] = 'Skapa en forwarder i fältet \'Destination\'.'; -$lng['error']['destinationalreadyexistasmail'] = 'Denna forwarder %s, finns redan som aktiv E-postadress.'; -$lng['error']['destinationalreadyexist'] = 'Du har redan skapat en forwarder till %s .'; -$lng['error']['destinationiswrong'] = 'Denna forwarder: %s innehåller ogiltiga tecken eller så är den inte komplett adress.'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = 'Säkerhetsfråga'; -$lng['question']['admin_customer_reallydelete'] = 'Är du säker på att du vill radera kunden %s? Om du väljer att radera går det inte att ångra sig efteråt!'; -$lng['question']['admin_domain_reallydelete'] = 'Är du riktigt säker på att du vill radera domänen %s?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Är du riktigt säker på att du vill avaktivera säkerhetsinställningarna (OpenBasedir and/or SafeMode)?'; -$lng['question']['admin_admin_reallydelete'] = 'Är du riktigt säker på att du vill radera adminkontot %s? Alla kunder och domäner kommer att flyttas till ditt konto istället.'; -$lng['question']['admin_template_reallydelete'] = 'Är du riktigt säker på att du vill radera mallen \'%s\'?'; -$lng['question']['domains_reallydelete'] = 'Är du riktigt säker på att du vill radera domänen %s?'; -$lng['question']['email_reallydelete'] = 'Är du riktigt säker på att du vill radera E-postadressen %s?'; -$lng['question']['email_reallydelete_account'] = 'Är du riktigt säker på att du vill radera E-postkontot %s?'; -$lng['question']['email_reallydelete_forwarder'] = 'Är du riktigt säker på att du vill radera forwardern till %s?'; -$lng['question']['extras_reallydelete'] = 'Är du riktigt säker på att du vill radera katalogsäkerheten (directory protection) för %s?'; -$lng['question']['extras_reallydelete_pathoptions'] = 'Är du riktigt säker på att du vill radera katalogalternativen (path options) för %s?'; -$lng['question']['ftp_reallydelete'] = 'Är du riktigt säker på att du vill radera FTP kontot %s?'; -$lng['question']['mysql_reallydelete'] = 'Är du riktigt säker på att du vill radera databasen %s? Om du väljer att radera går det inte att ångra sig efteråt!'; -$lng['question']['admin_configs_reallyrebuild'] = 'Är du riktigt säker på att du vill skapa nya konfigurationsfiler för apache och bind?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = 'Hej,\n\nDitt E-postkonto {EMAIL}\nhar nu skapats.\n\nDetta är ett automatgenererat E-post meddelande\n, Det går därför inte att svara på detta meddelande!\n'; -$lng['mails']['pop_success']['subject'] = 'E-postkontot är nu skapat'; -$lng['mails']['createcustomer']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nHär kommer kontoinformationen för ditt konto:\n\nAnvändarnamn (Username): {USERNAME}\nLösenord (Password): {PASSWORD}\n\n'; -$lng['mails']['createcustomer']['subject'] = 'Kontoinformation'; - -/** - * Admin - */ - -$lng['admin']['overview'] = 'Översikt'; -$lng['admin']['ressourcedetails'] = 'Använda resurser'; -$lng['admin']['systemdetails'] = 'System Detaljer'; -$lng['admin']['syscpdetails'] = 'SysCP Detaljer'; -$lng['admin']['installedversion'] = 'Installerad version av SysCP'; -$lng['admin']['latestversion'] = 'Senaste version av SysCP'; -$lng['admin']['lookfornewversion']['clickhere'] = '[Sök senaste verison av SysCP via Internet]'; -$lng['admin']['lookfornewversion']['error'] = 'Fel vid läsning, kontrollera uppkopplingen mot SysCP'; -$lng['admin']['resources'] = 'Resurser'; -$lng['admin']['customer'] = 'Kunder'; -$lng['admin']['customers'] = 'Kunder'; -$lng['admin']['customer_add'] = '[Skapa en ny kund]'; -$lng['admin']['customer_edit'] = 'Ändra ny kund'; -$lng['admin']['domains'] = 'Domäner'; -$lng['admin']['domain_add'] = '[Skapa en ny domän]'; -$lng['admin']['domain_edit'] = 'Tillåt ändring av domänen'; -$lng['admin']['subdomainforemail'] = 'Sub-domän som E-postdomän (Subdomains as emaildomains)'; -$lng['admin']['admin'] = 'Admin'; -$lng['admin']['admins'] = 'Admins'; -$lng['admin']['admin_add'] = '[Skapa en ny admin]'; -$lng['admin']['admin_edit'] = 'Ändra admin'; -$lng['admin']['customers_see_all'] = 'Kan se alla kunder?'; -$lng['admin']['domains_see_all'] = 'Kan se alla domäner?'; -$lng['admin']['change_serversettings'] = 'Kan ändra serverinställningar?'; -$lng['admin']['server'] = 'Server'; -$lng['admin']['serversettings'] = 'Inställningar'; -$lng['admin']['rebuildconf'] = 'Uppdatera konfig filer'; -$lng['admin']['stdsubdomain'] = 'Standard subdomän'; -$lng['admin']['stdsubdomain_add'] = '[Skapa en ny standard subdomän]'; -$lng['admin']['phpenabled'] = 'PHP påslagen'; -$lng['admin']['deactivated'] = 'Inaktiv'; -$lng['admin']['deactivated_user'] = 'Avaktivera användare'; -$lng['admin']['sendpassword'] = 'Skicka lösenord'; -$lng['admin']['ownvhostsettings'] = 'Egna vHost-Inställningar'; -$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguration'; -$lng['admin']['configfiles']['files'] = 'Konfigurationsfiler: Ändra eller skapa följande filer med
följande innehåll om de inte finns redan.
Notera: MySQL-lösenordet har inte ändrats på grund av säkerhetsskäl.
Du måste själv ändra lösenordet "MYSQL_PASSWORD" på egen hand. Om du glömt bort ditt MySQL-password
så kan du hitta det här "lib/userdata.inc.php".'; -$lng['admin']['configfiles']['commands'] = 'Kommandon: Kör följande kommandon i ett terminalfönster.'; -$lng['admin']['configfiles']['restart'] = 'Omstart: Kör följande kommandon i ett terminalfönster för att ladda in den nya konfigurationen.'; -$lng['admin']['templates']['templates'] = 'Mallar'; -$lng['admin']['templates']['template_add'] = '[Lägg till en ny mall]'; -$lng['admin']['templates']['template_edit'] = 'Ändra en befintlig mall'; -$lng['admin']['templates']['action'] = 'Action'; -$lng['admin']['templates']['email'] = 'E-Post'; -$lng['admin']['templates']['subject'] = 'Rubrik (subjekt)'; -$lng['admin']['templates']['mailbody'] = 'E-Postinnehåll (Mail body)'; -$lng['admin']['templates']['createcustomer'] = 'E-Post till nya kunder (Välkommen)'; -$lng['admin']['templates']['pop_success'] = 'E-Post för nya konton (Välkommen)'; -$lng['admin']['templates']['template_replace_vars'] = 'Variabler som kan ändras i mallen:'; -$lng['admin']['templates']['FIRSTNAME'] = 'Ändra till kundens förnamn.'; -$lng['admin']['templates']['NAME'] = 'Ändra till kundens efternamn.'; -$lng['admin']['templates']['USERNAME'] = 'Ändra till kundens kontonamns användarnamn.'; -$lng['admin']['templates']['PASSWORD'] = 'Ändra till kundens kontonamns lösenord.'; -$lng['admin']['templates']['EMAIL'] = 'Ändra till adressen för POP3/IMAP kontot.'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = 'Sessionen har avslutats för att den tog för lång tid att utföra (session Timeout)'; -$lng['serversettings']['session_timeout']['description'] = 'Tiden (i sekunder) som användaren får vara inaktiv innan han måste logga in igen är (seconds)?'; -$lng['serversettings']['accountprefix']['title'] = 'Kund ID (Customer prefix)'; -$lng['serversettings']['accountprefix']['description'] = 'Vilket prefix skall användas till ett kundkonto?'; -$lng['serversettings']['mysqlprefix']['title'] = 'SQL ID (SQL Prefix)'; -$lng['serversettings']['mysqlprefix']['description'] = 'Vilket prefix skall användas till mysql?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP ID (FTP Prefix)'; -$lng['serversettings']['ftpprefix']['description'] = 'Vilket prefix skall användas till ftp?'; -$lng['serversettings']['documentroot_prefix']['title'] = 'Hemkatalog'; -$lng['serversettings']['documentroot_prefix']['description'] = 'Vilken sökväg skall det vara till hemkatalogen?'; -$lng['serversettings']['logfiles_directory']['title'] = 'Loggfilernas hemkatalog (Logfiles directory)'; -$lng['serversettings']['logfiles_directory']['description'] = 'Vilken sökväg skall det vara till loggfilernas hemkatalog?'; -$lng['serversettings']['ipaddress']['title'] = 'IP-Adress'; -$lng['serversettings']['ipaddress']['description'] = 'Vilken IP-adress har denna server?'; -$lng['serversettings']['hostname']['title'] = 'Datornamn (Hostname)'; -$lng['serversettings']['hostname']['description'] = 'Villket Datornamn (Hostname) har denna server?'; -$lng['serversettings']['apachereload_command']['title'] = 'Ladda om Apache kommandot (Apache reload)'; -$lng['serversettings']['apachereload_command']['description'] = 'Ange sökvägen till programmet som laddar om Apache (reload apache) konfigurationsfiler?'; -$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurationskatalog (Bind config directory)'; -$lng['serversettings']['bindconf_directory']['description'] = 'Vilken sökväg skall det vara till bind:s konfigurationsfiler?'; -$lng['serversettings']['bindreload_command']['title'] = 'Ange sökvägen till programmet som laddar om Bind (reload bind) konfigurationsfiler?'; -$lng['serversettings']['bindreload_command']['description'] = 'Ange sökvägen till programmet som laddar om Bind (reload bind) konfigurationsfiler?'; -$lng['serversettings']['binddefaultzone']['title'] = 'Bind standard zone'; -$lng['serversettings']['binddefaultzone']['description'] = 'Vad är namnet på standard zonen?'; -$lng['serversettings']['vmail_uid']['title'] = 'Mails-UID'; -$lng['serversettings']['vmail_uid']['description'] = 'Vilket användarID (UserID) ska E-posten ha?'; -$lng['serversettings']['vmail_gid']['title'] = 'Mails-GID'; -$lng['serversettings']['vmail_gid']['description'] = 'Vilket gruppID (GroupID) ska E-posten ha?'; -$lng['serversettings']['vmail_homedir']['title'] = 'E-post hemkatalog'; -$lng['serversettings']['vmail_homedir']['description'] = 'I vilken katalog skall E-posten sparas?'; -$lng['serversettings']['adminmail']['title'] = 'Avsändare'; -$lng['serversettings']['adminmail']['description'] = 'Vilken avsändaradress skall E-post från admin panelen ha?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'Vilken URL är det till phpMyAdmin? (Måste börja med http(s)://)'; -$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; -$lng['serversettings']['webmail_url']['description'] = 'Vilken URL är det till WebMail? (Måste börja med http(s)://)'; -$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; -$lng['serversettings']['webftp_url']['description'] = 'Vilken URL är det till WebFTP? (Måste börja med http(s)://)'; -$lng['serversettings']['language']['description'] = 'Vilket språk skall användas som standardspråk?'; -$lng['serversettings']['maxloginattempts']['title'] = 'Max antal Login försök'; -$lng['serversettings']['maxloginattempts']['description'] = 'Maximalt antal inloggningsförsök innan kontot stängs av.'; -$lng['serversettings']['deactivatetime']['title'] = 'Avstängningstid'; -$lng['serversettings']['deactivatetime']['description'] = 'Tid (sec.) som kontot stängs av efter för många felaktiga försök.'; -$lng['serversettings']['pathedit']['title'] = 'Typ av (path input)'; -$lng['serversettings']['pathedit']['description'] = 'Skall en sökväg väljas i en rullist eller matas in för hand?'; -$lng['serversettings']['nameservers']['title'] = 'Nameservers'; -$lng['serversettings']['nameservers']['description'] = 'En kommaseparerad lista med namnet (hostname) på alla DNS:er. Den första blir den första som söks (primary).'; -$lng['serversettings']['mxservers']['title'] = 'MX servers'; -$lng['serversettings']['mxservers']['description'] = 'En kommaseparerad lista med nummer och namn separerade men mellanslag (ex. \'10 mx.example.com\') innehåller mx servrarna.'; - -/** - * CHANGED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['mysql']['description'] = 'Här ändras eller skapas MySQL-Databaser.
Ändringen sker omedelbart och databasen kan användas direkt.
I menyn på vänster sida finns verktyget phpMyAdmin med vilket man enkelt kan ändra i sin databas.

För att använda databasen i dina egna php-scripts använd följande inställningar: (Data med kursiv stil italics måste ändras till det du matat in!)
Servernamn (Hostname):
Användarnamn (Username): Databsnamn (Databasename)
Lösenord (Password): Lösenordet som du har valt
Databas (Database): Databasnamn (Databasename)'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = 'Konfigurerinsfilerna skapades sist'; -$lng['serversettings']['paging']['title'] = 'Antal rader per sida'; -$lng['serversettings']['paging']['description'] = 'Hur många rader skall det vara på en sida? (0 = Stäng av sidbrytning)'; -$lng['error']['ipstillhasdomains'] = 'IP/Port kombinationen som du vill radera har fortfarande domäner anslutna till sig, Flytta dessa till någon annan IP/Port kombination innan du raderar denna IP/Port kombination.'; -$lng['error']['cantdeletedefaultip'] = 'Det går inte att ta bort den förvalda återförsäljarens IP/Port kombination, Välj en annan IP/Port kombination som förval för återförsäljare innan du raderar denna IP/Port kombination.'; -$lng['error']['cantdeletesystemip'] = 'Det går inte att radera den sista system IP:n, Antingen skapar man en ny IP/Port kombination för system IP eller så ändrar man system IP:n.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'Port\''; -$lng['error']['myipdefault'] = 'Man måste välja en IP/Port kombination som skall bli standardvärdet.'; -$lng['error']['myipnotdouble'] = 'Denna IP/Port kombination finns redan.'; -$lng['question']['admin_ip_reallydelete'] = 'Är du säker på att du vill radera IP addressen %s?'; -$lng['admin']['ipsandports']['ipsandports'] = 'IPs and Ports'; -$lng['admin']['ipsandports']['add'] = '[Lägg till IP/Port]'; -$lng['admin']['ipsandports']['edit'] = 'Ändra IP/Port'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = 'Port'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = 'Man kan inte ändra den senaste system IP-adressen. Skapa en helt ny IP/Port kombination för system IP:n eller ändra system IP-adressen.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Dokumentkatalogen för denna domän inte kommer att ligga under kundkatalogen, är du säker på att du vill ändra detta?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = 'Avstängd'; -$lng['domain']['openbasedirpath'] = 'OpenBasedir-path'; -$lng['domain']['docroot'] = 'Sökvägen från ovanstående fält'; -$lng['domain']['homedir'] = 'Hemkatalog'; -$lng['admin']['valuemandatory'] = 'Denna ruta måste fyllas i'; -$lng['admin']['valuemandatorycompany'] = 'Fyll i "förnamn" och "efternamn" eller "företagsnamn"'; -$lng['menue']['main']['username'] = 'Inloggad som: '; -$lng['panel']['urloverridespath'] = 'URL (skriver över sökvägen)'; -$lng['panel']['pathorurl'] = 'Sökväg eller URL'; -$lng['error']['sessiontimeoutiswrong'] = 'Bara siffror "Session Timeout" är tillåtna.'; -$lng['error']['maxloginattemptsiswrong'] = 'Bara siffror "Max Login Attempts" är tillåtna.'; -$lng['error']['deactivatetimiswrong'] = 'Bara siffror "Deactivate Time" är tillåtna.'; -$lng['error']['accountprefixiswrong'] = 'Det här "Customerprefix" är fel.'; -$lng['error']['mysqlprefixiswrong'] = 'Det här "SQL Prefix" är fel.'; -$lng['error']['ftpprefixiswrong'] = 'Det här "FTP Prefix" är fel.'; -$lng['error']['ipiswrong'] = 'Den här "IP-Address" är fel. Endast en giltig IP-adress är tillåten.'; -$lng['error']['vmailuidiswrong'] = 'Den här "Mails-uid" är fel. Endast numerisk UID är tillåtenis allowed.'; -$lng['error']['vmailgidiswrong'] = 'Den här "Mails-gid" är fel. Endast numerisk GID är tillåtenis allowed.'; -$lng['error']['adminmailiswrong'] = 'Den här "Sender-address" är fel. Endast en giltig E-postadress är tillåten.'; -$lng['error']['pagingiswrong'] = 'Den här "Entries per Page"-värdet är fel. Endast siffror är tillåtna.'; -$lng['error']['phpmyadminiswrong'] = 'Den här phpMyAdmin-link är inte en giltig länk.'; -$lng['error']['webmailiswrong'] = 'Den här WebMail-link är inte en giltig länk.'; -$lng['error']['webftpiswrong'] = 'Den här WebFTP-link är inte en giltig länk.'; -$lng['domains']['hasaliasdomains'] = 'Domänen har redan alias'; -$lng['serversettings']['defaultip']['title'] = 'Förvald IP/Port'; -$lng['serversettings']['defaultip']['description'] = 'Vilken är den förvalda IP/Port kombinationen?'; -$lng['domains']['statstics'] = 'Användarstatistik'; -$lng['panel']['ascending'] = 'Stigande'; -$lng['panel']['decending'] = 'Fallande'; -$lng['panel']['search'] = 'Sök'; -$lng['panel']['used'] = 'använd'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = 'Översättare'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = 'Värdet för fältet "%s" har inte rätt format.'; - -// ADDED IN 1.2.15-rc1 - -$lng['admin']['serversoftware'] = 'Webserver version'; -$lng['admin']['phpversion'] = 'PHP-Version'; -$lng['admin']['phpmemorylimit'] = 'PHP-Minnesgräns'; -$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; -$lng['admin']['mysqlclientversion'] = 'MySQL Klient Version'; -$lng['admin']['webserverinterface'] = 'Webserver Interface'; -$lng['domains']['isassigneddomain'] = 'Tilldelad domän '; -$lng['serversettings']['phpappendopenbasedir']['title'] = 'Sökväg att lägga till OpenBasedir'; -$lng['serversettings']['phpappendopenbasedir']['description'] = 'Dessa sökvägar (separerade med kolon) kommer att läggas till OpenBasedir-statement i alla vhost-container.'; - -// CHANGED IN 1.2.15-rc1 - -$lng['error']['loginnameissystemaccount'] = 'Det går inte att skapa ett konto som liknar ett systemkonto (Om det till exempel börjar med "%s"). Vlj ett annat kontonamn.'; -$lng['error']['youcantdeleteyourself'] = 'Av säkerhetsskäl går inte att redera ditt eget konto.'; -$lng['error']['youcanteditallfieldsofyourself'] = 'Notera: Av säkerhetsskäl går det inte att ändra ditt eget konto.'; - -// ADDED IN 1.2.16-svn1 - -$lng['serversettings']['natsorting']['title'] = 'Använd mänsklig sortertering i listvisning'; -$lng['serversettings']['natsorting']['description'] = 'Sorterar listan så här web1 -> web2 -> web11 istället för web1 -> web11 -> web2.'; - -// ADDED IN 1.2.16-svn2 - -$lng['serversettings']['deactivateddocroot']['title'] = 'Dokumentroot för avstängda användare'; -$lng['serversettings']['deactivateddocroot']['description'] = 'När en användare är avstängd kommer denna sökväg att användas som dokumentroot. Lämna fältet tommt om du inte vill skapa någon vhost.'; - -// ADDED IN 1.2.16-svn4 - -$lng['panel']['reset'] = 'Avbryt ändringarna'; -$lng['admin']['accountsettings'] = 'Kontoinställningar'; -$lng['admin']['panelsettings'] = 'Panelinställningar'; -$lng['admin']['systemsettings'] = 'Systeminställningar'; -$lng['admin']['webserversettings'] = 'Webserverinställningar'; -$lng['admin']['mailserversettings'] = 'E-postserverinställningar'; -$lng['admin']['nameserversettings'] = 'Namnserverinställningar'; -$lng['admin']['updatecounters'] = 'Uppdatera status'; -$lng['question']['admin_counters_reallyupdate'] = 'Vill du uppdatera alla statusberäkningar för kunder och admins?'; -$lng['panel']['pathDescription'] = 'Katalogen kommer att skapas om den inte redan finns.'; - -// ADDED IN 1.2.16-svn6 - -$lng['mails']['trafficninetypercent']['mailbody'] = 'Varning {NAME},\n\nDu har nu använt {TRAFFICUSED} MB av ditt tillgängliga {TRAFFIC} MB för trafik.\nDetta är mer än 90%.\n\nHälsningar, SysCP team'; -$lng['mails']['trafficninetypercent']['subject'] = 'Du är på väg att nå din tillåtna trafikgräns'; -$lng['admin']['templates']['trafficninetypercent'] = 'Meddelande till kund när mer än nittio procent av trafiken utnyttjas'; -$lng['admin']['templates']['TRAFFIC'] = 'Ersatt med trafikbegrnsningen som var tilldelad till kunden.'; -$lng['admin']['templates']['TRAFFICUSED'] = 'Ersatt med trafikbegrnsningen som var överskriden av kunden.'; - -// ADDED IN 1.2.16-svn7 - -$lng['admin']['subcanemaildomain']['never'] = 'Aldrig'; -$lng['admin']['subcanemaildomain']['choosableno'] = 'Valbar, standardvärdet är Nej'; -$lng['admin']['subcanemaildomain']['choosableyes'] = 'Valbar, standardvärdet är Ja'; -$lng['admin']['subcanemaildomain']['always'] = 'Alltid'; -$lng['changepassword']['also_change_webalizer'] = ' Ändra även lösenord för webalizer statistik'; - -// ADDED IN 1.2.16-svn8 - -$lng['serversettings']['mailpwcleartext']['title'] = 'Spara även lösenord till E-postkonton okrypterade i databassen'; -$lng['serversettings']['mailpwcleartext']['description'] = 'Om du valt Ja så kommer alla lösenord att sparas okrypterade (klartext, fullt läsbara för alla som har rättigheter till databasen) i tabellen mail_users-table. Aktivera detta endast om du är säker på vad du gör!'; -$lng['serversettings']['mailpwcleartext']['removelink'] = 'Klicka här för att radera alla okrypterade lösenord från tabellen.'; -$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Är du säker på att du vill radera alla okrupterade lösenord från tabellen mail_users? Du kan INTE ändra dig efteråt!'; -$lng['admin']['configfiles']['overview'] = 'Översikt'; -$lng['admin']['configfiles']['wizard'] = 'Guide'; -$lng['admin']['configfiles']['distribution'] = 'Distribution'; -$lng['admin']['configfiles']['service'] = 'Service'; -$lng['admin']['configfiles']['daemon'] = 'Daemon'; -$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; -$lng['admin']['configfiles']['dns'] = 'Namnserver (DNS)'; -$lng['admin']['configfiles']['mail'] = 'E-postserver (POP3/IMAP)'; -$lng['admin']['configfiles']['smtp'] = 'E-postserver (SMTP)'; -$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; -$lng['admin']['configfiles']['etc'] = 'Others (System)'; -$lng['admin']['configfiles']['choosedistribution'] = '-- Choose a distribution --'; -$lng['admin']['configfiles']['chooseservice'] = '-- Choose a service --'; -$lng['admin']['configfiles']['choosedaemon'] = '-- Choose a daemon --'; -$lng['admin']['trafficlastrun'] = 'Senaste trafikberäkningen gjordes'; - -// ADDED IN 1.2.16-svn10 - -$lng['serversettings']['ftpdomain']['title'] = 'FTP konton @domain'; -$lng['serversettings']['ftpdomain']['description'] = 'Kunder kan skapa Ftp accounts user@customerdomain?'; -$lng['panel']['back'] = 'Tillbaka'; - -// ADDED IN 1.2.16-svn12 - -$lng['serversettings']['mod_log_sql']['title'] = 'Tillfälligt spara loggfiler i databasen'; -$lng['serversettings']['mod_log_sql']['description'] = 'Använd mod_log_sql för att spara webfrågor tillfälligt
Detta behöver en special apache-configuration!'; -$lng['serversettings']['mod_fcgid']['title'] = 'Inkludera PHP via mod_fcgid/suexec'; -$lng['serversettings']['mod_fcgid']['description'] = 'Använd mod_fcgid/suexec/libnss_mysql för att köra PHP med tillhörande användarkonto.
Denna inställning behöver en speciell apache-konfiguration!'; -$lng['serversettings']['sendalternativemail']['title'] = 'Använd en alternativ E-postadress'; -$lng['serversettings']['sendalternativemail']['description'] = 'Skicka lösenord med E-post till adressen under email-account-creation'; -$lng['emails']['alternative_emailaddress'] = 'Alternative e-mail-address'; -$lng['mails']['pop_success_alternative']['mailbody'] = 'Hej,\n\nditt E-postkonto {EMAIL}\nhar ny skapats.\nDitt lösenord är {PASSWORD}.\n\nDetta är ett automatgenererat E-postmeddelande som det INTE går att svara på!\n\nLycka till önskar, SysCP'; -$lng['mails']['pop_success_alternative']['subject'] = 'E-postkontot är nu skapat'; -$lng['admin']['templates']['pop_success_alternative'] = 'Välkommstmeddelande för nya E-post konton som skickas till den alternativa adressen'; -$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Ersatt med POP3/IMAP kontots lösenord.'; - -// ADDED IN 1.2.16-svn13 - -$lng['error']['documentrootexists'] = 'Katalogen "%s" finns redan hos den här kunden. Radera detta först innan kunden skapas igen.'; - -// ADDED IN 1.2.16-svn14 - -$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost konfiguration fil/katalognamn'; -$lng['serversettings']['apacheconf_vhost']['description'] = 'Var skall vhost konfigurationen sparas? Det går att specificera alla vhost i en fil eller en katalog där alla filerna ligger (varje vhost i sin egen fil).'; -$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions konfiguration fil/katalognamn'; -$lng['serversettings']['apacheconf_diroptions']['description'] = 'Var skall diroptions konfigurationen sparas? Det går att specificera alla diroptions i en fil eller en katalog där alla filerna ligger (varje diroptions i sin egen fil).'; -$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd katalognamn'; -$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Var skall htpasswd konfigurationen för katalogsäkerheten?'; - -// ADDED IN 1.2.16-svn15 - -$lng['error']['formtokencompromised'] = 'Den säkra anslutningen till SysCP har avslutats och du har av säkerhetsskäl automatiskt loggats ur.'; -$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; -$lng['serversettings']['mysql_access_host']['description'] = 'En kommaseparerad lista med datornamn som tillåts att kontakta MySQL servern.'; - -// ADDED IN 1.2.18-svn1 - -$lng['admin']['ipsandports']['create_listen_statement'] = 'Skapa "Listen statement"'; -$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Skapa NameVirtualHost statement'; -$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Skapa vHost-Container'; -$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Skapa ServerName statement i vHost-Container'; - -// ADDED IN 1.2.18-svn2 - -$lng['admin']['webalizersettings'] = 'Webalizer inställningar'; -$lng['admin']['webalizer']['normal'] = 'Normal'; -$lng['admin']['webalizer']['quiet'] = 'Tyst'; -$lng['admin']['webalizer']['veryquiet'] = 'Väldigt tyst'; -$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizer output'; -$lng['serversettings']['webalizer_quiet']['description'] = 'Verbosity of the webalizer-program'; - -// ADDED IN 1.2.18-svn3 - -$lng['ticket']['admin_email'] = 'root@localhost'; -$lng['ticket']['noreply_email'] = 'tickets@syscp'; -$lng['admin']['ticketsystem'] = 'Support'; -$lng['menue']['ticket']['ticket'] = 'Supportärenden'; -$lng['menue']['ticket']['categories'] = 'Kategorier'; -$lng['menue']['ticket']['archive'] = 'Arkivet'; -$lng['ticket']['description'] = 'Skriv en beskrivning av ärendet här!'; -$lng['ticket']['ticket_new'] = '[Skapa ett nytt ärende]'; -$lng['ticket']['ticket_reply'] = 'Svara ärende'; -$lng['ticket']['ticket_reopen'] = 'Återöppna ärende'; -$lng['ticket']['ticket_newcateory'] = '[Skapa ny kategori]'; -$lng['ticket']['ticket_editcateory'] = 'Ändra kategori'; -$lng['ticket']['ticket_view'] = 'View ticketcourse'; -$lng['ticket']['ticketcount'] = 'Ärendenummer'; -$lng['ticket']['ticket_answers'] = 'Svar'; -$lng['ticket']['lastchange'] = 'Senaste ändring'; -$lng['ticket']['subject'] = 'Rubrik'; -$lng['ticket']['status'] = 'Status'; -$lng['ticket']['lastreplier'] = 'Ägare'; -$lng['ticket']['priority'] = 'Prioritet'; -$lng['ticket']['low'] = 'Låg'; -$lng['ticket']['normal'] = 'Normal'; -$lng['ticket']['high'] = 'Hög'; -$lng['ticket']['unf_low'] = 'Låg'; -$lng['ticket']['unf_normal'] = 'Normal'; -$lng['ticket']['unf_high'] = 'Hög'; -$lng['ticket']['lastchange'] = 'Ändrad'; -$lng['ticket']['lastchange_from'] = 'Från datum (dd.mm.yyyy)'; -$lng['ticket']['lastchange_to'] = 'Till datum (dd.mm.yyyy)'; -$lng['ticket']['category'] = 'Kategori'; -$lng['ticket']['no_cat'] = 'None'; -$lng['ticket']['message'] = 'Meddeland'; -$lng['ticket']['show'] = 'Visa'; -$lng['ticket']['answer'] = 'Svara'; -$lng['ticket']['close'] = 'Stäng'; -$lng['ticket']['reopen'] = 'Öppna igen'; -$lng['ticket']['archive'] = 'Arkivera'; -$lng['ticket']['ticket_delete'] = 'Radera ett ärende'; -$lng['ticket']['lastarchived'] = 'Recently archived tickets'; -$lng['ticket']['archivedtime'] = 'Arkiverad'; -$lng['ticket']['open'] = 'Öppnad'; -$lng['ticket']['wait_reply'] = 'Väntar på svar'; -$lng['ticket']['replied'] = 'Besvarad'; -$lng['ticket']['closed'] = 'Stängd'; -$lng['ticket']['staff'] = 'Staff'; -$lng['ticket']['customer'] = 'Kund'; -$lng['ticket']['old_tickets'] = 'Ärende meddelanden'; -$lng['ticket']['search'] = 'Sök i arkivet'; -$lng['ticket']['nocustomer'] = 'Inget val'; -$lng['ticket']['archivesearch'] = 'Arkiv sökresultat'; -$lng['ticket']['noresults'] = 'Inget ärende funnet'; -$lng['ticket']['notmorethanxopentickets'] = 'På grund av spamhanteringen kan du inte ha mer än %s öppna ärenden'; -$lng['ticket']['supportstatus'] = 'Support-Status'; -$lng['ticket']['supportavailable'] = 'Våra supporttekniker tar nu gärna emot era supportärenden.'; -$lng['ticket']['supportnotavailable'] = 'Våra supporttekniker är inte tillgängliga just nu.'; -$lng['admin']['templates']['ticket'] = 'Informations E-post för supportärenden'; -$lng['admin']['templates']['SUBJECT'] = 'Ersatt med supportärendet rubrik'; -$lng['admin']['templates']['new_ticket_for_customer'] = 'Kundinformation som ärendet har skickat'; -$lng['admin']['templates']['new_ticket_by_customer'] = 'Admininformation för ett ärende öppnat av kund'; -$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admininformation för ett svar från kund'; -$lng['admin']['templates']['new_ticket_by_staff'] = 'Kundinformation för ett ärende öppnat av ledningen'; -$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Kundinformation för ett ärende besvarat av ledningen'; -$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nDitt supportärende med rubriken "{SUBJECT}" har skickats till supporten.\n\nVi meddelar dig när ditt ärende har blivit besvarat.\n\nMed vänliga hälsningar,\n SysCP'; -$lng['mails']['new_ticket_for_customer']['subject'] = 'Ditt supportärende har nu skickats'; -$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hej admin,\n\nEtt nytt supportärende med rubriken "{SUBJECT}" har nu skapats.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; -$lng['mails']['new_ticket_by_customer']['subject'] = 'Nytt supportärende skapat'; -$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hej admin,\n\nDitt supportärende "{SUBJECT}" har blivit besvarat an en kund.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; -$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Nytt svar för supportärendet'; -$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nEtt nytt supportärende har öppnats med rubriken "{SUBJECT}".\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; -$lng['mails']['new_ticket_by_staff']['subject'] = 'Nytt supportärede behandlat'; -$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nSupportärendet med rubriken "{SUBJECT}" har besvarats av vår personal.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; -$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Svar på ert supportärende'; -$lng['question']['ticket_reallyclose'] = 'Är du säker på att du vill stänga supportärendet "%s"?'; -$lng['question']['ticket_reallydelete'] = 'Är du säker på att du vill radera supportärendet "%s"?'; -$lng['question']['ticket_reallydeletecat'] = 'Är du säker på att du vill radera kategorin "%s"?'; -$lng['question']['ticket_reallyarchive'] = 'Är du säker på att du vill flytta supportärendet "%s" till arkivet?'; -$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; -$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; -$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; -$lng['error']['nomoreticketsavailable'] = 'Du har redan använt alla supportärenden som du fått tilldelade. Kontakta administratören om du behöver fler.'; -$lng['error']['nocustomerforticket'] = 'Det går inte att skapa ett supportärende utan kunder'; -$lng['error']['categoryhastickets'] = 'Denna kategori har fortfarande supportärenden.
Du måste radera dessa ärenden innan du kan radera denna kategori'; -$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; -$lng['admin']['ticketsettings'] = 'Supportärende inställningar'; -$lng['admin']['archivelastrun'] = 'Sista supportärende som arkiverats'; -$lng['serversettings']['ticket']['noreply_email']['title'] = 'Svara-Inte E-post adress'; -$lng['serversettings']['ticket']['noreply_email']['description'] = 'Avsändaradressen för support-ticket, exempel: inget-svar@syscp.se'; -$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Start av support-tid (hh:mm)'; -$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-tid, när supporten är tillgänglig'; -$lng['serversettings']['ticket']['worktime_end']['title'] = 'Slut på support-tid (hh:mm)'; -$lng['serversettings']['ticket']['worktime_end']['description'] = 'Slut-tid, när supporten inte längre är tillgänglig'; -$lng['serversettings']['ticket']['worktime_sat'] = 'Supporten har öppet på lördagar?'; -$lng['serversettings']['ticket']['worktime_sun'] = 'Supporten har öppet på söndagar?'; -$lng['serversettings']['ticket']['worktime_all']['title'] = 'Supporten är tillgänglig dygnet runt'; -$lng['serversettings']['ticket']['worktime_all']['description'] = 'Om du väljer "Ja" så kommer start och stopp tiderna att skrivas över'; -$lng['serversettings']['ticket']['archiving_days'] = 'Efter hur många dagar skall stängda tickets arkiveras?'; -$lng['customer']['tickets'] = 'Support ärenden'; - -// ADDED IN 1.2.18-svn4 - -$lng['admin']['domain_nocustomeraddingavailable'] = 'Det går inte att skapa en ny domän innan det finns mins en upplagd kund.'; -$lng['serversettings']['ticket']['enable'] = 'Tillåt användninga av ticketsystemet'; -$lng['serversettings']['ticket']['concurrentlyopen'] = 'Maximalt antal tickets som kan öppnas samtidigt?'; -$lng['error']['norepymailiswrong'] = 'Den här adressen "Noreply-address" är felaktig. Bara giltiga E-post adresser är tillåtna.'; -$lng['error']['tadminmailiswrong'] = 'Den här adressen "Ticketadmin-address" är felaktig. Bara giltiga E-post adresser är tillåtna.'; -$lng['ticket']['awaitingticketreply'] = 'Du har %s obesvarade support-ticket(s)'; - -// ADDED IN 1.2.18-svn5 - -$lng['serversettings']['ticket']['noreply_name'] = 'Supportärendes namn på E-postadressen'; - -// ADDED IN 1.2.19-svn1 - -$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'FCGI konfigurationskatalog'; -$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'I vilken katalog skall alla fcgi-konfigurationfiler lagras?'; -$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'FCGI temporärkatalog'; - -// ADDED IN 1.2.19-svn3 - -$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Återställ cykeln för använda supportärenden'; -$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Återställ kundens räknare för använda supportärenden. Vald cykel = 0'; -$lng['admin']['tickets']['daily'] = 'Dagligen'; -$lng['admin']['tickets']['weekly'] = 'Varje vecka'; -$lng['admin']['tickets']['monthly'] = 'Varje månad'; -$lng['admin']['tickets']['yearly'] = 'Varje år'; -$lng['error']['ticketresetcycleiswrong'] = 'Cykeln för återställning av supportärenden måste vara "Dagligen", "Varje vecka", "varje månad" or "varje år".'; - -// ADDED IN 1.2.19-svn4 - -$lng['menue']['traffic']['traffic'] = 'Trafik'; -$lng['menue']['traffic']['current'] = 'Nuvarande månad'; -$lng['traffic']['month'] = "Månad"; -$lng['traffic']['day'] = "Dag"; -$lng['traffic']['months'][1] = "Januari"; -$lng['traffic']['months'][2] = "Februari"; -$lng['traffic']['months'][3] = "Mars"; -$lng['traffic']['months'][4] = "April"; -$lng['traffic']['months'][5] = "Maj"; -$lng['traffic']['months'][6] = "Juni"; -$lng['traffic']['months'][7] = "Juli"; -$lng['traffic']['months'][8] = "Augusti"; -$lng['traffic']['months'][9] = "September"; -$lng['traffic']['months'][10] = "Oktober"; -$lng['traffic']['months'][11] = "November"; -$lng['traffic']['months'][12] = "December"; -$lng['traffic']['mb'] = "Trafik (MB)"; -$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; -$lng['traffic']['sumhttp'] = 'Summa HTTP-Trafik i'; -$lng['traffic']['sumftp'] = 'Summa FTP-Trafik i'; -$lng['traffic']['summail'] = 'Summa E-posttrafik i'; - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: swedish.lng.php 2724 2009-06-07 14:18:02Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = 'Staffan Starberg'; +$lng['panel']['edit'] = 'Ändra'; +$lng['panel']['delete'] = 'Radera'; +$lng['panel']['create'] = 'Skapa'; +$lng['panel']['save'] = 'Spara'; +$lng['panel']['yes'] = 'Ja'; +$lng['panel']['no'] = 'Nej'; +$lng['panel']['emptyfornochanges'] = 'Tomt fält = ingen ändring'; +$lng['panel']['emptyfordefault'] = 'Förvalt värde används om fältet lämnas tommt'; +$lng['panel']['path'] = 'Sökväg (Path)'; +$lng['panel']['toggle'] = 'Växla (Toggle)'; +$lng['panel']['next'] = 'nästa'; +$lng['panel']['dirsmissing'] = 'Kan inte hitta eller läsa katalogen!'; + +/** + * Login + */ + +$lng['login']['username'] = 'Användarnamn'; +$lng['login']['password'] = 'Lösenord'; +$lng['login']['language'] = 'Språk'; +$lng['login']['login'] = 'Logga in'; +$lng['login']['logout'] = 'Logga ut'; +$lng['login']['profile_lng'] = 'Profilspråk'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = 'Hemkatalog'; +$lng['customer']['name'] = 'Efternamn'; +$lng['customer']['firstname'] = 'Förnamn'; +$lng['customer']['company'] = 'Företag'; +$lng['customer']['street'] = 'Postadress'; +$lng['customer']['zipcode'] = 'Postnummer'; +$lng['customer']['city'] = 'Postort'; +$lng['customer']['phone'] = 'Telefon'; +$lng['customer']['fax'] = 'Fax'; +$lng['customer']['email'] = 'E-post'; +$lng['customer']['customernumber'] = 'Kundnummer'; +$lng['customer']['diskspace'] = 'Webb (MB)'; +$lng['customer']['traffic'] = 'Trafik (GB)'; +$lng['customer']['mysqls'] = 'SQL_DBas'; +$lng['customer']['emails'] = 'E-post_adresser'; +$lng['customer']['accounts'] = 'E-post_konton'; +$lng['customer']['forwarders'] = 'E-post_skicka_vidare'; +$lng['customer']['ftps'] = 'FTP_Kto'; +$lng['customer']['subdomains'] = 'Sub-Domäner'; +$lng['customer']['domains'] = 'Domäner'; +$lng['customer']['unlimited'] = 'Obegränsad'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = 'Huvudsidan'; +$lng['menue']['main']['changepassword'] = 'Ändra lösenord'; +$lng['menue']['main']['changelanguage'] = 'Ändra språk'; +$lng['menue']['email']['email'] = 'E-post'; +$lng['menue']['email']['emails'] = 'E-post'; +$lng['menue']['email']['webmail'] = 'WebMail'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = 'Databaser'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = 'Domäner'; +$lng['menue']['domains']['settings'] = 'Inställningar'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = 'Konton'; +$lng['menue']['ftp']['webftp'] = 'WebFTP'; +$lng['menue']['extras']['extras'] = 'Extras'; +$lng['menue']['extras']['directoryprotection'] = 'Katalog säkerhet'; +$lng['menue']['extras']['pathoptions'] = 'Inställningar sökväg'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = 'Kunddetaljer'; +$lng['index']['accountdetails'] = 'Kontodetaljer'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = 'Gammalt lösenord'; +$lng['changepassword']['new_password'] = 'Nytt lösenord'; +$lng['changepassword']['new_password_confirm'] = 'Nytt lösenord (verifiera)'; +$lng['changepassword']['new_password_ifnotempty'] = 'Nytt lösenord (Tomt fältet = inga ändringar)'; +$lng['changepassword']['also_change_ftp'] = ' Ändra även lösenord för huvud FTP kontot'; + +/** + * Domains + */ + +$lng['domains']['description'] = 'Här kan du skapa (sub-)domäner och ändra i dem.
Systemet behöver dock lite tid på sig att genomföra ändringarna.'; +$lng['domains']['domainsettings'] = 'Domäninställningar'; +$lng['domains']['domainname'] = 'Domännamn'; +$lng['domains']['subdomain_add'] = '[Skapa en ny subdomän]'; +$lng['domains']['subdomain_edit'] = 'Ändra (sub)domän'; +$lng['domains']['wildcarddomain'] = 'Skapa som ospecificerad domän (Create as wildcarddomain?)'; +$lng['domains']['aliasdomain'] = 'Alias for domän'; +$lng['domains']['noaliasdomain'] = '(inget alias)'; + +/** + * E-mails + */ + +$lng['emails']['description'] = 'Här kan du skapa eller ändra dina E-postadresser.
Ett konto är som en brevlåda utanför huset. Om någon skickar dig E-post kommer det att hamna i din brevlåda (ditt konto).

För att hämta din E-post så skall du använda följande inställningar i ditt E-postprogram: (Text i kursiv stil italics måste ändras till det som motsvaras av det du knappade in tidigare!)
Servernamn (Hostname): Domännamn (Domainname)
Användarnamn (Username): Konto namn (Account name) / E-postadress
Lösenord (Password): lösenordet som du valde'; +$lng['emails']['emailaddress'] = 'E-postadress'; +$lng['emails']['emails_add'] = '[Skapa en E-postadress]'; +$lng['emails']['emails_edit'] = 'Ändra E-postadressen'; +$lng['emails']['catchall'] = 'Maildump'; +$lng['emails']['iscatchall'] = 'Skapa en maildump?'; +$lng['emails']['account'] = 'Konto'; +$lng['emails']['account_add'] = 'Skapa konto'; +$lng['emails']['account_delete'] = 'Radera konto'; +$lng['emails']['from'] = 'Från'; +$lng['emails']['to'] = 'Till'; +$lng['emails']['forwarders'] = 'Skicka vidare:'; +$lng['emails']['forwarder_add'] = '[Skapa ny "skicka vidare"]'; + +/** + * FTP + */ + +$lng['ftp']['description'] = 'Här kan du skapa eller änra i dina FTP konton.
Ändringen genomförs omedelbart så man kan använda det nya/ändrade kontot direkt.'; +$lng['ftp']['account_add'] = '[Skapa ett nytt FTP konto]'; + +/** + * MySQL + */ + +$lng['mysql']['databasename'] = 'Användare/databasnamn'; +$lng['mysql']['databasedescription'] = 'Beskrivning av databasen'; +$lng['mysql']['database_create'] = '[Skapa en ny databas]'; + +/** + * Extras + */ + +$lng['extras']['description'] = 'Här kan du ändra övriga saker såsom katalogskydd mm.
Systemet behöver dock lite tid på sig att genomföra ändringarna.'; +$lng['extras']['directoryprotection_add'] = '[Skapa ett nytt katalogskydd]'; +$lng['extras']['view_directory'] = 'Visa kataloginnehåll'; +$lng['extras']['pathoptions_add'] = '[Skapa ny regel för sökvägar]'; +$lng['extras']['directory_browsing'] = 'Visning av katalogstruktur'; +$lng['extras']['pathoptions_edit'] = 'Ändra sökvägsinställningar'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = 'URL to ErrorDocument 404'; +$lng['extras']['errordocument403path'] = 'URL to ErrorDocument 403'; +$lng['extras']['errordocument500path'] = 'URL to ErrorDocument 500'; +$lng['extras']['errordocument401path'] = 'URL to ErrorDocument 401'; + +/** + * Errors + */ + +$lng['error']['error'] = 'Följande fel har uppstått'; +$lng['error']['directorymustexist'] = 'Katalogen %s måste finnas. Skapa den med ditt FTP program.'; +$lng['error']['filemustexist'] = 'Filen %s måste existera.'; +$lng['error']['allresourcesused'] = 'Du har redan skapt så många konton som du har tillstånd till.'; +$lng['error']['domains_cantdeletemaindomain'] = 'Du kan inte radera en domän som användes för E-post.'; +$lng['error']['domains_canteditdomain'] = 'Endast administratörer kan ändra denna domän.'; +$lng['error']['domains_cantdeletedomainwithemail'] = 'Du kan inte radera en domän som användes för E-post. Radera alla E-postadresser först'; +$lng['error']['firstdeleteallsubdomains'] = 'Du måste radera alla sub-domäner innan du kan skapa en maildump (wildcard domain).'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = 'Du har redan skapat en maildump för denna domän.'; +$lng['error']['ftp_cantdeletemainaccount'] = 'Det går inte att radera huvud FTP kontot för domänen'; +$lng['error']['login'] = 'Användarnamnet eller lösenordet var felaktigt, försök igen!'; +$lng['error']['login_blocked'] = 'Kontot har blivit avstängt på grund av för många felaktiga inloggningsförsök.
Försök igen om ' . $settings['login']['deactivatetime'] . ' sekunder.'; +$lng['error']['notallreqfieldsorerrors'] = 'Du har inte fyllt i alla fält eller så har du skrivit in något som inte accepteras.'; +$lng['error']['oldpasswordnotcorrect'] = 'Det gamla lösenordet är fel.'; +$lng['error']['youcantallocatemorethanyouhave'] = 'Du kan inte skapa fler resurser än du äger själv (You cannot allocate more resources than you own for yourself).'; +$lng['error']['mustbeurl'] = 'Du har inte skrivit in en korrekt url (e.g. http://somedomain.com/error404.htm)'; +$lng['error']['invalidpath'] = 'Du har inte valt en korrekt url (Kanske har du lagt till en katalogsäkerhet så att katalogerna inte kan visas?)'; +$lng['error']['stringisempty'] = 'Du måste skriva in något i fältet'; +$lng['error']['stringiswrong'] = 'Fel inatningsfält'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = 'New password and confirmation does not match'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'Domain\''; +$lng['error']['mydocumentroot'] = '\'Documentroot\''; +$lng['error']['loginnameexists'] = 'Login-Name %s är upptaget'; +$lng['error']['emailiswrong'] = 'E-post-Adressen "%s" innehåller ogiltiga tecken eller så är den inte komplett'; +$lng['error']['loginnameiswrong'] = 'Login-Namnet %s innehåller ogiltiga tecken'; +$lng['error']['userpathcombinationdupe'] = 'Användarnamnet och sökvägen tillsammans finns redan'; +$lng['error']['patherror'] = 'Generellt Fel! sökvägen till katalogen kan inte vara tom'; +$lng['error']['errordocpathdupe'] = 'Option för sökvägen %s finns redan'; +$lng['error']['adduserfirst'] = 'Skapa användaren först'; +$lng['error']['domainalreadyexists'] = 'Domänen %s ägs redan av en kund'; +$lng['error']['nolanguageselect'] = 'Inget språk är valt.'; +$lng['error']['nosubjectcreate'] = 'Du måste ha ett rubrik för denna E-postmall.'; +$lng['error']['nomailbodycreate'] = 'Du måste ha skrivit in en E-post text för denna mall.'; +$lng['error']['templatenotfound'] = 'E-postmallen hittades inte.'; +$lng['error']['alltemplatesdefined'] = 'Du kan inte skapa flera mallar, alla språk finns redan.'; +$lng['error']['wwwnotallowed'] = 'www är inte tillåtet att använda för subdomäner.'; +$lng['error']['subdomainiswrong'] = 'Subdomänen %s innehåller ogiltiga tecken.'; +$lng['error']['domaincantbeempty'] = 'Fältet för domännamn får inte vara tommt.'; +$lng['error']['domainexistalready'] = 'Domänen %s finns redan.'; +$lng['error']['domainisaliasorothercustomer'] = 'Den valda domänen är antingen en aliasdomän eller så ägs den redan av en annan kund.'; +$lng['error']['emailexistalready'] = 'E-postadressen %s finns redan.'; +$lng['error']['maindomainnonexist'] = 'Huvuddomänen %s finns inte.'; +$lng['error']['destinationnonexist'] = 'Skapa en forwarder i fältet \'Destination\'.'; +$lng['error']['destinationalreadyexistasmail'] = 'Denna forwarder %s, finns redan som aktiv E-postadress.'; +$lng['error']['destinationalreadyexist'] = 'Du har redan skapat en forwarder till %s .'; +$lng['error']['destinationiswrong'] = 'Denna forwarder: %s innehåller ogiltiga tecken eller så är den inte komplett adress.'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = 'Säkerhetsfråga'; +$lng['question']['admin_customer_reallydelete'] = 'Är du säker på att du vill radera kunden %s? Om du väljer att radera går det inte att ångra sig efteråt!'; +$lng['question']['admin_domain_reallydelete'] = 'Är du riktigt säker på att du vill radera domänen %s?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = 'Är du riktigt säker på att du vill avaktivera säkerhetsinställningarna (OpenBasedir and/or SafeMode)?'; +$lng['question']['admin_admin_reallydelete'] = 'Är du riktigt säker på att du vill radera adminkontot %s? Alla kunder och domäner kommer att flyttas till ditt konto istället.'; +$lng['question']['admin_template_reallydelete'] = 'Är du riktigt säker på att du vill radera mallen \'%s\'?'; +$lng['question']['domains_reallydelete'] = 'Är du riktigt säker på att du vill radera domänen %s?'; +$lng['question']['email_reallydelete'] = 'Är du riktigt säker på att du vill radera E-postadressen %s?'; +$lng['question']['email_reallydelete_account'] = 'Är du riktigt säker på att du vill radera E-postkontot %s?'; +$lng['question']['email_reallydelete_forwarder'] = 'Är du riktigt säker på att du vill radera forwardern till %s?'; +$lng['question']['extras_reallydelete'] = 'Är du riktigt säker på att du vill radera katalogsäkerheten (directory protection) för %s?'; +$lng['question']['extras_reallydelete_pathoptions'] = 'Är du riktigt säker på att du vill radera katalogalternativen (path options) för %s?'; +$lng['question']['ftp_reallydelete'] = 'Är du riktigt säker på att du vill radera FTP kontot %s?'; +$lng['question']['mysql_reallydelete'] = 'Är du riktigt säker på att du vill radera databasen %s? Om du väljer att radera går det inte att ångra sig efteråt!'; +$lng['question']['admin_configs_reallyrebuild'] = 'Är du riktigt säker på att du vill skapa nya konfigurationsfiler för apache och bind?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = 'Hej,\n\nDitt E-postkonto {EMAIL}\nhar nu skapats.\n\nDetta är ett automatgenererat E-post meddelande\n, Det går därför inte att svara på detta meddelande!\n'; +$lng['mails']['pop_success']['subject'] = 'E-postkontot är nu skapat'; +$lng['mails']['createcustomer']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nHär kommer kontoinformationen för ditt konto:\n\nAnvändarnamn (Username): {USERNAME}\nLösenord (Password): {PASSWORD}\n\n'; +$lng['mails']['createcustomer']['subject'] = 'Kontoinformation'; + +/** + * Admin + */ + +$lng['admin']['overview'] = 'Översikt'; +$lng['admin']['ressourcedetails'] = 'Använda resurser'; +$lng['admin']['systemdetails'] = 'System Detaljer'; +$lng['admin']['syscpdetails'] = 'SysCP Detaljer'; +$lng['admin']['installedversion'] = 'Installerad version av SysCP'; +$lng['admin']['latestversion'] = 'Senaste version av SysCP'; +$lng['admin']['lookfornewversion']['clickhere'] = '[Sök senaste verison av SysCP via Internet]'; +$lng['admin']['lookfornewversion']['error'] = 'Fel vid läsning, kontrollera uppkopplingen mot SysCP'; +$lng['admin']['resources'] = 'Resurser'; +$lng['admin']['customer'] = 'Kunder'; +$lng['admin']['customers'] = 'Kunder'; +$lng['admin']['customer_add'] = '[Skapa en ny kund]'; +$lng['admin']['customer_edit'] = 'Ändra ny kund'; +$lng['admin']['domains'] = 'Domäner'; +$lng['admin']['domain_add'] = '[Skapa en ny domän]'; +$lng['admin']['domain_edit'] = 'Tillåt ändring av domänen'; +$lng['admin']['subdomainforemail'] = 'Sub-domän som E-postdomän (Subdomains as emaildomains)'; +$lng['admin']['admin'] = 'Admin'; +$lng['admin']['admins'] = 'Admins'; +$lng['admin']['admin_add'] = '[Skapa en ny admin]'; +$lng['admin']['admin_edit'] = 'Ändra admin'; +$lng['admin']['customers_see_all'] = 'Kan se alla kunder?'; +$lng['admin']['domains_see_all'] = 'Kan se alla domäner?'; +$lng['admin']['change_serversettings'] = 'Kan ändra serverinställningar?'; +$lng['admin']['server'] = 'Server'; +$lng['admin']['serversettings'] = 'Inställningar'; +$lng['admin']['rebuildconf'] = 'Uppdatera konfig filer'; +$lng['admin']['stdsubdomain'] = 'Standard subdomän'; +$lng['admin']['stdsubdomain_add'] = '[Skapa en ny standard subdomän]'; +$lng['admin']['phpenabled'] = 'PHP påslagen'; +$lng['admin']['deactivated'] = 'Inaktiv'; +$lng['admin']['deactivated_user'] = 'Avaktivera användare'; +$lng['admin']['sendpassword'] = 'Skicka lösenord'; +$lng['admin']['ownvhostsettings'] = 'Egna vHost-Inställningar'; +$lng['admin']['configfiles']['serverconfiguration'] = 'Konfiguration'; +$lng['admin']['configfiles']['files'] = 'Konfigurationsfiler: Ändra eller skapa följande filer med
följande innehåll om de inte finns redan.
Notera: MySQL-lösenordet har inte ändrats på grund av säkerhetsskäl.
Du måste själv ändra lösenordet "MYSQL_PASSWORD" på egen hand. Om du glömt bort ditt MySQL-password
så kan du hitta det här "lib/userdata.inc.php".'; +$lng['admin']['configfiles']['commands'] = 'Kommandon: Kör följande kommandon i ett terminalfönster.'; +$lng['admin']['configfiles']['restart'] = 'Omstart: Kör följande kommandon i ett terminalfönster för att ladda in den nya konfigurationen.'; +$lng['admin']['templates']['templates'] = 'Mallar'; +$lng['admin']['templates']['template_add'] = '[Lägg till en ny mall]'; +$lng['admin']['templates']['template_edit'] = 'Ändra en befintlig mall'; +$lng['admin']['templates']['action'] = 'Action'; +$lng['admin']['templates']['email'] = 'E-Post'; +$lng['admin']['templates']['subject'] = 'Rubrik (subjekt)'; +$lng['admin']['templates']['mailbody'] = 'E-Postinnehåll (Mail body)'; +$lng['admin']['templates']['createcustomer'] = 'E-Post till nya kunder (Välkommen)'; +$lng['admin']['templates']['pop_success'] = 'E-Post för nya konton (Välkommen)'; +$lng['admin']['templates']['template_replace_vars'] = 'Variabler som kan ändras i mallen:'; +$lng['admin']['templates']['FIRSTNAME'] = 'Ändra till kundens förnamn.'; +$lng['admin']['templates']['NAME'] = 'Ändra till kundens efternamn.'; +$lng['admin']['templates']['USERNAME'] = 'Ändra till kundens kontonamns användarnamn.'; +$lng['admin']['templates']['PASSWORD'] = 'Ändra till kundens kontonamns lösenord.'; +$lng['admin']['templates']['EMAIL'] = 'Ändra till adressen för POP3/IMAP kontot.'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = 'Sessionen har avslutats för att den tog för lång tid att utföra (session Timeout)'; +$lng['serversettings']['session_timeout']['description'] = 'Tiden (i sekunder) som användaren får vara inaktiv innan han måste logga in igen är (seconds)?'; +$lng['serversettings']['accountprefix']['title'] = 'Kund ID (Customer prefix)'; +$lng['serversettings']['accountprefix']['description'] = 'Vilket prefix skall användas till ett kundkonto?'; +$lng['serversettings']['mysqlprefix']['title'] = 'SQL ID (SQL Prefix)'; +$lng['serversettings']['mysqlprefix']['description'] = 'Vilket prefix skall användas till mysql?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP ID (FTP Prefix)'; +$lng['serversettings']['ftpprefix']['description'] = 'Vilket prefix skall användas till ftp?'; +$lng['serversettings']['documentroot_prefix']['title'] = 'Hemkatalog'; +$lng['serversettings']['documentroot_prefix']['description'] = 'Vilken sökväg skall det vara till hemkatalogen?'; +$lng['serversettings']['logfiles_directory']['title'] = 'Loggfilernas hemkatalog (Logfiles directory)'; +$lng['serversettings']['logfiles_directory']['description'] = 'Vilken sökväg skall det vara till loggfilernas hemkatalog?'; +$lng['serversettings']['ipaddress']['title'] = 'IP-Adress'; +$lng['serversettings']['ipaddress']['description'] = 'Vilken IP-adress har denna server?'; +$lng['serversettings']['hostname']['title'] = 'Datornamn (Hostname)'; +$lng['serversettings']['hostname']['description'] = 'Villket Datornamn (Hostname) har denna server?'; +$lng['serversettings']['apachereload_command']['title'] = 'Ladda om Apache kommandot (Apache reload)'; +$lng['serversettings']['apachereload_command']['description'] = 'Ange sökvägen till programmet som laddar om Apache (reload apache) konfigurationsfiler?'; +$lng['serversettings']['bindconf_directory']['title'] = 'Bind konfigurationskatalog (Bind config directory)'; +$lng['serversettings']['bindconf_directory']['description'] = 'Vilken sökväg skall det vara till bind:s konfigurationsfiler?'; +$lng['serversettings']['bindreload_command']['title'] = 'Ange sökvägen till programmet som laddar om Bind (reload bind) konfigurationsfiler?'; +$lng['serversettings']['bindreload_command']['description'] = 'Ange sökvägen till programmet som laddar om Bind (reload bind) konfigurationsfiler?'; +$lng['serversettings']['binddefaultzone']['title'] = 'Bind standard zone'; +$lng['serversettings']['binddefaultzone']['description'] = 'Vad är namnet på standard zonen?'; +$lng['serversettings']['vmail_uid']['title'] = 'Mails-UID'; +$lng['serversettings']['vmail_uid']['description'] = 'Vilket användarID (UserID) ska E-posten ha?'; +$lng['serversettings']['vmail_gid']['title'] = 'Mails-GID'; +$lng['serversettings']['vmail_gid']['description'] = 'Vilket gruppID (GroupID) ska E-posten ha?'; +$lng['serversettings']['vmail_homedir']['title'] = 'E-post hemkatalog'; +$lng['serversettings']['vmail_homedir']['description'] = 'I vilken katalog skall E-posten sparas?'; +$lng['serversettings']['adminmail']['title'] = 'Avsändare'; +$lng['serversettings']['adminmail']['description'] = 'Vilken avsändaradress skall E-post från admin panelen ha?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin URL'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'Vilken URL är det till phpMyAdmin? (Måste börja med http(s)://)'; +$lng['serversettings']['webmail_url']['title'] = 'WebMail URL'; +$lng['serversettings']['webmail_url']['description'] = 'Vilken URL är det till WebMail? (Måste börja med http(s)://)'; +$lng['serversettings']['webftp_url']['title'] = 'WebFTP URL'; +$lng['serversettings']['webftp_url']['description'] = 'Vilken URL är det till WebFTP? (Måste börja med http(s)://)'; +$lng['serversettings']['language']['description'] = 'Vilket språk skall användas som standardspråk?'; +$lng['serversettings']['maxloginattempts']['title'] = 'Max antal Login försök'; +$lng['serversettings']['maxloginattempts']['description'] = 'Maximalt antal inloggningsförsök innan kontot stängs av.'; +$lng['serversettings']['deactivatetime']['title'] = 'Avstängningstid'; +$lng['serversettings']['deactivatetime']['description'] = 'Tid (sec.) som kontot stängs av efter för många felaktiga försök.'; +$lng['serversettings']['pathedit']['title'] = 'Typ av (path input)'; +$lng['serversettings']['pathedit']['description'] = 'Skall en sökväg väljas i en rullist eller matas in för hand?'; +$lng['serversettings']['nameservers']['title'] = 'Nameservers'; +$lng['serversettings']['nameservers']['description'] = 'En kommaseparerad lista med namnet (hostname) på alla DNS:er. Den första blir den första som söks (primary).'; +$lng['serversettings']['mxservers']['title'] = 'MX servers'; +$lng['serversettings']['mxservers']['description'] = 'En kommaseparerad lista med nummer och namn separerade men mellanslag (ex. \'10 mx.example.com\') innehåller mx servrarna.'; + +/** + * CHANGED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['mysql']['description'] = 'Här ändras eller skapas MySQL-Databaser.
Ändringen sker omedelbart och databasen kan användas direkt.
I menyn på vänster sida finns verktyget phpMyAdmin med vilket man enkelt kan ändra i sin databas.

För att använda databasen i dina egna php-scripts använd följande inställningar: (Data med kursiv stil italics måste ändras till det du matat in!)
Servernamn (Hostname):
Användarnamn (Username): Databsnamn (Databasename)
Lösenord (Password): Lösenordet som du har valt
Databas (Database): Databasnamn (Databasename)'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = 'Konfigurerinsfilerna skapades sist'; +$lng['serversettings']['paging']['title'] = 'Antal rader per sida'; +$lng['serversettings']['paging']['description'] = 'Hur många rader skall det vara på en sida? (0 = Stäng av sidbrytning)'; +$lng['error']['ipstillhasdomains'] = 'IP/Port kombinationen som du vill radera har fortfarande domäner anslutna till sig, Flytta dessa till någon annan IP/Port kombination innan du raderar denna IP/Port kombination.'; +$lng['error']['cantdeletedefaultip'] = 'Det går inte att ta bort den förvalda återförsäljarens IP/Port kombination, Välj en annan IP/Port kombination som förval för återförsäljare innan du raderar denna IP/Port kombination.'; +$lng['error']['cantdeletesystemip'] = 'Det går inte att radera den sista system IP:n, Antingen skapar man en ny IP/Port kombination för system IP eller så ändrar man system IP:n.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'Port\''; +$lng['error']['myipdefault'] = 'Man måste välja en IP/Port kombination som skall bli standardvärdet.'; +$lng['error']['myipnotdouble'] = 'Denna IP/Port kombination finns redan.'; +$lng['question']['admin_ip_reallydelete'] = 'Är du säker på att du vill radera IP addressen %s?'; +$lng['admin']['ipsandports']['ipsandports'] = 'IPs and Ports'; +$lng['admin']['ipsandports']['add'] = '[Lägg till IP/Port]'; +$lng['admin']['ipsandports']['edit'] = 'Ändra IP/Port'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/Port'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = 'Port'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = 'Man kan inte ändra den senaste system IP-adressen. Skapa en helt ny IP/Port kombination för system IP:n eller ändra system IP-adressen.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = 'Dokumentkatalogen för denna domän inte kommer att ligga under kundkatalogen, är du säker på att du vill ändra detta?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = 'Avstängd'; +$lng['domain']['openbasedirpath'] = 'OpenBasedir-path'; +$lng['domain']['docroot'] = 'Sökvägen från ovanstående fält'; +$lng['domain']['homedir'] = 'Hemkatalog'; +$lng['admin']['valuemandatory'] = 'Denna ruta måste fyllas i'; +$lng['admin']['valuemandatorycompany'] = 'Fyll i "förnamn" och "efternamn" eller "företagsnamn"'; +$lng['menue']['main']['username'] = 'Inloggad som: '; +$lng['panel']['urloverridespath'] = 'URL (skriver över sökvägen)'; +$lng['panel']['pathorurl'] = 'Sökväg eller URL'; +$lng['error']['sessiontimeoutiswrong'] = 'Bara siffror "Session Timeout" är tillåtna.'; +$lng['error']['maxloginattemptsiswrong'] = 'Bara siffror "Max Login Attempts" är tillåtna.'; +$lng['error']['deactivatetimiswrong'] = 'Bara siffror "Deactivate Time" är tillåtna.'; +$lng['error']['accountprefixiswrong'] = 'Det här "Customerprefix" är fel.'; +$lng['error']['mysqlprefixiswrong'] = 'Det här "SQL Prefix" är fel.'; +$lng['error']['ftpprefixiswrong'] = 'Det här "FTP Prefix" är fel.'; +$lng['error']['ipiswrong'] = 'Den här "IP-Address" är fel. Endast en giltig IP-adress är tillåten.'; +$lng['error']['vmailuidiswrong'] = 'Den här "Mails-uid" är fel. Endast numerisk UID är tillåtenis allowed.'; +$lng['error']['vmailgidiswrong'] = 'Den här "Mails-gid" är fel. Endast numerisk GID är tillåtenis allowed.'; +$lng['error']['adminmailiswrong'] = 'Den här "Sender-address" är fel. Endast en giltig E-postadress är tillåten.'; +$lng['error']['pagingiswrong'] = 'Den här "Entries per Page"-värdet är fel. Endast siffror är tillåtna.'; +$lng['error']['phpmyadminiswrong'] = 'Den här phpMyAdmin-link är inte en giltig länk.'; +$lng['error']['webmailiswrong'] = 'Den här WebMail-link är inte en giltig länk.'; +$lng['error']['webftpiswrong'] = 'Den här WebFTP-link är inte en giltig länk.'; +$lng['domains']['hasaliasdomains'] = 'Domänen har redan alias'; +$lng['serversettings']['defaultip']['title'] = 'Förvald IP/Port'; +$lng['serversettings']['defaultip']['description'] = 'Vilken är den förvalda IP/Port kombinationen?'; +$lng['domains']['statstics'] = 'Användarstatistik'; +$lng['panel']['ascending'] = 'Stigande'; +$lng['panel']['decending'] = 'Fallande'; +$lng['panel']['search'] = 'Sök'; +$lng['panel']['used'] = 'använd'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = 'Översättare'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = 'Värdet för fältet "%s" har inte rätt format.'; + +// ADDED IN 1.2.15-rc1 + +$lng['admin']['serversoftware'] = 'Webserver version'; +$lng['admin']['phpversion'] = 'PHP-Version'; +$lng['admin']['phpmemorylimit'] = 'PHP-Minnesgräns'; +$lng['admin']['mysqlserverversion'] = 'MySQL Server Version'; +$lng['admin']['mysqlclientversion'] = 'MySQL Klient Version'; +$lng['admin']['webserverinterface'] = 'Webserver Interface'; +$lng['domains']['isassigneddomain'] = 'Tilldelad domän '; +$lng['serversettings']['phpappendopenbasedir']['title'] = 'Sökväg att lägga till OpenBasedir'; +$lng['serversettings']['phpappendopenbasedir']['description'] = 'Dessa sökvägar (separerade med kolon) kommer att läggas till OpenBasedir-statement i alla vhost-container.'; + +// CHANGED IN 1.2.15-rc1 + +$lng['error']['loginnameissystemaccount'] = 'Det går inte att skapa ett konto som liknar ett systemkonto (Om det till exempel börjar med "%s"). Vlj ett annat kontonamn.'; +$lng['error']['youcantdeleteyourself'] = 'Av säkerhetsskäl går inte att redera ditt eget konto.'; +$lng['error']['youcanteditallfieldsofyourself'] = 'Notera: Av säkerhetsskäl går det inte att ändra ditt eget konto.'; + +// ADDED IN 1.2.16-svn1 + +$lng['serversettings']['natsorting']['title'] = 'Använd mänsklig sortertering i listvisning'; +$lng['serversettings']['natsorting']['description'] = 'Sorterar listan så här web1 -> web2 -> web11 istället för web1 -> web11 -> web2.'; + +// ADDED IN 1.2.16-svn2 + +$lng['serversettings']['deactivateddocroot']['title'] = 'Dokumentroot för avstängda användare'; +$lng['serversettings']['deactivateddocroot']['description'] = 'När en användare är avstängd kommer denna sökväg att användas som dokumentroot. Lämna fältet tommt om du inte vill skapa någon vhost.'; + +// ADDED IN 1.2.16-svn4 + +$lng['panel']['reset'] = 'Avbryt ändringarna'; +$lng['admin']['accountsettings'] = 'Kontoinställningar'; +$lng['admin']['panelsettings'] = 'Panelinställningar'; +$lng['admin']['systemsettings'] = 'Systeminställningar'; +$lng['admin']['webserversettings'] = 'Webserverinställningar'; +$lng['admin']['mailserversettings'] = 'E-postserverinställningar'; +$lng['admin']['nameserversettings'] = 'Namnserverinställningar'; +$lng['admin']['updatecounters'] = 'Uppdatera status'; +$lng['question']['admin_counters_reallyupdate'] = 'Vill du uppdatera alla statusberäkningar för kunder och admins?'; +$lng['panel']['pathDescription'] = 'Katalogen kommer att skapas om den inte redan finns.'; + +// ADDED IN 1.2.16-svn6 + +$lng['mails']['trafficninetypercent']['mailbody'] = 'Varning {NAME},\n\nDu har nu använt {TRAFFICUSED} MB av ditt tillgängliga {TRAFFIC} MB för trafik.\nDetta är mer än 90%.\n\nHälsningar, SysCP team'; +$lng['mails']['trafficninetypercent']['subject'] = 'Du är på väg att nå din tillåtna trafikgräns'; +$lng['admin']['templates']['trafficninetypercent'] = 'Meddelande till kund när mer än nittio procent av trafiken utnyttjas'; +$lng['admin']['templates']['TRAFFIC'] = 'Ersatt med trafikbegrnsningen som var tilldelad till kunden.'; +$lng['admin']['templates']['TRAFFICUSED'] = 'Ersatt med trafikbegrnsningen som var överskriden av kunden.'; + +// ADDED IN 1.2.16-svn7 + +$lng['admin']['subcanemaildomain']['never'] = 'Aldrig'; +$lng['admin']['subcanemaildomain']['choosableno'] = 'Valbar, standardvärdet är Nej'; +$lng['admin']['subcanemaildomain']['choosableyes'] = 'Valbar, standardvärdet är Ja'; +$lng['admin']['subcanemaildomain']['always'] = 'Alltid'; +$lng['changepassword']['also_change_webalizer'] = ' Ändra även lösenord för webalizer statistik'; + +// ADDED IN 1.2.16-svn8 + +$lng['serversettings']['mailpwcleartext']['title'] = 'Spara även lösenord till E-postkonton okrypterade i databassen'; +$lng['serversettings']['mailpwcleartext']['description'] = 'Om du valt Ja så kommer alla lösenord att sparas okrypterade (klartext, fullt läsbara för alla som har rättigheter till databasen) i tabellen mail_users-table. Aktivera detta endast om du är säker på vad du gör!'; +$lng['serversettings']['mailpwcleartext']['removelink'] = 'Klicka här för att radera alla okrypterade lösenord från tabellen.'; +$lng['question']['admin_cleartextmailpws_reallywipe'] = 'Är du säker på att du vill radera alla okrupterade lösenord från tabellen mail_users? Du kan INTE ändra dig efteråt!'; +$lng['admin']['configfiles']['overview'] = 'Översikt'; +$lng['admin']['configfiles']['wizard'] = 'Guide'; +$lng['admin']['configfiles']['distribution'] = 'Distribution'; +$lng['admin']['configfiles']['service'] = 'Service'; +$lng['admin']['configfiles']['daemon'] = 'Daemon'; +$lng['admin']['configfiles']['http'] = 'Webserver (HTTP)'; +$lng['admin']['configfiles']['dns'] = 'Namnserver (DNS)'; +$lng['admin']['configfiles']['mail'] = 'E-postserver (POP3/IMAP)'; +$lng['admin']['configfiles']['smtp'] = 'E-postserver (SMTP)'; +$lng['admin']['configfiles']['ftp'] = 'FTP-Server'; +$lng['admin']['configfiles']['etc'] = 'Others (System)'; +$lng['admin']['configfiles']['choosedistribution'] = '-- Choose a distribution --'; +$lng['admin']['configfiles']['chooseservice'] = '-- Choose a service --'; +$lng['admin']['configfiles']['choosedaemon'] = '-- Choose a daemon --'; +$lng['admin']['trafficlastrun'] = 'Senaste trafikberäkningen gjordes'; + +// ADDED IN 1.2.16-svn10 + +$lng['serversettings']['ftpdomain']['title'] = 'FTP konton @domain'; +$lng['serversettings']['ftpdomain']['description'] = 'Kunder kan skapa Ftp accounts user@customerdomain?'; +$lng['panel']['back'] = 'Tillbaka'; + +// ADDED IN 1.2.16-svn12 + +$lng['serversettings']['mod_log_sql']['title'] = 'Tillfälligt spara loggfiler i databasen'; +$lng['serversettings']['mod_log_sql']['description'] = 'Använd mod_log_sql för att spara webfrågor tillfälligt
Detta behöver en special apache-configuration!'; +$lng['serversettings']['mod_fcgid']['title'] = 'Inkludera PHP via mod_fcgid/suexec'; +$lng['serversettings']['mod_fcgid']['description'] = 'Använd mod_fcgid/suexec/libnss_mysql för att köra PHP med tillhörande användarkonto.
Denna inställning behöver en speciell apache-konfiguration!'; +$lng['serversettings']['sendalternativemail']['title'] = 'Använd en alternativ E-postadress'; +$lng['serversettings']['sendalternativemail']['description'] = 'Skicka lösenord med E-post till adressen under email-account-creation'; +$lng['emails']['alternative_emailaddress'] = 'Alternative e-mail-address'; +$lng['mails']['pop_success_alternative']['mailbody'] = 'Hej,\n\nditt E-postkonto {EMAIL}\nhar ny skapats.\nDitt lösenord är {PASSWORD}.\n\nDetta är ett automatgenererat E-postmeddelande som det INTE går att svara på!\n\nLycka till önskar, SysCP'; +$lng['mails']['pop_success_alternative']['subject'] = 'E-postkontot är nu skapat'; +$lng['admin']['templates']['pop_success_alternative'] = 'Välkommstmeddelande för nya E-post konton som skickas till den alternativa adressen'; +$lng['admin']['templates']['EMAIL_PASSWORD'] = 'Ersatt med POP3/IMAP kontots lösenord.'; + +// ADDED IN 1.2.16-svn13 + +$lng['error']['documentrootexists'] = 'Katalogen "%s" finns redan hos den här kunden. Radera detta först innan kunden skapas igen.'; + +// ADDED IN 1.2.16-svn14 + +$lng['serversettings']['apacheconf_vhost']['title'] = 'Apache vhost konfiguration fil/katalognamn'; +$lng['serversettings']['apacheconf_vhost']['description'] = 'Var skall vhost konfigurationen sparas? Det går att specificera alla vhost i en fil eller en katalog där alla filerna ligger (varje vhost i sin egen fil).'; +$lng['serversettings']['apacheconf_diroptions']['title'] = 'Apache diroptions konfiguration fil/katalognamn'; +$lng['serversettings']['apacheconf_diroptions']['description'] = 'Var skall diroptions konfigurationen sparas? Det går att specificera alla diroptions i en fil eller en katalog där alla filerna ligger (varje diroptions i sin egen fil).'; +$lng['serversettings']['apacheconf_htpasswddir']['title'] = 'Apache htpasswd katalognamn'; +$lng['serversettings']['apacheconf_htpasswddir']['description'] = 'Var skall htpasswd konfigurationen för katalogsäkerheten?'; + +// ADDED IN 1.2.16-svn15 + +$lng['error']['formtokencompromised'] = 'Den säkra anslutningen till SysCP har avslutats och du har av säkerhetsskäl automatiskt loggats ur.'; +$lng['serversettings']['mysql_access_host']['title'] = 'MySQL-Access-Hosts'; +$lng['serversettings']['mysql_access_host']['description'] = 'En kommaseparerad lista med datornamn som tillåts att kontakta MySQL servern.'; + +// ADDED IN 1.2.18-svn1 + +$lng['admin']['ipsandports']['create_listen_statement'] = 'Skapa "Listen statement"'; +$lng['admin']['ipsandports']['create_namevirtualhost_statement'] = 'Skapa NameVirtualHost statement'; +$lng['admin']['ipsandports']['create_vhostcontainer'] = 'Skapa vHost-Container'; +$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement'] = 'Skapa ServerName statement i vHost-Container'; + +// ADDED IN 1.2.18-svn2 + +$lng['admin']['webalizersettings'] = 'Webalizer inställningar'; +$lng['admin']['webalizer']['normal'] = 'Normal'; +$lng['admin']['webalizer']['quiet'] = 'Tyst'; +$lng['admin']['webalizer']['veryquiet'] = 'Väldigt tyst'; +$lng['serversettings']['webalizer_quiet']['title'] = 'Webalizer output'; +$lng['serversettings']['webalizer_quiet']['description'] = 'Verbosity of the webalizer-program'; + +// ADDED IN 1.2.18-svn3 + +$lng['ticket']['admin_email'] = 'root@localhost'; +$lng['ticket']['noreply_email'] = 'tickets@syscp'; +$lng['admin']['ticketsystem'] = 'Support'; +$lng['menue']['ticket']['ticket'] = 'Supportärenden'; +$lng['menue']['ticket']['categories'] = 'Kategorier'; +$lng['menue']['ticket']['archive'] = 'Arkivet'; +$lng['ticket']['description'] = 'Skriv en beskrivning av ärendet här!'; +$lng['ticket']['ticket_new'] = '[Skapa ett nytt ärende]'; +$lng['ticket']['ticket_reply'] = 'Svara ärende'; +$lng['ticket']['ticket_reopen'] = 'Återöppna ärende'; +$lng['ticket']['ticket_newcateory'] = '[Skapa ny kategori]'; +$lng['ticket']['ticket_editcateory'] = 'Ändra kategori'; +$lng['ticket']['ticket_view'] = 'View ticketcourse'; +$lng['ticket']['ticketcount'] = 'Ärendenummer'; +$lng['ticket']['ticket_answers'] = 'Svar'; +$lng['ticket']['lastchange'] = 'Senaste ändring'; +$lng['ticket']['subject'] = 'Rubrik'; +$lng['ticket']['status'] = 'Status'; +$lng['ticket']['lastreplier'] = 'Ägare'; +$lng['ticket']['priority'] = 'Prioritet'; +$lng['ticket']['low'] = 'Låg'; +$lng['ticket']['normal'] = 'Normal'; +$lng['ticket']['high'] = 'Hög'; +$lng['ticket']['unf_low'] = 'Låg'; +$lng['ticket']['unf_normal'] = 'Normal'; +$lng['ticket']['unf_high'] = 'Hög'; +$lng['ticket']['lastchange'] = 'Ändrad'; +$lng['ticket']['lastchange_from'] = 'Från datum (dd.mm.yyyy)'; +$lng['ticket']['lastchange_to'] = 'Till datum (dd.mm.yyyy)'; +$lng['ticket']['category'] = 'Kategori'; +$lng['ticket']['no_cat'] = 'None'; +$lng['ticket']['message'] = 'Meddeland'; +$lng['ticket']['show'] = 'Visa'; +$lng['ticket']['answer'] = 'Svara'; +$lng['ticket']['close'] = 'Stäng'; +$lng['ticket']['reopen'] = 'Öppna igen'; +$lng['ticket']['archive'] = 'Arkivera'; +$lng['ticket']['ticket_delete'] = 'Radera ett ärende'; +$lng['ticket']['lastarchived'] = 'Recently archived tickets'; +$lng['ticket']['archivedtime'] = 'Arkiverad'; +$lng['ticket']['open'] = 'Öppnad'; +$lng['ticket']['wait_reply'] = 'Väntar på svar'; +$lng['ticket']['replied'] = 'Besvarad'; +$lng['ticket']['closed'] = 'Stängd'; +$lng['ticket']['staff'] = 'Staff'; +$lng['ticket']['customer'] = 'Kund'; +$lng['ticket']['old_tickets'] = 'Ärende meddelanden'; +$lng['ticket']['search'] = 'Sök i arkivet'; +$lng['ticket']['nocustomer'] = 'Inget val'; +$lng['ticket']['archivesearch'] = 'Arkiv sökresultat'; +$lng['ticket']['noresults'] = 'Inget ärende funnet'; +$lng['ticket']['notmorethanxopentickets'] = 'På grund av spamhanteringen kan du inte ha mer än %s öppna ärenden'; +$lng['ticket']['supportstatus'] = 'Support-Status'; +$lng['ticket']['supportavailable'] = 'Våra supporttekniker tar nu gärna emot era supportärenden.'; +$lng['ticket']['supportnotavailable'] = 'Våra supporttekniker är inte tillgängliga just nu.'; +$lng['admin']['templates']['ticket'] = 'Informations E-post för supportärenden'; +$lng['admin']['templates']['SUBJECT'] = 'Ersatt med supportärendet rubrik'; +$lng['admin']['templates']['new_ticket_for_customer'] = 'Kundinformation som ärendet har skickat'; +$lng['admin']['templates']['new_ticket_by_customer'] = 'Admininformation för ett ärende öppnat av kund'; +$lng['admin']['templates']['new_reply_ticket_by_customer'] = 'Admininformation för ett svar från kund'; +$lng['admin']['templates']['new_ticket_by_staff'] = 'Kundinformation för ett ärende öppnat av ledningen'; +$lng['admin']['templates']['new_reply_ticket_by_staff'] = 'Kundinformation för ett ärende besvarat av ledningen'; +$lng['mails']['new_ticket_for_customer']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nDitt supportärende med rubriken "{SUBJECT}" har skickats till supporten.\n\nVi meddelar dig när ditt ärende har blivit besvarat.\n\nMed vänliga hälsningar,\n SysCP'; +$lng['mails']['new_ticket_for_customer']['subject'] = 'Ditt supportärende har nu skickats'; +$lng['mails']['new_ticket_by_customer']['mailbody'] = 'Hej admin,\n\nEtt nytt supportärende med rubriken "{SUBJECT}" har nu skapats.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; +$lng['mails']['new_ticket_by_customer']['subject'] = 'Nytt supportärende skapat'; +$lng['mails']['new_reply_ticket_by_customer']['mailbody'] = 'Hej admin,\n\nDitt supportärende "{SUBJECT}" har blivit besvarat an en kund.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; +$lng['mails']['new_reply_ticket_by_customer']['subject'] = 'Nytt svar för supportärendet'; +$lng['mails']['new_ticket_by_staff']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nEtt nytt supportärende har öppnats med rubriken "{SUBJECT}".\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; +$lng['mails']['new_ticket_by_staff']['subject'] = 'Nytt supportärede behandlat'; +$lng['mails']['new_reply_ticket_by_staff']['mailbody'] = 'Hej {FIRSTNAME} {NAME},\n\nSupportärendet med rubriken "{SUBJECT}" har besvarats av vår personal.\n\nVänligen logga in för att öppna ärendet.\n\nMed vänliga hälsningar,\n SysCP'; +$lng['mails']['new_reply_ticket_by_staff']['subject'] = 'Svar på ert supportärende'; +$lng['question']['ticket_reallyclose'] = 'Är du säker på att du vill stänga supportärendet "%s"?'; +$lng['question']['ticket_reallydelete'] = 'Är du säker på att du vill radera supportärendet "%s"?'; +$lng['question']['ticket_reallydeletecat'] = 'Är du säker på att du vill radera kategorin "%s"?'; +$lng['question']['ticket_reallyarchive'] = 'Är du säker på att du vill flytta supportärendet "%s" till arkivet?'; +$lng['error']['mysubject'] = '\'' . $lng['ticket']['subject'] . '\''; +$lng['error']['mymessage'] = '\'' . $lng['ticket']['message'] . '\''; +$lng['error']['mycategory'] = '\'' . $lng['ticket']['category'] . '\''; +$lng['error']['nomoreticketsavailable'] = 'Du har redan använt alla supportärenden som du fått tilldelade. Kontakta administratören om du behöver fler.'; +$lng['error']['nocustomerforticket'] = 'Det går inte att skapa ett supportärende utan kunder'; +$lng['error']['categoryhastickets'] = 'Denna kategori har fortfarande supportärenden.
Du måste radera dessa ärenden innan du kan radera denna kategori'; +$lng['error']['notmorethanxopentickets'] = $lng['ticket']['notmorethanxopentickets']; +$lng['admin']['ticketsettings'] = 'Supportärende inställningar'; +$lng['admin']['archivelastrun'] = 'Sista supportärende som arkiverats'; +$lng['serversettings']['ticket']['noreply_email']['title'] = 'Svara-Inte E-post adress'; +$lng['serversettings']['ticket']['noreply_email']['description'] = 'Avsändaradressen för support-ticket, exempel: inget-svar@syscp.se'; +$lng['serversettings']['ticket']['worktime_begin']['title'] = 'Start av support-tid (hh:mm)'; +$lng['serversettings']['ticket']['worktime_begin']['description'] = 'Start-tid, när supporten är tillgänglig'; +$lng['serversettings']['ticket']['worktime_end']['title'] = 'Slut på support-tid (hh:mm)'; +$lng['serversettings']['ticket']['worktime_end']['description'] = 'Slut-tid, när supporten inte längre är tillgänglig'; +$lng['serversettings']['ticket']['worktime_sat'] = 'Supporten har öppet på lördagar?'; +$lng['serversettings']['ticket']['worktime_sun'] = 'Supporten har öppet på söndagar?'; +$lng['serversettings']['ticket']['worktime_all']['title'] = 'Supporten är tillgänglig dygnet runt'; +$lng['serversettings']['ticket']['worktime_all']['description'] = 'Om du väljer "Ja" så kommer start och stopp tiderna att skrivas över'; +$lng['serversettings']['ticket']['archiving_days'] = 'Efter hur många dagar skall stängda tickets arkiveras?'; +$lng['customer']['tickets'] = 'Support ärenden'; + +// ADDED IN 1.2.18-svn4 + +$lng['admin']['domain_nocustomeraddingavailable'] = 'Det går inte att skapa en ny domän innan det finns mins en upplagd kund.'; +$lng['serversettings']['ticket']['enable'] = 'Tillåt användninga av ticketsystemet'; +$lng['serversettings']['ticket']['concurrentlyopen'] = 'Maximalt antal tickets som kan öppnas samtidigt?'; +$lng['error']['norepymailiswrong'] = 'Den här adressen "Noreply-address" är felaktig. Bara giltiga E-post adresser är tillåtna.'; +$lng['error']['tadminmailiswrong'] = 'Den här adressen "Ticketadmin-address" är felaktig. Bara giltiga E-post adresser är tillåtna.'; +$lng['ticket']['awaitingticketreply'] = 'Du har %s obesvarade support-ticket(s)'; + +// ADDED IN 1.2.18-svn5 + +$lng['serversettings']['ticket']['noreply_name'] = 'Supportärendes namn på E-postadressen'; + +// ADDED IN 1.2.19-svn1 + +$lng['serversettings']['mod_fcgid']['configdir']['title'] = 'FCGI konfigurationskatalog'; +$lng['serversettings']['mod_fcgid']['configdir']['description'] = 'I vilken katalog skall alla fcgi-konfigurationfiler lagras?'; +$lng['serversettings']['mod_fcgid']['tmpdir']['title'] = 'FCGI temporärkatalog'; + +// ADDED IN 1.2.19-svn3 + +$lng['serversettings']['ticket']['reset_cycle']['title'] = 'Återställ cykeln för använda supportärenden'; +$lng['serversettings']['ticket']['reset_cycle']['description'] = 'Återställ kundens räknare för använda supportärenden. Vald cykel = 0'; +$lng['admin']['tickets']['daily'] = 'Dagligen'; +$lng['admin']['tickets']['weekly'] = 'Varje vecka'; +$lng['admin']['tickets']['monthly'] = 'Varje månad'; +$lng['admin']['tickets']['yearly'] = 'Varje år'; +$lng['error']['ticketresetcycleiswrong'] = 'Cykeln för återställning av supportärenden måste vara "Dagligen", "Varje vecka", "varje månad" or "varje år".'; + +// ADDED IN 1.2.19-svn4 + +$lng['menue']['traffic']['traffic'] = 'Trafik'; +$lng['menue']['traffic']['current'] = 'Nuvarande månad'; +$lng['traffic']['month'] = "Månad"; +$lng['traffic']['day'] = "Dag"; +$lng['traffic']['months'][1] = "Januari"; +$lng['traffic']['months'][2] = "Februari"; +$lng['traffic']['months'][3] = "Mars"; +$lng['traffic']['months'][4] = "April"; +$lng['traffic']['months'][5] = "Maj"; +$lng['traffic']['months'][6] = "Juni"; +$lng['traffic']['months'][7] = "Juli"; +$lng['traffic']['months'][8] = "Augusti"; +$lng['traffic']['months'][9] = "September"; +$lng['traffic']['months'][10] = "Oktober"; +$lng['traffic']['months'][11] = "November"; +$lng['traffic']['months'][12] = "December"; +$lng['traffic']['mb'] = "Trafik (MB)"; +$lng['traffic']['distribution'] = 'FTP | HTTP | Mail'; +$lng['traffic']['sumhttp'] = 'Summa HTTP-Trafik i'; +$lng['traffic']['sumftp'] = 'Summa FTP-Trafik i'; +$lng['traffic']['summail'] = 'Summa E-posttrafik i'; + ?> \ No newline at end of file diff --git a/lng/zh-cn.lng.php b/lng/zh-cn.lng.php index a209c996..725ce6b2 100644 --- a/lng/zh-cn.lng.php +++ b/lng/zh-cn.lng.php @@ -1,456 +1,456 @@ - - * @author Wang Changyi - * @author Patrick Brueckner - * @author Yuan Yang - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Language - * @version $Id: zh-cn.lng.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * Global - */ - -$lng['translator'] = 'Jackie Zhang, Wang Changyi, Yuan Yang'; -$lng['panel']['edit'] = '编辑'; -$lng['panel']['delete'] = '删除'; -$lng['panel']['create'] = '创建'; -$lng['panel']['save'] = '保存'; -$lng['panel']['yes'] = '是'; -$lng['panel']['no'] = '否'; -$lng['panel']['emptyfornochanges'] = '无改变清空'; -$lng['panel']['emptyfordefault'] = '默认值清空'; -$lng['panel']['path'] = '路径'; -$lng['panel']['toggle'] = '触发器'; -$lng['panel']['next'] = '下一个'; -$lng['panel']['dirsmissing'] = '目录不可添加或者不可读'; - -/** - * Login - */ - -$lng['login']['username'] = '用户名'; -$lng['login']['password'] = '密码'; -$lng['login']['language'] = '语言'; -$lng['login']['login'] = '登陆'; -$lng['login']['logout'] = '登出'; -$lng['login']['profile_lng'] = '用户标准语言'; - -/** - * Customer - */ - -$lng['customer']['documentroot'] = '根目录'; -$lng['customer']['name'] = '姓'; -$lng['customer']['firstname'] = '名'; -$lng['customer']['company'] = '公司'; -$lng['customer']['street'] = '街道'; -$lng['customer']['zipcode'] = '邮政编码'; -$lng['customer']['city'] = '城市'; -$lng['customer']['phone'] = '电话'; -$lng['customer']['fax'] = '传真'; -$lng['customer']['email'] = '电子邮件'; -$lng['customer']['customernumber'] = '顾客号'; -$lng['customer']['diskspace'] = '磁盘空间(MB)'; -$lng['customer']['traffic'] = '流量(GB)'; -$lng['customer']['mysqls'] = 'MySQL数据库'; -$lng['customer']['emails'] = '电子邮件地址'; -$lng['customer']['accounts'] = '电子邮件帐户'; -$lng['customer']['forwarders'] = '电子邮件转发'; -$lng['customer']['ftps'] = 'FTP文件格式'; -$lng['customer']['subdomains'] = '子域'; -$lng['customer']['domains'] = '域'; -$lng['customer']['unlimited'] = '无限的'; - -/** - * Customermenue - */ - -$lng['menue']['main']['main'] = '主要的'; -$lng['menue']['main']['changepassword'] = '更改密码'; -$lng['menue']['main']['changelanguage'] = '语言转换'; -$lng['menue']['email']['email'] = '电子邮件'; -$lng['menue']['email']['emails'] = '地址'; -$lng['menue']['email']['webmail'] = '网络邮件'; -$lng['menue']['mysql']['mysql'] = 'MySQL'; -$lng['menue']['mysql']['databases'] = '数据库'; -$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; -$lng['menue']['domains']['domains'] = '域'; -$lng['menue']['domains']['settings'] = '设置'; -$lng['menue']['ftp']['ftp'] = 'FTP'; -$lng['menue']['ftp']['accounts'] = '账户'; -$lng['menue']['ftp']['webftp'] = '网络FTP地址'; -$lng['menue']['extras']['extras'] = '专用'; -$lng['menue']['extras']['directoryprotection'] = '目录保护'; -$lng['menue']['extras']['pathoptions'] = '路径选择'; - -/** - * Index - */ - -$lng['index']['customerdetails'] = '用户数据'; -$lng['index']['accountdetails'] = '账户数据'; - -/** - * Change Password - */ - -$lng['changepassword']['old_password'] = '旧密码'; -$lng['changepassword']['new_password'] = '新密码'; -$lng['changepassword']['new_password_confirm'] = '新密码(确认)'; -$lng['changepassword']['new_password_ifnotempty'] = $lng['changepassword']['new_password'] . '(' . $lng['panel']['emptyfornochanges'] . ')'; -$lng['changepassword']['also_change_ftp'] = '改变主FTP入口的密码'; - -/** - * Domains - */ - -$lng['domains']['description'] = '这里您可以设置域以及更改路径
在每次更改后系统需要一些时间重新读取设置'; -$lng['domains']['domainsettings'] = '域设置'; -$lng['domains']['domainname'] = '域名'; -$lng['domains']['subdomain_add'] = '添加子域'; -$lng['domains']['subdomain_edit'] = '编辑子域'; -$lng['domains']['wildcarddomain'] = '做为原始域登记'; -$lng['domains']['aliasdomain'] = '域别名'; -$lng['domains']['noaliasdomain'] = '无域别名'; - -/** - * eMails - */ - -$lng['emails']['description'] = '这里您可以创建您的电子邮件地址
POP账户如同您门前的邮箱,每当有人给您写电子邮件,电子邮件便会被放置在POP账户中

您邮件程序的进入数据如下所示:斜体字的说明会被每次的登记而替代
主机名域名
用户名):账户名/电子邮件地址
密码:被选密码'; -$lng['emails']['emailaddress'] = '电子邮件地址'; -$lng['emails']['emails_add'] = '创建电子邮件地址'; -$lng['emails']['emails_edit'] = '编辑电子邮件地址'; -$lng['emails']['catchall'] = '电邮户口'; -$lng['emails']['iscatchall'] = '设置成电邮户口?'; -$lng['emails']['account'] = '帐户'; -$lng['emails']['account_add'] = '创建帐户'; -$lng['emails']['account_delete'] = '删除帐户'; -$lng['emails']['from'] = '从'; -$lng['emails']['to'] = '到'; -$lng['emails']['forwarders'] = '代运人'; -$lng['emails']['forwarder_add'] = '创建代运人'; - -/** - * FTP - */ - -$lng['ftp']['description'] = '这里您可以创建额外的FTP账户
更改立刻生效并且FTP账户立刻可以使用'; -$lng['ftp']['account_add'] = '添加账户'; - -/** - * MySQL - */ - -$lng['mysql']['description'] = '这里您可以添加和删除MySQL数据库
更改立刻生效并且数据库立刻可以使用
在菜单中您可以找到去往phpMyAdmin的链接,在此您可以轻松编辑您数据库中的内容

php原文件的进入数据如下所示:斜体字的说明会被每次的登记而替代
主机名:
用户名:数据库名
密码:被选密码
数据库:数据库名'; -$lng['mysql']['databasename'] = '用户名/数据库名'; -$lng['mysql']['databasedescription'] = '数据库描述'; -$lng['mysql']['database_create'] = '创建数据库'; - -/** - * Extras - */ - -$lng['extras']['description'] = '这里您可以创建额外的专用,譬如目录保护
更改在一定时间后才生效'; -$lng['extras']['directoryprotection_add'] = '添加目录保护'; -$lng['extras']['view_directory'] = '显示记录'; -$lng['extras']['pathoptions_add'] = '配置路径'; -$lng['extras']['directory_browsing'] = '显示记录内容'; -$lng['extras']['pathoptions_edit'] = '路径设置处理'; -$lng['extras']['error404path'] = '404'; -$lng['extras']['error403path'] = '403'; -$lng['extras']['error500path'] = '500'; -$lng['extras']['error401path'] = '401'; -$lng['extras']['errordocument404path'] = '错误文件404路径'; -$lng['extras']['errordocument403path'] = '错误文件403路径'; -$lng['extras']['errordocument500path'] = '错误文件500路径'; -$lng['extras']['errordocument401path'] = '错误文件401路径'; - -/** - * Errors - */ - -$lng['error']['error'] = '错误报告'; -$lng['error']['directorymustexist'] = '目录%s必须存在.请创建您的FTP客户'; -$lng['error']['filemustexist'] = '文件%s必须存在.'; -$lng['error']['allresourcesused'] = '您已经使用了所有的资源'; -$lng['error']['domains_cantdeletemaindomain'] = '您不能删除已经作为电邮域使用过的域'; -$lng['error']['domains_canteditdomain'] = '您不能编辑这个域名,它已经被版主废除'; -$lng['error']['domains_cantdeletedomainwithemail'] = '您不能删除电子邮件域名,请首先删除所有的电子邮件地址'; -$lng['error']['firstdeleteallsubdomains'] = '在您创建一个新的原始域之前,必须先删除所有的子域。'; -$lng['error']['youhavealreadyacatchallforthisdomain'] = '您已经为这项域名设置了一个电邮户口'; -$lng['error']['ftp_cantdeletemainaccount'] = '您不能删除您的主账户'; -$lng['error']['login'] = '被输入的用户名/密码错误'; -$lng['error']['login_blocked'] = '由于多次错误的尝试这个账户将被关闭!
请您在' . $settings['login']['deactivatetime'] . '秒后重新尝试。'; -$lng['error']['notallreqfieldsorerrors'] = '您没有填写所有的文本栏或者有一个文本栏被错误填写'; -$lng['error']['oldpasswordnotcorrect'] = '旧密码不正确'; -$lng['error']['youcantallocatemorethanyouhave'] = '您不能分配比您现有的更多的资源。'; -$lng['error']['mustbeurl'] = '您没有输入有效或者完整的url(例如http://somedomain.com/error404.htm)'; -$lng['error']['invalidpath'] = '您没有选择有效的URL地址(可能是目录列表的问题)'; -$lng['error']['stringisempty'] = '缺少区域内的输入'; -$lng['error']['stringiswrong'] = '区域内输入错误'; -$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; -$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; -$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; -$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; -$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; -$lng['error']['newpasswordconfirmerror'] = '新密码和新密码确定不匹配'; -$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; -$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; -$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; -$lng['error']['mydomain'] = '\'域名\''; -$lng['error']['mydocumentroot'] = '\'文件来源\''; -$lng['error']['loginnameexists'] = '登陆名%s已经存在'; -$lng['error']['emailiswrong'] = '电子邮件地址 %s 包含了无效的字符或者不完整'; -$lng['error']['loginnameiswrong'] = '电子邮件地址 %s 包含了无效的字符'; -$lng['error']['userpathcombinationdupe'] = '用户名和路径已经存在'; -$lng['error']['patherror'] = '常规错误! 路径不能空着'; -$lng['error']['errordocpathdupe'] = '路径选项%s已经存在'; -$lng['error']['adduserfirst'] = '请首先建立一个客户'; -$lng['error']['domainalreadyexists'] = '域名%s已经指派给了客户'; -$lng['error']['nolanguageselect'] = '没有选择语言'; -$lng['error']['nosubjectcreate'] = '您必须为邮件模板定义一个主题'; -$lng['error']['nomailbodycreate'] = '您必须为邮件模板定义邮件正文'; -$lng['error']['templatenotfound'] = '模板没有找到'; -$lng['error']['alltemplatesdefined'] = '您不能定义更多的模板,已经支持所有的语言'; -$lng['error']['wwwnotallowed'] = 'www不能作为子域名名称'; -$lng['error']['subdomainiswrong'] = '子域名%s包含了无效的字符'; -$lng['error']['domaincantbeempty'] = '域名不能空着'; -$lng['error']['domainexistalready'] = '域名%s已经存在'; -$lng['error']['domainisaliasorothercustomer'] = '|所选域别名可自身为别名域 或属于另一客户.'; -$lng['error']['emailexistalready'] = '电子邮件地址%s已经存在'; -$lng['error']['maindomainnonexist'] = '主域名%s不存在'; -$lng['error']['destinationnonexist'] = '请在区域内建立你的代运人\'目的地\''; -$lng['error']['destinationalreadyexistasmail'] = '到%s的代运人已经作为一个电子邮件地址存在'; -$lng['error']['destinationalreadyexist'] = '你已经定义了到%s的代运人'; -$lng['error']['destinationiswrong'] = '代运人%s包含了无效的字符或者不完整'; -$lng['error']['domainname'] = $lng['domains']['domainname']; - -/** - * Questions - */ - -$lng['question']['question'] = '安全问题'; -$lng['question']['admin_customer_reallydelete'] = '您真的想要删除这个客户吗%s?
注意!所有的数据将不可挽回的丢失!在操作后您必须还要用手把数据从数据系统中删除'; -$lng['question']['admin_domain_reallydelete'] = '您真的想删除域%s吗?'; -$lng['question']['admin_domain_reallydisablesecuritysetting'] = '您真的想关闭这些重要的安全设置吗?'; -$lng['question']['admin_admin_reallydelete'] = '您真的要删除主要管理员%s?所有的客户和域可都是由它分配的!'; -$lng['question']['admin_template_reallydelete'] = '您真的想删除\'%s\'模板吗?'; -$lng['question']['domains_reallydelete'] = '您真的想删除域%s吗?'; -$lng['question']['email_reallydelete'] = '您真的想删除电子邮件%s吗?'; -$lng['question']['email_reallydelete_account'] = '您真的想删除电子邮件帐户%s吗?'; -$lng['question']['email_reallydelete_forwarder'] = '您真的想删除代运人%s吗?'; -$lng['question']['extras_reallydelete'] = '您真的想删除目录保护%s吗?'; -$lng['question']['extras_reallydelete_pathoptions'] = '您真的想删除这个路径的配置%s吗?'; -$lng['question']['ftp_reallydelete'] = '您真的想删FTP账户%s吗?'; -$lng['question']['mysql_reallydelete'] = '您真的想删除数据库%s吗?注意!所有的数据将不可挽回的丢失!'; -$lng['question']['admin_configs_reallyrebuild'] = '您真的想新建Apache和Bind配置文件吗?'; - -/** - * Mails - */ - -$lng['mails']['pop_success']['mailbody'] = '你好以被成功创建这是一个自动生成的这是一个自动生成的邮件,请不用答复这个通知您的服务小组'; -$lng['mails']['pop_success']['subject'] = 'POP3账户成功被创建'; -$lng['mails']['createcustomer']['mailbody'] = '您好{FIRSTNAME} {NAME},\n\n这里是您的账户信息:\n\n用户名: {USERNAME}\n密码: {PASSWORD}\n\n非常感谢,您的服务小组'; -$lng['mails']['createcustomer']['subject'] = '账户信息'; - -/** - * Admin - */ - -$lng['admin']['overview'] = '概要'; -$lng['admin']['ressourcedetails'] = '被使用的资源'; -$lng['admin']['systemdetails'] = '系统详情'; -$lng['admin']['syscpdetails'] = 'SysCP-详情'; -$lng['admin']['installedversion'] = '安装版本'; -$lng['admin']['latestversion'] = '最新版本'; -$lng['admin']['lookfornewversion']['clickhere'] = '通过网络服务询问'; -$lng['admin']['lookfornewversion']['error'] = '在挑选上出现错误'; -$lng['admin']['resources'] = '资源'; -$lng['admin']['customer'] = '客户'; -$lng['admin']['customers'] = '客户群'; -$lng['admin']['customer_add'] = '添加客户群'; -$lng['admin']['customer_edit'] = '编辑客户群'; -$lng['admin']['domains'] = '组域'; -$lng['admin']['domain_add'] = '添加域'; -$lng['admin']['domain_edit'] = '编辑域'; -$lng['admin']['subdomainforemail'] = '副域名作为电子邮件域名'; -$lng['admin']['admin'] = '主管'; -$lng['admin']['admins'] = '管理'; -$lng['admin']['admin_add'] = '加入新的主管'; -$lng['admin']['admin_edit'] = '对主管进行编辑'; -$lng['admin']['customers_see_all'] = '所有的客户都能看到吗?'; -$lng['admin']['domains_see_all'] = '所有的域都能看到吗?'; -$lng['admin']['change_serversettings'] = '服务设置能被修改吗?'; -$lng['admin']['server'] = '服务器'; -$lng['admin']['serversettings'] = '设置'; -$lng['admin']['rebuildconf'] = '配置新建'; -$lng['admin']['stdsubdomain'] = '默认子域'; -$lng['admin']['stdsubdomain_add'] = '添加默认子域'; -$lng['admin']['deactivated'] = '被禁止'; -$lng['admin']['deactivated_user'] = '封锁用户'; -$lng['admin']['sendpassword'] = '寄出密码'; -$lng['admin']['configfiles']['serverconfiguration'] = '配置'; -$lng['admin']['ownvhostsettings'] = '自己的主机设置(vHost)'; -$lng['admin']['configfiles']['files'] = '编辑数据:请您更改成相符的编辑数据。
如果它们不存在,就请您输入下面的内容。
请您注意:由于保密原因,MySQL的密码将不被替换。)
请您通过手动的方式替换MySQL的密码。
如果您忘记了密码,您可以在`lib/userdata.inc.php`找到。'; -$lng['admin']['configfiles']['commands'] = '命令:请您在一页内输出以下的命令。'; -$lng['admin']['configfiles']['restart'] = '重新开始:请您输出以下命令以便重新装载。编辑数据应不超过一页'; -$lng['admin']['templates']['templates'] = '模板'; -$lng['admin']['templates']['template_add'] = '添加模板'; -$lng['admin']['templates']['template_edit'] = '编辑模板'; -$lng['admin']['templates']['action'] = '动作'; -$lng['admin']['templates']['email'] = '电子邮件'; -$lng['admin']['templates']['subject'] = '主题'; -$lng['admin']['templates']['mailbody'] = '邮件内容'; -$lng['admin']['templates']['createcustomer'] = '对新客户的欢迎函'; -$lng['admin']['templates']['pop_success'] = '对新邮件帐户的欢迎函'; -$lng['admin']['templates']['template_replace_vars'] = '模板中的替换变量:'; -$lng['admin']['templates']['FIRSTNAME'] = '更换客户名'; -$lng['admin']['templates']['NAME'] = '更换客户姓'; -$lng['admin']['templates']['USERNAME'] = '更换客户帐户用户名'; -$lng['admin']['templates']['PASSWORD'] = '更换客户帐户密码'; -$lng['admin']['templates']['EMAIL'] = '更换 POP3/IMAP 帐户地址'; - -/** - * Serversettings - */ - -$lng['serversettings']['session_timeout']['title'] = '对话超时'; -$lng['serversettings']['session_timeout']['description'] = '用户多长时间必须呈现冻结状态,与此同时对话也变为无效'; -$lng['serversettings']['accountprefix']['title'] = '客户前缀'; -$lng['serversettings']['accountprefix']['description'] = '客户账户应该有哪种前缀?'; -$lng['serversettings']['mysqlprefix']['title'] = 'MySQL-前缀'; -$lng['serversettings']['mysqlprefix']['description'] = 'MySQL 账户应该有哪些前缀?'; -$lng['serversettings']['ftpprefix']['title'] = 'FTP前缀'; -$lng['serversettings']['ftpprefix']['description'] = 'FTP账户应该有哪些前缀?'; -$lng['serversettings']['documentroot_prefix']['title'] = '文档目录'; -$lng['serversettings']['documentroot_prefix']['description'] = '所有的客户应位于哪里?'; -$lng['serversettings']['logfiles_directory']['title'] = '登陆文件目录'; -$lng['serversettings']['logfiles_directory']['description'] = '所有的登陆文件应位于哪里'; -$lng['serversettings']['ipaddress']['title'] = 'IP地址'; -$lng['serversettings']['ipaddress']['description'] = '这个服务器IP地址是什么?'; -$lng['serversettings']['hostname']['title'] = '主机名'; -$lng['serversettings']['hostname']['description'] = '这个服务器的主机名是什么?'; -$lng['serversettings']['apachereload_command']['title'] = '阿帕奇重新读取命令'; -$lng['serversettings']['apachereload_command']['description'] = '被读取的阿帕奇文稿叫什么名字'; -$lng['serversettings']['bindconf_directory']['title'] = '连接配置目录'; -$lng['serversettings']['bindconf_directory']['description'] = '连接配置数据位于哪里?'; -$lng['serversettings']['bindreload_command']['title'] = '连接-重新读取命令'; -$lng['serversettings']['bindreload_command']['description'] = '连接的重置文本叫作什么'; -$lng['serversettings']['binddefaultzone']['title'] = '连接-默认区域'; -$lng['serversettings']['binddefaultzone']['description'] = '所有域的默认区域叫作什么?'; -$lng['serversettings']['vmail_uid']['title'] = '邮件UID'; -$lng['serversettings']['vmail_uid']['description'] = '邮件应该有哪些UID'; -$lng['serversettings']['vmail_gid']['title'] = '邮件Gid'; -$lng['serversettings']['vmail_gid']['description'] = '邮件应该有哪些Gid?'; -$lng['serversettings']['vmail_homedir']['title'] = '邮件地址目录'; -$lng['serversettings']['vmail_homedir']['description'] = '邮件应该位于哪里?'; -$lng['serversettings']['adminmail']['title'] = '发信人地址'; -$lng['serversettings']['adminmail']['description'] = '来自调查对象的邮件发信人地址是什么?'; -$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin地址'; -$lng['serversettings']['phpmyadmin_url']['description'] = 'phpMyAdmin位于哪里?'; -$lng['serversettings']['webmail_url']['title'] = '网络邮件的URL'; -$lng['serversettings']['webmail_url']['description'] = '网络邮件放在哪里?'; -$lng['serversettings']['webftp_url']['title'] = '网络FTP的URL'; -$lng['serversettings']['webftp_url']['description'] = '网络FTP放在哪里?'; -$lng['serversettings']['language']['description'] = '您的标准语言是什么语?'; -$lng['serversettings']['maxloginattempts']['title'] = '最多登陆次数'; -$lng['serversettings']['maxloginattempts']['description'] = '最多登陆次数直到帐户失效'; -$lng['serversettings']['deactivatetime']['title'] = '帐户失效时间'; -$lng['serversettings']['deactivatetime']['description'] = '帐户失效时间(以秒计算)'; -$lng['serversettings']['pathedit']['title'] = '路径输入方法'; -$lng['serversettings']['pathedit']['description'] = '路径是通过下拉菜单选择,还是自行输入?'; - -/** - * ADDED BETWEEN 1.2.12 and 1.2.13 - */ - -$lng['admin']['cronlastrun'] = '定时执行程序的最后一次执行'; -$lng['serversettings']['paging']['title'] = '每页进入次数'; -$lng['serversettings']['paging']['description'] = '一页上应该显示多少次 进入?(0 =无效分页)'; -$lng['error']['ipstillhasdomains'] = '你想要删除的IP/ 端口连接仍然占有分 配给他的域,在删除此IP/端口连接之前,请把这些域分配给其他IP/端口连接.'; -$lng['error']['cantdeletedefaultip'] = '你不能删除默认的分销商IP/端口连 接, 请在删除这个IP/端口连接前为分销商另设置默认IP/端口连接.'; -$lng['error']['cantdeletesystemip'] = '你不能删除系统IP, 你可以为系统IP 另生成一个新的IP/端口连接, 或者改变系统IP.'; -$lng['error']['myipaddress'] = '\'IP\''; -$lng['error']['myport'] = '\'端口\''; -$lng['error']['myipdefault'] = '你需要选择一个IP/端口连接并设为默认值.'; -$lng['error']['myipnotdouble'] = '这一IP/端口连接已存在.'; -$lng['question']['admin_ip_reallydelete'] = '你真的决定删除IP地址 %s?'; -$lng['admin']['ipsandports']['ipsandports'] = '多个IP和端口'; -$lng['admin']['ipsandports']['add'] = '添加IP/端口'; -$lng['admin']['ipsandports']['edit'] = '编辑IP/端口'; -$lng['admin']['ipsandports']['ipandport'] = 'IP/端口'; -$lng['admin']['ipsandports']['ip'] = 'IP'; -$lng['admin']['ipsandports']['port'] = '端口'; - -// ADDED IN 1.2.13-rc3 - -$lng['error']['cantchangesystemip'] = '你不能改变最近用过的系统IP,要么生成一个新的IP/端口组合, 要么改变系统IP.'; -$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '你确定你想要这个域的文件源生成于客户的客户根目录之外?'; - -// ADDED IN 1.2.14-rc1 - -$lng['admin']['memorylimitdisabled'] = '关闭'; -$lng['error']['loginnameissystemaccount'] = '你不能生成与系统帐号相似的帐户. 请另输入一个帐户名'; -$lng['domain']['openbasedirpath'] = '公开基址目录路径'; -$lng['domain']['docroot'] = '来自上一信息组的路径'; -$lng['domain']['homedir'] = '家目录'; -$lng['admin']['valuemandatory'] = '此值为强制性的'; -$lng['admin']['valuemandatorycompany'] = '"姓"与"名"或者"公司名"为必填项'; -$lng['menue']['main']['username'] = '以: 登录 '; -$lng['panel']['urloverridespath'] = 'URL (覆盖路径)'; -$lng['panel']['pathorurl'] = '路径或URL'; -$lng['error']['sessiontimeoutiswrong'] = '只容许数字的"对话超时".'; -$lng['error']['maxloginattemptsiswrong'] = '只容许数字的"登录尝试最大值".'; -$lng['error']['deactivatetimiswrong'] = '只容许数字的"停用时间".'; -$lng['error']['accountprefixiswrong'] = '"客户前缀"错误.'; -$lng['error']['mysqlprefixiswrong'] = '"SQL前缀"错误.'; -$lng['error']['ftpprefixiswrong'] = '"FTP前缀"错误.'; -$lng['error']['ipiswrong'] = '"IP地址"错误. 只容许有效的IP地址.'; -$lng['error']['vmailuidiswrong'] = '"Mails-uid"错误. 只容许数字的UID.'; -$lng['error']['vmailgidiswrong'] = '"Mails-gid"错误. 只容许数字的GID.'; -$lng['error']['adminmailiswrong'] = '"寄件人地址"错误. 只容许有效的Email地址.'; -$lng['error']['pagingiswrong'] = '"每页记录"值错误. 只容许数字符号.'; -$lng['error']['phpmyadminiswrong'] = 'phpmyadmin-链接不是一个有效链接.'; -$lng['error']['webmailiswrong'] = 'WebMail-链接不是一个有效链接.'; -$lng['error']['webftpiswrong'] = 'WebFTP-链接不是一个有效链接.'; -$lng['domains']['hasaliasdomains'] = '有别名域'; -$lng['serversettings']['defaultip']['title'] = '默认IP/端口'; -$lng['serversettings']['defaultip']['description'] = '默认的IP/端口组合是什么?'; -$lng['domains']['statstics'] = '使用统计'; -$lng['panel']['ascending'] = '向上的'; -$lng['panel']['decending'] = '向下的'; -$lng['panel']['search'] = '搜寻'; -$lng['panel']['used'] = '已用'; - -// ADDED IN 1.2.14-rc3 - -$lng['panel']['translator'] = '翻译者'; - -// ADDED IN 1.2.14-rc4 - -$lng['error']['stringformaterror'] = '信息组"%s"值不是期望格式'; - -// ADDED in 1.2.15-svn1 - -$lng['admin']['serversoftware'] = '服务器软件'; -$lng['admin']['phpversion'] = 'php版本'; -$lng['admin']['phpmemorylimit'] = 'php内存限制'; -$lng['admin']['mysqlserverversion'] = 'mysql服务器版本'; -$lng['admin']['mysqlclientversion'] = 'mysql客户端版本'; -$lng['admin']['webserverinterface'] = '网页服务器接口'; - -?> + + * @author Wang Changyi + * @author Patrick Brueckner + * @author Yuan Yang + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Language + * @version $Id: zh-cn.lng.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * Global + */ + +$lng['translator'] = 'Jackie Zhang, Wang Changyi, Yuan Yang'; +$lng['panel']['edit'] = '编辑'; +$lng['panel']['delete'] = '删除'; +$lng['panel']['create'] = '创建'; +$lng['panel']['save'] = '保存'; +$lng['panel']['yes'] = '是'; +$lng['panel']['no'] = '否'; +$lng['panel']['emptyfornochanges'] = '无改变清空'; +$lng['panel']['emptyfordefault'] = '默认值清空'; +$lng['panel']['path'] = '路径'; +$lng['panel']['toggle'] = '触发器'; +$lng['panel']['next'] = '下一个'; +$lng['panel']['dirsmissing'] = '目录不可添加或者不可读'; + +/** + * Login + */ + +$lng['login']['username'] = '用户名'; +$lng['login']['password'] = '密码'; +$lng['login']['language'] = '语言'; +$lng['login']['login'] = '登陆'; +$lng['login']['logout'] = '登出'; +$lng['login']['profile_lng'] = '用户标准语言'; + +/** + * Customer + */ + +$lng['customer']['documentroot'] = '根目录'; +$lng['customer']['name'] = '姓'; +$lng['customer']['firstname'] = '名'; +$lng['customer']['company'] = '公司'; +$lng['customer']['street'] = '街道'; +$lng['customer']['zipcode'] = '邮政编码'; +$lng['customer']['city'] = '城市'; +$lng['customer']['phone'] = '电话'; +$lng['customer']['fax'] = '传真'; +$lng['customer']['email'] = '电子邮件'; +$lng['customer']['customernumber'] = '顾客号'; +$lng['customer']['diskspace'] = '磁盘空间(MB)'; +$lng['customer']['traffic'] = '流量(GB)'; +$lng['customer']['mysqls'] = 'MySQL数据库'; +$lng['customer']['emails'] = '电子邮件地址'; +$lng['customer']['accounts'] = '电子邮件帐户'; +$lng['customer']['forwarders'] = '电子邮件转发'; +$lng['customer']['ftps'] = 'FTP文件格式'; +$lng['customer']['subdomains'] = '子域'; +$lng['customer']['domains'] = '域'; +$lng['customer']['unlimited'] = '无限的'; + +/** + * Customermenue + */ + +$lng['menue']['main']['main'] = '主要的'; +$lng['menue']['main']['changepassword'] = '更改密码'; +$lng['menue']['main']['changelanguage'] = '语言转换'; +$lng['menue']['email']['email'] = '电子邮件'; +$lng['menue']['email']['emails'] = '地址'; +$lng['menue']['email']['webmail'] = '网络邮件'; +$lng['menue']['mysql']['mysql'] = 'MySQL'; +$lng['menue']['mysql']['databases'] = '数据库'; +$lng['menue']['mysql']['phpmyadmin'] = 'phpMyAdmin'; +$lng['menue']['domains']['domains'] = '域'; +$lng['menue']['domains']['settings'] = '设置'; +$lng['menue']['ftp']['ftp'] = 'FTP'; +$lng['menue']['ftp']['accounts'] = '账户'; +$lng['menue']['ftp']['webftp'] = '网络FTP地址'; +$lng['menue']['extras']['extras'] = '专用'; +$lng['menue']['extras']['directoryprotection'] = '目录保护'; +$lng['menue']['extras']['pathoptions'] = '路径选择'; + +/** + * Index + */ + +$lng['index']['customerdetails'] = '用户数据'; +$lng['index']['accountdetails'] = '账户数据'; + +/** + * Change Password + */ + +$lng['changepassword']['old_password'] = '旧密码'; +$lng['changepassword']['new_password'] = '新密码'; +$lng['changepassword']['new_password_confirm'] = '新密码(确认)'; +$lng['changepassword']['new_password_ifnotempty'] = $lng['changepassword']['new_password'] . '(' . $lng['panel']['emptyfornochanges'] . ')'; +$lng['changepassword']['also_change_ftp'] = '改变主FTP入口的密码'; + +/** + * Domains + */ + +$lng['domains']['description'] = '这里您可以设置域以及更改路径
在每次更改后系统需要一些时间重新读取设置'; +$lng['domains']['domainsettings'] = '域设置'; +$lng['domains']['domainname'] = '域名'; +$lng['domains']['subdomain_add'] = '添加子域'; +$lng['domains']['subdomain_edit'] = '编辑子域'; +$lng['domains']['wildcarddomain'] = '做为原始域登记'; +$lng['domains']['aliasdomain'] = '域别名'; +$lng['domains']['noaliasdomain'] = '无域别名'; + +/** + * eMails + */ + +$lng['emails']['description'] = '这里您可以创建您的电子邮件地址
POP账户如同您门前的邮箱,每当有人给您写电子邮件,电子邮件便会被放置在POP账户中

您邮件程序的进入数据如下所示:斜体字的说明会被每次的登记而替代
主机名域名
用户名):账户名/电子邮件地址
密码:被选密码'; +$lng['emails']['emailaddress'] = '电子邮件地址'; +$lng['emails']['emails_add'] = '创建电子邮件地址'; +$lng['emails']['emails_edit'] = '编辑电子邮件地址'; +$lng['emails']['catchall'] = '电邮户口'; +$lng['emails']['iscatchall'] = '设置成电邮户口?'; +$lng['emails']['account'] = '帐户'; +$lng['emails']['account_add'] = '创建帐户'; +$lng['emails']['account_delete'] = '删除帐户'; +$lng['emails']['from'] = '从'; +$lng['emails']['to'] = '到'; +$lng['emails']['forwarders'] = '代运人'; +$lng['emails']['forwarder_add'] = '创建代运人'; + +/** + * FTP + */ + +$lng['ftp']['description'] = '这里您可以创建额外的FTP账户
更改立刻生效并且FTP账户立刻可以使用'; +$lng['ftp']['account_add'] = '添加账户'; + +/** + * MySQL + */ + +$lng['mysql']['description'] = '这里您可以添加和删除MySQL数据库
更改立刻生效并且数据库立刻可以使用
在菜单中您可以找到去往phpMyAdmin的链接,在此您可以轻松编辑您数据库中的内容

php原文件的进入数据如下所示:斜体字的说明会被每次的登记而替代
主机名:
用户名:数据库名
密码:被选密码
数据库:数据库名'; +$lng['mysql']['databasename'] = '用户名/数据库名'; +$lng['mysql']['databasedescription'] = '数据库描述'; +$lng['mysql']['database_create'] = '创建数据库'; + +/** + * Extras + */ + +$lng['extras']['description'] = '这里您可以创建额外的专用,譬如目录保护
更改在一定时间后才生效'; +$lng['extras']['directoryprotection_add'] = '添加目录保护'; +$lng['extras']['view_directory'] = '显示记录'; +$lng['extras']['pathoptions_add'] = '配置路径'; +$lng['extras']['directory_browsing'] = '显示记录内容'; +$lng['extras']['pathoptions_edit'] = '路径设置处理'; +$lng['extras']['error404path'] = '404'; +$lng['extras']['error403path'] = '403'; +$lng['extras']['error500path'] = '500'; +$lng['extras']['error401path'] = '401'; +$lng['extras']['errordocument404path'] = '错误文件404路径'; +$lng['extras']['errordocument403path'] = '错误文件403路径'; +$lng['extras']['errordocument500path'] = '错误文件500路径'; +$lng['extras']['errordocument401path'] = '错误文件401路径'; + +/** + * Errors + */ + +$lng['error']['error'] = '错误报告'; +$lng['error']['directorymustexist'] = '目录%s必须存在.请创建您的FTP客户'; +$lng['error']['filemustexist'] = '文件%s必须存在.'; +$lng['error']['allresourcesused'] = '您已经使用了所有的资源'; +$lng['error']['domains_cantdeletemaindomain'] = '您不能删除已经作为电邮域使用过的域'; +$lng['error']['domains_canteditdomain'] = '您不能编辑这个域名,它已经被版主废除'; +$lng['error']['domains_cantdeletedomainwithemail'] = '您不能删除电子邮件域名,请首先删除所有的电子邮件地址'; +$lng['error']['firstdeleteallsubdomains'] = '在您创建一个新的原始域之前,必须先删除所有的子域。'; +$lng['error']['youhavealreadyacatchallforthisdomain'] = '您已经为这项域名设置了一个电邮户口'; +$lng['error']['ftp_cantdeletemainaccount'] = '您不能删除您的主账户'; +$lng['error']['login'] = '被输入的用户名/密码错误'; +$lng['error']['login_blocked'] = '由于多次错误的尝试这个账户将被关闭!
请您在' . $settings['login']['deactivatetime'] . '秒后重新尝试。'; +$lng['error']['notallreqfieldsorerrors'] = '您没有填写所有的文本栏或者有一个文本栏被错误填写'; +$lng['error']['oldpasswordnotcorrect'] = '旧密码不正确'; +$lng['error']['youcantallocatemorethanyouhave'] = '您不能分配比您现有的更多的资源。'; +$lng['error']['mustbeurl'] = '您没有输入有效或者完整的url(例如http://somedomain.com/error404.htm)'; +$lng['error']['invalidpath'] = '您没有选择有效的URL地址(可能是目录列表的问题)'; +$lng['error']['stringisempty'] = '缺少区域内的输入'; +$lng['error']['stringiswrong'] = '区域内输入错误'; +$lng['error']['myloginname'] = '\'' . $lng['login']['username'] . '\''; +$lng['error']['mypassword'] = '\'' . $lng['login']['password'] . '\''; +$lng['error']['oldpassword'] = '\'' . $lng['changepassword']['old_password'] . '\''; +$lng['error']['newpassword'] = '\'' . $lng['changepassword']['new_password'] . '\''; +$lng['error']['newpasswordconfirm'] = '\'' . $lng['changepassword']['new_password_confirm'] . '\''; +$lng['error']['newpasswordconfirmerror'] = '新密码和新密码确定不匹配'; +$lng['error']['myname'] = '\'' . $lng['customer']['name'] . '\''; +$lng['error']['myfirstname'] = '\'' . $lng['customer']['firstname'] . '\''; +$lng['error']['emailadd'] = '\'' . $lng['customer']['email'] . '\''; +$lng['error']['mydomain'] = '\'域名\''; +$lng['error']['mydocumentroot'] = '\'文件来源\''; +$lng['error']['loginnameexists'] = '登陆名%s已经存在'; +$lng['error']['emailiswrong'] = '电子邮件地址 %s 包含了无效的字符或者不完整'; +$lng['error']['loginnameiswrong'] = '电子邮件地址 %s 包含了无效的字符'; +$lng['error']['userpathcombinationdupe'] = '用户名和路径已经存在'; +$lng['error']['patherror'] = '常规错误! 路径不能空着'; +$lng['error']['errordocpathdupe'] = '路径选项%s已经存在'; +$lng['error']['adduserfirst'] = '请首先建立一个客户'; +$lng['error']['domainalreadyexists'] = '域名%s已经指派给了客户'; +$lng['error']['nolanguageselect'] = '没有选择语言'; +$lng['error']['nosubjectcreate'] = '您必须为邮件模板定义一个主题'; +$lng['error']['nomailbodycreate'] = '您必须为邮件模板定义邮件正文'; +$lng['error']['templatenotfound'] = '模板没有找到'; +$lng['error']['alltemplatesdefined'] = '您不能定义更多的模板,已经支持所有的语言'; +$lng['error']['wwwnotallowed'] = 'www不能作为子域名名称'; +$lng['error']['subdomainiswrong'] = '子域名%s包含了无效的字符'; +$lng['error']['domaincantbeempty'] = '域名不能空着'; +$lng['error']['domainexistalready'] = '域名%s已经存在'; +$lng['error']['domainisaliasorothercustomer'] = '|所选域别名可自身为别名域 或属于另一客户.'; +$lng['error']['emailexistalready'] = '电子邮件地址%s已经存在'; +$lng['error']['maindomainnonexist'] = '主域名%s不存在'; +$lng['error']['destinationnonexist'] = '请在区域内建立你的代运人\'目的地\''; +$lng['error']['destinationalreadyexistasmail'] = '到%s的代运人已经作为一个电子邮件地址存在'; +$lng['error']['destinationalreadyexist'] = '你已经定义了到%s的代运人'; +$lng['error']['destinationiswrong'] = '代运人%s包含了无效的字符或者不完整'; +$lng['error']['domainname'] = $lng['domains']['domainname']; + +/** + * Questions + */ + +$lng['question']['question'] = '安全问题'; +$lng['question']['admin_customer_reallydelete'] = '您真的想要删除这个客户吗%s?
注意!所有的数据将不可挽回的丢失!在操作后您必须还要用手把数据从数据系统中删除'; +$lng['question']['admin_domain_reallydelete'] = '您真的想删除域%s吗?'; +$lng['question']['admin_domain_reallydisablesecuritysetting'] = '您真的想关闭这些重要的安全设置吗?'; +$lng['question']['admin_admin_reallydelete'] = '您真的要删除主要管理员%s?所有的客户和域可都是由它分配的!'; +$lng['question']['admin_template_reallydelete'] = '您真的想删除\'%s\'模板吗?'; +$lng['question']['domains_reallydelete'] = '您真的想删除域%s吗?'; +$lng['question']['email_reallydelete'] = '您真的想删除电子邮件%s吗?'; +$lng['question']['email_reallydelete_account'] = '您真的想删除电子邮件帐户%s吗?'; +$lng['question']['email_reallydelete_forwarder'] = '您真的想删除代运人%s吗?'; +$lng['question']['extras_reallydelete'] = '您真的想删除目录保护%s吗?'; +$lng['question']['extras_reallydelete_pathoptions'] = '您真的想删除这个路径的配置%s吗?'; +$lng['question']['ftp_reallydelete'] = '您真的想删FTP账户%s吗?'; +$lng['question']['mysql_reallydelete'] = '您真的想删除数据库%s吗?注意!所有的数据将不可挽回的丢失!'; +$lng['question']['admin_configs_reallyrebuild'] = '您真的想新建Apache和Bind配置文件吗?'; + +/** + * Mails + */ + +$lng['mails']['pop_success']['mailbody'] = '你好以被成功创建这是一个自动生成的这是一个自动生成的邮件,请不用答复这个通知您的服务小组'; +$lng['mails']['pop_success']['subject'] = 'POP3账户成功被创建'; +$lng['mails']['createcustomer']['mailbody'] = '您好{FIRSTNAME} {NAME},\n\n这里是您的账户信息:\n\n用户名: {USERNAME}\n密码: {PASSWORD}\n\n非常感谢,您的服务小组'; +$lng['mails']['createcustomer']['subject'] = '账户信息'; + +/** + * Admin + */ + +$lng['admin']['overview'] = '概要'; +$lng['admin']['ressourcedetails'] = '被使用的资源'; +$lng['admin']['systemdetails'] = '系统详情'; +$lng['admin']['syscpdetails'] = 'SysCP-详情'; +$lng['admin']['installedversion'] = '安装版本'; +$lng['admin']['latestversion'] = '最新版本'; +$lng['admin']['lookfornewversion']['clickhere'] = '通过网络服务询问'; +$lng['admin']['lookfornewversion']['error'] = '在挑选上出现错误'; +$lng['admin']['resources'] = '资源'; +$lng['admin']['customer'] = '客户'; +$lng['admin']['customers'] = '客户群'; +$lng['admin']['customer_add'] = '添加客户群'; +$lng['admin']['customer_edit'] = '编辑客户群'; +$lng['admin']['domains'] = '组域'; +$lng['admin']['domain_add'] = '添加域'; +$lng['admin']['domain_edit'] = '编辑域'; +$lng['admin']['subdomainforemail'] = '副域名作为电子邮件域名'; +$lng['admin']['admin'] = '主管'; +$lng['admin']['admins'] = '管理'; +$lng['admin']['admin_add'] = '加入新的主管'; +$lng['admin']['admin_edit'] = '对主管进行编辑'; +$lng['admin']['customers_see_all'] = '所有的客户都能看到吗?'; +$lng['admin']['domains_see_all'] = '所有的域都能看到吗?'; +$lng['admin']['change_serversettings'] = '服务设置能被修改吗?'; +$lng['admin']['server'] = '服务器'; +$lng['admin']['serversettings'] = '设置'; +$lng['admin']['rebuildconf'] = '配置新建'; +$lng['admin']['stdsubdomain'] = '默认子域'; +$lng['admin']['stdsubdomain_add'] = '添加默认子域'; +$lng['admin']['deactivated'] = '被禁止'; +$lng['admin']['deactivated_user'] = '封锁用户'; +$lng['admin']['sendpassword'] = '寄出密码'; +$lng['admin']['configfiles']['serverconfiguration'] = '配置'; +$lng['admin']['ownvhostsettings'] = '自己的主机设置(vHost)'; +$lng['admin']['configfiles']['files'] = '编辑数据:请您更改成相符的编辑数据。
如果它们不存在,就请您输入下面的内容。
请您注意:由于保密原因,MySQL的密码将不被替换。)
请您通过手动的方式替换MySQL的密码。
如果您忘记了密码,您可以在`lib/userdata.inc.php`找到。'; +$lng['admin']['configfiles']['commands'] = '命令:请您在一页内输出以下的命令。'; +$lng['admin']['configfiles']['restart'] = '重新开始:请您输出以下命令以便重新装载。编辑数据应不超过一页'; +$lng['admin']['templates']['templates'] = '模板'; +$lng['admin']['templates']['template_add'] = '添加模板'; +$lng['admin']['templates']['template_edit'] = '编辑模板'; +$lng['admin']['templates']['action'] = '动作'; +$lng['admin']['templates']['email'] = '电子邮件'; +$lng['admin']['templates']['subject'] = '主题'; +$lng['admin']['templates']['mailbody'] = '邮件内容'; +$lng['admin']['templates']['createcustomer'] = '对新客户的欢迎函'; +$lng['admin']['templates']['pop_success'] = '对新邮件帐户的欢迎函'; +$lng['admin']['templates']['template_replace_vars'] = '模板中的替换变量:'; +$lng['admin']['templates']['FIRSTNAME'] = '更换客户名'; +$lng['admin']['templates']['NAME'] = '更换客户姓'; +$lng['admin']['templates']['USERNAME'] = '更换客户帐户用户名'; +$lng['admin']['templates']['PASSWORD'] = '更换客户帐户密码'; +$lng['admin']['templates']['EMAIL'] = '更换 POP3/IMAP 帐户地址'; + +/** + * Serversettings + */ + +$lng['serversettings']['session_timeout']['title'] = '对话超时'; +$lng['serversettings']['session_timeout']['description'] = '用户多长时间必须呈现冻结状态,与此同时对话也变为无效'; +$lng['serversettings']['accountprefix']['title'] = '客户前缀'; +$lng['serversettings']['accountprefix']['description'] = '客户账户应该有哪种前缀?'; +$lng['serversettings']['mysqlprefix']['title'] = 'MySQL-前缀'; +$lng['serversettings']['mysqlprefix']['description'] = 'MySQL 账户应该有哪些前缀?'; +$lng['serversettings']['ftpprefix']['title'] = 'FTP前缀'; +$lng['serversettings']['ftpprefix']['description'] = 'FTP账户应该有哪些前缀?'; +$lng['serversettings']['documentroot_prefix']['title'] = '文档目录'; +$lng['serversettings']['documentroot_prefix']['description'] = '所有的客户应位于哪里?'; +$lng['serversettings']['logfiles_directory']['title'] = '登陆文件目录'; +$lng['serversettings']['logfiles_directory']['description'] = '所有的登陆文件应位于哪里'; +$lng['serversettings']['ipaddress']['title'] = 'IP地址'; +$lng['serversettings']['ipaddress']['description'] = '这个服务器IP地址是什么?'; +$lng['serversettings']['hostname']['title'] = '主机名'; +$lng['serversettings']['hostname']['description'] = '这个服务器的主机名是什么?'; +$lng['serversettings']['apachereload_command']['title'] = '阿帕奇重新读取命令'; +$lng['serversettings']['apachereload_command']['description'] = '被读取的阿帕奇文稿叫什么名字'; +$lng['serversettings']['bindconf_directory']['title'] = '连接配置目录'; +$lng['serversettings']['bindconf_directory']['description'] = '连接配置数据位于哪里?'; +$lng['serversettings']['bindreload_command']['title'] = '连接-重新读取命令'; +$lng['serversettings']['bindreload_command']['description'] = '连接的重置文本叫作什么'; +$lng['serversettings']['binddefaultzone']['title'] = '连接-默认区域'; +$lng['serversettings']['binddefaultzone']['description'] = '所有域的默认区域叫作什么?'; +$lng['serversettings']['vmail_uid']['title'] = '邮件UID'; +$lng['serversettings']['vmail_uid']['description'] = '邮件应该有哪些UID'; +$lng['serversettings']['vmail_gid']['title'] = '邮件Gid'; +$lng['serversettings']['vmail_gid']['description'] = '邮件应该有哪些Gid?'; +$lng['serversettings']['vmail_homedir']['title'] = '邮件地址目录'; +$lng['serversettings']['vmail_homedir']['description'] = '邮件应该位于哪里?'; +$lng['serversettings']['adminmail']['title'] = '发信人地址'; +$lng['serversettings']['adminmail']['description'] = '来自调查对象的邮件发信人地址是什么?'; +$lng['serversettings']['phpmyadmin_url']['title'] = 'phpMyAdmin地址'; +$lng['serversettings']['phpmyadmin_url']['description'] = 'phpMyAdmin位于哪里?'; +$lng['serversettings']['webmail_url']['title'] = '网络邮件的URL'; +$lng['serversettings']['webmail_url']['description'] = '网络邮件放在哪里?'; +$lng['serversettings']['webftp_url']['title'] = '网络FTP的URL'; +$lng['serversettings']['webftp_url']['description'] = '网络FTP放在哪里?'; +$lng['serversettings']['language']['description'] = '您的标准语言是什么语?'; +$lng['serversettings']['maxloginattempts']['title'] = '最多登陆次数'; +$lng['serversettings']['maxloginattempts']['description'] = '最多登陆次数直到帐户失效'; +$lng['serversettings']['deactivatetime']['title'] = '帐户失效时间'; +$lng['serversettings']['deactivatetime']['description'] = '帐户失效时间(以秒计算)'; +$lng['serversettings']['pathedit']['title'] = '路径输入方法'; +$lng['serversettings']['pathedit']['description'] = '路径是通过下拉菜单选择,还是自行输入?'; + +/** + * ADDED BETWEEN 1.2.12 and 1.2.13 + */ + +$lng['admin']['cronlastrun'] = '定时执行程序的最后一次执行'; +$lng['serversettings']['paging']['title'] = '每页进入次数'; +$lng['serversettings']['paging']['description'] = '一页上应该显示多少次 进入?(0 =无效分页)'; +$lng['error']['ipstillhasdomains'] = '你想要删除的IP/ 端口连接仍然占有分 配给他的域,在删除此IP/端口连接之前,请把这些域分配给其他IP/端口连接.'; +$lng['error']['cantdeletedefaultip'] = '你不能删除默认的分销商IP/端口连 接, 请在删除这个IP/端口连接前为分销商另设置默认IP/端口连接.'; +$lng['error']['cantdeletesystemip'] = '你不能删除系统IP, 你可以为系统IP 另生成一个新的IP/端口连接, 或者改变系统IP.'; +$lng['error']['myipaddress'] = '\'IP\''; +$lng['error']['myport'] = '\'端口\''; +$lng['error']['myipdefault'] = '你需要选择一个IP/端口连接并设为默认值.'; +$lng['error']['myipnotdouble'] = '这一IP/端口连接已存在.'; +$lng['question']['admin_ip_reallydelete'] = '你真的决定删除IP地址 %s?'; +$lng['admin']['ipsandports']['ipsandports'] = '多个IP和端口'; +$lng['admin']['ipsandports']['add'] = '添加IP/端口'; +$lng['admin']['ipsandports']['edit'] = '编辑IP/端口'; +$lng['admin']['ipsandports']['ipandport'] = 'IP/端口'; +$lng['admin']['ipsandports']['ip'] = 'IP'; +$lng['admin']['ipsandports']['port'] = '端口'; + +// ADDED IN 1.2.13-rc3 + +$lng['error']['cantchangesystemip'] = '你不能改变最近用过的系统IP,要么生成一个新的IP/端口组合, 要么改变系统IP.'; +$lng['question']['admin_domain_reallydocrootoutofcustomerroot'] = '你确定你想要这个域的文件源生成于客户的客户根目录之外?'; + +// ADDED IN 1.2.14-rc1 + +$lng['admin']['memorylimitdisabled'] = '关闭'; +$lng['error']['loginnameissystemaccount'] = '你不能生成与系统帐号相似的帐户. 请另输入一个帐户名'; +$lng['domain']['openbasedirpath'] = '公开基址目录路径'; +$lng['domain']['docroot'] = '来自上一信息组的路径'; +$lng['domain']['homedir'] = '家目录'; +$lng['admin']['valuemandatory'] = '此值为强制性的'; +$lng['admin']['valuemandatorycompany'] = '"姓"与"名"或者"公司名"为必填项'; +$lng['menue']['main']['username'] = '以: 登录 '; +$lng['panel']['urloverridespath'] = 'URL (覆盖路径)'; +$lng['panel']['pathorurl'] = '路径或URL'; +$lng['error']['sessiontimeoutiswrong'] = '只容许数字的"对话超时".'; +$lng['error']['maxloginattemptsiswrong'] = '只容许数字的"登录尝试最大值".'; +$lng['error']['deactivatetimiswrong'] = '只容许数字的"停用时间".'; +$lng['error']['accountprefixiswrong'] = '"客户前缀"错误.'; +$lng['error']['mysqlprefixiswrong'] = '"SQL前缀"错误.'; +$lng['error']['ftpprefixiswrong'] = '"FTP前缀"错误.'; +$lng['error']['ipiswrong'] = '"IP地址"错误. 只容许有效的IP地址.'; +$lng['error']['vmailuidiswrong'] = '"Mails-uid"错误. 只容许数字的UID.'; +$lng['error']['vmailgidiswrong'] = '"Mails-gid"错误. 只容许数字的GID.'; +$lng['error']['adminmailiswrong'] = '"寄件人地址"错误. 只容许有效的Email地址.'; +$lng['error']['pagingiswrong'] = '"每页记录"值错误. 只容许数字符号.'; +$lng['error']['phpmyadminiswrong'] = 'phpmyadmin-链接不是一个有效链接.'; +$lng['error']['webmailiswrong'] = 'WebMail-链接不是一个有效链接.'; +$lng['error']['webftpiswrong'] = 'WebFTP-链接不是一个有效链接.'; +$lng['domains']['hasaliasdomains'] = '有别名域'; +$lng['serversettings']['defaultip']['title'] = '默认IP/端口'; +$lng['serversettings']['defaultip']['description'] = '默认的IP/端口组合是什么?'; +$lng['domains']['statstics'] = '使用统计'; +$lng['panel']['ascending'] = '向上的'; +$lng['panel']['decending'] = '向下的'; +$lng['panel']['search'] = '搜寻'; +$lng['panel']['used'] = '已用'; + +// ADDED IN 1.2.14-rc3 + +$lng['panel']['translator'] = '翻译者'; + +// ADDED IN 1.2.14-rc4 + +$lng['error']['stringformaterror'] = '信息组"%s"值不是期望格式'; + +// ADDED in 1.2.15-svn1 + +$lng['admin']['serversoftware'] = '服务器软件'; +$lng['admin']['phpversion'] = 'php版本'; +$lng['admin']['phpmemorylimit'] = 'php内存限制'; +$lng['admin']['mysqlserverversion'] = 'mysql服务器版本'; +$lng['admin']['mysqlclientversion'] = 'mysql客户端版本'; +$lng['admin']['webserverinterface'] = '网页服务器接口'; + +?> diff --git a/scripts/cron_apsinstaller.php b/scripts/cron_apsinstaller.php index c1961f5a..0e213e5c 100644 --- a/scripts/cron_apsinstaller.php +++ b/scripts/cron_apsinstaller.php @@ -1,27 +1,27 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Cron - * @version $Id: cron_apsinstaller.php 2724 2009-06-07 14:18:02Z flo $ - * @todo - */ - -$needrootdb = true; -require (dirname(__FILE__) . '/../lib/cron_init.php'); -$Aps = new ApsInstaller($settings, $db, $db_root); -$Aps->InstallHandler(); -require (dirname(__FILE__) . '/../lib/cron_shutdown.php'); - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Cron + * @version $Id: cron_apsinstaller.php 2724 2009-06-07 14:18:02Z flo $ + * @todo + */ + +$needrootdb = true; +require (dirname(__FILE__) . '/../lib/cron_init.php'); +$Aps = new ApsInstaller($settings, $db, $db_root); +$Aps->InstallHandler(); +require (dirname(__FILE__) . '/../lib/cron_shutdown.php'); + ?> \ No newline at end of file diff --git a/scripts/cron_apsupdater.php b/scripts/cron_apsupdater.php index 55afd353..26a95cce 100644 --- a/scripts/cron_apsupdater.php +++ b/scripts/cron_apsupdater.php @@ -1,27 +1,27 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package Cron - * @version $Id: cron_apsupdater.php 2724 2009-06-07 14:18:02Z flo $ - * @todo - */ - -$needrootdb = false; -require (dirname(__FILE__) . '/../lib/cron_init.php'); -$Aps = new ApsUpdater($db); -$Aps->UpdateHandler(); -require (dirname(__FILE__) . '/../lib/cron_shutdown.php'); - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package Cron + * @version $Id: cron_apsupdater.php 2724 2009-06-07 14:18:02Z flo $ + * @todo + */ + +$needrootdb = false; +require (dirname(__FILE__) . '/../lib/cron_init.php'); +$Aps = new ApsUpdater($db); +$Aps->UpdateHandler(); +require (dirname(__FILE__) . '/../lib/cron_shutdown.php'); + ?> \ No newline at end of file diff --git a/scripts/cron_autoresponder.php b/scripts/cron_autoresponder.php index f268797b..c367d74a 100644 --- a/scripts/cron_autoresponder.php +++ b/scripts/cron_autoresponder.php @@ -1,229 +1,229 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_autoresponder.php 2724 2009-06-07 14:18:02Z flo $ - * @todo skip mail parsing after x bytes for large mails - * implement start and end date for autoresponder mails - */ - -$needrootdb = false; -require (dirname(__FILE__) . '/../lib/cron_init.php'); -$mail = new PHPMailer(); - -//dont do anything when module is disabled - -if((int)$settings['autoresponder']['autoresponder_active'] == 0) -{ - include ($pathtophpfiles . '/lib/cron_shutdown.php'); - return; -} - -//only send autoresponder to mails which were delivered since last run - -if((int)$settings['autoresponder']['last_autoresponder_run'] == 0) -{ - //mails from last 5 minutes, otherwise all mails will be parsed -> mailbomb prevention - - $cycle = 300; -} -else -{ - $cycle = time() - (int)$settings['autoresponder']['last_autoresponder_run']; - - //prevent mailbombs when cycle is bigger than two days - - if($cycle > (2 * 60 * 60 * 24))$cycle = (60 * 60 * 24); -} - -$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value` = '" . (int)time() . "' WHERE `settinggroup` = 'autoresponder' AND `varname` = 'last_autoresponder_run'"); - -/* -//can be used for later usage if autoresponders should be only active in a defined period - -//This query has to disable every autoresponder entry which ended in the past -$db->query("UPDATE `autoresponder` SET `enabled` = 0 WHERE `to` < CURDATE()"); - -//This query has to activate every autoresponder entry which starts today -$db->query("UPDATE `autoresponder` SET `enabled` = 1 WHERE `from` = CURDATE()"); -*/ -//getting all mailboxes where autoresponders are active and configured - -$result = $db->query("SELECT * FROM `" . TABLE_MAIL_AUTORESPONDER . "` INNER JOIN `" . TABLE_MAIL_USERS . "` ON `" . TABLE_MAIL_AUTORESPONDER . "`.`email` = `" . TABLE_MAIL_USERS . "`.`email` WHERE `enabled` = 1"); - -if($db->num_rows($result) > 0) -{ - while($row = $db->fetch_array($result)) - { - $path = $row['homedir'] . $row['maildir'] . "new/"; - $files = scandir($path); - foreach($files as $entry) - { - if($entry == '.' - || $entry == '..')continue; - - if(time() - filemtime($path . $entry) - $cycle <= 0) - { - $content = file($path . $entry); - - //error reading mail contents - - if(count($content) == 0) - { - $cronlog->logAction(LOG_ERROR, LOG_WARNING, "Unable to read mail from maildir: " . $entry); - continue; - } - - $match = array(); - $from = ''; - $to = ''; - $sender = ''; - $spam = false; - foreach($content as $line) - { - // header ends on first empty line, skip rest of mail - - if(strlen(rtrim($line)) == 0) - { - break; - } - - //fetching from field - - if(!strlen($from) - && preg_match("/^From:(.+)<(.*)>$/", $line, $match)) - { - $from = $match[2]; - } - elseif(!strlen($from) - && preg_match("/^From:\s+(.*@.*)$/", $line, $match)) - { - $from = $match[1]; - } - - //fetching to field - - if(!strlen($to) - && preg_match("/^To:(.+)<(.*)>$/", $line, $match)) - { - $to = $match[2]; - } - elseif(!strlen($to) - && preg_match("/To:\s+(.*@.*)$/", $line, $match)) - { - $to = $match[1]; - } - - //fetching sender field - - if(!strlen($to) - && preg_match("/^Sender:(.+)<(.*)>$/", $line, $match)) - { - $sender = $match[2]; - } - elseif(!strlen($to) - && preg_match("/Sender:\s+(.*@.*)$/", $line, $match)) - { - $sender = $match[1]; - } - - //check for amavis/spamassassin spam headers - - if(preg_match("/^X-Spam-Status: (Yes|No)(.*)$/", $line, $match)) - { - if($match[1] == 'Yes')$spam = true; - } - - //check for precedence header - if(preg_match("/^Precedence: (bulk|list|junk)(.*)$/", $line, $match)) - { - // use the spam flag to skip reply - $spam = true; - } - } - - //skip mail when marked as spam - - if($spam == true)continue; - - //error while parsing mail - - if($to == '' - || $from == '') - { - $cronlog->logAction(LOG_ERROR, LOG_WARNING, "No valid headers found in mail to parse: " . $entry); - continue; - } - - //important! prevent mailbombs when mail comes from a maildaemon/mailrobot - //robot/daemon mails must go to Sender: field in envelope header - //refers to "Das Postfix-Buch" / RFC 2822 - - if($sender != '')$from = $sender; - - //make message valid to email format - - $message = str_replace("\r\n", "\n", $row['message']); - - //check if mail is already an answer - - $fullcontent = implode("", $content); - - if(strstr($fullcontent, $message)) - { - continue; - } - - //send mail with mailer class - - $mail->From = $to; - $mail->FromName = $to; - $mail->Subject = $row['subject']; - $mail->Body = html_entity_decode($message); - $mail->AddAddress($from, $from); - $mail->AddCustomHeader('Precedence: bulk'); - - if(!$mail->Send()) - { - if($mail->ErrorInfo != '') - { - $mailerr_msg = $mail->ErrorInfo; - } - else - { - $mailerr_msg = $from; - } - - $cronlog->logAction(LOG_ERROR, LOG_WARNING, "Error sending autoresponder mail: " . $mailerr_msg); - } - - $mail->ClearAddresses(); - } - } - } -} - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_autoresponder.php 2724 2009-06-07 14:18:02Z flo $ + * @todo skip mail parsing after x bytes for large mails + * implement start and end date for autoresponder mails + */ + +$needrootdb = false; +require (dirname(__FILE__) . '/../lib/cron_init.php'); +$mail = new PHPMailer(); + +//dont do anything when module is disabled + +if((int)$settings['autoresponder']['autoresponder_active'] == 0) +{ + include ($pathtophpfiles . '/lib/cron_shutdown.php'); + return; +} + +//only send autoresponder to mails which were delivered since last run + +if((int)$settings['autoresponder']['last_autoresponder_run'] == 0) +{ + //mails from last 5 minutes, otherwise all mails will be parsed -> mailbomb prevention + + $cycle = 300; +} +else +{ + $cycle = time() - (int)$settings['autoresponder']['last_autoresponder_run']; + + //prevent mailbombs when cycle is bigger than two days + + if($cycle > (2 * 60 * 60 * 24))$cycle = (60 * 60 * 24); +} + +$db->query("UPDATE `" . TABLE_PANEL_SETTINGS . "` SET `value` = '" . (int)time() . "' WHERE `settinggroup` = 'autoresponder' AND `varname` = 'last_autoresponder_run'"); + +/* +//can be used for later usage if autoresponders should be only active in a defined period + +//This query has to disable every autoresponder entry which ended in the past +$db->query("UPDATE `autoresponder` SET `enabled` = 0 WHERE `to` < CURDATE()"); + +//This query has to activate every autoresponder entry which starts today +$db->query("UPDATE `autoresponder` SET `enabled` = 1 WHERE `from` = CURDATE()"); +*/ +//getting all mailboxes where autoresponders are active and configured + +$result = $db->query("SELECT * FROM `" . TABLE_MAIL_AUTORESPONDER . "` INNER JOIN `" . TABLE_MAIL_USERS . "` ON `" . TABLE_MAIL_AUTORESPONDER . "`.`email` = `" . TABLE_MAIL_USERS . "`.`email` WHERE `enabled` = 1"); + +if($db->num_rows($result) > 0) +{ + while($row = $db->fetch_array($result)) + { + $path = $row['homedir'] . $row['maildir'] . "new/"; + $files = scandir($path); + foreach($files as $entry) + { + if($entry == '.' + || $entry == '..')continue; + + if(time() - filemtime($path . $entry) - $cycle <= 0) + { + $content = file($path . $entry); + + //error reading mail contents + + if(count($content) == 0) + { + $cronlog->logAction(LOG_ERROR, LOG_WARNING, "Unable to read mail from maildir: " . $entry); + continue; + } + + $match = array(); + $from = ''; + $to = ''; + $sender = ''; + $spam = false; + foreach($content as $line) + { + // header ends on first empty line, skip rest of mail + + if(strlen(rtrim($line)) == 0) + { + break; + } + + //fetching from field + + if(!strlen($from) + && preg_match("/^From:(.+)<(.*)>$/", $line, $match)) + { + $from = $match[2]; + } + elseif(!strlen($from) + && preg_match("/^From:\s+(.*@.*)$/", $line, $match)) + { + $from = $match[1]; + } + + //fetching to field + + if(!strlen($to) + && preg_match("/^To:(.+)<(.*)>$/", $line, $match)) + { + $to = $match[2]; + } + elseif(!strlen($to) + && preg_match("/To:\s+(.*@.*)$/", $line, $match)) + { + $to = $match[1]; + } + + //fetching sender field + + if(!strlen($to) + && preg_match("/^Sender:(.+)<(.*)>$/", $line, $match)) + { + $sender = $match[2]; + } + elseif(!strlen($to) + && preg_match("/Sender:\s+(.*@.*)$/", $line, $match)) + { + $sender = $match[1]; + } + + //check for amavis/spamassassin spam headers + + if(preg_match("/^X-Spam-Status: (Yes|No)(.*)$/", $line, $match)) + { + if($match[1] == 'Yes')$spam = true; + } + + //check for precedence header + if(preg_match("/^Precedence: (bulk|list|junk)(.*)$/", $line, $match)) + { + // use the spam flag to skip reply + $spam = true; + } + } + + //skip mail when marked as spam + + if($spam == true)continue; + + //error while parsing mail + + if($to == '' + || $from == '') + { + $cronlog->logAction(LOG_ERROR, LOG_WARNING, "No valid headers found in mail to parse: " . $entry); + continue; + } + + //important! prevent mailbombs when mail comes from a maildaemon/mailrobot + //robot/daemon mails must go to Sender: field in envelope header + //refers to "Das Postfix-Buch" / RFC 2822 + + if($sender != '')$from = $sender; + + //make message valid to email format + + $message = str_replace("\r\n", "\n", $row['message']); + + //check if mail is already an answer + + $fullcontent = implode("", $content); + + if(strstr($fullcontent, $message)) + { + continue; + } + + //send mail with mailer class + + $mail->From = $to; + $mail->FromName = $to; + $mail->Subject = $row['subject']; + $mail->Body = html_entity_decode($message); + $mail->AddAddress($from, $from); + $mail->AddCustomHeader('Precedence: bulk'); + + if(!$mail->Send()) + { + if($mail->ErrorInfo != '') + { + $mailerr_msg = $mail->ErrorInfo; + } + else + { + $mailerr_msg = $from; + } + + $cronlog->logAction(LOG_ERROR, LOG_WARNING, "Error sending autoresponder mail: " . $mailerr_msg); + } + + $mail->ClearAddresses(); + } + } + } +} + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + +?> diff --git a/scripts/cron_legacy.php b/scripts/cron_legacy.php index 6b132fea..d5d8e7d5 100644 --- a/scripts/cron_legacy.php +++ b/scripts/cron_legacy.php @@ -1,81 +1,81 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_legacy.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! (Note: This "header" also establishes a mysql-root- - * connection, if you don't need it, see for the header in cron_tasks.php) - */ - -$needrootdb = true; -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * Check if table exists, otherwise create it - */ - -$tables = getTables($db); - -if(!isset($tables[TABLE_PANEL_CRONSCRIPT]) - || !is_array($tables[TABLE_PANEL_CRONSCRIPT])) -{ - $db->query('CREATE TABLE `' . TABLE_PANEL_CRONSCRIPT . '` ( `id` int(11) unsigned NOT NULL auto_increment, `file` varchar(255) NOT NULL default \'\', PRIMARY KEY (`id`) ) TYPE=MyISAM ; '); -} - -/** - * Backend Wrapper - */ - -$query = 'SELECT * FROM `' . TABLE_PANEL_CRONSCRIPT . '` '; -$cronFileIncludeResult = $db->query($query); - -while($cronFileIncludeRow = $db->fetch_array($cronFileIncludeResult)) -{ - $cronFileIncludeFullPath = makeSecurePath($pathtophpfiles . '/scripts/' . $cronFileIncludeRow['file']); - - if(fileowner($cronFileIncludeFullPath) == fileowner($pathtophpfiles . '/scripts/' . $filename) - && filegroup($cronFileIncludeFullPath) == filegroup($pathtophpfiles . '/scripts/' . $filename)) - { - fwrite($debugHandler, 'Processing ...' . $cronFileIncludeFullPath . "\n"); - include_once $cronFileIncludeFullPath; - fwrite($debugHandler, 'Processing done!' . "\n"); - } - else - { - fwrite($debugHandler, 'WARNING! uid and/or gid of "' . $cronFileIncludeFullPath . '" and "' . $pathtophpfiles . '/scripts/' . $filename . '" don\'t match! Execution aborted!' . "\n"); - $keepLockFile = true; - } -} - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_legacy.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! (Note: This "header" also establishes a mysql-root- + * connection, if you don't need it, see for the header in cron_tasks.php) + */ + +$needrootdb = true; +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * Check if table exists, otherwise create it + */ + +$tables = getTables($db); + +if(!isset($tables[TABLE_PANEL_CRONSCRIPT]) + || !is_array($tables[TABLE_PANEL_CRONSCRIPT])) +{ + $db->query('CREATE TABLE `' . TABLE_PANEL_CRONSCRIPT . '` ( `id` int(11) unsigned NOT NULL auto_increment, `file` varchar(255) NOT NULL default \'\', PRIMARY KEY (`id`) ) TYPE=MyISAM ; '); +} + +/** + * Backend Wrapper + */ + +$query = 'SELECT * FROM `' . TABLE_PANEL_CRONSCRIPT . '` '; +$cronFileIncludeResult = $db->query($query); + +while($cronFileIncludeRow = $db->fetch_array($cronFileIncludeResult)) +{ + $cronFileIncludeFullPath = makeSecurePath($pathtophpfiles . '/scripts/' . $cronFileIncludeRow['file']); + + if(fileowner($cronFileIncludeFullPath) == fileowner($pathtophpfiles . '/scripts/' . $filename) + && filegroup($cronFileIncludeFullPath) == filegroup($pathtophpfiles . '/scripts/' . $filename)) + { + fwrite($debugHandler, 'Processing ...' . $cronFileIncludeFullPath . "\n"); + include_once $cronFileIncludeFullPath; + fwrite($debugHandler, 'Processing done!' . "\n"); + } + else + { + fwrite($debugHandler, 'WARNING! uid and/or gid of "' . $cronFileIncludeFullPath . '" and "' . $pathtophpfiles . '/scripts/' . $filename . '" don\'t match! Execution aborted!' . "\n"); + $keepLockFile = true; + } +} + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + ?> \ No newline at end of file diff --git a/scripts/cron_lighttp.htaccess.php b/scripts/cron_lighttp.htaccess.php index caa07727..f6270a7d 100644 --- a/scripts/cron_lighttp.htaccess.php +++ b/scripts/cron_lighttp.htaccess.php @@ -1,182 +1,182 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_lighttp.htaccess.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! - */ - -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * LOOK INTO EVERY CUSTOMER DIR TO SEE IF THERE ARE ANY .HTACCESS FILE TO "TRANSLATE" - */ - -if($settings['system']['webserver'] == 'lighttpd') -{ - fwrite($debugHandler, ' cron_lighttp.htaccess: Searching for .htaccess files to translate' . "\n"); - $lpath = makeCorrectDir(strrchr($settings['system']['apacheconf_vhost'], '/')); - $htaccessfh = @fopen($lpath . 'syscp-htaccess.conf', 'w'); - - if($htaccessfh !== false) - { - read_directory($settings['system']['documentroot_prefix'], 25, $htaccessfh); - } - else - { - fwrite($debugHandler, ' ERROR: Cannot open file ' . $lpath . 'syscp-htaccess.conf' . "\n"); - } -} -else -{ - fwrite($debugHandler, ' cron_lighttp.htaccess: You don\'t use Lighttpd, you do not have to run this cronscript!' . "\n"); -} - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - -/** - * FUNCTIONS - */ - -function read_directory($dir1 = null, $min_depth = 25, $htaccessfh = null) -{ - global $htaccessfh; - - if(!is_string($dir1)) - { - return false; - } - - $depth = explode("/", $dir1); - $current_depth = sizeof($depth); - - if($current_depth < $min_depth) - { - $min_depth = $current_depth; - } - - $dir = $dir1; - $dh = opendir($dir); - - while($file = readdir($dh)) - { - if(($file != ".") - && ($file != "..")) - { - $file = $dir . "/" . $file; - for ($i = 0;$i <= ($current_depth - $min_depth);$i++) - - // $file is sub-directory - - if($ddh = @opendir($file)) - { - read_directory($file); - } - else - { - if(strtolower($file) == '.htaccess') - { - parseHtaccess($file); - } - } - } - } - - closedir($dh); - return true; -} - -function parseHtaccess($file = null) -{ - global $debugHandler, $htaccessfh; - $htacc = @file_get_contents($file); - - if($htacc != "") - { - $htlines = array(); - $htlines = explode("\n", $htacc); - $userhasrewrites = false; - $userrewrites = array(); - $rule = array(); - foreach($htlines as $htl) - { - if(preg_match('/^RewriteEngine\ on$/si', $htl) !== null) - { - $userhasrewrites = true; - } - elseif(preg_match('/^RewriteRule\ +\^(.*)\$\(.*)$/si', $htl, $rule) !== null) - { - $regex = isset($rule[0]) ? $rule[0] : ''; - $relativeuri = isset($rule[1]) ? $rule[1] : ''; - - if($regex != '' - && $relativeuri != '') - { - $userrewrites[]['regex'] = $regex; - $userrewrites[]['relativeuri'] = $relativeuri; - } - } - } - - if($userhasrewrites) - { - fwrite($htaccessfh, '$PHYSICAL["path"] == "' . dirname($file) . '" {' . "\n"); - fwrite($htaccessfh, ' url.rewrite-once = (' . "\n"); - $count = 1; - $max = count($userrewrites); - foreach($userrewrites as $usrrw) - { - fwrite($htaccessfh, ' "^' . $usrrw['regex'] . '$" => "' . $usrrw['relativeuri'] . '"'); - - if($count < $max) - { - fwrite($htaccessfh, ',' . "\n"); - } - else - { - fwrite($htaccessfh, "\n"); - } - - $count++; - } - - fwrite($htaccessfh, ' )' . "\n"); - fwrite($htaccessfh, '}' . "\n"); - } - } - else - { - fwrite($debugHandler, ' WARNING: file ' . $file . ' seems to be empty or there was an error' . "\n"); - return; - } -} - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_lighttp.htaccess.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! + */ + +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * LOOK INTO EVERY CUSTOMER DIR TO SEE IF THERE ARE ANY .HTACCESS FILE TO "TRANSLATE" + */ + +if($settings['system']['webserver'] == 'lighttpd') +{ + fwrite($debugHandler, ' cron_lighttp.htaccess: Searching for .htaccess files to translate' . "\n"); + $lpath = makeCorrectDir(strrchr($settings['system']['apacheconf_vhost'], '/')); + $htaccessfh = @fopen($lpath . 'syscp-htaccess.conf', 'w'); + + if($htaccessfh !== false) + { + read_directory($settings['system']['documentroot_prefix'], 25, $htaccessfh); + } + else + { + fwrite($debugHandler, ' ERROR: Cannot open file ' . $lpath . 'syscp-htaccess.conf' . "\n"); + } +} +else +{ + fwrite($debugHandler, ' cron_lighttp.htaccess: You don\'t use Lighttpd, you do not have to run this cronscript!' . "\n"); +} + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + +/** + * FUNCTIONS + */ + +function read_directory($dir1 = null, $min_depth = 25, $htaccessfh = null) +{ + global $htaccessfh; + + if(!is_string($dir1)) + { + return false; + } + + $depth = explode("/", $dir1); + $current_depth = sizeof($depth); + + if($current_depth < $min_depth) + { + $min_depth = $current_depth; + } + + $dir = $dir1; + $dh = opendir($dir); + + while($file = readdir($dh)) + { + if(($file != ".") + && ($file != "..")) + { + $file = $dir . "/" . $file; + for ($i = 0;$i <= ($current_depth - $min_depth);$i++) + + // $file is sub-directory + + if($ddh = @opendir($file)) + { + read_directory($file); + } + else + { + if(strtolower($file) == '.htaccess') + { + parseHtaccess($file); + } + } + } + } + + closedir($dh); + return true; +} + +function parseHtaccess($file = null) +{ + global $debugHandler, $htaccessfh; + $htacc = @file_get_contents($file); + + if($htacc != "") + { + $htlines = array(); + $htlines = explode("\n", $htacc); + $userhasrewrites = false; + $userrewrites = array(); + $rule = array(); + foreach($htlines as $htl) + { + if(preg_match('/^RewriteEngine\ on$/si', $htl) !== null) + { + $userhasrewrites = true; + } + elseif(preg_match('/^RewriteRule\ +\^(.*)\$\(.*)$/si', $htl, $rule) !== null) + { + $regex = isset($rule[0]) ? $rule[0] : ''; + $relativeuri = isset($rule[1]) ? $rule[1] : ''; + + if($regex != '' + && $relativeuri != '') + { + $userrewrites[]['regex'] = $regex; + $userrewrites[]['relativeuri'] = $relativeuri; + } + } + } + + if($userhasrewrites) + { + fwrite($htaccessfh, '$PHYSICAL["path"] == "' . dirname($file) . '" {' . "\n"); + fwrite($htaccessfh, ' url.rewrite-once = (' . "\n"); + $count = 1; + $max = count($userrewrites); + foreach($userrewrites as $usrrw) + { + fwrite($htaccessfh, ' "^' . $usrrw['regex'] . '$" => "' . $usrrw['relativeuri'] . '"'); + + if($count < $max) + { + fwrite($htaccessfh, ',' . "\n"); + } + else + { + fwrite($htaccessfh, "\n"); + } + + $count++; + } + + fwrite($htaccessfh, ' )' . "\n"); + fwrite($htaccessfh, '}' . "\n"); + } + } + else + { + fwrite($debugHandler, ' WARNING: file ' . $file . ' seems to be empty or there was an error' . "\n"); + return; + } +} + +?> diff --git a/scripts/cron_tasks.inc.dns.10.bind.php b/scripts/cron_tasks.inc.dns.10.bind.php index 33833f92..f954e8ff 100644 --- a/scripts/cron_tasks.inc.dns.10.bind.php +++ b/scripts/cron_tasks.inc.dns.10.bind.php @@ -1,337 +1,337 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_tasks.inc.dns.10.bind.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/* - * This script creates the php.ini's used by mod_suPHP+php-cgi - */ - -if(@php_sapi_name() != 'cli' - && @php_sapi_name() != 'cgi' - && @php_sapi_name() != 'cgi-fcgi') -{ - die('This script only works in the shell.'); -} - -class bind -{ - public $db = false; - public $logger = false; - public $debugHandler = false; - public $settings = array(); - public $nameservers = array(); - public $mxservers = array(); - - public function __construct($db, $logger, $debugHandler, $settings) - { - $this->db = $db; - $this->logger = $logger; - $this->debugHandler = $debugHandler; - $this->settings = $settings; - - if($this->settings['system']['nameservers'] != '') - { - $nameservers = explode(',', $this->settings['system']['nameservers']); - foreach($nameservers as $nameserver) - { - $nameserver_ip = gethostbyname(trim($nameserver)); - - if(substr($nameserver, -1, 1) != '.') - { - $nameserver.= '.'; - } - - $this->nameservers[] = array( - 'hostname' => trim($nameserver), - 'ip' => trim($nameserver_ip) - ); - } - } - - if($this->settings['system']['mxservers'] != '') - { - $mxservers = explode(',', $this->settings['system']['mxservers']); - foreach($mxservers as $mxserver) - { - if(substr($mxserver, -1, 1) != '.') - { - $mxserver.= '.'; - } - - $this->mxservers[] = $mxserver; - } - } - } - - public function writeConfigs() - { - fwrite($this->debugHandler, ' cron_tasks: Task4 started - Rebuilding syscp_bind.conf' . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 started - Rebuilding syscp_bind.conf'); - - if(!file_exists(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))) - { - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))); - safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))); - } - - $known_filenames = array(); - - $bindconf_file = '# ' . $this->settings['system']['bindconf_directory'] . 'syscp_bind.conf' . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n"; - $result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`iswildcarddomain`, `d`.`customerid`, `d`.`zonefile`, `d`.`bindserial`, `d`.`dkim`, `d`.`dkim_id`, `d`.`dkim_pubkey`, `ip`.`ip`, `c`.`loginname`, `c`.`guid` FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) LEFT JOIN `" . TABLE_PANEL_IPSANDPORTS . "` AS `ip` ON(`d`.`ipandport`=`ip`.`id`) WHERE `d`.`isbinddomain` = '1' ORDER BY `d`.`domain` ASC"); - - while($domain = $this->db->fetch_array($result_domains)) - { - fwrite($this->debugHandler, ' cron_tasks: Task4 - Writing ' . $domain['id'] . '::' . $domain['domain'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Writing ' . $domain['id'] . '::' . $domain['domain']); - - if($domain['zonefile'] == '') - { - $zonefile = $this->generateZone($domain); - $domain['zonefile'] = 'domains/' . $domain['domain'] . '.zone'; - $zonefile_name = makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']); - $known_filenames[] = basename($zonefile_name); - $zonefile_handler = fopen($zonefile_name, 'w'); - fwrite($zonefile_handler, $zonefile); - fclose($zonefile_handler); - fwrite($this->debugHandler, ' cron_tasks: Task4 - `' . $zonefile_name . '` zone written' . "\n"); - } - - $bindconf_file.= '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; - $bindconf_file.= 'zone "' . $domain['domain'] . '" in {' . "\n"; - $bindconf_file.= ' type master;' . "\n"; - $bindconf_file.= ' file "' . makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']) . '";' . "\n"; - $bindconf_file.= ' allow-query { any; };' . "\n"; - - if(count($this->nameservers) > 0) - { - $bindconf_file.= ' allow-transfer {' . "\n"; - for ($i = 0;$i < count($this->nameservers);$i++) - { - $bindconf_file.= ' ' . $this->nameservers[$i]['ip'] . ';' . "\n"; - } - - $bindconf_file.= ' };' . "\n"; - } - - $bindconf_file.= '};' . "\n"; - $bindconf_file.= "\n"; - } - - $bindconf_file_handler = fopen(makeCorrectFile($this->settings['system']['bindconf_directory'] . '/syscp_bind.conf'), 'w'); - fwrite($bindconf_file_handler, $bindconf_file); - fclose($bindconf_file_handler); - fwrite($this->debugHandler, ' cron_tasks: Task4 - syscp_bind.conf written' . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'syscp_bind.conf written'); - safe_exec($this->settings['system']['bindreload_command']); - fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded'); - $domains_dir = makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'); - - if(file_exists($domains_dir) - && is_dir($domains_dir)) - { - $domain_file_dirhandle = opendir($domains_dir); - - while(false !== ($domain_filename = readdir($domain_file_dirhandle))) - { - if($domain_filename != '.' - && $domain_filename != '..' - && !in_array($domain_filename, $known_filenames) - && file_exists(makeCorrectFile($domains_dir . '/' . $domain_filename))) - { - fwrite($this->debugHandler, ' cron_tasks: Task4 - unlinking ' . $domain_filename . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'Deleting ' . $domain_filename); - unlink(makeCorrectFile($domains_dir . '/' . $domain_filename)); - } - } - } - } - - protected function generateZone($domain) - { - if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) - { - $ip_a_record = 'A ' . $domain['ip']; - } - elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ip_a_record = 'AAAA ' . $domain['ip']; - } - else - { - return ''; - } - - $date = date('Ymd'); - $bindserial = (preg_match('/^' . $date . '/', $domain['bindserial']) ? $domain['bindserial'] + 1 : $date . '00'); - $this->db->query('UPDATE `' . TABLE_PANEL_DOMAINS . '` SET `bindserial`=\'' . $bindserial . '\' WHERE `id`=\'' . $domain['id'] . '\''); - $zonefile = '$TTL 1W' . "\n"; - - if(count($this->nameservers) == 0) - { - $zonefile.= '@ IN SOA ns ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n"; - } - else - { - $zonefile.= '@ IN SOA ' . $this->nameservers[0]['hostname'] . ' ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n"; - } - - $zonefile.= ' ' . $bindserial . ' ; serial' . "\n" . ' 8H ; refresh' . "\n" . ' 2H ; retry' . "\n" . ' 1W ; expiry' . "\n" . ' 11h) ; minimum' . "\n"; - - if(count($this->nameservers) == 0) - { - $zonefile.= '@ IN NS ns' . "\n" . 'ns IN ' . $ip_a_record . "\n"; - } - else - { - foreach($this->nameservers as $nameserver) - { - $zonefile.= '@ IN NS ' . trim($nameserver['hostname']) . "\n"; - } - } - - if(count($this->mxservers) == 0) - { - $zonefile.= '@ IN MX 10 mail' . "\n" . 'mail IN ' . $ip_a_record . "\n"; - } - else - { - foreach($this->mxservers as $mxserver) - { - $zonefile.= '@ IN MX ' . trim($mxserver) . "\n"; - } - } - - $zonefile.= '@ IN TXT "v=spf1 a mx -all"' . "\n"; - - if($this->settings['dkim']['use_dkim'] == '1' - && $domain['dkim'] == '1' - && $domain['dkim_pubkey'] != '') - { - $zonefile.= 'dkim_' . $domain['dkim_id'] . '._domainkey IN TXT "v=DKIM1; k=rsa; p=' . trim(preg_replace('/-----BEGIN PUBLIC KEY-----(.+)-----END PUBLIC KEY-----/s', '$1', str_replace("\n", '', $domain['dkim_pubkey']))) . '"' . "\n"; - } - - $nssubdomains = $this->db->query('SELECT `domain` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `isbinddomain`=\'1\' AND `domain` LIKE \'%.' . $domain['domain'] . '\''); - - while($nssubdomain = $this->db->fetch_array($nssubdomains)) - { - if(preg_match('/^[^\.]+\.' . preg_quote($domain['domain'], '/') . '/', $nssubdomain['domain'])) - { - $nssubdomain = str_replace('.' . $domain['domain'], '', $nssubdomain['domain']); - - if(count($this->nameservers) == 0) - { - $zonefile.= $nssubdomain . ' IN NS ns.' . $nssubdomain . "\n"; - } - else - { - foreach($this->nameservers as $nameserver) - { - $zonefile.= $nssubdomain . ' IN NS ' . trim($nameserver['hostname']) . "\n"; - } - } - } - } - - $zonefile.= '@ IN ' . $ip_a_record . "\n"; - $zonefile.= 'www IN ' . $ip_a_record . "\n"; - - if($domain['iswildcarddomain'] == '1') - { - $zonefile.= '* IN ' . $ip_a_record . "\n"; - } - - $subdomains = $this->db->query('SELECT `d`.`domain`, `ip`.`ip` AS `ip` FROM `' . TABLE_PANEL_DOMAINS . '` `d`, `' . TABLE_PANEL_IPSANDPORTS . '` `ip` WHERE `parentdomainid`=\'' . $domain['id'] . '\' AND `d`.`ipandport`=`ip`.`id`'); - - while($subdomain = $this->db->fetch_array($subdomains)) - { - $zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n"; - } - - return $zonefile; - } - - public function writeDKIMconfigs() - { - if($this->settings['dkim']['use_dkim'] == '1') - { - if(!file_exists(makeCorrectDir($this->settings['dkim']['dkim_prefix']))) - { - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix']))); - safe_exec('mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix']))); - } - - $dkimdomains = ''; - $dkimkeys = ''; - $result_domains = $this->db->query("SELECT `id`, `domain`, `dkim`, `dkim_id`, `dkim_pubkey`, `dkim_privkey` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `dkim` = '1' ORDER BY `id` ASC"); - - while($domain = $this->db->fetch_array($result_domains)) - { - $privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private'); - $pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public'); - - if($domain['dkim_privkey'] == '' - || $domain['dkim_pubkey'] == '') - { - $max_dkim_id = $this->db->query_first("SELECT MAX(`dkim_id`) as `max_dkim_id` FROM `" . TABLE_PANEL_DOMAINS . "`"); - $domain['dkim_id'] = (int)$max_dkim_id['max_dkim_id'] + 1; - $privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private'); - safe_exec('openssl genrsa -out ' . escapeshellarg($privkey_filename) . ' 1024'); - $domain['dkim_privkey'] = file_get_contents($privkey_filename); - safe_exec("chmod 0640 " . escapeshellarg($privkey_filename)); - $pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public'); - safe_exec('openssl rsa -in ' . escapeshellarg($privkey_filename) . ' -pubout -outform pem -out ' . escapeshellarg($pubkey_filename)); - $domain['dkim_pubkey'] = file_get_contents($pubkey_filename); - safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename)); - $this->db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `dkim_id` = '" . $domain['dkim_id'] . "', `dkim_privkey` = '" . $domain['dkim_privkey'] . "', `dkim_pubkey` = '" . $domain['dkim_pubkey'] . "' WHERE `id` = '" . $domain['id'] . "'"); - } - - if(!file_exists($privkey_filename) - && $domain['dkim_privkey'] != '') - { - $privkey_file_handler = fopen($privkey_filename, "w"); - fwrite($privkey_file_handler, $domain['dkim_privkey']); - fclose($privkey_file_handler); - safe_exec("chmod 0640 " . escapeshellarg($privkey_filename)); - } - - if(!file_exists($pubkey_filename) - && $domain['dkim_pubkey'] != '') - { - $pubkey_file_handler = fopen($pubkey_filename, "w"); - fwrite($pubkey_file_handler, $domain['dkim_pubkey']); - fclose($pubkey_file_handler); - safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename)); - } - - $dkimdomains.= $domain['domain'] . "\n"; - $dkimkeys.= "*@" . $domain['domain'] . ":" . $domain['domain'] . ":" . $privkey_filename . "\n"; - } - - $dkimdomains_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_domains']); - $dkimdomains_file_handler = fopen($dkimdomains_filename, "w"); - fwrite($dkimdomains_file_handler, $dkimdomains); - fclose($dkimdomains_file_handler); - $dkimkeys_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_dkimkeys']); - $dkimkeys_file_handler = fopen($dkimkeys_filename, "w"); - fwrite($dkimkeys_file_handler, $dkimkeys); - fclose($dkimkeys_file_handler); - } - } -} - + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_tasks.inc.dns.10.bind.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/* + * This script creates the php.ini's used by mod_suPHP+php-cgi + */ + +if(@php_sapi_name() != 'cli' + && @php_sapi_name() != 'cgi' + && @php_sapi_name() != 'cgi-fcgi') +{ + die('This script only works in the shell.'); +} + +class bind +{ + public $db = false; + public $logger = false; + public $debugHandler = false; + public $settings = array(); + public $nameservers = array(); + public $mxservers = array(); + + public function __construct($db, $logger, $debugHandler, $settings) + { + $this->db = $db; + $this->logger = $logger; + $this->debugHandler = $debugHandler; + $this->settings = $settings; + + if($this->settings['system']['nameservers'] != '') + { + $nameservers = explode(',', $this->settings['system']['nameservers']); + foreach($nameservers as $nameserver) + { + $nameserver_ip = gethostbyname(trim($nameserver)); + + if(substr($nameserver, -1, 1) != '.') + { + $nameserver.= '.'; + } + + $this->nameservers[] = array( + 'hostname' => trim($nameserver), + 'ip' => trim($nameserver_ip) + ); + } + } + + if($this->settings['system']['mxservers'] != '') + { + $mxservers = explode(',', $this->settings['system']['mxservers']); + foreach($mxservers as $mxserver) + { + if(substr($mxserver, -1, 1) != '.') + { + $mxserver.= '.'; + } + + $this->mxservers[] = $mxserver; + } + } + } + + public function writeConfigs() + { + fwrite($this->debugHandler, ' cron_tasks: Task4 started - Rebuilding syscp_bind.conf' . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Task4 started - Rebuilding syscp_bind.conf'); + + if(!file_exists(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))) + { + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))); + safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'))); + } + + $known_filenames = array(); + + $bindconf_file = '# ' . $this->settings['system']['bindconf_directory'] . 'syscp_bind.conf' . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n"; + $result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`iswildcarddomain`, `d`.`customerid`, `d`.`zonefile`, `d`.`bindserial`, `d`.`dkim`, `d`.`dkim_id`, `d`.`dkim_pubkey`, `ip`.`ip`, `c`.`loginname`, `c`.`guid` FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) LEFT JOIN `" . TABLE_PANEL_IPSANDPORTS . "` AS `ip` ON(`d`.`ipandport`=`ip`.`id`) WHERE `d`.`isbinddomain` = '1' ORDER BY `d`.`domain` ASC"); + + while($domain = $this->db->fetch_array($result_domains)) + { + fwrite($this->debugHandler, ' cron_tasks: Task4 - Writing ' . $domain['id'] . '::' . $domain['domain'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Writing ' . $domain['id'] . '::' . $domain['domain']); + + if($domain['zonefile'] == '') + { + $zonefile = $this->generateZone($domain); + $domain['zonefile'] = 'domains/' . $domain['domain'] . '.zone'; + $zonefile_name = makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']); + $known_filenames[] = basename($zonefile_name); + $zonefile_handler = fopen($zonefile_name, 'w'); + fwrite($zonefile_handler, $zonefile); + fclose($zonefile_handler); + fwrite($this->debugHandler, ' cron_tasks: Task4 - `' . $zonefile_name . '` zone written' . "\n"); + } + + $bindconf_file.= '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; + $bindconf_file.= 'zone "' . $domain['domain'] . '" in {' . "\n"; + $bindconf_file.= ' type master;' . "\n"; + $bindconf_file.= ' file "' . makeCorrectFile($this->settings['system']['bindconf_directory'] . '/' . $domain['zonefile']) . '";' . "\n"; + $bindconf_file.= ' allow-query { any; };' . "\n"; + + if(count($this->nameservers) > 0) + { + $bindconf_file.= ' allow-transfer {' . "\n"; + for ($i = 0;$i < count($this->nameservers);$i++) + { + $bindconf_file.= ' ' . $this->nameservers[$i]['ip'] . ';' . "\n"; + } + + $bindconf_file.= ' };' . "\n"; + } + + $bindconf_file.= '};' . "\n"; + $bindconf_file.= "\n"; + } + + $bindconf_file_handler = fopen(makeCorrectFile($this->settings['system']['bindconf_directory'] . '/syscp_bind.conf'), 'w'); + fwrite($bindconf_file_handler, $bindconf_file); + fclose($bindconf_file_handler); + fwrite($this->debugHandler, ' cron_tasks: Task4 - syscp_bind.conf written' . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'syscp_bind.conf written'); + safe_exec($this->settings['system']['bindreload_command']); + fwrite($this->debugHandler, ' cron_tasks: Task4 - Bind9 reloaded' . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'Bind9 reloaded'); + $domains_dir = makeCorrectDir($this->settings['system']['bindconf_directory'] . '/domains/'); + + if(file_exists($domains_dir) + && is_dir($domains_dir)) + { + $domain_file_dirhandle = opendir($domains_dir); + + while(false !== ($domain_filename = readdir($domain_file_dirhandle))) + { + if($domain_filename != '.' + && $domain_filename != '..' + && !in_array($domain_filename, $known_filenames) + && file_exists(makeCorrectFile($domains_dir . '/' . $domain_filename))) + { + fwrite($this->debugHandler, ' cron_tasks: Task4 - unlinking ' . $domain_filename . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'Deleting ' . $domain_filename); + unlink(makeCorrectFile($domains_dir . '/' . $domain_filename)); + } + } + } + } + + protected function generateZone($domain) + { + if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) + { + $ip_a_record = 'A ' . $domain['ip']; + } + elseif(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ip_a_record = 'AAAA ' . $domain['ip']; + } + else + { + return ''; + } + + $date = date('Ymd'); + $bindserial = (preg_match('/^' . $date . '/', $domain['bindserial']) ? $domain['bindserial'] + 1 : $date . '00'); + $this->db->query('UPDATE `' . TABLE_PANEL_DOMAINS . '` SET `bindserial`=\'' . $bindserial . '\' WHERE `id`=\'' . $domain['id'] . '\''); + $zonefile = '$TTL 1W' . "\n"; + + if(count($this->nameservers) == 0) + { + $zonefile.= '@ IN SOA ns ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n"; + } + else + { + $zonefile.= '@ IN SOA ' . $this->nameservers[0]['hostname'] . ' ' . str_replace('@', '.', $this->settings['panel']['adminmail']) . '. (' . "\n"; + } + + $zonefile.= ' ' . $bindserial . ' ; serial' . "\n" . ' 8H ; refresh' . "\n" . ' 2H ; retry' . "\n" . ' 1W ; expiry' . "\n" . ' 11h) ; minimum' . "\n"; + + if(count($this->nameservers) == 0) + { + $zonefile.= '@ IN NS ns' . "\n" . 'ns IN ' . $ip_a_record . "\n"; + } + else + { + foreach($this->nameservers as $nameserver) + { + $zonefile.= '@ IN NS ' . trim($nameserver['hostname']) . "\n"; + } + } + + if(count($this->mxservers) == 0) + { + $zonefile.= '@ IN MX 10 mail' . "\n" . 'mail IN ' . $ip_a_record . "\n"; + } + else + { + foreach($this->mxservers as $mxserver) + { + $zonefile.= '@ IN MX ' . trim($mxserver) . "\n"; + } + } + + $zonefile.= '@ IN TXT "v=spf1 a mx -all"' . "\n"; + + if($this->settings['dkim']['use_dkim'] == '1' + && $domain['dkim'] == '1' + && $domain['dkim_pubkey'] != '') + { + $zonefile.= 'dkim_' . $domain['dkim_id'] . '._domainkey IN TXT "v=DKIM1; k=rsa; p=' . trim(preg_replace('/-----BEGIN PUBLIC KEY-----(.+)-----END PUBLIC KEY-----/s', '$1', str_replace("\n", '', $domain['dkim_pubkey']))) . '"' . "\n"; + } + + $nssubdomains = $this->db->query('SELECT `domain` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `isbinddomain`=\'1\' AND `domain` LIKE \'%.' . $domain['domain'] . '\''); + + while($nssubdomain = $this->db->fetch_array($nssubdomains)) + { + if(preg_match('/^[^\.]+\.' . preg_quote($domain['domain'], '/') . '/', $nssubdomain['domain'])) + { + $nssubdomain = str_replace('.' . $domain['domain'], '', $nssubdomain['domain']); + + if(count($this->nameservers) == 0) + { + $zonefile.= $nssubdomain . ' IN NS ns.' . $nssubdomain . "\n"; + } + else + { + foreach($this->nameservers as $nameserver) + { + $zonefile.= $nssubdomain . ' IN NS ' . trim($nameserver['hostname']) . "\n"; + } + } + } + } + + $zonefile.= '@ IN ' . $ip_a_record . "\n"; + $zonefile.= 'www IN ' . $ip_a_record . "\n"; + + if($domain['iswildcarddomain'] == '1') + { + $zonefile.= '* IN ' . $ip_a_record . "\n"; + } + + $subdomains = $this->db->query('SELECT `d`.`domain`, `ip`.`ip` AS `ip` FROM `' . TABLE_PANEL_DOMAINS . '` `d`, `' . TABLE_PANEL_IPSANDPORTS . '` `ip` WHERE `parentdomainid`=\'' . $domain['id'] . '\' AND `d`.`ipandport`=`ip`.`id`'); + + while($subdomain = $this->db->fetch_array($subdomains)) + { + $zonefile.= str_replace('.' . $domain['domain'], '', $subdomain['domain']) . ' IN A ' . $subdomain['ip'] . "\n"; + } + + return $zonefile; + } + + public function writeDKIMconfigs() + { + if($this->settings['dkim']['use_dkim'] == '1') + { + if(!file_exists(makeCorrectDir($this->settings['dkim']['dkim_prefix']))) + { + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix']))); + safe_exec('mkdir -p ' . escapeshellarg(makeCorrectDir($this->settings['dkim']['dkim_prefix']))); + } + + $dkimdomains = ''; + $dkimkeys = ''; + $result_domains = $this->db->query("SELECT `id`, `domain`, `dkim`, `dkim_id`, `dkim_pubkey`, `dkim_privkey` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `dkim` = '1' ORDER BY `id` ASC"); + + while($domain = $this->db->fetch_array($result_domains)) + { + $privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private'); + $pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public'); + + if($domain['dkim_privkey'] == '' + || $domain['dkim_pubkey'] == '') + { + $max_dkim_id = $this->db->query_first("SELECT MAX(`dkim_id`) as `max_dkim_id` FROM `" . TABLE_PANEL_DOMAINS . "`"); + $domain['dkim_id'] = (int)$max_dkim_id['max_dkim_id'] + 1; + $privkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.private'); + safe_exec('openssl genrsa -out ' . escapeshellarg($privkey_filename) . ' 1024'); + $domain['dkim_privkey'] = file_get_contents($privkey_filename); + safe_exec("chmod 0640 " . escapeshellarg($privkey_filename)); + $pubkey_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/dkim_' . $domain['dkim_id'] . '.public'); + safe_exec('openssl rsa -in ' . escapeshellarg($privkey_filename) . ' -pubout -outform pem -out ' . escapeshellarg($pubkey_filename)); + $domain['dkim_pubkey'] = file_get_contents($pubkey_filename); + safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename)); + $this->db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `dkim_id` = '" . $domain['dkim_id'] . "', `dkim_privkey` = '" . $domain['dkim_privkey'] . "', `dkim_pubkey` = '" . $domain['dkim_pubkey'] . "' WHERE `id` = '" . $domain['id'] . "'"); + } + + if(!file_exists($privkey_filename) + && $domain['dkim_privkey'] != '') + { + $privkey_file_handler = fopen($privkey_filename, "w"); + fwrite($privkey_file_handler, $domain['dkim_privkey']); + fclose($privkey_file_handler); + safe_exec("chmod 0640 " . escapeshellarg($privkey_filename)); + } + + if(!file_exists($pubkey_filename) + && $domain['dkim_pubkey'] != '') + { + $pubkey_file_handler = fopen($pubkey_filename, "w"); + fwrite($pubkey_file_handler, $domain['dkim_pubkey']); + fclose($pubkey_file_handler); + safe_exec("chmod 0664 " . escapeshellarg($pubkey_filename)); + } + + $dkimdomains.= $domain['domain'] . "\n"; + $dkimkeys.= "*@" . $domain['domain'] . ":" . $domain['domain'] . ":" . $privkey_filename . "\n"; + } + + $dkimdomains_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_domains']); + $dkimdomains_file_handler = fopen($dkimdomains_filename, "w"); + fwrite($dkimdomains_file_handler, $dkimdomains); + fclose($dkimdomains_file_handler); + $dkimkeys_filename = makeCorrectFile($this->settings['dkim']['dkim_prefix'] . '/' . $this->settings['dkim']['dkim_dkimkeys']); + $dkimkeys_file_handler = fopen($dkimkeys_filename, "w"); + fwrite($dkimkeys_file_handler, $dkimkeys); + fclose($dkimkeys_file_handler); + } + } +} + ?> \ No newline at end of file diff --git a/scripts/cron_tasks.inc.http.10.apache.php b/scripts/cron_tasks.inc.http.10.apache.php index 1cedab86..c330d591 100644 --- a/scripts/cron_tasks.inc.http.10.apache.php +++ b/scripts/cron_tasks.inc.http.10.apache.php @@ -1,953 +1,953 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_tasks.inc.http.10.apache.php 2714 2009-04-17 10:02:03Z flo $ - */ - -if(@php_sapi_name() != 'cli' - && @php_sapi_name() != 'cgi' - && @php_sapi_name() != 'cgi-fcgi') -{ - die('This script only works in the shell.'); -} - -class apache -{ - protected $db = false; - protected $logger = false; - protected $debugHandler = false; - protected $settings = array(); - protected $known_vhostfilenames = array(); - protected $known_diroptionsfilenames = array(); - protected $known_htpasswdsfilenames = array(); - protected $virtualhosts_data = array(); - protected $diroptions_data = array(); - protected $htpasswds_data = array(); - - public function __construct($db, $logger, $debugHandler, $settings) - { - $this->db = $db; - $this->logger = $logger; - $this->debugHandler = $debugHandler; - $this->settings = $settings; - } - - /* - * We compose the namevirtualhost entries - */ - - public function reload() - { - fwrite($this->debugHandler, ' apache::reload: reloading apache' . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache'); - safe_exec($this->settings['system']['apachereload_command']); - } - - public function createIpPort() - { - $result_ipsandports = $this->db->query("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` ORDER BY `ip` ASC, `port` ASC"); - - while($row_ipsandports = $this->db->fetch_array($result_ipsandports)) - { - if(filter_var($row_ipsandports['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ipport = '[' . $row_ipsandports['ip'] . ']:' . $row_ipsandports['port']; - } - else - { - $ipport = $row_ipsandports['ip'] . ':' . $row_ipsandports['port']; - } - - fwrite($this->debugHandler, ' apache::createIpPort: creating ip/port settings for ' . $ipport . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ipport); - $vhosts_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/10_syscp_ipandport_' . trim(str_replace(':', '.', $row_ipsandports['ip']), '.') . '.' . $row_ipsandports['port'] . '.conf'); - - if(!isset($this->virtualhosts_data[$vhosts_filename])) - { - $this->virtualhosts_data[$vhosts_filename] = ''; - } - - if($row_ipsandports['listen_statement'] == '1') - { - $this->virtualhosts_data[$vhosts_filename].= 'Listen ' . $ipport . "\n"; - $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted listen-statement'); - } - - if($row_ipsandports['namevirtualhost_statement'] == '1') - { - $this->virtualhosts_data[$vhosts_filename].= 'NameVirtualHost ' . $ipport . "\n"; - $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted namevirtualhost-statement'); - } - - if($row_ipsandports['vhostcontainer'] == '1') - { - $this->virtualhosts_data[$vhosts_filename].= '' . "\n"; - - if($row_ipsandports['vhostcontainer_servername_statement'] == '1') - { - $this->virtualhosts_data[$vhosts_filename].= ' ServerName ' . $this->settings['system']['hostname'] . "\n"; - } - - if($row_ipsandports['specialsettings'] != '') - { - $this->virtualhosts_data[$vhosts_filename].= $row_ipsandports['specialsettings'] . "\n"; - } - - if($row_ipsandports['ssl'] == '1' && $this->settings['system']['use_ssl'] == '1') - { - if($row_ipsandports['ssl_cert_file'] == '') - { - $row_ipsandports['ssl_cert_file'] = $this->settings['system']['ssl_cert_file']; - } - - if($row_ipsandports['ssl_key_file'] == '') - { - $row_ipsandports['ssl_key_file'] = $this->settings['system']['ssl_key_file']; - } - - if($row_ipsandports['ssl_ca_file'] == '') - { - $row_ipsandports['ssl_ca_file'] = $this->settings['system']['ssl_ca_file']; - } - - if($row_ipsandports['ssl_cert_file'] != '') - { - $this->virtualhosts_data[$vhosts_filename].= ' SSLEngine On' . "\n"; - $this->virtualhosts_data[$vhosts_filename].= ' SSLCertificateFile ' . makeCorrectFile($row_ipsandports['ssl_cert_file']) . "\n"; - - if($row_ipsandports['ssl_key_file'] != '') - { - $this->virtualhosts_data[$vhosts_filename].= ' SSLCertificateKeyFile ' . makeCorrectFile($row_ipsandports['ssl_key_file']) . "\n"; - } - - if($row_ipsandports['ssl_ca_file'] != '') - { - $this->virtualhosts_data[$vhosts_filename].= ' SSLCACertificateFile ' . makeCorrectFile($row_ipsandports['ssl_ca_file']) . "\n"; - } - } - } - - $this->virtualhosts_data[$vhosts_filename].= '' . "\n"; - $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted vhostcontainer'); - } - - unset($vhosts_filename); - } - } - - /* - * We put together the needed php options in the virtualhost entries - */ - - protected function composePhpOptions($domain) - { - $php_options_text = ''; - - if($domain['phpenabled'] == '1') - { - // This vHost has PHP enabled and we are using the regular mod_php - - if($domain['openbasedir'] == '1') - { - if($this->settings['system']['phpappendopenbasedir'] != '') - { - $_phpappendopenbasedir = ':' . $this->settings['system']['phpappendopenbasedir']; - } - else - { - $_phpappendopenbasedir = ''; - } - - if($domain['openbasedir_path'] == '1') - { - $php_options_text.= ' php_admin_value open_basedir "' . $domain['customerroot'] . $_phpappendopenbasedir . "\"\n"; - } - else - { - $php_options_text.= ' php_admin_value open_basedir "' . $domain['documentroot'] . $_phpappendopenbasedir . "\"\n"; - } - } - - if($domain['safemode'] == '0') - { - $php_options_text.= ' php_admin_flag safe_mode Off ' . "\n"; - } - else - { - $php_options_text.= ' php_admin_flag safe_mode On ' . "\n"; - } - } - else - { - $php_options_text.= ' # PHP is disabled for this vHost' . "\n"; - $php_options_text.= ' php_flag engine off' . "\n"; - } - - return $php_options_text; - } - - /* - * We collect all servernames and Aliases - */ - - protected function getServerNames($domain) - { - $servernames_text = ''; - $servernames_text.= ' ServerName ' . $domain['domain'] . "\n"; - - if($domain['iswildcarddomain'] == '1') - { - $server_alias = '*.' . $domain['domain']; - } - else - { - if($domain['wwwserveralias'] == '1') - { - $server_alias = 'www.' . $domain['domain']; - } - else - { - $server_alias = ''; - } - } - - $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); - - while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) - { - $server_alias.= ' ' . $alias_domain['domain']; - - if($alias_domain['iswildcarddomain'] == '1') - { - $server_alias.= ' *.' . $alias_domain['domain']; - } - else - { - if($alias_domain['wwwserveralias'] == '1') - { - $server_alias.= ' www.' . $alias_domain['domain']; - } - } - } - - if(trim($server_alias) != '') - { - $servernames_text.= ' ServerAlias ' . $server_alias . "\n"; - } - - $servernames_text.= ' ServerAdmin ' . $domain['email'] . "\n"; - return $servernames_text; - } - - /* - * Let's get the webroot - */ - - protected function getWebroot($domain) - { - $webroot_text = ''; - $domain['customerroot'] = makeCorrectDir($domain['customerroot']); - $domain['documentroot'] = makeCorrectDir($domain['documentroot']); - - if($domain['deactivated'] == '1' - && $this->settings['system']['deactivateddocroot'] != '') - { - $webroot_text.= ' # Using docroot for deactivated users...' . "\n"; - $webroot_text.= ' DocumentRoot "' . $this->settings['system']['deactivateddocroot'] . "\"\n"; - } - else - { - $webroot_text.= ' DocumentRoot "' . $domain['documentroot'] . "\"\n"; - } - - return $webroot_text; - } - - /* - * Lets set the text part for the stats software - */ - - protected function getStats($domain) - { - $stats_text = ''; - - if($domain['speciallogfile'] == '1' - && $this->settings['system']['mod_log_sql'] != '1') - { - if($domain['parentdomainid'] == '0') - { - $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer/' . $domain['domain']) . '"' . "\n"; - - if($this->settings['system']['awstats_enabled'] == '1') - { - $stats_text.= createAWStatsVhost($domain['domain']); - } - } - else - { - $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer/' . $domain['parentdomain']) . '"' . "\n"; - - if($this->settings['system']['awstats_enabled'] == '1') - { - $stats_text.= createAWStatsVhost($domain['parentdomain']); - } - } - } - else - { - if($domain['customerroot'] != $domain['documentroot']) - { - $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer') . '"' . "\n"; - } - - if($this->settings['system']['awstats_enabled'] == '1') - { - $stats_text.= createAWStatsVhost($domain['domain']); - } - } - - return $stats_text; - } - - /* - * Lets set the logfiles - */ - - protected function getLogfiles($domain) - { - $logfiles_text = ''; - - if($domain['speciallogfile'] == '1' - && $this->settings['system']['mod_log_sql'] != '1') - { - if($domain['parentdomainid'] == '0') - { - $speciallogfile = '-' . $domain['domain']; - } - else - { - $speciallogfile = '-' . $domain['parentdomain']; - } - } - else - { - $speciallogfile = ''; - } - - if($this->settings['system']['mod_log_sql'] == '1') - { - // We are using mod_log_sql (http://www.outoforder.cc/projects/apache/mod_log_sql/) - // TODO: See how we are able emulate the error_log - - $logfiles_text.= ' LogSQLTransferLogTable access_log' . "\n"; - } - else - { - // The normal access/error - logging is enabled - - $logfiles_text.= ' ErrorLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log' . "\"\n"; - $logfiles_text.= ' CustomLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log" combined' . "\n"; - } - - if($this->settings['system']['awstats_enabled'] == '1') - { - // prepare the aliases for stats config files - - $server_alias = ''; - $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); - - while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) - { - $server_alias.= ' ' . $alias_domain['domain'] . ' '; - - if($alias_domain['iswildcarddomain'] == '1') - { - $server_alias.= '*.' . $domain['domain']; - } - else - { - if($alias_domain['wwwserveralias'] == '1') - { - $server_alias.= 'www.' . $alias_domain['domain']; - } - else - { - $server_alias.= ''; - } - } - } - - if($domain['iswildcarddomain'] == '1') - { - $alias = '*.' . $domain['domain']; - } - else - { - if($domain['wwwserveralias'] == '1') - { - $alias = 'www.' . $domain['domain']; - } - else - { - $alias = ''; - } - } - - // After inserting the AWStats information, be sure to build the awstats conf file as well - - createAWStatsConf($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log', $domain['domain'], $alias . $server_alias); - } - - return $logfiles_text; - } - - /* - * Get the filename for the virtualhost - */ - - protected function getVhostFilename($domain, $ssl_vhost = false) - { - if($ssl_vhost === true) - { - $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/20_syscp_ssl_vhost_' . $domain['domain'] . '.conf'); - } - else - { - $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/20_syscp_normal_vhost_' . $domain['domain'] . '.conf'); - } - - return $vhost_filename; - } - - /* - * We compose the virtualhost entry for one domain - */ - - protected function getVhostContent($domain, $ssl_vhost = false) - { - if($ssl_vhost === true - && $domain['ssl'] != '1') - { - return ''; - } - - if($ssl_vhost === true - && $domain['ssl'] == '1') - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ssl_ipandport'] . "'"; - } - else - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; - } - - $ipandport = $this->db->query_first($query); - $domain['ip'] = $ipandport['ip']; - $domain['port'] = $ipandport['port']; - $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; - $domain['ssl_key_file'] = $ipandport['ssl_key_file']; - $domain['ssl_ca_file'] = $ipandport['ssl_ca_file']; - - if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ipport = '[' . $domain['ip'] . ']:' . $domain['port']; - } - else - { - $ipport = $domain['ip'] . ':' . $domain['port']; - } - - $vhost_content = '' . "\n"; - $vhost_content.= $this->getServerNames($domain); - - if($ssl_vhost == false - && $domain['ssl'] == '1' - && $domain['ssl_redirect'] == '1') - { - $domain['documentroot'] = 'https://' . $domain['domain'] . '/'; - } - - if(preg_match('/^https?\:\/\//', $domain['documentroot'])) - { - $vhost_content.= ' Redirect 301 / ' . $domain['documentroot'] . "\n"; - } - else - { - if($ssl_vhost === true - && $domain['ssl'] == '1' - && $this->settings['system']['use_ssl'] == '1') - { - if($domain['ssl_cert_file'] == '') - { - $domain['ssl_cert_file'] = $this->settings['system']['ssl_cert_file']; - } - - if($domain['ssl_key_file'] == '') - { - $domain['ssl_key_file'] = $this->settings['system']['ssl_key_file']; - } - - if($domain['ssl_ca_file'] == '') - { - $domain['ssl_ca_file'] = $this->settings['system']['ssl_ca_file']; - } - - if($domain['ssl_cert_file'] != '') - { - $vhost_content.= ' SSLEngine On' . "\n"; - $vhost_content.= ' SSLCertificateFile ' . makeCorrectFile($domain['ssl_cert_file']) . "\n"; - - if($domain['ssl_key_file'] != '') - { - $vhost_content.= ' SSLCertificateKeyFile ' . makeCorrectFile($domain['ssl_key_file']) . "\n"; - } - - if($domain['ssl_ca_file'] != '') - { - $vhost_content.= ' SSLCACertificateFile ' . makeCorrectFile($domain['ssl_ca_file']) . "\n"; - } - } - } - - mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid']); - $vhost_content.= $this->getWebroot($domain); - $vhost_content.= $this->composePhpOptions($domain); - $vhost_content.= $this->getStats($domain); - $vhost_content.= $this->getLogfiles($domain); - } - - if($domain['specialsettings'] != '') - { - $vhost_content.= $domain['specialsettings'] . "\n"; - } - - if($ipandport['default_vhostconf_domain'] != '') - { - $vhost_content.= $ipandport['default_vhostconf_domain'] . "\n"; - } - - if($this->settings['system']['default_vhostconf'] != '') - { - $vhost_content.= $this->settings['system']['default_vhostconf'] . "\n"; - } - - $vhost_content.= '' . "\n"; - return $vhost_content; - } - - /* - * We compose the virtualhost entries for the domains - */ - - public function createVirtualHosts() - { - $result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, `d`.`phpsettingid`, `c`.`adminid`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled`, `d`.`mod_fcgid_starter`, `d`.`mod_fcgid_maxrequests` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`aliasdomain` IS NULL ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"); - - while($domain = $this->db->fetch_array($result_domains)) - { - fwrite($this->debugHandler, ' apache::createVirtualHosts: creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname']); - $vhosts_filename = $this->getVhostFilename($domain); - - // Apply header - - $this->virtualhosts_data[$vhosts_filename] = '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; - - if($domain['deactivated'] != '1' - || $this->settings['system']['deactivateddocroot'] != '') - { - $this->virtualhosts_data[$vhosts_filename].= $this->getVhostContent($domain); - - if($domain['ssl'] == '1') - { - // Adding ssl stuff if enabled - - $vhosts_filename_ssl = $this->getVhostFilename($domain, true); - $this->virtualhosts_data[$vhosts_filename_ssl] = '# Domain ID: ' . $domain['id'] . ' (SSL) - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; - $this->virtualhosts_data[$vhosts_filename_ssl].= $this->getVhostContent($domain, true); - } - } - else - { - $this->virtualhosts_data[$vhosts_filename].= '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n"; - } - } - } - - /* - * We compose the diroption entries for the paths - */ - - public function createFileDirOptions() - { - $result = $this->db->query('SELECT `htac`.*, `c`.`guid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_PANEL_HTACCESS . '` `htac` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ORDER BY `htac`.`path`'); - $diroptions = array(); - - while($row_diroptions = $this->db->fetch_array($result)) - { - if($row_diroptions['customerid'] != 0 - && isset($row_diroptions['customerroot']) - && $row_diroptions['customerroot'] != '') - { - $diroptions[$row_diroptions['path']] = $row_diroptions; - $diroptions[$row_diroptions['path']]['htpasswds'] = array(); - } - } - - $result = $this->db->query('SELECT `htpw`.*, `c`.`guid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_PANEL_HTPASSWDS . '` `htpw` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ORDER BY `htpw`.`path`, `htpw`.`username`'); - - while($row_htpasswds = $this->db->fetch_array($result)) - { - if($row_htpasswds['customerid'] != 0 - && isset($row_htpasswds['customerroot']) - && $row_htpasswds['customerroot'] != '') - { - if(!isset($diroptions[$row_htpasswds['path']]) || !is_array($diroptions[$row_htpasswds['path']])) - { - $diroptions[$row_htpasswds['path']] = array(); - } - - $diroptions[$row_htpasswds['path']]['path'] = $row_htpasswds['path']; - $diroptions[$row_htpasswds['path']]['guid'] = $row_htpasswds['guid']; - $diroptions[$row_htpasswds['path']]['customerroot'] = $row_htpasswds['customerroot']; - $diroptions[$row_htpasswds['path']]['customerid'] = $row_htpasswds['customerid']; - $diroptions[$row_htpasswds['path']]['htpasswds'][] = $row_htpasswds; - } - } - - foreach($diroptions as $row_diroptions) - { - $row_diroptions['path'] = makeCorrectDir($row_diroptions['path']); - mkDirWithCorrectOwnership($row_diroptions['customerroot'], $row_diroptions['path'], $row_diroptions['guid'], $row_diroptions['guid']); - $diroptions_filename = makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/40_syscp_diroption_' . md5($row_diroptions['path']) . '.conf'); - - if(!isset($this->diroptions_data[$diroptions_filename])) - { - $this->diroptions_data[$diroptions_filename] = ''; - } - - if(is_dir($row_diroptions['path'])) - { - $this->diroptions_data[$diroptions_filename].= '' . "\n"; - - if(isset($row_diroptions['options_indexes']) - && $row_diroptions['options_indexes'] == '1') - { - $this->diroptions_data[$diroptions_filename].= ' Options +Indexes' . "\n"; - fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options +Indexes' . "\n"); - } - - if(isset($row_diroptions['options_indexes']) - && $row_diroptions['options_indexes'] == '0') - { - $this->diroptions_data[$diroptions_filename].= ' Options -Indexes' . "\n"; - fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options -Indexes' . "\n"); - } - - if(isset($row_diroptions['error404path']) - && $row_diroptions['error404path'] != '') - { - $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 404 ' . $row_diroptions['error404path'] . "\n"; - } - - if(isset($row_diroptions['error403path']) - && $row_diroptions['error403path'] != '') - { - $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 403 ' . $row_diroptions['error403path'] . "\n"; - } - - if(isset($row_diroptions['error500path']) - && $row_diroptions['error500path'] != '') - { - $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 500 ' . $row_diroptions['error500path'] . "\n"; - } - - if(count($row_diroptions['htpasswds']) > 0) - { - $htpasswd_filename = makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $row_diroptions['customerid'] . '-' . md5($row_diroptions['path']) . '.htpasswd'); - - if(!isset($this->htpasswds_data[$htpasswd_filename])) - { - $this->htpasswds_data[$htpasswd_filename] = ''; - } - - foreach($row_diroptions['htpasswds'] as $row_htpasswd) - { - $this->htpasswds_data[$htpasswd_filename].= $row_htpasswd['username'] . ':' . $row_htpasswd['password'] . "\n"; - } - - $this->diroptions_data[$diroptions_filename].= ' AuthType Basic' . "\n"; - $this->diroptions_data[$diroptions_filename].= ' AuthName "Restricted Area"' . "\n"; - $this->diroptions_data[$diroptions_filename].= ' AuthUserFile ' . $htpasswd_filename . "\n"; - $this->diroptions_data[$diroptions_filename].= ' require valid-user' . "\n"; - } - - $this->diroptions_data[$diroptions_filename].= '' . "\n"; - } - } - } - - /* - * We write the configs - */ - - public function writeConfigs() - { - // Write diroptions - - fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_diroptions'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_diroptions']); - - if(count($this->diroptions_data) > 0) - { - if(!isConfigDir($this->settings['system']['apacheconf_diroptions'])) - { - // Save one big file - - $diroptions_file = ''; - - foreach($this->diroptions_data as $diroptions_filename => $diroptions_content) - { - $diroptions_file.= $diroptions_content . "\n\n"; - } - - $diroptions_filename = $this->settings['system']['apacheconf_diroptions']; - - // Apply header - - $diroptions_file = '# ' . basename($diroptions_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $diroptions_file; - $diroptions_file_handler = fopen($diroptions_filename, 'w'); - fwrite($diroptions_file_handler, $diroptions_file); - fclose($diroptions_file_handler); - } - else - { - if(!file_exists($this->settings['system']['apacheconf_diroptions'])) - { - fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions'])) . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions']))); - safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions']))); - } - - // Write a single file for every diroption - - foreach($this->diroptions_data as $diroptions_filename => $diroptions_file) - { - $this->known_diroptionsfilenames[] = basename($diroptions_filename); - - // Apply header - - $diroptions_file = '# ' . basename($diroptions_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $diroptions_file; - $diroptions_file_handler = fopen($diroptions_filename, 'w'); - fwrite($diroptions_file_handler, $diroptions_file); - fclose($diroptions_file_handler); - } - - $this->wipeOutOldDiroptionConfigs(); - } - } - - // Write htpasswds - - fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_htpasswddir'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_htpasswddir']); - - if(count($this->htpasswds_data) > 0) - { - if(!file_exists($this->settings['system']['apacheconf_htpasswddir'])) - { - $umask = umask(); - umask(0000); - mkdir($this->settings['system']['apacheconf_htpasswddir'], 0751); - umask($umask); - } - elseif(!is_dir($this->settings['system']['apacheconf_htpasswddir'])) - { - fwrite($this->debugHandler, ' cron_tasks: WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!' . "\n"); - echo 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!'; - $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!'); - } - - if(is_dir($this->settings['system']['apacheconf_htpasswddir'])) - { - foreach($this->htpasswds_data as $htpasswd_filename => $htpasswd_file) - { - $this->known_htpasswdsfilenames[] = basename($htpasswd_filename); - $htpasswd_file_handler = fopen($htpasswd_filename, 'w'); - fwrite($htpasswd_file_handler, $htpasswd_file); - fclose($htpasswd_file_handler); - } - - $this->wipeOutOldHtpasswdConfigs(); - } - } - - // Write virtualhosts - - fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_vhost'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_vhost']); - - if(count($this->virtualhosts_data) > 0) - { - if(!isConfigDir($this->settings['system']['apacheconf_vhost'])) - { - // Save one big file - - $vhosts_file = ''; - - foreach($this->virtualhosts_data as $vhosts_filename => $vhost_content) - { - $vhosts_file.= $vhost_content . "\n\n"; - } - - // Include diroptions file in case it exists - - if(file_exists($this->settings['system']['apacheconf_diroptions'])) - { - $vhosts_file.= "\n" . 'Include ' . $this->settings['system']['apacheconf_diroptions'] . "\n\n"; - } - - $vhosts_filename = $this->settings['system']['apacheconf_vhost']; - - // Apply header - - $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; - $vhosts_file_handler = fopen($vhosts_filename, 'w'); - fwrite($vhosts_file_handler, $vhosts_file); - fclose($vhosts_file_handler); - } - else - { - if(!file_exists($this->settings['system']['apacheconf_vhost'])) - { - fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost'])) . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); - safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); - } - - // Write a single file for every vhost - - foreach($this->virtualhosts_data as $vhosts_filename => $vhosts_file) - { - $this->known_vhostfilenames[] = basename($vhosts_filename); - - // Apply header - - $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; - $vhosts_file_handler = fopen($vhosts_filename, 'w'); - fwrite($vhosts_file_handler, $vhosts_file); - fclose($vhosts_file_handler); - } - - $this->wipeOutOldVhostConfigs(); - } - } - } - - /* - * We remove old vhost config files - */ - - protected function wipeOutOldVhostConfigs() - { - fwrite($this->debugHandler, ' apache::wipeOutOldVhostConfigs: cleaning ' . $this->settings['system']['apacheconf_vhost'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_vhost']); - - if(isConfigDir($this->settings['system']['apacheconf_vhost']) - && file_exists($this->settings['system']['apacheconf_vhost']) - && is_dir($this->settings['system']['apacheconf_vhost'])) - { - $vhost_file_dirhandle = opendir($this->settings['system']['apacheconf_vhost']); - - while(false !== ($vhost_filename = readdir($vhost_file_dirhandle))) - { - if($vhost_filename != '.' - && $vhost_filename != '..' - && !in_array($vhost_filename, $this->known_vhostfilenames) - && preg_match('/^(10|20|30)_syscp_(ipandport|normal_vhost|wildcard_vhost|ssl_vhost)_(.+)\.conf$/', $vhost_filename) - && file_exists(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename))) - { - fwrite($this->debugHandler, ' apache::wipeOutOldVhostConfigs: unlinking ' . $vhost_filename . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $vhost_filename); - unlink(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename)); - } - } - } - } - - /* - * We remove old diroptions config files - */ - - protected function wipeOutOldDiroptionConfigs() - { - fwrite($this->debugHandler, ' apache::wipeOutOldDiroptionConfigs: cleaning ' . $this->settings['system']['apacheconf_diroptions'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_diroptions']); - - if(isConfigDir($this->settings['system']['apacheconf_diroptions']) - && file_exists($this->settings['system']['apacheconf_diroptions']) - && is_dir($this->settings['system']['apacheconf_diroptions'])) - { - $diroptions_file_dirhandle = opendir($this->settings['system']['apacheconf_diroptions']); - - while(false !== ($diroptions_filename = readdir($diroptions_file_dirhandle))) - { - if($diroptions_filename != '.' - && $diroptions_filename != '..' - && !in_array($diroptions_filename, $this->known_diroptionsfilenames) - && preg_match('/^40_syscp_diroption_(.+)\.conf$/', $diroptions_filename) - && file_exists(makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/' . $diroptions_filename))) - { - fwrite($this->debugHandler, ' apache::wipeOutOldDiroptionConfigs: unlinking ' . $diroptions_filename . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $diroptions_filename); - unlink(makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/' . $diroptions_filename)); - } - } - } - } - - /* - * We remove old htpasswd config files - */ - - protected function wipeOutOldHtpasswdConfigs() - { - fwrite($this->debugHandler, ' apache::wipeOutOldHtpasswdConfigs: cleaning ' . $this->settings['system']['apacheconf_htpasswddir'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_htpasswddir']); - - if(isConfigDir($this->settings['system']['apacheconf_htpasswddir']) - && file_exists($this->settings['system']['apacheconf_htpasswddir']) - && is_dir($this->settings['system']['apacheconf_htpasswddir'])) - { - $htpasswds_file_dirhandle = opendir($this->settings['system']['apacheconf_htpasswddir']); - - while(false !== ($htpasswd_filename = readdir($htpasswds_file_dirhandle))) - { - if($htpasswd_filename != '.' - && $htpasswd_filename != '..' - && !in_array($htpasswd_filename, $this->known_htpasswdsfilenames) - && file_exists(makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $htpasswd_filename))) - { - fwrite($this->debugHandler, ' apache::wipeOutOldHtpasswdConfigs: unlinking ' . $htpasswd_filename . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $htpasswd_filename); - unlink(makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $htpasswd_filename)); - } - } - } - } -} - -?> + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_tasks.inc.http.10.apache.php 2714 2009-04-17 10:02:03Z flo $ + */ + +if(@php_sapi_name() != 'cli' + && @php_sapi_name() != 'cgi' + && @php_sapi_name() != 'cgi-fcgi') +{ + die('This script only works in the shell.'); +} + +class apache +{ + protected $db = false; + protected $logger = false; + protected $debugHandler = false; + protected $settings = array(); + protected $known_vhostfilenames = array(); + protected $known_diroptionsfilenames = array(); + protected $known_htpasswdsfilenames = array(); + protected $virtualhosts_data = array(); + protected $diroptions_data = array(); + protected $htpasswds_data = array(); + + public function __construct($db, $logger, $debugHandler, $settings) + { + $this->db = $db; + $this->logger = $logger; + $this->debugHandler = $debugHandler; + $this->settings = $settings; + } + + /* + * We compose the namevirtualhost entries + */ + + public function reload() + { + fwrite($this->debugHandler, ' apache::reload: reloading apache' . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache'); + safe_exec($this->settings['system']['apachereload_command']); + } + + public function createIpPort() + { + $result_ipsandports = $this->db->query("SELECT * FROM `" . TABLE_PANEL_IPSANDPORTS . "` ORDER BY `ip` ASC, `port` ASC"); + + while($row_ipsandports = $this->db->fetch_array($result_ipsandports)) + { + if(filter_var($row_ipsandports['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ipport = '[' . $row_ipsandports['ip'] . ']:' . $row_ipsandports['port']; + } + else + { + $ipport = $row_ipsandports['ip'] . ':' . $row_ipsandports['port']; + } + + fwrite($this->debugHandler, ' apache::createIpPort: creating ip/port settings for ' . $ipport . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ipport); + $vhosts_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/10_syscp_ipandport_' . trim(str_replace(':', '.', $row_ipsandports['ip']), '.') . '.' . $row_ipsandports['port'] . '.conf'); + + if(!isset($this->virtualhosts_data[$vhosts_filename])) + { + $this->virtualhosts_data[$vhosts_filename] = ''; + } + + if($row_ipsandports['listen_statement'] == '1') + { + $this->virtualhosts_data[$vhosts_filename].= 'Listen ' . $ipport . "\n"; + $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted listen-statement'); + } + + if($row_ipsandports['namevirtualhost_statement'] == '1') + { + $this->virtualhosts_data[$vhosts_filename].= 'NameVirtualHost ' . $ipport . "\n"; + $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted namevirtualhost-statement'); + } + + if($row_ipsandports['vhostcontainer'] == '1') + { + $this->virtualhosts_data[$vhosts_filename].= '' . "\n"; + + if($row_ipsandports['vhostcontainer_servername_statement'] == '1') + { + $this->virtualhosts_data[$vhosts_filename].= ' ServerName ' . $this->settings['system']['hostname'] . "\n"; + } + + if($row_ipsandports['specialsettings'] != '') + { + $this->virtualhosts_data[$vhosts_filename].= $row_ipsandports['specialsettings'] . "\n"; + } + + if($row_ipsandports['ssl'] == '1' && $this->settings['system']['use_ssl'] == '1') + { + if($row_ipsandports['ssl_cert_file'] == '') + { + $row_ipsandports['ssl_cert_file'] = $this->settings['system']['ssl_cert_file']; + } + + if($row_ipsandports['ssl_key_file'] == '') + { + $row_ipsandports['ssl_key_file'] = $this->settings['system']['ssl_key_file']; + } + + if($row_ipsandports['ssl_ca_file'] == '') + { + $row_ipsandports['ssl_ca_file'] = $this->settings['system']['ssl_ca_file']; + } + + if($row_ipsandports['ssl_cert_file'] != '') + { + $this->virtualhosts_data[$vhosts_filename].= ' SSLEngine On' . "\n"; + $this->virtualhosts_data[$vhosts_filename].= ' SSLCertificateFile ' . makeCorrectFile($row_ipsandports['ssl_cert_file']) . "\n"; + + if($row_ipsandports['ssl_key_file'] != '') + { + $this->virtualhosts_data[$vhosts_filename].= ' SSLCertificateKeyFile ' . makeCorrectFile($row_ipsandports['ssl_key_file']) . "\n"; + } + + if($row_ipsandports['ssl_ca_file'] != '') + { + $this->virtualhosts_data[$vhosts_filename].= ' SSLCACertificateFile ' . makeCorrectFile($row_ipsandports['ssl_ca_file']) . "\n"; + } + } + } + + $this->virtualhosts_data[$vhosts_filename].= '' . "\n"; + $this->logger->logAction(CRON_ACTION, LOG_DEBUG, $ipport . ' :: inserted vhostcontainer'); + } + + unset($vhosts_filename); + } + } + + /* + * We put together the needed php options in the virtualhost entries + */ + + protected function composePhpOptions($domain) + { + $php_options_text = ''; + + if($domain['phpenabled'] == '1') + { + // This vHost has PHP enabled and we are using the regular mod_php + + if($domain['openbasedir'] == '1') + { + if($this->settings['system']['phpappendopenbasedir'] != '') + { + $_phpappendopenbasedir = ':' . $this->settings['system']['phpappendopenbasedir']; + } + else + { + $_phpappendopenbasedir = ''; + } + + if($domain['openbasedir_path'] == '1') + { + $php_options_text.= ' php_admin_value open_basedir "' . $domain['customerroot'] . $_phpappendopenbasedir . "\"\n"; + } + else + { + $php_options_text.= ' php_admin_value open_basedir "' . $domain['documentroot'] . $_phpappendopenbasedir . "\"\n"; + } + } + + if($domain['safemode'] == '0') + { + $php_options_text.= ' php_admin_flag safe_mode Off ' . "\n"; + } + else + { + $php_options_text.= ' php_admin_flag safe_mode On ' . "\n"; + } + } + else + { + $php_options_text.= ' # PHP is disabled for this vHost' . "\n"; + $php_options_text.= ' php_flag engine off' . "\n"; + } + + return $php_options_text; + } + + /* + * We collect all servernames and Aliases + */ + + protected function getServerNames($domain) + { + $servernames_text = ''; + $servernames_text.= ' ServerName ' . $domain['domain'] . "\n"; + + if($domain['iswildcarddomain'] == '1') + { + $server_alias = '*.' . $domain['domain']; + } + else + { + if($domain['wwwserveralias'] == '1') + { + $server_alias = 'www.' . $domain['domain']; + } + else + { + $server_alias = ''; + } + } + + $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); + + while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) + { + $server_alias.= ' ' . $alias_domain['domain']; + + if($alias_domain['iswildcarddomain'] == '1') + { + $server_alias.= ' *.' . $alias_domain['domain']; + } + else + { + if($alias_domain['wwwserveralias'] == '1') + { + $server_alias.= ' www.' . $alias_domain['domain']; + } + } + } + + if(trim($server_alias) != '') + { + $servernames_text.= ' ServerAlias ' . $server_alias . "\n"; + } + + $servernames_text.= ' ServerAdmin ' . $domain['email'] . "\n"; + return $servernames_text; + } + + /* + * Let's get the webroot + */ + + protected function getWebroot($domain) + { + $webroot_text = ''; + $domain['customerroot'] = makeCorrectDir($domain['customerroot']); + $domain['documentroot'] = makeCorrectDir($domain['documentroot']); + + if($domain['deactivated'] == '1' + && $this->settings['system']['deactivateddocroot'] != '') + { + $webroot_text.= ' # Using docroot for deactivated users...' . "\n"; + $webroot_text.= ' DocumentRoot "' . $this->settings['system']['deactivateddocroot'] . "\"\n"; + } + else + { + $webroot_text.= ' DocumentRoot "' . $domain['documentroot'] . "\"\n"; + } + + return $webroot_text; + } + + /* + * Lets set the text part for the stats software + */ + + protected function getStats($domain) + { + $stats_text = ''; + + if($domain['speciallogfile'] == '1' + && $this->settings['system']['mod_log_sql'] != '1') + { + if($domain['parentdomainid'] == '0') + { + $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer/' . $domain['domain']) . '"' . "\n"; + + if($this->settings['system']['awstats_enabled'] == '1') + { + $stats_text.= createAWStatsVhost($domain['domain']); + } + } + else + { + $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer/' . $domain['parentdomain']) . '"' . "\n"; + + if($this->settings['system']['awstats_enabled'] == '1') + { + $stats_text.= createAWStatsVhost($domain['parentdomain']); + } + } + } + else + { + if($domain['customerroot'] != $domain['documentroot']) + { + $stats_text.= ' Alias /webalizer "' . makeCorrectFile($domain['customerroot'] . '/webalizer') . '"' . "\n"; + } + + if($this->settings['system']['awstats_enabled'] == '1') + { + $stats_text.= createAWStatsVhost($domain['domain']); + } + } + + return $stats_text; + } + + /* + * Lets set the logfiles + */ + + protected function getLogfiles($domain) + { + $logfiles_text = ''; + + if($domain['speciallogfile'] == '1' + && $this->settings['system']['mod_log_sql'] != '1') + { + if($domain['parentdomainid'] == '0') + { + $speciallogfile = '-' . $domain['domain']; + } + else + { + $speciallogfile = '-' . $domain['parentdomain']; + } + } + else + { + $speciallogfile = ''; + } + + if($this->settings['system']['mod_log_sql'] == '1') + { + // We are using mod_log_sql (http://www.outoforder.cc/projects/apache/mod_log_sql/) + // TODO: See how we are able emulate the error_log + + $logfiles_text.= ' LogSQLTransferLogTable access_log' . "\n"; + } + else + { + // The normal access/error - logging is enabled + + $logfiles_text.= ' ErrorLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log' . "\"\n"; + $logfiles_text.= ' CustomLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log" combined' . "\n"; + } + + if($this->settings['system']['awstats_enabled'] == '1') + { + // prepare the aliases for stats config files + + $server_alias = ''; + $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); + + while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) + { + $server_alias.= ' ' . $alias_domain['domain'] . ' '; + + if($alias_domain['iswildcarddomain'] == '1') + { + $server_alias.= '*.' . $domain['domain']; + } + else + { + if($alias_domain['wwwserveralias'] == '1') + { + $server_alias.= 'www.' . $alias_domain['domain']; + } + else + { + $server_alias.= ''; + } + } + } + + if($domain['iswildcarddomain'] == '1') + { + $alias = '*.' . $domain['domain']; + } + else + { + if($domain['wwwserveralias'] == '1') + { + $alias = 'www.' . $domain['domain']; + } + else + { + $alias = ''; + } + } + + // After inserting the AWStats information, be sure to build the awstats conf file as well + + createAWStatsConf($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log', $domain['domain'], $alias . $server_alias); + } + + return $logfiles_text; + } + + /* + * Get the filename for the virtualhost + */ + + protected function getVhostFilename($domain, $ssl_vhost = false) + { + if($ssl_vhost === true) + { + $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/20_syscp_ssl_vhost_' . $domain['domain'] . '.conf'); + } + else + { + $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/20_syscp_normal_vhost_' . $domain['domain'] . '.conf'); + } + + return $vhost_filename; + } + + /* + * We compose the virtualhost entry for one domain + */ + + protected function getVhostContent($domain, $ssl_vhost = false) + { + if($ssl_vhost === true + && $domain['ssl'] != '1') + { + return ''; + } + + if($ssl_vhost === true + && $domain['ssl'] == '1') + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ssl_ipandport'] . "'"; + } + else + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; + } + + $ipandport = $this->db->query_first($query); + $domain['ip'] = $ipandport['ip']; + $domain['port'] = $ipandport['port']; + $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; + $domain['ssl_key_file'] = $ipandport['ssl_key_file']; + $domain['ssl_ca_file'] = $ipandport['ssl_ca_file']; + + if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ipport = '[' . $domain['ip'] . ']:' . $domain['port']; + } + else + { + $ipport = $domain['ip'] . ':' . $domain['port']; + } + + $vhost_content = '' . "\n"; + $vhost_content.= $this->getServerNames($domain); + + if($ssl_vhost == false + && $domain['ssl'] == '1' + && $domain['ssl_redirect'] == '1') + { + $domain['documentroot'] = 'https://' . $domain['domain'] . '/'; + } + + if(preg_match('/^https?\:\/\//', $domain['documentroot'])) + { + $vhost_content.= ' Redirect 301 / ' . $domain['documentroot'] . "\n"; + } + else + { + if($ssl_vhost === true + && $domain['ssl'] == '1' + && $this->settings['system']['use_ssl'] == '1') + { + if($domain['ssl_cert_file'] == '') + { + $domain['ssl_cert_file'] = $this->settings['system']['ssl_cert_file']; + } + + if($domain['ssl_key_file'] == '') + { + $domain['ssl_key_file'] = $this->settings['system']['ssl_key_file']; + } + + if($domain['ssl_ca_file'] == '') + { + $domain['ssl_ca_file'] = $this->settings['system']['ssl_ca_file']; + } + + if($domain['ssl_cert_file'] != '') + { + $vhost_content.= ' SSLEngine On' . "\n"; + $vhost_content.= ' SSLCertificateFile ' . makeCorrectFile($domain['ssl_cert_file']) . "\n"; + + if($domain['ssl_key_file'] != '') + { + $vhost_content.= ' SSLCertificateKeyFile ' . makeCorrectFile($domain['ssl_key_file']) . "\n"; + } + + if($domain['ssl_ca_file'] != '') + { + $vhost_content.= ' SSLCACertificateFile ' . makeCorrectFile($domain['ssl_ca_file']) . "\n"; + } + } + } + + mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid']); + $vhost_content.= $this->getWebroot($domain); + $vhost_content.= $this->composePhpOptions($domain); + $vhost_content.= $this->getStats($domain); + $vhost_content.= $this->getLogfiles($domain); + } + + if($domain['specialsettings'] != '') + { + $vhost_content.= $domain['specialsettings'] . "\n"; + } + + if($ipandport['default_vhostconf_domain'] != '') + { + $vhost_content.= $ipandport['default_vhostconf_domain'] . "\n"; + } + + if($this->settings['system']['default_vhostconf'] != '') + { + $vhost_content.= $this->settings['system']['default_vhostconf'] . "\n"; + } + + $vhost_content.= '' . "\n"; + return $vhost_content; + } + + /* + * We compose the virtualhost entries for the domains + */ + + public function createVirtualHosts() + { + $result_domains = $this->db->query("SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, `d`.`phpsettingid`, `c`.`adminid`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled`, `d`.`mod_fcgid_starter`, `d`.`mod_fcgid_maxrequests` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`aliasdomain` IS NULL ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"); + + while($domain = $this->db->fetch_array($result_domains)) + { + fwrite($this->debugHandler, ' apache::createVirtualHosts: creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating vhost container for domain ' . $domain['id'] . ', customer ' . $domain['loginname']); + $vhosts_filename = $this->getVhostFilename($domain); + + // Apply header + + $this->virtualhosts_data[$vhosts_filename] = '# Domain ID: ' . $domain['id'] . ' - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; + + if($domain['deactivated'] != '1' + || $this->settings['system']['deactivateddocroot'] != '') + { + $this->virtualhosts_data[$vhosts_filename].= $this->getVhostContent($domain); + + if($domain['ssl'] == '1') + { + // Adding ssl stuff if enabled + + $vhosts_filename_ssl = $this->getVhostFilename($domain, true); + $this->virtualhosts_data[$vhosts_filename_ssl] = '# Domain ID: ' . $domain['id'] . ' (SSL) - CustomerID: ' . $domain['customerid'] . ' - CustomerLogin: ' . $domain['loginname'] . "\n"; + $this->virtualhosts_data[$vhosts_filename_ssl].= $this->getVhostContent($domain, true); + } + } + else + { + $this->virtualhosts_data[$vhosts_filename].= '# Customer deactivated and a docroot for deactivated users hasn\'t been set.' . "\n"; + } + } + } + + /* + * We compose the diroption entries for the paths + */ + + public function createFileDirOptions() + { + $result = $this->db->query('SELECT `htac`.*, `c`.`guid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_PANEL_HTACCESS . '` `htac` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ORDER BY `htac`.`path`'); + $diroptions = array(); + + while($row_diroptions = $this->db->fetch_array($result)) + { + if($row_diroptions['customerid'] != 0 + && isset($row_diroptions['customerroot']) + && $row_diroptions['customerroot'] != '') + { + $diroptions[$row_diroptions['path']] = $row_diroptions; + $diroptions[$row_diroptions['path']]['htpasswds'] = array(); + } + } + + $result = $this->db->query('SELECT `htpw`.*, `c`.`guid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_PANEL_HTPASSWDS . '` `htpw` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) ORDER BY `htpw`.`path`, `htpw`.`username`'); + + while($row_htpasswds = $this->db->fetch_array($result)) + { + if($row_htpasswds['customerid'] != 0 + && isset($row_htpasswds['customerroot']) + && $row_htpasswds['customerroot'] != '') + { + if(!isset($diroptions[$row_htpasswds['path']]) || !is_array($diroptions[$row_htpasswds['path']])) + { + $diroptions[$row_htpasswds['path']] = array(); + } + + $diroptions[$row_htpasswds['path']]['path'] = $row_htpasswds['path']; + $diroptions[$row_htpasswds['path']]['guid'] = $row_htpasswds['guid']; + $diroptions[$row_htpasswds['path']]['customerroot'] = $row_htpasswds['customerroot']; + $diroptions[$row_htpasswds['path']]['customerid'] = $row_htpasswds['customerid']; + $diroptions[$row_htpasswds['path']]['htpasswds'][] = $row_htpasswds; + } + } + + foreach($diroptions as $row_diroptions) + { + $row_diroptions['path'] = makeCorrectDir($row_diroptions['path']); + mkDirWithCorrectOwnership($row_diroptions['customerroot'], $row_diroptions['path'], $row_diroptions['guid'], $row_diroptions['guid']); + $diroptions_filename = makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/40_syscp_diroption_' . md5($row_diroptions['path']) . '.conf'); + + if(!isset($this->diroptions_data[$diroptions_filename])) + { + $this->diroptions_data[$diroptions_filename] = ''; + } + + if(is_dir($row_diroptions['path'])) + { + $this->diroptions_data[$diroptions_filename].= '' . "\n"; + + if(isset($row_diroptions['options_indexes']) + && $row_diroptions['options_indexes'] == '1') + { + $this->diroptions_data[$diroptions_filename].= ' Options +Indexes' . "\n"; + fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options +Indexes' . "\n"); + } + + if(isset($row_diroptions['options_indexes']) + && $row_diroptions['options_indexes'] == '0') + { + $this->diroptions_data[$diroptions_filename].= ' Options -Indexes' . "\n"; + fwrite($this->debugHandler, ' cron_tasks: Task3 - Setting Options -Indexes' . "\n"); + } + + if(isset($row_diroptions['error404path']) + && $row_diroptions['error404path'] != '') + { + $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 404 ' . $row_diroptions['error404path'] . "\n"; + } + + if(isset($row_diroptions['error403path']) + && $row_diroptions['error403path'] != '') + { + $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 403 ' . $row_diroptions['error403path'] . "\n"; + } + + if(isset($row_diroptions['error500path']) + && $row_diroptions['error500path'] != '') + { + $this->diroptions_data[$diroptions_filename].= ' ErrorDocument 500 ' . $row_diroptions['error500path'] . "\n"; + } + + if(count($row_diroptions['htpasswds']) > 0) + { + $htpasswd_filename = makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $row_diroptions['customerid'] . '-' . md5($row_diroptions['path']) . '.htpasswd'); + + if(!isset($this->htpasswds_data[$htpasswd_filename])) + { + $this->htpasswds_data[$htpasswd_filename] = ''; + } + + foreach($row_diroptions['htpasswds'] as $row_htpasswd) + { + $this->htpasswds_data[$htpasswd_filename].= $row_htpasswd['username'] . ':' . $row_htpasswd['password'] . "\n"; + } + + $this->diroptions_data[$diroptions_filename].= ' AuthType Basic' . "\n"; + $this->diroptions_data[$diroptions_filename].= ' AuthName "Restricted Area"' . "\n"; + $this->diroptions_data[$diroptions_filename].= ' AuthUserFile ' . $htpasswd_filename . "\n"; + $this->diroptions_data[$diroptions_filename].= ' require valid-user' . "\n"; + } + + $this->diroptions_data[$diroptions_filename].= '' . "\n"; + } + } + } + + /* + * We write the configs + */ + + public function writeConfigs() + { + // Write diroptions + + fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_diroptions'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_diroptions']); + + if(count($this->diroptions_data) > 0) + { + if(!isConfigDir($this->settings['system']['apacheconf_diroptions'])) + { + // Save one big file + + $diroptions_file = ''; + + foreach($this->diroptions_data as $diroptions_filename => $diroptions_content) + { + $diroptions_file.= $diroptions_content . "\n\n"; + } + + $diroptions_filename = $this->settings['system']['apacheconf_diroptions']; + + // Apply header + + $diroptions_file = '# ' . basename($diroptions_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $diroptions_file; + $diroptions_file_handler = fopen($diroptions_filename, 'w'); + fwrite($diroptions_file_handler, $diroptions_file); + fclose($diroptions_file_handler); + } + else + { + if(!file_exists($this->settings['system']['apacheconf_diroptions'])) + { + fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions'])) . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions']))); + safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_diroptions']))); + } + + // Write a single file for every diroption + + foreach($this->diroptions_data as $diroptions_filename => $diroptions_file) + { + $this->known_diroptionsfilenames[] = basename($diroptions_filename); + + // Apply header + + $diroptions_file = '# ' . basename($diroptions_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $diroptions_file; + $diroptions_file_handler = fopen($diroptions_filename, 'w'); + fwrite($diroptions_file_handler, $diroptions_file); + fclose($diroptions_file_handler); + } + + $this->wipeOutOldDiroptionConfigs(); + } + } + + // Write htpasswds + + fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_htpasswddir'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_htpasswddir']); + + if(count($this->htpasswds_data) > 0) + { + if(!file_exists($this->settings['system']['apacheconf_htpasswddir'])) + { + $umask = umask(); + umask(0000); + mkdir($this->settings['system']['apacheconf_htpasswddir'], 0751); + umask($umask); + } + elseif(!is_dir($this->settings['system']['apacheconf_htpasswddir'])) + { + fwrite($this->debugHandler, ' cron_tasks: WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!' . "\n"); + echo 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!'; + $this->logger->logAction(CRON_ACTION, LOG_WARNING, 'WARNING!!! ' . $this->settings['system']['apacheconf_htpasswddir'] . ' is not a directory. htpasswd directory protection is disabled!!!'); + } + + if(is_dir($this->settings['system']['apacheconf_htpasswddir'])) + { + foreach($this->htpasswds_data as $htpasswd_filename => $htpasswd_file) + { + $this->known_htpasswdsfilenames[] = basename($htpasswd_filename); + $htpasswd_file_handler = fopen($htpasswd_filename, 'w'); + fwrite($htpasswd_file_handler, $htpasswd_file); + fclose($htpasswd_file_handler); + } + + $this->wipeOutOldHtpasswdConfigs(); + } + } + + // Write virtualhosts + + fwrite($this->debugHandler, ' apache::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_vhost'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_vhost']); + + if(count($this->virtualhosts_data) > 0) + { + if(!isConfigDir($this->settings['system']['apacheconf_vhost'])) + { + // Save one big file + + $vhosts_file = ''; + + foreach($this->virtualhosts_data as $vhosts_filename => $vhost_content) + { + $vhosts_file.= $vhost_content . "\n\n"; + } + + // Include diroptions file in case it exists + + if(file_exists($this->settings['system']['apacheconf_diroptions'])) + { + $vhosts_file.= "\n" . 'Include ' . $this->settings['system']['apacheconf_diroptions'] . "\n\n"; + } + + $vhosts_filename = $this->settings['system']['apacheconf_vhost']; + + // Apply header + + $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; + $vhosts_file_handler = fopen($vhosts_filename, 'w'); + fwrite($vhosts_file_handler, $vhosts_file); + fclose($vhosts_file_handler); + } + else + { + if(!file_exists($this->settings['system']['apacheconf_vhost'])) + { + fwrite($this->debugHandler, ' apache::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost'])) . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); + safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); + } + + // Write a single file for every vhost + + foreach($this->virtualhosts_data as $vhosts_filename => $vhosts_file) + { + $this->known_vhostfilenames[] = basename($vhosts_filename); + + // Apply header + + $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; + $vhosts_file_handler = fopen($vhosts_filename, 'w'); + fwrite($vhosts_file_handler, $vhosts_file); + fclose($vhosts_file_handler); + } + + $this->wipeOutOldVhostConfigs(); + } + } + } + + /* + * We remove old vhost config files + */ + + protected function wipeOutOldVhostConfigs() + { + fwrite($this->debugHandler, ' apache::wipeOutOldVhostConfigs: cleaning ' . $this->settings['system']['apacheconf_vhost'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_vhost']); + + if(isConfigDir($this->settings['system']['apacheconf_vhost']) + && file_exists($this->settings['system']['apacheconf_vhost']) + && is_dir($this->settings['system']['apacheconf_vhost'])) + { + $vhost_file_dirhandle = opendir($this->settings['system']['apacheconf_vhost']); + + while(false !== ($vhost_filename = readdir($vhost_file_dirhandle))) + { + if($vhost_filename != '.' + && $vhost_filename != '..' + && !in_array($vhost_filename, $this->known_vhostfilenames) + && preg_match('/^(10|20|30)_syscp_(ipandport|normal_vhost|wildcard_vhost|ssl_vhost)_(.+)\.conf$/', $vhost_filename) + && file_exists(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename))) + { + fwrite($this->debugHandler, ' apache::wipeOutOldVhostConfigs: unlinking ' . $vhost_filename . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $vhost_filename); + unlink(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename)); + } + } + } + } + + /* + * We remove old diroptions config files + */ + + protected function wipeOutOldDiroptionConfigs() + { + fwrite($this->debugHandler, ' apache::wipeOutOldDiroptionConfigs: cleaning ' . $this->settings['system']['apacheconf_diroptions'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_diroptions']); + + if(isConfigDir($this->settings['system']['apacheconf_diroptions']) + && file_exists($this->settings['system']['apacheconf_diroptions']) + && is_dir($this->settings['system']['apacheconf_diroptions'])) + { + $diroptions_file_dirhandle = opendir($this->settings['system']['apacheconf_diroptions']); + + while(false !== ($diroptions_filename = readdir($diroptions_file_dirhandle))) + { + if($diroptions_filename != '.' + && $diroptions_filename != '..' + && !in_array($diroptions_filename, $this->known_diroptionsfilenames) + && preg_match('/^40_syscp_diroption_(.+)\.conf$/', $diroptions_filename) + && file_exists(makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/' . $diroptions_filename))) + { + fwrite($this->debugHandler, ' apache::wipeOutOldDiroptionConfigs: unlinking ' . $diroptions_filename . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $diroptions_filename); + unlink(makeCorrectFile($this->settings['system']['apacheconf_diroptions'] . '/' . $diroptions_filename)); + } + } + } + } + + /* + * We remove old htpasswd config files + */ + + protected function wipeOutOldHtpasswdConfigs() + { + fwrite($this->debugHandler, ' apache::wipeOutOldHtpasswdConfigs: cleaning ' . $this->settings['system']['apacheconf_htpasswddir'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_htpasswddir']); + + if(isConfigDir($this->settings['system']['apacheconf_htpasswddir']) + && file_exists($this->settings['system']['apacheconf_htpasswddir']) + && is_dir($this->settings['system']['apacheconf_htpasswddir'])) + { + $htpasswds_file_dirhandle = opendir($this->settings['system']['apacheconf_htpasswddir']); + + while(false !== ($htpasswd_filename = readdir($htpasswds_file_dirhandle))) + { + if($htpasswd_filename != '.' + && $htpasswd_filename != '..' + && !in_array($htpasswd_filename, $this->known_htpasswdsfilenames) + && file_exists(makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $htpasswd_filename))) + { + fwrite($this->debugHandler, ' apache::wipeOutOldHtpasswdConfigs: unlinking ' . $htpasswd_filename . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $htpasswd_filename); + unlink(makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $htpasswd_filename)); + } + } + } + } +} + +?> diff --git a/scripts/cron_tasks.inc.http.15.apache_fcgid.php b/scripts/cron_tasks.inc.http.15.apache_fcgid.php index 35c6dc3a..97691620 100644 --- a/scripts/cron_tasks.inc.http.15.apache_fcgid.php +++ b/scripts/cron_tasks.inc.http.15.apache_fcgid.php @@ -1,264 +1,264 @@ - - * @author Luca Longinotti - * @author Michael Kaufmann - * @author Sven Skrabal - * @author Florian Lippert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_tasks.inc.http.15.apache_fcgid.php 2714 2009-04-17 10:02:03Z flo $ - */ - -if(@php_sapi_name() != 'cli' - && @php_sapi_name() != 'cgi' - && @php_sapi_name() != 'cgi-fcgi') -{ - die('This script only works in the shell.'); -} - -class apache_fcgid extends apache -{ - private $php_configs_cache = array(); - private $admin_cache = array(); - - /* - * We put together the needed php options in the virtualhost entries - */ - - protected function composePhpOptions($domain) - { - $php_options_text = ''; - - if($domain['phpenabled'] == '1') - { - // This vHost has PHP enabled and we are using mod_fcgid - //create basic variables for config - - $configdir = makeCorrectDir($this->settings['system']['mod_fcgid_configdir'] . '/' . $domain['loginname'] . '/' . $domain['domain'] . '/'); - $starter_filename = makeCorrectFile($configdir . '/php-fcgi-starter'); - $phpini_filename = makeCorrectFile($configdir . '/php.ini'); - $tmpdir = makeCorrectDir($this->settings['system']['mod_fcgid_tmpdir'] . '/' . $domain['loginname'] . '/'); - - // create config dir if necessary - - if(!is_dir($configdir)) - { - safe_exec('mkdir -p ' . escapeshellarg($configdir)); - safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($configdir)); - } - - // create tmp dir if necessary - - if(!is_dir($tmpdir)) - { - safe_exec('mkdir -p ' . escapeshellarg($tmpdir)); - safe_exec('chown -R ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($tmpdir)); - safe_exec('chmod 0750 ' . escapeshellarg($tmpdir)); - } - - // Load php config - - $phpconfig = $this->getPhpConfig((int)$domain['phpsettingid']); - - if((int)$this->settings['system']['mod_fcgid_wrapper'] == 0) - { - $php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n"; - $php_options_text.= ' ScriptAlias /php/ ' . $configdir . "\n"; - } - else - { - $php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n"; - $php_options_text.= ' ' . "\n"; - $file_extensions = explode(' ', $phpconfig['file_extensions']); - $php_options_text.= ' AddHandler fcgid-script .' . implode(' .', $file_extensions) . "\n"; - foreach($file_extensions as $file_extension) - { - $php_options_text.= ' FCGIWrapper ' . $starter_filename . ' .' . $file_extension . "\n"; - } - - $php_options_text.= ' Options +ExecCGI' . "\n"; - $php_options_text.= ' Order allow,deny' . "\n"; - $php_options_text.= ' allow from all' . "\n"; - $php_options_text.= ' ' . "\n"; - } - - // create starter - - $starter_file = "#!/bin/sh\n\n"; - $starter_file.= "#\n"; - $starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; - $starter_file.= "# Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n"; - $starter_file.= "#\n\n"; - $starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n"; - $starter_file.= "export PHPRC\n"; - - // set number of processes for one domain - - if((int)$domain['mod_fcgid_starter'] != - 1) - { - $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$domain['mod_fcgid_starter'] . "\n"; - } - else - { - if((int)$phpconfig['mod_fcgid_starter'] != - 1) - { - $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$phpconfig['mod_fcgid_starter'] . "\n"; - } - else - { - $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$this->settings['system']['mod_fcgid_starter'] . "\n"; - } - } - - $starter_file.= "export PHP_FCGI_CHILDREN\n"; - - // set number of maximum requests for one domain - - if((int)$domain['mod_fcgid_maxrequests'] != - 1) - { - $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$domain['mod_fcgid_maxrequests'] . "\n"; - } - else - { - if((int)$phpconfig['mod_fcgid_maxrequests'] != - 1) - { - $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$phpconfig['mod_fcgid_maxrequests'] . "\n"; - } - else - { - $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$this->settings['system']['mod_fcgid_maxrequests'] . "\n"; - } - } - - $starter_file.= "export PHP_FCGI_MAX_REQUESTS\n"; - - // Set Binary - - $starter_file.= "exec " . $phpconfig['binary'] . " -c " . escapeshellarg($configdir) . "\n"; - - //remove +i attibute, so starter can be overwritten - - if(file_exists($starter_filename)) - { - safe_exec('chattr -i ' . escapeshellarg($starter_filename)); - } - - $starter_file_handler = fopen($starter_filename, 'w'); - fwrite($starter_file_handler, $starter_file); - fclose($starter_file_handler); - safe_exec('chmod 750 ' . escapeshellarg($starter_filename)); - safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($starter_filename)); - safe_exec('chattr +i ' . escapeshellarg($starter_filename)); - - // define the php.ini - - $openbasedir = ''; - $openbasedirc = ';'; - - if($domain['openbasedir'] == '1') - { - $openbasedirc = ''; - if($domain['openbasedir_path'] == '0') - { - $openbasedir = $domain['documentroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir']; - } - else - { - $openbasedir = $domain['customerroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir']; - } - - $openbasedir = explode(':', $openbasedir); - foreach($openbasedir as $number => $path) - { - $openbasedir[$number] = makeCorrectDir($path); - } - - $openbasedir = implode(':', $openbasedir); - } - else - { - $openbasedir = 'none'; - $openbasedirc = ';'; - } - - $admin = $this->getAdminData($domain['adminid']); - $php_ini_variables = array( - 'SAFE_MODE' => ($domain['safemode'] == '0' ? 'Off' : 'On'), - 'PEAR_DIR' => $this->settings['system']['mod_fcgid_peardir'], - 'OPEN_BASEDIR' => $openbasedir, - 'OPEN_BASEDIR_C' => $openbasedirc, - 'OPEN_BASEDIR_GLOBAL' => $this->settings['system']['phpappendopenbasedir'], - 'TMP_DIR' => $tmpdir, - 'CUSTOMER_EMAIL' => $domain['email'], - 'ADMIN_EMAIL' => $admin['email'], - 'DOMAIN' => $domain['domain'], - 'CUSTOMER' => $domain['loginname'], - 'ADMIN' => $admin['loginname'] - ); - - //insert a small header for the file - - $phpini_file = ";\n"; - $phpini_file.= "; php.ini created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; - $phpini_file.= "; Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n"; - $phpini_file.= ";\n\n"; - $phpini_file.= replace_variables($phpconfig['phpsettings'], $php_ini_variables); - $phpini_file = str_replace('"none"', 'none', $phpini_file); - $phpini_file = preg_replace('/\"+/', '"', $phpini_file); - $phpini_file_handler = fopen($phpini_filename, 'w'); - fwrite($phpini_file_handler, $phpini_file); - fclose($phpini_file_handler); - safe_exec('chown root:0 ' . escapeshellarg($phpini_filename)); - safe_exec('chmod 0644 ' . escapeshellarg($phpini_filename)); - } - else - { - $php_options_text.= ' # PHP is disabled for this vHost' . "\n"; - } - - return $php_options_text; - } - - private function getPhpConfig($php_config_id) - { - $php_config_id = intval($php_config_id); - - // If domain has no config, we will use the default one. - - if($php_config_id == 0) - { - $php_config_id = 1; - } - - if(!isset($this->php_configs_cache[$php_config_id])) - { - $this->php_configs_cache[$php_config_id] = $this->db->query_first("SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = " . (int)$php_config_id); - } - - return $this->php_configs_cache[$php_config_id]; - } - - private function getAdminData($adminid) - { - $adminid = intval($adminid); - - if(!isset($this->admin_cache[$adminid])) - { - $this->admin_cache[$adminid] = $this->db->query_first("SELECT `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid` = " . (int)$adminid); - } - - return $this->admin_cache[$adminid]; - } -} - + + * @author Luca Longinotti + * @author Michael Kaufmann + * @author Sven Skrabal + * @author Florian Lippert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_tasks.inc.http.15.apache_fcgid.php 2714 2009-04-17 10:02:03Z flo $ + */ + +if(@php_sapi_name() != 'cli' + && @php_sapi_name() != 'cgi' + && @php_sapi_name() != 'cgi-fcgi') +{ + die('This script only works in the shell.'); +} + +class apache_fcgid extends apache +{ + private $php_configs_cache = array(); + private $admin_cache = array(); + + /* + * We put together the needed php options in the virtualhost entries + */ + + protected function composePhpOptions($domain) + { + $php_options_text = ''; + + if($domain['phpenabled'] == '1') + { + // This vHost has PHP enabled and we are using mod_fcgid + //create basic variables for config + + $configdir = makeCorrectDir($this->settings['system']['mod_fcgid_configdir'] . '/' . $domain['loginname'] . '/' . $domain['domain'] . '/'); + $starter_filename = makeCorrectFile($configdir . '/php-fcgi-starter'); + $phpini_filename = makeCorrectFile($configdir . '/php.ini'); + $tmpdir = makeCorrectDir($this->settings['system']['mod_fcgid_tmpdir'] . '/' . $domain['loginname'] . '/'); + + // create config dir if necessary + + if(!is_dir($configdir)) + { + safe_exec('mkdir -p ' . escapeshellarg($configdir)); + safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($configdir)); + } + + // create tmp dir if necessary + + if(!is_dir($tmpdir)) + { + safe_exec('mkdir -p ' . escapeshellarg($tmpdir)); + safe_exec('chown -R ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($tmpdir)); + safe_exec('chmod 0750 ' . escapeshellarg($tmpdir)); + } + + // Load php config + + $phpconfig = $this->getPhpConfig((int)$domain['phpsettingid']); + + if((int)$this->settings['system']['mod_fcgid_wrapper'] == 0) + { + $php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n"; + $php_options_text.= ' ScriptAlias /php/ ' . $configdir . "\n"; + } + else + { + $php_options_text.= ' SuexecUserGroup "' . $domain['loginname'] . '" "' . $domain['loginname'] . '"' . "\n"; + $php_options_text.= ' ' . "\n"; + $file_extensions = explode(' ', $phpconfig['file_extensions']); + $php_options_text.= ' AddHandler fcgid-script .' . implode(' .', $file_extensions) . "\n"; + foreach($file_extensions as $file_extension) + { + $php_options_text.= ' FCGIWrapper ' . $starter_filename . ' .' . $file_extension . "\n"; + } + + $php_options_text.= ' Options +ExecCGI' . "\n"; + $php_options_text.= ' Order allow,deny' . "\n"; + $php_options_text.= ' allow from all' . "\n"; + $php_options_text.= ' ' . "\n"; + } + + // create starter + + $starter_file = "#!/bin/sh\n\n"; + $starter_file.= "#\n"; + $starter_file.= "# starter created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; + $starter_file.= "# Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n"; + $starter_file.= "#\n\n"; + $starter_file.= "PHPRC=" . escapeshellarg($configdir) . "\n"; + $starter_file.= "export PHPRC\n"; + + // set number of processes for one domain + + if((int)$domain['mod_fcgid_starter'] != - 1) + { + $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$domain['mod_fcgid_starter'] . "\n"; + } + else + { + if((int)$phpconfig['mod_fcgid_starter'] != - 1) + { + $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$phpconfig['mod_fcgid_starter'] . "\n"; + } + else + { + $starter_file.= "PHP_FCGI_CHILDREN=" . (int)$this->settings['system']['mod_fcgid_starter'] . "\n"; + } + } + + $starter_file.= "export PHP_FCGI_CHILDREN\n"; + + // set number of maximum requests for one domain + + if((int)$domain['mod_fcgid_maxrequests'] != - 1) + { + $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$domain['mod_fcgid_maxrequests'] . "\n"; + } + else + { + if((int)$phpconfig['mod_fcgid_maxrequests'] != - 1) + { + $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$phpconfig['mod_fcgid_maxrequests'] . "\n"; + } + else + { + $starter_file.= "PHP_FCGI_MAX_REQUESTS=" . (int)$this->settings['system']['mod_fcgid_maxrequests'] . "\n"; + } + } + + $starter_file.= "export PHP_FCGI_MAX_REQUESTS\n"; + + // Set Binary + + $starter_file.= "exec " . $phpconfig['binary'] . " -c " . escapeshellarg($configdir) . "\n"; + + //remove +i attibute, so starter can be overwritten + + if(file_exists($starter_filename)) + { + safe_exec('chattr -i ' . escapeshellarg($starter_filename)); + } + + $starter_file_handler = fopen($starter_filename, 'w'); + fwrite($starter_file_handler, $starter_file); + fclose($starter_file_handler); + safe_exec('chmod 750 ' . escapeshellarg($starter_filename)); + safe_exec('chown ' . $domain['guid'] . ':' . $domain['guid'] . ' ' . escapeshellarg($starter_filename)); + safe_exec('chattr +i ' . escapeshellarg($starter_filename)); + + // define the php.ini + + $openbasedir = ''; + $openbasedirc = ';'; + + if($domain['openbasedir'] == '1') + { + $openbasedirc = ''; + if($domain['openbasedir_path'] == '0') + { + $openbasedir = $domain['documentroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir']; + } + else + { + $openbasedir = $domain['customerroot'] . ':' . $tmpdir . ':' . $this->settings['system']['mod_fcgid_peardir'] . ':' . $this->settings['system']['phpappendopenbasedir']; + } + + $openbasedir = explode(':', $openbasedir); + foreach($openbasedir as $number => $path) + { + $openbasedir[$number] = makeCorrectDir($path); + } + + $openbasedir = implode(':', $openbasedir); + } + else + { + $openbasedir = 'none'; + $openbasedirc = ';'; + } + + $admin = $this->getAdminData($domain['adminid']); + $php_ini_variables = array( + 'SAFE_MODE' => ($domain['safemode'] == '0' ? 'Off' : 'On'), + 'PEAR_DIR' => $this->settings['system']['mod_fcgid_peardir'], + 'OPEN_BASEDIR' => $openbasedir, + 'OPEN_BASEDIR_C' => $openbasedirc, + 'OPEN_BASEDIR_GLOBAL' => $this->settings['system']['phpappendopenbasedir'], + 'TMP_DIR' => $tmpdir, + 'CUSTOMER_EMAIL' => $domain['email'], + 'ADMIN_EMAIL' => $admin['email'], + 'DOMAIN' => $domain['domain'], + 'CUSTOMER' => $domain['loginname'], + 'ADMIN' => $admin['loginname'] + ); + + //insert a small header for the file + + $phpini_file = ";\n"; + $phpini_file.= "; php.ini created/changed on " . date("Y.m.d H:i:s") . " for domain '" . $domain['domain'] . "' with id #" . $domain['id'] . " from php template '" . $phpconfig['description'] . "' with id #" . $phpconfig['id'] . "\n"; + $phpini_file.= "; Do not change anything in this file, it will be overwritten by the SysCP Cronjob!\n"; + $phpini_file.= ";\n\n"; + $phpini_file.= replace_variables($phpconfig['phpsettings'], $php_ini_variables); + $phpini_file = str_replace('"none"', 'none', $phpini_file); + $phpini_file = preg_replace('/\"+/', '"', $phpini_file); + $phpini_file_handler = fopen($phpini_filename, 'w'); + fwrite($phpini_file_handler, $phpini_file); + fclose($phpini_file_handler); + safe_exec('chown root:0 ' . escapeshellarg($phpini_filename)); + safe_exec('chmod 0644 ' . escapeshellarg($phpini_filename)); + } + else + { + $php_options_text.= ' # PHP is disabled for this vHost' . "\n"; + } + + return $php_options_text; + } + + private function getPhpConfig($php_config_id) + { + $php_config_id = intval($php_config_id); + + // If domain has no config, we will use the default one. + + if($php_config_id == 0) + { + $php_config_id = 1; + } + + if(!isset($this->php_configs_cache[$php_config_id])) + { + $this->php_configs_cache[$php_config_id] = $this->db->query_first("SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = " . (int)$php_config_id); + } + + return $this->php_configs_cache[$php_config_id]; + } + + private function getAdminData($adminid) + { + $adminid = intval($adminid); + + if(!isset($this->admin_cache[$adminid])) + { + $this->admin_cache[$adminid] = $this->db->query_first("SELECT `email`, `loginname` FROM `" . TABLE_PANEL_ADMINS . "` WHERE `adminid` = " . (int)$adminid); + } + + return $this->admin_cache[$adminid]; + } +} + ?> \ No newline at end of file diff --git a/scripts/cron_tasks.inc.http.20.lighttpd.php b/scripts/cron_tasks.inc.http.20.lighttpd.php index 11cec856..e94e53c1 100644 --- a/scripts/cron_tasks.inc.http.20.lighttpd.php +++ b/scripts/cron_tasks.inc.http.20.lighttpd.php @@ -1,582 +1,582 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_tasks.inc.http.20.lighttpd.php 2715 2009-04-28 14:24:46Z flo $ - */ - -/* - * This script creates the php.ini's used by mod_suPHP+php-cgi - */ - -if(@php_sapi_name() != 'cli' -&& @php_sapi_name() != 'cgi' -&& @php_sapi_name() != 'cgi-fcgi') -{ - die('This script only works in the shell.'); -} - -class lighttpd -{ - private $db = false; - private $logger = false; - private $debugHandler = false; - private $settings = array(); - - // protected - - public $needed_htpasswds = array(); - public $auth_backend_loaded = false; - public $htpasswd_files = array(); - public $mod_accesslog_loaded = "0"; - protected $lighttpd_data = array(); - - function __construct($db, $logger, $debugHandler, $settings) - { - $this->db = $db; - $this->logger = $logger; - $this->debugHandler = $debugHandler; - $this->settings = $settings; - } - - public function reload() - { - fwrite($this->debugHandler, ' lighttpd::reload: reloading lighttpd' . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache'); - safe_exec($this->settings['system']['apachereload_command']); - } - - public function createIpPort() - { - $query = "SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, " . " `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file` " . " FROM `" . TABLE_PANEL_IPSANDPORTS . "` ORDER BY `ip` ASC, `port` ASC"; - $result_ipsandports = $this->db->query($query); - - while($row_ipsandports = $this->db->fetch_array($result_ipsandports)) - { - if(filter_var($row_ipsandports['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ip = '[' . $row_ipsandports['ip'] . ']'; - $port = $row_ipsandports['port']; - } - else - { - $ip = $row_ipsandports['ip']; - $port = $row_ipsandports['port']; - } - - fwrite($this->debugHandler, ' lighttpd::createIpPort: creating ip/port settings for ' . $ip . ":" . $port . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ip . ":" . $port); - $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/10_syscp_ipandport_' . trim(str_replace(':', '.', $row_ipsandports['ip']), '.') . '.' . $row_ipsandports['port'] . '.conf'); - $this->lighttpd_data[$vhost_filename].= '$SERVER["socket"] == "' . $ip . ':' . $port . '" {' . "\n"; - - if($row_ipsandports['listen_statement'] == '1') - { - $this->lighttpd_data[$vhost_filename].= 'server.port = ' . $port . "\n"; - $this->lighttpd_data[$vhost_filename].= 'server.bind = "' . $ip . '"' . "\n"; - } - - if($row_ipsandports['ssl'] == '1') - { - $this->lighttpd_data[$vhost_filename].= 'ssl.engine = "enable"' . "\n"; - $this->lighttpd_data[$vhost_filename].= 'ssl.pemfile = "' . $row_ipsandports['ssl_cert_file'] . '"' . "\n"; - } - - $this->createLighttpdHosts($row_ipsandports['ip'], $row_ipsandports['port'], $row_ipsandports['ssl'], $vhost_filename); - $this->lighttpd_data[$vhost_filename].= $this->needed_htpasswds[$row_ipsandports['id']] . "\n"; - $this->lighttpd_data[$vhost_filename].= '}' . "\n"; - } - } - - protected function create_htaccess($domain) - { - $needed_htpasswds = array(); - $htpasswd_query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `path` LIKE '" . $domain['documentroot'] . "%'"; - $result_htpasswds = $this->db->query($htpasswd_query); - - while($row_htpasswds = $this->db->fetch_array($result_htpasswds)) - { - $filename = $row_htpasswds['customerid'] . '-' . md5($row_htpasswds['path']) . '.htpasswd'; - - if(!in_array($row_htpasswds['path'], $needed_htpasswds)) - { - if(empty($needed_htpasswds)) - { - $auth_backend_loaded[$domain['ipandport']] = 'yes'; - - if(!$this->auth_backend_loaded) - { - $htaccess_text.= ' auth.backend = "htpasswd"' . "\n"; - } - - $htaccess_text.= ' auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; - $htaccess_text.= ' auth.require = ( ' . "\n"; - } - else - { - $htaccess_text.= ' ,' . "\n"; - } - - if(!strstr($this->needed_htpasswds[$filename], $row_htpasswds['username'] . ':' . $row_htpasswds['password'])) - { - $this->needed_htpasswds[$filename].= $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; - } - - $needed_htpasswds[] = $row_htpasswds['path']; - $htaccess_path = substr($row_htpasswds['path'], strlen($domain['documentroot']) - 1); - $htaccess_text.= ' "' . makeCorrectDir($htaccess_path) . '" =>' . "\n"; - $htaccess_text.= ' (' . "\n"; - $htaccess_text.= ' "method" => "basic",' . "\n"; - $htaccess_text.= ' "realm" => "Restricted Area",' . "\n"; - $htaccess_text.= ' "require" => "user=' . $row_htpasswds[username] . '"' . "\n"; - $htaccess_text.= ' )' . "\n"; - } - } - - if(strlen(trim($htaccess_text)) > 0) - { - $htaccess_text.= ' )' . "\n"; - } - - return $htaccess_text; - } - - function createVirtualHosts() - { - } - - function createFileDirOptions() - { - } - - protected function createLighttpdHosts($ip, $port, $ssl, $vhost_filename) - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `ip`='" . $ip . "' AND `port`='" . $port . "'"; - $ipandport = $this->db->query_first($query); - - if($ssl == '0') - { - $query2 = "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`ipandport`='" . $ipandport['id'] . "' " . "ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"; - } - else - { - $query2.= "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`ssl_ipandport`='" . $ipandport['id'] . "' " . "ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"; - } - - $result_domains = $this->db->query($query2); - - while($domain = $this->db->fetch_array($result_domains)) - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; - $ipandport = $this->db->query_first($query); - $domain['ip'] = $ipandport['ip']; - $domain['port'] = $ipandport['port']; - $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; - - if(!empty($this->lighttpd_data[$vhost_filename])) - { - if($ssl == '1') - { - $ssl_vhost = true; - } - else - { - $ssl_vhost = false; - } - - $this->lighttpd_data[$vhost_filename].= $this->getVhostContent($domain, $ssl_vhost); - } - } - } - - protected function getVhostContent($domain, $ssl_vhost = false) - { - if($ssl_vhost === true - && $domain['ssl'] != '1') - { - return ''; - } - - if($ssl_vhost === true - && $domain['ssl'] == '1') - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ssl_ipandport'] . "'"; - } - else - { - $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; - } - - $ipandport = $this->db->query_first($query); - $domain['ip'] = $ipandport['ip']; - $domain['port'] = $ipandport['port']; - $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; - - if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) - { - $ipport = '[' . $domain['ip'] . ']:' . $domain['port']; - } - else - { - $ipport = $domain['ip'] . ':' . $domain['port']; - } - - $vhost_content.= $this->getServerNames($domain) . " {\n"; - $vhost_content.= $this->getWebroot($domain, $ssl_vhost); - $vhost_content.= $this->create_htaccess($domain); - $vhost_content.= $this->create_pathOptions($domain); - $vhost_content.= $this->getLogFiles($domain); - $vhost_content.= '}' . "\n"; - return $vhost_content; - } - - protected function getLogFiles($domain) - { - $logfiles_text = ''; - - if($this->settings['system']['mod_log_sql'] == 1) - { - // We are using mod_log_sql (http://www.outoforder.cc/projects/apache/mod_log_sql/) - // TODO: See how we are able emulate the error_log - } - else - { - // The normal access/error - logging is enabled - - $filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log'; - - if(!is_file($filename)) - { - $ourFileHandle = fopen($filename, 'w') or die("can't open file"); - fclose($ourFileHandle); - } - - chown($filename, $this->settings[system]['httpuser']); - chgrp($filename, $this->settings[system]['httpgroup']); - - //access log - - $filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log'; - - if(!is_file($filename)) - { - $ourFileHandle = fopen($filename, 'w') or die("can't open file"); - fclose($ourFileHandle); - } - - $logfiles_text.= ' accesslog.filename = "' . $filename . '"' . "\n"; - chown($filename, $this->settings[system]['httpuser']); - chgrp($filename, $this->settings[system]['httpgroup']); - } - - return $logfiles_text; - } - - protected function create_pathOptions($domain) - { - $query = "SELECT * FROM " . TABLE_PANEL_HTACCESS . " WHERE `path` LIKE '" . $domain['documentroot'] . "%'"; - $result = $this->db->query($query); - - $path_options = ''; - $error_string = ''; - - while($row = $this->db->fetch_array($result)) - { - if(!empty($row['error404path'])) - { - $error_string.= ' server.error-handler-404 = "' . makeCorrectFile($row['documentroot'] . '/' . $row['error404path']) . '"' . "\n"; - } - - if($row['options_indexes'] != '0') - { - $path = makeCorrectDir(substr($row['path'], strlen($domain['documentroot']) - 1)); - - // We need to remove the last slash, otherwise the regex wouldn't work - - $path = substr($path, 0, -1); - $path_options.= '$HTTP["url"] =~ "^' . $path . '($|/)" {' . "\n"; - $path_options.= "\t" . 'dir-listing.activate = "enable"' . "\n"; - if(!empty($error_string)) - { - $path_options.= $error_string; - // reset $error_string here to prevent duplicate entries - $error_string = ''; - } - $path_options.= '}' . "\n"; - } - else - { - $path_options = $error_string; - } - } - - return $path_options; - } - - protected function getDirOptions($domain) - { - $query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `customerid`='" . $domain[customerid] . "'"; - $result = $this->db->query($query); - - while($row_htpasswds = $this->db->fetch_array($result)) - { - if($auth_backend_loaded[$domain['ipandport']] != 'yes' - && $auth_backend_loaded[$domain['ssl_ipandport']] != 'yes') - { - $filename = $domain['customerid'] . '.htpasswd'; - - if($this->auth_backend_loaded[$domain['ipandport']] != 'yes') - { - $auth_backend_loaded[$domain['ipandport']] = 'yes'; - $diroption_text.= 'auth.backend = "htpasswd"' . "\n"; - $diroption_text.= 'auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; - $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; - $diroption_text.= 'auth.require = ( ' . "\n"; - $previous_domain_id = '1'; - } - elseif($this->auth_backend_loaded[$domain['ssl_ipandport']] != 'yes') - { - $auth_backend_loaded[$domain['ssl_ipandport']] = 'yes'; - $diroption_text.= 'auth.backend= "htpasswd"' . "\n"; - $diroption_text.= 'auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; - $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; - $diroption_text.= 'auth.require = ( ' . "\n"; - $previous_domain_id = '1'; - } - } - - $diroption_text.= '"' . $row_htpasswds['path'] . '" =>' . "\n"; - $diroption_text.= '(' . "\n"; - $diroption_text.= ' "method" => "basic",' . "\n"; - $diroption_text.= ' "realm" => "Restricted Area",' . "\n"; - $diroption_text.= ' "require" => "user=' . $row_htpasswds['username'] . '"' . "\n"; - $diroption_text.= ')' . "\n"; - - if($this->auth_backend_loaded[$domain['ssl_ipandport']] == 'yes') - { - $this->needed_htpasswds[$domain['ssl_ipandport']].= $diroption_text; - } - - if($this->auth_backend_loaded[$domain['ipandport']] != 'yes') - { - $this->needed_htpasswds[$domain['ipandport']].= $diroption_text; - } - } - - return ' auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; - } - - protected function getServerNames($domain) - { - $server_string = array(); - $domain_name = ereg_replace('\.', '\.', $domain['domain']); - - if($domain['iswildcarddomain'] == '1') - { - $server_string[] = '(^|\.)' . $domain_name . '$'; - } - else - { - if($domain['wwwserveralias'] == '1') - { - $server_string[] = '^(www\.|)' . $domain_name . '$'; - } - else - { - } - } - - $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); - - while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) - { - $alias_domain_name = ereg_replace('\.', '\.', $alias_domain['domain']); - - if($alias_domain['iswildcarddomain'] == '1') - { - $server_string[] = '(^|\.)' . $alias_domain_name . '$'; - } - else - { - if($alias_domain['wwwserveralias'] == '1') - { - $server_string[] = '^(www.)?' . $alias_domain_name; - } - else - { - $server_string[] = $alias_domain_name; - } - } - } - - for ($i = 0;$i < sizeof($server_string);$i++) - { - $data = $server_string[$i]; - - if(sizeof($server_string) > 1) - { - if($i == 0) - { - $servernames_text = '(' . $data . '|'; - } - elseif(sizeof($server_string) - 1 == $i) - { - $servernames_text.= $data . ')'; - } - else - { - $servernames_text.= $data . '|'; - } - } - else - { - $servernames_text = $data; - } - } - - unset($data); - $servernames_text = '$HTTP["host"] =~ "' . $servernames_text . '"'; - return $servernames_text; - } - - protected function getWebroot($domain, $ssl) - { - $webroot_text = ''; - - if($domain['deactivated'] == '1' - && $this->settings['system']['deactivateddocroot'] != '') - { - $webroot_text.= ' # Using docroot for deactivated users...' . "\n"; - $webroot_text.= ' server.document-root = "' . $this->settings['system']['deactivateddocroot'] . "\"\n"; - } - else - { - if($ssl === false - && $domain['ssl_redirect'] == '1') - { - $webroot_text.= ' url.redirect = ( "^/(.*)" => "https://' . $domain['domain'] . '/$1" )' . "\n"; - } - elseif(preg_match("#^https?://#i", $domain['documentroot'])) - { - $webroot_text.= ' url.redirect = ( "^/(.*)" => "' . $domain['documentroot'] . '/$1" )' . "\n"; - } - else - { - $webroot_text.= ' server.document-root = "' . makeCorrectDir($domain['documentroot']) . "\"\n"; - } - } - - return $webroot_text; - } - - public function writeConfigs() - { - fwrite($this->debugHandler, ' lighttpd::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_vhost'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_vhost']); - - if(!isConfigDir($this->settings['system']['apacheconf_vhost'])) - { - // Save one big file - - foreach($this->lighttpd_data as $vhosts_filename => $vhost_content) - { - $vhosts_file.= $vhost_content . "\n\n"; - } - - $vhosts_filename = $this->settings['system']['apacheconf_vhost']; - - // Apply header - - $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; - $vhosts_file_handler = fopen($vhosts_filename, 'w'); - fwrite($vhosts_file_handler, $vhosts_file); - fclose($vhosts_file_handler); - } - else - { - if(!file_exists($this->settings['system']['apacheconf_vhost'])) - { - fwrite($this->debugHandler, ' lighttpd::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost'])) . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); - safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); - } - - // Write a single file for every vhost - - foreach($this->lighttpd_data as $vhosts_filename => $vhosts_file) - { - $this->known_filenames[] = basename($vhosts_filename); - - // Apply header - - $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; - - if(!empty($vhosts_filename)) - { - $vhosts_file_handler = fopen($vhosts_filename, 'w'); - fwrite($vhosts_file_handler, $vhosts_file); - fclose($vhosts_file_handler); - } - } - - $this->wipeOutOldConfigs(); - } - - // Write the diroptions - - if(isConfigDir($this->settings['system']['apacheconf_htpasswddir'])) - { - foreach($this->needed_htpasswds as $key => $data) - { - if(!is_dir($this->settings['system']['apacheconf_htpasswddir'])) - { - mkdir($this->settings['system']['apacheconf_htpasswddir']); - } - - $filename = $this->settings['system']['apacheconf_htpasswddir'] . '/' . $key; - $htpasswd_handler = fopen($filename, 'w'); - fwrite($htpasswd_handler, $data); - fclose($htpasswd_handler); - } - } - } - - private function wipeOutOldConfigs() - { - fwrite($this->debugHandler, ' apache::wipeOutOldConfigs: cleaning ' . $this->settings['system']['apacheconf_vhost'] . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_vhost']); - - if(isConfigDir($this->settings['system']['apacheconf_vhost']) - && file_exists($this->settings['system']['apacheconf_vhost']) - && is_dir($this->settings['system']['apacheconf_vhost'])) - { - $vhost_file_dirhandle = opendir($this->settings['system']['apacheconf_vhost']); - - while(false !== ($vhost_filename = readdir($vhost_file_dirhandle))) - { - if($vhost_filename != '.' - && $vhost_filename != '..' - && !in_array($vhost_filename, $this->known_filenames) - && preg_match('/^(10|20|30)_syscp_ipandport_(.+)\.conf$/', $vhost_filename) - && file_exists(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename))) - { - fwrite($this->debugHandler, ' apache::wipeOutOldConfigs: unlinking ' . $vhost_filename . "\n"); - $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $vhost_filename); - unlink(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename)); - } - } - } - } -} - -?> + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_tasks.inc.http.20.lighttpd.php 2715 2009-04-28 14:24:46Z flo $ + */ + +/* + * This script creates the php.ini's used by mod_suPHP+php-cgi + */ + +if(@php_sapi_name() != 'cli' +&& @php_sapi_name() != 'cgi' +&& @php_sapi_name() != 'cgi-fcgi') +{ + die('This script only works in the shell.'); +} + +class lighttpd +{ + private $db = false; + private $logger = false; + private $debugHandler = false; + private $settings = array(); + + // protected + + public $needed_htpasswds = array(); + public $auth_backend_loaded = false; + public $htpasswd_files = array(); + public $mod_accesslog_loaded = "0"; + protected $lighttpd_data = array(); + + function __construct($db, $logger, $debugHandler, $settings) + { + $this->db = $db; + $this->logger = $logger; + $this->debugHandler = $debugHandler; + $this->settings = $settings; + } + + public function reload() + { + fwrite($this->debugHandler, ' lighttpd::reload: reloading lighttpd' . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'reloading apache'); + safe_exec($this->settings['system']['apachereload_command']); + } + + public function createIpPort() + { + $query = "SELECT `id`, `ip`, `port`, `listen_statement`, `namevirtualhost_statement`, `vhostcontainer`, " . " `vhostcontainer_servername_statement`, `specialsettings`, `ssl`, `ssl_cert_file` " . " FROM `" . TABLE_PANEL_IPSANDPORTS . "` ORDER BY `ip` ASC, `port` ASC"; + $result_ipsandports = $this->db->query($query); + + while($row_ipsandports = $this->db->fetch_array($result_ipsandports)) + { + if(filter_var($row_ipsandports['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ip = '[' . $row_ipsandports['ip'] . ']'; + $port = $row_ipsandports['port']; + } + else + { + $ip = $row_ipsandports['ip']; + $port = $row_ipsandports['port']; + } + + fwrite($this->debugHandler, ' lighttpd::createIpPort: creating ip/port settings for ' . $ip . ":" . $port . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, 'creating ip/port settings for ' . $ip . ":" . $port); + $vhost_filename = makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/10_syscp_ipandport_' . trim(str_replace(':', '.', $row_ipsandports['ip']), '.') . '.' . $row_ipsandports['port'] . '.conf'); + $this->lighttpd_data[$vhost_filename].= '$SERVER["socket"] == "' . $ip . ':' . $port . '" {' . "\n"; + + if($row_ipsandports['listen_statement'] == '1') + { + $this->lighttpd_data[$vhost_filename].= 'server.port = ' . $port . "\n"; + $this->lighttpd_data[$vhost_filename].= 'server.bind = "' . $ip . '"' . "\n"; + } + + if($row_ipsandports['ssl'] == '1') + { + $this->lighttpd_data[$vhost_filename].= 'ssl.engine = "enable"' . "\n"; + $this->lighttpd_data[$vhost_filename].= 'ssl.pemfile = "' . $row_ipsandports['ssl_cert_file'] . '"' . "\n"; + } + + $this->createLighttpdHosts($row_ipsandports['ip'], $row_ipsandports['port'], $row_ipsandports['ssl'], $vhost_filename); + $this->lighttpd_data[$vhost_filename].= $this->needed_htpasswds[$row_ipsandports['id']] . "\n"; + $this->lighttpd_data[$vhost_filename].= '}' . "\n"; + } + } + + protected function create_htaccess($domain) + { + $needed_htpasswds = array(); + $htpasswd_query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `path` LIKE '" . $domain['documentroot'] . "%'"; + $result_htpasswds = $this->db->query($htpasswd_query); + + while($row_htpasswds = $this->db->fetch_array($result_htpasswds)) + { + $filename = $row_htpasswds['customerid'] . '-' . md5($row_htpasswds['path']) . '.htpasswd'; + + if(!in_array($row_htpasswds['path'], $needed_htpasswds)) + { + if(empty($needed_htpasswds)) + { + $auth_backend_loaded[$domain['ipandport']] = 'yes'; + + if(!$this->auth_backend_loaded) + { + $htaccess_text.= ' auth.backend = "htpasswd"' . "\n"; + } + + $htaccess_text.= ' auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; + $htaccess_text.= ' auth.require = ( ' . "\n"; + } + else + { + $htaccess_text.= ' ,' . "\n"; + } + + if(!strstr($this->needed_htpasswds[$filename], $row_htpasswds['username'] . ':' . $row_htpasswds['password'])) + { + $this->needed_htpasswds[$filename].= $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; + } + + $needed_htpasswds[] = $row_htpasswds['path']; + $htaccess_path = substr($row_htpasswds['path'], strlen($domain['documentroot']) - 1); + $htaccess_text.= ' "' . makeCorrectDir($htaccess_path) . '" =>' . "\n"; + $htaccess_text.= ' (' . "\n"; + $htaccess_text.= ' "method" => "basic",' . "\n"; + $htaccess_text.= ' "realm" => "Restricted Area",' . "\n"; + $htaccess_text.= ' "require" => "user=' . $row_htpasswds[username] . '"' . "\n"; + $htaccess_text.= ' )' . "\n"; + } + } + + if(strlen(trim($htaccess_text)) > 0) + { + $htaccess_text.= ' )' . "\n"; + } + + return $htaccess_text; + } + + function createVirtualHosts() + { + } + + function createFileDirOptions() + { + } + + protected function createLighttpdHosts($ip, $port, $ssl, $vhost_filename) + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `ip`='" . $ip . "' AND `port`='" . $port . "'"; + $ipandport = $this->db->query_first($query); + + if($ssl == '0') + { + $query2 = "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`ipandport`='" . $ipandport['id'] . "' " . "ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"; + } + else + { + $query2.= "SELECT `d`.`id`, `d`.`domain`, `d`.`customerid`, `d`.`documentroot`, `d`.`ssl`, " . "`d`.`parentdomainid`, `d`.`ipandport`, `d`.`ssl_ipandport`, `d`.`ssl_redirect`, " . "`d`.`isemaildomain`, `d`.`iswildcarddomain`, `d`.`wwwserveralias`, `d`.`openbasedir`, `d`.`openbasedir_path`, " . "`d`.`safemode`, `d`.`speciallogfile`, `d`.`specialsettings`, `pd`.`domain` AS `parentdomain`, `c`.`loginname`, " . "`c`.`guid`, `c`.`email`, `c`.`documentroot` AS `customerroot`, `c`.`deactivated`, `c`.`phpenabled` AS `phpenabled` " . "FROM `" . TABLE_PANEL_DOMAINS . "` `d` LEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`) " . "LEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `pd` ON (`pd`.`id` = `d`.`parentdomainid`) " . "WHERE `d`.`ssl_ipandport`='" . $ipandport['id'] . "' " . "ORDER BY `d`.`iswildcarddomain`, `d`.`domain` ASC"; + } + + $result_domains = $this->db->query($query2); + + while($domain = $this->db->fetch_array($result_domains)) + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; + $ipandport = $this->db->query_first($query); + $domain['ip'] = $ipandport['ip']; + $domain['port'] = $ipandport['port']; + $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; + + if(!empty($this->lighttpd_data[$vhost_filename])) + { + if($ssl == '1') + { + $ssl_vhost = true; + } + else + { + $ssl_vhost = false; + } + + $this->lighttpd_data[$vhost_filename].= $this->getVhostContent($domain, $ssl_vhost); + } + } + } + + protected function getVhostContent($domain, $ssl_vhost = false) + { + if($ssl_vhost === true + && $domain['ssl'] != '1') + { + return ''; + } + + if($ssl_vhost === true + && $domain['ssl'] == '1') + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ssl_ipandport'] . "'"; + } + else + { + $query = "SELECT * FROM " . TABLE_PANEL_IPSANDPORTS . " WHERE `id`='" . $domain['ipandport'] . "'"; + } + + $ipandport = $this->db->query_first($query); + $domain['ip'] = $ipandport['ip']; + $domain['port'] = $ipandport['port']; + $domain['ssl_cert_file'] = $ipandport['ssl_cert_file']; + + if(filter_var($domain['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) + { + $ipport = '[' . $domain['ip'] . ']:' . $domain['port']; + } + else + { + $ipport = $domain['ip'] . ':' . $domain['port']; + } + + $vhost_content.= $this->getServerNames($domain) . " {\n"; + $vhost_content.= $this->getWebroot($domain, $ssl_vhost); + $vhost_content.= $this->create_htaccess($domain); + $vhost_content.= $this->create_pathOptions($domain); + $vhost_content.= $this->getLogFiles($domain); + $vhost_content.= '}' . "\n"; + return $vhost_content; + } + + protected function getLogFiles($domain) + { + $logfiles_text = ''; + + if($this->settings['system']['mod_log_sql'] == 1) + { + // We are using mod_log_sql (http://www.outoforder.cc/projects/apache/mod_log_sql/) + // TODO: See how we are able emulate the error_log + } + else + { + // The normal access/error - logging is enabled + + $filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log'; + + if(!is_file($filename)) + { + $ourFileHandle = fopen($filename, 'w') or die("can't open file"); + fclose($ourFileHandle); + } + + chown($filename, $this->settings[system]['httpuser']); + chgrp($filename, $this->settings[system]['httpgroup']); + + //access log + + $filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log'; + + if(!is_file($filename)) + { + $ourFileHandle = fopen($filename, 'w') or die("can't open file"); + fclose($ourFileHandle); + } + + $logfiles_text.= ' accesslog.filename = "' . $filename . '"' . "\n"; + chown($filename, $this->settings[system]['httpuser']); + chgrp($filename, $this->settings[system]['httpgroup']); + } + + return $logfiles_text; + } + + protected function create_pathOptions($domain) + { + $query = "SELECT * FROM " . TABLE_PANEL_HTACCESS . " WHERE `path` LIKE '" . $domain['documentroot'] . "%'"; + $result = $this->db->query($query); + + $path_options = ''; + $error_string = ''; + + while($row = $this->db->fetch_array($result)) + { + if(!empty($row['error404path'])) + { + $error_string.= ' server.error-handler-404 = "' . makeCorrectFile($row['documentroot'] . '/' . $row['error404path']) . '"' . "\n"; + } + + if($row['options_indexes'] != '0') + { + $path = makeCorrectDir(substr($row['path'], strlen($domain['documentroot']) - 1)); + + // We need to remove the last slash, otherwise the regex wouldn't work + + $path = substr($path, 0, -1); + $path_options.= '$HTTP["url"] =~ "^' . $path . '($|/)" {' . "\n"; + $path_options.= "\t" . 'dir-listing.activate = "enable"' . "\n"; + if(!empty($error_string)) + { + $path_options.= $error_string; + // reset $error_string here to prevent duplicate entries + $error_string = ''; + } + $path_options.= '}' . "\n"; + } + else + { + $path_options = $error_string; + } + } + + return $path_options; + } + + protected function getDirOptions($domain) + { + $query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `customerid`='" . $domain[customerid] . "'"; + $result = $this->db->query($query); + + while($row_htpasswds = $this->db->fetch_array($result)) + { + if($auth_backend_loaded[$domain['ipandport']] != 'yes' + && $auth_backend_loaded[$domain['ssl_ipandport']] != 'yes') + { + $filename = $domain['customerid'] . '.htpasswd'; + + if($this->auth_backend_loaded[$domain['ipandport']] != 'yes') + { + $auth_backend_loaded[$domain['ipandport']] = 'yes'; + $diroption_text.= 'auth.backend = "htpasswd"' . "\n"; + $diroption_text.= 'auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; + $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; + $diroption_text.= 'auth.require = ( ' . "\n"; + $previous_domain_id = '1'; + } + elseif($this->auth_backend_loaded[$domain['ssl_ipandport']] != 'yes') + { + $auth_backend_loaded[$domain['ssl_ipandport']] = 'yes'; + $diroption_text.= 'auth.backend= "htpasswd"' . "\n"; + $diroption_text.= 'auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; + $this->needed_htpasswds[$filename] = $row_htpasswds['username'] . ':' . $row_htpasswds['password'] . "\n"; + $diroption_text.= 'auth.require = ( ' . "\n"; + $previous_domain_id = '1'; + } + } + + $diroption_text.= '"' . $row_htpasswds['path'] . '" =>' . "\n"; + $diroption_text.= '(' . "\n"; + $diroption_text.= ' "method" => "basic",' . "\n"; + $diroption_text.= ' "realm" => "Restricted Area",' . "\n"; + $diroption_text.= ' "require" => "user=' . $row_htpasswds['username'] . '"' . "\n"; + $diroption_text.= ')' . "\n"; + + if($this->auth_backend_loaded[$domain['ssl_ipandport']] == 'yes') + { + $this->needed_htpasswds[$domain['ssl_ipandport']].= $diroption_text; + } + + if($this->auth_backend_loaded[$domain['ipandport']] != 'yes') + { + $this->needed_htpasswds[$domain['ipandport']].= $diroption_text; + } + } + + return ' auth.backend.htpasswd.userfile = "' . makeCorrectFile($this->settings['system']['apacheconf_htpasswddir'] . '/' . $filename) . '"' . "\n"; + } + + protected function getServerNames($domain) + { + $server_string = array(); + $domain_name = ereg_replace('\.', '\.', $domain['domain']); + + if($domain['iswildcarddomain'] == '1') + { + $server_string[] = '(^|\.)' . $domain_name . '$'; + } + else + { + if($domain['wwwserveralias'] == '1') + { + $server_string[] = '^(www\.|)' . $domain_name . '$'; + } + else + { + } + } + + $alias_domains = $this->db->query('SELECT `domain`, `iswildcarddomain`, `wwwserveralias` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `aliasdomain`=\'' . $domain['id'] . '\''); + + while(($alias_domain = $this->db->fetch_array($alias_domains)) !== false) + { + $alias_domain_name = ereg_replace('\.', '\.', $alias_domain['domain']); + + if($alias_domain['iswildcarddomain'] == '1') + { + $server_string[] = '(^|\.)' . $alias_domain_name . '$'; + } + else + { + if($alias_domain['wwwserveralias'] == '1') + { + $server_string[] = '^(www.)?' . $alias_domain_name; + } + else + { + $server_string[] = $alias_domain_name; + } + } + } + + for ($i = 0;$i < sizeof($server_string);$i++) + { + $data = $server_string[$i]; + + if(sizeof($server_string) > 1) + { + if($i == 0) + { + $servernames_text = '(' . $data . '|'; + } + elseif(sizeof($server_string) - 1 == $i) + { + $servernames_text.= $data . ')'; + } + else + { + $servernames_text.= $data . '|'; + } + } + else + { + $servernames_text = $data; + } + } + + unset($data); + $servernames_text = '$HTTP["host"] =~ "' . $servernames_text . '"'; + return $servernames_text; + } + + protected function getWebroot($domain, $ssl) + { + $webroot_text = ''; + + if($domain['deactivated'] == '1' + && $this->settings['system']['deactivateddocroot'] != '') + { + $webroot_text.= ' # Using docroot for deactivated users...' . "\n"; + $webroot_text.= ' server.document-root = "' . $this->settings['system']['deactivateddocroot'] . "\"\n"; + } + else + { + if($ssl === false + && $domain['ssl_redirect'] == '1') + { + $webroot_text.= ' url.redirect = ( "^/(.*)" => "https://' . $domain['domain'] . '/$1" )' . "\n"; + } + elseif(preg_match("#^https?://#i", $domain['documentroot'])) + { + $webroot_text.= ' url.redirect = ( "^/(.*)" => "' . $domain['documentroot'] . '/$1" )' . "\n"; + } + else + { + $webroot_text.= ' server.document-root = "' . makeCorrectDir($domain['documentroot']) . "\"\n"; + } + } + + return $webroot_text; + } + + public function writeConfigs() + { + fwrite($this->debugHandler, ' lighttpd::writeConfigs: rebuilding ' . $this->settings['system']['apacheconf_vhost'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "rebuilding " . $this->settings['system']['apacheconf_vhost']); + + if(!isConfigDir($this->settings['system']['apacheconf_vhost'])) + { + // Save one big file + + foreach($this->lighttpd_data as $vhosts_filename => $vhost_content) + { + $vhosts_file.= $vhost_content . "\n\n"; + } + + $vhosts_filename = $this->settings['system']['apacheconf_vhost']; + + // Apply header + + $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; + $vhosts_file_handler = fopen($vhosts_filename, 'w'); + fwrite($vhosts_file_handler, $vhosts_file); + fclose($vhosts_file_handler); + } + else + { + if(!file_exists($this->settings['system']['apacheconf_vhost'])) + { + fwrite($this->debugHandler, ' lighttpd::writeConfigs: mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost'])) . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); + safe_exec('mkdir ' . escapeshellarg(makeCorrectDir($this->settings['system']['apacheconf_vhost']))); + } + + // Write a single file for every vhost + + foreach($this->lighttpd_data as $vhosts_filename => $vhosts_file) + { + $this->known_filenames[] = basename($vhosts_filename); + + // Apply header + + $vhosts_file = '# ' . basename($vhosts_filename) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" . '# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.' . "\n" . "\n" . $vhosts_file; + + if(!empty($vhosts_filename)) + { + $vhosts_file_handler = fopen($vhosts_filename, 'w'); + fwrite($vhosts_file_handler, $vhosts_file); + fclose($vhosts_file_handler); + } + } + + $this->wipeOutOldConfigs(); + } + + // Write the diroptions + + if(isConfigDir($this->settings['system']['apacheconf_htpasswddir'])) + { + foreach($this->needed_htpasswds as $key => $data) + { + if(!is_dir($this->settings['system']['apacheconf_htpasswddir'])) + { + mkdir($this->settings['system']['apacheconf_htpasswddir']); + } + + $filename = $this->settings['system']['apacheconf_htpasswddir'] . '/' . $key; + $htpasswd_handler = fopen($filename, 'w'); + fwrite($htpasswd_handler, $data); + fclose($htpasswd_handler); + } + } + } + + private function wipeOutOldConfigs() + { + fwrite($this->debugHandler, ' apache::wipeOutOldConfigs: cleaning ' . $this->settings['system']['apacheconf_vhost'] . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_INFO, "cleaning " . $this->settings['system']['apacheconf_vhost']); + + if(isConfigDir($this->settings['system']['apacheconf_vhost']) + && file_exists($this->settings['system']['apacheconf_vhost']) + && is_dir($this->settings['system']['apacheconf_vhost'])) + { + $vhost_file_dirhandle = opendir($this->settings['system']['apacheconf_vhost']); + + while(false !== ($vhost_filename = readdir($vhost_file_dirhandle))) + { + if($vhost_filename != '.' + && $vhost_filename != '..' + && !in_array($vhost_filename, $this->known_filenames) + && preg_match('/^(10|20|30)_syscp_ipandport_(.+)\.conf$/', $vhost_filename) + && file_exists(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename))) + { + fwrite($this->debugHandler, ' apache::wipeOutOldConfigs: unlinking ' . $vhost_filename . "\n"); + $this->logger->logAction(CRON_ACTION, LOG_NOTICE, 'unlinking ' . $vhost_filename); + unlink(makeCorrectFile($this->settings['system']['apacheconf_vhost'] . '/' . $vhost_filename)); + } + } + } + } +} + +?> diff --git a/scripts/cron_tasks.php b/scripts/cron_tasks.php index 9da384a7..74cde5f5 100644 --- a/scripts/cron_tasks.php +++ b/scripts/cron_tasks.php @@ -1,211 +1,211 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_tasks.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! - */ - -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS - */ - -fwrite($debugHandler, ' cron_tasks: Searching for tasks to do' . "\n"); -$cronlog->logAction(CRON_ACTION, LOG_INFO, "Searching for tasks to do"); -$result_tasks = $db->query("SELECT `id`, `type`, `data` FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `id` ASC"); -$resultIDs = array(); - -while($row = $db->fetch_array($result_tasks)) -{ - $resultIDs[] = $row['id']; - - if($row['data'] != '') - { - $row['data'] = unserialize($row['data']); - } - - /** - * TYPE=1 MEANS TO REBUILD APACHE VHOSTS.CONF - */ - - if($row['type'] == '1') - { - if(!isset($webserver)) - { - if($settings['system']['webserver'] == "apache2") - { - if($settings['system']['mod_fcgid'] == 1) - { - $webserver = new apache_fcgid($db, $cronlog, $debugHandler, $settings); - } - else - { - $webserver = new apache($db, $cronlog, $debugHandler, $settings); - } - } - elseif($settings['system']['webserver'] == "lighttpd") - { - if($settings['system']['mod_fcgid'] == 1) - { - $webserver = new lighttpd_fcgid($db, $cronlog, $debugHandler, $settings); - } - else - { - $webserver = new lighttpd($db, $cronlog, $debugHandler, $settings); - } - } - } - - if(isset($webserver)) - { - $webserver->createIpPort(); - $webserver->createVirtualHosts(); - $webserver->createFileDirOptions(); - $webserver->writeConfigs(); - $webserver->reload(); - } - else - { - echo "Please check you Webserver settings\n"; - } - } - - /** - * TYPE=2 MEANS TO CREATE A NEW HOME AND CHOWN - */ - elseif ($row['type'] == '2') - { - fwrite($debugHandler, ' cron_tasks: Task2 started - create new home' . "\n"); - $cronlog->logAction(CRON_ACTION, LOG_INFO, 'Task2 started - create new home'); - - if(is_array($row['data'])) - { - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer')); - safe_exec('mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer')); - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); - safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); - - //check if admin of customer has added template for new customer directories - - $result = $db->query("SELECT `t`.`value`, `c`.`email` AS `customer_email`, `a`.`email` AS `admin_email`, `c`.`loginname` AS `customer_login`, `a`.`loginname` AS `admin_login` FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` INNER JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `c`.`adminid` = `a`.`adminid` INNER JOIN `" . TABLE_PANEL_TEMPLATES . "` AS `t` ON `a`.`adminid` = `t`.`adminid` WHERE `varname` = 'index_html' AND `c`.`loginname` = '" . $db->escape($row['data']['loginname']) . "'"); - - if($db->num_rows($result) > 0) - { - $template = $db->fetch_array($result); - $replace_arr = array( - 'SERVERNAME' => $settings['system']['hostname'], - 'CUSTOMER' => $template['customer_login'], - 'ADMIN' => $template['admin_login'], - 'CUSTOMER_EMAIL' => $template['customer_email'], - 'ADMIN_EMAIL' => $template['admin_email'] - ); - $htmlcontent = replace_variables($template['value'], $replace_arr); - $indexhtmlpath = $settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/index.' . $settings['system']['index_file_extension']; - $index_html_handler = fopen($indexhtmlpath, 'w'); - fwrite($index_html_handler, $htmlcontent); - fclose($index_html_handler); - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Creating \'index.' . $settings['system']['index_file_extension'] . '\' for Customer \'' . $template['customer_login'] . '\' based on template in directory ' . escapeshellarg($indexhtmlpath)); - } - else - { - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/')); - safe_exec('cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/')); - } - - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'])); - safe_exec('chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'])); - $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); - safe_exec('chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); - } - } - - /** - * TYPE=3 MEANS TO DO NOTHING - */ - elseif ($row['type'] == '3') - { - } - - /** - * TYPE=4 MEANS THAT SOMETHING IN THE BIND CONFIG HAS CHANGED. REBUILD syscp_bind.conf - */ - elseif ($row['type'] == '4') - { - if(!isset($nameserver)) - { - $nameserver = new bind($db, $cronlog, $debugHandler, $settings); - } - - if($settings['dkim']['use_dkim'] == '1') - { - $nameserver->writeDKIMconfigs(); - } - - $nameserver->writeConfigs(); - } - - /** - * TYPE=5 MEANS THAT A NEW FTP-ACCOUNT HAS BEEN CREATED, CREATE THE DIRECTORY - */ - elseif ($row['type'] == '5') - { - $cronlog->logAction(CRON_ACTION, LOG_INFO, 'Creating new FTP-home'); - $result_directories = $db->query('SELECT `f`.`homedir`, `f`.`uid`, `f`.`gid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_FTP_USERS . '` `f` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) '); - - while($directory = $db->fetch_array($result_directories)) - { - mkDirWithCorrectOwnership($directory['customerroot'], $directory['homedir'], $directory['uid'], $directory['gid']); - } - } -} - -if($db->num_rows($result_tasks) != 0) -{ - $where = array(); - foreach($resultIDs as $id) - { - $where[] = '`id`=\'' . (int)$id . '\''; - } - - $where = implode($where, ' OR '); - $db->query('DELETE FROM `' . TABLE_PANEL_TASKS . '` WHERE ' . $where); - unset($resultIDs); - unset($where); -} - -$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_tasks_run\' '); - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - -?> + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_tasks.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! + */ + +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS + */ + +fwrite($debugHandler, ' cron_tasks: Searching for tasks to do' . "\n"); +$cronlog->logAction(CRON_ACTION, LOG_INFO, "Searching for tasks to do"); +$result_tasks = $db->query("SELECT `id`, `type`, `data` FROM `" . TABLE_PANEL_TASKS . "` ORDER BY `id` ASC"); +$resultIDs = array(); + +while($row = $db->fetch_array($result_tasks)) +{ + $resultIDs[] = $row['id']; + + if($row['data'] != '') + { + $row['data'] = unserialize($row['data']); + } + + /** + * TYPE=1 MEANS TO REBUILD APACHE VHOSTS.CONF + */ + + if($row['type'] == '1') + { + if(!isset($webserver)) + { + if($settings['system']['webserver'] == "apache2") + { + if($settings['system']['mod_fcgid'] == 1) + { + $webserver = new apache_fcgid($db, $cronlog, $debugHandler, $settings); + } + else + { + $webserver = new apache($db, $cronlog, $debugHandler, $settings); + } + } + elseif($settings['system']['webserver'] == "lighttpd") + { + if($settings['system']['mod_fcgid'] == 1) + { + $webserver = new lighttpd_fcgid($db, $cronlog, $debugHandler, $settings); + } + else + { + $webserver = new lighttpd($db, $cronlog, $debugHandler, $settings); + } + } + } + + if(isset($webserver)) + { + $webserver->createIpPort(); + $webserver->createVirtualHosts(); + $webserver->createFileDirOptions(); + $webserver->writeConfigs(); + $webserver->reload(); + } + else + { + echo "Please check you Webserver settings\n"; + } + } + + /** + * TYPE=2 MEANS TO CREATE A NEW HOME AND CHOWN + */ + elseif ($row['type'] == '2') + { + fwrite($debugHandler, ' cron_tasks: Task2 started - create new home' . "\n"); + $cronlog->logAction(CRON_ACTION, LOG_INFO, 'Task2 started - create new home'); + + if(is_array($row['data'])) + { + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer')); + safe_exec('mkdir -p ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/webalizer')); + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); + safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); + + //check if admin of customer has added template for new customer directories + + $result = $db->query("SELECT `t`.`value`, `c`.`email` AS `customer_email`, `a`.`email` AS `admin_email`, `c`.`loginname` AS `customer_login`, `a`.`loginname` AS `admin_login` FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` INNER JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `c`.`adminid` = `a`.`adminid` INNER JOIN `" . TABLE_PANEL_TEMPLATES . "` AS `t` ON `a`.`adminid` = `t`.`adminid` WHERE `varname` = 'index_html' AND `c`.`loginname` = '" . $db->escape($row['data']['loginname']) . "'"); + + if($db->num_rows($result) > 0) + { + $template = $db->fetch_array($result); + $replace_arr = array( + 'SERVERNAME' => $settings['system']['hostname'], + 'CUSTOMER' => $template['customer_login'], + 'ADMIN' => $template['admin_login'], + 'CUSTOMER_EMAIL' => $template['customer_email'], + 'ADMIN_EMAIL' => $template['admin_email'] + ); + $htmlcontent = replace_variables($template['value'], $replace_arr); + $indexhtmlpath = $settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/index.' . $settings['system']['index_file_extension']; + $index_html_handler = fopen($indexhtmlpath, 'w'); + fwrite($index_html_handler, $htmlcontent); + fclose($index_html_handler); + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Creating \'index.' . $settings['system']['index_file_extension'] . '\' for Customer \'' . $template['customer_login'] . '\' based on template in directory ' . escapeshellarg($indexhtmlpath)); + } + else + { + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/')); + safe_exec('cp -a ' . $pathtophpfiles . '/templates/misc/standardcustomer/* ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'] . '/')); + } + + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'])); + safe_exec('chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname'])); + $cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); + safe_exec('chown -R ' . (int)$settings['system']['vmail_uid'] . ':' . (int)$settings['system']['vmail_gid'] . ' ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname'])); + } + } + + /** + * TYPE=3 MEANS TO DO NOTHING + */ + elseif ($row['type'] == '3') + { + } + + /** + * TYPE=4 MEANS THAT SOMETHING IN THE BIND CONFIG HAS CHANGED. REBUILD syscp_bind.conf + */ + elseif ($row['type'] == '4') + { + if(!isset($nameserver)) + { + $nameserver = new bind($db, $cronlog, $debugHandler, $settings); + } + + if($settings['dkim']['use_dkim'] == '1') + { + $nameserver->writeDKIMconfigs(); + } + + $nameserver->writeConfigs(); + } + + /** + * TYPE=5 MEANS THAT A NEW FTP-ACCOUNT HAS BEEN CREATED, CREATE THE DIRECTORY + */ + elseif ($row['type'] == '5') + { + $cronlog->logAction(CRON_ACTION, LOG_INFO, 'Creating new FTP-home'); + $result_directories = $db->query('SELECT `f`.`homedir`, `f`.`uid`, `f`.`gid`, `c`.`documentroot` AS `customerroot` FROM `' . TABLE_FTP_USERS . '` `f` LEFT JOIN `' . TABLE_PANEL_CUSTOMERS . '` `c` USING (`customerid`) '); + + while($directory = $db->fetch_array($result_directories)) + { + mkDirWithCorrectOwnership($directory['customerroot'], $directory['homedir'], $directory['uid'], $directory['gid']); + } + } +} + +if($db->num_rows($result_tasks) != 0) +{ + $where = array(); + foreach($resultIDs as $id) + { + $where[] = '`id`=\'' . (int)$id . '\''; + } + + $where = implode($where, ' OR '); + $db->query('DELETE FROM `' . TABLE_PANEL_TASKS . '` WHERE ' . $where); + unset($resultIDs); + unset($where); +} + +$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_tasks_run\' '); + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + +?> diff --git a/scripts/cron_ticketarchive.php b/scripts/cron_ticketarchive.php index 9b94d127..e57eaa44 100644 --- a/scripts/cron_ticketarchive.php +++ b/scripts/cron_ticketarchive.php @@ -1,80 +1,80 @@ - - * @license http://www.gnu.org/licenses/gpl.txt - * @package Panel - * @version CVS: $Id: cron_ticketarchive.php 2724 2009-06-07 14:18:02Z flo $ - * @link http://www.nutime.de/ - * @since File available since Release 1.2.18 - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! (Note: This "header" also establishes a mysql-root- - * connection, if you don't need it, see for the header in cron_tasks.php) - */ - -$needrootdb = false; -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * ARCHIVING CLOSED TICKETS - */ - -fwrite($debugHandler, 'Ticket-archiving run started...' . "\n"); -$result_tickets = $db->query("SELECT `id`, `lastchange`, `subject` FROM `" . TABLE_PANEL_TICKETS . "` - WHERE `status` = '3' AND `answerto` = '0';"); -$archiving_count = 0; - -while($row_ticket = $db->fetch_array($result_tickets)) -{ - $lastchange = $row_ticket['lastchange']; - $now = time(); - $days = (int)(($now - $lastchange) / 86400); - - if($days >= $settings['ticket']['archiving_days']) - { - fwrite($debugHandler, 'archiving ticket "' . $row_ticket['subject'] . '" (ID #' . $row_ticket['id'] . ')' . "\n"); - $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row_ticket['id']); - $mainticket->Set('lastchange', $now, true, true); - $mainticket->Set('lastreplier', '1', true, true); - $mainticket->Set('status', '3', true, true); - $mainticket->Update(); - $mainticket->Archive(); - $archiving_count++; - } -} - -fwrite($debugHandler, 'Archived ' . $archiving_count . ' tickets' . "\n"); -$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_archive_run\' '); - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - + + * @license http://www.gnu.org/licenses/gpl.txt + * @package Panel + * @version CVS: $Id: cron_ticketarchive.php 2724 2009-06-07 14:18:02Z flo $ + * @link http://www.nutime.de/ + * @since File available since Release 1.2.18 + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! (Note: This "header" also establishes a mysql-root- + * connection, if you don't need it, see for the header in cron_tasks.php) + */ + +$needrootdb = false; +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * ARCHIVING CLOSED TICKETS + */ + +fwrite($debugHandler, 'Ticket-archiving run started...' . "\n"); +$result_tickets = $db->query("SELECT `id`, `lastchange`, `subject` FROM `" . TABLE_PANEL_TICKETS . "` + WHERE `status` = '3' AND `answerto` = '0';"); +$archiving_count = 0; + +while($row_ticket = $db->fetch_array($result_tickets)) +{ + $lastchange = $row_ticket['lastchange']; + $now = time(); + $days = (int)(($now - $lastchange) / 86400); + + if($days >= $settings['ticket']['archiving_days']) + { + fwrite($debugHandler, 'archiving ticket "' . $row_ticket['subject'] . '" (ID #' . $row_ticket['id'] . ')' . "\n"); + $mainticket = ticket::getInstanceOf($userinfo, $db, $settings, (int)$row_ticket['id']); + $mainticket->Set('lastchange', $now, true, true); + $mainticket->Set('lastreplier', '1', true, true); + $mainticket->Set('status', '3', true, true); + $mainticket->Update(); + $mainticket->Archive(); + $archiving_count++; + } +} + +fwrite($debugHandler, 'Archived ' . $archiving_count . ' tickets' . "\n"); +$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_archive_run\' '); + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + ?> \ No newline at end of file diff --git a/scripts/cron_traffic.inc.functions.php b/scripts/cron_traffic.inc.functions.php index e5380572..976bd1a6 100644 --- a/scripts/cron_traffic.inc.functions.php +++ b/scripts/cron_traffic.inc.functions.php @@ -1,231 +1,231 @@ - - * @author Florian Aders - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_traffic.inc.functions.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * Function which make webalizer statistics and returns used traffic since last run - * - * @param string Name of logfile - * @param string Place where stats should be build - * @param string Caption for webalizer output - * @return int Used traffic - * @author Florian Lippert - */ - -function callWebalizerGetTraffic($logfile, $outputdir, $caption, $usersdomainlist) -{ - global $settings; - $returnval = 0; - - if(file_exists($settings['system']['logfiles_directory'] . $logfile . '-access.log')) - { - $domainargs = ''; - foreach($usersdomainlist as $domainid => $domain) - { - $domainargs.= ' -r ' . escapeshellarg($domain); - } - - $outputdir = makeCorrectDir($outputdir); - - if(!file_exists($outputdir)) - { - safe_exec('mkdir -p ' . escapeshellarg($outputdir)); - } - - if(file_exists($outputdir . 'webalizer.hist.1')) - { - unlink($outputdir . 'webalizer.hist.1'); - } - - if(file_exists($outputdir . 'webalizer.hist') - && !file_exists($outputdir . 'webalizer.hist.1')) - { - safe_exec('cp ' . escapeshellarg($outputdir . 'webalizer.hist') . ' ' . escapeshellarg($outputdir . 'webalizer.hist.1')); - } - - $verbosity = ''; - - if($settings['system']['webalizer_quiet'] == '1') - { - $verbosity = '-q'; - } - elseif($settings['system']['webalizer_quiet'] == '2') - { - $verbosity = '-Q'; - } - - safe_exec('webalizer ' . $verbosity . ' -p -o ' . escapeshellarg($outputdir) . ' -n ' . escapeshellarg($caption) . $domainargs . ' ' . escapeshellarg($settings['system']['logfiles_directory'] . $logfile . '-access.log')); - - /** - * Format of webalizer.hist-files: - * Month: $webalizer_hist_row['0'] - * Year: $webalizer_hist_row['1'] - * KB: $webalizer_hist_row['5'] - */ - - $httptraffic = array(); - $webalizer_hist = @file_get_contents($outputdir . 'webalizer.hist'); - $webalizer_hist_rows = explode("\n", $webalizer_hist); - foreach($webalizer_hist_rows as $webalizer_hist_row) - { - if($webalizer_hist_row != '') - { - $webalizer_hist_row = explode(' ', $webalizer_hist_row); - - if(isset($webalizer_hist_row['0']) - && isset($webalizer_hist_row['1']) - && isset($webalizer_hist_row['5'])) - { - $month = intval($webalizer_hist_row['0']); - $year = intval($webalizer_hist_row['1']); - $traffic = floatval($webalizer_hist_row['5']); - - if(!isset($httptraffic[$year])) - { - $httptraffic[$year] = array(); - } - - $httptraffic[$year][$month] = $traffic; - } - } - } - - reset($httptraffic); - $httptrafficlast = array(); - $webalizer_lasthist = @file_get_contents($outputdir . 'webalizer.hist.1'); - $webalizer_lasthist_rows = explode("\n", $webalizer_lasthist); - foreach($webalizer_lasthist_rows as $webalizer_lasthist_row) - { - if($webalizer_lasthist_row != '') - { - $webalizer_lasthist_row = explode(' ', $webalizer_lasthist_row); - - if(isset($webalizer_lasthist_row['0']) - && isset($webalizer_lasthist_row['1']) - && isset($webalizer_lasthist_row['5'])) - { - $month = intval($webalizer_lasthist_row['0']); - $year = intval($webalizer_lasthist_row['1']); - $traffic = floatval($webalizer_lasthist_row['5']); - - if(!isset($httptrafficlast[$year])) - { - $httptrafficlast[$year] = array(); - } - - $httptrafficlast[$year][$month] = $traffic; - } - } - } - - reset($httptrafficlast); - foreach($httptraffic as $year => $months) - { - foreach($months as $month => $traffic) - { - if(!isset($httptrafficlast[$year][$month])) - { - $returnval+= $traffic; - } - elseif($httptrafficlast[$year][$month] < $httptraffic[$year][$month]) - { - $returnval+= ($httptraffic[$year][$month] - $httptrafficlast[$year][$month]); - } - } - } - } - - return floatval($returnval); -} - -/** - * This function saves the logfile written by mod_log_sql - * into a logfile webalizer can parse - * - * @param string $domain The "speciallogfile" - domain(s) - * @param string $loginname The loginname of the customer - * @return bool - * - * @author Florian Aders - */ - -function safeSQLLogfile($domains, $loginname) -{ - global $db, $settings; - $sql = "SELECT * FROM access_log "; - $where = "WHERE virtual_host = "; - - if(!is_array($domains)) - { - // If it isn't an array, it's a speciallogfile-domain - - $logname = $settings['system']['logfiles_directory'] . $loginname . '-' . $domains . '-access.log'; - $where.= "'$domains' OR virtual_host = 'www.$domains'"; - } - else - { - // If we have an array, these are all domains aggregated into a single logfile - - if(count($domains) == 0) - { - // If the $omains-array is empty, this customer has only speciallogfile- - // domains, so just return, all logfiles are already written to disk - - return true; - } - - $logname = $settings['system']['logfiles_directory'] . $loginname . '-access.log'; - - // Build the "WHERE" - part of the sql-query - - foreach($domains as $domain) - { - // A domain may be reached with or without the "www" in front. - - $where.= "'$domain' OR virtual_host = 'www.$domain' OR virtual_host = "; - } - - $where = substr($where, 0, -19); - } - - // We want clean, ordered logfiles - - $sql.= $where . " ORDER BY time_stamp;"; - $logs = $db->query($sql); - - // Don't overwrite the logfile - append the new stuff - - file_put_contents($logname, "", FILE_APPEND); - - while($logline = $db->fetch_array($logs)) - { - // Create a "CustomLog" - line - - $writelog = $logline['remote_host'] . " " . $logline['virtual_host'] . " " . $logline['remote_user'] . " "; - $writelog.= date("[d/M/Y:H:i:s O]", $logline['time_stamp']); - $writelog.= " \"" . $logline['request_method'] . " " . $logline['request_uri'] . " " . $logline['request_protocol'] . "\" "; - $writelog.= $logline['status']; - $writelog.= " " . $logline['bytes_sent'] . " \"" . $logline['referer'] . "\" \"" . $logline['agent'] . "\"\n"; - file_put_contents($logname, $writelog, FILE_APPEND); - } - - // Remove the just written stuff - - $db->query("DELETE FROM access_log " . $where); - return true; -} - + + * @author Florian Aders + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_traffic.inc.functions.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * Function which make webalizer statistics and returns used traffic since last run + * + * @param string Name of logfile + * @param string Place where stats should be build + * @param string Caption for webalizer output + * @return int Used traffic + * @author Florian Lippert + */ + +function callWebalizerGetTraffic($logfile, $outputdir, $caption, $usersdomainlist) +{ + global $settings; + $returnval = 0; + + if(file_exists($settings['system']['logfiles_directory'] . $logfile . '-access.log')) + { + $domainargs = ''; + foreach($usersdomainlist as $domainid => $domain) + { + $domainargs.= ' -r ' . escapeshellarg($domain); + } + + $outputdir = makeCorrectDir($outputdir); + + if(!file_exists($outputdir)) + { + safe_exec('mkdir -p ' . escapeshellarg($outputdir)); + } + + if(file_exists($outputdir . 'webalizer.hist.1')) + { + unlink($outputdir . 'webalizer.hist.1'); + } + + if(file_exists($outputdir . 'webalizer.hist') + && !file_exists($outputdir . 'webalizer.hist.1')) + { + safe_exec('cp ' . escapeshellarg($outputdir . 'webalizer.hist') . ' ' . escapeshellarg($outputdir . 'webalizer.hist.1')); + } + + $verbosity = ''; + + if($settings['system']['webalizer_quiet'] == '1') + { + $verbosity = '-q'; + } + elseif($settings['system']['webalizer_quiet'] == '2') + { + $verbosity = '-Q'; + } + + safe_exec('webalizer ' . $verbosity . ' -p -o ' . escapeshellarg($outputdir) . ' -n ' . escapeshellarg($caption) . $domainargs . ' ' . escapeshellarg($settings['system']['logfiles_directory'] . $logfile . '-access.log')); + + /** + * Format of webalizer.hist-files: + * Month: $webalizer_hist_row['0'] + * Year: $webalizer_hist_row['1'] + * KB: $webalizer_hist_row['5'] + */ + + $httptraffic = array(); + $webalizer_hist = @file_get_contents($outputdir . 'webalizer.hist'); + $webalizer_hist_rows = explode("\n", $webalizer_hist); + foreach($webalizer_hist_rows as $webalizer_hist_row) + { + if($webalizer_hist_row != '') + { + $webalizer_hist_row = explode(' ', $webalizer_hist_row); + + if(isset($webalizer_hist_row['0']) + && isset($webalizer_hist_row['1']) + && isset($webalizer_hist_row['5'])) + { + $month = intval($webalizer_hist_row['0']); + $year = intval($webalizer_hist_row['1']); + $traffic = floatval($webalizer_hist_row['5']); + + if(!isset($httptraffic[$year])) + { + $httptraffic[$year] = array(); + } + + $httptraffic[$year][$month] = $traffic; + } + } + } + + reset($httptraffic); + $httptrafficlast = array(); + $webalizer_lasthist = @file_get_contents($outputdir . 'webalizer.hist.1'); + $webalizer_lasthist_rows = explode("\n", $webalizer_lasthist); + foreach($webalizer_lasthist_rows as $webalizer_lasthist_row) + { + if($webalizer_lasthist_row != '') + { + $webalizer_lasthist_row = explode(' ', $webalizer_lasthist_row); + + if(isset($webalizer_lasthist_row['0']) + && isset($webalizer_lasthist_row['1']) + && isset($webalizer_lasthist_row['5'])) + { + $month = intval($webalizer_lasthist_row['0']); + $year = intval($webalizer_lasthist_row['1']); + $traffic = floatval($webalizer_lasthist_row['5']); + + if(!isset($httptrafficlast[$year])) + { + $httptrafficlast[$year] = array(); + } + + $httptrafficlast[$year][$month] = $traffic; + } + } + } + + reset($httptrafficlast); + foreach($httptraffic as $year => $months) + { + foreach($months as $month => $traffic) + { + if(!isset($httptrafficlast[$year][$month])) + { + $returnval+= $traffic; + } + elseif($httptrafficlast[$year][$month] < $httptraffic[$year][$month]) + { + $returnval+= ($httptraffic[$year][$month] - $httptrafficlast[$year][$month]); + } + } + } + } + + return floatval($returnval); +} + +/** + * This function saves the logfile written by mod_log_sql + * into a logfile webalizer can parse + * + * @param string $domain The "speciallogfile" - domain(s) + * @param string $loginname The loginname of the customer + * @return bool + * + * @author Florian Aders + */ + +function safeSQLLogfile($domains, $loginname) +{ + global $db, $settings; + $sql = "SELECT * FROM access_log "; + $where = "WHERE virtual_host = "; + + if(!is_array($domains)) + { + // If it isn't an array, it's a speciallogfile-domain + + $logname = $settings['system']['logfiles_directory'] . $loginname . '-' . $domains . '-access.log'; + $where.= "'$domains' OR virtual_host = 'www.$domains'"; + } + else + { + // If we have an array, these are all domains aggregated into a single logfile + + if(count($domains) == 0) + { + // If the $omains-array is empty, this customer has only speciallogfile- + // domains, so just return, all logfiles are already written to disk + + return true; + } + + $logname = $settings['system']['logfiles_directory'] . $loginname . '-access.log'; + + // Build the "WHERE" - part of the sql-query + + foreach($domains as $domain) + { + // A domain may be reached with or without the "www" in front. + + $where.= "'$domain' OR virtual_host = 'www.$domain' OR virtual_host = "; + } + + $where = substr($where, 0, -19); + } + + // We want clean, ordered logfiles + + $sql.= $where . " ORDER BY time_stamp;"; + $logs = $db->query($sql); + + // Don't overwrite the logfile - append the new stuff + + file_put_contents($logname, "", FILE_APPEND); + + while($logline = $db->fetch_array($logs)) + { + // Create a "CustomLog" - line + + $writelog = $logline['remote_host'] . " " . $logline['virtual_host'] . " " . $logline['remote_user'] . " "; + $writelog.= date("[d/M/Y:H:i:s O]", $logline['time_stamp']); + $writelog.= " \"" . $logline['request_method'] . " " . $logline['request_uri'] . " " . $logline['request_protocol'] . "\" "; + $writelog.= $logline['status']; + $writelog.= " " . $logline['bytes_sent'] . " \"" . $logline['referer'] . "\" \"" . $logline['agent'] . "\"\n"; + file_put_contents($logname, $writelog, FILE_APPEND); + } + + // Remove the just written stuff + + $db->query("DELETE FROM access_log " . $where); + return true; +} + diff --git a/scripts/cron_traffic.php b/scripts/cron_traffic.php index a162c3f6..84f214cb 100644 --- a/scripts/cron_traffic.php +++ b/scripts/cron_traffic.php @@ -1,400 +1,400 @@ - - * @author Martin Burchert - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_traffic.php 2739 2009-11-06 14:46:30Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! (Note: This "header" also establishes a mysql-root- - * connection, if you don't need it, see for the header in cron_tasks.php) - */ - -$needrootdb = true; -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * TRAFFIC AND DISKUSAGE MESSURE - */ - -fwrite($debugHandler, 'Traffic run started...' . "\n"); -$admin_traffic = array(); -$domainlist = array(); -$speciallogfile_domainlist = array(); -$result_domainlist = $db->query("SELECT `id`, `domain`, `customerid`, `parentdomainid`, `speciallogfile` FROM `" . TABLE_PANEL_DOMAINS . "` ;"); - -while($row_domainlist = $db->fetch_array($result_domainlist)) -{ - if(!isset($domainlist[$row_domainlist['customerid']])) - { - $domainlist[$row_domainlist['customerid']] = array(); - } - - $domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain']; - - if($row_domainlist['parentdomainid'] == '0' - && $row_domainlist['speciallogfile'] == '1') - { - if(!isset($speciallogfile_domainlist[$row_domainlist['customerid']])) - { - $speciallogfile_domainlist[$row_domainlist['customerid']] = array(); - } - - $speciallogfile_domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain']; - } -} - -$mysqlusage_all = array(); -$databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " ORDER BY `dbserver`"); -$db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], ''); -unset($db_root->password); -$last_dbserver = 0; - -$databases_list = array(); -$databases_list_result = $db_root->query("show databases"); -while($databases_list_row = $db->fetch_array($databases_list_result)) -{ - $databases_list[] = strtolower($databases_list_row['Database']); -} - -while($row_database = $db->fetch_array($databases)) -{ - if($last_dbserver != $row_database['dbserver']) - { - $db_root->close(); - $db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], ''); - unset($db_root->password); - $last_dbserver = $row_database['dbserver']; - - $database_list = array(); - $databases_list_result = $db_root->query("show databases"); - while($databases_list_row = $db->fetch_array($databases_list_result)) - { - $databases_list[] = strtolower($databases_list_row['Database']); - } - } - - if(in_array(strtolower($row_database['databasename']), $databases_list)) - { - $mysql_usage_result = $db_root->query("SHOW TABLE STATUS FROM `" . $db_root->escape($row_database['databasename']) . "`"); - - while($mysql_usage_row = $db_root->fetch_array($mysql_usage_result)) - { - if(!isset($mysqlusage_all[$row_database['customerid']])) - { - $mysqlusage_all[$row_database['customerid']] = 0; - } - $mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['Data_length'] + $mysql_usage_row['Index_length']); - } - } - else - { - echo "Seems like the database " . $row_database['databasename'] . " had been removed manually.\n"; - } -} - -$db_root->close(); - - -$result = $db->query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC"); - -while($row = $db->fetch_array($result)) -{ - /** - * HTTP-Traffic - */ - - fwrite($debugHandler, 'http traffic for ' . $row['loginname'] . ' started...' . "\n"); - $httptraffic = 0; - - if(isset($domainlist[$row['customerid']]) - && is_array($domainlist[$row['customerid']]) - && count($domainlist[$row['customerid']]) != 0) - { - // Examining which caption to use for default webalizer stats... - - if($row['standardsubdomain'] != '0') - { - // ... of course we'd prefer to use the standardsubdomain ... - - $caption = $domainlist[$row['customerid']][$row['standardsubdomain']]; - } - else - { - // ... but if there is no standardsubdomain, we have to use the loginname ... - - $caption = $row['loginname']; - - // ... which results in non-usable links to files in the stats, so lets have a look if we find a domain which is not speciallogfiledomain - - foreach($domainlist[$row['customerid']] as $domainid => $domain) - { - if(!isset($speciallogfile_domainlist[$row['customerid']]) - || !isset($speciallogfile_domainlist[$row['customerid']][$domainid])) - { - $caption = $domain; - break; - } - } - } - - $httptraffic = 0; - reset($domainlist[$row['customerid']]); - - if(isset($speciallogfile_domainlist[$row['customerid']]) - && is_array($speciallogfile_domainlist[$row['customerid']]) - && count($speciallogfile_domainlist[$row['customerid']]) != 0) - { - reset($speciallogfile_domainlist[$row['customerid']]); - foreach($speciallogfile_domainlist[$row['customerid']] as $domainid => $domain) - { - if($settings['system']['mod_log_sql'] == 1) - { - safeSQLLogfile($domain, $row['loginname']); - - // Remove this domain from the domainlist - it's already analysed - // and doesn't need to be selected twice - - unset($domainlist[$row['customerid']][$domainid]); - } - - $httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'] . '-' . $domain, $row['documentroot'] . '/webalizer/' . $domain . '/', $domain, $domainlist[$row['customerid']])); - } - } - - reset($domainlist[$row['customerid']]); - - if($settings['system']['mod_log_sql'] == 1) - { - safeSQLLogfile($domainlist[$row['customerid']], $row['loginname']); - } - - $httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'], $row['documentroot'] . '/webalizer/', $caption, $domainlist[$row['customerid']])); - } - - /** - * Webalizer might run for some time, so we'd better check if our database is still present - */ - - if(empty($db->link_id) - || $db->link_id === false) - { - fwrite($debugHandler, 'Database-connection seems to be down, trying to reconnect' . "\n"); - - // just in case - - $db->close(); - require_once ($pathtophpfiles . '/lib/userdata.inc.php'); - $db = new db($sql['host'], $sql['user'], $sql['password'], $sql['db']); - - if($db->link_id == 0) - { - fclose($debugHandler); - unlink($lockfile); - $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Database-connection crashed during traffic-cronjob, could not reconnect!'); - die('SysCP can\'t connect to mysqlserver. Exiting...'); - } - - fwrite($debugHandler, 'Database-connection re-established' . "\n"); - unset($sql); - unset($db->password); - $cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Database-connection crashed during traffic-cronjob, reconnected!'); - } - - /** - * FTP-Traffic - */ - - fwrite($debugHandler, 'ftp traffic for ' . $row['loginname'] . ' started...' . "\n"); - $ftptraffic = $db->query_first("SELECT SUM(`up_bytes`) AS `up_bytes_sum`, SUM(`down_bytes`) AS `down_bytes_sum` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$row['customerid'] . "'"); - - if(!is_array($ftptraffic)) - { - $ftptraffic = array( - 'up_bytes_sum' => 0, - 'down_bytes_sum' => 0 - ); - } - - $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_bytes`='0', `down_bytes`='0' WHERE `customerid`='" . (int)$row['customerid'] . "'"); - - /** - * Mail-Traffic - */ - - $mailtraffic = 0; - - /** - * Total Traffic - */ - - fwrite($debugHandler, 'total traffic for ' . $row['loginname'] . ' started' . "\n"); - $current_traffic = array(); - $current_traffic['http'] = floatval($httptraffic); - $current_traffic['ftp_up'] = floatval(($ftptraffic['up_bytes_sum'] / 1024)); - $current_traffic['ftp_down'] = floatval(($ftptraffic['down_bytes_sum'] / 1024)); - $current_traffic['mail'] = floatval($mailtraffic); - $current_traffic['all'] = $current_traffic['http'] + $current_traffic['ftp_up'] + $current_traffic['ftp_down'] + $current_traffic['mail']; - $db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC . "` (`customerid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_traffic['http'] . "', '" . (float)$current_traffic['ftp_up'] . "', '" . (float)$current_traffic['ftp_down'] . "', '" . (float)$current_traffic['mail'] . "')"); - $sum_month_traffic = $db->query_first("SELECT SUM(`http`) AS `http`, SUM(`ftp_up`) AS `ftp_up`, SUM(`ftp_down`) AS `ftp_down`, SUM(`mail`) AS `mail` FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `year`='" . date('Y') . "' AND `month`='" . date('m') . "' AND `customerid`='" . (int)$row['customerid'] . "'"); - $sum_month_traffic['all'] = $sum_month_traffic['http'] + $sum_month_traffic['ftp_up'] + $sum_month_traffic['ftp_down'] + $sum_month_traffic['mail']; - - if(!isset($admin_traffic[$row['adminid']]) - || !is_array($admin_traffic[$row['adminid']])) - { - $admin_traffic[$row['adminid']]['http'] = 0; - $admin_traffic[$row['adminid']]['ftp_up'] = 0; - $admin_traffic[$row['adminid']]['ftp_down'] = 0; - $admin_traffic[$row['adminid']]['mail'] = 0; - $admin_traffic[$row['adminid']]['all'] = 0; - $admin_traffic[$row['adminid']]['sum_month'] = 0; - } - - $admin_traffic[$row['adminid']]['http']+= $current_traffic['http']; - $admin_traffic[$row['adminid']]['ftp_up']+= $current_traffic['ftp_up']; - $admin_traffic[$row['adminid']]['ftp_down']+= $current_traffic['ftp_down']; - $admin_traffic[$row['adminid']]['mail']+= $current_traffic['mail']; - $admin_traffic[$row['adminid']]['all']+= $current_traffic['all']; - $admin_traffic[$row['adminid']]['sum_month']+= $sum_month_traffic['all']; - - /** - * WebSpace-Usage - */ - - fwrite($debugHandler, 'calculating webspace usage for ' . $row['loginname'] . "\n"); - $webspaceusage = 0; - - if(file_exists($row['documentroot']) && is_dir($row['documentroot'])) - { - $back = safe_exec('du -s ' . escapeshellarg($row['documentroot']) . ''); - foreach($back as $backrow) - { - $webspaceusage = explode(' ', $backrow); - } - - $webspaceusage = floatval($webspaceusage['0']); - unset($back); - } - else - { - fwrite($debugHandler, 'documentroot ' . $row['documentroot'] . ' does not exist' . "\n"); - } - - /** - * MailSpace-Usage - */ - - fwrite($debugHandler, 'calculating mailspace usage for ' . $row['loginname'] . "\n"); - $emailusage = 0; - - $maildir = makeCorrectDir($settings['system']['vmail_homedir'] . $row['loginname']); - if(file_exists($maildir) && is_dir($maildir)) - { - $back = safe_exec('du -s ' . escapeshellarg($maildir) . ''); - foreach($back as $backrow) - { - $emailusage = explode(' ', $backrow); - } - - $emailusage = floatval($emailusage['0']); - unset($back); - } - else - { - fwrite($debugHandler, 'maildir ' . $maildir . ' does not exist' . "\n"); - } - - /** - * MySQLSpace-Usage - */ - - fwrite($debugHandler, 'calculating mysqlspace usage for ' . $row['loginname'] . "\n"); - $mysqlusage = 0; - - if(isset($mysqlusage_all[$row['customerid']])) - { - $mysqlusage = floatval($mysqlusage_all[$row['customerid']] / 1024); - } - - $current_diskspace = array(); - $current_diskspace['webspace'] = floatval($webspaceusage); - $current_diskspace['mail'] = floatval($emailusage); - $current_diskspace['mysql'] = floatval($mysqlusage); - $current_diskspace['all'] = $current_diskspace['webspace'] + $current_diskspace['mail'] + $current_diskspace['mysql']; - $db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE . "` (`customerid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_diskspace['webspace'] . "', '" . (float)$current_diskspace['mail'] . "', '" . (float)$current_diskspace['mysql'] . "')"); - - if(!isset($admin_diskspace[$row['adminid']]) - || !is_array($admin_diskspace[$row['adminid']])) - { - $admin_diskspace[$row['adminid']] = array(); - $admin_diskspace[$row['adminid']]['webspace'] = 0; - $admin_diskspace[$row['adminid']]['mail'] = 0; - $admin_diskspace[$row['adminid']]['mysql'] = 0; - $admin_diskspace[$row['adminid']]['all'] = 0; - } - - $admin_diskspace[$row['adminid']]['webspace']+= $current_diskspace['webspace']; - $admin_diskspace[$row['adminid']]['mail']+= $current_diskspace['mail']; - $admin_diskspace[$row['adminid']]['mysql']+= $current_diskspace['mysql']; - $admin_diskspace[$row['adminid']]['all']+= $current_diskspace['all']; - - /** - * Total Usage - */ - - $diskusage = floatval($webspaceusage + $emailusage + $mysqlusage); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `diskspace_used`='" . (float)$current_diskspace['all'] . "', `traffic_used`='" . (float)$sum_month_traffic['all'] . "' WHERE `customerid`='" . (int)$row['customerid'] . "'"); -} - -/** - * Admin Usage - */ - -$result = $db->query("SELECT `adminid` FROM `" . TABLE_PANEL_ADMINS . "` ORDER BY `adminid` ASC"); - -while($row = $db->fetch_array($result)) -{ - if(isset($admin_traffic[$row['adminid']])) - { - $db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_traffic[$row['adminid']]['http'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_up'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_down'] . "', '" . (float)$admin_traffic[$row['adminid']]['mail'] . "')"); - $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `traffic_used`='" . (float)$admin_traffic[$row['adminid']]['sum_month'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'"); - } - - if(isset($admin_diskspace[$row['adminid']])) - { - $db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_diskspace[$row['adminid']]['webspace'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mail'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mysql'] . "')"); - $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `diskspace_used`='" . (float)$admin_diskspace[$row['adminid']]['all'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'"); - } -} - -$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_run\' '); - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - -?> + + * @author Martin Burchert + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_traffic.php 2739 2009-11-06 14:46:30Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! (Note: This "header" also establishes a mysql-root- + * connection, if you don't need it, see for the header in cron_tasks.php) + */ + +$needrootdb = true; +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * TRAFFIC AND DISKUSAGE MESSURE + */ + +fwrite($debugHandler, 'Traffic run started...' . "\n"); +$admin_traffic = array(); +$domainlist = array(); +$speciallogfile_domainlist = array(); +$result_domainlist = $db->query("SELECT `id`, `domain`, `customerid`, `parentdomainid`, `speciallogfile` FROM `" . TABLE_PANEL_DOMAINS . "` ;"); + +while($row_domainlist = $db->fetch_array($result_domainlist)) +{ + if(!isset($domainlist[$row_domainlist['customerid']])) + { + $domainlist[$row_domainlist['customerid']] = array(); + } + + $domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain']; + + if($row_domainlist['parentdomainid'] == '0' + && $row_domainlist['speciallogfile'] == '1') + { + if(!isset($speciallogfile_domainlist[$row_domainlist['customerid']])) + { + $speciallogfile_domainlist[$row_domainlist['customerid']] = array(); + } + + $speciallogfile_domainlist[$row_domainlist['customerid']][$row_domainlist['id']] = $row_domainlist['domain']; + } +} + +$mysqlusage_all = array(); +$databases = $db->query("SELECT * FROM " . TABLE_PANEL_DATABASES . " ORDER BY `dbserver`"); +$db_root = new db($sql_root[0]['host'], $sql_root[0]['user'], $sql_root[0]['password'], ''); +unset($db_root->password); +$last_dbserver = 0; + +$databases_list = array(); +$databases_list_result = $db_root->query("show databases"); +while($databases_list_row = $db->fetch_array($databases_list_result)) +{ + $databases_list[] = strtolower($databases_list_row['Database']); +} + +while($row_database = $db->fetch_array($databases)) +{ + if($last_dbserver != $row_database['dbserver']) + { + $db_root->close(); + $db_root = new db($sql_root[$row_database['dbserver']]['host'], $sql_root[$row_database['dbserver']]['user'], $sql_root[$row_database['dbserver']]['password'], ''); + unset($db_root->password); + $last_dbserver = $row_database['dbserver']; + + $database_list = array(); + $databases_list_result = $db_root->query("show databases"); + while($databases_list_row = $db->fetch_array($databases_list_result)) + { + $databases_list[] = strtolower($databases_list_row['Database']); + } + } + + if(in_array(strtolower($row_database['databasename']), $databases_list)) + { + $mysql_usage_result = $db_root->query("SHOW TABLE STATUS FROM `" . $db_root->escape($row_database['databasename']) . "`"); + + while($mysql_usage_row = $db_root->fetch_array($mysql_usage_result)) + { + if(!isset($mysqlusage_all[$row_database['customerid']])) + { + $mysqlusage_all[$row_database['customerid']] = 0; + } + $mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['Data_length'] + $mysql_usage_row['Index_length']); + } + } + else + { + echo "Seems like the database " . $row_database['databasename'] . " had been removed manually.\n"; + } +} + +$db_root->close(); + + +$result = $db->query("SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "` ORDER BY `customerid` ASC"); + +while($row = $db->fetch_array($result)) +{ + /** + * HTTP-Traffic + */ + + fwrite($debugHandler, 'http traffic for ' . $row['loginname'] . ' started...' . "\n"); + $httptraffic = 0; + + if(isset($domainlist[$row['customerid']]) + && is_array($domainlist[$row['customerid']]) + && count($domainlist[$row['customerid']]) != 0) + { + // Examining which caption to use for default webalizer stats... + + if($row['standardsubdomain'] != '0') + { + // ... of course we'd prefer to use the standardsubdomain ... + + $caption = $domainlist[$row['customerid']][$row['standardsubdomain']]; + } + else + { + // ... but if there is no standardsubdomain, we have to use the loginname ... + + $caption = $row['loginname']; + + // ... which results in non-usable links to files in the stats, so lets have a look if we find a domain which is not speciallogfiledomain + + foreach($domainlist[$row['customerid']] as $domainid => $domain) + { + if(!isset($speciallogfile_domainlist[$row['customerid']]) + || !isset($speciallogfile_domainlist[$row['customerid']][$domainid])) + { + $caption = $domain; + break; + } + } + } + + $httptraffic = 0; + reset($domainlist[$row['customerid']]); + + if(isset($speciallogfile_domainlist[$row['customerid']]) + && is_array($speciallogfile_domainlist[$row['customerid']]) + && count($speciallogfile_domainlist[$row['customerid']]) != 0) + { + reset($speciallogfile_domainlist[$row['customerid']]); + foreach($speciallogfile_domainlist[$row['customerid']] as $domainid => $domain) + { + if($settings['system']['mod_log_sql'] == 1) + { + safeSQLLogfile($domain, $row['loginname']); + + // Remove this domain from the domainlist - it's already analysed + // and doesn't need to be selected twice + + unset($domainlist[$row['customerid']][$domainid]); + } + + $httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'] . '-' . $domain, $row['documentroot'] . '/webalizer/' . $domain . '/', $domain, $domainlist[$row['customerid']])); + } + } + + reset($domainlist[$row['customerid']]); + + if($settings['system']['mod_log_sql'] == 1) + { + safeSQLLogfile($domainlist[$row['customerid']], $row['loginname']); + } + + $httptraffic+= floatval(callWebalizerGetTraffic($row['loginname'], $row['documentroot'] . '/webalizer/', $caption, $domainlist[$row['customerid']])); + } + + /** + * Webalizer might run for some time, so we'd better check if our database is still present + */ + + if(empty($db->link_id) + || $db->link_id === false) + { + fwrite($debugHandler, 'Database-connection seems to be down, trying to reconnect' . "\n"); + + // just in case + + $db->close(); + require_once ($pathtophpfiles . '/lib/userdata.inc.php'); + $db = new db($sql['host'], $sql['user'], $sql['password'], $sql['db']); + + if($db->link_id == 0) + { + fclose($debugHandler); + unlink($lockfile); + $cronlog->logAction(CRON_ACTION, LOG_ERR, 'Database-connection crashed during traffic-cronjob, could not reconnect!'); + die('SysCP can\'t connect to mysqlserver. Exiting...'); + } + + fwrite($debugHandler, 'Database-connection re-established' . "\n"); + unset($sql); + unset($db->password); + $cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Database-connection crashed during traffic-cronjob, reconnected!'); + } + + /** + * FTP-Traffic + */ + + fwrite($debugHandler, 'ftp traffic for ' . $row['loginname'] . ' started...' . "\n"); + $ftptraffic = $db->query_first("SELECT SUM(`up_bytes`) AS `up_bytes_sum`, SUM(`down_bytes`) AS `down_bytes_sum` FROM `" . TABLE_FTP_USERS . "` WHERE `customerid`='" . (int)$row['customerid'] . "'"); + + if(!is_array($ftptraffic)) + { + $ftptraffic = array( + 'up_bytes_sum' => 0, + 'down_bytes_sum' => 0 + ); + } + + $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `up_bytes`='0', `down_bytes`='0' WHERE `customerid`='" . (int)$row['customerid'] . "'"); + + /** + * Mail-Traffic + */ + + $mailtraffic = 0; + + /** + * Total Traffic + */ + + fwrite($debugHandler, 'total traffic for ' . $row['loginname'] . ' started' . "\n"); + $current_traffic = array(); + $current_traffic['http'] = floatval($httptraffic); + $current_traffic['ftp_up'] = floatval(($ftptraffic['up_bytes_sum'] / 1024)); + $current_traffic['ftp_down'] = floatval(($ftptraffic['down_bytes_sum'] / 1024)); + $current_traffic['mail'] = floatval($mailtraffic); + $current_traffic['all'] = $current_traffic['http'] + $current_traffic['ftp_up'] + $current_traffic['ftp_down'] + $current_traffic['mail']; + $db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC . "` (`customerid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_traffic['http'] . "', '" . (float)$current_traffic['ftp_up'] . "', '" . (float)$current_traffic['ftp_down'] . "', '" . (float)$current_traffic['mail'] . "')"); + $sum_month_traffic = $db->query_first("SELECT SUM(`http`) AS `http`, SUM(`ftp_up`) AS `ftp_up`, SUM(`ftp_down`) AS `ftp_down`, SUM(`mail`) AS `mail` FROM `" . TABLE_PANEL_TRAFFIC . "` WHERE `year`='" . date('Y') . "' AND `month`='" . date('m') . "' AND `customerid`='" . (int)$row['customerid'] . "'"); + $sum_month_traffic['all'] = $sum_month_traffic['http'] + $sum_month_traffic['ftp_up'] + $sum_month_traffic['ftp_down'] + $sum_month_traffic['mail']; + + if(!isset($admin_traffic[$row['adminid']]) + || !is_array($admin_traffic[$row['adminid']])) + { + $admin_traffic[$row['adminid']]['http'] = 0; + $admin_traffic[$row['adminid']]['ftp_up'] = 0; + $admin_traffic[$row['adminid']]['ftp_down'] = 0; + $admin_traffic[$row['adminid']]['mail'] = 0; + $admin_traffic[$row['adminid']]['all'] = 0; + $admin_traffic[$row['adminid']]['sum_month'] = 0; + } + + $admin_traffic[$row['adminid']]['http']+= $current_traffic['http']; + $admin_traffic[$row['adminid']]['ftp_up']+= $current_traffic['ftp_up']; + $admin_traffic[$row['adminid']]['ftp_down']+= $current_traffic['ftp_down']; + $admin_traffic[$row['adminid']]['mail']+= $current_traffic['mail']; + $admin_traffic[$row['adminid']]['all']+= $current_traffic['all']; + $admin_traffic[$row['adminid']]['sum_month']+= $sum_month_traffic['all']; + + /** + * WebSpace-Usage + */ + + fwrite($debugHandler, 'calculating webspace usage for ' . $row['loginname'] . "\n"); + $webspaceusage = 0; + + if(file_exists($row['documentroot']) && is_dir($row['documentroot'])) + { + $back = safe_exec('du -s ' . escapeshellarg($row['documentroot']) . ''); + foreach($back as $backrow) + { + $webspaceusage = explode(' ', $backrow); + } + + $webspaceusage = floatval($webspaceusage['0']); + unset($back); + } + else + { + fwrite($debugHandler, 'documentroot ' . $row['documentroot'] . ' does not exist' . "\n"); + } + + /** + * MailSpace-Usage + */ + + fwrite($debugHandler, 'calculating mailspace usage for ' . $row['loginname'] . "\n"); + $emailusage = 0; + + $maildir = makeCorrectDir($settings['system']['vmail_homedir'] . $row['loginname']); + if(file_exists($maildir) && is_dir($maildir)) + { + $back = safe_exec('du -s ' . escapeshellarg($maildir) . ''); + foreach($back as $backrow) + { + $emailusage = explode(' ', $backrow); + } + + $emailusage = floatval($emailusage['0']); + unset($back); + } + else + { + fwrite($debugHandler, 'maildir ' . $maildir . ' does not exist' . "\n"); + } + + /** + * MySQLSpace-Usage + */ + + fwrite($debugHandler, 'calculating mysqlspace usage for ' . $row['loginname'] . "\n"); + $mysqlusage = 0; + + if(isset($mysqlusage_all[$row['customerid']])) + { + $mysqlusage = floatval($mysqlusage_all[$row['customerid']] / 1024); + } + + $current_diskspace = array(); + $current_diskspace['webspace'] = floatval($webspaceusage); + $current_diskspace['mail'] = floatval($emailusage); + $current_diskspace['mysql'] = floatval($mysqlusage); + $current_diskspace['all'] = $current_diskspace['webspace'] + $current_diskspace['mail'] + $current_diskspace['mysql']; + $db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE . "` (`customerid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['customerid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$current_diskspace['webspace'] . "', '" . (float)$current_diskspace['mail'] . "', '" . (float)$current_diskspace['mysql'] . "')"); + + if(!isset($admin_diskspace[$row['adminid']]) + || !is_array($admin_diskspace[$row['adminid']])) + { + $admin_diskspace[$row['adminid']] = array(); + $admin_diskspace[$row['adminid']]['webspace'] = 0; + $admin_diskspace[$row['adminid']]['mail'] = 0; + $admin_diskspace[$row['adminid']]['mysql'] = 0; + $admin_diskspace[$row['adminid']]['all'] = 0; + } + + $admin_diskspace[$row['adminid']]['webspace']+= $current_diskspace['webspace']; + $admin_diskspace[$row['adminid']]['mail']+= $current_diskspace['mail']; + $admin_diskspace[$row['adminid']]['mysql']+= $current_diskspace['mysql']; + $admin_diskspace[$row['adminid']]['all']+= $current_diskspace['all']; + + /** + * Total Usage + */ + + $diskusage = floatval($webspaceusage + $emailusage + $mysqlusage); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `diskspace_used`='" . (float)$current_diskspace['all'] . "', `traffic_used`='" . (float)$sum_month_traffic['all'] . "' WHERE `customerid`='" . (int)$row['customerid'] . "'"); +} + +/** + * Admin Usage + */ + +$result = $db->query("SELECT `adminid` FROM `" . TABLE_PANEL_ADMINS . "` ORDER BY `adminid` ASC"); + +while($row = $db->fetch_array($result)) +{ + if(isset($admin_traffic[$row['adminid']])) + { + $db->query("INSERT INTO `" . TABLE_PANEL_TRAFFIC_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `http`, `ftp_up`, `ftp_down`, `mail`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_traffic[$row['adminid']]['http'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_up'] . "', '" . (float)$admin_traffic[$row['adminid']]['ftp_down'] . "', '" . (float)$admin_traffic[$row['adminid']]['mail'] . "')"); + $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `traffic_used`='" . (float)$admin_traffic[$row['adminid']]['sum_month'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'"); + } + + if(isset($admin_diskspace[$row['adminid']])) + { + $db->query("INSERT INTO `" . TABLE_PANEL_DISKSPACE_ADMINS . "` (`adminid`, `year`, `month`, `day`, `stamp`, `webspace`, `mail`, `mysql`) VALUES('" . (int)$row['adminid'] . "', '" . date('Y') . "', '" . date('m') . "', '" . date('d') . "', '" . time() . "', '" . (float)$admin_diskspace[$row['adminid']]['webspace'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mail'] . "', '" . (float)$admin_diskspace[$row['adminid']]['mysql'] . "')"); + $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `diskspace_used`='" . (float)$admin_diskspace[$row['adminid']]['all'] . "' WHERE `adminid`='" . (float)$row['adminid'] . "'"); + } +} + +$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_run\' '); + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + +?> diff --git a/scripts/cron_traffic_report.php b/scripts/cron_traffic_report.php index 365c6ccd..f635e2df 100644 --- a/scripts/cron_traffic_report.php +++ b/scripts/cron_traffic_report.php @@ -1,240 +1,240 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: cron_traffic_report.php 2692 2009-03-27 18:04:47Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! - */ - -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -fwrite($debugHandler, 'Trafficreport run started...' . "\n"); -$yesterday = time() - (60 * 60 * 24); - -/** - * Initialize the mailingsystem - */ - -require (dirname(__FILE__) . '/../lib/class.phpmailer.php'); -$mail = new PHPMailer(); -$mail->From = $settings['panel']['adminmail']; - -// Warn the customers at 90% traffic-usage - -$result = $db->query("SELECT `c`.`customerid`, `c`.`adminid`, `c`.`name`, `c`.`firstname`, `c`.`traffic`, - `c`.`email`, `c`.`def_language`, `a`.`name` AS `adminname`, `a`.`email` AS `adminmail`, - (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) - FROM `" . TABLE_PANEL_TRAFFIC . "` `t` - WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' - AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used` - FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` - LEFT JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `a`.`adminid` = `c`.`adminid` - WHERE `c`.`reportsent` = '0'"); - -while($row = $db->fetch_array($result)) -{ - if(isset($row['traffic']) - && $row['traffic'] > 0 - && $row['traffic_used'] != NULL - && (($row['traffic_used'] * 100) / $row['traffic']) >= 90) - { - $replace_arr = array( - 'NAME' => $row['name'], - 'TRAFFIC' => $row['traffic'], - 'TRAFFICUSED' => $row['traffic_used'] - ); - $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` - WHERE `language` ='" . $row['def_language'] . "'"); - - if($lngfile !== NULL) - { - $langfile = $lngfile['file']; - } - else - { - $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` - WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'"); - $langfile = $lngfile['file']; - } - - include_once makeCorrectFile($pathtophpfiles . '/' . $langfile); - - // Get mail templates from database; the ones from 'admin' are fetched for fallback - - $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` - WHERE `adminid`='" . (int)$row['adminid'] . "' - AND `language`='" . $db->escape($row['def_language']) . "' - AND `templategroup`='mails' - AND `varname`='trafficninetypercent_subject'"); - $mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr)); - $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` - WHERE `adminid`='" . (int)$row['adminid'] . "' - AND `language`='" . $db->escape($row['def_language']) . "' - AND `templategroup`='mails' - AND `varname`='trafficninetypercent_mailbody'"); - $mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr)); - $mail->From = $row['adminmail']; - $mail->FromName = $row['adminname']; - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($row['email'], $row['firstname'] . ' ' . $row['name']); - - if(!$mail->Send()) - { - $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); - standard_error('errorsendingmail', $row["email"]); - } - - $mail->ClearAddresses(); - $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent`=\'1\' - WHERE `customerid`=\'' . (int)$row['customerid'] . '\''); - } -} - -// Warn the admins at 90% traffic-usage - -$result = $db->query("SELECT `a`.*, - (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) - FROM `" . TABLE_PANEL_TRAFFIC_ADMINS . "` `t` - WHERE `t`.`adminid` = `a`.`adminid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' - AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total` - FROM `" . TABLE_PANEL_ADMINS . "` `a` WHERE `a`.`reportsent` = '0'"); - -while($row = $db->fetch_array($result)) -{ - if(isset($row['traffic']) - && $row['traffic'] > 0 - && (($row['traffic_used_total'] * 100) / $row['traffic']) >= 90) - { - $replace_arr = array( - 'NAME' => $row['name'], - 'TRAFFIC' => $row['traffic'], - 'TRAFFICUSED' => $row['traffic_used_total'] - ); - $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` - WHERE `language` ='" . $row['def_language'] . "'"); - - if($lngfile !== NULL) - { - $langfile = $lngfile['file']; - } - else - { - $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` - WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'"); - $langfile = $lngfile['file']; - } - - include_once makeCorrectFile($pathtophpfiles . '/' . $langfile); - - // Get mail templates from database; the ones from 'admin' are fetched for fallback - - $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` - WHERE `adminid`='" . (int)$row['adminid'] . "' - AND `language`='" . $db->escape($row['def_language']) . "' - AND `templategroup`='mails' - AND `varname`='trafficninetypercent_subject'"); - $mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr)); - $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` - WHERE `adminid`='" . (int)$row['adminid'] . "' - AND `language`='" . $db->escape($row['def_language']) . "' - AND `templategroup`='mails' - AND `varname`='trafficninetypercent_mailbody'"); - $mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr)); - $mail->From = $row['email']; - $mail->FromName = $row['firstname'] . " " . $row['name']; - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($row['email'], $row['name']); - - if(!$mail->Send()) - { - $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); - standard_error('errorsendingmail', $row["email"]); - } - - $mail->ClearAddresses(); - $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `reportsent`='1' - WHERE `customerid`='" . (int)$row['adminid'] . "'"); - } - - // Another month, let's build our report - - if(date('d') == '01') - { - $mail_subject = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name']; - $mail_body = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'] . "\n"; - $mail_body.= '---------------------------------------------' . "\n"; - $mail_body.= 'Loginname Traffic used (Percent) | Traffic available' . "\n"; - $customers = $db->query("SELECT `c`.*, - (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) - FROM `" . TABLE_PANEL_TRAFFIC . "` `t` - WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' - AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total` - FROM `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `c`.`adminid` = '" . $row['adminid'] . "'"); - - while($customer = $db->fetch_array($customers)) - { - $mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($customer['traffic_used_total'] * 100) / $customer['traffic'])) . ') ' . $customer['traffic'] . "\n"; - } - - $mail_body.= '---------------------------------------------' . "\n"; - $mail_body.= sprintf('%-15s', $row['loginname']) . ' ' . sprintf('%-12d', $row['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($row['traffic_used_total'] * 100) / $row['traffic'])) . ') ' . $row['traffic'] . "\n"; - $mail->From = $row['email']; - $mail->FromName = $row['name']; - $mail->Subject = $mail_subject; - $mail->Body = $mail_body; - $mail->AddAddress($row['email'], $row['name']); - - if(!$mail->Send()) - { - $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); - standard_error('errorsendingmail', $row["email"]); - } - - $mail->ClearAddresses(); - } -} - -// Another month, reset the reportstatus - -if(date('d') == '01') -{ - $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent` = \'0\';'); - $db->query('UPDATE `' . TABLE_PANEL_ADMINS . '` SET `reportsent` = \'0\';'); -} - -$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() - WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_report_run\' '); - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - -?> + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: cron_traffic_report.php 2692 2009-03-27 18:04:47Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! + */ + +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +fwrite($debugHandler, 'Trafficreport run started...' . "\n"); +$yesterday = time() - (60 * 60 * 24); + +/** + * Initialize the mailingsystem + */ + +require (dirname(__FILE__) . '/../lib/class.phpmailer.php'); +$mail = new PHPMailer(); +$mail->From = $settings['panel']['adminmail']; + +// Warn the customers at 90% traffic-usage + +$result = $db->query("SELECT `c`.`customerid`, `c`.`adminid`, `c`.`name`, `c`.`firstname`, `c`.`traffic`, + `c`.`email`, `c`.`def_language`, `a`.`name` AS `adminname`, `a`.`email` AS `adminmail`, + (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) + FROM `" . TABLE_PANEL_TRAFFIC . "` `t` + WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' + AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used` + FROM `" . TABLE_PANEL_CUSTOMERS . "` AS `c` + LEFT JOIN `" . TABLE_PANEL_ADMINS . "` AS `a` ON `a`.`adminid` = `c`.`adminid` + WHERE `c`.`reportsent` = '0'"); + +while($row = $db->fetch_array($result)) +{ + if(isset($row['traffic']) + && $row['traffic'] > 0 + && $row['traffic_used'] != NULL + && (($row['traffic_used'] * 100) / $row['traffic']) >= 90) + { + $replace_arr = array( + 'NAME' => $row['name'], + 'TRAFFIC' => $row['traffic'], + 'TRAFFICUSED' => $row['traffic_used'] + ); + $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` + WHERE `language` ='" . $row['def_language'] . "'"); + + if($lngfile !== NULL) + { + $langfile = $lngfile['file']; + } + else + { + $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` + WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'"); + $langfile = $lngfile['file']; + } + + include_once makeCorrectFile($pathtophpfiles . '/' . $langfile); + + // Get mail templates from database; the ones from 'admin' are fetched for fallback + + $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` + WHERE `adminid`='" . (int)$row['adminid'] . "' + AND `language`='" . $db->escape($row['def_language']) . "' + AND `templategroup`='mails' + AND `varname`='trafficninetypercent_subject'"); + $mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr)); + $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` + WHERE `adminid`='" . (int)$row['adminid'] . "' + AND `language`='" . $db->escape($row['def_language']) . "' + AND `templategroup`='mails' + AND `varname`='trafficninetypercent_mailbody'"); + $mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr)); + $mail->From = $row['adminmail']; + $mail->FromName = $row['adminname']; + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($row['email'], $row['firstname'] . ' ' . $row['name']); + + if(!$mail->Send()) + { + $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); + standard_error('errorsendingmail', $row["email"]); + } + + $mail->ClearAddresses(); + $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent`=\'1\' + WHERE `customerid`=\'' . (int)$row['customerid'] . '\''); + } +} + +// Warn the admins at 90% traffic-usage + +$result = $db->query("SELECT `a`.*, + (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) + FROM `" . TABLE_PANEL_TRAFFIC_ADMINS . "` `t` + WHERE `t`.`adminid` = `a`.`adminid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' + AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total` + FROM `" . TABLE_PANEL_ADMINS . "` `a` WHERE `a`.`reportsent` = '0'"); + +while($row = $db->fetch_array($result)) +{ + if(isset($row['traffic']) + && $row['traffic'] > 0 + && (($row['traffic_used_total'] * 100) / $row['traffic']) >= 90) + { + $replace_arr = array( + 'NAME' => $row['name'], + 'TRAFFIC' => $row['traffic'], + 'TRAFFICUSED' => $row['traffic_used_total'] + ); + $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` + WHERE `language` ='" . $row['def_language'] . "'"); + + if($lngfile !== NULL) + { + $langfile = $lngfile['file']; + } + else + { + $lngfile = $db->query_first("SELECT `file` FROM `" . TABLE_PANEL_LANGUAGE . "` + WHERE `language` ='" . $settings['panel']['standardlanguage'] . "'"); + $langfile = $lngfile['file']; + } + + include_once makeCorrectFile($pathtophpfiles . '/' . $langfile); + + // Get mail templates from database; the ones from 'admin' are fetched for fallback + + $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` + WHERE `adminid`='" . (int)$row['adminid'] . "' + AND `language`='" . $db->escape($row['def_language']) . "' + AND `templategroup`='mails' + AND `varname`='trafficninetypercent_subject'"); + $mail_subject = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['subject']), $replace_arr)); + $result2 = $db->query_first("SELECT `value` FROM `" . TABLE_PANEL_TEMPLATES . "` + WHERE `adminid`='" . (int)$row['adminid'] . "' + AND `language`='" . $db->escape($row['def_language']) . "' + AND `templategroup`='mails' + AND `varname`='trafficninetypercent_mailbody'"); + $mail_body = html_entity_decode(replace_variables((($result2['value'] != '') ? $result2['value'] : $lng['mails']['trafficninetypercent']['mailbody']), $replace_arr)); + $mail->From = $row['email']; + $mail->FromName = $row['firstname'] . " " . $row['name']; + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($row['email'], $row['name']); + + if(!$mail->Send()) + { + $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); + standard_error('errorsendingmail', $row["email"]); + } + + $mail->ClearAddresses(); + $db->query("UPDATE `" . TABLE_PANEL_ADMINS . "` SET `reportsent`='1' + WHERE `customerid`='" . (int)$row['adminid'] . "'"); + } + + // Another month, let's build our report + + if(date('d') == '01') + { + $mail_subject = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name']; + $mail_body = 'Trafficreport ' . date("m/y", $yesterday) . ' for ' . $row['name'] . "\n"; + $mail_body.= '---------------------------------------------' . "\n"; + $mail_body.= 'Loginname Traffic used (Percent) | Traffic available' . "\n"; + $customers = $db->query("SELECT `c`.*, + (SELECT SUM(`t`.`http` + `t`.`ftp_up` + `t`.`ftp_down` + `t`.`mail`) + FROM `" . TABLE_PANEL_TRAFFIC . "` `t` + WHERE `t`.`customerid` = `c`.`customerid` AND `t`.`year` = '" . (int)date("Y", $yesterday) . "' + AND `t`.`month` = '" . date("m", $yesterday) . "') as `traffic_used_total` + FROM `" . TABLE_PANEL_CUSTOMERS . "` `c` WHERE `c`.`adminid` = '" . $row['adminid'] . "'"); + + while($customer = $db->fetch_array($customers)) + { + $mail_body.= sprintf('%-15s', $customer['loginname']) . ' ' . sprintf('%-12d', $customer['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($customer['traffic_used_total'] * 100) / $customer['traffic'])) . ') ' . $customer['traffic'] . "\n"; + } + + $mail_body.= '---------------------------------------------' . "\n"; + $mail_body.= sprintf('%-15s', $row['loginname']) . ' ' . sprintf('%-12d', $row['traffic_used_total']) . ' (' . sprintf('%00.3f%%', (($row['traffic_used_total'] * 100) / $row['traffic'])) . ') ' . $row['traffic'] . "\n"; + $mail->From = $row['email']; + $mail->FromName = $row['name']; + $mail->Subject = $mail_subject; + $mail->Body = $mail_body; + $mail->AddAddress($row['email'], $row['name']); + + if(!$mail->Send()) + { + $cronlog->logAction(CRON_ACTION, LOG_ERR, "Error sending mail: " . $mail->ErrorInfo); + standard_error('errorsendingmail', $row["email"]); + } + + $mail->ClearAddresses(); + } +} + +// Another month, reset the reportstatus + +if(date('d') == '01') +{ + $db->query('UPDATE `' . TABLE_PANEL_CUSTOMERS . '` SET `reportsent` = \'0\';'); + $db->query('UPDATE `' . TABLE_PANEL_ADMINS . '` SET `reportsent` = \'0\';'); +} + +$db->query('UPDATE `' . TABLE_PANEL_SETTINGS . '` SET `value` = UNIX_TIMESTAMP() + WHERE `settinggroup` = \'system\' AND `varname` = \'last_traffic_report_run\' '); + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + +?> diff --git a/scripts/cron_used_tickets_reset.php b/scripts/cron_used_tickets_reset.php index f8ae1ff2..54a47926 100644 --- a/scripts/cron_used_tickets_reset.php +++ b/scripts/cron_used_tickets_reset.php @@ -1,66 +1,66 @@ - - * @license http://www.gnu.org/licenses/gpl.txt - * @package Panel - * @version CVS: $Id: cron_used_tickets_reset.php 2244 2008-10-06 11:01:18Z EleRas $ - * @link http://www.nutime.de/ - * @since File available since Release 1.2.20 - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! (Note: This "header" also establishes a mysql-root- - * connection, if you don't need it, see for the header in cron_tasks.php) - */ - -$needrootdb = false; -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -/** - * RESET USED TICKETS COUNTER - */ - -fwrite($debugHandler, 'Used tickets reset run started...' . "\n"); -$now = time(); -$cycle = $settings['ticket']['reset_cycle']; - -if($cycle == '0' - || ($cycle == '1' && (date("j", $now) == '1' || date("j", $now) == '7' || date("j", $now) == '14' || date("j", $now) == '21')) - || ($cycle == '2' && date("j", $now) == '1') - || ($cycle == '3' && date("dm", $now) == '0101')) -{ - fwrite($debugHandler, 'Resetting customers used ticket counter' . "\n"); - $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `tickets_used` = '0'"); -} - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - + + * @license http://www.gnu.org/licenses/gpl.txt + * @package Panel + * @version CVS: $Id: cron_used_tickets_reset.php 2244 2008-10-06 11:01:18Z EleRas $ + * @link http://www.nutime.de/ + * @since File available since Release 1.2.20 + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! (Note: This "header" also establishes a mysql-root- + * connection, if you don't need it, see for the header in cron_tasks.php) + */ + +$needrootdb = false; +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +/** + * RESET USED TICKETS COUNTER + */ + +fwrite($debugHandler, 'Used tickets reset run started...' . "\n"); +$now = time(); +$cycle = $settings['ticket']['reset_cycle']; + +if($cycle == '0' + || ($cycle == '1' && (date("j", $now) == '1' || date("j", $now) == '7' || date("j", $now) == '14' || date("j", $now) == '21')) + || ($cycle == '2' && date("j", $now) == '1') + || ($cycle == '3' && date("dm", $now) == '0101')) +{ + fwrite($debugHandler, 'Resetting customers used ticket counter' . "\n"); + $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `tickets_used` = '0'"); +} + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + ?> \ No newline at end of file diff --git a/scripts/install_configs.php b/scripts/install_configs.php index 8906a333..25f52c84 100644 --- a/scripts/install_configs.php +++ b/scripts/install_configs.php @@ -1,140 +1,140 @@ - - * @license GPLv2 http://files.syscp.org/misc/COPYING.txt - * @package System - * @version $Id: install_configs.php 2698 2009-04-13 20:25:59Z flo $ - */ - -/** - * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. - * When using this "header" you have to change $lockFilename for your needs. - * Don't forget to also copy the footer which closes database connections - * and the lockfile! - */ - -include (dirname(__FILE__) . '/../lib/cron_init.php'); - -/** - * END REDUNDANT CODE (CRONSCRIPT "HEADER") - */ - -require ($pathtophpfiles . '/lib/configfiles_index.inc.php'); -require ($pathtophpfiles . '/lib/userdata.inc.php'); - -$replace_arr = Array( - '' => $sql['user'], - '' => $sql['password'], - '' => $sql['db'], - '' => $sql['host'], - '' => $settings['system']['hostname'], - '' => $settings['system']['ipaddress'], - '' => $settings['system']['nameservers'], - '' => $settings['system']['vmail_homedir'], - '' => $settings['system']['vmail_uid'], - '' => $settings['system']['vmail_gid'], - '' => $settings['system']['awstats_path'], - '' => ($settings['system']['use_ssl'] == '1') ? 'imaps pop3s' : '' -); - -$cli_params = $_SERVER['argv']; -unset($cli_params[0]); - -if(isset($cli_params[1]) && $cli_params[1] != '' && isset($configfiles[$cli_params[1]])) -{ - $distribution = $cli_params[1]; - unset($cli_params[1]); -} -else -{ - echo 'No valid distribution specified!' . "\n"; -} - -foreach($cli_params as $cli_param) -{ - list($service, $daemon) = explode('=', $cli_param); - echo $service . ' ' . $daemon; - if(isset($configfiles[$distribution]['services'][$service]) && isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon])) - { - foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon] as $action => $value) - { - if(substr($action, 0, 8) == 'commands') - { - if(is_array($value)) - { - echo '=== COMMANDS BEGIN ===' . "\n"; - foreach($value as $command) - { - echo '-- running ' . $command . "\n"; - if(in_array('reallydoit', $cli_params)) - { - passthru($command); - } - } - echo '==== COMMANDS END ====' . "\n"; - } - } - elseif(substr($action, 0, 5) == 'files') - { - if(is_array($value)) - { - echo '=== FILES BEGIN ===' . "\n"; - while(list($filename, $realname) = each($value)) - { - $file_content = file_get_contents('./templates/misc/configfiles/' . $distribution . '/' . $daemon . '/' . $filename); - $file_content = strtr($file_content, $replace_arr); - echo '-- filename: ' . $realname . "\n"; - echo '-- filecontent:' . "\n" . '---' . "\n"; - echo $file_content; - echo '---' . "\n"; - if(in_array('reallydoit', $cli_params)) - { - if(file_exists($realname)) - { - exec('mv ' . escapeshellarg($realname) . ' ' . escapeshellarg($realname) . '.orig'); - } - file_put_contents($realname, $file_content); - } - } - echo '==== FILES END ====' . "\n"; - } - } - } - - if(isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart']) - && is_array($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'])) - { - echo '=== RESTART BEGIN ===' . "\n"; - foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'] as $command) - { - echo '-- running ' . $command . "\n"; - if(in_array('reallydoit', $cli_params)) - { - passthru($command); - } - } - echo '==== RESTART END ====' . "\n"; - } - } -} - -/** - * STARTING CRONSCRIPT FOOTER - */ - -include ($pathtophpfiles . '/lib/cron_shutdown.php'); - -/** - * END CRONSCRIPT FOOTER - */ - + + * @license GPLv2 http://files.syscp.org/misc/COPYING.txt + * @package System + * @version $Id: install_configs.php 2698 2009-04-13 20:25:59Z flo $ + */ + +/** + * STARTING REDUNDANT CODE, WHICH IS SOME KINDA HEADER FOR EVERY CRON SCRIPT. + * When using this "header" you have to change $lockFilename for your needs. + * Don't forget to also copy the footer which closes database connections + * and the lockfile! + */ + +include (dirname(__FILE__) . '/../lib/cron_init.php'); + +/** + * END REDUNDANT CODE (CRONSCRIPT "HEADER") + */ + +require ($pathtophpfiles . '/lib/configfiles_index.inc.php'); +require ($pathtophpfiles . '/lib/userdata.inc.php'); + +$replace_arr = Array( + '' => $sql['user'], + '' => $sql['password'], + '' => $sql['db'], + '' => $sql['host'], + '' => $settings['system']['hostname'], + '' => $settings['system']['ipaddress'], + '' => $settings['system']['nameservers'], + '' => $settings['system']['vmail_homedir'], + '' => $settings['system']['vmail_uid'], + '' => $settings['system']['vmail_gid'], + '' => $settings['system']['awstats_path'], + '' => ($settings['system']['use_ssl'] == '1') ? 'imaps pop3s' : '' +); + +$cli_params = $_SERVER['argv']; +unset($cli_params[0]); + +if(isset($cli_params[1]) && $cli_params[1] != '' && isset($configfiles[$cli_params[1]])) +{ + $distribution = $cli_params[1]; + unset($cli_params[1]); +} +else +{ + echo 'No valid distribution specified!' . "\n"; +} + +foreach($cli_params as $cli_param) +{ + list($service, $daemon) = explode('=', $cli_param); + echo $service . ' ' . $daemon; + if(isset($configfiles[$distribution]['services'][$service]) && isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon])) + { + foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon] as $action => $value) + { + if(substr($action, 0, 8) == 'commands') + { + if(is_array($value)) + { + echo '=== COMMANDS BEGIN ===' . "\n"; + foreach($value as $command) + { + echo '-- running ' . $command . "\n"; + if(in_array('reallydoit', $cli_params)) + { + passthru($command); + } + } + echo '==== COMMANDS END ====' . "\n"; + } + } + elseif(substr($action, 0, 5) == 'files') + { + if(is_array($value)) + { + echo '=== FILES BEGIN ===' . "\n"; + while(list($filename, $realname) = each($value)) + { + $file_content = file_get_contents('./templates/misc/configfiles/' . $distribution . '/' . $daemon . '/' . $filename); + $file_content = strtr($file_content, $replace_arr); + echo '-- filename: ' . $realname . "\n"; + echo '-- filecontent:' . "\n" . '---' . "\n"; + echo $file_content; + echo '---' . "\n"; + if(in_array('reallydoit', $cli_params)) + { + if(file_exists($realname)) + { + exec('mv ' . escapeshellarg($realname) . ' ' . escapeshellarg($realname) . '.orig'); + } + file_put_contents($realname, $file_content); + } + } + echo '==== FILES END ====' . "\n"; + } + } + } + + if(isset($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart']) + && is_array($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'])) + { + echo '=== RESTART BEGIN ===' . "\n"; + foreach($configfiles[$distribution]['services'][$service]['daemons'][$daemon]['restart'] as $command) + { + echo '-- running ' . $command . "\n"; + if(in_array('reallydoit', $cli_params)) + { + passthru($command); + } + } + echo '==== RESTART END ====' . "\n"; + } + } +} + +/** + * STARTING CRONSCRIPT FOOTER + */ + +include ($pathtophpfiles . '/lib/cron_shutdown.php'); + +/** + * END CRONSCRIPT FOOTER + */ + ?> \ No newline at end of file diff --git a/templates/admin/admins/admins.tpl b/templates/admin/admins/admins.tpl index 17eee97b..bcb8a42e 100644 --- a/templates/admin/admins/admins.tpl +++ b/templates/admin/admins/admins.tpl @@ -1,35 +1,35 @@ -$header -
- - - - - - - - - - - - - - - - - - - - $admins - - - - - - - - -
 {$lng['admin']['admins']}{$searchcode}
{$lng['login']['username']}
{$arrowcode['loginname']}
{$lng['customer']['name']}
{$arrowcode['name']}
{$lng['admin']['customers']}
{$lng['admin']['domains']}
{$lng['customer']['diskspace']}
{$lng['customer']['traffic']}
{$lng['customer']['mysqls']}
{$lng['customer']['ftps']}
{$lng['customer']['tickets']}{$lng['customer']['emails']}
{$lng['customer']['subdomains']}
{$lng['customer']['accounts']}
{$lng['customer']['forwarders']}
{$lng['admin']['deactivated']}
{$arrowcode['deactivated']}
{$pagingcode}
{$lng['admin']['admin_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + $admins + + + + + + + + +
 {$lng['admin']['admins']}{$searchcode}
{$lng['login']['username']}
{$arrowcode['loginname']}
{$lng['customer']['name']}
{$arrowcode['name']}
{$lng['admin']['customers']}
{$lng['admin']['domains']}
{$lng['customer']['diskspace']}
{$lng['customer']['traffic']}
{$lng['customer']['mysqls']}
{$lng['customer']['ftps']}
{$lng['customer']['tickets']}{$lng['customer']['emails']}
{$lng['customer']['subdomains']}
{$lng['customer']['accounts']}
{$lng['customer']['forwarders']}
{$lng['admin']['deactivated']}
{$arrowcode['deactivated']}
{$pagingcode}
{$lng['admin']['admin_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/admins/admins_add.tpl b/templates/admin/admins/admins_add.tpl index cca33351..0c105267 100644 --- a/templates/admin/admins/admins_add.tpl +++ b/templates/admin/admins/admins_add.tpl @@ -1,141 +1,141 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['admin_add']}
-  {$lng['admin']['accountdata']} - - -
{$lng['login']['username']}: *
{$lng['login']['password']}: *
{$lng['login']['language']}:
-  {$lng['admin']['contactdata']} - - -
{$lng['customer']['name']}: **
{$lng['customer']['email']}: *
-  {$lng['admin']['servicedata']} - - -
{$lng['serversettings']['ipaddress']['title']}:
{$lng['admin']['change_serversettings']}$change_serversettings
{$lng['admin']['customers']}: * {$customers_ul}
{$lng['admin']['customers_see_all']}$customers_see_all
{$lng['admin']['domains']}: * {$domains_ul}
{$lng['admin']['domains_see_all']}$domains_see_all
{$lng['admin']['caneditphpsettings']}$caneditphpsettings
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['aps']['canmanagepackages']}:$can_manage_aps_packages
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['admin_add']}
+  {$lng['admin']['accountdata']} + + +
{$lng['login']['username']}: *
{$lng['login']['password']}: *
{$lng['login']['language']}:
+  {$lng['admin']['contactdata']} + + +
{$lng['customer']['name']}: **
{$lng['customer']['email']}: *
+  {$lng['admin']['servicedata']} + + +
{$lng['serversettings']['ipaddress']['title']}:
{$lng['admin']['change_serversettings']}$change_serversettings
{$lng['admin']['customers']}: * {$customers_ul}
{$lng['admin']['customers_see_all']}$customers_see_all
{$lng['admin']['domains']}: * {$domains_ul}
{$lng['admin']['domains_see_all']}$domains_see_all
{$lng['admin']['caneditphpsettings']}$caneditphpsettings
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['aps']['canmanagepackages']}:$can_manage_aps_packages
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/admins/admins_admin.tpl b/templates/admin/admins/admins_admin.tpl index 536620f7..47c5f90e 100644 --- a/templates/admin/admins/admins_admin.tpl +++ b/templates/admin/admins/admins_admin.tpl @@ -1,12 +1,12 @@ - - {$row['loginname']}{$row['loginname']} - {$row['name']} - {$row['customers_used']}/{$row['customers']}
{$row['domains_used']}/{$row['domains']} - {$row['diskspace_used']}/{$row['diskspace']} (MB)
{$row['traffic_used']}/{$row['traffic']} (GB) - {$row['mysqls_used']}/{$row['mysqls']}
{$row['ftps_used']}/{$row['ftps']} - {$row['tickets_used']}/{$row['tickets']} - {$row['emails_used']}/{$row['emails']}
{$row['subdomains_used']}/{$row['subdomains']} - {$row['email_accounts_used']}/{$row['email_accounts']}
{$row['email_forwarders_used']}/{$row['email_forwarders']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['edit']}
{$lng['panel']['delete']} - + + {$row['loginname']}{$row['loginname']} + {$row['name']} + {$row['customers_used']}/{$row['customers']}
{$row['domains_used']}/{$row['domains']} + {$row['diskspace_used']}/{$row['diskspace']} (MB)
{$row['traffic_used']}/{$row['traffic']} (GB) + {$row['mysqls_used']}/{$row['mysqls']}
{$row['ftps_used']}/{$row['ftps']} + {$row['tickets_used']}/{$row['tickets']} + {$row['emails_used']}/{$row['emails']}
{$row['subdomains_used']}/{$row['subdomains']} + {$row['email_accounts_used']}/{$row['email_accounts']}
{$row['email_forwarders_used']}/{$row['email_forwarders']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['edit']}
{$lng['panel']['delete']} + diff --git a/templates/admin/admins/admins_edit.tpl b/templates/admin/admins/admins_edit.tpl index 7eebeeef..6d45d515 100644 --- a/templates/admin/admins/admins_edit.tpl +++ b/templates/admin/admins/admins_edit.tpl @@ -1,169 +1,169 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['admin_edit']}
-  {$lng['admin']['accountdata']} - - -
{$lng['login']['username']}:{$result['loginname']}
{$lng['error']['youcanteditallfieldsofyourself']}
{$lng['admin']['deactivated_user']}?$deactivated
{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):
{$lng['login']['language']}:
-  {$lng['admin']['contactdata']} - - -
{$lng['customer']['name']}: **
{$lng['customer']['email']}: *
{$lng['error']['youcanteditallfieldsofyourself']}
-  {$lng['admin']['servicedata']} - - -
{$lng['serversettings']['ipaddress']['title']}:
{$lng['admin']['change_serversettings']}$change_serversettings
{$lng['admin']['customers']}: * {$customers_ul}
{$lng['admin']['customers_see_all']}$customers_see_all
{$lng['admin']['domains']}: * {$domains_ul}
{$lng['admin']['domains_see_all']}$domains_see_all
{$lng['admin']['caneditphpsettings']}$caneditphpsettings
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['aps']['canmanagepackages']}:$can_manage_aps_packages
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
-
-
- - - - - - - -
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['admin_edit']}
+  {$lng['admin']['accountdata']} + + +
{$lng['login']['username']}:{$result['loginname']}
{$lng['error']['youcanteditallfieldsofyourself']}
{$lng['admin']['deactivated_user']}?$deactivated
{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):
{$lng['login']['language']}:
+  {$lng['admin']['contactdata']} + + +
{$lng['customer']['name']}: **
{$lng['customer']['email']}: *
{$lng['error']['youcanteditallfieldsofyourself']}
+  {$lng['admin']['servicedata']} + + +
{$lng['serversettings']['ipaddress']['title']}:
{$lng['admin']['change_serversettings']}$change_serversettings
{$lng['admin']['customers']}: * {$customers_ul}
{$lng['admin']['customers_see_all']}$customers_see_all
{$lng['admin']['domains']}: * {$domains_ul}
{$lng['admin']['domains_see_all']}$domains_see_all
{$lng['admin']['caneditphpsettings']}$caneditphpsettings
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['aps']['canmanagepackages']}:$can_manage_aps_packages
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
+
+
+ + + + + + + +
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
+
+
$footer \ No newline at end of file diff --git a/templates/admin/aps/askyesno.tpl b/templates/admin/aps/askyesno.tpl index b5eea538..527b1452 100644 --- a/templates/admin/aps/askyesno.tpl +++ b/templates/admin/aps/askyesno.tpl @@ -1,23 +1,23 @@ - - - - - -
- $Message -
- - - - - $Ids -
-
-
- - - -
-
-
-
+ + + + + +
+ $Message +
+ + + + + $Ids +
+
+
+ + + +
+
+
+
diff --git a/templates/admin/aps/footer.tpl b/templates/admin/aps/footer.tpl index 56ab9655..35ee6c15 100644 --- a/templates/admin/aps/footer.tpl +++ b/templates/admin/aps/footer.tpl @@ -1 +1 @@ -$footer +$footer diff --git a/templates/admin/aps/header.tpl b/templates/admin/aps/header.tpl index 074878ca..6af88b30 100644 --- a/templates/admin/aps/header.tpl +++ b/templates/admin/aps/header.tpl @@ -1 +1 @@ -$header +$header diff --git a/templates/admin/aps/infobox.tpl b/templates/admin/aps/infobox.tpl index d8474350..182f811e 100644 --- a/templates/admin/aps/infobox.tpl +++ b/templates/admin/aps/infobox.tpl @@ -1,7 +1,7 @@ - - - - - -
$Message
-
+ + + + + +
$Message
+
diff --git a/templates/admin/aps/manage_instances.tpl b/templates/admin/aps/manage_instances.tpl index 56ea0419..82028c96 100644 --- a/templates/admin/aps/manage_instances.tpl +++ b/templates/admin/aps/manage_instances.tpl @@ -1,51 +1,51 @@ - - - - - - - - -
 {$lng['aps']['specialoptions']}
{$lng['aps']['statistics']}$Statistics
-
-
- - - - - - - - - - - - - - - - - $InstancesInstall - - - - $InstancesTaskActive - - - - $InstancesSuccess - - - - $InstancesError - - - - $InstancesUninstall - - - -
 {$lng['aps']['manageinstances']}
{$lng['aps']['packagenameandstatus']}{$lng['aps']['stopinstall']}{$lng['aps']['uninstall']}
{$lng['aps']['instance_install']}
{$lng['aps']['instance_task_active']}
{$lng['aps']['instance_success']}
{$lng['aps']['instance_error']}
{$lng['aps']['instance_uninstall']}
 
-
-
-
+ + + + + + + + +
 {$lng['aps']['specialoptions']}
{$lng['aps']['statistics']}$Statistics
+
+
+ + + + + + + + + + + + + + + + + $InstancesInstall + + + + $InstancesTaskActive + + + + $InstancesSuccess + + + + $InstancesError + + + + $InstancesUninstall + + + +
 {$lng['aps']['manageinstances']}
{$lng['aps']['packagenameandstatus']}{$lng['aps']['stopinstall']}{$lng['aps']['uninstall']}
{$lng['aps']['instance_install']}
{$lng['aps']['instance_task_active']}
{$lng['aps']['instance_success']}
{$lng['aps']['instance_error']}
{$lng['aps']['instance_uninstall']}
 
+
+
+
diff --git a/templates/admin/aps/manage_instances_error.tpl b/templates/admin/aps/manage_instances_error.tpl index ab67b909..5c5ce122 100644 --- a/templates/admin/aps/manage_instances_error.tpl +++ b/templates/admin/aps/manage_instances_error.tpl @@ -1,5 +1,5 @@ - - {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) - - $Remove + + {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) + + $Remove \ No newline at end of file diff --git a/templates/admin/aps/manage_instances_install.tpl b/templates/admin/aps/manage_instances_install.tpl index ec97c6d5..f308906d 100644 --- a/templates/admin/aps/manage_instances_install.tpl +++ b/templates/admin/aps/manage_instances_install.tpl @@ -1,5 +1,5 @@ - - {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) - $Stop - + + {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) + $Stop + \ No newline at end of file diff --git a/templates/admin/aps/manage_instances_package.tpl b/templates/admin/aps/manage_instances_package.tpl index 19d3c667..f2e4e06e 100644 --- a/templates/admin/aps/manage_instances_package.tpl +++ b/templates/admin/aps/manage_instances_package.tpl @@ -1,3 +1,3 @@ - - {$Row['Name']} {$Row['Version']} (Release {$Row['Release']}) + + {$Row['Name']} {$Row['Version']} (Release {$Row['Release']}) \ No newline at end of file diff --git a/templates/admin/aps/manage_instances_success.tpl b/templates/admin/aps/manage_instances_success.tpl index ab67b909..5c5ce122 100644 --- a/templates/admin/aps/manage_instances_success.tpl +++ b/templates/admin/aps/manage_instances_success.tpl @@ -1,5 +1,5 @@ - - {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) - - $Remove + + {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) + + $Remove \ No newline at end of file diff --git a/templates/admin/aps/manage_instances_taskactive.tpl b/templates/admin/aps/manage_instances_taskactive.tpl index 238f4758..57d7dcdd 100644 --- a/templates/admin/aps/manage_instances_taskactive.tpl +++ b/templates/admin/aps/manage_instances_taskactive.tpl @@ -1,3 +1,3 @@ - - {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) + + {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) \ No newline at end of file diff --git a/templates/admin/aps/manage_instances_uninstall.tpl b/templates/admin/aps/manage_instances_uninstall.tpl index 238f4758..57d7dcdd 100644 --- a/templates/admin/aps/manage_instances_uninstall.tpl +++ b/templates/admin/aps/manage_instances_uninstall.tpl @@ -1,3 +1,3 @@ - - {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) + + {$Row3['name']}, {$Row3['firstname']} | {$Row3['company']} ({$Row3['loginname']}) \ No newline at end of file diff --git a/templates/admin/aps/manage_packages.tpl b/templates/admin/aps/manage_packages.tpl index def274d3..0331972c 100644 --- a/templates/admin/aps/manage_packages.tpl +++ b/templates/admin/aps/manage_packages.tpl @@ -1,76 +1,76 @@ - - - - - - - - - - - - -
 {$lng['aps']['specialoptions']}
{$lng['admin']['phpsettings']['actions']} -
- - - - - -
-
- - - - - -
-
-
-
- - - - - -
-
- - - - - -
-
{$lng['aps']['statistics']}$Statistics
-
-
- - - - - - - - - - - - - - - - - $Packages - - - - - - - - - -
 {$lng['aps']['managepackages']}
{$lng['aps']['packagenameandversion']}{$lng['ticket']['status']}{$lng['aps']['installations']}{$lng['aps']['lock']}{$lng['aps']['unlock']}{$lng['aps']['remove']}
{$lng['aps']['allpackages']}
 
-
-
-
+ + + + + + + + + + + + +
 {$lng['aps']['specialoptions']}
{$lng['admin']['phpsettings']['actions']} +
+ + + + + +
+
+ + + + + +
+
+
+
+ + + + + +
+
+ + + + + +
+
{$lng['aps']['statistics']}$Statistics
+
+
+ + + + + + + + + + + + + + + + + $Packages + + + + + + + + + +
 {$lng['aps']['managepackages']}
{$lng['aps']['packagenameandversion']}{$lng['ticket']['status']}{$lng['aps']['installations']}{$lng['aps']['lock']}{$lng['aps']['unlock']}{$lng['aps']['remove']}
{$lng['aps']['allpackages']}
 
+
+
+
diff --git a/templates/admin/aps/manage_packages_detail.tpl b/templates/admin/aps/manage_packages_detail.tpl index 639fc395..ccc4f9e3 100644 --- a/templates/admin/aps/manage_packages_detail.tpl +++ b/templates/admin/aps/manage_packages_detail.tpl @@ -1,8 +1,8 @@ - - {$Row2['Version']} (Release {$Row2['Release']}) - {$lng['aps']['package_locked']}{$lng['aps']['package_enabled']} - {$Installations} - $Lock - $Unlock - $Remove - + + {$Row2['Version']} (Release {$Row2['Release']}) + {$lng['aps']['package_locked']}{$lng['aps']['package_enabled']} + {$Installations} + $Lock + $Unlock + $Remove + diff --git a/templates/admin/aps/manage_packages_download.tpl b/templates/admin/aps/manage_packages_download.tpl index 741b23da..b1029719 100644 --- a/templates/admin/aps/manage_packages_download.tpl +++ b/templates/admin/aps/manage_packages_download.tpl @@ -1,19 +1,19 @@ - - - - - - - - -
 {$lng['aps']['specialoptions']}
{$lng['admin']['phpsettings']['actions']} -
- - - - - -
-
-
+ + + + + + + + +
 {$lng['aps']['specialoptions']}
{$lng['admin']['phpsettings']['actions']} +
+ + + + + +
+
+

\ No newline at end of file diff --git a/templates/admin/aps/manage_packages_row.tpl b/templates/admin/aps/manage_packages_row.tpl index 2c29f2ea..f84e5fb7 100644 --- a/templates/admin/aps/manage_packages_row.tpl +++ b/templates/admin/aps/manage_packages_row.tpl @@ -1,3 +1,3 @@ - - {$Row['Name']} - + + {$Row['Name']} + diff --git a/templates/admin/aps/upload.tpl b/templates/admin/aps/upload.tpl index d77e6a05..b33bdb66 100644 --- a/templates/admin/aps/upload.tpl +++ b/templates/admin/aps/upload.tpl @@ -1,19 +1,19 @@ -
- - - - - - - - - - - - - - - - -
 {$lng['aps']['upload']}
{$lng['aps']['upload_description']} http://www.apsstandard.org/

$Output
+ + + + + + + + + + + + + + + + + +
 {$lng['aps']['upload']}
{$lng['aps']['upload_description']} http://www.apsstandard.org/

$Output
\ No newline at end of file diff --git a/templates/admin/configfiles/choose.tpl b/templates/admin/configfiles/choose.tpl index 26cfe237..73ea2539 100644 --- a/templates/admin/configfiles/choose.tpl +++ b/templates/admin/configfiles/choose.tpl @@ -1,10 +1,10 @@ -$header - - - - - $distributions -
 {$lng['admin']['configfiles']['serverconfiguration']} [{$lng['admin']['configfiles']['wizard']}]
-
-
+$header + + + + + $distributions +
 {$lng['admin']['configfiles']['serverconfiguration']} [{$lng['admin']['configfiles']['wizard']}]
+
+
$footer \ No newline at end of file diff --git a/templates/admin/configfiles/choose_daemon.tpl b/templates/admin/configfiles/choose_daemon.tpl index 2a496790..91afa1e9 100644 --- a/templates/admin/configfiles/choose_daemon.tpl +++ b/templates/admin/configfiles/choose_daemon.tpl @@ -1,2 +1,2 @@ -   » {$daemon_details['label']} +   » {$daemon_details['label']}
\ No newline at end of file diff --git a/templates/admin/configfiles/choose_distribution.tpl b/templates/admin/configfiles/choose_distribution.tpl index f6e4c8e7..6ccf50e8 100644 --- a/templates/admin/configfiles/choose_distribution.tpl +++ b/templates/admin/configfiles/choose_distribution.tpl @@ -1,12 +1,12 @@ - - - - - - - - - -
» {$distribution_details['label']}
$services
- + + + + + + + + + +
» {$distribution_details['label']}
$services
+ \ No newline at end of file diff --git a/templates/admin/configfiles/choose_service.tpl b/templates/admin/configfiles/choose_service.tpl index cce9d378..93d0d7bf 100644 --- a/templates/admin/configfiles/choose_service.tpl +++ b/templates/admin/configfiles/choose_service.tpl @@ -1,3 +1,3 @@ - » {$service_details['label']} -
+ » {$service_details['label']} +
$daemons \ No newline at end of file diff --git a/templates/admin/configfiles/configfiles.tpl b/templates/admin/configfiles/configfiles.tpl index f30109a7..33e25a8f 100644 --- a/templates/admin/configfiles/configfiles.tpl +++ b/templates/admin/configfiles/configfiles.tpl @@ -1,15 +1,15 @@ -$header - - - - - {$configpage} - - - - - -
 {$configfiles[$distribution]['label']} » {$configfiles[$distribution]['services'][$service]['label']} » {$configfiles[$distribution]['services'][$service]['daemons'][$daemon]['label']} [{$lng['panel']['back']}]
{$lng['admin']['configfiles']['restart']}

-
-
+$header + + + + + {$configpage} + + + + + +
 {$configfiles[$distribution]['label']} » {$configfiles[$distribution]['services'][$service]['label']} » {$configfiles[$distribution]['services'][$service]['daemons'][$daemon]['label']} [{$lng['panel']['back']}]
{$lng['admin']['configfiles']['restart']}

+
+
$footer \ No newline at end of file diff --git a/templates/admin/configfiles/configfiles_commands.tpl b/templates/admin/configfiles/configfiles_commands.tpl index c49929b2..cae61fa5 100644 --- a/templates/admin/configfiles/configfiles_commands.tpl +++ b/templates/admin/configfiles/configfiles_commands.tpl @@ -1,3 +1,3 @@ - - {$lng['admin']['configfiles']['commands']}

+ + {$lng['admin']['configfiles']['commands']}

\ No newline at end of file diff --git a/templates/admin/configfiles/configfiles_file.tpl b/templates/admin/configfiles/configfiles_file.tpl index f0489e10..cbd278e8 100644 --- a/templates/admin/configfiles/configfiles_file.tpl +++ b/templates/admin/configfiles/configfiles_file.tpl @@ -1 +1 @@ -

$realname:

+

$realname:

diff --git a/templates/admin/configfiles/configfiles_files.tpl b/templates/admin/configfiles/configfiles_files.tpl index ad720fc5..7a967848 100644 --- a/templates/admin/configfiles/configfiles_files.tpl +++ b/templates/admin/configfiles/configfiles_files.tpl @@ -1,3 +1,3 @@ - - {$lng['admin']['configfiles']['files']}
{$files} + + {$lng['admin']['configfiles']['files']}
{$files} \ No newline at end of file diff --git a/templates/admin/configfiles/wizard.tpl b/templates/admin/configfiles/wizard.tpl index 59b8f265..575757d4 100644 --- a/templates/admin/configfiles/wizard.tpl +++ b/templates/admin/configfiles/wizard.tpl @@ -1,28 +1,28 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['configfiles']['serverconfiguration']} [{$lng['admin']['configfiles']['overview']}]
{$lng['admin']['configfiles']['distribution']}:{$configfiles[$distribution]['label']}
{$lng['admin']['configfiles']['service']}:{$configfiles[$distribution]['services'][$service]['label']}
{$lng['admin']['configfiles']['daemon']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['configfiles']['serverconfiguration']} [{$lng['admin']['configfiles']['overview']}]
{$lng['admin']['configfiles']['distribution']}:{$configfiles[$distribution]['label']}
{$lng['admin']['configfiles']['service']}:{$configfiles[$distribution]['services'][$service]['label']}
{$lng['admin']['configfiles']['daemon']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/customers/customers.tpl b/templates/admin/customers/customers.tpl index d454e9be..1b22fd8c 100644 --- a/templates/admin/customers/customers.tpl +++ b/templates/admin/customers/customers.tpl @@ -1,43 +1,43 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - $customers - - - - - - - - - - -
 {$lng['admin']['customers']}{$searchcode}
{$lng['admin']['customer_add']}
{$lng['login']['username']}
{$arrowcode['c.loginname']}
{$lng['admin']['admin']}
{$arrowcode['a.loginname']}
{$lng['customer']['name']}  {$arrowcode['c.name']}
{$lng['customer']['firstname']}  {$arrowcode['c.firstname']}
{$lng['customer']['domains']}{$lng['customer']['tickets']}{$lng['customer']['diskspace']}
{$lng['customer']['traffic']}
{$lng['customer']['mysqls']}
{$lng['customer']['ftps']}
{$lng['customer']['emails']}
{$lng['customer']['subdomains']}
{$lng['customer']['accounts']}
{$lng['customer']['forwarders']}
{$lng['admin']['deactivated']}
{$lng['invoice']['active']}
{$pagingcode}
{$lng['admin']['customer_add']}
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + $customers + + + + + + + + + + +
 {$lng['admin']['customers']}{$searchcode}
{$lng['admin']['customer_add']}
{$lng['login']['username']}
{$arrowcode['c.loginname']}
{$lng['admin']['admin']}
{$arrowcode['a.loginname']}
{$lng['customer']['name']}  {$arrowcode['c.name']}
{$lng['customer']['firstname']}  {$arrowcode['c.firstname']}
{$lng['customer']['domains']}{$lng['customer']['tickets']}{$lng['customer']['diskspace']}
{$lng['customer']['traffic']}
{$lng['customer']['mysqls']}
{$lng['customer']['ftps']}
{$lng['customer']['emails']}
{$lng['customer']['subdomains']}
{$lng['customer']['accounts']}
{$lng['customer']['forwarders']}
{$lng['admin']['deactivated']}
{$lng['invoice']['active']}
{$pagingcode}
{$lng['admin']['customer_add']}
+
+
+
+$footer diff --git a/templates/admin/customers/customers_add.tpl b/templates/admin/customers/customers_add.tpl index 1e0f3536..66dc042a 100644 --- a/templates/admin/customers/customers_add.tpl +++ b/templates/admin/customers/customers_add.tpl @@ -1,175 +1,175 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['customer_add']}
-  {$lng['admin']['accountdata']} - - -
{$lng['login']['username']}:
{$lng['admin']['stdsubdomain_add']}?$createstdsubdomain
{$lng['login']['password']}:
{$lng['admin']['sendpassword']}?$sendpassword
{$lng['login']['language']}:
-  {$lng['admin']['contactdata']} - - -
{$lng['customer']['name']}: **
{$lng['customer']['firstname']}: **
{$lng['customer']['company']}: **
{$lng['customer']['street']}:
{$lng['customer']['zipcode']}:
{$lng['customer']['city']}:
{$lng['customer']['phone']}:
{$lng['customer']['fax']}:
{$lng['customer']['email']}: *
{$lng['customer']['customernumber']}:
-  {$lng['admin']['servicedata']} - - -
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['email_imap']}: *$email_imap
{$lng['customer']['email_pop3']}: *$email_pop3
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['admin']['phpenabled']}?$phpenabled
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
- -
-
-
- - - - - - - -
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['customer_add']}
+  {$lng['admin']['accountdata']} + + +
{$lng['login']['username']}:
{$lng['admin']['stdsubdomain_add']}?$createstdsubdomain
{$lng['login']['password']}:
{$lng['admin']['sendpassword']}?$sendpassword
{$lng['login']['language']}:
+  {$lng['admin']['contactdata']} + + +
{$lng['customer']['name']}: **
{$lng['customer']['firstname']}: **
{$lng['customer']['company']}: **
{$lng['customer']['street']}:
{$lng['customer']['zipcode']}:
{$lng['customer']['city']}:
{$lng['customer']['phone']}:
{$lng['customer']['fax']}:
{$lng['customer']['email']}: *
{$lng['customer']['customernumber']}:
+  {$lng['admin']['servicedata']} + + +
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']}: * {$email_quota_ul}
{$lng['customer']['email_imap']}: *$email_imap
{$lng['customer']['email_pop3']}: *$email_pop3
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['admin']['phpenabled']}?$phpenabled
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
+ +
+
+
+ + + + + + + +
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
+
+
+$footer diff --git a/templates/admin/customers/customers_customer.tpl b/templates/admin/customers/customers_customer.tpl index fa635549..90b6849c 100644 --- a/templates/admin/customers/customers_customer.tpl +++ b/templates/admin/customers/customers_customer.tpl @@ -1,17 +1,17 @@ - - {$row['loginname']} - {$row['adminname']} - {$row['name']}
{$row['firstname']}
{$row['company']} - {$row['domains']}{$row['domains']} - style="color:red" style="color:green">{$row['tickets_used']}/{$row['tickets']} - - style="color:red" style="color:green">{$row['diskspace_used']}/{$row['diskspace']} (MB) -
- style="color:red" style="color:green">{$row['traffic_used']}/{$row['traffic']} (GB) - - {$row['mysqls_used']}/{$row['mysqls']}
{$row['ftps_used']}/{$row['ftps']} - {$row['emails_used']}/{$row['emails']}
{$row['subdomains_used']}/{$row['subdomains']} - {$row['email_accounts_used']}/{$row['email_accounts']}
{$row['email_forwarders_used']}/{$row['email_forwarders']} - {$lng['panel']['yes']}{$lng['panel']['no']}
{$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['edit']} {$lng['panel']['delete']}
{$lng['customer']['create_contract']}
- + + {$row['loginname']} + {$row['adminname']} + {$row['name']}
{$row['firstname']}
{$row['company']} + {$row['domains']}{$row['domains']} + style="color:red" style="color:green">{$row['tickets_used']}/{$row['tickets']} + + style="color:red" style="color:green">{$row['diskspace_used']}/{$row['diskspace']} (MB) +
+ style="color:red" style="color:green">{$row['traffic_used']}/{$row['traffic']} (GB) + + {$row['mysqls_used']}/{$row['mysqls']}
{$row['ftps_used']}/{$row['ftps']} + {$row['emails_used']}/{$row['emails']}
{$row['subdomains_used']}/{$row['subdomains']} + {$row['email_accounts_used']}/{$row['email_accounts']}
{$row['email_forwarders_used']}/{$row['email_forwarders']} + {$lng['panel']['yes']}{$lng['panel']['no']}
{$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['edit']} {$lng['panel']['delete']}
{$lng['customer']['create_contract']}
+ diff --git a/templates/admin/customers/customers_edit.tpl b/templates/admin/customers/customers_edit.tpl index 18378f77..0c2e4038 100644 --- a/templates/admin/customers/customers_edit.tpl +++ b/templates/admin/customers/customers_edit.tpl @@ -1,181 +1,181 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['customer_edit']}
-  {$lng['admin']['accountdata']} - - -
{$lng['login']['username']}:{$result['loginname']}
{$lng['customer']['documentroot']}:{$result['documentroot']}
{$lng['admin']['stdsubdomain_add']}?
({$result['loginname']}.{$settings['system']['hostname']})
$createstdsubdomain
{$lng['admin']['deactivated_user']}?$deactivated
{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):
{$lng['login']['language']}:
-  {$lng['admin']['contactdata']} - - -
{$lng['customer']['name']}: **
{$lng['customer']['firstname']}: **
{$lng['customer']['company']}: **
{$lng['customer']['street']}:
{$lng['customer']['zipcode']}:
{$lng['customer']['city']}:
{$lng['customer']['phone']}:
{$lng['customer']['fax']}:
{$lng['customer']['email']}: *
{$lng['customer']['customernumber']}:
-  {$lng['admin']['servicedata']} - - -
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}): * {$email_quota_ul}
{$lng['customer']['email_imap']}: *$email_imap
{$lng['customer']['email_pop3']}: *$email_pop3
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['admin']['phpenabled']}?$phpenabled
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
- -
-
-
- - - - - - - -
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['customer_edit']}
+  {$lng['admin']['accountdata']} + + +
{$lng['login']['username']}:{$result['loginname']}
{$lng['customer']['documentroot']}:{$result['documentroot']}
{$lng['admin']['stdsubdomain_add']}?
({$result['loginname']}.{$settings['system']['hostname']})
$createstdsubdomain
{$lng['admin']['deactivated_user']}?$deactivated
{$lng['login']['password']} ({$lng['panel']['emptyfornochanges']}):
{$lng['login']['language']}:
+  {$lng['admin']['contactdata']} + + +
{$lng['customer']['name']}: **
{$lng['customer']['firstname']}: **
{$lng['customer']['company']}: **
{$lng['customer']['street']}:
{$lng['customer']['zipcode']}:
{$lng['customer']['city']}:
{$lng['customer']['phone']}:
{$lng['customer']['fax']}:
{$lng['customer']['email']}: *
{$lng['customer']['customernumber']}:
+  {$lng['admin']['servicedata']} + + +
{$lng['customer']['diskspace']}: * {$diskspace_ul}
{$lng['customer']['traffic']}: * {$traffic_ul}
{$lng['customer']['subdomains']}: * {$subdomains_ul}
{$lng['customer']['emails']}: * {$emails_ul}
{$lng['customer']['accounts']}: * {$email_accounts_ul}
{$lng['customer']['forwarders']}: * {$email_forwarders_ul}
{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}): * {$email_quota_ul}
{$lng['customer']['email_imap']}: *$email_imap
{$lng['customer']['email_pop3']}: *$email_pop3
{$lng['customer']['ftps']}: * {$ftps_ul}
{$lng['customer']['tickets']}: * {$tickets_ul}
{$lng['customer']['mysqls']}: * {$mysqls_ul}
{$lng['admin']['phpenabled']}?$phpenabled
{$lng['aps']['numberofapspackages']}: {$number_of_aps_packages_ul}
+ +
+
+
+ + + + + + + +
*: {$lng['admin']['valuemandatory']}
**: {$lng['admin']['valuemandatorycompany']}
+
+
+$footer diff --git a/templates/admin/domains/domains.tpl b/templates/admin/domains/domains.tpl index 13e00a45..14921dac 100644 --- a/templates/admin/domains/domains.tpl +++ b/templates/admin/domains/domains.tpl @@ -1,41 +1,41 @@ -$header -
- - - - - - - - - - - - - - - - - - - $domains - - - - - - - - - - - - - - - -
 {$lng['admin']['domains']}{$searchcode}
{$lng['admin']['domain_add']}
{$lng['domains']['domainname']}  {$arrowcode['d.domain']}{$lng['admin']['ipsandports']['ip']}  {$arrowcode['ip.ip']} : {$lng['admin']['ipsandports']['port']}  {$arrowcode['ip.port']}{$lng['admin']['customer']}  {$arrowcode['c.loginname']}
{$pagingcode}
{$lng['admin']['domain_add']}
{$lng['admin']['domain_nocustomeraddingavailable']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + $domains + + + + + + + + + + + + + + + +
 {$lng['admin']['domains']}{$searchcode}
{$lng['admin']['domain_add']}
{$lng['domains']['domainname']}  {$arrowcode['d.domain']}{$lng['admin']['ipsandports']['ip']}  {$arrowcode['ip.ip']} : {$lng['admin']['ipsandports']['port']}  {$arrowcode['ip.port']}{$lng['admin']['customer']}  {$arrowcode['c.loginname']}
{$pagingcode}
{$lng['admin']['domain_add']}
{$lng['admin']['domain_nocustomeraddingavailable']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/domains/domains_add.tpl b/templates/admin/domains/domains_add.tpl index b44ad24a..bf7698f8 100644 --- a/templates/admin/domains/domains_add.tpl +++ b/templates/admin/domains/domains_add.tpl @@ -1,186 +1,186 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['domain_add']}
-  {$lng['domains']['domainsettings']} - - -
Domain:
{$lng['admin']['customer']}:
{$lng['admin']['admin']}:
{$lng['domains']['aliasdomain']}:
{$lng['admin']['domain_edit']}:$caneditdomain
{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']}){$add_date}
{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})
-  {$lng['admin']['webserversettings']} - - -
DocumentRoot:
({$lng['panel']['emptyfordefault']})
IP/Port:
SSL:$ssl
SSL Redirect:$ssl_redirect
SSL IP/Port:
{$lng['panel']['nosslipsavailable']}
{$lng['admin']['wwwserveralias']}:$wwwserveralias
Speciallogfile:$speciallogfile
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']}
-  {$lng['admin']['phpserversettings']} - - -
OpenBasedir:$openbasedir
Safemode:$safemode
{$lng['admin']['phpsettings']['title']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
-  {$lng['admin']['nameserversettings']} - - -
Nameserver:$isbinddomain
Zonefile:
({$lng['panel']['emptyfordefault']})
-  {$lng['admin']['mailserversettings']} - - -
{$lng['admin']['emaildomain']}:$isemaildomain
{$lng['admin']['email_only']}:$email_only
{$lng['admin']['subdomainforemail']}:
DomainKeys:$dkim
- -
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['domain_add']}
+  {$lng['domains']['domainsettings']} + + +
Domain:
{$lng['admin']['customer']}:
{$lng['admin']['admin']}:
{$lng['domains']['aliasdomain']}:
{$lng['admin']['domain_edit']}:$caneditdomain
{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']}){$add_date}
{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})
+  {$lng['admin']['webserversettings']} + + +
DocumentRoot:
({$lng['panel']['emptyfordefault']})
IP/Port:
SSL:$ssl
SSL Redirect:$ssl_redirect
SSL IP/Port:
{$lng['panel']['nosslipsavailable']}
{$lng['admin']['wwwserveralias']}:$wwwserveralias
Speciallogfile:$speciallogfile
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']}
+  {$lng['admin']['phpserversettings']} + + +
OpenBasedir:$openbasedir
Safemode:$safemode
{$lng['admin']['phpsettings']['title']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
+  {$lng['admin']['nameserversettings']} + + +
Nameserver:$isbinddomain
Zonefile:
({$lng['panel']['emptyfordefault']})
+  {$lng['admin']['mailserversettings']} + + +
{$lng['admin']['emaildomain']}:$isemaildomain
{$lng['admin']['email_only']}:$email_only
{$lng['admin']['subdomainforemail']}:
DomainKeys:$dkim
+ +
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/domains/domains_domain.tpl b/templates/admin/domains/domains_domain.tpl index 7183a753..61ae09ed 100644 --- a/templates/admin/domains/domains_domain.tpl +++ b/templates/admin/domains/domains_domain.tpl @@ -1,7 +1,7 @@ - - {$row['domain']} ({$lng['admin']['stdsubdomain']}) - {$row['ipandport']} - {$row['customername']} ({$row['loginname']}) - {$lng['panel']['edit']} - {$lng['panel']['delete']}{$lng['domains']['hasaliasdomains']}{$lng['panel']['service_still_active']} - + + {$row['domain']} ({$lng['admin']['stdsubdomain']}) + {$row['ipandport']} + {$row['customername']} ({$row['loginname']}) + {$lng['panel']['edit']} + {$lng['panel']['delete']}{$lng['domains']['hasaliasdomains']}{$lng['panel']['service_still_active']} + diff --git a/templates/admin/domains/domains_edit.tpl b/templates/admin/domains/domains_edit.tpl index d8fd2bf1..90db0bf1 100644 --- a/templates/admin/domains/domains_edit.tpl +++ b/templates/admin/domains/domains_edit.tpl @@ -1,194 +1,194 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['domain_edit']}
-  {$lng['domains']['domainsettings']} - - -
Domain:{$result['domain']}
{$lng['admin']['customer']}:{$result['customername']}
{$lng['admin']['admin']}:{$result['adminname']}
{$lng['domains']['aliasdomain']}:
{$lng['domains']['associated_with_domain']}:{$subdomains} {$lng['customer']['subdomains']}, {$alias_check} {$lng['domains']['aliasdomains']}, {$emails} {$lng['customer']['emails']}, {$email_accounts} {$lng['customer']['accounts']}, {$email_forwarders} {$lng['customer']['forwarders']}
{$lng['admin']['domain_edit']}:$caneditdomain
{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']}){$result['add_date']}
{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})
-  {$lng['admin']['webserversettings']} - - -
DocumentRoot:
({$lng['panel']['emptyfordefault']})
IP/Port:
SSL:$ssl
SSL Redirect:$ssl_redirect
SSL IP/Port:
{$lng['panel']['nosslipsavailable']}
{$lng['admin']['wwwserveralias']}:$wwwserveralias
Speciallogfile:$speciallogfile
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']}
-  {$lng['admin']['phpserversettings']} - - -
OpenBasedir:$openbasedir
Safemode:$safemode
{$lng['admin']['phpsettings']['title']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
-  {$lng['admin']['nameserversettings']} - - -
Nameserver:$isbinddomain
Zonefile:
({$lng['panel']['emptyfordefault']})
-  {$lng['admin']['mailserversettings']} - - -
{$lng['admin']['emaildomain']}:$isemaildomain
{$lng['admin']['email_only']}:$email_only
{$lng['admin']['subdomainforemail']}:
DomainKeys:$dkim
- -
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['domain_edit']}
+  {$lng['domains']['domainsettings']} + + +
Domain:{$result['domain']}
{$lng['admin']['customer']}:{$result['customername']}
{$lng['admin']['admin']}:{$result['adminname']}
{$lng['domains']['aliasdomain']}:
{$lng['domains']['associated_with_domain']}:{$subdomains} {$lng['customer']['subdomains']}, {$alias_check} {$lng['domains']['aliasdomains']}, {$emails} {$lng['customer']['emails']}, {$email_accounts} {$lng['customer']['accounts']}, {$email_forwarders} {$lng['customer']['forwarders']}
{$lng['admin']['domain_edit']}:$caneditdomain
{$lng['domains']['add_date']}: ({$lng['panel']['dateformat']}){$result['add_date']}
{$lng['domains']['registration_date']}: ({$lng['panel']['dateformat']})
+  {$lng['admin']['webserversettings']} + + +
DocumentRoot:
({$lng['panel']['emptyfordefault']})
IP/Port:
SSL:$ssl
SSL Redirect:$ssl_redirect
SSL IP/Port:
{$lng['panel']['nosslipsavailable']}
{$lng['admin']['wwwserveralias']}:$wwwserveralias
Speciallogfile:$speciallogfile
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']}
+  {$lng['admin']['phpserversettings']} + + +
OpenBasedir:$openbasedir
Safemode:$safemode
{$lng['admin']['phpsettings']['title']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
+  {$lng['admin']['nameserversettings']} + + +
Nameserver:$isbinddomain
Zonefile:
({$lng['panel']['emptyfordefault']})
+  {$lng['admin']['mailserversettings']} + + +
{$lng['admin']['emaildomain']}:$isemaildomain
{$lng['admin']['email_only']}:$email_only
{$lng['admin']['subdomainforemail']}:
DomainKeys:$dkim
+ +
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/index/change_language.tpl b/templates/admin/index/change_language.tpl index 429686a1..ba24c291 100644 --- a/templates/admin/index/change_language.tpl +++ b/templates/admin/index/change_language.tpl @@ -1,23 +1,23 @@ -$header -
- - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changelanguage']}
{$lng['login']['language']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changelanguage']}
{$lng['login']['language']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/index/change_password.tpl b/templates/admin/index/change_password.tpl index 441d55c6..f39a24e7 100644 --- a/templates/admin/index/change_password.tpl +++ b/templates/admin/index/change_password.tpl @@ -1,31 +1,31 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['changepassword']['old_password']}
{$lng['changepassword']['new_password']}
{$lng['changepassword']['new_password_confirm']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['changepassword']['old_password']}
{$lng['changepassword']['new_password']}
{$lng['changepassword']['new_password_confirm']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/index/index.tpl b/templates/admin/index/index.tpl index fe15abf6..98c36c46 100644 --- a/templates/admin/index/index.tpl +++ b/templates/admin/index/index.tpl @@ -1,154 +1,154 @@ -$header - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['ressourcedetails']}
{$lng['admin']['customers']}:{$overview['number_customers']} ({$userinfo['customers']})
{$lng['customer']['domains']}:{$overview['number_domains']} ({$userinfo['domains']})
{$lng['customer']['subdomains']}:{$overview['subdomains_used']} ({$userinfo['subdomains_used']}/{$userinfo['subdomains']})
{$lng['customer']['diskspace']}:{$overview['diskspace_used']} ({$userinfo['diskspace_used']}/{$userinfo['diskspace']})
{$lng['customer']['traffic']}:{$overview['traffic_used']} ({$userinfo['traffic_used']}/{$userinfo['traffic']})
{$lng['customer']['mysqls']}:{$overview['mysqls_used']} ({$userinfo['mysqls_used']}/{$userinfo['mysqls']})
{$lng['customer']['emails']}:{$overview['emails_used']} ({$userinfo['emails_used']}/{$userinfo['emails']})
{$lng['customer']['accounts']}:{$overview['email_accounts_used']} ({$userinfo['email_accounts_used']}/{$userinfo['email_accounts']})
{$lng['customer']['forwarders']}:{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})
{$lng['customer']['email_quota']}:{$overview['email_quota_used']} ({$userinfo['email_quota_used']}/{$userinfo['email_quota']})
{$lng['aps']['numberofapspackages']}:{$overview['aps_packages_used']} ({$userinfo['aps_packages_used']}/{$userinfo['aps_packages']})
{$lng['customer']['ftps']}:{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})
{$lng['customer']['tickets']}:{$overview['tickets_used']} ({$userinfo['tickets_used']}/{$userinfo['tickets']})
{$lng['customer']['ftps']}:{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})
{$awaitingtickets_text}
 {$lng['admin']['systemdetails']}
{$lng['admin']['serversoftware']}:{$_SERVER['SERVER_SOFTWARE']}
{$lng['admin']['phpversion']}:$phpversion
{$lng['admin']['phpmemorylimit']}:$phpmemorylimit
{$lng['admin']['mysqlserverversion']}:$mysqlserverversion
{$lng['admin']['mysqlclientversion']}:$mysqlclientversion
{$lng['admin']['webserverinterface']}:$webserverinterface
{$lng['admin']['sysload']}:$load
Kernel:$kernel
Uptime:$uptime
 {$lng['admin']['syscpdetails']}
{$lng['admin']['cronlastrun']}:$cronlastrun
{$lng['admin']['trafficlastrun']}:$trafficlastrun
{$lng['admin']['archivelastrun']}:$archivelastrun
{$lng['admin']['installedversion']}:{$version}
{$lng['admin']['latestversion']}:$lookfornewversion_lable
$lookfornewversion_addinfo
 {$lng['admin']['thankyou']}
{$lng['admin']['contributors']}:
Florian Lippert, Tim Zielosko, Martin Burchert, Ron Brand, Michael Duergner, Wolfgang Ziegler, Patrick Brueckner, Florian Aders, Luca Longinotti, Manuel Bernhardt, Janky Jay, Thomas Peterhans, Benjamin Börngen-Schmidt, Philipp Haefelfinger, Michael Kaufmannk, Sven Skrabal
-
-
-$footer +$header + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['ressourcedetails']}
{$lng['admin']['customers']}:{$overview['number_customers']} ({$userinfo['customers']})
{$lng['customer']['domains']}:{$overview['number_domains']} ({$userinfo['domains']})
{$lng['customer']['subdomains']}:{$overview['subdomains_used']} ({$userinfo['subdomains_used']}/{$userinfo['subdomains']})
{$lng['customer']['diskspace']}:{$overview['diskspace_used']} ({$userinfo['diskspace_used']}/{$userinfo['diskspace']})
{$lng['customer']['traffic']}:{$overview['traffic_used']} ({$userinfo['traffic_used']}/{$userinfo['traffic']})
{$lng['customer']['mysqls']}:{$overview['mysqls_used']} ({$userinfo['mysqls_used']}/{$userinfo['mysqls']})
{$lng['customer']['emails']}:{$overview['emails_used']} ({$userinfo['emails_used']}/{$userinfo['emails']})
{$lng['customer']['accounts']}:{$overview['email_accounts_used']} ({$userinfo['email_accounts_used']}/{$userinfo['email_accounts']})
{$lng['customer']['forwarders']}:{$overview['email_forwarders_used']} ({$userinfo['email_forwarders_used']}/{$userinfo['email_forwarders']})
{$lng['customer']['email_quota']}:{$overview['email_quota_used']} ({$userinfo['email_quota_used']}/{$userinfo['email_quota']})
{$lng['aps']['numberofapspackages']}:{$overview['aps_packages_used']} ({$userinfo['aps_packages_used']}/{$userinfo['aps_packages']})
{$lng['customer']['ftps']}:{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})
{$lng['customer']['tickets']}:{$overview['tickets_used']} ({$userinfo['tickets_used']}/{$userinfo['tickets']})
{$lng['customer']['ftps']}:{$overview['ftps_used']} ({$userinfo['ftps_used']}/{$userinfo['ftps']})
{$awaitingtickets_text}
 {$lng['admin']['systemdetails']}
{$lng['admin']['serversoftware']}:{$_SERVER['SERVER_SOFTWARE']}
{$lng['admin']['phpversion']}:$phpversion
{$lng['admin']['phpmemorylimit']}:$phpmemorylimit
{$lng['admin']['mysqlserverversion']}:$mysqlserverversion
{$lng['admin']['mysqlclientversion']}:$mysqlclientversion
{$lng['admin']['webserverinterface']}:$webserverinterface
{$lng['admin']['sysload']}:$load
Kernel:$kernel
Uptime:$uptime
 {$lng['admin']['syscpdetails']}
{$lng['admin']['cronlastrun']}:$cronlastrun
{$lng['admin']['trafficlastrun']}:$trafficlastrun
{$lng['admin']['archivelastrun']}:$archivelastrun
{$lng['admin']['installedversion']}:{$version}
{$lng['admin']['latestversion']}:$lookfornewversion_lable
$lookfornewversion_addinfo
 {$lng['admin']['thankyou']}
{$lng['admin']['contributors']}:
Florian Lippert, Tim Zielosko, Martin Burchert, Ron Brand, Michael Duergner, Wolfgang Ziegler, Patrick Brueckner, Florian Aders, Luca Longinotti, Manuel Bernhardt, Janky Jay, Thomas Peterhans, Benjamin Börngen-Schmidt, Philipp Haefelfinger, Michael Kaufmannk, Sven Skrabal
+
+
+$footer diff --git a/templates/admin/ipsandports/ipsandports.tpl b/templates/admin/ipsandports/ipsandports.tpl index 8368e0e9..2b2bbe6f 100644 --- a/templates/admin/ipsandports/ipsandports.tpl +++ b/templates/admin/ipsandports/ipsandports.tpl @@ -1,33 +1,33 @@ -$header -
- - - - - - - - - - - - - - - - - - $ipsandports - - - - - - - - -
 {$lng['admin']['ipsandports']['ipsandports']}{$searchcode}
{$lng['admin']['ipsandports']['ip']}  {$arrowcode['ip']} : {$lng['admin']['ipsandports']['port']}  {$arrowcode['port']}ListenNameVirtualHostvHost-ContainerSpecialsettingsServerNameSSL
{$pagingcode}
{$lng['admin']['ipsandports']['add']}
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + $ipsandports + + + + + + + + +
 {$lng['admin']['ipsandports']['ipsandports']}{$searchcode}
{$lng['admin']['ipsandports']['ip']}  {$arrowcode['ip']} : {$lng['admin']['ipsandports']['port']}  {$arrowcode['port']}ListenNameVirtualHostvHost-ContainerSpecialsettingsServerNameSSL
{$pagingcode}
{$lng['admin']['ipsandports']['add']}
+
+
+
+$footer diff --git a/templates/admin/ipsandports/ipsandports_add.tpl b/templates/admin/ipsandports/ipsandports_add.tpl index 5023df39..698c8556 100644 --- a/templates/admin/ipsandports/ipsandports_add.tpl +++ b/templates/admin/ipsandports/ipsandports_add.tpl @@ -1,109 +1,109 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['ipsandports']['add']}
-  {$lng['admin']['ipsandports']['ipandport']} - - -
{$lng['admin']['ipsandports']['ip']}:
{$lng['admin']['ipsandports']['port']}:
-  {$lng['admin']['ipsandports']['webserverdefaultconfig']} - - -
{$lng['admin']['ipsandports']['create_listen_statement']}:$listen_statement
{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}: -
{$lng['panel']['not_supported']}lighttpd
-
$namevirtualhost_statement
{$lng['admin']['ipsandports']['create_vhostcontainer']}: -
{$lng['panel']['not_supported']}lighttpd
-
$vhostcontainer
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}: -
{$lng['panel']['not_supported']}lighttpd
-
$vhostcontainer_servername_statement
-  {$lng['admin']['ipsandports']['webserverdomainconfig']} - - -
{$lng['admin']['ipsandports']['default_vhostconf_domain']}:
{$lng['serversettings']['default_vhostconf']['description']} -
{$lng['panel']['not_supported']}lighttpd
-
-  {$lng['admin']['ipsandports']['webserverssldomainconfig']} - - -
{$lng['admin']['ipsandports']['enable_ssl']}$enable_ssl
{$lng['admin']['ipsandports']['ssl_cert_file']}:
{$lng['admin']['ipsandports']['ssl_key_file']}:
{$lng['admin']['ipsandports']['ssl_ca_file']}:
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['ipsandports']['add']}
+  {$lng['admin']['ipsandports']['ipandport']} + + +
{$lng['admin']['ipsandports']['ip']}:
{$lng['admin']['ipsandports']['port']}:
+  {$lng['admin']['ipsandports']['webserverdefaultconfig']} + + +
{$lng['admin']['ipsandports']['create_listen_statement']}:$listen_statement
{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}: +
{$lng['panel']['not_supported']}lighttpd
+
$namevirtualhost_statement
{$lng['admin']['ipsandports']['create_vhostcontainer']}: +
{$lng['panel']['not_supported']}lighttpd
+
$vhostcontainer
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']} +
{$lng['panel']['not_supported']}lighttpd
+
{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}: +
{$lng['panel']['not_supported']}lighttpd
+
$vhostcontainer_servername_statement
+  {$lng['admin']['ipsandports']['webserverdomainconfig']} + + +
{$lng['admin']['ipsandports']['default_vhostconf_domain']}:
{$lng['serversettings']['default_vhostconf']['description']} +
{$lng['panel']['not_supported']}lighttpd
+
+  {$lng['admin']['ipsandports']['webserverssldomainconfig']} + + +
{$lng['admin']['ipsandports']['enable_ssl']}$enable_ssl
{$lng['admin']['ipsandports']['ssl_cert_file']}:
{$lng['admin']['ipsandports']['ssl_key_file']}:
{$lng['admin']['ipsandports']['ssl_ca_file']}:
+
+
+
+$footer diff --git a/templates/admin/ipsandports/ipsandports_edit.tpl b/templates/admin/ipsandports/ipsandports_edit.tpl index 620b1dab..8f9b3897 100644 --- a/templates/admin/ipsandports/ipsandports_edit.tpl +++ b/templates/admin/ipsandports/ipsandports_edit.tpl @@ -1,110 +1,110 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['ipsandports']['edit']}
-  {$lng['admin']['ipsandports']['ipandport']} - - -
{$lng['admin']['ipsandports']['ip']}:
{$lng['admin']['ipsandports']['port']}:
-  {$lng['admin']['ipsandports']['webserverdefaultconfig']} - - -
{$lng['admin']['ipsandports']['create_listen_statement']}:$listen_statement
{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}: -
{$lng['panel']['not_supported']}lighttpd
-
$namevirtualhost_statement
{$lng['admin']['ipsandports']['create_vhostcontainer']}: -
{$lng['panel']['not_supported']}lighttpd
-
$vhostcontainer
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}: -
{$lng['panel']['not_supported']}lighttpd
-
$vhostcontainer_servername_statement
-  {$lng['admin']['ipsandports']['webserverdomainconfig']} - - -
{$lng['admin']['ipsandports']['default_vhostconf_domain']}:
{$lng['serversettings']['default_vhostconf']['description']} -
{$lng['panel']['not_supported']}lighttpd
-
-  {$lng['admin']['ipsandports']['webserverssldomainconfig']} - - -
{$lng['admin']['ipsandports']['enable_ssl']}$enable_ssl
{$lng['admin']['ipsandports']['ssl_cert_file']}:
{$lng['admin']['ipsandports']['ssl_key_file']}:
{$lng['admin']['ipsandports']['ssl_ca_file']}:
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['ipsandports']['edit']}
+  {$lng['admin']['ipsandports']['ipandport']} + + +
{$lng['admin']['ipsandports']['ip']}:
{$lng['admin']['ipsandports']['port']}:
+  {$lng['admin']['ipsandports']['webserverdefaultconfig']} + + +
{$lng['admin']['ipsandports']['create_listen_statement']}:$listen_statement
{$lng['admin']['ipsandports']['create_namevirtualhost_statement']}: +
{$lng['panel']['not_supported']}lighttpd
+
$namevirtualhost_statement
{$lng['admin']['ipsandports']['create_vhostcontainer']}: +
{$lng['panel']['not_supported']}lighttpd
+
$vhostcontainer
{$lng['admin']['ownvhostsettings']}:
{$lng['serversettings']['default_vhostconf']['description']} +
{$lng['panel']['not_supported']}lighttpd
+
{$lng['admin']['ipsandports']['create_vhostcontainer_servername_statement']}: +
{$lng['panel']['not_supported']}lighttpd
+
$vhostcontainer_servername_statement
+  {$lng['admin']['ipsandports']['webserverdomainconfig']} + + +
{$lng['admin']['ipsandports']['default_vhostconf_domain']}:
{$lng['serversettings']['default_vhostconf']['description']} +
{$lng['panel']['not_supported']}lighttpd
+
+  {$lng['admin']['ipsandports']['webserverssldomainconfig']} + + +
{$lng['admin']['ipsandports']['enable_ssl']}$enable_ssl
{$lng['admin']['ipsandports']['ssl_cert_file']}:
{$lng['admin']['ipsandports']['ssl_key_file']}:
{$lng['admin']['ipsandports']['ssl_ca_file']}:
+
+
+
+$footer diff --git a/templates/admin/ipsandports/ipsandports_ipandport.tpl b/templates/admin/ipsandports/ipsandports_ipandport.tpl index 5bb1d77d..3c1c3502 100644 --- a/templates/admin/ipsandports/ipsandports_ipandport.tpl +++ b/templates/admin/ipsandports/ipsandports_ipandport.tpl @@ -1,11 +1,11 @@ - - {$row['ip']}:{$row['port']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['edit']} - {$lng['panel']['delete']} - + + {$row['ip']}:{$row['port']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['edit']} + {$lng['panel']['delete']} + diff --git a/templates/admin/logger/logger.tpl b/templates/admin/logger/logger.tpl index b4e4f43c..79569329 100644 --- a/templates/admin/logger/logger.tpl +++ b/templates/admin/logger/logger.tpl @@ -1,30 +1,30 @@ -$header -
- - - - - - - - - - - - - - - - - - - - $log - - - -
 {$lng['menue']['logger']['logger']}{$searchcode}
{$lng['logger']['truncate']}
{$lng['logger']['date']}  {$arrowcode['date']}{$lng['logger']['type']}  {$arrowcode['type']}{$lng['logger']['user']}  {$arrowcode['user']}
{$lng['logger']['truncate']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + $log + + + +
 {$lng['menue']['logger']['logger']}{$searchcode}
{$lng['logger']['truncate']}
{$lng['logger']['date']}  {$arrowcode['date']}{$lng['logger']['type']}  {$arrowcode['type']}{$lng['logger']['user']}  {$arrowcode['user']}
{$lng['logger']['truncate']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/logger/logger_action.tpl b/templates/admin/logger/logger_action.tpl index 0d073f0c..0649d4b7 100644 --- a/templates/admin/logger/logger_action.tpl +++ b/templates/admin/logger/logger_action.tpl @@ -1,3 +1,3 @@ - - {$row['action']} + + {$row['action']} \ No newline at end of file diff --git a/templates/admin/logger/logger_log.tpl b/templates/admin/logger/logger_log.tpl index 737bd34d..e1eec3ab 100644 --- a/templates/admin/logger/logger_log.tpl +++ b/templates/admin/logger/logger_log.tpl @@ -1,6 +1,6 @@ - - {$row['date']} - {$row['type']} - {$row['user']} - {$row['text']} - + + {$row['date']} + {$row['type']} + {$row['user']} + {$row['text']} + diff --git a/templates/admin/message/message.tpl b/templates/admin/message/message.tpl index 9f5d42ad..9afe9f5e 100644 --- a/templates/admin/message/message.tpl +++ b/templates/admin/message/message.tpl @@ -1,39 +1,39 @@ -$header -
- - - - - - - - -
 {$successmessage}
-
-
-
- - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['message']}
{$lng['admin']['receipient']}
{$lng['admin']['subject']}
{$lng['admin']['text']}
-
-
-
-$footer - +$header +
+ + + + + + + + +
 {$successmessage}
+
+
+
+ + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['message']}
{$lng['admin']['receipient']}
{$lng['admin']['subject']}
{$lng['admin']['text']}
+
+
+
+$footer + diff --git a/templates/admin/phpconfig/overview.tpl b/templates/admin/phpconfig/overview.tpl index faa9dabb..01b862ac 100644 --- a/templates/admin/phpconfig/overview.tpl +++ b/templates/admin/phpconfig/overview.tpl @@ -1,21 +1,21 @@ -$header - - - - - - - - - - - - - $tablecontent - - - -
 {$lng['menue']['phpsettings']['maintitle']} 
{$lng['admin']['phpsettings']['description']}{$lng['admin']['phpsettings']['activedomains']}{$lng['admin']['phpsettings']['binary']}{$lng['admin']['phpsettings']['file_extensions']}{$lng['admin']['phpsettings']['actions']}
{$lng['admin']['phpsettings']['addnew']}
-
-
+$header + + + + + + + + + + + + + $tablecontent + + + +
 {$lng['menue']['phpsettings']['maintitle']} 
{$lng['admin']['phpsettings']['description']}{$lng['admin']['phpsettings']['activedomains']}{$lng['admin']['phpsettings']['binary']}{$lng['admin']['phpsettings']['file_extensions']}{$lng['admin']['phpsettings']['actions']}
{$lng['admin']['phpsettings']['addnew']}
+
+
$footer \ No newline at end of file diff --git a/templates/admin/phpconfig/overview_add.tpl b/templates/admin/phpconfig/overview_add.tpl index 12406ba4..c7c3909d 100644 --- a/templates/admin/phpconfig/overview_add.tpl +++ b/templates/admin/phpconfig/overview_add.tpl @@ -1,93 +1,93 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['phpsettings']['addsettings']}
{$lng['admin']['phpsettings']['description']}
{$lng['admin']['phpsettings']['binary']}
{$lng['admin']['phpsettings']['file_extensions']}
{$lng['admin']['phpsettings']['file_extensions_note']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
{$lng['admin']['phpsettings']['phpinisettings']}
 
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['phpconfig']['template_replace_vars']}
{SAFE_MODE}{$lng['admin']['phpconfig']['safe_mode']}
{PEAR_DIR}{$lng['admin']['phpconfig']['pear_dir']}
{OPEN_BASEDIR_C}{$lng['admin']['phpconfig']['open_basedir_c']}
{OPEN_BASEDIR}{$lng['admin']['phpconfig']['open_basedir']}
{OPEN_BASEDIR_GLOBAL}{$lng['admin']['phpconfig']['open_basedir_global']}
{TMP_DIR}{$lng['admin']['phpconfig']['tmp_dir']}
{CUSTOMER_EMAIL}{$lng['admin']['phpconfig']['customer_email']}
{ADMIN_EMAIL}{$lng['admin']['phpconfig']['admin_email']}
{DOMAIN}{$lng['admin']['phpconfig']['domain']}
{CUSTOMER}{$lng['admin']['phpconfig']['customer']}
{ADMIN}{$lng['admin']['phpconfig']['admin']}
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['phpsettings']['addsettings']}
{$lng['admin']['phpsettings']['description']}
{$lng['admin']['phpsettings']['binary']}
{$lng['admin']['phpsettings']['file_extensions']}
{$lng['admin']['phpsettings']['file_extensions_note']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
{$lng['admin']['phpsettings']['phpinisettings']}
 
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['phpconfig']['template_replace_vars']}
{SAFE_MODE}{$lng['admin']['phpconfig']['safe_mode']}
{PEAR_DIR}{$lng['admin']['phpconfig']['pear_dir']}
{OPEN_BASEDIR_C}{$lng['admin']['phpconfig']['open_basedir_c']}
{OPEN_BASEDIR}{$lng['admin']['phpconfig']['open_basedir']}
{OPEN_BASEDIR_GLOBAL}{$lng['admin']['phpconfig']['open_basedir_global']}
{TMP_DIR}{$lng['admin']['phpconfig']['tmp_dir']}
{CUSTOMER_EMAIL}{$lng['admin']['phpconfig']['customer_email']}
{ADMIN_EMAIL}{$lng['admin']['phpconfig']['admin_email']}
{DOMAIN}{$lng['admin']['phpconfig']['domain']}
{CUSTOMER}{$lng['admin']['phpconfig']['customer']}
{ADMIN}{$lng['admin']['phpconfig']['admin']}
+
+
$footer \ No newline at end of file diff --git a/templates/admin/phpconfig/overview_edit.tpl b/templates/admin/phpconfig/overview_edit.tpl index 6e3b18e4..569c68f5 100644 --- a/templates/admin/phpconfig/overview_edit.tpl +++ b/templates/admin/phpconfig/overview_edit.tpl @@ -1,94 +1,94 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['phpsettings']['editsettings']}
{$lng['admin']['phpsettings']['description']}
{$lng['admin']['phpsettings']['binary']}
{$lng['admin']['phpsettings']['file_extensions']}
{$lng['admin']['phpsettings']['file_extensions_note']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
{$lng['admin']['phpsettings']['phpinisettings']}
 
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['phpconfig']['template_replace_vars']}
{SAFE_MODE}{$lng['admin']['phpconfig']['safe_mode']}
{PEAR_DIR}{$lng['admin']['phpconfig']['pear_dir']}
{OPEN_BASEDIR_C}{$lng['admin']['phpconfig']['open_basedir_c']}
{OPEN_BASEDIR}{$lng['admin']['phpconfig']['open_basedir']}
{OPEN_BASEDIR_GLOBAL}{$lng['admin']['phpconfig']['open_basedir_global']}
{TMP_DIR}{$lng['admin']['phpconfig']['tmp_dir']}
{CUSTOMER_EMAIL}{$lng['admin']['phpconfig']['customer_email']}
{ADMIN_EMAIL}{$lng['admin']['phpconfig']['admin_email']}
{DOMAIN}{$lng['admin']['phpconfig']['domain']}
{CUSTOMER}{$lng['admin']['phpconfig']['customer']}
{ADMIN}{$lng['admin']['phpconfig']['admin']}
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['phpsettings']['editsettings']}
{$lng['admin']['phpsettings']['description']}
{$lng['admin']['phpsettings']['binary']}
{$lng['admin']['phpsettings']['file_extensions']}
{$lng['admin']['phpsettings']['file_extensions_note']}
{$lng['admin']['mod_fcgid_starter']['title']}
{$lng['admin']['mod_fcgid_maxrequests']['title']}
{$lng['admin']['phpsettings']['phpinisettings']}
 
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['phpconfig']['template_replace_vars']}
{SAFE_MODE}{$lng['admin']['phpconfig']['safe_mode']}
{PEAR_DIR}{$lng['admin']['phpconfig']['pear_dir']}
{OPEN_BASEDIR_C}{$lng['admin']['phpconfig']['open_basedir_c']}
{OPEN_BASEDIR}{$lng['admin']['phpconfig']['open_basedir']}
{OPEN_BASEDIR_GLOBAL}{$lng['admin']['phpconfig']['open_basedir_global']}
{TMP_DIR}{$lng['admin']['phpconfig']['tmp_dir']}
{CUSTOMER_EMAIL}{$lng['admin']['phpconfig']['customer_email']}
{ADMIN_EMAIL}{$lng['admin']['phpconfig']['admin_email']}
{DOMAIN}{$lng['admin']['phpconfig']['domain']}
{CUSTOMER}{$lng['admin']['phpconfig']['customer']}
{ADMIN}{$lng['admin']['phpconfig']['admin']}
+
+
$footer \ No newline at end of file diff --git a/templates/admin/phpconfig/overview_overview.tpl b/templates/admin/phpconfig/overview_overview.tpl index 61a2b79e..e844ff0d 100644 --- a/templates/admin/phpconfig/overview_overview.tpl +++ b/templates/admin/phpconfig/overview_overview.tpl @@ -1,10 +1,10 @@ - - {$row['description']} - {$domains} - {$row['binary']} - {$row['file_extensions']} - - {$lng['panel']['edit']}
- {$lng['panel']['delete']}
- + + {$row['description']} + {$domains} + {$row['binary']} + {$row['file_extensions']} + + {$lng['panel']['edit']}
+ {$lng['panel']['delete']}
+ \ No newline at end of file diff --git a/templates/admin/settings/settings.tpl b/templates/admin/settings/settings.tpl index 4807e50b..301489d4 100644 --- a/templates/admin/settings/settings.tpl +++ b/templates/admin/settings/settings.tpl @@ -1,21 +1,21 @@ -$header -
- - - - - - - - - $fields - - - -
 {$lng['admin']['serversettings']}
- -
-
-
-
+$header +
+ + + + + + + + + $fields + + + +
 {$lng['admin']['serversettings']}
+ +
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/settings/settings_group.tpl b/templates/admin/settings/settings_group.tpl index fe3ed97e..0a992447 100644 --- a/templates/admin/settings/settings_group.tpl +++ b/templates/admin/settings/settings_group.tpl @@ -1,8 +1,8 @@ - - -  {$groupdetails['title']} - - - - - + + +  {$groupdetails['title']} + + + + + diff --git a/templates/admin/settings/updatecounters.tpl b/templates/admin/settings/updatecounters.tpl index fcbec792..bd283aac 100644 --- a/templates/admin/settings/updatecounters.tpl +++ b/templates/admin/settings/updatecounters.tpl @@ -1,18 +1,18 @@ -$header - - - - -{$customers} - - - -{$admins} -
-  {$lng['admin']['updatecounters']}: {$lng['admin']['customers']} -
-  {$lng['admin']['updatecounters']}: {$lng['admin']['admins']} -
-
-
-$footer +$header + + + + +{$customers} + + + +{$admins} +
+  {$lng['admin']['updatecounters']}: {$lng['admin']['customers']} +
+  {$lng['admin']['updatecounters']}: {$lng['admin']['admins']} +
+
+
+$footer diff --git a/templates/admin/settings/updatecounters_row_admin.tpl b/templates/admin/settings/updatecounters_row_admin.tpl index ba415453..53057ebe 100644 --- a/templates/admin/settings/updatecounters_row_admin.tpl +++ b/templates/admin/settings/updatecounters_row_admin.tpl @@ -1,61 +1,61 @@ - - - {$admin['loginname']}{$admin['loginname']}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{$lng['admin']['customers']}:style="color:green"style="color:red">{$admin['customers_used']} -> {$admin['customers_used_new']}
{$lng['customer']['domains']}:style="color:green"style="color:red">{$admin['domains_used']} -> {$admin['domains_used_new']}
{$lng['customer']['subdomains']}:style="color:green"style="color:red">{$admin['subdomains_used']} -> {$admin['subdomains_used_new']}
{$lng['customer']['diskspace']}:style="color:green"style="color:red">{$admin['diskspace_used']} -> {$admin['diskspace_used_new']}
{$lng['customer']['traffic']}:style="color:green"style="color:red">{$admin['traffic_used']} -> {$admin['traffic_used_new']}
{$lng['customer']['mysqls']}:style="color:green"style="color:red">{$admin['mysqls_used']} -> {$admin['mysqls_used_new']}
{$lng['customer']['emails']}:style="color:green"style="color:red">{$admin['emails_used']} -> {$admin['emails_used_new']}
{$lng['customer']['accounts']}:style="color:green"style="color:red">{$admin['email_accounts_used']} -> {$admin['email_accounts_used_new']}
{$lng['customer']['forwarders']}:style="color:green"style="color:red">{$admin['email_forwarders_used']} -> {$admin['email_forwarders_used_new']}
{$lng['customer']['email_quota']}:style="color:green"style="color:red">{$admin['email_quota_used']} -> {$admin['email_quota_used_new']}
{$lng['customer']['ftps']}:style="color:green"style="color:red">{$admin['ftps_used']} -> {$admin['ftps_used_new']}
{$lng['customer']['tickets']}:style="color:green"style="color:red">{$admin['tickets_used']} -> {$admin['tickets_used_new']}
- - + + + {$admin['loginname']}{$admin['loginname']}: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$lng['admin']['customers']}:style="color:green"style="color:red">{$admin['customers_used']} -> {$admin['customers_used_new']}
{$lng['customer']['domains']}:style="color:green"style="color:red">{$admin['domains_used']} -> {$admin['domains_used_new']}
{$lng['customer']['subdomains']}:style="color:green"style="color:red">{$admin['subdomains_used']} -> {$admin['subdomains_used_new']}
{$lng['customer']['diskspace']}:style="color:green"style="color:red">{$admin['diskspace_used']} -> {$admin['diskspace_used_new']}
{$lng['customer']['traffic']}:style="color:green"style="color:red">{$admin['traffic_used']} -> {$admin['traffic_used_new']}
{$lng['customer']['mysqls']}:style="color:green"style="color:red">{$admin['mysqls_used']} -> {$admin['mysqls_used_new']}
{$lng['customer']['emails']}:style="color:green"style="color:red">{$admin['emails_used']} -> {$admin['emails_used_new']}
{$lng['customer']['accounts']}:style="color:green"style="color:red">{$admin['email_accounts_used']} -> {$admin['email_accounts_used_new']}
{$lng['customer']['forwarders']}:style="color:green"style="color:red">{$admin['email_forwarders_used']} -> {$admin['email_forwarders_used_new']}
{$lng['customer']['email_quota']}:style="color:green"style="color:red">{$admin['email_quota_used']} -> {$admin['email_quota_used_new']}
{$lng['customer']['ftps']}:style="color:green"style="color:red">{$admin['ftps_used']} -> {$admin['ftps_used_new']}
{$lng['customer']['tickets']}:style="color:green"style="color:red">{$admin['tickets_used']} -> {$admin['tickets_used_new']}
+ + diff --git a/templates/admin/settings/updatecounters_row_customer.tpl b/templates/admin/settings/updatecounters_row_customer.tpl index 88d12a35..464719a3 100644 --- a/templates/admin/settings/updatecounters_row_customer.tpl +++ b/templates/admin/settings/updatecounters_row_customer.tpl @@ -1,45 +1,45 @@ - - - {$customer['name']}, {$customer['firstname']} | {$customer['company']} ({$customer['loginname']}): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{$lng['customer']['subdomains']}:style="color:green"style="color:red">{$customer['tickets_used']} -> {$customer['tickets_used_new']}
{$lng['customer']['mysqls']}:style="color:green"style="color:red">{$customer['mysqls_used']} -> {$customer['mysqls_used_new']}
{$lng['customer']['emails']}:style="color:green"style="color:red">{$customer['emails_used']} -> {$customer['emails_used_new']}
{$lng['customer']['accounts']}:style="color:green"style="color:red">{$customer['email_accounts_used']} -> {$customer['email_accounts_used_new']}
{$lng['customer']['forwarders']}:style="color:green"style="color:red">{$customer['email_forwarders_used']} -> {$customer['email_forwarders_used_new']}
{$lng['customer']['email_quota']}:style="color:green"style="color:red">{$customer['email_quota_used']} -> {$customer['email_quota_used_new']}
{$lng['customer']['ftps']}:style="color:green"style="color:red">{$customer['ftps_used']} -> {$customer['ftps_used_new']}
{$lng['customer']['tickets']}:style="color:green"style="color:red">{$customer['tickets_used']} -> {$customer['tickets_used_new']}
- - + + + {$customer['name']}, {$customer['firstname']} | {$customer['company']} ({$customer['loginname']}): + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$lng['customer']['subdomains']}:style="color:green"style="color:red">{$customer['tickets_used']} -> {$customer['tickets_used_new']}
{$lng['customer']['mysqls']}:style="color:green"style="color:red">{$customer['mysqls_used']} -> {$customer['mysqls_used_new']}
{$lng['customer']['emails']}:style="color:green"style="color:red">{$customer['emails_used']} -> {$customer['emails_used_new']}
{$lng['customer']['accounts']}:style="color:green"style="color:red">{$customer['email_accounts_used']} -> {$customer['email_accounts_used_new']}
{$lng['customer']['forwarders']}:style="color:green"style="color:red">{$customer['email_forwarders_used']} -> {$customer['email_forwarders_used_new']}
{$lng['customer']['email_quota']}:style="color:green"style="color:red">{$customer['email_quota_used']} -> {$customer['email_quota_used_new']}
{$lng['customer']['ftps']}:style="color:green"style="color:red">{$customer['ftps_used']} -> {$customer['ftps_used_new']}
{$lng['customer']['tickets']}:style="color:green"style="color:red">{$customer['tickets_used']} -> {$customer['tickets_used_new']}
+ + diff --git a/templates/admin/templates/filetemplates_add.tpl b/templates/admin/templates/filetemplates_add.tpl index 3bfa542a..3b10b0ae 100644 --- a/templates/admin/templates/filetemplates_add.tpl +++ b/templates/admin/templates/filetemplates_add.tpl @@ -1,55 +1,55 @@ -$header -
- - - - - - - - - - - - - - - - - - -
 {$lng['admin']['templates']['template_add']}
{$lng['admin']['templates']['action']}
{$lng['admin']['templates']['filecontent']}
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['index_html']}
{SERVERNAME}:{$lng['admin']['templates']['SERVERNAME']}
{CUSTOMER}:{$lng['admin']['templates']['CUSTOMER']}
{ADMIN}:{$lng['admin']['templates']['ADMIN']}
{CUSTOMER_EMAIL}:{$lng['admin']['templates']['CUSTOMER_EMAIL']}
{ADMIN_EMAIL}:{$lng['admin']['templates']['ADMIN_EMAIL']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + +
 {$lng['admin']['templates']['template_add']}
{$lng['admin']['templates']['action']}
{$lng['admin']['templates']['filecontent']}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['index_html']}
{SERVERNAME}:{$lng['admin']['templates']['SERVERNAME']}
{CUSTOMER}:{$lng['admin']['templates']['CUSTOMER']}
{ADMIN}:{$lng['admin']['templates']['ADMIN']}
{CUSTOMER_EMAIL}:{$lng['admin']['templates']['CUSTOMER_EMAIL']}
{ADMIN_EMAIL}:{$lng['admin']['templates']['ADMIN_EMAIL']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/filetemplates_edit.tpl b/templates/admin/templates/filetemplates_edit.tpl index b83a8de6..fec8a397 100644 --- a/templates/admin/templates/filetemplates_edit.tpl +++ b/templates/admin/templates/filetemplates_edit.tpl @@ -1,56 +1,56 @@ -$header -
- - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['templates']['template_add']}
{$lng['admin']['templates']['action']}{$lng['admin']['templates'][$row['varname']]}
{$lng['admin']['templates']['filecontent']}
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['index_html']}
{SERVERNAME}:{$lng['admin']['templates']['SERVERNAME']}
{CUSTOMER}:{$lng['admin']['templates']['CUSTOMER']}
{ADMIN}:{$lng['admin']['templates']['ADMIN']}
{CUSTOMER_EMAIL}:{$lng['admin']['templates']['CUSTOMER_EMAIL']}
{ADMIN_EMAIL}:{$lng['admin']['templates']['ADMIN_EMAIL']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['templates']['template_add']}
{$lng['admin']['templates']['action']}{$lng['admin']['templates'][$row['varname']]}
{$lng['admin']['templates']['filecontent']}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['index_html']}
{SERVERNAME}:{$lng['admin']['templates']['SERVERNAME']}
{CUSTOMER}:{$lng['admin']['templates']['CUSTOMER']}
{ADMIN}:{$lng['admin']['templates']['ADMIN']}
{CUSTOMER_EMAIL}:{$lng['admin']['templates']['CUSTOMER_EMAIL']}
{ADMIN_EMAIL}:{$lng['admin']['templates']['ADMIN_EMAIL']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/templates.tpl b/templates/admin/templates/templates.tpl index 006eb9cf..dcbeac87 100644 --- a/templates/admin/templates/templates.tpl +++ b/templates/admin/templates/templates.tpl @@ -1,37 +1,37 @@ -$header - - - - - - - - - - $templates - - - - - -
 {$lng['admin']['templates']['templates']}
{$lng['login']['language']}{$lng['admin']['templates']['action']} 
{$lng['admin']['templates']['template_add']}
-
- - - - - - - - - - $filetemplates - - - - - -
 {$lng['admin']['templates']['filetemplates']}
{$lng['admin']['templates']['action']}  
{$lng['admin']['templates']['template_add']}
-
-
+$header + + + + + + + + + + $templates + + + + + +
 {$lng['admin']['templates']['templates']}
{$lng['login']['language']}{$lng['admin']['templates']['action']} 
{$lng['admin']['templates']['template_add']}
+
+ + + + + + + + + + $filetemplates + + + + + +
 {$lng['admin']['templates']['filetemplates']}
{$lng['admin']['templates']['action']}  
{$lng['admin']['templates']['template_add']}
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/templates_add_1.tpl b/templates/admin/templates/templates_add_1.tpl index f74748c8..ef569b66 100644 --- a/templates/admin/templates/templates_add_1.tpl +++ b/templates/admin/templates/templates_add_1.tpl @@ -1,21 +1,21 @@ -$header -
- - - - - - - - - - - - - - -
 {$lng['admin']['templates']['template_add']}
{$lng['login']['language']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + +
 {$lng['admin']['templates']['template_add']}
{$lng['login']['language']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/templates_add_2.tpl b/templates/admin/templates/templates_add_2.tpl index 94f14418..a1ad7185 100644 --- a/templates/admin/templates/templates_add_2.tpl +++ b/templates/admin/templates/templates_add_2.tpl @@ -1,105 +1,105 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['templates']['template_add']}
{$lng['login']['language']}$language
{$lng['admin']['templates']['action']}
{$lng['admin']['templates']['subject']}
{$lng['admin']['templates']['mailbody']}
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['createcustomer']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
{USERNAME}:{$lng['admin']['templates']['USERNAME']}
{PASSWORD}:{$lng['admin']['templates']['PASSWORD']}
{$lng['admin']['templates']['pop_success']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{$lng['admin']['templates']['pop_success_alternative']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{PASSWORD}:{$lng['admin']['templates']['EMAIL_PASSWORD']}
{$lng['admin']['templates']['trafficninetypercent']}
{TRAFFIC}:{$lng['admin']['templates']['TRAFFIC']}
{TRAFFICUSED}:{$lng['admin']['templates']['TRAFFICUSED']}
{$lng['admin']['templates']['ticket']}
{SUBJECT}:{$lng['admin']['templates']['SUBJECT']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['templates']['template_add']}
{$lng['login']['language']}$language
{$lng['admin']['templates']['action']}
{$lng['admin']['templates']['subject']}
{$lng['admin']['templates']['mailbody']}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['createcustomer']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
{USERNAME}:{$lng['admin']['templates']['USERNAME']}
{PASSWORD}:{$lng['admin']['templates']['PASSWORD']}
{$lng['admin']['templates']['pop_success']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{$lng['admin']['templates']['pop_success_alternative']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{PASSWORD}:{$lng['admin']['templates']['EMAIL_PASSWORD']}
{$lng['admin']['templates']['trafficninetypercent']}
{TRAFFIC}:{$lng['admin']['templates']['TRAFFIC']}
{TRAFFICUSED}:{$lng['admin']['templates']['TRAFFICUSED']}
{$lng['admin']['templates']['ticket']}
{SUBJECT}:{$lng['admin']['templates']['SUBJECT']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/templates_edit.tpl b/templates/admin/templates/templates_edit.tpl index ae5cd61e..cfd9356f 100644 --- a/templates/admin/templates/templates_edit.tpl +++ b/templates/admin/templates/templates_edit.tpl @@ -1,107 +1,107 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['admin']['templates']['template_edit']}
{$lng['login']['language']}{$result['language']}
{$lng['admin']['templates']['action']}$template
{$lng['admin']['templates']['subject']}
{$lng['admin']['templates']['mailbody']}
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['createcustomer']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
{USERNAME}:{$lng['admin']['templates']['USERNAME']}
{PASSWORD}:{$lng['admin']['templates']['PASSWORD']}
{$lng['admin']['templates']['pop_success']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{$lng['admin']['templates']['pop_success_alternative']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{PASSWORD}:{$lng['admin']['templates']['EMAIL_PASSWORD']}
{$lng['admin']['templates']['trafficninetypercent']}
{TRAFFIC}:{$lng['admin']['templates']['TRAFFIC']}
{TRAFFICUSED}:{$lng['admin']['templates']['TRAFFICUSED']}
{$lng['admin']['templates']['ticket']}
{SUBJECT}:{$lng['admin']['templates']['SUBJECT']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['admin']['templates']['template_edit']}
{$lng['login']['language']}{$result['language']}
{$lng['admin']['templates']['action']}$template
{$lng['admin']['templates']['subject']}
{$lng['admin']['templates']['mailbody']}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  {$lng['admin']['templates']['template_replace_vars']}
{$lng['admin']['templates']['createcustomer']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
{USERNAME}:{$lng['admin']['templates']['USERNAME']}
{PASSWORD}:{$lng['admin']['templates']['PASSWORD']}
{$lng['admin']['templates']['pop_success']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{$lng['admin']['templates']['pop_success_alternative']}
{EMAIL}:{$lng['admin']['templates']['EMAIL']}
{PASSWORD}:{$lng['admin']['templates']['EMAIL_PASSWORD']}
{$lng['admin']['templates']['trafficninetypercent']}
{TRAFFIC}:{$lng['admin']['templates']['TRAFFIC']}
{TRAFFICUSED}:{$lng['admin']['templates']['TRAFFICUSED']}
{$lng['admin']['templates']['ticket']}
{SUBJECT}:{$lng['admin']['templates']['SUBJECT']}
{FIRSTNAME}:{$lng['admin']['templates']['FIRSTNAME']}
{NAME}:{$lng['admin']['templates']['NAME']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/templates/templates_filetemplate.tpl b/templates/admin/templates/templates_filetemplate.tpl index a48eb6ab..d11e4db7 100644 --- a/templates/admin/templates/templates_filetemplate.tpl +++ b/templates/admin/templates/templates_filetemplate.tpl @@ -1,5 +1,5 @@ - - {$lng['admin']['templates'][$row['varname']]} - {$lng['panel']['delete']} - {$lng['panel']['edit']} - + + {$lng['admin']['templates'][$row['varname']]} + {$lng['panel']['delete']} + {$lng['panel']['edit']} + diff --git a/templates/admin/templates/templates_template.tpl b/templates/admin/templates/templates_template.tpl index c99dd192..2a1909fc 100644 --- a/templates/admin/templates/templates_template.tpl +++ b/templates/admin/templates/templates_template.tpl @@ -1,6 +1,6 @@ - - {$language} - {$template} - {$lng['panel']['delete']} - {$lng['panel']['edit']} - + + {$language} + {$template} + {$lng['panel']['delete']} + {$lng['panel']['edit']} + diff --git a/templates/admin/ticket/archive.tpl b/templates/admin/ticket/archive.tpl index 2bea9cd7..b4a6c03d 100644 --- a/templates/admin/ticket/archive.tpl +++ b/templates/admin/ticket/archive.tpl @@ -1,63 +1,63 @@ -$header -
- - - - - - - - - - - - - - - - - $tickets -
 {$lng['ticket']['lastarchived']} 
{$lng['ticket']['archivedtime']}{$lng['ticket']['ticket_answers']}{$lng['ticket']['subject']}{$lng['ticket']['lastreplier']}{$lng['ticket']['priority']}
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ticket']['search']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:{$priorities_options}
{$lng['ticket']['category']}:{$category_options}
{$lng['ticket']['lastchange']}:{$lng['ticket']['lastchange_from']}

{$lng['ticket']['lastchange_to']}
{$lng['ticket']['message']}:
{$lng['ticket']['customer']}:
-
+$header +
+ + + + + + + + + + + + + + + + + $tickets +
 {$lng['ticket']['lastarchived']} 
{$lng['ticket']['archivedtime']}{$lng['ticket']['ticket_answers']}{$lng['ticket']['subject']}{$lng['ticket']['lastreplier']}{$lng['ticket']['priority']}
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ticket']['search']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:{$priorities_options}
{$lng['ticket']['category']}:{$category_options}
{$lng['ticket']['lastchange']}:{$lng['ticket']['lastchange_from']}

{$lng['ticket']['lastchange_to']}
{$lng['ticket']['message']}:
{$lng['ticket']['customer']}:
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/archived_tickets.tpl b/templates/admin/ticket/archived_tickets.tpl index 04f44f41..435183f6 100644 --- a/templates/admin/ticket/archived_tickets.tpl +++ b/templates/admin/ticket/archived_tickets.tpl @@ -1,10 +1,10 @@ - - {$ticket['lastchange']} - {$ticket['ticket_answers']} - {$ticket['subject']} - {$ticket['lastreplier']} - {$ticket['priority']} - - {$lng['ticket']['show']} - - + + {$ticket['lastchange']} + {$ticket['ticket_answers']} + {$ticket['subject']} + {$ticket['lastreplier']} + {$ticket['priority']} + + {$lng['ticket']['show']} + + diff --git a/templates/admin/ticket/archivesearch.tpl b/templates/admin/ticket/archivesearch.tpl index 26e6ccf1..605a9829 100644 --- a/templates/admin/ticket/archivesearch.tpl +++ b/templates/admin/ticket/archivesearch.tpl @@ -1,31 +1,31 @@ -$header -
- - - - - - - - - - - - - - - - - - $tickets - - - - - - -
 {$lng['ticket']['archivesearch']} 
{$lng['ticket']['archivedtime']}{$lng['ticket']['ticket_answers']}{$lng['ticket']['subject']}{$lng['ticket']['lastreplier']}{$lng['ticket']['priority']}
{$lng['ticket']['noresults']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + $tickets + + + + + + +
 {$lng['ticket']['archivesearch']} 
{$lng['ticket']['archivedtime']}{$lng['ticket']['ticket_answers']}{$lng['ticket']['subject']}{$lng['ticket']['lastreplier']}{$lng['ticket']['priority']}
{$lng['ticket']['noresults']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/categories.tpl b/templates/admin/ticket/categories.tpl index 0d4cf317..f1c8673d 100644 --- a/templates/admin/ticket/categories.tpl +++ b/templates/admin/ticket/categories.tpl @@ -1,34 +1,34 @@ -$header -
- - - - - - - - - - - - - - - - - - - $ticketcategories - - - - - - - - -
 {$lng['menue']['ticket']['categories']}{$searchcode}
{$lng['ticket']['ticket_newcateory']}
{$lng['ticket']['category']}  {$arrowcode['name']}{$lng['ticket']['ticketcount']}  {$arrowcode['ticketcount']}
{$pagingcode}
{$lng['ticket']['ticket_newcateory']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + $ticketcategories + + + + + + + + +
 {$lng['menue']['ticket']['categories']}{$searchcode}
{$lng['ticket']['ticket_newcateory']}
{$lng['ticket']['category']}  {$arrowcode['name']}{$lng['ticket']['ticketcount']}  {$arrowcode['ticketcount']}
{$pagingcode}
{$lng['ticket']['ticket_newcateory']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets.tpl b/templates/admin/ticket/tickets.tpl index d1a7ef0a..9dceafe5 100644 --- a/templates/admin/ticket/tickets.tpl +++ b/templates/admin/ticket/tickets.tpl @@ -1,40 +1,40 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - $tickets - - - - - - - - - - -
 {$lng['menue']['ticket']['ticket']}{$searchcode}
{$lng['ticket']['ticket_new']}
{$lng['ticket']['lastchange']}  {$arrowcode['lastchange']}{$lng['ticket']['ticket_answers']}  {$arrowcode['ticket_answers']}{$lng['ticket']['subject']}  {$arrowcode['subject']}{$lng['ticket']['status']}  {$arrowcode['status']}{$lng['ticket']['lastreplier']}  {$arrowcode['lastreplier']}{$lng['ticket']['priority']}  {$arrowcode['priority']}
{$pagingcode}
{$lng['ticket']['ticket_new']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + $tickets + + + + + + + + + + +
 {$lng['menue']['ticket']['ticket']}{$searchcode}
{$lng['ticket']['ticket_new']}
{$lng['ticket']['lastchange']}  {$arrowcode['lastchange']}{$lng['ticket']['ticket_answers']}  {$arrowcode['ticket_answers']}{$lng['ticket']['subject']}  {$arrowcode['subject']}{$lng['ticket']['status']}  {$arrowcode['status']}{$lng['ticket']['lastreplier']}  {$arrowcode['lastreplier']}{$lng['ticket']['priority']}  {$arrowcode['priority']}
{$pagingcode}
{$lng['ticket']['ticket_new']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets_categories.tpl b/templates/admin/ticket/tickets_categories.tpl index 7b454048..4f4452be 100644 --- a/templates/admin/ticket/tickets_categories.tpl +++ b/templates/admin/ticket/tickets_categories.tpl @@ -1,10 +1,10 @@ - - {$row['name']} - {$row['ticketcount']} ({$row['ticketcountnotclosed']} {$lng['ticket']['open']} | {$closedtickets_count} {$lng['ticket']['closed']}) - - {$lng['panel']['edit']} - - - {$lng['panel']['delete']} - - + + {$row['name']} + {$row['ticketcount']} ({$row['ticketcountnotclosed']} {$lng['ticket']['open']} | {$closedtickets_count} {$lng['ticket']['closed']}) + + {$lng['panel']['edit']} + + + {$lng['panel']['delete']} + + diff --git a/templates/admin/ticket/tickets_customer.tpl b/templates/admin/ticket/tickets_customer.tpl index 63c0293f..2168ea9b 100644 --- a/templates/admin/ticket/tickets_customer.tpl +++ b/templates/admin/ticket/tickets_customer.tpl @@ -1,3 +1,3 @@ - - {$customer} - + + {$customer} + diff --git a/templates/admin/ticket/tickets_editcategory.tpl b/templates/admin/ticket/tickets_editcategory.tpl index d70ee7ea..ee39831b 100644 --- a/templates/admin/ticket/tickets_editcategory.tpl +++ b/templates/admin/ticket/tickets_editcategory.tpl @@ -1,22 +1,22 @@ -$header -
- - - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_editcateory']}
{$lng['ticket']['category']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_editcateory']}
{$lng['ticket']['category']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets_new.tpl b/templates/admin/ticket/tickets_new.tpl index 49d1ca94..fd1fe585 100644 --- a/templates/admin/ticket/tickets_new.tpl +++ b/templates/admin/ticket/tickets_new.tpl @@ -1,39 +1,39 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_new']}
{$lng['ticket']['customer']}:
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:
{$lng['ticket']['message']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_new']}
{$lng['ticket']['customer']}:
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:
{$lng['ticket']['message']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets_newcategory.tpl b/templates/admin/ticket/tickets_newcategory.tpl index 9cd17b48..c711a713 100644 --- a/templates/admin/ticket/tickets_newcategory.tpl +++ b/templates/admin/ticket/tickets_newcategory.tpl @@ -1,21 +1,21 @@ -$header -
- - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_newcateory']}
{$lng['ticket']['category']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_newcateory']}
{$lng['ticket']['category']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets_reply.tpl b/templates/admin/ticket/tickets_reply.tpl index 35f724df..f7474cba 100644 --- a/templates/admin/ticket/tickets_reply.tpl +++ b/templates/admin/ticket/tickets_reply.tpl @@ -1,51 +1,51 @@ -$header -
- - - - - - $ticket_replies - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_reply']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:{$row['name']}
{$lng['ticket']['message']}:
-
- - - - - - - - -
 {$lng['ticket']['ticket_reopen']}
{$lng['ticket']['ticket_reopen']}
-
-
-
-
+$header +
+ + + + + + $ticket_replies + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_reply']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:{$row['name']}
{$lng['ticket']['message']}:
+
+ + + + + + + + +
 {$lng['ticket']['ticket_reopen']}
{$lng['ticket']['ticket_reopen']}
+
+
+
+
$footer \ No newline at end of file diff --git a/templates/admin/ticket/tickets_tickets.tpl b/templates/admin/ticket/tickets_tickets.tpl index 2825aa83..ceb5f776 100644 --- a/templates/admin/ticket/tickets_tickets.tpl +++ b/templates/admin/ticket/tickets_tickets.tpl @@ -1,28 +1,28 @@ - - {$row['lastchange']} - {$row['ticket_answers']} - {$row['subject']} - {$row['status']} - {$row['lastreplier']} - {$row['priority']} - - - {$lng['ticket']['show']} - {$lng['ticket']['answer']} - - - - - {$lng['ticket']['close']} - - - {$lng['ticket']['reopen']} - - - - {$lng['ticket']['archive']} - - - {$lng['panel']['delete']} - - + + {$row['lastchange']} + {$row['ticket_answers']} + {$row['subject']} + {$row['status']} + {$row['lastreplier']} + {$row['priority']} + + + {$lng['ticket']['show']} + {$lng['ticket']['answer']} + + + + + {$lng['ticket']['close']} + + + {$lng['ticket']['reopen']} + + + + {$lng['ticket']['archive']} + + + {$lng['panel']['delete']} + + diff --git a/templates/admin/ticket/tickets_tickets_list.tpl b/templates/admin/ticket/tickets_tickets_list.tpl index a7b65979..3c081dfd 100644 --- a/templates/admin/ticket/tickets_tickets_list.tpl +++ b/templates/admin/ticket/tickets_tickets_list.tpl @@ -1,11 +1,11 @@ - - - - - - - - - - -
  {$lastchange} {$lng['ticket']['by']} {$by}
{$subject}
{$message}
+ + + + + + + + + + +
  {$lastchange} {$lng['ticket']['by']} {$by}
{$subject}
{$message}
diff --git a/templates/admin/ticket/tickets_tickets_main.tpl b/templates/admin/ticket/tickets_tickets_main.tpl index 5be972d5..fd22e796 100644 --- a/templates/admin/ticket/tickets_tickets_main.tpl +++ b/templates/admin/ticket/tickets_tickets_main.tpl @@ -1,11 +1,11 @@ - - - - - - - - - - +
  {$lastchange} {$lng['ticket']['by']} {$by} ({$status})
{$subject}
{$message}
+ + + + + + + + +
  {$lastchange} {$lng['ticket']['by']} {$by} ({$status})
{$subject}
{$message}
\ No newline at end of file diff --git a/templates/admin/ticket/tickets_view.tpl b/templates/admin/ticket/tickets_view.tpl index ac07dd5f..0674b696 100644 --- a/templates/admin/ticket/tickets_view.tpl +++ b/templates/admin/ticket/tickets_view.tpl @@ -1,17 +1,17 @@ -$header - - - - - - - -
 {$lng['ticket']['ticket_delete']}
{$lng['panel']['delete']}
-
-
- - $ticket_replies - -
-
+$header + + + + + + + +
 {$lng['ticket']['ticket_delete']}
{$lng['panel']['delete']}
+
+
+ + $ticket_replies + +
+
$footer \ No newline at end of file diff --git a/templates/customer/aps/askyesno.tpl b/templates/customer/aps/askyesno.tpl index 651e7388..4e60528e 100644 --- a/templates/customer/aps/askyesno.tpl +++ b/templates/customer/aps/askyesno.tpl @@ -1,23 +1,23 @@ - - - - - -
- $Message -
- - - - - $Ids -
-
-
- - - -
-
-
-
+ + + + + +
+ $Message +
+ + + + + $Ids +
+
+
+ + + +
+
+
+
diff --git a/templates/customer/aps/data.tpl b/templates/customer/aps/data.tpl index 09219b23..06e76872 100644 --- a/templates/customer/aps/data.tpl +++ b/templates/customer/aps/data.tpl @@ -1,9 +1,9 @@ - - - $Groupname - - - - $Fieldname - $Fieldvalue - + + + $Groupname + + + + $Fieldname + $Fieldvalue + diff --git a/templates/customer/aps/footer.tpl b/templates/customer/aps/footer.tpl index 56ab9655..35ee6c15 100644 --- a/templates/customer/aps/footer.tpl +++ b/templates/customer/aps/footer.tpl @@ -1 +1 @@ -$footer +$footer diff --git a/templates/customer/aps/header.tpl b/templates/customer/aps/header.tpl index 074878ca..6af88b30 100644 --- a/templates/customer/aps/header.tpl +++ b/templates/customer/aps/header.tpl @@ -1 +1 @@ -$header +$header diff --git a/templates/customer/aps/infobox.tpl b/templates/customer/aps/infobox.tpl index d8474350..182f811e 100644 --- a/templates/customer/aps/infobox.tpl +++ b/templates/customer/aps/infobox.tpl @@ -1,7 +1,7 @@ - - - - - -
$Message
-
+ + + + + +
$Message
+
diff --git a/templates/customer/aps/installer.tpl b/templates/customer/aps/installer.tpl index ba32658b..08384e22 100644 --- a/templates/customer/aps/installer.tpl +++ b/templates/customer/aps/installer.tpl @@ -1,27 +1,27 @@ -
- - - - - - - - - - - - - - - $Data - - - -
 {$Xml->name}
{$lng['aps']['install_wizard']} - -
{$lng['aps']['wizard_error']}
-
-
{$Xml->name} Icon
- -
+ + + + + + + + + + + + + + + + $Data + + + +
 {$Xml->name}
{$lng['aps']['install_wizard']} + +
{$lng['aps']['wizard_error']}
+
+
{$Xml->name} Icon
+ +
\ No newline at end of file diff --git a/templates/customer/aps/package.tpl b/templates/customer/aps/package.tpl index c718e1d3..1a90d578 100644 --- a/templates/customer/aps/package.tpl +++ b/templates/customer/aps/package.tpl @@ -1,53 +1,53 @@ - - - - - - - - - - - - $Data - - - -
 {$Xml->name}
$Summary{$Xml->name} Icon
{$lng['aps']['data']}
- -
- - - - - -
-
- -
- - - - -
-
- -
- - - - - -
-
- -
- - - - - -
-
-
-
+ + + + + + + + + + + + $Data + + + +
 {$Xml->name}
$Summary{$Xml->name} Icon
{$lng['aps']['data']}
+ +
+ + + + + +
+
+ +
+ + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+
+
diff --git a/templates/customer/aps/package_status.tpl b/templates/customer/aps/package_status.tpl index d4b93403..5eb5622d 100644 --- a/templates/customer/aps/package_status.tpl +++ b/templates/customer/aps/package_status.tpl @@ -1,48 +1,48 @@ - - - - - - - - - - - - $Data - - - -
 {$Xml->name}
$Summary{$Xml->name} Icon
{$lng['aps']['data']}
- -
- - - - - -
-
- -
- - - - - -
-
- -
- - - - - -
-
- - {$lng['aps']['waitfortask']} - -
+ + + + + + + + + + + + $Data + + + +
 {$Xml->name}
$Summary{$Xml->name} Icon
{$lng['aps']['data']}
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ +
+ + + + + +
+
+ + {$lng['aps']['waitfortask']} + +

\ No newline at end of file diff --git a/templates/customer/aps/search.tpl b/templates/customer/aps/search.tpl index c7257276..c3c25691 100644 --- a/templates/customer/aps/search.tpl +++ b/templates/customer/aps/search.tpl @@ -1,18 +1,18 @@ -
- - - - - - - - - - - - - - -
 {$lng['aps']['search']}
{$lng['aps']['search_description']}
-
+ + + + + + + + + + + + + + + +
 {$lng['aps']['search']}
{$lng['aps']['search_description']}
+
\ No newline at end of file diff --git a/templates/customer/domains/domainlist.tpl b/templates/customer/domains/domainlist.tpl index 6518ec28..e2985a7f 100644 --- a/templates/customer/domains/domainlist.tpl +++ b/templates/customer/domains/domainlist.tpl @@ -1,35 +1,35 @@ -$header -
- - - - - - - - - - - - - - - - - - $domains - - - - - - - - - - -
 {$lng['domains']['domainsettings']}{$searchcode}
{$lng['domains']['subdomain_add']}
{$lng['domains']['domainname']}  {$arrowcode['d.domain']}{$lng['panel']['path']}  {$arrowcode['d.documentroot']}
{$pagingcode}
{$lng['domains']['subdomain_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + $domains + + + + + + + + + + +
 {$lng['domains']['domainsettings']}{$searchcode}
{$lng['domains']['subdomain_add']}
{$lng['domains']['domainname']}  {$arrowcode['d.domain']}{$lng['panel']['path']}  {$arrowcode['d.documentroot']}
{$pagingcode}
{$lng['domains']['subdomain_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/domains/domains.tpl b/templates/customer/domains/domains.tpl index 85eb93ca..e5d49243 100644 --- a/templates/customer/domains/domains.tpl +++ b/templates/customer/domains/domains.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['domains']['domains']}
{$lng['domains']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['domains']['domains']}
{$lng['domains']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/domains/domains_add.tpl b/templates/customer/domains/domains_add.tpl index 536db395..93796141 100644 --- a/templates/customer/domains/domains_add.tpl +++ b/templates/customer/domains/domains_add.tpl @@ -1,50 +1,50 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['domains']['subdomain_add']}
{$lng['domains']['domainname']}: .
{$lng['domains']['aliasdomain']}:
- {$lng['panel']['pathorurl']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['panel']['path']}:{$pathSelect}
{$lng['panel']['urloverridespath']}:
SSL Redirect:$ssl_redirect
{$lng['domain']['openbasedirpath']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['domains']['subdomain_add']}
{$lng['domains']['domainname']}: .
{$lng['domains']['aliasdomain']}:
+ {$lng['panel']['pathorurl']}:
+ {$lng['panel']['pathDescription']} +
{$pathSelect}
{$lng['panel']['path']}:{$pathSelect}
{$lng['panel']['urloverridespath']}:
SSL Redirect:$ssl_redirect
{$lng['domain']['openbasedirpath']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/domains/domains_delimiter.tpl b/templates/customer/domains/domains_delimiter.tpl index 6f3f6c85..7be6b64b 100644 --- a/templates/customer/domains/domains_delimiter.tpl +++ b/templates/customer/domains/domains_delimiter.tpl @@ -1,3 +1,3 @@ - -     {$row['domain']} [{$lng['domains']['statstics']}] + +     {$row['domain']} [{$lng['domains']['statstics']}] \ No newline at end of file diff --git a/templates/customer/domains/domains_domain.tpl b/templates/customer/domains/domains_domain.tpl index 16f62e00..8d462fa3 100644 --- a/templates/customer/domains/domains_domain.tpl +++ b/templates/customer/domains/domains_domain.tpl @@ -1,6 +1,6 @@ - - {$row['domain']} - {$row['documentroot']}{$lng['domains']['aliasdomain']} {$row['aliasdomain']} - {$lng['panel']['edit']} - {$lng['panel']['delete']}{$lng['domains']['isassigneddomain']}{$lng['domains']['hasaliasdomains']} - + + {$row['domain']} + {$row['documentroot']}{$lng['domains']['aliasdomain']} {$row['aliasdomain']} + {$lng['panel']['edit']} + {$lng['panel']['delete']}{$lng['domains']['isassigneddomain']}{$lng['domains']['hasaliasdomains']} + diff --git a/templates/customer/domains/domains_edit.tpl b/templates/customer/domains/domains_edit.tpl index 41069025..e51eafb6 100644 --- a/templates/customer/domains/domains_edit.tpl +++ b/templates/customer/domains/domains_edit.tpl @@ -1,59 +1,59 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['domains']['subdomain_edit']}
{$lng['domains']['domainname']}:{$result['domain']}
{$lng['domains']['aliasdomain']}:
- {$lng['panel']['pathorurl']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['panel']['path']}:{$pathSelect}
{$lng['panel']['urloverridespath']}:
{$lng['domains']['wildcarddomain']}$iswildcarddomain
Emaildomain:$isemaildomain
SSL Redirect:$ssl_redirect
{$lng['domain']['openbasedirpath']}:
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['domains']['subdomain_edit']}
{$lng['domains']['domainname']}:{$result['domain']}
{$lng['domains']['aliasdomain']}:
+ {$lng['panel']['pathorurl']}:
+ {$lng['panel']['pathDescription']} +
{$pathSelect}
{$lng['panel']['path']}:{$pathSelect}
{$lng['panel']['urloverridespath']}:
{$lng['domains']['wildcarddomain']}$iswildcarddomain
Emaildomain:$isemaildomain
SSL Redirect:$ssl_redirect
{$lng['domain']['openbasedirpath']}:
+
+
+
+$footer diff --git a/templates/customer/email/account_add.tpl b/templates/customer/email/account_add.tpl index 8dcd034a..743389d0 100644 --- a/templates/customer/email/account_add.tpl +++ b/templates/customer/email/account_add.tpl @@ -1,38 +1,38 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['emails']['account_add']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['login']['password']}:
{$lng['emails']['quota']} ({$lng['panel']['megabyte']}):
{$lng['emails']['alternative_emailaddress']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['emails']['account_add']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['login']['password']}:
{$lng['emails']['quota']} ({$lng['panel']['megabyte']}):
{$lng['emails']['alternative_emailaddress']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/account_changepw.tpl b/templates/customer/email/account_changepw.tpl index 238fc9f7..1c42a6d9 100644 --- a/templates/customer/email/account_changepw.tpl +++ b/templates/customer/email/account_changepw.tpl @@ -1,26 +1,26 @@ -$header -
- - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['login']['password']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['login']['password']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/account_changequota.tpl b/templates/customer/email/account_changequota.tpl index 1918aebd..b39d30c7 100644 --- a/templates/customer/email/account_changequota.tpl +++ b/templates/customer/email/account_changequota.tpl @@ -1,26 +1,26 @@ -$header -
- - - - - - - - - - - - - - - - - - - -
 {$lng['emails']['quota_edit']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['emails']['quota']} ({$lng['panel']['megabyte']}):
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + +
 {$lng['emails']['quota_edit']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['emails']['quota']} ({$lng['panel']['megabyte']}):
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/autoresponder.tpl b/templates/customer/email/autoresponder.tpl index 804b7930..7620351b 100644 --- a/templates/customer/email/autoresponder.tpl +++ b/templates/customer/email/autoresponder.tpl @@ -1,19 +1,19 @@ -$header - - - - - - - - - - - $autoresponder - - - -
 {$lng['menue']['email']['autoresponder']}
{$lng['emails']['emailaddress']}{$lng['autoresponder']['active']}  
{$lng['autoresponder']['autoresponder_add']}
-
-
+$header + + + + + + + + + + + $autoresponder + + + +
 {$lng['menue']['email']['autoresponder']}
{$lng['emails']['emailaddress']}{$lng['autoresponder']['active']}  
{$lng['autoresponder']['autoresponder_add']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/autoresponder_add.tpl b/templates/customer/email/autoresponder_add.tpl index 3e65e8d0..267003ae 100644 --- a/templates/customer/email/autoresponder_add.tpl +++ b/templates/customer/email/autoresponder_add.tpl @@ -1,34 +1,34 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['autoresponder']['autoresponder_new']}
{$lng['autoresponder']['account']}:
{$lng['autoresponder']['active']}:
{$lng['autoresponder']['subject']}:
{$lng['autoresponder']['message']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['autoresponder']['autoresponder_new']}
{$lng['autoresponder']['account']}:
{$lng['autoresponder']['active']}:
{$lng['autoresponder']['subject']}:
{$lng['autoresponder']['message']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/autoresponder_autoresponder.tpl b/templates/customer/email/autoresponder_autoresponder.tpl index 5af542b4..d5c72128 100644 --- a/templates/customer/email/autoresponder_autoresponder.tpl +++ b/templates/customer/email/autoresponder_autoresponder.tpl @@ -1,6 +1,6 @@ - - {$row['email']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['edit']} - {$lng['panel']['delete']} + + {$row['email']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['edit']} + {$lng['panel']['delete']} \ No newline at end of file diff --git a/templates/customer/email/autoresponder_edit.tpl b/templates/customer/email/autoresponder_edit.tpl index 37665273..9f553ed5 100644 --- a/templates/customer/email/autoresponder_edit.tpl +++ b/templates/customer/email/autoresponder_edit.tpl @@ -1,35 +1,35 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['autoresponder']['autoresponder_edit']}
{$lng['autoresponder']['account']}:{$email}
{$lng['autoresponder']['active']}:
{$lng['autoresponder']['subject']}:
{$lng['autoresponder']['message']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['autoresponder']['autoresponder_edit']}
{$lng['autoresponder']['account']}:{$email}
{$lng['autoresponder']['active']}:
{$lng['autoresponder']['subject']}:
{$lng['autoresponder']['message']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/email.tpl b/templates/customer/email/email.tpl index 1c1fb632..93092351 100644 --- a/templates/customer/email/email.tpl +++ b/templates/customer/email/email.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['email']['email']}
{$lng['emails']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['email']['email']}
{$lng['emails']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/emails.tpl b/templates/customer/email/emails.tpl index 28deffc4..6ea1a105 100644 --- a/templates/customer/email/emails.tpl +++ b/templates/customer/email/emails.tpl @@ -1,38 +1,38 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - $accounts - - - - - - - - - - -
 {$lng['menue']['email']['emails']}{$searchcode}
{$lng['emails']['emails_add']}
{$lng['emails']['emailaddress']}  {$arrowcode['m.email_full']}{$lng['emails']['forwarders']}  {$arrowcode['m.destination']}{$lng['emails']['account']}{$lng['emails']['catchall']}{$lng['emails']['quota']}
{$pagingcode}
{$lng['emails']['emails_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + $accounts + + + + + + + + + + +
 {$lng['menue']['email']['emails']}{$searchcode}
{$lng['emails']['emails_add']}
{$lng['emails']['emailaddress']}  {$arrowcode['m.email_full']}{$lng['emails']['forwarders']}  {$arrowcode['m.destination']}{$lng['emails']['account']}{$lng['emails']['catchall']}{$lng['emails']['quota']}
{$pagingcode}
{$lng['emails']['emails_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/emails_add.tpl b/templates/customer/email/emails_add.tpl index c07a0550..8203551d 100644 --- a/templates/customer/email/emails_add.tpl +++ b/templates/customer/email/emails_add.tpl @@ -1,25 +1,25 @@ -$header -
- - - - - - - - - - - - - - - - - - -
 {$lng['emails']['emails_add']}
{$lng['emails']['emailaddress']}: @
{$lng['emails']['iscatchall']}$iscatchall
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + +
 {$lng['emails']['emails_add']}
{$lng['emails']['emailaddress']}: @
{$lng['emails']['iscatchall']}$iscatchall
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/emails_domain.tpl b/templates/customer/email/emails_domain.tpl index b8a431be..3c34f6a4 100644 --- a/templates/customer/email/emails_domain.tpl +++ b/templates/customer/email/emails_domain.tpl @@ -1,3 +1,3 @@ - -     {$domainname} + +     {$domainname} \ No newline at end of file diff --git a/templates/customer/email/emails_edit.tpl b/templates/customer/email/emails_edit.tpl index 201066fa..2dbef322 100644 --- a/templates/customer/email/emails_edit.tpl +++ b/templates/customer/email/emails_edit.tpl @@ -1,46 +1,46 @@ -$header - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['emails']['emails_edit']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['emails']['account']}: - - {$lng['panel']['yes']} [{$lng['menue']['main']['changepassword']}] [{$lng['emails']['account_delete']}] - - - {$lng['panel']['no']} [{$lng['emails']['account_add']}] - -
{$lng['customer']['email_quota']}:{$result['quota']} {$lng['panel']['megabyte']} [{$lng['emails']['quota_edit']}]
{$lng['emails']['catchall']}: - - {$lng['panel']['yes']} - - - {$lng['panel']['no']} - - [{$lng['panel']['toggle']}] -
{$lng['emails']['forwarders']} ({$forwarders_count}):$forwarders{$lng['emails']['forwarder_add']}
-
-
+$header + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['emails']['emails_edit']}
{$lng['emails']['emailaddress']}:{$result['email_full']}
{$lng['emails']['account']}: + + {$lng['panel']['yes']} [{$lng['menue']['main']['changepassword']}] [{$lng['emails']['account_delete']}] + + + {$lng['panel']['no']} [{$lng['emails']['account_add']}] + +
{$lng['customer']['email_quota']}:{$result['quota']} {$lng['panel']['megabyte']} [{$lng['emails']['quota_edit']}]
{$lng['emails']['catchall']}: + + {$lng['panel']['yes']} + + + {$lng['panel']['no']} + + [{$lng['panel']['toggle']}] +
{$lng['emails']['forwarders']} ({$forwarders_count}):$forwarders{$lng['emails']['forwarder_add']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/email/emails_edit_forwarder.tpl b/templates/customer/email/emails_edit_forwarder.tpl index 7e5fe545..181101c5 100644 --- a/templates/customer/email/emails_edit_forwarder.tpl +++ b/templates/customer/email/emails_edit_forwarder.tpl @@ -1,2 +1,2 @@ -$destination [{$lng['panel']['delete']}] +$destination [{$lng['panel']['delete']}]
\ No newline at end of file diff --git a/templates/customer/email/emails_email.tpl b/templates/customer/email/emails_email.tpl index e16d4cf6..d4f73ef2 100644 --- a/templates/customer/email/emails_email.tpl +++ b/templates/customer/email/emails_email.tpl @@ -1,9 +1,9 @@ - - {$row['email_full']} -  {$row['destination']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['panel']['yes']}{$lng['panel']['no']} - {$lng['emails']['noquota']}{$row['quota']} MB - {$lng['panel']['edit']} - {$lng['panel']['delete']} - + + {$row['email_full']} +  {$row['destination']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['panel']['yes']}{$lng['panel']['no']} + {$lng['emails']['noquota']}{$row['quota']} MB + {$lng['panel']['edit']} + {$lng['panel']['delete']} + diff --git a/templates/customer/email/forwarder_add.tpl b/templates/customer/email/forwarder_add.tpl index 18f368c8..a051b837 100644 --- a/templates/customer/email/forwarder_add.tpl +++ b/templates/customer/email/forwarder_add.tpl @@ -1,26 +1,26 @@ -$header -
- - - - - - - - - - - - - - - - - - - -
 {$lng['emails']['forwarder_add']}
{$lng['emails']['from']}:{$result['email_full']}
{$lng['emails']['to']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + +
 {$lng['emails']['forwarder_add']}
{$lng['emails']['from']}:{$result['email_full']}
{$lng['emails']['to']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/extras.tpl b/templates/customer/extras/extras.tpl index c884b26b..16179a6e 100644 --- a/templates/customer/extras/extras.tpl +++ b/templates/customer/extras/extras.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['extras']['extras']}
{$lng['extras']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['extras']['extras']}
{$lng['extras']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/htaccess.tpl b/templates/customer/extras/htaccess.tpl index bd36e119..7fd785ff 100644 --- a/templates/customer/extras/htaccess.tpl +++ b/templates/customer/extras/htaccess.tpl @@ -1,31 +1,31 @@ -$header -
- - - - - - - - - - - - - - - - $htaccess - - - - - - - - -
 {$lng['menue']['extras']['pathoptions']}{$searchcode}
{$lng['panel']['path']}  {$arrowcode['path']}{$lng['extras']['view_directory']}  {$arrowcode['options_indexes']}{$lng['extras']['error404path']}  {$arrowcode['error404path']}{$lng['extras']['error403path']}  {$arrowcode['error403path']}{$lng['extras']['error500path']}  {$arrowcode['error500path']}
{$pagingcode}
{$lng['extras']['pathoptions_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + $htaccess + + + + + + + + +
 {$lng['menue']['extras']['pathoptions']}{$searchcode}
{$lng['panel']['path']}  {$arrowcode['path']}{$lng['extras']['view_directory']}  {$arrowcode['options_indexes']}{$lng['extras']['error404path']}  {$arrowcode['error404path']}{$lng['extras']['error403path']}  {$arrowcode['error403path']}{$lng['extras']['error500path']}  {$arrowcode['error500path']}
{$pagingcode}
{$lng['extras']['pathoptions_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/htaccess_add.tpl b/templates/customer/extras/htaccess_add.tpl index 96df1980..1ba88bdf 100644 --- a/templates/customer/extras/htaccess_add.tpl +++ b/templates/customer/extras/htaccess_add.tpl @@ -1,44 +1,44 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['extras']['pathoptions_add']}
- {$lng['panel']['path']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['emptyfordefault']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['emptyfordefault']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['errordocument500path']}:
{$lng['panel']['emptyfordefault']} -
{$lng['panel']['not_supported']}lighttpd
-
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['extras']['pathoptions_add']}
+ {$lng['panel']['path']}:
+ {$lng['panel']['pathDescription']} +
{$pathSelect}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['emptyfordefault']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['emptyfordefault']} +
{$lng['panel']['not_supported']}lighttpd
+
{$lng['extras']['errordocument500path']}:
{$lng['panel']['emptyfordefault']} +
{$lng['panel']['not_supported']}lighttpd
+
+
+
+
+$footer diff --git a/templates/customer/extras/htaccess_edit.tpl b/templates/customer/extras/htaccess_edit.tpl index ffba397e..6c4d4f39 100644 --- a/templates/customer/extras/htaccess_edit.tpl +++ b/templates/customer/extras/htaccess_edit.tpl @@ -1,42 +1,42 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['extras']['pathoptions_edit']}
{$lng['panel']['path']}:{$result['path']}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['emptyfordefault']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['emptyfordefault']} -
{$lng['panel']['not_supported']}lighttpd
-
{$lng['extras']['errordocument500path']}:
{$lng['panel']['emptyfordefault']} -
{$lng['panel']['not_supported']}lighttpd
-
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['extras']['pathoptions_edit']}
{$lng['panel']['path']}:{$result['path']}
{$lng['extras']['directory_browsing']}:$options_indexes
{$lng['extras']['errordocument404path']}:
{$lng['panel']['emptyfordefault']}
{$lng['extras']['errordocument403path']}:
{$lng['panel']['emptyfordefault']} +
{$lng['panel']['not_supported']}lighttpd
+
{$lng['extras']['errordocument500path']}:
{$lng['panel']['emptyfordefault']} +
{$lng['panel']['not_supported']}lighttpd
+
+
+
+
+$footer diff --git a/templates/customer/extras/htaccess_htaccess.tpl b/templates/customer/extras/htaccess_htaccess.tpl index 6446cf75..fc1c2a1f 100644 --- a/templates/customer/extras/htaccess_htaccess.tpl +++ b/templates/customer/extras/htaccess_htaccess.tpl @@ -1,9 +1,9 @@ - - {$row['path']} - {$row['options_indexes']} - {$row['error404path']} - {$row['error403path']} - {$row['error500path']} - {$lng['panel']['edit']} - {$lng['panel']['delete']} - + + {$row['path']} + {$row['options_indexes']} + {$row['error404path']} + {$row['error403path']} + {$row['error500path']} + {$lng['panel']['edit']} + {$lng['panel']['delete']} + diff --git a/templates/customer/extras/htpasswds.tpl b/templates/customer/extras/htpasswds.tpl index 0b80be8c..8c9c45af 100644 --- a/templates/customer/extras/htpasswds.tpl +++ b/templates/customer/extras/htpasswds.tpl @@ -1,28 +1,28 @@ -$header -
- - - - - - - - - - - - - $htpasswds - - - - - - - - -
 {$lng['menue']['extras']['directoryprotection']}{$searchcode}
{$lng['login']['username']}  {$arrowcode['username']}{$lng['panel']['path']}  {$arrowcode['path']}
{$pagingcode}
{$lng['extras']['directoryprotection_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + $htpasswds + + + + + + + + +
 {$lng['menue']['extras']['directoryprotection']}{$searchcode}
{$lng['login']['username']}  {$arrowcode['username']}{$lng['panel']['path']}  {$arrowcode['path']}
{$pagingcode}
{$lng['extras']['directoryprotection_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/htpasswds_add.tpl b/templates/customer/extras/htpasswds_add.tpl index fa72c646..79680143 100644 --- a/templates/customer/extras/htpasswds_add.tpl +++ b/templates/customer/extras/htpasswds_add.tpl @@ -1,32 +1,32 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - -
 {$lng['extras']['directoryprotection_add']}
- {$lng['panel']['path']}:
- {$lng['panel']['pathDescription']} -
{$pathSelect}
{$lng['login']['username']}:
{$lng['login']['password']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + +
 {$lng['extras']['directoryprotection_add']}
+ {$lng['panel']['path']}:
+ {$lng['panel']['pathDescription']} +
{$pathSelect}
{$lng['login']['username']}:
{$lng['login']['password']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/htpasswds_edit.tpl b/templates/customer/extras/htpasswds_edit.tpl index 6d6bfe69..799e7945 100644 --- a/templates/customer/extras/htpasswds_edit.tpl +++ b/templates/customer/extras/htpasswds_edit.tpl @@ -1,30 +1,30 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['panel']['path']}:{$result['path']}
{$lng['login']['username']}:{$result['username']}
{$lng['login']['password']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['panel']['path']}:{$result['path']}
{$lng['login']['username']}:{$result['username']}
{$lng['login']['password']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/extras/htpasswds_htpasswd.tpl b/templates/customer/extras/htpasswds_htpasswd.tpl index 215de358..38f5ec89 100644 --- a/templates/customer/extras/htpasswds_htpasswd.tpl +++ b/templates/customer/extras/htpasswds_htpasswd.tpl @@ -1,6 +1,6 @@ - - {$row['username']} - {$row['path']} - {$lng['menue']['main']['changepassword']} - {$lng['panel']['delete']} - + + {$row['username']} + {$row['path']} + {$lng['menue']['main']['changepassword']} + {$lng['panel']['delete']} + diff --git a/templates/customer/ftp/accounts.tpl b/templates/customer/ftp/accounts.tpl index 13047146..a4252614 100644 --- a/templates/customer/ftp/accounts.tpl +++ b/templates/customer/ftp/accounts.tpl @@ -1,36 +1,36 @@ -$header -
- - - - - - - - - - - - - - - - - - - $accounts - - - - - - - - - - -
 {$lng['menue']['ftp']['accounts']}{$searchcode}
{$lng['ftp']['account_add']}
{$lng['login']['username']}  {$arrowcode['username']}{$lng['panel']['path']}  {$arrowcode['homedir']}
{$pagingcode}
{$lng['ftp']['account_add']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + $accounts + + + + + + + + + + +
 {$lng['menue']['ftp']['accounts']}{$searchcode}
{$lng['ftp']['account_add']}
{$lng['login']['username']}  {$arrowcode['username']}{$lng['panel']['path']}  {$arrowcode['homedir']}
{$pagingcode}
{$lng['ftp']['account_add']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ftp/accounts_account.tpl b/templates/customer/ftp/accounts_account.tpl index 6f78174c..8f8f901d 100644 --- a/templates/customer/ftp/accounts_account.tpl +++ b/templates/customer/ftp/accounts_account.tpl @@ -1,6 +1,6 @@ - - {$row['username']} - {$row['documentroot']} - {$lng['menue']['main']['changepassword']} - {$lng['panel']['delete']} - + + {$row['username']} + {$row['documentroot']} + {$lng['menue']['main']['changepassword']} + {$lng['panel']['delete']} + diff --git a/templates/customer/ftp/accounts_add.tpl b/templates/customer/ftp/accounts_add.tpl index bcea32f4..ff83ce1e 100644 --- a/templates/customer/ftp/accounts_add.tpl +++ b/templates/customer/ftp/accounts_add.tpl @@ -1,35 +1,35 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ftp']['account_add']}
{$lng['login']['username']}:
{$lng['domains']['domainname']}:
{$lng['panel']['path']}:
{$lng['panel']['pathDescription']}
{$pathSelect}
{$lng['login']['password']}:
-
-
-
-$footer +$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ftp']['account_add']}
{$lng['login']['username']}:
{$lng['domains']['domainname']}:
{$lng['panel']['path']}:
{$lng['panel']['pathDescription']}
{$pathSelect}
{$lng['login']['password']}:
+
+
+
+$footer diff --git a/templates/customer/ftp/accounts_edit.tpl b/templates/customer/ftp/accounts_edit.tpl index 61729583..4f208462 100644 --- a/templates/customer/ftp/accounts_edit.tpl +++ b/templates/customer/ftp/accounts_edit.tpl @@ -1,26 +1,26 @@ -$header -
- - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['login']['username']}:{$result['username']}
{$lng['login']['password']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['login']['username']}:{$result['username']}
{$lng['login']['password']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ftp/ftp.tpl b/templates/customer/ftp/ftp.tpl index ff0bd0fc..bca14b22 100644 --- a/templates/customer/ftp/ftp.tpl +++ b/templates/customer/ftp/ftp.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['ftp']['ftp']}
{$lng['ftp']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['ftp']['ftp']}
{$lng['ftp']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/index/change_language.tpl b/templates/customer/index/change_language.tpl index 429686a1..ba24c291 100644 --- a/templates/customer/index/change_language.tpl +++ b/templates/customer/index/change_language.tpl @@ -1,23 +1,23 @@ -$header -
- - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changelanguage']}
{$lng['login']['language']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changelanguage']}
{$lng['login']['language']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/index/change_password.tpl b/templates/customer/index/change_password.tpl index 4313dd68..48db0c78 100644 --- a/templates/customer/index/change_password.tpl +++ b/templates/customer/index/change_password.tpl @@ -1,37 +1,37 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['changepassword']['old_password']}:
{$lng['changepassword']['new_password']}:
{$lng['changepassword']['new_password_confirm']}:
{$lng['changepassword']['also_change_ftp']}
{$lng['changepassword']['also_change_webalizer']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['changepassword']['old_password']}:
{$lng['changepassword']['new_password']}:
{$lng['changepassword']['new_password_confirm']}:
{$lng['changepassword']['also_change_ftp']}
{$lng['changepassword']['also_change_webalizer']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/index/index.tpl b/templates/customer/index/index.tpl index f5997ee0..f26aee63 100644 --- a/templates/customer/index/index.tpl +++ b/templates/customer/index/index.tpl @@ -1,99 +1,99 @@ -$header - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['index']['customerdetails']}
{$lng['customer']['name']}:{$userinfo['firstname']} {$userinfo['name']}
{$lng['customer']['company']}:{$userinfo['company']}
{$lng['customer']['street']}:{$userinfo['street']}
{$lng['customer']['zipcode']}/{$lng['customer']['city']}:{$userinfo['zipcode']} {$userinfo['city']}
{$lng['customer']['email']}:{$userinfo['email']}
{$lng['customer']['customernumber']}:{$userinfo['customernumber']}
 {$lng['index']['accountdetails']}
{$lng['login']['username']}:{$userinfo['loginname']}
{$lng['customer']['domains']}:$domains
{$lng['customer']['subdomains']}:{$userinfo['subdomains_used']} ({$userinfo['subdomains']})
{$lng['customer']['diskspace']}:{$userinfo['diskspace_used']} ({$userinfo['diskspace']})
{$lng['customer']['traffic']} ($month):{$userinfo['traffic_used']} ({$userinfo['traffic']})
{$lng['customer']['emails']}:{$userinfo['emails_used']} ({$userinfo['emails']})
{$lng['customer']['accounts']}:{$userinfo['email_accounts_used']} ({$userinfo['email_accounts']})
{$lng['customer']['forwarders']}:{$userinfo['email_forwarders_used']} ({$userinfo['email_forwarders']})
{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}):{$userinfo['email_quota_used']} ({$userinfo['email_quota']})
{$lng['customer']['mysqls']}:{$userinfo['mysqls_used']} ({$userinfo['mysqls']})
{$lng['customer']['ftps']}:{$userinfo['ftps_used']} ({$userinfo['ftps']})
{$lng['aps']['numberofapspackages']}:{$userinfo['aps_packages_used']} ({$userinfo['aps_packages']})
{$lng['customer']['tickets']}:{$userinfo['tickets_used']} ({$userinfo['tickets']})
{$awaitingtickets_text}
-
-
+$header + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['index']['customerdetails']}
{$lng['customer']['name']}:{$userinfo['firstname']} {$userinfo['name']}
{$lng['customer']['company']}:{$userinfo['company']}
{$lng['customer']['street']}:{$userinfo['street']}
{$lng['customer']['zipcode']}/{$lng['customer']['city']}:{$userinfo['zipcode']} {$userinfo['city']}
{$lng['customer']['email']}:{$userinfo['email']}
{$lng['customer']['customernumber']}:{$userinfo['customernumber']}
 {$lng['index']['accountdetails']}
{$lng['login']['username']}:{$userinfo['loginname']}
{$lng['customer']['domains']}:$domains
{$lng['customer']['subdomains']}:{$userinfo['subdomains_used']} ({$userinfo['subdomains']})
{$lng['customer']['diskspace']}:{$userinfo['diskspace_used']} ({$userinfo['diskspace']})
{$lng['customer']['traffic']} ($month):{$userinfo['traffic_used']} ({$userinfo['traffic']})
{$lng['customer']['emails']}:{$userinfo['emails_used']} ({$userinfo['emails']})
{$lng['customer']['accounts']}:{$userinfo['email_accounts_used']} ({$userinfo['email_accounts']})
{$lng['customer']['forwarders']}:{$userinfo['email_forwarders_used']} ({$userinfo['email_forwarders']})
{$lng['customer']['email_quota']} ({$lng['panel']['megabyte']}):{$userinfo['email_quota_used']} ({$userinfo['email_quota']})
{$lng['customer']['mysqls']}:{$userinfo['mysqls_used']} ({$userinfo['mysqls']})
{$lng['customer']['ftps']}:{$userinfo['ftps_used']} ({$userinfo['ftps']})
{$lng['aps']['numberofapspackages']}:{$userinfo['aps_packages_used']} ({$userinfo['aps_packages']})
{$lng['customer']['tickets']}:{$userinfo['tickets_used']} ({$userinfo['tickets']})
{$awaitingtickets_text}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/mysql/mysql.tpl b/templates/customer/mysql/mysql.tpl index 356eee9a..88102583 100644 --- a/templates/customer/mysql/mysql.tpl +++ b/templates/customer/mysql/mysql.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['mysql']['mysql']}
{$lng['mysql']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['mysql']['mysql']}
{$lng['mysql']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/mysql/mysqls.tpl b/templates/customer/mysql/mysqls.tpl index 68d08565..860ee961 100644 --- a/templates/customer/mysql/mysqls.tpl +++ b/templates/customer/mysql/mysqls.tpl @@ -1,36 +1,36 @@ -$header -
- - - - - - - - - - - - - - - - - - - $mysqls - - - - - - - - - - -
 {$lng['menue']['mysql']['databases']}{$searchcode}
{$lng['mysql']['database_create']}
{$lng['mysql']['databasename']}  {$arrowcode['databasename']}{$lng['mysql']['databasedescription']}  {$arrowcode['description']}{$lng['mysql']['mysql_server']}
{$pagingcode}
{$lng['mysql']['database_create']}
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + $mysqls + + + + + + + + + + +
 {$lng['menue']['mysql']['databases']}{$searchcode}
{$lng['mysql']['database_create']}
{$lng['mysql']['databasename']}  {$arrowcode['databasename']}{$lng['mysql']['databasedescription']}  {$arrowcode['description']}{$lng['mysql']['mysql_server']}
{$pagingcode}
{$lng['mysql']['database_create']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/mysql/mysqls_add.tpl b/templates/customer/mysql/mysqls_add.tpl index 61bd6328..16ef1610 100644 --- a/templates/customer/mysql/mysqls_add.tpl +++ b/templates/customer/mysql/mysqls_add.tpl @@ -1,31 +1,31 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['mysql']['database_create']}
{$lng['mysql']['databasedescription']}:
{$lng['mysql']['mysql_server']}:
{$lng['login']['password']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['mysql']['database_create']}
{$lng['mysql']['databasedescription']}:
{$lng['mysql']['mysql_server']}:
{$lng['login']['password']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/mysql/mysqls_database.tpl b/templates/customer/mysql/mysqls_database.tpl index 073e3d6e..f73b0cc1 100644 --- a/templates/customer/mysql/mysqls_database.tpl +++ b/templates/customer/mysql/mysqls_database.tpl @@ -1,7 +1,7 @@ - - {$row['databasename']} - {$row['description']} - {$sql_root[$row['dbserver']]['caption']} - {$lng['panel']['edit']} - {$lng['panel']['delete']} - + + {$row['databasename']} + {$row['description']} + {$sql_root[$row['dbserver']]['caption']} + {$lng['panel']['edit']} + {$lng['panel']['delete']} + diff --git a/templates/customer/mysql/mysqls_edit.tpl b/templates/customer/mysql/mysqls_edit.tpl index aab89d3a..78e44c32 100644 --- a/templates/customer/mysql/mysqls_edit.tpl +++ b/templates/customer/mysql/mysqls_edit.tpl @@ -1,36 +1,36 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['menue']['main']['changepassword']}
{$lng['mysql']['databasename']}:{$result['databasename']}
{$lng['mysql']['databasedescription']}:
{$lng['mysql']['mysql_server']}:{$sql_root[$result['dbserver']]['caption']}
{$lng['changepassword']['new_password_ifnotempty']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['menue']['main']['changepassword']}
{$lng['mysql']['databasename']}:{$result['databasename']}
{$lng['mysql']['databasedescription']}:
{$lng['mysql']['mysql_server']}:{$sql_root[$result['dbserver']]['caption']}
{$lng['changepassword']['new_password_ifnotempty']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ticket/ticket.tpl b/templates/customer/ticket/ticket.tpl index 976ebbb9..473fad44 100644 --- a/templates/customer/ticket/ticket.tpl +++ b/templates/customer/ticket/ticket.tpl @@ -1,12 +1,12 @@ -$header - - - - - - - -
 {$lng['menue']['ticket']['ticket']}
{$lng['ticket']['description']}
-
-
+$header + + + + + + + +
 {$lng['menue']['ticket']['ticket']}
{$lng['ticket']['description']}
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ticket/tickets.tpl b/templates/customer/ticket/tickets.tpl index 977805a3..e0ca2a7d 100644 --- a/templates/customer/ticket/tickets.tpl +++ b/templates/customer/ticket/tickets.tpl @@ -1,58 +1,58 @@ -$header -
- - - - - - - - - - - -
 {$lng['ticket']['supportstatus']} 
- - {$lng['ticket']['supportavailable']} - - - {$lng['ticket']['supportnotavailable']} - -
-
-
- - - - - - - - - - - - - - - - - - - - $tickets - - - - - - - - - - -
 {$lng['menue']['ticket']['ticket']}{$searchcode}
{$lng['ticket']['ticket_new']}
{$lng['ticket']['lastchange']}  {$arrowcode['lastchange']}{$lng['ticket']['ticket_answers']}  {$arrowcode['ticket_answers']}{$lng['ticket']['subject']}  {$arrowcode['subject']}{$lng['ticket']['status']}  {$arrowcode['status']}{$lng['ticket']['lastreplier']}  {$arrowcode['lastreplier']}{$lng['ticket']['priority']}  {$arrowcode['priority']}
{$pagingcode}
{$lng['ticket']['ticket_new']}
-
-
-
+$header +
+ + + + + + + + + + + +
 {$lng['ticket']['supportstatus']} 
+ + {$lng['ticket']['supportavailable']} + + + {$lng['ticket']['supportnotavailable']} + +
+
+
+ + + + + + + + + + + + + + + + + + + + $tickets + + + + + + + + + + +
 {$lng['menue']['ticket']['ticket']}{$searchcode}
{$lng['ticket']['ticket_new']}
{$lng['ticket']['lastchange']}  {$arrowcode['lastchange']}{$lng['ticket']['ticket_answers']}  {$arrowcode['ticket_answers']}{$lng['ticket']['subject']}  {$arrowcode['subject']}{$lng['ticket']['status']}  {$arrowcode['status']}{$lng['ticket']['lastreplier']}  {$arrowcode['lastreplier']}{$lng['ticket']['priority']}  {$arrowcode['priority']}
{$pagingcode}
{$lng['ticket']['ticket_new']}
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ticket/tickets_new.tpl b/templates/customer/ticket/tickets_new.tpl index 5282e425..83be09b3 100644 --- a/templates/customer/ticket/tickets_new.tpl +++ b/templates/customer/ticket/tickets_new.tpl @@ -1,35 +1,35 @@ -$header -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_new']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:
{$lng['ticket']['message']}:
-
-
-
+$header +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_new']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:
{$lng['ticket']['message']}:
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ticket/tickets_reply.tpl b/templates/customer/ticket/tickets_reply.tpl index f9e52cbd..7ccdf2c3 100644 --- a/templates/customer/ticket/tickets_reply.tpl +++ b/templates/customer/ticket/tickets_reply.tpl @@ -1,51 +1,51 @@ -$header -
- - - - - - $ticket_replies - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lng['ticket']['ticket_reply']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:{$row['name']}
{$lng['ticket']['message']}:
-
- - - - - - - - -
 {$lng['ticket']['ticket_reopen']}
{$lng['ticket']['ticket_reopen']}
-
-
-
-
+$header +
+ + + + + + $ticket_replies + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {$lng['ticket']['ticket_reply']}
{$lng['ticket']['subject']}:
{$lng['ticket']['priority']}:
{$lng['ticket']['category']}:{$row['name']}
{$lng['ticket']['message']}:
+
+ + + + + + + + +
 {$lng['ticket']['ticket_reopen']}
{$lng['ticket']['ticket_reopen']}
+
+
+
+
$footer \ No newline at end of file diff --git a/templates/customer/ticket/tickets_tickets.tpl b/templates/customer/ticket/tickets_tickets.tpl index 1a07cfe2..ff9cf7c4 100644 --- a/templates/customer/ticket/tickets_tickets.tpl +++ b/templates/customer/ticket/tickets_tickets.tpl @@ -1,22 +1,22 @@ - - {$row['lastchange']} - {$row['ticket_answers']} - {$row['subject']} - {$row['status']} - {$row['lastreplier']} - {$row['priority']} - - - {$lng['ticket']['show']} - {$lng['ticket']['answer']} - - - - - {$lng['ticket']['close']} - - - {$lng['ticket']['reopen']} - - - + + {$row['lastchange']} + {$row['ticket_answers']} + {$row['subject']} + {$row['status']} + {$row['lastreplier']} + {$row['priority']} + + + {$lng['ticket']['show']} + {$lng['ticket']['answer']} + + + + + {$lng['ticket']['close']} + + + {$lng['ticket']['reopen']} + + + diff --git a/templates/customer/ticket/tickets_tickets_list.tpl b/templates/customer/ticket/tickets_tickets_list.tpl index e8e1627f..31dec034 100644 --- a/templates/customer/ticket/tickets_tickets_list.tpl +++ b/templates/customer/ticket/tickets_tickets_list.tpl @@ -1,11 +1,11 @@ - - - - - - - - - - +
  {$lastchange} von {$by}
{$subject}
{$message}
+ + + + + + + + +
  {$lastchange} von {$by}
{$subject}
{$message}
\ No newline at end of file diff --git a/templates/customer/ticket/tickets_tickets_main.tpl b/templates/customer/ticket/tickets_tickets_main.tpl index 31be3f32..02b38fcf 100644 --- a/templates/customer/ticket/tickets_tickets_main.tpl +++ b/templates/customer/ticket/tickets_tickets_main.tpl @@ -1,11 +1,11 @@ - - - - - - - - - - +
  {$lastchange} von {$by} ({$status})
{$subject}
{$message}
+ + + + + + + + +
  {$lastchange} von {$by} ({$status})
{$subject}
{$message}
\ No newline at end of file diff --git a/templates/customer/traffic/traffic.tpl b/templates/customer/traffic/traffic.tpl index f3070aea..f113a153 100644 --- a/templates/customer/traffic/traffic.tpl +++ b/templates/customer/traffic/traffic.tpl @@ -1,30 +1,30 @@ -$header - - - - - - - - - - - - - $traffic -
 {$lng['menue']['traffic']['traffic']}
- - - - - - - - - - - -
{$lng['traffic']['sumftp']} GB{$lng['traffic']['sumhttp']} GB{$lng['traffic']['summail']} GB
{$traffic_complete['ftp']}
{$traffic_complete['http']}
{$traffic_complete['mail']}
-
{$lng['traffic']['month']}{$lng['traffic']['distribution']}{$lng['customer']['traffic']}
-$footer - +$header + + + + + + + + + + + + + $traffic +
 {$lng['menue']['traffic']['traffic']}
+ + + + + + + + + + + +
{$lng['traffic']['sumftp']} GB{$lng['traffic']['sumhttp']} GB{$lng['traffic']['summail']} GB
{$traffic_complete['ftp']}
{$traffic_complete['http']}
{$traffic_complete['mail']}
+
{$lng['traffic']['month']}{$lng['traffic']['distribution']}{$lng['customer']['traffic']}
+$footer + diff --git a/templates/customer/traffic/traffic_details.tpl b/templates/customer/traffic/traffic_details.tpl index 912d3f34..f3b1ba1c 100644 --- a/templates/customer/traffic/traffic_details.tpl +++ b/templates/customer/traffic/traffic_details.tpl @@ -1,30 +1,30 @@ -$header - - - - - - - - - - - - - $traffic -
 {$lng['menue']['traffic']['traffic']} $show
- - - - - - - - - - - -
{$lng['traffic']['sumftp']} MB{$lng['traffic']['sumhttp']} MB{$lng['traffic']['summail']} MB
{$traffic_complete['ftp']}
{$traffic_complete['http']}
{$traffic_complete['mail']}
-
{$lng['traffic']['day']}{$lng['traffic']['distribution']}{$lng['traffic']['mb']}
-$footer - +$header + + + + + + + + + + + + + $traffic +
 {$lng['menue']['traffic']['traffic']} $show
+ + + + + + + + + + + +
{$lng['traffic']['sumftp']} MB{$lng['traffic']['sumhttp']} MB{$lng['traffic']['summail']} MB
{$traffic_complete['ftp']}
{$traffic_complete['http']}
{$traffic_complete['mail']}
+
{$lng['traffic']['day']}{$lng['traffic']['distribution']}{$lng['traffic']['mb']}
+$footer + diff --git a/templates/customer/traffic/traffic_month.tpl b/templates/customer/traffic/traffic_month.tpl index 1b8086cc..7e732967 100644 --- a/templates/customer/traffic/traffic_month.tpl +++ b/templates/customer/traffic/traffic_month.tpl @@ -1,5 +1,5 @@ - - {$traf['day']}.   -

- {$traf['byte']} - + + {$traf['day']}.   +

+ {$traf['byte']} + diff --git a/templates/customer/traffic/traffic_traffic.tpl b/templates/customer/traffic/traffic_traffic.tpl index a02092b9..f354eb62 100644 --- a/templates/customer/traffic/traffic_traffic.tpl +++ b/templates/customer/traffic/traffic_traffic.tpl @@ -1,7 +1,7 @@ - - - {$traf['monthname']} - - {$traf['ftptext']}
{$traf['httptext']}
{$traf['mailtext']} - {$traf['byte']} - + + + {$traf['monthname']} + + {$traf['ftptext']}
{$traf['httptext']}
{$traf['mailtext']} + {$traf['byte']} + diff --git a/templates/footer.tpl b/templates/footer.tpl index 8bc815e4..449fafcd 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -1,21 +1,21 @@ - - - - - - - -
- - + + + + + + + +
+ + diff --git a/templates/formfields/bool.tpl b/templates/formfields/bool.tpl index a77415bd..83ca3de4 100644 --- a/templates/formfields/bool.tpl +++ b/templates/formfields/bool.tpl @@ -1,4 +1,4 @@ - - {$label} - checked="checked" /> - + + {$label} + checked="checked" /> + diff --git a/templates/formfields/hidden.tpl b/templates/formfields/hidden.tpl index 726c90a2..e7807e69 100644 --- a/templates/formfields/hidden.tpl +++ b/templates/formfields/hidden.tpl @@ -1,4 +1,4 @@ - - {$label} - {$fielddata['value']} - + + {$label} + {$fielddata['value']} + diff --git a/templates/formfields/label.tpl b/templates/formfields/label.tpl index 9c9e55a4..78f71e38 100644 --- a/templates/formfields/label.tpl +++ b/templates/formfields/label.tpl @@ -1,3 +1,3 @@ - - $label - + + $label + diff --git a/templates/formfields/option.tpl b/templates/formfields/option.tpl index 8e2ece24..bd9bd96e 100644 --- a/templates/formfields/option.tpl +++ b/templates/formfields/option.tpl @@ -1,4 +1,4 @@ - - valign="top">{$label} - - + + valign="top">{$label} + + diff --git a/templates/formfields/string.tpl b/templates/formfields/string.tpl index 43c169f3..e60f9c90 100644 --- a/templates/formfields/string.tpl +++ b/templates/formfields/string.tpl @@ -1,4 +1,4 @@ - - {$label} - - + + {$label} + + diff --git a/templates/formfields/text.tpl b/templates/formfields/text.tpl index c9bce8dd..9d69eb84 100644 --- a/templates/formfields/text.tpl +++ b/templates/formfields/text.tpl @@ -1,4 +1,4 @@ - - {$label} - - + + {$label} + + diff --git a/templates/header.tpl b/templates/header.tpl index 2b90221a..3c99bc29 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -1,39 +1,39 @@ - - - - - - - - - - <if isset($userinfo['loginname']) && $userinfo['loginname'] != ''>{$userinfo['loginname']} - </if>SysCP - - onload="document.loginform.loginname.focus()"> - - - - - - - -
 
- - - - - -
$navigation
  - - - -
-
+ + + + + + + + + + <if isset($userinfo['loginname']) && $userinfo['loginname'] != ''>{$userinfo['loginname']} - </if>SysCP + + onload="document.loginform.loginname.focus()"> + + + + + + + +
 
+ + + + + +
$navigation
  + + + +
+
diff --git a/templates/login/fpwd.tpl b/templates/login/fpwd.tpl index d77af197..29106f28 100644 --- a/templates/login/fpwd.tpl +++ b/templates/login/fpwd.tpl @@ -1,44 +1,44 @@ -$header -
-
- - - - - - - - - - -
  {$lng['error']['error']}/{$lng['error']['info']}
$message
-
-
-
- - - - - - - - - - - - - - - - - - - - -
 SysCP - {$lng['login']['presend']}
{$lng['login']['username']}:
{$lng['login']['email']}:
{$lng['login']['backtologin']}
-
-
-
-
-
+$header +
+
+ + + + + + + + + + +
  {$lng['error']['error']}/{$lng['error']['info']}
$message
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
 SysCP - {$lng['login']['presend']}
{$lng['login']['username']}:
{$lng['login']['email']}:
{$lng['login']['backtologin']}
+
+
+
+
+
$footer \ No newline at end of file diff --git a/templates/login/login.tpl b/templates/login/login.tpl index 35720741..6c4f2c85 100644 --- a/templates/login/login.tpl +++ b/templates/login/login.tpl @@ -1,47 +1,47 @@ -$header -
-
- - - - - - - - - -
  {$lng['error']['error']}/{$lng['error']['info']}
$message
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
 SysCP - Login
{$lng['login']['username']}:
{$lng['login']['password']}:
{$lng['login']['language']}:
{$lng['login']['forgotpwd']}
-
-
-
-
-$footer +$header +
+
+ + + + + + + + + +
  {$lng['error']['error']}/{$lng['error']['info']}
$message
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
 SysCP - Login
{$lng['login']['username']}:
{$lng['login']['password']}:
{$lng['login']['language']}:
{$lng['login']['forgotpwd']}
+
+
+
+
+$footer diff --git a/templates/misc/configurehint.tpl b/templates/misc/configurehint.tpl index df7f735f..acc6b7f5 100644 --- a/templates/misc/configurehint.tpl +++ b/templates/misc/configurehint.tpl @@ -1,68 +1,68 @@ - - - - - - - Attention: SysCP has not been confiured yet! - - - - - -
- -
- - - - - - + + + + + + + Attention: SysCP has not been confiured yet! + + + + + +
+ +
+ + + + + + diff --git a/templates/misc/error.tpl b/templates/misc/error.tpl index 7161096a..a8714263 100644 --- a/templates/misc/error.tpl +++ b/templates/misc/error.tpl @@ -1,13 +1,13 @@ -$header - - - - - - - - -
  {$lng['error']['error']}
$error
-
-
+$header + + + + + + + + +
  {$lng['error']['error']}
$error
+
+
$footer \ No newline at end of file diff --git a/templates/misc/question_yesno.tpl b/templates/misc/question_yesno.tpl index cd3ecd43..a02159fc 100644 --- a/templates/misc/question_yesno.tpl +++ b/templates/misc/question_yesno.tpl @@ -1,18 +1,18 @@ -$header -
- - - $hiddenparams - - - - - - - - -
  {$lng['question']['question']}
$text 
-
-
-
+$header +
+ + + $hiddenparams + + + + + + + + +
  {$lng['question']['question']}
$text 
+
+
+
$footer \ No newline at end of file diff --git a/templates/misc/success.tpl b/templates/misc/success.tpl index 16f770fe..42e22602 100644 --- a/templates/misc/success.tpl +++ b/templates/misc/success.tpl @@ -1,13 +1,13 @@ -$header - - - - - - - - -
  {$lng['success']['success']}
$success_message
{$lng['success']['clickheretocontinue']}
-
-
+$header + + + + + + + + +
  {$lng['success']['success']}
$success_message
{$lng['success']['clickheretocontinue']}
+
+
$footer \ No newline at end of file diff --git a/templates/navigation_element.tpl b/templates/navigation_element.tpl index 52371c7a..88221cf1 100644 --- a/templates/navigation_element.tpl +++ b/templates/navigation_element.tpl @@ -1,12 +1,12 @@ -
- - - - - - - - - - -
   $completeLink
$navigation_links
+
+ + + + + + + + + + +
   $completeLink
$navigation_links
diff --git a/templates/navigation_link.tpl b/templates/navigation_link.tpl index 9611d4f7..b6e95f50 100644 --- a/templates/navigation_link.tpl +++ b/templates/navigation_link.tpl @@ -1,2 +1,2 @@ -   {$completeLink} +   {$completeLink}
\ No newline at end of file