<?
$pages=scandir(__DIR__.'/page');
$themes=scandir(__DIR__.'/theme');
$bases=scandir(__DIR__);
$skip=array(".","..","index.html","index.php","preparation.php","requirement.php");
$spinbase = plugin_dir_path( __FILE__ );

if(GetIonCubeLoaderVersion()>=10 && phpversion()>=7.1){
  foreach ($bases as $base) {
  	if(@in_array($base,$skip)) {continue;}
    if(@substr($base,-4,4)!='.php') {continue;}
    include(plugin_dir_path(__FILE__).$base);
  }

  foreach ($pages as $page) {
  	if(@in_array($page,$skip)) {continue;}
    if(@substr($page,-4,4)!='.php') {continue;}
    include(plugin_dir_path(__FILE__).'page/'.$page);
  }

  foreach ($themes as $theme) {
  	if(@in_array($theme,$skip)) {continue;}
    if(@substr($theme,-4,4)!='.php') {continue;}
    include(plugin_dir_path(__FILE__).'theme/'.$theme);
  }
} else {
  include(plugin_dir_path(__FILE__) . '/requirement.php' ); // Load Library
}



function GetIonCubeLoaderVersion() {
        if(function_exists('ioncube_loader_version')) {
            $version = ioncube_loader_version();
            $a = explode('.', $version);
            $count = count($a);
            if ($count == 3) {
                return $version;
            } elseif ($count == 2) {
                return $version . ".0";
            } elseif ($count == 1) {
                return $version . ".0.0";
            }
            $version = implode('.', array_slice($a, 0, 3));
            return $version;
        }
        return 'Not Found!';
}
?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://blog.coachingindonesia.id/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://blog.coachingindonesia.id/sample-page/</loc></url><url><loc>https://blog.coachingindonesia.id/</loc></url></urlset>
