* The Initial Developer of the Original Code is released for external use * with permission from NetJapan, Inc. IT Administration Group. */ if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } header("Expires: Thu, 7 Apr 1977 14:47:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Content-type: text/html"); header("Vary: Negotiate,Accept"); $linkverifier = new PMF_Linkverifier($user->getLogin()); if ($linkverifier->isReady() == false) { if (count(ob_list_handlers()) > 0) { ob_clean(); } print "disabled"; exit; } $linkverifier->loadConfigurationFromDB(); $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); $lang = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING); $lookup = PMF_Filter::filterInput(INPUT_GET, 'lookup', FILTER_VALIDATE_INT); if (count(ob_list_handlers()) > 0) { ob_clean(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<label class="col-lg-2 control-label"><?php print $PMF_LANG["msgSearchWord"]; ?> :</label> <div class="col-lg-4"> <input class="form-control" type="search" name="searchterm" autofocus value="<?php print $searchterm; ?> " /> </div> </div> <?php if ($linkVerifier->isReady() == true) { ?> <div class="form-group"> <div class="col-lg-offset-2 col-lg-4"> <label class="checkbox"> <input type="checkbox" name="linkstate" value="linkbad" /> <?php print $PMF_LANG['ad_linkcheck_searchbadonly']; ?> </label> </div> </div> <?php } ?>
* @link http://www.phpmyfaq.de * @since 2003-02-23 */ if (!defined('IS_VALID_PHPMYFAQ')) { header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } printf("<h2>%s</h2>\n", $PMF_LANG['ad_entry_aor']); if ($permission['editbt'] || $permission['delbt']) { $categoryRelations = new PMF_Category_Relations(); $categoryData = new PMF_Category_Tree_DataProvider_SingleQuery($LANGCODE); $categoryLayout = new PMF_Category_Layout(new PMF_Category_Tree_Helper(new PMF_Category_Tree($categoryData))); $linkverifier = new PMF_Linkverifier($user->getLogin()); $comment = new PMF_Comment(); $faq = new PMF_Faq(); if ($linkverifier->isReady()) { link_verifier_javascript(); } $cond = $numCommentsByFaq = $numActiveByCat = array(); $internalSearch = $linkState = $searchterm = ''; $searchcat = $currentcategory = 0; $orderby = 1; $sortby = null; $linkState = PMF_Filter::filterInput(INPUT_POST, 'linkstate', FILTER_SANITIZE_STRING); $searchcat = PMF_Filter::filterInput(INPUT_POST, 'searchcat', FILTER_VALIDATE_INT); $searchterm = PMF_Filter::filterInput(INPUT_POST, 'searchterm', FILTER_SANITIZE_STRIPPED); if (!is_null($linkState)) { $cond[SQLPREFIX . 'faqdata.links_state'] = 'linkbad'; $linkState = ' checked="checked" '; $internalSearch .= '&linkstate=linkbad'; }
} header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); exit; } printf('<header><h2><i class="icon-pencil"></i> %s</h2><header>', $PMF_LANG['ad_entry_aor']); if ($permission['editbt'] || $permission['delbt']) { $category = new PMF_Category($faqConfig, array(), false); $category->setUser($currentAdminUser); $category->setGroups($currentAdminGroups); $category->transform(0); // Set the Category for the helper class $categoryHelper = new PMF_Helper_Category(); $categoryHelper->setCategory($category); $category->buildTree(); $linkverifier = new PMF_Linkverifier($faqConfig, $user->getLogin()); if ($linkverifier->isReady()) { ?> <script type="text/javascript"> <!-- function getImageElement(id, lang) { return $('#imgurl_' + lang + '_' + id); } function getSpanElement(id, lang) { return $('#spanurl_' + lang + '_' + id); } function getDivElement(id, lang) {