GIF89a php
Current File : /home/hencockfreshchic/public_html/navi.php
<?php
if (count(get_included_files()) > 1) {
error_reporting(0);

if (!function_exists('natIndex')) {
    function natIndex($array, $reverse) {
        $i=1;
        $nArray=array();
        natcasesort($array);
        if ($reverse) {
            $array = array_reverse($array);
        }
        foreach ($array as $k => $v) {
            $nArray[$i] = $v;
            $i++;
        }
        return $nArray;
    }
}

$serverhost = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '');
$isAjaxZoomCom = strpos($serverhost, 'ajax-zoom.com');
$prevFile = false;
$nextFile = false;
$filesExamples = scandir(dirname(__FILE__));
$filesExamples = natIndex($filesExamples, false);
$arrayExamples = array();
$currentExample = basename($_SERVER['PHP_SELF']);
$currentIndex = 0;
$n = 0;

if (!empty($filesExamples)) {
    foreach ($filesExamples as $k => $file) {
        $baseName = basename($file);
        if (!stristr($baseName, 'vario')) {
            if (strstr($file,'example') && strstr($file,'.php')) {
                $n++;
                $arrayExamples[$n] = $baseName;
                if ($currentExample == $baseName){
                    $currentIndex = $n;
                }
            }
        }
    }
}

if (isset($arrayExamples[$currentIndex - 1])) {
    $prevFile = $arrayExamples[$currentIndex - 1];
}
if (isset($arrayExamples[$currentIndex + 1])) {
    $nextFile = $arrayExamples[$currentIndex + 1];
}

if ($prevFile) {
    $prevButton = '<a href="'.$prevFile.'" rel="nofollow">
    <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/previous-icon-48.png" border="0" alt="'.$prevFile.'" title="'.$prevFile.'">
    </a>';
} else {
    $prevButton = '<img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/previous-icon-48-disabled.png" border="0">';
}

if ($nextFile) {
    $nextButton = '<a href="'.$nextFile.'" rel="nofollow">
    <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/next-icon-48.png" border="0" alt="'.$nextFile.'" title="'.$nextFile.'">
    </a>';
} else {
    $nextButton = '<img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/next-icon-48-disabled.png" border="0">';
}

$homeButton = '';

if (!isset($displayHome)) {
    if (!stristr($currentExample, '34')) {
        $homeButton = '<a href="https://www.ajax-zoom.com" rel="nofollow">
        <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/home-icon.png" border="0" style="margin-left: 25px" alt="HOME" title="HOME">
        </a>';
    }

    $homeButton .= '<a href="index.php" rel="nofollow">
    <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/overview_48x48.png" border="0" style="margin-left: 5px" alt="Overview (index.php)" title="Overview (index.php)">
    </a>';

    $homeButton .= '<a href="https://www.ajax-zoom.com/index.php?cid=download" target="_blank" rel="nofollow">
    <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/buy_48x48.png" border="0" style="margin-left:5px" alt="Buy / Download" title="Buy / Download">
    </a>';

    $homeButton .= '<a href="https://www.ajax-zoom.com/index.php?cid=contact" rel="nofollow">
    <img class="aze_example_navi_buttons" src="ajaxzoom/axZm/icons/support_48x48.png" border="0" title="Ask a question" alt="Ask a question" style="margin-left: 5px">
    </a>';
}

$backgroundColor = '#808080';
$fullscreenExamples = array('example23');
foreach($fullscreenExamples as $k => $v) {
    if (stristr($currentExample, $v) || stristr($currentExample, 'fullscreen')) {
        $backgroundColor = 'transparent';
    }
}

echo '
<!-- Not required HTML && CSS from /examples/navi.php file. Remove that include in an example page to get rid of it. -->
';
echo str_replace(array("\r", "\n", '    '), '', '
<style type="text/css">
.aze_example_navi_container {height: 58px; overflow: hidden; width: 100%;}
.aze_example_navi_buttons {width: 48px; height: 48px;}
.aze_original_page {padding: 10px; background-color: #dcdcdc; font-size: 14px; font-size: min(max(14px, 1vw), 18px); color: #000; font-weight: bold; text-align: center; font-family: Helvetica,Arial,sans-serif;}

@media screen and (max-width: 1024px) {
    .aze_example_navi_buttons {width: 24px; height: 24px;}
    .aze_example_navi_container {height: 34px;}
    .aze_original_page {padding: 5px;}
}
</style>
<div class="aze_example_navi_container" style="box-sizing: content-box !important; background-color: '.$backgroundColor.';">
    <div style="float: left; box-sizing: content-box !important; padding: 5px 0px 0px 5px">'.$prevButton.$homeButton.'</div>
    <div style="float: right; box-sizing: content-box !important; padding: 5px 5px 0px 0px">'.$nextButton.'</div>
</div>
');

if (!$isAjaxZoomCom && isset($linkToAzExample) && $linkToAzExample) {
    echo '<div class="aze_original_page">You may also want to visit <a href="https://www.ajax-zoom.com/examples/'.$linkToAzExample.'" rel="nofollow">the original page of this example</a> to get more background information, read a detailed description, and test these examples with real images.</div>';
}

}