Subversion Repositories cheapmusic

Rev

Rev 87 | Rev 106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87 Rev 104
Line 432... Line 432...
432
    echo $_SESSION["discogs"];
432
    echo $_SESSION["discogs"];
433
}
433
}
434
else {
434
else {
435
    if ($_SESSION["lowestPrice"]["All"] > 0.00 || !empty($_SESSION["searchTerm"])) {
435
    if ($_SESSION["lowestPrice"]["All"] > 0.00 || !empty($_SESSION["searchTerm"])) {
436
        echo $_SESSION["discogs"];
436
        echo $_SESSION["discogs"];
437
        echo "<div id=\"productTable\" class=\"container bg-secondary border pt-2\">";
437
        echo "<div id=\"productTable\" class=\"container bg-secondary border py-2\">";
438
        echo "<h4 class=\"text-center py-2\">Store Offers</h4>";
438
        echo "<h4 class=\"text-center py-2\">Store Offers</h4>";
-
 
439
        if ($_SESSION["lowestPrice"]["All"] > 0.00) {
439
        echo printResultHeader();
440
            echo printResultHeader();
-
 
441
        }
440
        echo printResult();
442
        echo printResult();
441
        echo "</div>";
443
        echo "</div>";
442
    }
444
    }
443
    else if (!empty($_SESSION["discogs"])) {
445
    else if (!empty($_SESSION["discogs"])) {
444
        echo $_SESSION["discogs"];
446
        echo $_SESSION["discogs"];
Line 500... Line 502...
500
        </form>
502
        </form>
501
        <p>Copyright &#169; <?php echo @date("Y"); ?> FindCheapMusic.com. All rights reserved.</p>
503
        <p>Copyright &#169; <?php echo @date("Y"); ?> FindCheapMusic.com. All rights reserved.</p>
502
    </footer>
504
    </footer>
503
 
505
 
504
    <script src="js/dr.min.js" defer integrity="sha384-X0Mk9TxrJE6sBB+QYyhf98BYJoaQ1lrD5Qyf9qWDXn1nmdgICFL45QzblqlepIcs" crossorigin="anonymous"></script>
506
    <script src="js/dr.min.js" defer integrity="sha384-X0Mk9TxrJE6sBB+QYyhf98BYJoaQ1lrD5Qyf9qWDXn1nmdgICFL45QzblqlepIcs" crossorigin="anonymous"></script>
505
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-105816859-2"></script>
-
 
506
    <script>var quotes = [
507
    <script>var quotes = [
507
    <?php
508
    <?php
508
if ($file = fopen("snippets/header.txt", "r")) {
509
if ($file = fopen("snippets/header.txt", "r")) {
509
    while (($line = fgets($file)) !== false) {
510
    while (($line = fgets($file)) !== false) {
510
        echo "\"" . trim($line) . "\",";
511
        echo "\"" . trim($line) . "\",";
511
    }
512
    }
512
    fclose($file);
513
    fclose($file);
513
}
514
}
514
?>
515
?>
515
    ]; setInterval(function() { $("#textslide").html(quotes[Math.floor(Math.random() * (quotes.length + 1))]); }, 5 * 1000);
516
    ]; setInterval(function() { $("#textslide").html(quotes[Math.floor(Math.random() * (quotes.length + 1))]); }, 5 * 1000);
516
    
-
 
517
    <!-- Global site tag (gtag.js) - Google Analytics -->
-
 
518
    window.dataLayer = window.dataLayer || [];
-
 
519
    function gtag(){dataLayer.push(arguments);}
-
 
520
    gtag('js', new Date());
-
 
521
    gtag('config', 'UA-105816859-2');    
-
 
522
    </script>
517
    </script>
523
</body>
518
</body>
524
</html>
519
</html>
525
<?php MySessionHandler::commit(session_id()); ?>
520
<?php MySessionHandler::commit(session_id()); ?>