mixer / index.php

<?php
	require_once('config.php');
  include_once('lib/geg.php');
  $page = "mixer";
  if (isset($_GET['url']) && !empty($_GET['url']))
    $page = trim(strtolower($_GET['url']));
  $homepage = $_SERVER['SERVER_NAME'];
  header('content-type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html xmlns:og="http://opengraphprotocol.org/schema/">
  <head>
    <meta charset="utf-8" />
		<meta property="og:title" content="YouTube Mixer" />
		<meta property="og:type" content="website" />
		<meta property="og:url" content="<?php echo BASE_URL ?>" />
		<title>Tecső Mixer!</title>
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL ?>css/hejes.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL ?>css/yt.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo BASE_URL ?>css/jquery-ui-1.7.3.custom.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<?php echo BASE_URL ?>js/jquery-ui-1.7.3.custom.min.js"></script>
    <script type="text/javascript" src="<?php echo BASE_URL ?>js/jquery.template.min.js"></script>
    <script type="text/javascript" src="<?php echo BASE_URL ?>js/swfobject.js"></script>
    <script type="text/javascript" src="<?php echo BASE_URL ?>js/kbd.js"></script>
    <script type="text/javascript" src="<?php echo BASE_URL ?>js/sense.js"></script>
	</head>

  <body>
    <div id="container">
      <div id="content">
        <?php geg_render($page); ?>
      </div>

      <div class="clear"></div>

      <div id="footer">
        <a href="<?php echo BASE_URL ?>">mixer</a>
        &nbsp;
        <a href="<?php echo BASE_URL ?>about">about</a>
        &nbsp;
        <a href="http<?php echo empty($_SERVER['HTTPS']) ? '' : 's' ?>://<?php echo $homepage ?>/"><?php echo $homepage ?></a>
        &nbsp;
        |
        &nbsp;
        <a href="javascript:;" onclick="Mixer.reset()">reset mixer</a>
      </div>
    </div>

    <script type="text/javascript">
      $(document).ready(function()
      {
      	// check if localStorage is available
      	if ('localStorage' in window && window['localStorage'] !== null)
      	{
      		Mixer.storeConfig = true;
	      	var storedConfig = localStorage.getItem('config');
					if (storedConfig)
						Mixer.config = JSON.parse(storedConfig);
				}

        <?php
          printf("Mixer.init(%s, %s, %s, %s, '%s', '%s');",
            _g('f', 'Mixer.config.fade'), _g('m', 'Mixer.config.mastervol'),
            _g('ch1', 'Mixer.config.maxvols[0]'), _g('ch2', 'Mixer.config.maxvols[1]'),
						_g('v1', ''), _g('v2', ''))
        ?>

        // init keyboard support
        Keyboard.init();
      });
    </script>

    <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    <script type="text/javascript">
      try
      {
	      var pageTracker = _gat._getTracker("UA-1329669-6");
	      pageTracker._setDomainName(".<?php echo $homepage ?>");
	      pageTracker._trackPageview();
      } catch(err) { }
    </script>
  </body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.