Exemple #1
0
 /**
  * Content rendern
  */
 private function renderContent()
 {
     if (!\fpcm\classes\baseconfig::canConnect()) {
         $this->content = $this->language->translate('GLOBAL_NOTFOUND2');
         return false;
     }
     $xmlString = simplexml_load_file('https://nobody-knows.org/category/fanpress-cm/feed/');
     if (!$xmlString) {
         $this->content = $this->language->translate('GLOBAL_NOTFOUND2');
         return false;
     }
     $items = $xmlString->channel->item;
     $idx = 0;
     $content = array();
     $content[] = '<table class="fpcm-ui-table fpcm-ui-rssnews fpcm-ui-large-td">';
     foreach ($items as $item) {
         if ($idx >= 10) {
             break;
         }
         $content[] = '<tr class="fpcm-small-text">';
         $content[] = '  <td class="fpcm-ui-articlelist-open">';
         $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-openlink-btn" href="' . \fpcm\model\view\helper::escapeVal(strip_tags($item->link)) . '" target="_blank" title="' . $this->language->translate('GLOBAL_OPENNEWWIN') . '">' . $this->language->translate('GLOBAL_OPENNEWWIN') . '</a>';
         $content[] = '  </td>';
         $content[] = '  <td>';
         $content[] = '  <strong>' . \fpcm\model\view\helper::escapeVal(strip_tags($item->title)) . '</strong><br>';
         $content[] = '  <span>' . date($this->config->system_dtmask, strtotime($item->pubDate)) . '</span>';
         $content[] = '  </td>';
         $content[] = '</tr>';
         $idx++;
     }
     $content[] = '</table>';
     $this->content = implode(PHP_EOL, $content);
     $this->cache->write($this->content, $this->config->system_cache_timeout);
 }
Exemple #2
0
 /**
  * Content rendern
  */
 private function renderContent()
 {
     $userlist = new \fpcm\model\users\userList();
     $content = array();
     $content[] = '<table class="fpcm-ui-table fpcm-ui-users fpcm-ui-large-td">';
     $items = $userlist->getUsersActive();
     /* @var $item \fpcm\model\users\author */
     foreach ($items as $item) {
         $emailAddress = \fpcm\model\view\helper::escapeVal($item->getEmail());
         $content[] = '<tr class="fpcm-small-text">';
         $content[] = '  <td class="fpcm-ui-editbutton-col">';
         $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-email-btn" href="mailto:' . $emailAddress . '" target="_blank" title="' . $this->language->translate('GLOBAL_WRITEMAIL') . '">' . $this->language->translate('GLOBAL_WRITEMAIL') . '</a>';
         $content[] = '  </td>';
         $content[] = '  <td>';
         $content[] = '  <strong>' . \fpcm\model\view\helper::escapeVal($item->getDisplayname()) . '</strong><br>';
         $content[] = '  <span>' . $emailAddress . '</span>';
         $content[] = '  </td>';
         $content[] = '</tr>';
     }
     $content[] = '</table>';
     $this->content = implode(PHP_EOL, $content);
     $this->cache->write($this->content, $this->config->system_cache_timeout);
 }
        \fpcm\model\view\helper::linkButton($comment->getArticleLink(), 'GLOBAL_FRONTEND_OPEN', '', 'fpcm-ui-button-blank fpcm-openlink-btn', '_blank');
    }
    ?>
            <?php 
    \fpcm\model\view\helper::editButton($comment->getEditLink() . '&mode=' . $commentsMode, $comment->getEditPermission(), $commentsMode == 2 ? 'fpcm-ui-commentlist-link' : '');
    ?>
        </td>
        <td><strong title="<?php 
    print substr(\fpcm\model\view\helper::escapeVal($comment->getText()), 0, 100);
    ?>
..."><?php 
    print \fpcm\model\view\helper::escapeVal($comment->getName());
    ?>
</strong></td>
        <td><?php 
    print \fpcm\model\view\helper::escapeVal($comment->getEmail());
    ?>
</td>
        <td><?php 
    \fpcm\model\view\helper::dateText($comment->getCreatetime());
    ?>
</td>
        <td class="fpcm-td-commentlist-meta"><?php 
    include __DIR__ . '/metainfo.php';
    ?>
</td>
        <td class="fpcm-td-select-row">
        <?php 
    if ($comment->getEditPermission()) {
        ?>
            <?php 
Exemple #4
0
    foreach ($articles as $articleId => $article) {
        ?>
            <tr>
                <td class="fpcm-ui-articlelist-open">
                    <?php 
        \fpcm\model\view\helper::linkButton($article->getArticleLink(), 'GLOBAL_FRONTEND_OPEN', '', 'fpcm-ui-button-blank fpcm-openlink-btn');
        ?>
                    <?php 
        \fpcm\model\view\helper::editButton($article->getEditLink(), $article->getEditPermission());
        ?>
                </td>
                <td><strong title="<?php 
        print substr(\fpcm\model\view\helper::escapeVal(strip_tags($article->getContent())), 0, 128);
        ?>
..."><?php 
        print \fpcm\model\view\helper::escapeVal(strip_tags($article->getTitle()));
        ?>
</strong></td>
                <td class="fpcm-td-articlelist-times"><?php 
        include dirname(__DIR__) . '/times.php';
        ?>
</td>
                <td class="fpcm-td-articlelist-meta"><?php 
        include dirname(__DIR__) . '/metainfo.php';
        ?>
</td>
                <td class="fpcm-td-select-row">
                <?php 
        if ($article->getEditPermission()) {
            ?>
                    
Exemple #5
0
?>
</th>
    </tr>
    
    <?php 
\fpcm\model\view\helper::notFoundContainer($databaseLogs, 2);
?>

    <tr class="fpcm-td-spacer"><td></td></tr>  
    <?php 
foreach ($databaseLogs as $value) {
    ?>
    <?php 
    if (!is_object($value)) {
        continue;
    }
    ?>
    <tr>
        <td><?php 
    print $value->time;
    ?>
</td>
        <td><?php 
    print nl2br(\fpcm\model\view\helper::escapeVal($value->text));
    ?>
</td>
    </tr>
    <?php 
}
?>
</table>
Exemple #6
0
                <?php 
foreach ($files as $filename) {
    ?>
                <tr>
                    <td class="fpcm-ui-smiley-listimg"><img src="<?php 
    print $smiley->getFilename() ? $smiley->getSmileyUrl() : $smiley->getSmileyUrl() . $filename;
    ?>
" alt="<?php 
    print $filename;
    ?>
" <?php 
    print $smiley->getWhstring();
    ?>
></td>
                    <td><?php 
    print \fpcm\model\view\helper::escapeVal($filename);
    ?>
</td>
                    <td><?php 
    \fpcm\model\view\helper::radio('smiley[filename]', '', $filename, '', '', $smiley->getFilename());
    ?>
</td>
                </tr>
                <?php 
}
?>
            </table>
        </td>
    </tr>                    
</table>            
Exemple #7
0
</th>
                    </tr>
                    <?php 
foreach ($terms as $term) {
    ?>
                    <tr>
                        <td class="fpcm-ui-editbutton-col"><?php 
    \fpcm\model\view\helper::editButton($term->getEditLink());
    ?>
</td>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($term->getSearchterm());
    ?>
</td>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($term->getReplaceterm());
    ?>
</td>
                        <td class="fpcm-td-select-row"><?php 
    fpcm\model\view\helper::checkbox('ids[]', 'fpcm-list-selectbox', $term->getId(), '', '', false);
    ?>
</td>
                    </tr>
                    <?php 
}
?>
                </table>
            </div>
        </div>
    </div>
Exemple #8
0
                        <td class="fpcm-ui-smiley-listimg"><img src="<?php 
    print $smiley->getSmileyUrl();
    ?>
" alt="<?php 
    print $smiley->getFilename();
    ?>
" <?php 
    print $smiley->getWhstring();
    ?>
></td>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($smiley->getFilename());
    ?>
</td>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($smiley->getSmileyCode());
    ?>
</td>
                        <td class="fpcm-td-select-row"><?php 
    fpcm\model\view\helper::checkbox('smileyids[]', 'fpcm-list-selectbox', base64_encode(serialize(array($smiley->getFilename(), $smiley->getSmileyCode()))), '', '', false);
    ?>
</td>
                    </tr>
                    <?php 
}
?>
                </table>
            </div>
        </div>
        
        <div class="<?php 
Exemple #9
0
        <td class="fpcm-ui-modules-key"><?php 
    print \fpcm\model\view\helper::escapeVal($module->getKey());
    ?>
</td>
        <td class="fpcm-ui-modules-version fpcm-ui-center" id="fpcm-module-version<?php 
    print $module->getKey();
    ?>
"><?php 
    print \fpcm\model\view\helper::escapeVal($module->getVersion());
    ?>
</td>
        <td class="fpcm-ui-modules-version fpcm-ui-center" id="fpcm-module-versionrem<?php 
    print $module->getKey();
    ?>
"><?php 
    print \fpcm\model\view\helper::escapeVal($module->getVersionRemote());
    ?>
</td>
        <td class="fpcm-td-select-row">
        <?php 
    if ($module->isInstalled()) {
        ?>
            <?php 
        fpcm\model\view\helper::checkbox('moduleksys[]', 'fpcm-list-selectbox', base64_encode($module->getKey()), '', 'cb_' . str_replace('/', '', $module->getKey()), false);
        ?>
        <?php 
    } else {
        ?>
            <?php 
        fpcm\model\view\helper::checkbox('moduleksys[]', 'fpcm-list-selectbox', base64_encode($module->getKey() . '_version' . $module->getVersionRemote()), '', 'cb_' . str_replace('/', '', $module->getKey()), false);
        ?>
Exemple #10
0
    <?php 
\fpcm\model\view\helper::notFoundContainer($revisions, 4);
?>

    <tr class="fpcm-td-spacer"><td></td></tr>
    <?php 
foreach ($revisions as $revisionTime => $revisionTitle) {
    ?>
        <tr>
            <td class="fpcm-ui-articlelist-open"><?php 
    \fpcm\model\view\helper::linkButton($article->getEditLink() . '&rev=' . $revisionTime, 'EDITOR_STATUS_REVISION_SHOW', '', 'fpcm-ui-button-blank fpcm-openlink-btn');
    ?>
</td>
            <td><strong><?php 
    print \fpcm\model\view\helper::escapeVal(strip_tags($revisionTitle));
    ?>
</strong></td>
            <td class="fpcm-ui-revision-time"><?php 
    fpcm\model\view\helper::dateText($revisionTime);
    ?>
</td>
            <td class="fpcm-td-select-row"><?php 
    fpcm\model\view\helper::checkbox('revisionIds[]', 'fpcm-list-selectboxrevisions', $revisionTime, '', 'chbx' . $revisionTime, false);
    ?>
</td>
        </tr>
    <?php 
}
?>
</table>
 /**
  * Content rendern
  */
 private function renderContent()
 {
     $ownPermissions = $this->permissions->check(array('article' => 'edit'), array('comment' => 'edit'));
     $allPermissions = $this->permissions->check(array('article' => 'editall'), array('comment' => 'editall'));
     $commenList = new \fpcm\model\comments\commentList();
     $userlist = new \fpcm\model\users\userList();
     $comments = $commenList->getCommentsByLimit(10, 0);
     $users = array_flip($userlist->getUsersNameList());
     $content = array();
     $content[] = '<table class="fpcm-ui-table fpcm-ui-articles fpcm-ui-large-td">';
     foreach ($comments as $comment) {
         $createInfo = $this->language->translate('COMMMENT_LASTCHANGE', array('{{username}}' => isset($users[$comment->getChangeuser()]) ? $users[$comment->getChangeuser()] : $this->language->translate('GLOBAL_NOTFOUND'), '{{time}}' => date($this->config->system_dtmask, $comment->getChangetime())));
         if (!$comment->getChangeuser() && !$comment->getChangetime()) {
             $createInfo = '';
         }
         $content[] = '<tr class="fpcm-small-text">';
         $content[] = '  <td class="fpcm-ui-articlelist-open">';
         $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-openlink-btn" href="' . $comment->getArticleLink() . '" target="_blank" title="' . $this->language->translate('GLOBAL_FRONTEND_OPEN') . '">' . $this->language->translate('GLOBAL_FRONTEND_OPEN') . '</a>';
         if ($comment->getEditPermission()) {
             $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-ui-button-edit fpcm-loader" href="' . $comment->getEditLink() . '&amp;mode=1" title="' . $this->language->translate('GLOBAL_EDIT') . '">' . $this->language->translate('GLOBAL_EDIT') . '</a>';
         } else {
             $content[] = '  <span class="fpcm-ui-button fpcm-ui-button-blank fpcm-ui-button-edit fpcm-ui-readonly" title="' . $this->language->translate('GLOBAL_EDIT') . '">' . $this->language->translate('GLOBAL_EDIT') . '</span>';
         }
         $content[] = '  </td>';
         $content[] = '  <td>';
         $content[] = '  <strong>' . \fpcm\model\view\helper::escapeVal(strip_tags($comment->getName())) . '</strong> @ ' . date($this->config->system_dtmask, $comment->getCreatetime()) . '<br>';
         $content[] = '  <span>' . $createInfo . '</span>';
         $content[] = '  </td>';
         $content[] = '  <td class="fpcm-ui-dashboard-recentarticles-meta">';
         if ($comment->getSpammer()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('COMMMENT_SPAM') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-flag fa-stack-1x fa-inverse"></span></span>';
         }
         if ($comment->getApproved()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('COMMMENT_APPROVE') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-check-circle-o fa-rotate-90 fa-stack-1x fa-inverse"></span></span>';
         }
         if ($comment->getPrivate()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('COMMMENT_PRIVATE') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-eye-slash fa-stack-1x fa-inverse"></span></span>';
         }
         $content[] = '  </td>';
         $content[] = '</tr>';
     }
     $content[] = '</table>';
     $this->content = implode(PHP_EOL, $content);
     $this->cache->write($this->content, $this->config->system_cache_timeout);
 }
Exemple #12
0
</th>
    </tr>    
    
    <?php 
\fpcm\model\view\helper::notFoundContainer($errorLogs, 2);
?>
    
    <tr class="fpcm-td-spacer"><td></td></tr> 
    <?php 
foreach ($errorLogs as $value) {
    ?>
    <?php 
    if (!is_object($value)) {
        continue;
    }
    ?>
    <tr>
        <td><?php 
    print $value->time;
    ?>
</td>
        <td><?php 
    print str_replace('&NewLine;', '<br>', \fpcm\model\view\helper::escapeVal($value->text));
    ?>
</td>

    </tr>
    <?php 
}
?>
</table>
 /**
  * Content rendern
  */
 private function renderContent()
 {
     $ownPermissions = $this->permissions->check(array('article' => 'edit'));
     $allPermissions = $this->permissions->check(array('article' => 'editall'));
     $articleList = new \fpcm\model\articles\articlelist();
     $userlist = new \fpcm\model\users\userList();
     $conditions = array('draft' => -1, 'approval' => -1, 'limit' => array(10, 0), 'orderby' => array('createtime DESC'));
     $articles = $articleList->getArticlesByCondition($conditions);
     $users = array_flip($userlist->getUsersNameList());
     $content = array();
     $content[] = '<table class="fpcm-ui-table fpcm-ui-articles fpcm-ui-large-td">';
     foreach ($articles as $article) {
         $createInfo = $this->language->translate('EDITOR_AUTHOREDIT', array('{{username}}' => isset($users[$article->getCreateuser()]) ? $users[$article->getCreateuser()] : $this->language->translate('GLOBAL_NOTFOUND'), '{{time}}' => date($this->config->system_dtmask, $article->getCreatetime())));
         $content[] = '<tr class="fpcm-small-text">';
         $content[] = '  <td class="fpcm-ui-articlelist-open">';
         $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-openlink-btn" href="' . $article->getArticleLink() . '" target="_blank" title="' . $this->language->translate('GLOBAL_FRONTEND_OPEN') . '">' . $this->language->translate('GLOBAL_FRONTEND_OPEN') . '</a>';
         if ($article->getEditPermission()) {
             $content[] = '  <a class="fpcm-ui-button fpcm-ui-button-blank fpcm-ui-button-edit fpcm-loader" href="' . $article->getEditLink() . '" title="' . $this->language->translate('GLOBAL_EDIT') . '">' . $this->language->translate('GLOBAL_EDIT') . '</a>';
         } else {
             $content[] = '  <span class="fpcm-ui-button fpcm-ui-button-blank fpcm-ui-button-edit fpcm-ui-readonly" title="' . $this->language->translate('GLOBAL_EDIT') . '">' . $this->language->translate('GLOBAL_EDIT') . '</span>';
         }
         $content[] = '  </td>';
         $content[] = '  <td>';
         $content[] = '  <strong>' . \fpcm\model\view\helper::escapeVal(strip_tags(substr(rtrim($article->getTitle(), '.!?'), 0, 64))) . '...</strong><br>';
         $content[] = '  <span>' . $createInfo . '</span>';
         $content[] = '  </td>';
         $content[] = '  <td class="fpcm-ui-dashboard-recentarticles-meta">';
         if ($article->getPinned()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('EDITOR_STATUS_PINNED') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-thumb-tack fa-rotate-90 fa-stack-1x fa-inverse"></span></span>';
         }
         if ($article->getDraft()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('EDITOR_STATUS_DRAFT') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-file-text-o fa-stack-1x fa-inverse"></span></span>';
         }
         if ($article->getPostponed()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('EDITOR_STATUS_POSTPONETO') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-clock-o fa-stack-1x fa-inverse"></span></span>';
         }
         if ($article->getApproval()) {
             $content[] = '      <span class="fa-stack fa-fw fpcm-ui-status-1" title="' . $this->language->translate('EDITOR_STATUS_APPROVAL') . '"><span class="fa fa-square fa-stack-2x"></span><span class="fa fa-thumbs-o-up fa-stack-1x fa-inverse"></span></span>';
         }
         $content[] = '  </td>';
         $content[] = '</tr>';
     }
     $content[] = '</table>';
     $this->content = implode(PHP_EOL, $content);
     $this->cache->write($this->content, $this->config->system_cache_timeout);
 }
Exemple #14
0
                    <tr class="fpcm-td-spacer"><td></td></tr>

                    <?php 
foreach ($itemList as $item) {
    ?>
                    <tr>
                        <td class="fpcm-ui-editbutton-col"><?php 
    \fpcm\model\view\helper::editButton($item->getEditLink());
    ?>
</td>
                        <td><strong><?php 
    print \fpcm\model\view\helper::escapeVal($item->getSearchtext());
    ?>
</strong></td>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($item->getReplacementtext());
    ?>
</td>
                        <td class="fpcm-td-select-row"><?php 
    fpcm\model\view\helper::checkbox('ids[]', 'fpcm-list-selectbox', $item->getId(), '', '', false);
    ?>
</td>
                    </tr>      
                    <?php 
}
?>
                </table>
                
                <div class="<?php 
\fpcm\model\view\helper::buttonsContainerClass();
?>
Exemple #15
0
    </h1>

    <form method="post" action="<?php 
print $FPCM_SELF;
?>
?module=system/permissions">
        <div class="fpcm-tabs-general" id="fpcm-tabs-permissions">
            <ul>
                <?php 
foreach ($permissions as $group => $permissionData) {
    ?>
                <li><a href="#tabs-permissions-group<?php 
    print $group;
    ?>
"><?php 
    print \fpcm\model\view\helper::escapeVal($userRolls[$group]);
    ?>
</a></li>
                
                <?php 
}
?>
                
            </ul>

        <?php 
foreach ($permissions as $group => $permissionData) {
    ?>
            <?php 
    if (!isset($userRolls[$group])) {
        continue;
Exemple #16
0
    $FPCM_LANG->write('USERS_ROLLS_NAME');
    ?>
</th>  
                        <th class="fpcm-th-select-row"></th>         
                    </tr>
                    <tr class="fpcm-td-spacer"><td></td></tr>
                    <?php 
    foreach ($usersRollList as $rollName => $rollid) {
        ?>
                    <tr>
                        <td class="fpcm-ui-editbutton-col"><?php 
        \fpcm\model\view\helper::editButton($FPCM_BASEMODULELINK . 'users/editroll&id=' . $rollid, $rollid <= 3 ? false : true);
        ?>
</td>
                        <td><strong><?php 
        print \fpcm\model\view\helper::escapeVal($rollName);
        ?>
</strong></td>
                        <td class="fpcm-td-select-row"><input type="radio" name="rollids" value="<?php 
        print $rollid;
        ?>
" <?php 
        if ($rollid <= 3) {
            ?>
disabled="disabled"<?php 
        }
        ?>
></td>
                    </tr>      
                    <?php 
    }
Exemple #17
0
?>
</th>
                        <th class="fpcm-td-select-row"></th>         
                    </tr>
                    <tr class="fpcm-td-spacer"><td></td></tr>
                    
                    <?php 
foreach ($categorieList as $cat) {
    ?>
                    <tr>
                        <td class="fpcm-ui-editbutton-col"><?php 
    \fpcm\model\view\helper::editButton($cat->getEditLink());
    ?>
</td>
                        <td><strong><?php 
    print \fpcm\model\view\helper::escapeVal($cat->getName());
    ?>
</strong></td>
                        <td><?php 
    if ($cat->getIconPath()) {
        ?>
 <img src="<?php 
        print $cat->getIconPath();
        ?>
" alt="<?php 
        print $cat->getName();
        ?>
"><?php 
    }
    ?>
</td>
Exemple #18
0
fpcm\model\view\helper::checkbox('fpcm-select-all', '', '', '', 'fpcm-select-all', false);
?>
</th>
                    </tr>
                    
                    <?php 
\fpcm\model\view\helper::notFoundContainer($ipList, 5);
?>
                    
                    <tr class="fpcm-td-spacer"><td></td></tr>                    
                    <?php 
foreach ($ipList as $value) {
    ?>
                    <tr>
                        <td><?php 
    print \fpcm\model\view\helper::escapeVal($value->getIpaddress());
    ?>
</td>
                        <td><?php 
    print isset($users[$value->getUserid()]) ? $users[$value->getUserid()]->getDisplayName() : $FPCM_LANG->translate('GLOBAL_NOTFOUND');
    ?>
</td>
                        <td><?php 
    \fpcm\model\view\helper::dateText($value->getIptime());
    ?>
</td>
                        <td class="fpcm-td-iplist-meta">
                            <div class="fpcm-ui-editor-metabox-right fpcm-ui-iplist-metabox-right">
                                <span class="fa-stack fa-fw fpcm-ui-editor-metainfo fpcm-ui-status-<?php 
    print $value->getNocomments();
    ?>