mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Privacy/GDPR friendly version (removed: Social, Gravatar, Facebook, Google, Twitter, DropBox, OwnCloud)
Also removed: POP3, OAuth2 and update feature Added: admin password_hash/password_verify Requires: PHP 7.3+ Replaced: CRLF with LF Replaced: pclZip with ZipArchive
This commit is contained in:
parent
15ceddc202
commit
2cada68f41
293 changed files with 23728 additions and 85420 deletions
|
|
@ -1,40 +1,40 @@
|
|||
<?php
|
||||
|
||||
if (!function_exists('ctype_digit'))
|
||||
{
|
||||
function ctype_digit($text)
|
||||
{
|
||||
if (is_string($text))
|
||||
{
|
||||
if ('' === $text)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!preg_match('/^[\d]+$/', $text);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ctype_space'))
|
||||
{
|
||||
function ctype_space($text)
|
||||
{
|
||||
if ('' === $text)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!preg_match('/^[\s]+$/m', $text);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ctype_alnum'))
|
||||
{
|
||||
function ctype_alnum($sVar)
|
||||
{
|
||||
return !!preg_match('/^[a-zA-Z0-9]+$/', $sVar);
|
||||
}
|
||||
<?php
|
||||
|
||||
if (!function_exists('ctype_digit'))
|
||||
{
|
||||
function ctype_digit($text)
|
||||
{
|
||||
if (is_string($text))
|
||||
{
|
||||
if ('' === $text)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!preg_match('/^[\d]+$/', $text);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ctype_space'))
|
||||
{
|
||||
function ctype_space($text)
|
||||
{
|
||||
if ('' === $text)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return !!preg_match('/^[\s]+$/m', $text);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ctype_alnum'))
|
||||
{
|
||||
function ctype_alnum($sVar)
|
||||
{
|
||||
return !!preg_match('/^[a-zA-Z0-9]+$/', $sVar);
|
||||
}
|
||||
}
|
||||
|
|
@ -659,7 +659,7 @@ class lessc {
|
|||
if ($suffix !== null &&
|
||||
$subProp[0] == "assign" &&
|
||||
is_string($subProp[1]) &&
|
||||
$subProp[1]{0} != $this->vPrefix)
|
||||
$subProp[1][0] != $this->vPrefix)
|
||||
{
|
||||
$subProp[2] = array(
|
||||
'list', ' ',
|
||||
|
|
@ -1626,7 +1626,7 @@ class lessc {
|
|||
$this->pushEnv();
|
||||
$parser = new lessc_parser($this, __METHOD__);
|
||||
foreach ($args as $name => $strValue) {
|
||||
if ($name{0} != '@') $name = '@'.$name;
|
||||
if ($name[0] != '@') $name = '@'.$name;
|
||||
$parser->count = 0;
|
||||
$parser->buffer = (string)$strValue;
|
||||
if (!$parser->propertyValue($value)) {
|
||||
|
|
@ -2284,7 +2284,7 @@ class lessc_parser {
|
|||
$hidden = true;
|
||||
if (!isset($block->args)) {
|
||||
foreach ($block->tags as $tag) {
|
||||
if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
|
||||
if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
|
||||
$hidden = false;
|
||||
break;
|
||||
}
|
||||
|
|
@ -2338,7 +2338,7 @@ class lessc_parser {
|
|||
protected function fixTags($tags) {
|
||||
// move @ tags out of variable namespace
|
||||
foreach ($tags as &$tag) {
|
||||
if ($tag{0} == $this->lessc->vPrefix)
|
||||
if ($tag[0] == $this->lessc->vPrefix)
|
||||
$tag[0] = $this->lessc->mPrefix;
|
||||
}
|
||||
return $tags;
|
||||
|
|
@ -3068,7 +3068,7 @@ class lessc_parser {
|
|||
protected function end() {
|
||||
if ($this->literal(';')) {
|
||||
return true;
|
||||
} elseif ($this->count == strlen($this->buffer) || $this->buffer{$this->count} == '}') {
|
||||
} elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
|
||||
// if there is end of file or a closing block next then we don't need a ;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue