Example #1
0
$faq->setGroups($current_groups);
//
// Create a new Category object
//
$category = new PMF_Category($faqConfig, $current_groups, true);
$category->setUser($current_user);
//
// Create a new Tags object
//
$oTag = new PMF_Tags($faqConfig);
//
// Found a record ID?
//
$id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);
if (!is_null($id)) {
    $title = ' - ' . $faq->getRecordTitle($id);
    $keywords = ',' . $faq->getRecordKeywords($id);
    $metaDescription = $faq->getRecordPreview($id);
} else {
    $id = '';
    $title = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
    $keywords = '';
    $metaDescription = $faqConfig->get('main.metaDescription');
}
//
// found a solution ID?
//
$solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT);
if (!is_null($solutionId)) {
    $title = ' -  powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion');
    $keywords = '';
Example #2
0
//
$faq = new PMF_Faq($current_user, $current_groups);
//
// Create a new Category object
//
$category = new PMF_Category($current_user, $current_groups);
//
// Create a new Tags object
//
$oTag = new PMF_Tags();
//
// Found a record ID?
//
$id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);
if (!is_null($id)) {
    $title = ' - ' . $faq->getRecordTitle($id);
    $keywords = ' ' . $faq->getRecordKeywords($id);
} else {
    $id = '';
    $title = ' -  powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion');
    $keywords = '';
}
//
// found a solution ID?
//
$solution_id = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT);
if (!is_null($solution_id)) {
    $title = ' -  powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion');
    $keywords = '';
    $a = $faq->getIdFromSolutionId($solution_id);
    if (is_array($a)) {
Example #3
0
            <span style="font-weight: bold;">
                <a href="mailto:<?php 
            print $faqcomment['email'];
            ?>
"><?php 
            print $faqcomment['user'];
            ?>
</a>
                | <?php 
            print date("Y-m-d", $faqcomment['date']);
            ?>
                | <a href="<?php 
            printf("../?action=artikel&cat=%d&id=%d&artlang=%s", $faqcomment['category_id'], $faqcomment['record_id'], $LANGCODE);
            ?>
"><?php 
            print $faq->getRecordTitle($faqcomment['record_id']);
            ?>
</a>
            </span><br/>         
            <?php 
            print PMF_String::htmlspecialchars($faqcomment['content']);
            ?>
        </td>
    </tr>
    <tr>
        <td colspan="3"><input class="submit" type="submit" value="<?php 
            print $PMF_LANG["ad_entry_delete"];
            ?>
" name="submit" /></td>
    </tr>
<?php