function content_56689b751b84b1_69140192($_smarty_tpl)
    {
        $_smarty_tpl->properties['nocache_hash'] = '136494454356689b75195246_38124278';
        ?>
<div class="page_footer">
    <ul class="footer_breadcrumbs">
        <!--<li>Home></li>-->
        <!--<li>Browse Decks</li>-->
    </ul>
    <?php 
        if (isset($_SESSION['userid'])) {
            ?>
    <p>You Are <?php 
            $_smarty_tpl->tpl_vars['copename'] = new Smarty_Variable(User::getCopenameFromId($_SESSION['userid']), null, 0);
            echo $_smarty_tpl->tpl_vars['copename']->value;
            ?>
</p>
    <?php 
        }
        ?>
</div><?php 
    }
Example #2
0
<?php

require_once "config.php";
if (!isset($_GET['userid'])) {
    $_GET['userid'] = "any";
} elseif ($_GET['userid'] != $_SESSION['userid']) {
    $config['smarty']->assign('copename', User::getCopenameFromId($_GET['userid']));
}
if (!isset($_GET['search']) or $_GET['search'] == "") {
    $_GET['search'] = null;
}
if (!isset($_GET['limit'])) {
    $_GET['limit'] = 100;
}
if (!isset($_GET['offset'])) {
    $_GET['offset'] = 0;
}
try {
    $decks = Deck::getDecks($_GET['userid'], $_GET['search'], $_GET['limit'], $_GET['offset']);
    $config['smarty']->assign('decks', $decks);
    $config['smarty']->display('deck/browse_decks.tpl');
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}