Home
last modified time | relevance | path

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

/plugin/pgn4web/pgn4web/
H A Dencoder-example.php22 if ($pgnText) {
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
33 $pgnText = preg_replace("/\n[\s*\n]+/", "\n\n", $pgnText); variable
35 $pgnText = <<<END variable
[all …]
H A Dviewer.php68 if ($pgnText) { print $pgnText; }
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);
158 $pgnText = preg_replace("/\]\s*\[/", "]\n[", $pgnText);
159 $pgnText = preg_replace("/^\s*\[/", "[", $pgnText);
160 $pgnText = preg_replace("/\n[\s*\n]+/", "\n\n", $pgnText);
263 if (!$pgnText) {
[all …]
H A 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 );
H A 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 );
H A 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;
H A DREADME.txt93 within a hidden FORM/TEXTAREA statement with the ID pgnText:
96 <form style="display: none;"><textarea style="display: none;" id="pgnText">