示例#1
0
                            <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');
        ?>
示例#2
0
         $classList .= isset(class_implements($classname)['CHV\\FeedModule']) ? $c . "{$classname} v" . $classname::getVersion() : '';
         $c = ', ';
     }
     echo 'Welcome to CHV\\Feeds v' . CHV\FeedModule::modVersion . ' with XMLight v' . CHV\XMLight::getVersion() . '<br />' . 'Modules: ' . $classList . '<br /> Have a nice day!';
     die;
 }
 /* End of hello block. */
 $limit = (int) $_REQUEST['limit'];
 if (!$limit || $limit < 0) {
     $limit = $softLimit;
 }
 if ($limit > $softLimit) {
     if ($limit > $hardLimit) {
         return $handler->issue404();
     }
     if (is_null(CHV\getSetting('api_v1_key')) || !G\timing_safe_compare(CHV\getSetting('api_v1_key'), $_REQUEST['key'])) {
         return $handler->issue404();
     }
 }
 $username = $_REQUEST['user'] ?: null;
 $category_url_key = $_REQUEST['category'] ?: null;
 $categories = $handler::getVar('categories');
 $request = strtolower($handler->request[0]);
 if (!array_key_exists($request, $feedTypes)) {
     return $handler->issue404();
 }
 $type = $feedTypes[$request];
 if ($category_url_key) {
     foreach ($categories as $v) {
         if ($v['url_key'] == $category_url_key) {
             $category = $v;
示例#3
0
 public function setCategory(array $category)
 {
     $this->category = $category;
     if (!isset($this->user)) {
         $this->overrideElements(array('title' => $this->category['name'], 'description' => $this->category['description'] ?: 'No description', 'url' => $this->category['url']));
         $this->setLogo(array('url' => CHV\get_system_image_url(CHV\getSetting('logo_image')), 'title' => $this->category['name'], 'link' => $this->category['url']));
     }
 }