2014-01-10 19:28:56 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Pony Fusion - Make a pony the colour of another pony!
|
|
|
|
Copyright (C) 2014 Tailszefox
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see [http://www.gnu.org/licenses/].
|
|
|
|
|
|
|
|
Contact:
|
2015-12-27 12:01:54 +01:00
|
|
|
E-mail: pony@tailszefox.net
|
2014-01-10 19:28:56 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
include_once("ponies.php");
|
|
|
|
|
|
|
|
if(isset($_GET["from"]))
|
|
|
|
{
|
|
|
|
$from = $_GET["from"];
|
|
|
|
if(!isset($ponies[$from]))
|
|
|
|
die("Invalid combination");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
$from = "";
|
|
|
|
|
|
|
|
if(isset($_GET["to"]))
|
|
|
|
{
|
|
|
|
$to = $_GET["to"];
|
|
|
|
if(!isset($ponies[$to]))
|
|
|
|
die("Invalid combination");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
$to = "";
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<title>Pony Fusion</title>
|
|
|
|
<meta charset="utf-8">
|
2015-04-03 14:40:48 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2014-01-10 19:28:56 +01:00
|
|
|
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
|
|
<link href="css/style.css" rel="stylesheet" media="screen">
|
2015-04-03 14:40:48 +02:00
|
|
|
<link href="css/style-small.css" rel="stylesheet" media="screen and (max-width: 800px)">
|
2021-02-12 10:59:38 +01:00
|
|
|
<link href="css/dark.css" rel="stylesheet" media="screen and (prefers-color-scheme: dark)" id="darkSheet">
|
2021-02-12 11:08:54 +01:00
|
|
|
<link href="css/print.css" rel="stylesheet" media="print">
|
2014-01-10 19:28:56 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="faqWrapper">
|
|
|
|
<div id="faq" class="well">
|
|
|
|
<div id="faqClose">
|
|
|
|
<span id="faqCloseButton">×</span>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$faqIncluded = TRUE;
|
|
|
|
include("faq.php");
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="container">
|
|
|
|
|
|
|
|
<div id="header">
|
2021-02-12 10:59:38 +01:00
|
|
|
<img src="mode_light.png" id="darkSwitch" title="Switch to Dark Mode" data-mode="light">
|
2014-01-10 19:28:56 +01:00
|
|
|
<p>Pony Fusion</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
<div id="audio">
|
|
|
|
<audio controls loop>
|
|
|
|
<source src="merp/merp.ogg" type="audio/ogg">
|
|
|
|
<source src="merp/merp.mp3" type="audio/mpeg">
|
|
|
|
</audio>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="GET" id="formFusion">
|
|
|
|
<p>
|
|
|
|
<select name="from" id="from" class="fusionChoice">
|
|
|
|
<?php
|
2015-12-31 11:30:04 +01:00
|
|
|
if($from == "vinyl2" || $to == "vinyl2")
|
2014-01-10 19:28:56 +01:00
|
|
|
{
|
|
|
|
$ponies["vinyl2"]["hidden"] = FALSE;
|
|
|
|
$ponies["vinyl"]["hidden"] = TRUE;
|
|
|
|
}
|
|
|
|
|
2015-12-31 11:30:04 +01:00
|
|
|
if($from == "starlight2" || $to == "starlight2")
|
2015-12-31 11:25:49 +01:00
|
|
|
{
|
|
|
|
$ponies["starlight2"]["hidden"] = FALSE;
|
|
|
|
$ponies["starlight"]["hidden"] = TRUE;
|
|
|
|
}
|
|
|
|
|
2014-01-10 19:28:56 +01:00
|
|
|
foreach($ponies as $id => $properties)
|
|
|
|
{
|
|
|
|
if(strpos($id, "break") !== FALSE)
|
|
|
|
{
|
|
|
|
?><optgroup label="<?php echo $properties ?>"></optgroup><?php
|
|
|
|
}
|
2019-08-06 04:22:34 +02:00
|
|
|
else if(isset($properties["hidden"]) === FALSE)
|
2014-01-10 19:28:56 +01:00
|
|
|
{
|
|
|
|
?><option value="<?php echo $id ?>" <?php if($from == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<button class="btn btn-info" id="buttonSwap">Swap</button>
|
|
|
|
|
|
|
|
<select name="to" id="to" class="fusionChoice">
|
|
|
|
<?php
|
|
|
|
foreach($ponies as $id => $properties)
|
|
|
|
{
|
|
|
|
if(strpos($id, "break") !== FALSE)
|
|
|
|
{
|
|
|
|
?><optgroup label="<?php echo $properties ?>"></optgroup><?php
|
|
|
|
}
|
2019-08-06 04:22:34 +02:00
|
|
|
else if(isset($properties["hidden"]) === FALSE)
|
2014-01-10 19:28:56 +01:00
|
|
|
{
|
|
|
|
?><option value="<?php echo $id ?>" <?php if($to == $id) { ?>selected="selected"<?php } ?>><?php echo $properties["first"] . $properties["second"] ?></option><?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</p>
|
2015-04-03 14:40:48 +02:00
|
|
|
<p><button type="submit" class="btn btn-info buttonsRandomize" id="buttonRandomizeFrom">Randomize <span class="leftAndRight">this one</span><span class="topAndBottom">top one</span></button> <button type="submit" class="btn btn-info buttonsRandomize" id="buttonRandomize">Randomize both</button> <button type="submit" class="btn btn-info buttonsRandomize" id="buttonRandomizeTo">Randomize <span class="leftAndRight">that one</span><span class="topAndBottom">bottom one</span></button></p>
|
2014-01-10 19:28:56 +01:00
|
|
|
<noscript><p><button type="submit" class="btn btn-primary">Fusion</button></p></noscript>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div id="resultDivContent">
|
|
|
|
<?php
|
|
|
|
if(!empty($from) && !empty($to))
|
|
|
|
{
|
|
|
|
$fusionInclude = TRUE;
|
|
|
|
include("fusion_ajax.php");
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="legal" class="well">
|
|
|
|
<p>
|
2021-08-18 21:29:12 +02:00
|
|
|
This application is released under <a rel="license" href="http://www.gnu.org/licenses/gpl.html"><img title="GPL v3 License" src="gpl_v3.png" width="80" height="15" /></a> - <a href="https://github.com/Tailszefox/Pony-Fusion">Source code available on GitHub</a> - See the source link for each vector's license
|
2020-03-03 01:39:49 +01:00
|
|
|
- <a href="http://www.mattyhex.net/CMR/">Celestia Redux font source</a> - <a href="faq.php" id="faqLink">FAQ</a> - <a href="mailto:pony@tailszefox.net?subject=Pony%20Fusion">Contact</a> - <a href="https://www.ponyar.net/">Be sure to also check out PonyAR!</a>
|
2014-01-10 19:28:56 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-13 06:19:41 +02:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js" integrity="sha384-lifoBlbdwizTl3Yoe612uhI3AcOam/QtWkozF7SuiACaf5UJl5reOYu4MigVxrCH" crossorigin="anonymous"></script>
|
2014-01-10 19:28:56 +01:00
|
|
|
<script src="js/bootstrap.min.js"></script>
|
|
|
|
<script src="js/konami.js"></script>
|
2020-04-12 06:16:28 +02:00
|
|
|
<script src="js/base.js"></script>
|
2014-01-10 19:28:56 +01:00
|
|
|
</body>
|
|
|
|
</html>
|