</div> <div class="large-4 columns"> <a target="_blank" href="https://github.com/techwolf12"><i class="fa fa-github fa-lg"></i> Techwolf12</a> </div> </div> </div> <footer class="row"> <div class="large-12 columns"> <hr/> <div class="row"> <div class="large-6 columns"> <p><a class="f-green" target="_blank" href="https://en.wikipedia.org/wiki/Copyleft"><i class="fa fa-copyright fa-flip-horizontal"></a></i> Christiaan de Die le Clercq.</p> </div> <div class="large-6 columns text-right"> <p><a href="https://github.com/techwolf12/portfolio">(<?php strings('viewsource'); ?> )</a></p> </div> </div> </div> </footer> <script> document.write('<script src=' + ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') + '.js><\/script>') </script> <script src="js/jquery.js"></script> <script src="js/matchHeight.js"></script> <script src="js/foundation.min.js"></script> <script src="js/foundation/foundation.js"></script>
<meta charset="utf-8"> <title>Строки</title> </head> <body> <h1>1</h1> <?php $array = array('первая строка', 'вторая строка', 'третья строка', 'четвертая строка', 'пятая строка'); function strings($arr) { $count = count($arr); for ($i = 0; $i < $count; $i++) { $str = $arr[$i]; echo "<p>{$str}</p>"; } } strings($array); ?> <h1>2</h1> <?php function doit($arr, $action) { if ($action == "*") { $prod = 1; for ($p = 0; $p < count($arr); $p++) { $prod *= $arr[$p]; } echo "{$prod}"; } elseif ($action == "+") { $sum = 0;
"; disasm hexdump strings comment notes plain\n"))))); ?> <div class="hexdump"><pre><? hexdump(); ?></pre></div> <? } else if (!strcmp($tab,"strings")) { print str_replace("hexdump", "<a href=\"?offset=$offset&tab=hexdump\">hexdump</a>", str_replace("disasm", "<a href=\"?offset=$offset\">disasm</a>", str_replace("comment", "<a href=\"?offset=$offset&tab=comment\">comment</a>", str_replace("notes", "<a href=\"?offset=$offset&tab=notes\">notes</a>", str_replace("plain", "<a href=\"?offset=$offset&tab=plain\">plain</a>", "; disasm hexdump strings comment notes plain\n"))))); ?> <div class="hexdump"><pre><? strings(); ?></pre></div> <? } else if (!strcmp($tab,"comment")) { print str_replace("hexdump", "<a href=\"?offset=$offset&tab=hexdump\">hexdump</a>", str_replace("disasm", "<a href=\"?offset=$offset\">disasm</a>", str_replace("strings", "<a href=\"?offset=$offset&tab=strings\">strings</a>", str_replace("notes", "<a href=\"?offset=$offset&tab=notes\">notes</a>", str_replace("plain", "<a href=\"?offset=$offset&tab=plain\">plain</a>", "; disasm hexdump strings comment notes plain\n"))))); ?> <div class="hexdump"><pre><? edit_comment(); ?></pre></div> <? } else
function spam_uri_removing_hocus_pocus($binary = '', $method = array()) { $from = $to = array(); // Remove sequential spaces and too short lines $length = 4; // 'http'(1) and '://'(2) and 'fqdn'(1) if (is_array($method)) { // '<a'(2) or 'href='(5) or '>'(1) or '</a>'(4) // '[uri'(4) or ']'(1) or '[/uri]'(6) if (isset($method['area_anchor']) || isset($method['uri_anchor']) || isset($method['area_bbcode']) || isset($method['uri_bbcode'])) { $length = 1; } // Seems not effective } $binary = strings($binary, $length, TRUE, FALSE); // Multibyte NOT needed // Remove/Replace quoted-spaces within tags $from[] = '#(<\\w+ [^<>]*?\\w ?= ?")([^"<>]*? [^"<>]*)("[^<>]*?>)#ie'; $to[] = "'\$1' . str_replace(' ' , '%20' , trim('\$2')) . '\$3'"; // Remove words (has no '<>[]:') between spaces $from[] = '/[ \\t][\\w.,()\\ \\t]+[ \\t]/'; $to[] = ' '; return preg_replace($from, $to, $binary); }