Home
last modified time | relevance | path

Searched refs:pgnText (Results 1 – 6 of 6) sorted by relevance

/plugin/pgn4web/pgn4web/
Dencoder-example.php20 $pgnText = get_param("pgnText", "pt", ""); variable
22 if ($pgnText) {
23 $pgnText = str_replace(array("&", "<", ">"), array("&amp;", "&lt;", "&gt;"), $pgnText); variable
24 $pgnTextBox = $pgnText;
26 $pgnText = str_replace("\\\"", "\"", $pgnText); variable
28 $pgnText = preg_replace("/\[/", "\n\n[", $pgnText); variable
29 $pgnText = preg_replace("/\]/", "]\n\n", $pgnText); variable
30 $pgnText = preg_replace("/([012\*])(\s*)(\[)/", "$1\n\n$3", $pgnText); variable
31 $pgnText = preg_replace("/\]\s*\[/", "]\n[", $pgnText); variable
32 $pgnText = preg_replace("/^\s*\[/", "[", $pgnText); variable
[all …]
Dviewer.php68 if ($pgnText) { print $pgnText; }
82 $pgnText = str_replace(array("&", "<", ">"), array("&amp;", "&lt;", "&gt;"), $pgnText); variable
84 …$pgnText = preg_match("/^error:/", $pgnStatus) ? '[Event ""] [Site ""] [Date ""] [Round ""] [White… variable
140 …global $pgnText, $pgnTextbox, $pgnUrl, $pgnFileName, $pgnFileSize, $pgnStatus, $forceEncodingFrom,…
146 $pgnText = get_param("pgnText", "pt", "");
151 if ($pgnText) {
153 $pgnTextbox = $pgnText = str_replace("\\\"", "\"", $pgnText);
155 $pgnText = preg_replace("/\[/", "\n\n[", $pgnText);
156 $pgnText = preg_replace("/\]/", "]\n\n", $pgnText);
157 $pgnText = preg_replace("/([012\*])(\s*)(\[)/", "$1\n\n$3", $pgnText);
[all …]
Dgotd.php24 $pgnText = file_get_contents($pgnUrl, NULL, NULL, 0, $fileLimitBytes + 1);
25 if (!$pgnText) { return "[Event \"error: failed to get pgnData=$pgnUrl\"]\n"; }
26 $pgnText = str_replace(array("&", "<", ">"), array("&amp;", "&lt;", "&gt;"), $pgnText);
27 return $pgnText;
30 $pgnText = get_pgnText($pgnData); variable
32 $numGames = preg_match_all("/(\s*\[\s*(\w+)\s*\"([^\"]*)\"\s*\]\s*)+[^\[]*/", $pgnText, $games );
Dpuzzler.php51 $pgnText = file_get_contents($pgnUrl, NULL, NULL, 0, $fileLimitBytes + 1);
52 if (!$pgnText) { return "[Event \"error: failed to get pgnData content\"]\n"; }
53 $pgnText = str_replace(array("&", "<", ">"), array("&amp;", "&lt;", "&gt;"), $pgnText);
54 return $pgnText;
57 $pgnText = get_pgnText($pgnData); variable
62 $pgnText = preg_replace("/{[^}]*}/", "", $pgnText); variable
63 $pgnText = preg_replace("/;[^\n$]*/", "", $pgnText); variable
64 $pgnText = preg_replace("/(\n|^)%[^\n$]*/", "", $pgnText); variable
66 $numGames = preg_match_all("/(\s*\[\s*(\w+)\s*\"([^\"]*)\"\s*\]\s*)+[^\[]*/", $pgnText, $games );
Dpgn4web.js1594 function pgnGameFromPgnText(pgnText) { argument
1598 pgnText = simpleHtmlentities(fixCommonPgnMistakes(pgnText));
1601 pgnText = pgnText.replace(/(^|\n)%.*(\n|$)/g, "\n");
1605 while (headMatch = pgnHeaderBlockRegExp.exec(pgnText)) {
1607 startNew = pgnText.indexOf(newHead);
1610 checkedGame += pgnText.slice(0, startNew);
1623 pgnText = pgnText.slice(afterNew);
1627 checkedGame += pgnText;
DREADME.txt93 within a hidden FORM/TEXTAREA statement with the ID pgnText:
96 <form style="display: none;"><textarea style="display: none;" id="pgnText">