Home
last modified time | relevance | path

Searched refs:text (Results 1 - 25 of 52) sorted by path

123

/dokuwiki/inc/Action/
H A DConflict.php35 $text = con($PRE, $TEXT, $SUF); variable
36 (new Ui\PageConflict($text, $SUM))->show();
H A DResendpwd.php163 $text = rawLocale('pwconfirm'); variable
173 $mail->setBody($text, $trep);
H A DRevert.php41 $text = ''; variable
44 $text = rawWiki($ID, $REV); variable
45 if (!$text) throw new ActionException(); //something went wrong
50 if (checkwordblock($text)) {
55 saveWikiText($ID, $text, $sum, false);
/dokuwiki/inc/
H A DDifferenceEngine.php1075 * NOTE: output is plain text and unsafe for use in HTML without escaping.
1129 function _pre($text){
1130 $text = htmlspecialchars($text); variable
1131 return $text;
1243 function _pre($text){
1244 $text = htmlspecialchars($text); variable
1245 return $text;
1336 * @return array lines of the merged text
[all...]
H A DMailer.class.php27 protected $text = ''; variable
35 protected $replacements = array('text'=> array(), 'html' => array());
181 * Set the text and HTML body and apply replacements
189 * @param string $text plain text body
190 * @param array $textrep replacements to apply on the text part
192 * @param string $html the HTML body, leave null to create it from $text
195 public function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true) {
200 // create HTML from text if not given
202 $html = $text;
240 $text = str_replace('@'.strtoupper($key).'@', $substitution, $text); global() variable
271 $this->text = $text; global() variable
379 $text = trim($matches[1]); global() variable
382 $text = ''; global() variable
407 $text = \\dokuwiki\\Utf8\\Clean::deaccent($text); global() variable
408 $text = \\dokuwiki\\Utf8\\Clean::strip($text); global() variable
412 $text = '=?UTF-8?B?'.base64_encode($text).'?='; global() variable
415 $text = ''; global() variable
[all...]
H A DPassHash.php20 * then the clear text password is crypted using the same method. If both hashs
177 * @param string $clear The clear text to hash
199 * @param string $clear The clear text to hash
218 * @param string $clear The clear text to hash
227 $text = $clear.'$'.$magic.'$'.$salt; variable
230 $text .= substr($bin, 0, min(16, $i));
233 $text .= ($i & 1) ? chr(0) : $clear[0];
235 $bin = pack("H32", md5($text));
264 * @param string $clear The clear text to hash
276 * @param string $clear The clear text t
[all...]
H A Dauth.php828 * @param string $password The new password in clear text
842 $text = rawLocale('password'); variable
852 $mail->setBody($text, $trep);
1175 $text = rawLocale('pwconfirm'); variable
1185 $mail->setBody($text, $trep);
1204 * @param string $clear The clear text password
1229 * @param string $clear The clear text password
H A Dcommon.php63 * @param string $string line of text
681 * returns true if the text contains any bad words
699 * @param string $text - optional text to check, if not given the globals are used
702 function checkwordblock($text = '') {
714 if(!$text) $text = "$PRE $TEXT $SUF $SUM";
716 // we prepare the text a tiny bit to prevent spammers circumventing URL checks
718 $text = preg_replace( variable
721 $text
1013 $text = preg_replace("/(\\015\\012)|(\\015)/", "\\012", $text); global() variable
1035 $text = str_replace("\\012", "\\015\\012", $text); global() variable
1215 $text = io_readWikiPage(wikiFN($id, $rev), $id, $rev); global() variable
2102 $text = preg_replace('/^(\\/\\/|\\/\\*)[@#]\\s+sourceMappingURL=.*?(\\*\\/)?$/im', '\\\\1\\\\2', $text); global() variable
[all...]
H A Dcompatibility.php13 * @param string $text
16 function ctype_space($text) {
17 if(!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCII chars
18 if(trim($text) === '') return true;
28 * @param string $text
31 function ctype_digit($text) {
32 if(!is_string($text)) return false; #FIXME original treats between -128 and 255 inclusive as ASCII chars
33 if(preg_match('/^\d+$/', $text)) return true;
H A Dform.php389 * Create a form element for a textarea containing wiki text.
391 * a name of 'wikitext' and id 'wiki__text'. The text will
394 * @param string $text Text to fill the field with.
400 function form_makeWikiText($text, $attrs=array()) {
401 $elem = array('_elem'=>'wikitext', '_text'=>$text,
435 * The label text will be printed before the input.
461 * The label text will be printed after the input.
486 * Create a form element for a text input element with label.
610 * The list of values can be strings, arrays of (value,text),
619 * @param string[]|array[] $values The list of values can be strings, arrays of (value,text),
645 $text = null; global() variable
696 $text = null; global() variable
1065 $text = $value; global() variable
[all...]
H A Dfulltext.php99 'text' => rawWiki($id)
103 $text = \dokuwiki\Utf8\PhpString::strtolower($evdata['text']); variable
104 if (strpos($text, $phrase) !== false) {
416 $text = rawWiki($id); variable
417 $text = str_replace("\xC2\xAD",'',$text); // remove soft-hyphens variable
420 'text' => &$text,
430 $len = \dokuwiki\Utf8\PhpString::strlen($text);
[all...]
H A Dhtml.php24 * @param string $name the name of the link, i.e. the text that is displayed
68 * @param string $text
72 function html_secedit($text, $show = true) {
76 return preg_replace(SEC_EDIT_PATTERN,'',$text);
80 'html_secedit_button', $text);
167 * @param bool|string $label label text, false: lookup btn_$name in localization
232 * @param null|string $txt wiki text or null for showing $ID
502 * between current page version and provided $text
506 * @param string $text when non-empty: compare with this text wit
[all...]
H A Dhttputils.php288 * @param string $text
290 function http_status($code = 200, $text = '') {
333 if($text == '' && isset($stati[$code])) {
334 $text = $stati[$code]; variable
340 header("Status: {$code} {$text}", true);
342 header($server_protocol." {$code} {$text}", true, $code);
344 header("HTTP/1.1 {$code} {$text}", true, $code);
/dokuwiki/inc/Extension/
H A DPluginInterface.php78 * @return string wiki text
144 * output text string through the parser, allows dokuwiki markup to be used
147 * @param string $text wiki markup to parse
151 public function render_text($text, $format = 'xhtml');
H A DPluginTrait.php250 public function render_text($text, $format = 'xhtml')
252 return p_render($format, p_get_instructions($text), $info);
/dokuwiki/inc/Form/
H A DTextareaElement.php12 * @var string the actual text within the area
14 protected $text; variable
18 * @param string $label The label text for this element
37 $this->text = cleanText($value); variable
40 return $this->text;
/dokuwiki/inc/Parsing/Handler/
H A DPreformatted.php9 protected $text =''; variable
31 $this->text .= "\n";
34 $this->text .= $call[1][0];
37 if (trim($this->text)) {
38 $this->callWriter->writeCall(array('preformatted', array($this->text), $this->pos));
/dokuwiki/inc/Remote/
H A DApiCore.php80 'doc' => 'Append text to a wiki page.'
88 'doc' => 'Get the raw Wiki text of page, latest version.',
210 * @return string page text.
219 $text = rawWiki($id, $rev); variable
220 if (!$text) {
223 return $text;
507 * @param string $text wiki text
513 public function putPage($id, $text, $params = array())
519 $TEXT = cleanText($text);
[all...]
/dokuwiki/inc/Search/
H A DIndexer.php21 * The added text replaces previous words for the same page.
25 * @param string $text the body of the page
31 public function addPageWords($page, $text) {
44 $words = $this->getPageWords($text);
100 * @param string $text content of the page
107 protected function getPageWords($text) {
109 $tokens = $this->tokenizer($text);
473 * Split the text into words for fulltext search
478 * This event allows plugins to modify the text before it gets tokenized.
481 * @param string $text plai
496 $text = \\dokuwiki\\Utf8\\Asian::separateAsianWords($text); global() variable
502 $text = strtr($text, global() variable
511 $text = \\dokuwiki\\Utf8\\Clean::stripspecials($text, ' ', '\\._\\-:'.$wc); global() variable
[all...]
/dokuwiki/inc/Subscriptions/
H A DSubscriptionSender.php53 * template (in text format)
67 $text = rawLocale($template); variable
72 $mail->setBody($text, $trep, $hrep);
/dokuwiki/inc/Ui/
H A DDiff.php17 protected $text; variable
24 * @param string $text when non-empty: compare with this text with most current version
25 * @param bool $showIntro display the intro text
28 public function __construct($text = '', $showIntro = true, $difftype = null)
30 $this->text = $text; variable
49 * between current page version and provided $text
92 if ($this->text) { // compare text t
[all...]
H A DPageConflict.php14 protected $text; variable
20 * @param string $text wiki text
23 public function __construct($text = '', $summary = '')
25 $this->text = $text; variable
48 $form->setHiddenField('wikitext', $this->text);
59 (new Diff($this->text, false))->show();
H A DPageDraft.php29 $text = $draft->getDraftText(); variable
34 (new Diff($text, false))->show();
41 $form->setHiddenField('wikitext', $text);
H A DPageView.php14 protected $text; variable
19 * @param null|string $text wiki text or null for showing $ID
21 public function __construct($text = null)
23 $this->text = $text; variable
43 if ($this->text !== null || $REV) {
49 if ($this->text !== null) {
56 $html = html_secedit(p_render('xhtml', p_get_instructions($this->text), $info), $secedit);
/dokuwiki/inc/Utf8/
H A DAsian.php72 * Surround all Asian words in the given text with the given separator
74 * @param string $text Original text containing asian words
78 public static function separateAsianWords($text, $sep = ' ')
81 $asia = @preg_replace('/(' . self::REGEXP . ')/u', $sep . '\1' . $sep, $text);
82 if (!is_null($asia)) $text = $asia; // recover from regexp falure
84 return $text;
88 * Split the given text into separate parts

Completed in 18 milliseconds

123