Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $modpackjson = file_get_contents('http://play.pineserver.com/TechnicSolder/public/index.php/api/modpack/pine');
- $version = json_decode($modpackjson,true);
- $latest = $version['latest'];
- $lateurl = "http://play.pineserver.com/TechnicSolder/public/index.php/api/modpack/pine/$latest";
- $json = file_get_contents("$lateurl");
- $data = json_decode($json,true);
- foreach($data['mods'] as $item) {
- $Mname = $item['name'];
- $url = "http://play.pineserver.com/TechnicSolder/public/index.php/api/mod/$Mname";
- $Mjson = file_get_contents("$url");
- $Mdata = json_decode($Mjson,true);
- ?>
- <div class="row col-lg-offset-1 col-lg-10">
- <div class="panel panel-default autocollapse2">
- <div class="panel-heading clickable">
- <h3 class="panel-title">
- <i class="fa fa-plus" aria-hidden="true"></i> <?php echo $Mdata["pretty_name"] ?><span class="badge"><?php echo $item['version'] ?></span>
- </h3>
- </div>
- <div class="panel-body">
- <p><i class="fa fa-user" aria-hidden="true"></i> Author: <strong><?php echo $Mdata["author"] ?></strong></p>
- <p></p><i class="fa fa-home" aria-hidden="true"></i> Website: <a href="<?php echo $Mdata["link"] ?>" target="_blank"><?php echo $Mdata["link"] ?></a></p>
- <br>
- <p><?php echo $Mdata["description"] ?></p>
- </div>
- </div>
- </div>
- <?php
- }
- ?>
- <script type="text/javascript" src="js/spoiler2.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement