diff --git a/index.php b/index.php index 3b50f18f..61822773 100644 --- a/index.php +++ b/index.php @@ -119,7 +119,7 @@ if ($action == 'login') { redirectTo('index.php', array('showmessage' => '3')); exit; } elseif (validatePasswordLogin($userinfo, $password, $table, $uid)) { - // only show "you're banned" if the login was successfull + // only show "you're banned" if the login was successful // because we don't want to publish that the user does exist if ($userinfo['deactivated']) { unset($userinfo); diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 63593c9f..bc962166 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -1238,7 +1238,7 @@ class FroxlorInstall { // this is faster than calling count($tokens) every time through the loop. $token_count = count($tokens); for ($i = 0; $i < $token_count; $i++) { - // Don't wanna add an empty string as the last thing in the array. + // Don't want to add an empty string as the last thing in the array. if (($i != ($token_count - 1)) || (strlen($tokens[$i] > 0)) ) { diff --git a/lib/classes/bulk/class.DomainBulkAction.php b/lib/classes/bulk/class.DomainBulkAction.php index eb69917b..9523c5a9 100644 --- a/lib/classes/bulk/class.DomainBulkAction.php +++ b/lib/classes/bulk/class.DomainBulkAction.php @@ -301,7 +301,7 @@ class DomainBulkAction ), '', $domain_data['aliasdomain'])); // validate alias-domain if (! validateDomain($domain_data['aliasdomain'])) { - // invalid-domain lol - skip to be sure we dont add anything weird + // invalid-domain lol - skip to be sure we don't add anything weird return false; } // does the domain we want to be an alias of exists? @@ -409,12 +409,12 @@ class DomainBulkAction // write back iplist $iplist = implode(",", $result_iplist); - // dont need that for the domain-insert-statement + // don't need that for the domain-insert-statement unset($domain_data['ips']); // remember use_ssl value $use_ssl = (bool)$domain_data['use_ssl']; - // dont need that for the domain-insert-statement + // don't need that for the domain-insert-statement unset($domain_data['use_ssl']); // finally ADD the domain to panel_domains @@ -480,7 +480,7 @@ class DomainBulkAction $tmp_arr = explode($separator, $line); $data_arr = array(); foreach ($tmp_arr as $idx => $data) { - // dont include more fields that the ones we use + // don't include more fields than the ones we use if ($idx > (count($this->_required_fields) - 4)) // off-by-one + 3 auto-values break; $data_arr[$this->_required_fields[$idx]] = $data; diff --git a/lib/classes/idna/class.idna_convert.php b/lib/classes/idna/class.idna_convert.php index 793b0be9..a244b63f 100644 --- a/lib/classes/idna/class.idna_convert.php +++ b/lib/classes/idna/class.idna_convert.php @@ -43,7 +43,7 @@ * * Unicode input might be given as either UTF-8 string, UCS-4 string or UCS-4 array. * Unicode output is available in the same formats. - * You can select your preferred format via {@link set_paramter()}. + * You can select your preferred format via {@link set_parameter()}. * * ACE input and output is always expected to be ASCII. * @@ -79,7 +79,7 @@ class idna_convert { protected $_scount = 11172; // _lcount * _tcount * _vcount protected $_error = false; protected static $_mb_string_overload = null; - // See {@link set_paramter()} for details of how to change the following + // See {@link set_parameter()} for details of how to change the following // settings from within your script / application protected $_api_encoding = 'utf8'; // Default input charset is UTF-8 protected $_allow_overlong = false; // Overlong UTF-8 encodings are forbidden @@ -393,9 +393,9 @@ class idna_convert { } /** - * Use this method to get the last error ocurred + * Use this method to get the last error occurred * @param void - * @return string The last error, that occured + * @return string The last error, that occurred */ public function get_last_error() { @@ -421,7 +421,7 @@ class idna_convert { $this->_error('The given encoded string was empty'); return false; } - // Find last occurence of the delimiter + // Find last occurrence of the delimiter $delim_pos = strrpos($encoded, '-'); if ($delim_pos > self::byteLength($this->_punycode_prefix)) { for ($k = self::byteLength($this->_punycode_prefix); $k < $delim_pos; ++$k) { @@ -622,7 +622,7 @@ class idna_convert { // Mapping // Walking through the input array, performing the required steps on each of // the input chars and putting the result into the output array - // While mapping required chars we apply the cannonical ordering + // While mapping required chars we apply the canonical ordering foreach ($input as $v) { // Map to nothing == skip that code point if (in_array($v, self::$NP['map_nothing'])) { @@ -646,11 +646,11 @@ class idna_convert { $output[] = (int) $out; } } elseif (($this->_idn_version == '2003') && isset(self::$NP['replacemaps_2003'][$v])) { - foreach ($this->_apply_cannonical_ordering(self::$NP['replacemaps_2003'][$v]) as $out) { + foreach ($this->_apply_canonical_ordering(self::$NP['replacemaps_2003'][$v]) as $out) { $output[] = (int) $out; } } elseif (($this->_idn_version == '2008') && isset(self::$NP['replacemaps'][$v])) { - foreach ($this->_apply_cannonical_ordering(self::$NP['replacemaps'][$v]) as $out) { + foreach ($this->_apply_canonical_ordering(self::$NP['replacemaps'][$v]) as $out) { $output[] = (int) $out; } } else { @@ -773,11 +773,11 @@ class idna_convert { } /** - * Applies the cannonical ordering of a decomposed UCS4 sequence + * Applies the canonical ordering of a decomposed UCS4 sequence * @param array Decomposed UCS4 sequence * @return array Ordered USC4 sequence */ - protected function _apply_cannonical_ordering($input) + protected function _apply_canonical_ordering($input) { $swap = true; $size = count($input); diff --git a/lib/classes/webserver/class.ConfigIO.php b/lib/classes/webserver/class.ConfigIO.php index 9de1df92..cbe79b10 100644 --- a/lib/classes/webserver/class.ConfigIO.php +++ b/lib/classes/webserver/class.ConfigIO.php @@ -178,7 +178,7 @@ class ConfigIO { $awstatsclean['path'] = $this->_getFile('system', 'awstats_conf'); /** - * dont do anyting if the directory not exists + * don't do anything if the directory does not exist * (e.g. awstats not installed yet or whatever) * fixes #45 */ @@ -187,7 +187,7 @@ class ConfigIO { while ($awstatsclean['entry'] = $awstatsclean['dir']->read()) { $awstatsclean['fullentry'] = makeCorrectFile($awstatsclean['path'].'/'.$awstatsclean['entry']); /** - * dont do anything if the file does not exist + * don't do anything if the file does not exist */ if (@file_exists($awstatsclean['fullentry'])) { $awstatsclean['fh'] = fopen($awstatsclean['fullentry'], 'r'); diff --git a/lib/configfiles/jessie.xml b/lib/configfiles/jessie.xml index c782ea5b..3ca5a1cf 100644 --- a/lib/configfiles/jessie.xml +++ b/lib/configfiles/jessie.xml @@ -3789,7 +3789,7 @@ MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_cus # If you're using a transactionnal storage engine, you can enable SQL # transactions to avoid races. Leave this commented if you are using the -# traditionnal MyIsam engine. +# traditional MyIsam engine. # MySQLTransactions On ]]> @@ -4022,7 +4022,7 @@ aliases: files {{settings.system.webserver}} - + diff --git a/lib/configfiles/precise.xml b/lib/configfiles/precise.xml index bd30c303..243d61d0 100644 --- a/lib/configfiles/precise.xml +++ b/lib/configfiles/precise.xml @@ -1579,7 +1579,7 @@ aliases: files {{settings.system.webserver}} - + diff --git a/lib/configfiles/trusty.xml b/lib/configfiles/trusty.xml index 2d6f10af..a698ac15 100644 --- a/lib/configfiles/trusty.xml +++ b/lib/configfiles/trusty.xml @@ -1573,7 +1573,7 @@ aliases: files {{settings.system.webserver}} - + diff --git a/lib/configfiles/wheezy.xml b/lib/configfiles/wheezy.xml index 4fbb48b9..a549e5de 100644 --- a/lib/configfiles/wheezy.xml +++ b/lib/configfiles/wheezy.xml @@ -4860,7 +4860,7 @@ MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_cus # If you're using a transactionnal storage engine, you can enable SQL # transactions to avoid races. Leave this commented if you are using the -# traditionnal MyIsam engine. +# traditional MyIsam engine. # MySQLTransactions On ]]> @@ -5089,7 +5089,7 @@ aliases: files {{settings.system.webserver}} - + diff --git a/lib/cron_init.php b/lib/cron_init.php index 1220e25b..eb90ea7c 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -201,10 +201,10 @@ if (Settings::Get('panel.version') == null */ $cronlog->logAction(CRON_ACTION, LOG_WARNING, 'Automatic update is activated and we are going to proceed without any notices'); $cronlog->logAction(CRON_ACTION, LOG_WARNING, 'all new settings etc. will be stored with the default value, that might not always be right for your system!'); - $cronlog->logAction(CRON_ACTION, LOG_WARNING, 'If you dont want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob'); + $cronlog->logAction(CRON_ACTION, LOG_WARNING, "If you don't want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob"); fwrite($debugHandler, '*** WARNING *** - Automatic update is activated and we are going to proceed without any notices' . "\n"); fwrite($debugHandler, '*** WARNING *** - all new settings etc. will be stored with the default value, that might not always be right for your system!' . "\n"); - fwrite($debugHandler, '*** WARNING *** - If you dont want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob' . "\n"); + fwrite($debugHandler, "*** WARNING *** - If you don't want this to happen in the future consider removing the --allow-autoupdate flag from the cronjob\n"); // including update procedures include_once FROXLOR_INSTALL_DIR.'/install/updatesql.php'; // pew - everything went better than expected