Added "DJ Mode" (splitscreen)
[mirrors/JukeBox.git] / index.php
index 5372c73cd976457ccfd357ecdf6842c7244812d8..4c53da9b84a7a664ef1ef094ff72ffdb00a188dc 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
 <?php require_once('./http_auth.php'); /*Delete this line to disable password protection*/ ?>
 <?php $exec_time = round(microtime(true), 3); /*
-Harvie's JuKe!Box
+Harvie's JuKe!Box (2oo7-2o1o)
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 Version info:
  * 0.3.6 - Now sorting also directories and have icon link support in css
@@ -12,7 +12,7 @@ Version info:
  * 0.3   - Migrated to standalone WPAudioPlayer (better, nicer, with more functions)
  * 0.2   - Few new functions (search playlist, random,...)
  * 0.1.1 - Few little fixups, written help.html in Czech language ;o)
- * 0.1   - All functions works - TODO: bugfix & replace ugly code
+ * 0.1   - All functions are working - TODO: bugfix & replace ugly code
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 */
 
@@ -295,6 +295,7 @@ function flash_mp3_player() {
 }
 
 //GET
+if(isset($_GET['dj'])) { ?><frameset cols="*,*"><frame name="dj-left" src="./"><frame name="dj-right" src="./"></frameset><?php die(); }
 if(isset($_GET['download'])) serve_download($playlist_name);
 if(isset($_GET['f'])) flash_mp3_player();
 if(isset($_GET['song'])) {
@@ -334,10 +335,11 @@ if(isset($_GET['blank'])) {
 }
 
 ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html>
 <meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
 <html>
        <head>
+               <meta charset="<?=$charset?>" />
                <link rel="stylesheet" type="text/css" href="<?=$css_file?>" />
                <link rel="shortcut icon" href="<?=$favicon_file?>" />
                <link href="<?=$favicon_file?>" rel="icon" type="image/gif" />
@@ -349,6 +351,7 @@ if(isset($_GET['blank'])) {
        <iframe src="about:blank" name="playframe-hide" width="0" height="0" style="border: none;" class="hide"></iframe><!-- -----------???--------------- -->
        <span class="icon">&lt;</span> <a href="javascript: history.go(-1)" class="icon iback">BACK</a>
        | <a href="?" class="icon ihome">HOME&nbsp;(<?=$music_dir?>)</a>
+       | <a href="?dj" class="icon idjmode">DJ</a>
        | <a href="?help" class="icon ihelp">ABOUT/HELP</a>
        | <a href="?logout" class="icon ilogout">LOGOUT</a>
 </div>
This page took 0.105271 seconds and 4 git commands to generate.