All pastes #383897 Raw Edit

Stuff

public php v1 · immutable
·published 2007-03-06 18:05 UTC
rendered paste body
<?phpdefine('TM_INDEX', 1);define('USER_CONTROLS', 1);define('ROOT', dirname(__FILE__));require ROOT.'/include/header.php';$iPage = (isset($_REQUEST['page'])&&is_numeric($_REQUEST['page']))?$_REQUEST['page']*10:0;if (array_key_exists('id_tm', $_REQUEST)){}elseif (array_key_exists('search_id', $_REQUEST)||array_key_exists('category', $_REQUEST)||array_key_exists('author', $_REQUEST)||array_key_exists('keyword', $_REQUEST)||array_key_exists('style', $_REQUEST)||array_key_exists('type', $_REQUEST)){        // sems like user wants to browse templates        if ($str_list = $TMShop->TemplateSearch())        {        ?>        <h2><?=$TMShop->iNumResults;?> results found</h2>        <div class="posth2"></div>        <ul class="pagination"><?=$TMShop->HtmlBrowsingNavigation();?></ul>        <ul class="thumbnail-ul">                <?=$str_list;?>        </ul>        <?php        }}elseif (isset($_GET['q'])&&$_GET['q']==404)        echo 'Sorry, but this page does not exist anymore';require ROOT.'/include/footer.php';?>