Lines Matching +full:update +full:- +full:user +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

37     return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');
65 * Please note: when you pass uninitialized variables, they will implicitly be created
97 return preg_replace('/[\x00-\x1F]+/s', '', $string);
104 * @link http://en.wikipedia.org/wiki/Cross-site_request_forgery
105 * @link http://christ1an.blogspot.com/2007/04/preventing-csrf-efficiently.html
114 $user = $INPUT->server->str('REMOTE_USER');
117 // CSRF checks are only for logged in users - do not generate for anonymous
118 if (trim($user) == '' || trim($session) == '') return '';
119 return PassHash::hmac('md5', $session . $user, auth_cookiesalt());
132 if (!$INPUT->server->str('REMOTE_USER')) return true; // no logged in user, no need for a check
134 if (is_null($token)) $token = $INPUT->str('sectok');
136 msg('Security Token did not match. Possible CSRF attack.', -1);
178 if ($INPUT->server->has('REMOTE_USER')) {
181 $info['client'] = $INPUT->server->str('REMOTE_USER');
192 $info['userinfo']['name'] = $INPUT->server->str('REMOTE_USER');
233 $info['subscribed'] = $subManager->userSubscription();
270 $revinfo = $pagelog->getRevisionInfo($REV);
274 $revinfo = $pagelog->getRevisionInfo($info['lastmod']);
291 $info['user'] = $revinfo['user'];
296 $info['editor'] = $revinfo['user'] ?: $revinfo['ip'];
299 $info['user'] = null;
306 if ($draft->isDraftAvailable()) {
307 $info['draft'] = $draft->getDraftFilename();
350 * @param array $params array with key-value pairs
375 * @param array $params array with (attribute name-attribute value) pairs
456 * on Windows (non-IIS) systems and to have proper URL encoding
483 strpos($INPUT->server->str('SERVER_SOFTWARE'), 'Microsoft-IIS') === false
710 * and gain information about the user who was blocked.
713 * data['matches'] - array of matches
714 * data['userinfo'] - information about the blocked user
715 * [ip] - ip address
716 * [user] - username (if logged in)
717 * [mail] - mail address (if logged in)
718 * [name] - real name (if logged in)
720 * @param string $text - optional text to check, if not given the globals are used
721 * @return bool - true if a spam word was found
744 '!(\b)(www\.[\w.:?\-;,]+?\.[\w.:?\-;,]+?[\w/\#~:.?+=&%@\!\-.:?\-;,]+?)([.:?\-;,]*[^\w/\#~:.?+=&%@\!\-.:?\-;,])!i',
751 // read file in chunks of 200 - this should work around the
768 $data['userinfo']['ip'] = $INPUT->server->str('REMOTE_ADDR');
769 if ($INPUT->server->str('REMOTE_USER')) {
770 $data['userinfo']['user'] = $INPUT->server->str('REMOTE_USER');
786 * - The X-Real-IP header if $conf[realip] is true.
787 * - The X-Forwarded-For header if all the proxies are trusted by $conf[trustedproxies].
788 * - The TCP/IP connection remote address.
789 * - 0.0.0.0 if all else fails.
791 * The 'realip' config value should only be set to true if the X-Real-IP header
794 * The 'trustedproxies' setting must not allow any IP, otherwise the X-Forwarded-For
799 * @return string Returns an IP address if 'single' is true, or a comma-separated list
815 * @link http://www.brainhandles.com/2007/10/15/detecting-mobile-browsers/#code
817 * @deprecated 2018-04-27 you probably want media queries instead anyway
825 if ($INPUT->server->has('HTTP_X_WAP_PROFILE')) return true;
827 if (preg_match('/wap\.|\.wap/i', $INPUT->server->str('HTTP_ACCEPT'))) return true;
829 if (!$INPUT->server->has('HTTP_USER_AGENT')) return false;
836 'hand', 'mobi', 'phone', 'cdm', 'up\.b', 'audio', 'SIE\-', 'SEC\-', 'samsung', 'HTC', 'mot\-',
844 if (preg_match("/$uamatches/i", $INPUT->server->str('HTTP_USER_AGENT'))) return true;
857 if (preg_match('/^[a-zA-Z0-9\.]+>/u', $link)) return true;
911 if ((time() - filemtime($lock)) > $conf['locktime']) {
918 if ($ip == $INPUT->server->str('REMOTE_USER') || (session_id() && $session === session_id())) {
943 if ($INPUT->server->str('REMOTE_USER')) {
944 io_saveFile($lock, $INPUT->server->str('REMOTE_USER'));
951 * Unlock a page if it was locked by the user
966 if ($ip == $INPUT->server->str('REMOTE_USER') || $session == session_id()) {
977 * also makes sure the given text is valid UTF-8
989 // if the text is not valid UTF-8 we simply assume latin1
1066 if ($evt->advise_before(true)) {
1091 $evt->advise_after();
1140 '@USER@',
1159 $INPUT->server->str('REMOTE_USER'),
1180 * The range parameter needs to have the form "from-to"
1181 * and gives the range of the section in bytes - no
1182 * UTF-8 awareness is needed.
1185 * @param string $range in form "from-to"
1197 [$from, $to] = sexplode('-', $range, 2);
1198 // Make range zero-based, use defaults if marker is missing
1199 $from = $from ? $from - 1 : (0);
1200 $to = $to ? $to - 1 : (strlen($text));
1204 $slices[1] = substr($text, $from, $to - $from);
1253 * @deprecated 2021-11-28
1258 (new PageFile($id))->detectExternalEdit();
1267 * @param string $summary summary of text update
1268 * @param bool $minor mark this saved version as minor update
1277 $data = (new PageFile($id))->saveWikiText($text, $summary, $minor);
1290 $cache->removeCache();
1302 * @deprecated 2021-11-28
1307 return (new PageFile($id))->saveOldRevision();
1337 if ($conf['useacl'] && $INPUT->server->str('REMOTE_USER') && $minor) return false; //skip minors
1353 return $subscription->sendPageDiff($to, $tpl, $id, $rev, $summary, $current_rev);
1369 if (!$INPUT->server->has('HTTP_REFERER')) {
1372 $url = parse_url($INPUT->server->str('HTTP_REFERER'));
1395 $q = preg_split('/[\s\'"\\\\`()\]\[?:!\.{};,#+*<>\\/]+/', $q, -1, PREG_SPLIT_NO_EMPTY);
1416 while ($size >= 1024 && ($i < $count - 1)) {
1421 return round($size, $dec) . "\xC2\xA0" . $sizes[$i]; //non-breaking space
1436 $ago = time() - $dt;
1462 * strftime - %f can be used to get the value from datetime_h()
1494 $date_mod = date('Y-m-d\TH:i:s', $int_date);
1516 $obfuscate = ['@' => ' [at] ', '.' => ' [dot] ', '-' => ' [dash] '];
1547 * -1 (infinite size) will be reported as -1
1555 switch (strtoupper(substr($value, -1))) {
1557 $ret = (int)substr($value, 0, -1) * 1024 * 1024 * 1024;
1560 $ret = (int)substr($value, 0, -1) * 1024 * 1024;
1563 $ret = (int)substr($value, 0, -1) * 1024;
1600 $max -= PhpString::strlen($keep);
1606 PhpString::substr($short, 0, $half - 1) .
1608 PhpString::substr($short, $len - $half);
1612 * Return the users real name or e-mail address for use
1615 * @param string|null $username or null when currently logged-in user should be used
1617 * @return string html or plain text(not escaped) of formatted user name
1629 * @param string|null $username or null when currently logged-in user should be used
1631 * @return string html or plain text(not escaped) of formatted user name
1645 'username' => $username, // the unique user name
1658 'userlink' => '', // formatted user name as will be returned
1662 $data['username'] = $username = $INPUT->server->str('REMOTE_USER');
1664 $data['name'] = $INFO['userinfo']['name'] . ' (' . $INPUT->server->str('REMOTE_USER') . ')';
1667 '(<bdi>' . hsc($INPUT->server->str('REMOTE_USER')) . '</bdi>)';
1672 if ($evt->advise_before(true)) {
1675 $info = $auth->getUserData($username);
1699 $info = $auth->getUserData($username);
1708 if ($xhtml_renderer->interwiki === []) {
1709 $xhtml_renderer->interwiki = getInterwiki();
1711 $shortcut = 'user';
1713 $data['link']['url'] = $xhtml_renderer->_resolveInterWiki($shortcut, $username, $exists);
1739 $data['userlink'] = $xhtml_renderer->_formatLink($data['link']);
1742 $evt->advise_after();
1752 * @param string $type - type of image 'badge' or 'button'
1766 if (str_starts_with($conf['license'], 'cc-')) {
1792 if ($limit == -1) return true; // unlimited
1839 // check if running on IIS < 6 with CGI-PHP
1841 $INPUT->server->has('SERVER_SOFTWARE') && $INPUT->server->has('GATEWAY_INTERFACE') &&
1842 (strpos($INPUT->server->str('GATEWAY_INTERFACE'), 'CGI') !== false) &&
1843 (preg_match('|^Microsoft-IIS/(\d)\.\d$|', trim($INPUT->server->str('SERVER_SOFTWARE')), $matches)) &&
1853 // pass info about the redirect back to the test suite
1856 $testRequest->addData('send_redirect', $url);
1910 for ($i = $cnt - 2; $i >= 0; $i -= 2) {
2006 $content = preg_replace('/<!--.*?(-->)/s', '', $content); // comments