if (!$user || $user['status'] !== 'valid') { return $handler->issue404(); } } date_default_timezone_set('UTC'); try { $list = new CHV\Listing(); $list->setType('images'); $list->setOffset(0); $list->setLimit($limit); // how many results? $list->setSortType('date'); // date | size | views $list->setSortOrder('desc'); // asc | desc $list->setRequester(CHV\Login::getUser()); /* Select feed type */ $feed = new $type(); if (!$feed instanceof CHV\FeedModule) { throw new Exception("{$type} is not a valid feed module!"); } /* Check for category */ if ($category) { $list->setCategory($category['id']); $feed->setCategory($category); } /* Check for username */ if ($user) { $list->setWhere('WHERE user_username = :u'); $list->bind(':u', $user['username']); $feed->setUser($user);
<li><a href="<?php echo G\get_base_url(sprintf("logout?auth_token=%s", get_auth_token())); ?> "><?php _se('Sign out'); ?> </a></li> </ul> </div> </div> </li> <?php } ?> <?php if (CHV\getSetting('website_mode') == 'public' or CHV\getSetting('website_mode') == 'private' and CHV\Login::getUser()) { ?> <li data-nav="about" class="phone-hide pop-btn pop-btn-delayed"> <span class="top-btn-text"><span class="icon icon-info tablet-hide laptop-hide desktop-hide"></span><span class="text phone-hide phablet-hide"><?php _se('About'); ?> </span><span class="arrow-down"></span></span> <div class="pop-box arrow-box arrow-box-top anchor-right"> <div class="pop-box-inner pop-box-menu"> <ul> <li><a href="<?php echo G\get_base_url('page/tos'); ?> "><?php _se('Terms of service'); ?>