Lines Matching refs:INPUT

98         global $INPUT;
105 if (!$INPUT->server->str('REMOTE_USER') && !$this->getConf('allowguests')) {
108 print $this->renderComment($INPUT->post->str('comment'));
191 global $ID, $INFO, $lang, $INPUT;
200 if (in_array($INPUT->str('comment'), ['add', 'save'])) {
213 if ($INPUT->has('hash')) {
226 if ($data['subscribers'][$mail]['hash'] == $INPUT->str('hash')) {
248 $cid = $INPUT->str('cid');
249 switch ($INPUT->str('comment')) {
251 if (empty($INPUT->str('text'))) return; // don't add empty comments
253 if ($INPUT->server->has('REMOTE_USER') && !$this->getConf('adminimport')) {
254 $comment['user']['id'] = $INPUT->server->str('REMOTE_USER');
257 …} elseif (($INPUT->server->has('REMOTE_USER') && $this->getConf('adminimport') && $this->helper->i…
258 || !$INPUT->server->has('REMOTE_USER')) {
260 if (empty($INPUT->str('name')) or empty($INPUT->str('mail'))) {
264 if (!mail_isvalid($INPUT->str('mail'))) {
269 $comment['user']['name'] = hsc($INPUT->str('name'));
270 $comment['user']['mail'] = hsc($INPUT->str('mail'));
273 … $comment['user']['address'] = ($this->getConf('addressfield')) ? hsc($INPUT->str('address')) : '';
274 … $comment['user']['url'] = ($this->getConf('urlfield')) ? $this->checkURL($INPUT->str('url')) : '';
275 … $comment['subscribe'] = ($this->getConf('subscribe')) ? $INPUT->has('subscribe') : '';
276 $comment['date'] = ['created' => $INPUT->str('date')];
277 $comment['raw'] = cleanText($INPUT->str('text'));
278 $reply = $INPUT->str('reply');
288 $raw = cleanText($INPUT->str('text'));
309 global $INPUT;
312 $cid = $INPUT->str('cid');
315 $cid = $INPUT->str('reply');
318 switch ($INPUT->str('comment')) {
398 global $ID, $INFO, $INPUT;
405 if (!$INPUT->server->has('REMOTE_USER') && !$this->getConf('showguests')) return;
434 || $INPUT->server->has('REMOTE_USER')) {
524 global $ID, $TEXT, $INPUT;
536 && $comment['user']['id'] != $INPUT->server->str('REMOTE_USER')
645 global $ID, $INPUT;
682 … if ($user != $INPUT->server->str('REMOTE_USER') && !$this->helper->isDiscussionModerator()) {
815 global $conf, $lang, $HIGH, $INPUT;
912 && ($this->getConf('allowguests') || $INPUT->server->has('REMOTE_USER'))
919 …if (($user == $INPUT->server->str('REMOTE_USER') && $user != '') || $this->helper->isDiscussionMod…
1022 global $lang, $conf, $ID, $INPUT;
1025 if (!$INPUT->server->has('REMOTE_USER') && !$this->getConf('allowguests')) {
1035 if (!$raw && $INPUT->str('comment') == 'show') {
1036 $raw = $INPUT->str('text');
1054 …if (!$INPUT->server->has('REMOTE_USER') or ($this->getConf('adminimport') && $this->helper->isDisc…
1061 …class="edit<?php if ($INPUT->str('comment') == 'add' && empty($INPUT->str('name'))) echo ' error' …
1063 value="<?php echo hsc($INPUT->str('name')) ?>"/>
1070 …class="edit<?php if ($INPUT->str('comment') == 'add' && empty($INPUT->str('mail'))) echo ' error' …
1072 value="<?php echo hsc($INPUT->str('mail')) ?>"/>
1085 … tabindex="3" value="<?php echo hsc($INPUT->str('url')) ?>"/>
1098 … size="50" tabindex="4" value="<?php echo hsc($INPUT->str('address')) ?>"/>
1137 …class="edit<?php if ($INPUT->str('comment') == 'add' && empty($INPUT->str('text'))) echo ' error' …
1142 echo hsc($INPUT->str('text'));
1166 if ((!$INPUT->server->has('REMOTE_USER')
1167 || $INPUT->server->has('REMOTE_USER') && !$conf['subscribers'])
1235 global $conf, $INPUT;
1243 $remote = $INPUT->server->str('REMOTE_ADDR');
1244 $user = $INPUT->server->str('REMOTE_USER');
1345 global $conf, $ID, $INPUT, $auth;
1353 if (!$INPUT->server->has('REMOTE_USER')) {
1565 global $ID, $INFO, $INPUT;
1567 $ns = cleanID($INPUT->str('ns'));
1568 $title = str_replace(':', '', $INPUT->str('title'));
1609 global $conf, $INFO, $INPUT;
1612 $user = $INPUT->server->str('REMOTE_USER');
1652 global $INPUT;
1660 if ($INPUT->str('comment') == 'save') {
1661 $INPUT->set('comment', 'edit');
1662 } elseif ($INPUT->str('comment') == 'add') {
1663 $INPUT->set('comment', 'show');
1675 global $INPUT;
1681 if (!$recaptcha->getConf('forusers') && $INPUT->server->has('REMOTE_USER')) return;
1686 if ($INPUT->str('comment') == 'save') {
1687 $INPUT->str('comment', 'edit');
1688 } elseif ($INPUT->str('comment') == 'add') {
1689 $INPUT->str('comment', 'show');