コード例 #1
0
<p><?php 
echo \tpp\lang('logged_in_as_lbl') . ' &nbsp' . $this->logged_in_as;
?>
</p>
<a class="logout" href='#' id="logout"><?php 
echo \tpp\lang('logout_lbl');
?>
</a>

<a href="help/help.html"><?php 
echo \tpp\lang('help_lbl');
?>
</a>
<a href="<?php 
echo tpp\config('website_url');
?>
"><?php 
echo \tpp\lang('website_lbl');
?>
</a>

<select name="lang-list">
    <?php 
echo '<option selected>' . $this->cur_lang . '</option>';
foreach ($this->langs as $lang) {
    if ($lang != $this->cur_lang) {
        echo '<option value="' . $lang . '">' . $lang . '</option>';
    }
}
?>
</select>
コード例 #2
0
<ul class="filters">
    <?php 
foreach ($this->filters as $key => $filter) {
    list($_, $title, $colour, $visible) = $filter;
    if ($visible) {
        if (\tpp\config('hide_tips') === true) {
            $title = '';
        }
        echo '<li><span id="' . $key . '" class="bk-' . $colour . '" ' . 'title="' . $title . '">' . \tpp\no_underscores($key) . '</span></li>';
    }
}
?>
</ul>
コード例 #3
0
 private function _valid_password($password)
 {
     $succ = preg_match('/' . \tpp\config('password_pattern') . '/i', $password) == 1;
     return $succ;
 }
コード例 #4
0
 private function _rebuild_raw(\StdClass $parsed)
 {
     global $term;
     $done = $action = $tags = $date = $note = '';
     $pfx = $term['task_prefix'] . ' ';
     $text = $parsed->text;
     if ($parsed->done) {
         $done = $term['done_prefix'];
     }
     if (!empty($parsed->tags)) {
         $tags = ' ' . $this->_add_tag_symbol($parsed->tags);
     }
     if (!empty($parsed->date)) {
         $date = strftime(\tpp\config('date_format'), $parsed->date);
         $date = ' ' . $this->_add_tag_symbol($date);
     }
     if ($parsed->action > 0) {
         $action = ' ' . str_repeat($term['action_suffix'], $parsed->action);
     }
     $raw = $done . $pfx . $text . $tags . $date . $action;
     return $raw;
 }
コード例 #5
0
echo $this->tags;
?>
                </div>
            </div>

            <div id="footer">
                <?php 
echo $this->footer;
?>
            </div>
            
        </div>

        <div class="version">
            <span>Version: <?php 
echo \tpp\config('version_number');
?>
</span>
            <?php 
if (SHOW_ERRORS) {
    ?>
                <span id="purge-session">Clear Session!</span>
                <span id="purge-cache">Clear Cache!</span>
            <?php 
}
?>
        </div>
    </div>

    <input id="page-load"        type="hidden" value="true" />
    <input id="page-address"     type="hidden" value="<?php 
コード例 #6
0
                    <input class="email" name="email" type="text" placeholder="<?php 
echo \tpp\lang('email_lbl');
?>
" required>   
                    <input class="password" name="password1" type="password" placeholder="<?php 
echo \tpp\lang('password_lbl');
?>
" autocomplete="off" required pattern="<?php 
echo \tpp\config('password_pattern');
?>
">
                    <input class="password" name="password2" type="password" placeholder="<?php 
echo \tpp\lang('repeatpassword_lbl');
?>
" autocomplete="off" required pattern="<?php 
echo \tpp\config('password_pattern');
?>
">
                </fieldset>
                <fieldset class="actions">
                    <input class="submit" type="submit" name="submit-register" value="<?php 
echo \tpp\lang('register_lbl');
?>
">
                </fieldset>

            </div>
        </div>
        
        <div id="login-err">
            <ul>