New release

This commit is contained in:
Nicolas A. Tonne
2014-10-09 21:21:21 +02:00
parent 5c75171af2
commit f98415c5b1
12 changed files with 209 additions and 139 deletions

View File

@@ -1,40 +1,33 @@
<?php
if(isset($_GET['chan']))
{
if(isset($_GET['chan'])){
header('Location: '.$_GET['chan']);
}
$dir = scandir('./lists');
$channels = array();
foreach($dir as $files)
{
//echo $files;
if(strpos($files, '.json') !== FALSE)
{
//echo "found some"
foreach($dir as $files){
if(strpos($files, '.json') !== FALSE){
array_push($channels, ucfirst(str_replace(".json", "", $files)));
//$channels = $channels . str_replace(".json", "", $files) . " ";
}
}
?>
Zöff
<form name="ufo" action="" class="daform nomargin" id="base" method="get" onsubmit="null;" autocomplete="off">
<input id="search" name="chan" type="text" class="search_input innbox" spellcheck="false" placeholder="Type Channel Name" autofocus/>
</form>
</div>
<div id="channels">Channels: <br>
<?php
foreach($channels as $channel)
{
echo "<a class='channels' href='/".$channel."'>".$channel."</a>";
}
?>
</div></div>
<div class="footer small centered top anim">&copy; 2014 <a class="anim" href="//nixo.no">Nixo</a> &amp; <a class="anim" href="//kasperrt.no">KasperRT</a> </div>
</body>
<div class="bigchan nomargin">Zöff</div>
<form name="ufo" action="" class="daform nomargin" id="base" method="get" onsubmit="null;" >
<input id="search" name="chan" type="text" class="search_input innbox" spellcheck="false" placeholder="Type Channel Name" autofocus/>
</form>
</div>
<center>
<div class="channels" id="channels">Channels: <br>
<?php foreach($channels as $channel){echo "<a class='channel' href='/".$channel."'>".urldecode($channel)."</a>";} ?>
</div>
</center>
</div>
<div class="footer small centered top anim bottom">&copy; 2014 <a class="anim" href="//nixo.no">Nixo</a> &amp; <a class="anim" href="//kasperrt.no">KasperRT</a> </div>
</body>
</html>