<?php if(!defined('PHP_VERSION_ID')||PHP_VERSION_ID<50600){print "Sparkle requires at least PHP 5.6, you have ".phpversion().". Contact your web host to fix this.<br>";exit();}if(! strstr(ini_get('disable_functions'), 'ini_set')) {ini_set('default_charset','UTF-8');}header('Content-Type: text/html; charset=UTF-8');header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');header('Cache-Control: post-check=0, pre-check=0', false);header('Pragma: no-cache'); ?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ite Search Results</title>
<meta name="referrer" content="same-origin">
<link rel="canonical" href="https://lenticularis.cloud/search.php">
<meta name="robots" content="max-image-preview:large">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon-933a2b.png">
<meta name="msapplication-TileImage" content="images/mstile-144x144-864a93.png">
<link rel="manifest" href="manifest.json" crossOrigin="use-credentials">
<link rel="mask-icon" href="website-icon-1014aa.svg" color="rgb(80,66,178)">
<link rel="alternate" hreflang="en" href="https://lenticularis.cloud/search.php">
<link rel="stylesheet" href="css/site.css" type="text/css">
</head>
<body id="b2">
<script>var p=document.createElement("P");p.innerHTML="&nbsp;",p.style.cssText="position:fixed;visible:hidden;font-size:100px;zoom:1",document.body.appendChild(p);var rsz=function(e){return function(){var r=Math.trunc(1e3/parseFloat(window.getComputedStyle(e).getPropertyValue("font-size")))/10,t=document.body;r!=t.style.getPropertyValue("--f")&&t.style.setProperty("--f",r)}}(p);if("ResizeObserver"in window){var ro=new ResizeObserver(rsz);ro.observe(p)}else if("requestAnimationFrame"in window){var raf=function(){rsz(),requestAnimationFrame(raf)};requestAnimationFrame(raf)}else setInterval(rsz,100);</script>

<script>!function(){var e=function(){var e=document.body;e.style.setProperty("--z",1);var t=window.innerWidth,n=getComputedStyle(e).getPropertyValue("--s");if(320==n){if(t<320)return;t=Math.min(479,t)}else if(480==n){if(t<480)return;t=Math.min(610,t)}else t=n;e.style.setProperty("--z",Math.trunc(t/n*1e3)/1e3)};window.addEventListener?window.addEventListener("resize",e,!0):window.onscroll=e,e()}();</script>

<?php
    $mb = extension_loaded('mbstring');

    function find($searchText, $searchFor) {
        global $mb;
        return $mb ? mb_stripos($searchText, $searchFor) : stripos($searchText, $searchFor);
    }

    function mb_split_str($str) {
        preg_match_all("/./u", $str, $arr);
        return $arr[0];
    }

    function s_similar_text($str1, $str2) {
        return 1. / (1. + levenshtein($str1, $str2) / 3.);
    }

    function simfind($searchText, $searchWord, &$score) {
        global $mb;
        $s = strtoupper($searchWord);
        foreach(preg_split("/[\\s]+/", $searchText) as $w) {
            $similarity = s_similar_text($s, strtoupper($w));
            if($similarity >= .6) {
                $score = $similarity;
                return array($mb ? mb_stripos($searchText, $w) : stripos($searchText, $w), $mb ? mb_strlen($w) : strlen($w));
            }
        }
        return array(FALSE, FALSE);
    }

    function scorecmp($a, $b) {
        if ($a['score'] == $b['score']) {
            return 0;
        }
        return ($a['score'] < $b['score']) ? 1 : -1;
    }

    function textlencmp($a, $b) {
        if (strlen($a['text']) == strlen($b['text'])) {
            return 0;
        }
        return (strlen($a['text']) < strlen($b['text'])) ? 1 : -1;
    }

    function snipcmp($a, $b) {
        if ($a['score'] == $b['score']) {
            return textlencmp($a, $b);
        }
        return ($a['score'] < $b['score']) ? 1 : -1;
    }

    function ordercmp($a, $b) {
        if ($a['order'] == $b['order']) {
            return 0;
        }
        return ($a['order'] > $b['order']) ? 1 : -1;
    }

    function mfind($searchText, $searchFor, $words, $w, &$wordsfound) {
        if(empty($searchFor))
            return FALSE;

        $snippet = array('text' => $searchText, 'w' => $w);
        if(($pos = find($searchText, $searchFor)) !== FALSE) {
            $wordsfound = array_merge($wordsfound, $words);
            $snippet['score'] = 20;
            $snippet['pos'] = $pos;
            $snippet['matchlen'] = strlen($searchFor);
            return $snippet;
        }
        foreach($words as $searchWord) {
            if(($pos = find($searchText, $searchWord)) !== FALSE) {
                $snippet['score'] = isset($wordscores[$searchWord]) ? 0.5 : 10;
                $wordsfound[] = $searchWord;
                $snippet['pos'] = $pos;
                $snippet['matchlen'] = strlen($searchWord);
                return $snippet;
            }
        }
        foreach($words as $searchWord) {
            $score = 1;
            $match = simfind($searchText, $searchWord, $score);
            if($match[0] !== FALSE) {
                $wordsfound[] = $searchWord;
                $snippet['score'] = $score * 5;
                $snippet['pos'] = $match[0];
                $snippet['matchlen'] = $match[1];
                return $snippet;
            }
        }
        return FALSE;
    }

    $page = 0;
    $start_page = 0;
    $end_page = -1;
    $searchResults = array();
    $found = array();
    if(isset($_GET['search'])) {
        $results_per_page = 10;
        $pages = 10;
        $page = (isset($_GET['page']) ? $_GET['page'] : 1);
        if($page < 1) {
            $page = 1;
        }
        $start_page = $page - $pages / 2;
        if($start_page < 1) {
            $start_page = 1;
        }

        $searchFor = $_GET['search'];
        $words = array_filter(preg_split("/[\\s]+/", $searchFor), function ($w) { return strlen($w) > 2; });
        $searchPages = array(array('title'=>'Lenticularis','link'=>'index.html','texts'=>array(array('t'=>'Are you navigating the ever-changing landscape of technology, feeling lost in the turbulent clouds of uncertainty? Lenticularis Cloud is here to guide you through the storm, offering IT consulting, team coaching, and startup enabling services that will lead you toward sunny horizons.','w'=>'1'),array('t'=>'In today\'s fast-paced digital world, businesses must adapt to constant technological advancements. Lenticularis Cloud, a team of dedicated technology enthusiasts, is your trusted partner in achieving this. We specialize in three key areas:','w'=>'1'),array('t'=>'Startup Enabler','w'=>'1'),array('t'=>'Innovation is the lifeblood of the tech industry, and startups are at the forefront of this revolution. Lenticularis Cloud is passionate about nurturing the next generation of tech disruptors. If you have a groundbreaking idea or are looking to launch a tech startup, we provide comprehensive support. From refining your concept, securing funding, building MVPs (Minimum Viable Products), to scaling up, we are your trusted partner on the journey from ideation to market domination.','w'=>'1'),array('t'=>'IT Consulting','w'=>'1'),array('t'=>'The digital ecosystem is complex, and keeping up with the latest trends and solutions can be daunting. Lenticularis Cloud\'s experienced consultants are well-versed in the intricacies of IT. We provide tailored guidance to help you make informed decisions about technology adoption, optimization, and transformation. Whether it\'s streamlining your IT infrastructure, enhancing cybersecurity, or embracing the power of cloud computing, we\'ll design a roadmap to propel your ','w'=>'1'),array('t'=>'business forward.','w'=>'1'),array('t'=>'Team Coaching','w'=>'1'),array('t'=>'Success in the digital age requires more than just technology; it demands effective teamwork and leadership. Our team coaching services are designed to enhance collaboration, communication, and problem-solving skills within your organization. We empower your teams to adapt to change, foster innovation, and thrive in a dynamic environment. With Lenticularis Cloud\'s coaching, your workforce becomes a driving force for positive change, propelling your business to new heights. Not only in mastering Scrum, agile projects or Testing Strategies.','w'=>'1'),array('t'=>'Your Path to Clear Skies in the World of Technology','w'=>'1'),array('t'=>'Proud father of a son and daughter, at the youthful age of 39, I find joy in my married life. My passions include a profound fascination for automobiles and aircraft, coupled with an unquenchable thirst for all things IT-related. While I may have retired from my CrossFit days and embraced a more comfortable lifestyle, my appreciation for a well-crafted beer remains unwavering.','w'=>'7'),array('t'=>'My journey into the world of coding commenced at the tender age of 10, and I have continued to nurture this passion ever since. With a professional career spanning back to the year 2000, I\'ve traversed diverse roles within the tech industry, progressing from System Engineering to the management of Linux Farms and eventually delving into Networking and Software Development.','w'=>'7'),array('t'=>'Over the years, I\'ve had the privilege of assuming both leadership and hands-on roles, accruing a wealth of experience in positions akin to a CTO. The excitement for technology that ignited my spirit when I attempted to sell my very first QBasic program to friends at the age of 10 remains as fervent as ever.','w'=>'7'))));
        foreach($searchPages as $searchPage) {
            if(isset($searchPage['groups'])) {
                if(!isset($_SESSION['user_id']) || !checkAccess($access_control_groups[$searchPage['uuid']])) {
                    continue;
                }
            }
            $foundwords = array();
            if(($title = mfind($searchPage['title'], $searchFor, $words, 10, $foundwords)) !== FALSE) {
                $title['score'] *= (strlen($searchFor) / strlen($searchPage['title']));
            }
            $snippets = array();
            $order = 1;
            foreach($searchPage['texts'] as $text) {
                if(($s = mfind($text['t'], $searchFor, $words, $text['w'], $foundwords)) !== FALSE) {
                    $s['order'] = $order++;
                    $snippets[] = $s;
                }
            }
            if(count(array_diff(array_unique($words), array_unique($foundwords))) == 0) {
                if(count($snippets) == 0 && $title !== FALSE) {
                    foreach($searchPage['texts'] as $text) {
                        $s = array('text' => $text['t'], 'w' => $text['w']);
                        $s['order'] = $order++;
                        $s['score'] = 0;
                        $s['pos'] = 0;
                        $s['matchlen'] = 0;
                        $snippets[] = $s;
                    }
                }
                if(count($snippets)) {
                    $len = 300;
                    $snippet_count = intval(($len + 99) / 100);
                    uasort($snippets, 'snipcmp');
                    $original_snippets = $snippets;
                    $snippet_length = intval($len / $snippet_count);
                    $newsnippets = array();
                    $total = 0;
                    foreach($snippets as $s) {
                        $s2 = $s;
                        $s2['snip'] = $snippet_length;
                        $capped = min($snippet_length, strlen($s['text']));
                        if($total + $capped > $len) {
                            $s2['snip'] = $len - $total;
                            $newsnippets[] = $s2;
                            break;
                        }
                        $total += $capped;
                        $newsnippets[] = $s2;
                        if($total >= $len) {
                            break;
                        }
                    }
                    $snippets = $newsnippets;
                    if(count($snippets) < $snippet_count) {
                        $f = $snippet_count / count($snippets);
                        $total = 0;
                        $newsnippets = array();
                        foreach($snippets as $s) {
                            $s['snip'] = min(strlen($s['text']), $s['snip'] * $f);
                            $total += $s['snip'];
                            $newsnippets[] = $s;
                        }
                        $snippets = $newsnippets;
                        $newsnippets = array();
                        foreach($snippets as $s) {
                            if($s['snip'] < strlen($s['text'])) {
                                $inc = min($len - $total, strlen($s['text']) - $s['snip']);
                                $s['snip'] += $inc;
                                $total += $inc;
                            }
                            $newsnippets[] = $s;
                        }
                        $snippets = $newsnippets;
                    }
                    $score = 0;
                    foreach($original_snippets as $s) {
                        $l = strlen($s['text']);
                        if($l > $snippet_length)
                            $l = $snippet_length;
                        $score += $s['score'] * $s['w'] * ($l / $snippet_length);
                    }
                
                    uasort($snippets, 'ordercmp');
                    if($title !== FALSE) {
                        $score += 30 * $title['score'];
                    }
                    $found[] = array('link' => $searchPage['link'], 'title' => htmlentities($searchPage['title']), 'score' => $score, 'snippets' => $snippets);
                }
            }
        }
        $current_page = $page;
        $end_page = intval((count($found) + ($results_per_page - 1)) / $results_per_page);
        uasort($found, 'scorecmp');
        $searchResults = array_slice($found, ($page - 1) * $results_per_page, $results_per_page);
    }
?>

<div id="LGUJN88LZNN3B0AX6">
</div>
<div class="ps18 v1 s22 z1">
<div class="v2 ps3 s23 z14">
<div class="ps19">
<?php

    echo '<style>.pbdn{display:none}.pbc{border: 0;background-color:#c0c0c0;color:#fff;border-color:#677a85}@media (prefers-color-scheme: dark) {.pbc{background-color:#353535;color:#000}}</style>';
    $control = '<div class="v3 ps3 s24 c6 z4 {btnclass} {lnkclass}"><a href="#" class="a2 f7">&lt;&lt;</a></div>';
    if($page > 1) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . ($page - 1);
        $control = str_replace('href="#"', 'href="' . $url . '"', $control);
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{btnclass}', '', $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps20 s25 c6 z5 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 1 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z6 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 2 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z9 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 3 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z13 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 4 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z10 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 5 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z12 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 6 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z15 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 7 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z16 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 8 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z17 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 9 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps21 s25 c6 z18 {btnclass} {lnkclass}"><a href="#" class="a2 f8">{page_num}</a></div>';
    $buttonPage = $start_page + 10 - 1;
    if($buttonPage <= $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . $buttonPage;
        if($buttonPage == $page) {
            $control = str_replace('href="#"', '', $control);
            $control = str_replace('{lnkclass}', 'pbc', $control);
        }
        else {
            $control = str_replace('href="#"', 'href="' . $url . '"', $control);
            $control = str_replace('{lnkclass}', '', $control);
        }
        $control = str_replace('{btnclass}', '', $control);
        $control = str_replace('{page_num}', $buttonPage, $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{page_num}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

<?php

    $control = '<div class="v3 ps20 s24 c6 z19 {btnclass} {lnkclass}"><a href="#" class="a2 f7">&gt;&gt;</a></div>';
    if($page < $end_page) {
        $url = strtok($_SERVER['REQUEST_URI'],'?') . '?search=' . $searchFor . '&page=' . ($page + 1);
        $control = str_replace('href="#"', 'href="' . $url . '"', $control);
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{btnclass}', '', $control);
    }
    else {
        $control = str_replace('{lnkclass}', '', $control);
        $control = str_replace('{btnclass}', 'pbdn', $control);
    }
    echo $control;

?>

</div>
</div>
<div class="v2 ps22 s26 c7 z20">
<?php
    function rev_string($string) {
        global $mb;
        $chars = $mb ? mb_split_str($string, 1, mb_internal_encoding()) : str_split($string, 1);
        return implode('', array_reverse($chars));
    }

    function word_trunc($string, $length) {
        global $mb;
        if(strlen($string) > $length)
        {
            $string = wordwrap($string, $length);
            $string = $mb? mb_substr($string, 0, mb_strpos($string, "\n")) : substr($string, 0, strpos($string, "\n"));
        }
        return $string;
    }

    function clip_string($string, $pos, $length, $total) {
        global $mb;
        if($length) {
            $m = $mb ? mb_substr($string, $pos, $length) : substr($string, $pos, $length);
            $before = $mb ? mb_substr($string, 0, $pos) : substr($string, 0, $pos);
            $after = $mb ? mb_substr($string, $pos + $length, mb_strlen($string) - ($pos + $length)) : substr($string, $pos + $length, strlen($string) - ($pos + $length));
            $before = rev_string($before);
            if($total < strlen($string)) {
                $half = intval(($total - $length) / 2);
            } else {
                $half = $total;
            }
            $hlPre = '';
            $hlPost = '';
            $out = htmlentities(rev_string(word_trunc($before, $half))) . $hlPre . htmlentities($m) . $hlPost . htmlentities(word_trunc($after, $half));
            return $out;
        } else {
            return htmlentities(word_trunc($string, $total));
        }
    }

    if(count($searchResults) == 0) {
        $result = '<div class="v2 ps23 s27 z1"><div class="v2 ps24 s28 c1 z21"><p class="p1 f9">{title}</p></div><div class="v2 ps24 s29 c1 z21"><p class="p1 f9">{text}</p></div></div>';
        $result = str_replace('{title}', htmlentities('No search result'), $result);
        $result = str_replace('{text}', '', $result);
        echo $result;
    }
    else {
        echo '';
        foreach($searchResults as $searchResult) {
            $result = '<div class="v2 ps23 s27 z1"><div class="v2 ps24 s28 c1 z21"><p class="p1 f9">{title}</p></div><div class="v2 ps24 s29 c1 z21"><p class="p1 f9">{text}</p></div></div>';
            $result = str_replace('{title}', '<a href="' . $searchResult['link'] . '">' . $searchResult['title'] . '</a>', $result);

            $text = "";
            foreach($searchResult['snippets'] as $s) {
                $pos = $s['pos'];
                $m = $s['matchlen'];
                $snippet = clip_string($s['text'], $pos, $m, $s['snip']);
                if(strlen($text))
                    $text .= " &hellip; ";
                $text .= " " . $snippet;
            }

            $result = str_replace('{text}', $text, $result);
            echo $result;
        }
   }
?>

</div>
</div>
<div class="c5">
</div>
<script>dpth="/"</script>
<script>
!function(){var e=function(){var e,t=[70,85,74,76,66,81,48,83,78,83,53,54,75,69,75,82,50,81,67],l="";for(e=0;e<t.length;e++)l+=String.fromCharCode(t[e]);var o,n=document.getElementById(l);if(null==n||"block"!=n.style.display||"absolute"!=n.style.position||"visible"!=n.style.visibility||1!=n.style.opacity||2147483647!=n.style.zIndex||"100%"!=n.style.width||"0px"!=n.style.top||"rgb(255, 255, 255)"!=n.style.color||"rgb(0, 0, 0)"!=n.style.backgroundColor||1!=n.style.lineHeight||parseInt((o=window.getComputedStyle(n)).getPropertyValue("height"))<14||parseInt(o.getPropertyValue("font-size"))<14){null!=n&&n.parentNode.removeChild(n),(n=document.createElement("DIV")).id=l,n.style.display="block",n.style.position="absolute",n.style.visibility="visible",n.style.opacity=1,n.style.width="100%",n.style.zIndex=2147483647,n.style.top="0px",n.style.color="#fff",n.style.backgroundColor="#000",n.style.lineHeight=1,n.onclick=function(e){e.preventDefault();var t=window.open("https://sparkleapp.com","_blank");t&&t.focus()};var i=[77,97,100,38,35,56,50,48,51,59,101,32,38,35,56,50,48,51,59,119,105,38,35,56,50,48,51,59,116,104,32,116,104,101,32,102,114,101,101,38,35,56,50,48,51,59,32,118,101,114,38,35,56,50,48,51,59,115,105,111,110,32,111,102,32,83,112,97,114,107,108,101],r="";for(e=0;e<i.length;e++)r+=String.fromCharCode(i[e]);n.innerHTML=r;var s=document.body.children;document.body.insertBefore(n,s[Math.round(Math.random()*s.length+1)-1])}};e(),setInterval(e,5e3)}();

</script>
<script type="text/javascript" src="js/search.js"></script>
</body>
</html>