|
@@ 965-970 (lines=6) @@
|
| 962 |
|
if (!$this->m_style->isValid() || !$this->m_action->isValid()) |
| 963 |
|
return false; |
| 964 |
|
} |
| 965 |
|
if (isset($this->m_expireTime)) { |
| 966 |
|
if (!is_int($this->m_expireTime) || $this->m_expireTime > 3 * 24 * 60 * 60) |
| 967 |
|
return false; |
| 968 |
|
} else { |
| 969 |
|
$this->m_expireTime = 0; |
| 970 |
|
} |
| 971 |
|
|
| 972 |
|
if (isset($this->m_sendTime)) { |
| 973 |
|
if (strtotime($this->m_sendTime) === false) return false; |
|
@@ 1166-1171 (lines=6) @@
|
| 1163 |
|
|
| 1164 |
|
public function isValid() |
| 1165 |
|
{ |
| 1166 |
|
if (isset($this->m_expireTime)) { |
| 1167 |
|
if (!is_int($this->m_expireTime) || $this->m_expireTime > 3 * 24 * 60 * 60) |
| 1168 |
|
return false; |
| 1169 |
|
} else { |
| 1170 |
|
$this->m_expireTime = 0; |
| 1171 |
|
} |
| 1172 |
|
|
| 1173 |
|
if (isset($this->m_sendTime)) { |
| 1174 |
|
if (strtotime($this->m_sendTime) === false) return false; |