<?php
/**
*
* @ This file is created by http://DeZender.Net
* @ deZender (PHP7 Decoder for SourceGuardian Encoder)
*
* @ Version			:	5.0.1.0
* @ Author			:	DeZender
* @ Release on		:	22.04.2022
* @ Official site	:	http://DeZender.Net
*
*/

function my_error_handler($code, $message)
{
	echo sprintf('Something goes wrong. Error code %s. ', $code);
	echo '<p> Please contact <a href=\'https://https://realmofapknpanels.com\'>Realm Of APK n PANELS</a>';
}

function function_added_to_every_file()
{
}

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL);
$folder_name = 'img/';
$videoban = 'no';

if ($Tag == 'banner') {
	if ($videoban == 'yes') {
		echo '      <div class="show video-container">' . "\r\n" . '    <a target="_blank" href="' . $bg_img . '">' . "\r\n" . '    <video autoplay muted loop id="video" controls="" preload="none" poster="../img/corp.png" style="width:100%; height:100%">' . "\r\n" . '    <source src="../intro/intro.mp4?' . time() . '" type="video/mp4" />' . "\r\n" . '  </video>' . "\r\n" . '    </a>' . "\r\n" . '  </div> ';
	}
	else {
		echo "\r\n" . '  <style>' . "\r\n\r\n\r\n" . '    .wrap {' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide {' . "\r\n" . '    //height: 100vh;' . "\r\n" . '    ' . "\r\n" . '    color: white;' . "\r\n" . '    background-color: transparent;' . "\r\n" . '      background-repeat: no-repeat;' . "\r\n" . '  background-size: 100% 100%;' . "\r\n" . '  background-attachment: fixed;' . "\r\n\t" . '  height: 100%;' . "\r\n\t" . '  width: 100%;"' . "\r\n" . '      top: 0;' . "\r\n" . '      left: 0;' . "\r\n" . '      right: 0;' . "\r\n" . '  margin: 0;' . "\r\n" . '    padding: 0;' . "\r\n" . '    border: 0;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide ul { overflow:hidden;' . "\r\n" . '      //margin: 0 auto;' . "\r\n" . '    background-color: transparent;' . "\r\n" . '      background-repeat: no-repeat;' . "\r\n" . '  background-size: 100% 100%;' . "\r\n" . '  background-attachment: fixed;' . "\r\n\t" . '  height: 100%;' . "\r\n\t" . '  width: 100%;"' . "\r\n" . '      top: 0;' . "\r\n" . '      left: 0;' . "\r\n" . '      right: 0;' . "\r\n" . '  margin: 0;' . "\r\n" . '    padding: 0;' . "\r\n" . '    border: 0;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide ul li { overflow:hidden;' . "\r\n" . '      list-style: none;' . "\r\n" . '      position: absolute;' . "\r\n" . '      z-index: 1;' . "\r\n" . '      background-repeat: no-repeat;' . "\r\n" . '  background-size: 100% 100%;' . "\r\n" . '  background-attachment: fixed;' . "\r\n\t" . '  height: 100%;' . "\r\n\t" . '  width: 100%;"' . "\r\n" . '      top: 0;' . "\r\n" . '      left: 0;' . "\r\n" . '      right: 0;' . "\r\n" . '  margin: 0;' . "\r\n" . '    padding: 0;' . "\r\n" . '    border: 0;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide #dots {' . "\r\n" . '      position: absolute;' . "\r\n" . '      left: 0;' . "\r\n" . '      right: 0;' . "\r\n" . '      bottom: 10px;' . "\r\n" . '      height: 22px;' . "\r\n" . '      z-index: 9999;' . "\r\n" . '      font-size: 0;' . "\r\n" . '      text-align: center;' . "\r\n" . '      opacity: 0.7;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide #dots a {' . "\r\n" . '      background: #333;' . "\r\n" . '      margin: 0 6px;' . "\r\n" . '      width: 10px;' . "\r\n" . '      height: 10px;' . "\r\n" . '      box-shadow: 0 0 1px 0 #333;' . "\r\n" . '      border-radius: 100%;' . "\r\n" . '      display: inline-block;' . "\r\n" . '      cursor: pointer;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide #dots a.active {' . "\r\n" . '      background: #FFF;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide .arrow {' . "\r\n" . '      position: absolute;' . "\r\n" . '      top: 50%;' . "\r\n" . '      width: 60px;' . "\r\n" . '      height: 40px;' . "\r\n" . '      line-height: 40px;' . "\r\n" . '      margin-top: -50px;' . "\r\n" . '      //background: #FFF;' . "\r\n" . '      z-index: 999;' . "\r\n" . '      opacity: 0.4;' . "\r\n" . '      color: #333;' . "\r\n" . '      text-align: center;' . "\r\n" . '      text-decoration: none;' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide .arrow.prev {' . "\r\n" . '      left: 0;' . "\r\n" . ' // background: url("widgets/data/img/arrow-left.png");' . "\r\n" . '  ' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide .arrow.next {' . "\r\n" . '      right: 0;' . "\r\n" . '  // background: url("widgets/data/img/arrow-right.png");' . "\r\n" . '    }' . "\r\n\r\n" . '    .slide .arrow:active {' . "\r\n" . '      //background: #FAFAFA;' . "\r\n" . '      opacity: 0.7;' . "\r\n" . '    }' . "\r\n" . '  </style>' . "\r\n\r\n" . '    <div class="slide">' . "\r\n" . '      <ul>' . "\r\n\t" . '  ';

		while ($rowads = $resads->fetchArray()) {
			$imagepath = $rowads['thumbpath'] . '?' . time();
			echo '<li style="background-image:url(' . $imagepath . ')"></li>';
		}

		echo "\r\n" . '      </ul>' . "\r\n" . '    </div>' . "\r\n\t\r\n\r\n\r\n" . '<script type="text/javascript" src="widgets/data/js/jquery.js"></script>' . "\r\n" . '<script type="text/javascript" src="widgets/data/js/jquery.fadeImg.js"></script>' . "\r\n" . '<script>' . "\r\n" . '  $(document).ready(function($) {' . "\r\n" . '    $(".slide").fadeImages({' . "\r\n" . '      time:3000,' . "\r\n" . '            fade: 1000, ' . "\r\n" . '            dots: true, ' . "\r\n" . '            arrows: true,' . "\r\n" . '      complete: function() {' . "\r\n" . '        console.log("Fade Images Complete");' . "\r\n" . '      }' . "\r\n" . '    });' . "\r\n\r\n" . '  });' . "\r\n" . '</script>';
	}
}

?>