diff --git a/html/default.css b/html/default.css index 4697839..a29561f 100644 --- a/html/default.css +++ b/html/default.css @@ -1377,7 +1377,7 @@ td.lyrics1 td.bottext { - vertical-align: top; + vertical-align: middle; text-align: right; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; margin: 0; @@ -1440,13 +1440,48 @@ a:active +a.jp-on, +a.jp-off +{ + -webkit-transition: all 0.5s ease; + -moz-transition: all 0.5s ease; +} + + + +a.jp-on:hover, +a.jp-off:hover +{ + /*Glow*/ + + -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.3); + -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.3); + box-shadow: 0px 0px 20px rgba(255,255,255,0.3); +} + + + +a.jp-on +{ + background-color: #4a3a55; +} + + + +a.jp-off +{ +} + + + a.menu-home_page, a.menu-about, a.menu-discography, a.button-w3c-html, a.button-w3c-css, a.button-rx3, -a.button-safe_creative +a.button-safe_creative, +a.button-stats { border: 0px solid; background-repeat: no-repeat; @@ -1470,7 +1505,8 @@ a.menu-discography:hover, a.button-w3c-html:hover, a.button-w3c-css:hover, a.button-rx3:hover, -a.button-safe_creative:hover +a.button-safe_creative:hover, +a.button-stats:hover { /*Glow*/ @@ -1532,10 +1568,12 @@ a.button-w3c-html, a.button-w3c-css, a.button-rx3, a.button-safe_creative, +a.button-stats, a.button-w3c-html:hover, a.button-w3c-css:hover, a.button-rx3:hover, -a.button-safe_creative:hover +a.button-safe_creative:hover, +a.button-stats:hover { height: 26px; } @@ -1582,3 +1620,70 @@ a.button-safe_creative:hover background-image: url("/images/button-safe_creative-hi.png"); } + +a.button-stats +{ + background-image: url("/images/button-stats-on.png"); +} + +a.button-stats:hover +{ + background-image: url("/images/button-stats-hi.png"); + +} + + + +/*--------------------------------------------*/ +/* INPUT */ +/*--------------------------------------------*/ + +input.password +{ + border: 0px solid;; + background-color: #222222; + color: #FFFFFF; +} + +input.login, +input.logout +{ + border: 0px solid;; + width: 32px; + height: 26px; + + /*Transition*/ + + -webkit-transition: all 0.5s ease; + -moz-transition: all 0.5s ease; +} + +input.login:hover, +input.logout:hover +{ + /*Glow*/ + + -webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.3); + -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.3); + box-shadow: 0px 0px 20px rgba(255,255,255,0.3); +} + +input.login +{ + background-image: url("/images/button-login-on.png"); +} + +input.login:hover +{ + background-image: url("/images/button-login-hi.png"); +} + +input.logout +{ + background-image: url("/images/button-logout-on.png"); +} + +input.logout:hover +{ + background-image: url("/images/button-logout-hi.png"); +} diff --git a/html/lmbrowse.php b/html/lmbrowse.php index 54c795e..474068c 100644 --- a/html/lmbrowse.php +++ b/html/lmbrowse.php @@ -1,8 +1,8 @@ $value) + $admin = $lmb_cookie_tab["admin"]; + + if( $admin == $lmb_password) { - $lmb=$lmb_tab[$section_id]["lmb"]; + return( true); + } + else + { + return( false); + } +} - foreach( $lmb as $lmb_id => $value) + + +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Admin Update */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_admin_update() +{ + global $lmb_password; + global $lmb_cookie_tab; + + + $passwd = $_POST["password"]; + + + if( $passwd != "") + { + if( $passwd == $lmb_password) { - if( $lmb_id == $lmb_id_lookup) - { - return $section_id; - } + lmb_cookie_set( "admin", $lmb_password, 360000); } - } - - return ""; -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_get_name( $lmb_id_lookup) -{ - global $lmb_tab; - - - foreach( $lmb_tab as $section_id => $value) - { - $lmb=$lmb_tab[$section_id]["lmb"]; - - foreach( $lmb as $lmb_id => $value) + else { - if( $lmb_id == $lmb_id_lookup) - { - return $lmb[$lmb_id]["name"]; - } + lmb_cookie_set( "admin", "", 360000); } } - - return ""; -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_curverrel_get( $id) -{ - $cmd="ls -rt download/$id/*/$id*.src.rpm | sed -e 's/^download.$id.//' -e 's/.src.rpm$//'"; - $curverrel=exec($cmd); - - $tab=explode( "/", $curverrel); - $curver=$tab[0]; - - $tab=explode( "-$curver-", $curverrel); - $currel=$tab[1]; - - return( array( $curver, $currel)); -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_list_get( $id, $curver, $currel) -{ - $cmd="ls download/$id/$curver/$id-*$curver-$currel* | sort | sed -e 's/^download.$id.$curver.//'"; - exec($cmd, $list); - - return( $list); -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_tag_get( $lmb_id, $lmb_curver, $lmb_currel, $lmb_name, $lmb_qt) -{ - if( $lmb_name == "") - { - $lmb_name="$lmb_id-$lmb_curver-$lmb_currel.src.rpm"; - } - - $cmd="rpm -qp --qf \"$lmb_qt\" download/$lmb_id/$lmb_curver/$lmb_name | sed -e 's//\>/g'"; - exec( $cmd, $reply_tab); - - return $reply_tab; -} - - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_tab_dump( $tab, $start) -{ - - for( $i = $start; $i < count($tab); $i++) - { - echo "$tab[$i]\n"; - } } @@ -400,19 +330,16 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_ $mw_tag = ""; } -// include "$lmb_page_header"; - echo " - + - $page_name"; - -// include "$lmb_body_header"; + $page_name +"; echo " @@ -436,7 +363,6 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_ echo " \"$img_alt\" "; -// include "$lmb_body_1"; echo " @@ -463,8 +389,6 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $keywords, $min_ lmb_menu($page_id); -// include "$lmb_body_2"; - echo " \"\" @@ -505,7 +429,6 @@ function lmb_footer() "; -// include "$lmb_body_footer"; echo " @@ -529,28 +452,60 @@ function lmb_footer() - +     - +     - +     - + + + + + "; + if( lmb_admin_is()) + { + echo " + + + + +"; + } + else + { + echo " +"; + } + + $time_stop = microtime_float(); $time_elaps = intval( ( $time_stop - $time_start) * 1000) / 1000; - echo " + echo " + +
    +
+ + +
+
+
+ + +
+
Page generated in $time_elaps seconds by {$lmb_myname} V {$lmb_myver}
+ + Page generated in $time_elaps seconds by {$lmb_myname} V {$lmb_myver} "; -// include "$lmb_page_footer"; - echo " @@ -603,7 +558,7 @@ function lmb_news_tab( ) $play_priority = $tab[5]; $link_tag = ""; - $img_tag = "\"\""; + $img_tag = "\"\""; $height = 110; $play_tag=" {$link_tag}{$play_name} {$link_tag}{$img_tag}"; @@ -810,14 +765,20 @@ function lmb_playlist_cur( $play_type, $path, $row) for( $i = 0; $i < count($line); $i++, $row++) { - $play_tab = explode( "-", $line[$i]); - $play_info = lmb_play_info_get( $play_type, $play_tab[1], $play_tab[0]); - $css_row = ($row+1)%2+1; + $play_tab = explode( "-", $line[$i]); + $play_priority = $play_tab[0]; + $play_id = $play_tab[1]; - $url = "{$lmb_url}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; + if( ! file_exists( "{$path}/{$play_priority}-{$play_id}/.hide" ) || lmb_admin_is()) + { + $play_info = lmb_play_info_get( $play_type, $play_id, $play_priority); + $css_row = ($row+1)%2+1; - echo " \"\"{$play_info["name"]} {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]}  + $url = "{$lmb_url}?page=play&type={$play_type}&id={$play_tab[1]}&priority={$play_tab[0]}"; + + echo " \"\"{$play_info["name"]} {$play_info["month"]} {$play_info["year"]} {$play_info["comment"]}  "; + } } return ($row); @@ -1881,81 +1842,6 @@ function lmb_track_info( $play_type, $play_id, $play_priority, $track_id) -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Track Info */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_track_info_old( $play_type, $play_id, $play_priority, $track_id) -{ - global $lmb_url; - - - $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); - $height=220/8; - - if ($track_info["safe_creative"] != "") - { - $rowspan = 9; - } - else - { - $rowspan = 8; - } - - echo " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"; - - if ($track_info["safe_creative"] != "") - { - echo " - - - -"; - } - - echo " -
Group Name{$track_info["artist"]}\"\"
Album{$track_info["album"]}
Track Number{$track_info["id"]}
Track Name{$track_info["title"]}
Mix Name{$track_info["mix"]}
Composer{$track_info["composer"]}
Comment{$track_info["comment"]}
Length{$track_info["length"]}
Safe CreativeLink
-"; -} - - - /*--------------------------------------------------------------------------------------------------------------------*/ /* Track Lyrics */ /*--------------------------------------------------------------------------------------------------------------------*/ @@ -1969,7 +1855,7 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; - echo " + echo "
@@ -2001,50 +1887,6 @@ function lmb_track_lyrics( $play_type, $play_id, $play_priority, $track_id, $tra -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Track Lyrics */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_track_lyrics_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) -{ - $play_path = "discography/{$play_type}/{$play_priority}-{$play_id}"; - $cover_path = "{$play_path}/covers/{$play_id}-cover"; - $logo_path = "{$play_path}/logos/{$play_id}-logo"; - $track_path = "{$play_path}/tracks"; - $lyrics_file = "tracks/{$track_name}/{$track_mix}/lyrics.txt"; - - - echo " - - - - - - - -
\"\"  -
- "; - - - if( file_exists( "{$lyrics_file}")) - { - $lyrics_string = file_get_contents( "{$lyrics_file}"); - } - else - { - $lyrics_string = "No lyrics found...\n"; - } - - echo str_replace( "\n", "
\n ", "{$lyrics_string}"); - - echo "
-
-"; -} - - - /*--------------------------------------------------------------------------------------------------------------------*/ /* JPlayer Insert */ /*--------------------------------------------------------------------------------------------------------------------*/ @@ -2069,13 +1911,24 @@ function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $t $solution_value = $lmb_cookie_tab[$solution_cookie]; + if( "{$solution_value}" == "html, flash") + { + $html_class = "jp-on"; + $flash_class = "jp-off"; + } + else + { + $html_class = "jp-off"; + $flash_class = "jp-on"; + } + echo " - - + - +
  +   @@ -2138,7 +1991,7 @@ function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $t Update Required To play the media you will need to either update your browser to a recent version or update your Flash plugin. - + "; @@ -2150,12 +2003,12 @@ function lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $t /* - echo " + echo " "; */ echo "   
@@ -2239,16 +2092,12 @@ function lmb_track_intro( $play_type, $play_id, $play_priority, $track_id, $trac
- +
- +
- - - -/*--------------------------------------------------------------------------------------------------------------------*/ -/* Track Introduction */ -/*--------------------------------------------------------------------------------------------------------------------*/ - -function lmb_track_intro_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix) -{ - $play_path="discography/{$play_type}/{$play_priority}-{$play_id}"; - $cover_path="{$play_path}/covers/{$play_id}-cover"; - $logo_path="{$play_path}/logos/{$play_id}-logo"; - $track_path="{$play_path}/tracks"; - - $cover_size = 400; - $border1_size= $cover_size + 30; - $border2_size= $cover_size + 10; - - - echo " - - - -"; - -} - - - /*--------------------------------------------------------------------------------------------------------------------*/ /* Track Download */ /*--------------------------------------------------------------------------------------------------------------------*/ @@ -2506,8 +2257,9 @@ function lmb_track_page( $play_type, $play_id, $play_priority, $track_id) $track_info = lmb_track_info_get( $play_type, $play_id, $play_priority, $track_id); $track_title = "Track - {$track_info["title"]} ({$track_info["mix"]})"; - lmb_header( 4, "Langueur Monotone - Track Page", "/images/title-track.png", "Track", 962); +// lmb_header( 4, "Langueur Monotone - Track Page", "/images/title-track.png", "Track", 962); // lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 1234); + lmb_header( 4, "Langueur Monotone - {$track_title} Page", "/images/title-track.png", "Track", "track,{$track_info["title"]},{$track_info["title"]} {$track_info["mix"]}", 962); lmb_track_body( $play_type, $play_id, $play_priority, $track_id); lmb_footer(); } @@ -2535,9 +2287,6 @@ function lmb_download_zip( $directory, $file_list, $mode) case "DUMP": { passthru( "cd {$directory}; zip -0 -j -p - ${file_list}"); -// passthru( "cd {$directory}; zip -0 -j -p - ${file_list} >/tmp/toto.zip"); -// readfile("/tmp/toto.zip"); -// echo "passthru( cd {$directory}; zip -0 -j -p - ${file_list});"; break; } } @@ -2905,20 +2654,37 @@ function lmb_fl_page( $lmb_id, $lmb_name, $lmb_curver, $lmb_currel) /*--------------------------------------------------------------------------------------------------------------------*/ -/* Cookies Load */ +/* Cookies Set */ /*--------------------------------------------------------------------------------------------------------------------*/ -function lmb_Cookies_Load() +function lmb_cookie_set( $cookie_id, $cookie_value, $cookie_time) +{ + global $lmb_cookie_tab; + + + setcookie( $cookie_id, $cookie_value, time() + $cookie_time); + $lmb_cookie_tab["$cookie_id"] = $cookie_value; +// echo "set ($cookie_value) into ($cookie_id)"; +} + + + +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Cookie Load */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_cookie_load( $cookie_id, $cookie_defvalue) { global $lmb_cookie_tab; - $cookie_id = "jpsolution"; $cookie_value = $_COOKIE[ $cookie_id]; +// echo "load val ($cookie_value) for ($cookie_id)"; if( ! isset( $cookie_value)) { - $cookie_value = "html, flash"; + $cookie_value = $cookie_defvalue; +// echo "set def val ($cookie_defvalue) for ($cookie_id)"; } $lmb_cookie_tab[ $cookie_id] = $cookie_value; @@ -2926,26 +2692,48 @@ function lmb_Cookies_Load() +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Cookies Load */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_cookies_load() +{ + global $lmb_cookie_tab; + + + lmb_cookie_load( "jpsolution", "html, flash"); + lmb_cookie_load( "admin", ""); +} + + + +/*--------------------------------------------------------------------------------------------------------------------*/ +/* Cookie Update */ +/*--------------------------------------------------------------------------------------------------------------------*/ + +function lmb_cookie_update( $get_array) +{ + $cookie_id=$get_array["cookie_id"]; + + if( $cookie_id != "") + { + $cookie_value = $get_array["cookie_value"]; + + lmb_cookie_set( $cookie_id, $cookie_value, 360000); + } +} + + + /*--------------------------------------------------------------------------------------------------------------------*/ /* Get Proceed */ /*--------------------------------------------------------------------------------------------------------------------*/ function lmb_get_proceed( $get_array) { - global $lmb_cookie_tab; + lmb_admin_update(); + lmb_cookie_update( $get_array); - - $cookie_id=$get_array["cookie_id"]; - - if( $cookie_id != "") - { - $cookie_value = $get_array["cookie_value"]; - - setcookie( $cookie_id, $cookie_value, time() + 360000); - $lmb_cookie_tab["$cookie_id"] = $cookie_value; - } - - $page_id=$get_array["page"]; switch ($page_id) @@ -3027,7 +2815,13 @@ function lmb_get_proceed( $get_array) break; } - + + case "login": + { + lmb_login_page( $lmb_tab); + break; + } + default: { lmb_main_page( $lmb_tab); diff --git a/html/lmbrowse_config.inc b/html/lmbrowse_config.inc index 6248703..930f5ef 100644 --- a/html/lmbrowse_config.inc +++ b/html/lmbrowse_config.inc @@ -1,16 +1,16 @@
-
"; @@ -2284,104 +2133,6 @@ echo "

- - - - - - - - - - - - - - -
- - - - - - -
\"\"
-
- - - - - - -
-"; - - lmb_track_info_old( $play_type, $play_id, $play_priority, $track_id); - - - echo "
-
- - - - - - lmb_jplayer_insert( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); - -echo " - -
"; - -// \"\"
-
- - - - - - -
\"\"
-
- - - - - - -
-"; - - lmb_track_lyrics_old( $play_type, $play_id, $play_priority, $track_id, $track_name, $track_mix); - -echo "
-
-