android or iPhone devices. We provide fast and relevant search. Hope you enjoy staying here!</p> <div id="fb-root"></div> <div class="fb-like" data-href="https://www.facebook.com/pages/Mp3Cooll/342836852560201" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> <a href="https://www.facebook.com/mp3coollmusic" target="_blank">Mp3Cooll Facebook Page</a> </div> <div class="sidebar-module sidebar-now-playing"> <div class="label label-info label-info-custom">Now playing</div> <ul class="list-inline"> <?php $artists = getLastQueries(25); ?> <?php foreach ($artists as $artist) { ?> <li> <a href="/<?php echo urlclean($artist, '-'); ?> .html"><?php echo $artist; ?> </a> </li> <?php }
$app = new \Slim\Slim(['templates.path' => TEMPLATES_DIR]); /** * Main page */ $app->get('/', function () use($app) { $results = Memcache\Handler::factory()->cache('maintop', Memcache\Handler::DAY, function () { $xml = new SimpleXMLElement(file_get_contents('http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topsongs/limit=30/xml')); return json_encode($xml); }); $app->render('layout.php', ['page' => 'main', 'results' => json_decode($results, true)['entry'], 'title' => 'Download mp3 free | Quick Search music | Download music for free', 'description' => 'Download free most popular mp3 and listen online music just now. Watch music video online']); }); /** * Last requests */ $app->get('/now.html', function () use($app) { $app->render('layout.php', ['page' => 'now', 'results' => getLastQueries(30), 'title' => 'Now Playing On Mp3Cooll.com', 'description' => 'Users listen now on mp3cooll.com']); }); /** * Disclamer route */ $app->get('/disclamer.html', function () use($app) { $app->render('layout.php', ['page' => 'disclamer', 'title' => 'Disclamer | Mp3Cooll.com', 'description' => 'Download mp3 and listen online song just now unlimited. Watch video']); }); /** * Search route */ $app->get('/:query.html', function ($query) use($app) { if (banPage($query)) { header('Status: 404 Not Found'); echo '<h1>Page not found</h1>'; exit;