GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 8-8 lines in 80 locations

phpmyfaq/add.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-09-16
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
// Check user permissions
30
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowNewFaqsForGuests'))) {

phpmyfaq/admin/ajax.attachment.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\Response;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
$attId      = PMF_Filter::filterInput(INPUT_GET, 'attId', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.autosave.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$response = new JsonResponse;
32

phpmyfaq/admin/ajax.category.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$response = new JsonResponse;
32

phpmyfaq/admin/ajax.comment.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$ajax_action = PMF_Filter::filterInput(INPUT_POST, 'ajaxaction', FILTER_SANITIZE_STRING);
32

phpmyfaq/admin/ajax.config_list.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2005-12-26
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
require PMF_ROOT_DIR . '/inc/libs/twitteroauth/twitteroauth.php';
31

phpmyfaq/admin/ajax.group.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$response = new JsonResponse;
32

phpmyfaq/admin/ajax.ondemandurl.php 1 location

@@ 29-36 (lines=8) @@
26
 * @since     2005-09-30
27
 */
28
29
if (!defined('IS_VALID_PHPMYFAQ')) {
30
    $protocol = 'http';
31
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
32
        $protocol = 'https';
33
    }
34
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
35
    exit();
36
}
37
38
$httpHeader = new PMF_Helper_Http();
39
$httpHeader->setContentType('text/html');

phpmyfaq/admin/ajax.records.php 1 location

@@ 23-30 (lines=8) @@
20
21
use Symfony\Component\HttpFoundation\Response;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
$ajax_action = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
33

phpmyfaq/admin/ajax.search.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
$searchTerm = PMF_Filter::filterInput(INPUT_GET, 'searchterm', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.tags_list.php 1 location

@@ 23-30 (lines=8) @@
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
use PMF\Helper\ResponseWrapper;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
$response = new JsonResponse;
33
$responseWrapper = new ResponseWrapper($response);

phpmyfaq/admin/ajax.trans.php 1 location

@@ 23-30 (lines=8) @@
20
21
use Symfony\Component\HttpFoundation\JsonResponse;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
$response = new JsonResponse;
33
$ajax_action = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.user.php 1 location

@@ 23-30 (lines=8) @@
20
use Symfony\Component\HttpFoundation\JsonResponse;
21
use PMF\Helper\ResponseWrapper;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
33
$userId     = PMF_Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.verifyurl.php 1 location

@@ 32-39 (lines=8) @@
29
use Symfony\Component\HttpFoundation\Response;
30
use PMF\Helper\ResponseWrapper;
31
32
if (!defined('IS_VALID_PHPMYFAQ')) {
33
    $protocol = 'http';
34
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
35
        $protocol = 'https';
36
    }
37
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
38
    exit();
39
}
40
41
$response = new Response;
42
$responseWrapper = new ResponseWrapper($response);

phpmyfaq/admin/att.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2010-12-13
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT);
30
$page = 1 > $page ? 1 : $page;

phpmyfaq/admin/backup.import.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$csrfToken = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);
30

phpmyfaq/admin/backup.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'backup')) {
30
    $twig->loadTemplate('backup/main.twig')

phpmyfaq/admin/category.add.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-12-20
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'addcateg')) {
31
    $parentId = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT, 0);

phpmyfaq/admin/category.cut.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-12-25
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), "editcateg")) {
30

phpmyfaq/admin/category.delete.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-12-20
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'delcateg')) {
30
    $category = new PMF_Category($faqConfig, [], false);

phpmyfaq/admin/category.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-03-10
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
30

phpmyfaq/admin/category.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-12-20
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
30
    $templateVars = array(

phpmyfaq/admin/category.move.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2004-04-29
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
30
    $id         = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);

phpmyfaq/admin/category.showstructure.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2006-09-18
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
31

phpmyfaq/admin/category.translate.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2006-09-10
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'editcateg')) {
31
    $category = new PMF_Category($faqConfig, [], false);

phpmyfaq/admin/configuration.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2005-12-26
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'editconfig')) {
31
    // actions defined by url: user_action=

phpmyfaq/admin/dashboard.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2013-02-05
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
$faqTableInfo = $faqConfig->getDb()->getTableStatus();
31

phpmyfaq/admin/export.file.php 1 location

@@ 23-30 (lines=8) @@
20
21
use Symfony\Component\HttpFoundation\Response;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
//
33
// GET Parameters Syntax:

phpmyfaq/admin/export.main.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-04-17
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
?>
30
        <header>
31
            <div class="col-lg-12">

phpmyfaq/admin/footer.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-02-26
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
$templateVars = array(
31
    'PMF_LANG'            => $PMF_LANG,

phpmyfaq/admin/glossary.add.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2005-09-15
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
?>
29
        <header class="row">
30
            <div class="col-lg-12">

phpmyfaq/admin/glossary.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2005-09-15
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
?>
29
        <header class="row">
30
            <div class="col-lg-12">

phpmyfaq/admin/glossary.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2005-09-15
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
?>
29
        <header class="row">
30
            <div class="col-lg-12">

phpmyfaq/admin/group.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2005-12-15
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if (!$user->perm->checkRight($user->getUserId(), 'editgroup') &&
31
    !$user->perm->checkRight($user->getUserId(), 'delgroup') &&

phpmyfaq/admin/header.php 1 location

@@ 22-29 (lines=8) @@
19
20
use PMF\Helper\AdminMenuBuilder;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$httpHeader = new PMF_Helper_Http();
32
$httpHeader->setContentType('text/html');

phpmyfaq/admin/instances.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-04-16
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
?>
30
    <header>

phpmyfaq/admin/instances.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-03-16
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
?>
30
    <header class="row">

phpmyfaq/admin/news.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-02-23
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
$news = new PMF_News($faqConfig);
31

phpmyfaq/admin/pwd.change.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-23
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'passwd')) {
30
    $templateVars = array(

phpmyfaq/admin/record.add.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-02-23
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'editbt') || $user->perm->checkRight($user->getUserId(), 'addbt')) {
31

phpmyfaq/admin/record.comments.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2007-03-04
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
printf(
30
    '<header><h2 class="page-header"><i class="fa fa-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.delatt.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
printf(
30
    '<header><h2 class="page-header"><i class="fa fa-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.filemanager.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2014-04-21
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$rootPath   = dirname(dirname(__DIR__)) . 'images/';
30
$fileSystem = new PMF_Filesystem($rootPath);

phpmyfaq/admin/record.questions.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
?>
29
        <header class="row">
30
            <div class="col-lg-12">

phpmyfaq/admin/record.save.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-23
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$category = new PMF_Category($faqConfig, [], false);
30
$category->setUser($currentAdminUser);

phpmyfaq/admin/record.search.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2011-09-29
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
?>
29
        <header>
30
            <div class="col-lg-12">

phpmyfaq/admin/record.show.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-02-23
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
?>
30
        <header>
31
            <div class="col-lg-12">

phpmyfaq/admin/report.export.php 1 location

@@ 23-30 (lines=8) @@
20
21
use Symfony\Component\HttpFoundation\Response;
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
if ($user->perm->checkRight($user->getUserId(), 'reports')) {
33
    

phpmyfaq/admin/report.main.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2011-01-12
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
if ($user->perm->checkRight($user->getUserId(), 'reports')) {
31
?>

phpmyfaq/admin/report.view.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2011-01-12
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
?>
30
        <header class="row">
31
            <div class="col-lg-12">

phpmyfaq/admin/stat.adminlog.php 1 location

@@ 22-29 (lines=8) @@
19
 * @since     2003-02-23
20
 */
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
$logging = new PMF_Logging($faqConfig);
32

phpmyfaq/admin/stat.browser.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'viewlog')) {
30

phpmyfaq/admin/stat.main.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-02-24
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
?>
30
        <header>
31
            <div class="col-lg-12">

phpmyfaq/admin/stat.ratings.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'viewlog')) {
30

phpmyfaq/admin/stat.search.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2003-03-30
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
?>
30
        <header class="row">
31
            <div class="col-lg-12">

phpmyfaq/admin/stat.show.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-24
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'viewlog')) {
30

phpmyfaq/admin/stopwordsconfig.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-04-01
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if ($user->perm->checkRight($user->getUserId(), 'editconfig')) {
30
    printf(

phpmyfaq/admin/trans.add.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-05-11
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if (!$user->perm->checkRight($user->getUserId(), "addtranslation")) {
30
    unset($_SESSION['trans']);

phpmyfaq/admin/trans.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-05-11
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if (!$user->perm->checkRight($user->getUserId(), "edittranslation")) {
30
    echo $PMF_LANG['err_NotAuth'];

phpmyfaq/admin/trans.list.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2009-05-11
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
clearstatcache();
31
unset($_SESSION['trans']);

phpmyfaq/admin/user.php 1 location

@@ 23-30 (lines=8) @@
20
 * @since     2005-12-15
21
 */
22
23
if (!defined('IS_VALID_PHPMYFAQ')) {
24
    $protocol = 'http';
25
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
26
        $protocol = 'https';
27
    }
28
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
29
    exit();
30
}
31
32
if ($user->perm->checkRight($user->getUserId(), 'edituser') ||
33
    $user->perm->checkRight($user->getUserId(), 'deluser') ||

phpmyfaq/artikel.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2002-08-27
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
$captcha     = new PMF_Captcha($faqConfig);
31
$oGlossary   = new PMF_Glossary($faqConfig);

phpmyfaq/ask.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-09-17
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
// Check user permissions
30
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowQuestionsForGuests'))) {

phpmyfaq/attachment.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-06-23
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
set_time_limit(0);
30

phpmyfaq/contact.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-09-16
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
try {
30
    $faqsession->userTracking('contact', 0);

phpmyfaq/glossary.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-09-03
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
try {
30
    $faqsession->userTracking('glossary', 0);

phpmyfaq/instantresponse.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2007-03-18
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
try {
31
    $faqsession->userTracking('instantresponse', 0);

phpmyfaq/login.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-02-12
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
if (is_null($error)) {
30
    $loginMessage = '<p>' . $PMF_LANG['ad_auth_insert'] . '</p>';

phpmyfaq/main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-08-23
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$news = new PMF_News($faqConfig);
30

phpmyfaq/news.php 1 location

@@ 24-31 (lines=8) @@
21
22
use Symfony\Component\HttpFoundation\RedirectResponse;
23
24
if (!defined('IS_VALID_PHPMYFAQ')) {
25
    $protocol = 'http';
26
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
27
        $protocol = 'https';
28
    }
29
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
30
    exit();
31
}
32
33
$captcha = new PMF_Captcha($faqConfig);
34
$comment = new PMF_Comment($faqConfig);

phpmyfaq/open.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-09-17
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
try {
30
    $faqsession->userTracking('open_questions', 0);

phpmyfaq/password.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-03-26
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
try {
30
    $faqsession->userTracking('forgot_password', 0);

phpmyfaq/register.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2008-01-25
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
try {
31
    $faqsession->userTracking('registration', 0);

phpmyfaq/search.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\RedirectResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
try {
32
    $faqsession->userTracking('fulltext_search', 0);

phpmyfaq/send2friend.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-09-16
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$captcha = new PMF_Captcha($faqConfig);
30
$captcha->setSessionId($sids);

phpmyfaq/show.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-08-27
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$currentCategory     = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
30
$subCategoryContent  = '';

phpmyfaq/sitemap.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2005-08-21
19
 */
20
21
if (!defined('IS_VALID_PHPMYFAQ')) {
22
    $protocol = 'http';
23
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
24
        $protocol = 'https';
25
    }
26
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
27
    exit();
28
}
29
30
try {
31
    $faqsession->userTracking('sitemap', 0);

phpmyfaq/translate.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2006-11-12
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$captcha = new PMF_Captcha($faqConfig);
30
$captcha->setSessionId($sids);

phpmyfaq/ucp.php 1 location

@@ 22-29 (lines=8) @@
19
20
use Symfony\Component\HttpFoundation\RedirectResponse;
21
22
if (!defined('IS_VALID_PHPMYFAQ')) {
23
    $protocol = 'http';
24
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
25
        $protocol = 'https';
26
    }
27
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
28
    exit();
29
}
30
31
if ($user instanceof PMF_User) {
32

phpmyfaq/writecomment.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2002-08-29
18
 */
19
20
if (!defined('IS_VALID_PHPMYFAQ')) {
21
    $protocol = 'http';
22
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
        $protocol = 'https';
24
    }
25
    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
    exit();
27
}
28
29
$captcha = new PMF_Captcha($faqConfig);
30
$captcha->setSessionId($sids);