Beispiel #1
0
    }
    ?>
" />
                </p>

                <p>
                    <label for="answer"><?php 
    print $PMF_LANG["ad_entry_content"];
    ?>
</label>
                </p>
                <noscript>Please enable JavaScript to use the WYSIWYG editor!</noscript>
                <textarea id="answer" name="answer" cols="72" rows="16" style="width: 640px; height: 480px;">
                <?php 
    if (isset($faqData['content'])) {
        print trim(PMF_String::htmlentities($faqData['content']));
    }
    ?>
                </textarea>
<?php 
    if ($action == 'copyentry') {
        $faqData['lang'] = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
    }
    if ($permission['addattachment']) {
        ?>
                <p>
                    <label><?php 
        print $PMF_LANG['ad_menu_attachments'];
        ?>
:</label>
<?php 
Beispiel #2
0
 /**
  * Returns the current URL
  *
  * @return string
  */
 public function getCurrentUrl()
 {
     if (!empty($_SERVER['HTTPS'])) {
         return 'https://' . $_SERVER['SERVER_NAME'] . PMF_String::htmlentities($_SERVER['REQUEST_URI']);
     } else {
         return 'http://' . $_SERVER['SERVER_NAME'] . PMF_String::htmlentities($_SERVER['REQUEST_URI']);
     }
 }
     $allUsers = false;
     $restrictedUsers = true;
 }
 // Group permissions
 $groupPermission = $faq->getPermission('group', $faqData['id']);
 if (count($groupPermission) == 0 || $groupPermission[0] == -1) {
     $allGroups = true;
     $restrictedGroups = false;
     $groupPermission[0] = -1;
 } else {
     $allGroups = false;
     $restrictedGroups = true;
 }
 // Set data for forms
 $faqData['title'] = isset($faqData['title']) ? PMF_String::htmlspecialchars($faqData['title']) : '';
 $faqData['content'] = isset($faqData['content']) ? trim(PMF_String::htmlentities($faqData['content'])) : '';
 $faqData['tags'] = isset($faqData['tags']) ? PMF_String::htmlspecialchars($faqData['tags']) : '';
 $faqData['keywords'] = isset($faqData['keywords']) ? PMF_String::htmlspecialchars($faqData['keywords']) : '';
 $faqData['author'] = isset($faqData['author']) ? PMF_String::htmlspecialchars($faqData['author']) : $user->getUserData('display_name');
 $faqData['email'] = isset($faqData['email']) ? PMF_String::htmlspecialchars($faqData['email']) : $user->getUserData('email');
 $faqData['isoDate'] = isset($faqData['date']) ? $faqData['date'] : date('Y-m-d H:i');
 $faqData['date'] = isset($faqData['date']) ? $date->format($faqData['date']) : $date->format(date('Y-m-d H:i'));
 $faqData['changed'] = isset($faqData['changed']) ? $faqData['changed'] : '';
 if (isset($faqData['comment']) && $faqData['comment'] == 'y') {
     $faqData['comment'] = ' checked="checked"';
 } elseif ($faqConfig->get('records.defaultAllowComments')) {
     $faqData['comment'] = ' checked="checked"';
 } else {
     $faqData['comment'] = '';
 }
 // Start header
            <tr>
                <td><?php 
                echo $PMF_LANG["ad_sess_browser"];
                ?>
</td>
                <td><?php 
                echo PMF_String::htmlentities($data[6]);
                ?>
</td>
            </tr>
            <tr>
                <td><?php 
                echo $PMF_LANG["ad_sess_ip"];
                ?>
:</td>
                <td><?php 
                echo PMF_String::htmlentities($data[3]);
                ?>
</td>
            </tr>
<?php 
            }
        }
    }
    ?>
        </tbody>
        </table>
<?php 
} else {
    echo $PMF_LANG['err_NotAuth'];
}