Вход Регистрация
Файл: index.php
Строк: 82
<!DOCTYPE html>

<?php

  $app_path 
"";

$match iconv('CP1251''utf-8'$match);
  
$uri iconv('CP1251','utf-8'$uri);
  
$uri trim($_SERVER['REQUEST_URI'], '/');
  
$match = array();
  
preg_match("/^(.*)/now/"$uri$match);
  
$match substr($match[1], 0100);
  
$match str_replace('-'' '$match);
 
// $match = ucwords(strtolower($match));
 // $match = htmlspecialchars($match, ENT_COMPAT, 'CP1251');

    
  
$match iconv('utf-8''CP1251'$match);
  
//$match = iconv('CP1251', 'utf-8', $match);
 
$q $_GET["q"];
?>


<html>
<head>
<title><?=$q?>Музыкальный плеер</title>

<META HTTP-EQUIV="content-type" CONTENT="TEXT/HTML; CHARSET=UTF-8">


  <link href='http://fonts.googleapis.com/css?family=Fredoka+One' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js"></script>
  <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.1/backbone-min.js"></script>
  <script type="text/javascript" src="/js/smasher.js"></script>
<link rel="stylesheet" href="/css/smasher.css">
</head>











<body class="centered">
<div class="container">
  <table class="table"><tr><td class="search">
    <form id="qform">
      <h1 class="pagetitle"><a href="<?= $app_path ?>/">
        Музыкальный поисковик
      </a></h1>
      <div class="tagline">Найдём любую песню.</div>
      <input id="q"/>
      <? if(rand(010) < 5) {
?>
      <div class="warning">
        Введите название песни или композиции
      </div>
      
      <? } else { ?>
      <div class="tip">
        Для быстрого поиска нажми Shift+enter:
      </div>
      <? ?>
      <div class="logos">
        <img src="/images/logos_white_retina.png">
      </div>
      <div class="details">
       
        
 <div class="share42init"></div>
<script type="text/javascript" src="/share42/share42.js"></script> 
        
      </div>
    </form>
  </td></tr></table>










<? /* начало подгрузки странцы jquery */ ?>

  <div class="content">
    <div id="services"></div>

    <div class="footer">
      <a href="http://koderam.info">WM мастерская</a>
    </div>
    <div class="playContainerSpacer"></div>
  </div>
  <div class="playContainer">
    <div class="playHeader">
      <span class="info"></span>
      <span class="minimizeButton"><img src="images/minimize.png" width="30" height="30"></span>
      <span class="closeButton"><img src="images/close.png" width="30" height="30"></span>
    </div>
    <iframe class="playFrame" name="playFrame"></iframe>
    <!-- Spotify protocol uri target iframe, workaround to prevent Grooveshark onbeforeunload -->
    <iframe class="spotifyTarget" name="spotifyTarget"></iframe>
  </div>
</div>
<!-- Templates -->
<script type="text/template" id="tpl-track">
  <li>
    <a href="{{ url }}" data-autoplayurl="{{ autoPlayUrl }}" target="m">{% if (artist) { %}{{ artist }} - {% } %}{{ track }}</a>
    {% if (popularity !== undefined) { %}
    <span class="album withPopularity">{{ album }}</span>
    <span class="popularity"><span class="popularityValue" style="width: {{ popularity }}%"></span></span>
    {% } else { %}
    <span class="album">{{ album }}</span>
    {% } %}
  </li>
</script>
<script type="text/template" id="tpl-service">
  <div class="col" id="{{ apiName }}">
    <h2>
    <a href="{{ apiURL }}" target="_blank"><img src="/images/{{ apiName }}.png" class="logo"></a>
    {{ apiNiceName }} <span class="/num-results"></span></h2>
    <div class="loading">
      <img class="spinner" src="/images/spinner.gif">
      <div class="refresh">Refresh <img src="/images/refresh.png"></div>
    </div>
    <div class="note">{{ note }}</div>
    <div class="results"></div>
    <div class="toggleMore">More</div>
  </div>
</script>
<script type="text/template" id="tpl-playheader">
  {% if (artist) { %}{{ artist }} - {% } %}{{ track }}
</script>








</body>
</html>
Онлайн: 2
Реклама