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 86 locations

phpmyfaq/add.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-09-16
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
// Check user permissions
31
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowNewFaqsForGuests'))) {

phpmyfaq/admin/ajax.attachment.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2010-12-20
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$attId = PMF_Filter::filterInput(INPUT_GET, 'attId', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.autosave.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-07-07
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
$do = PMF_Filter::filterInput(INPUT_GET, 'do', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.category.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-12-26
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.comment.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2009-03-20
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
$ajax_action = PMF_Filter::filterInput(INPUT_POST, 'ajaxaction', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.config_list.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2005-12-26
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

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2009-04-06
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$groupId = PMF_Filter::filterInput(INPUT_GET, 'group_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.image.php 1 location

@@ 19-26 (lines=8) @@
16
 * @link      http://www.phpmyfaq.de
17
 * @since     2015-10-10
18
 */
19
if (!defined('IS_VALID_PHPMYFAQ')) {
20
    $protocol = 'http';
21
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
22
        $protocol = 'https';
23
    }
24
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
25
    exit();
26
}
27
28
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
29
$upload = PMF_Filter::filterInput(INPUT_GET, 'image', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.ondemandurl.php 1 location

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

phpmyfaq/admin/ajax.records.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2009-03-31
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_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
$csrfTokenPost = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.search.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2011-08-24
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$searchTerm = PMF_Filter::filterInput(INPUT_GET, 'searchterm', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.trans.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2009-05-12
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_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
$csrfToken  = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.user.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2009-04-04
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$userId = PMF_Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.verifyurl.php 1 location

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

phpmyfaq/admin/category.add.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-12-20
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
?>
31
        <header class="row">

phpmyfaq/admin/category.cut.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-12-25
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
    $category = new PMF_Category($faqConfig, [], false);

phpmyfaq/admin/category.delete.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-12-20
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/category.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-12-20
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/category.move.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2004-04-29
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2006-09-18
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
?>
31
        <header>

phpmyfaq/admin/category.translate.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2006-09-10
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2005-12-26
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2013-02-05
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
$faqSystem = new PMF_System();

phpmyfaq/admin/export.file.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2005-11-02
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->perm->checkRight($user->getUserId(), 'export')) {
32
    $categoryId = PMF_Filter::filterInput(INPUT_POST, 'catid', FILTER_VALIDATE_INT);

phpmyfaq/admin/export.main.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-04-17
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-02-26
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
?>
31
            </div>

phpmyfaq/admin/glossary.add.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2005-09-15
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2005-09-15
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2005-09-15
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/header.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-26
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
$httpHeader = new PMF_Helper_Http();
30
$httpHeader->setContentType('text/html');

phpmyfaq/admin/instances.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2012-04-16
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2012-03-16
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-02-23
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-23
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/record.comments.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2007-03-04
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 class="row"><h2 class="page-header"><i aria-hidden="true" class="fa fa-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.delatt.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-02-24
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
printf(
31
    '<header><h2 class="page-header"><i aria-hidden="true" class="fa fa-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-23
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(), 'editbt') ||
30
    $user->perm->checkRight($user->getUserId(), 'addbt')) && !PMF_Db::checkOnEmptyTable('faqcategories')) {

phpmyfaq/admin/record.questions.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-24
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.search.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2011-09-29
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/report.export.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2011-01-12
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->perm->checkRight($user->getUserId(), 'reports')) {
32
    $useCategory = PMF_Filter::filterInput(INPUT_POST, 'report_category', FILTER_VALIDATE_INT);

phpmyfaq/admin/report.main.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2011-01-12
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2011-01-12
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
 * @link      http://www.phpmyfaq.de
20
 * @since     2003-02-23
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-24
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
    $perpage = 50;

phpmyfaq/admin/stat.ratings.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-24
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
    $category = new PMF_Category($faqConfig, [], false);

phpmyfaq/admin/stat.search.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2003-03-30
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
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-24
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
    $sid = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);

phpmyfaq/admin/stopwordsconfig.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2009-04-01
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/tags.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2003-02-24
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/trans.add.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2009-05-11
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
    echo $PMF_LANG['err_NotAuth'];

phpmyfaq/admin/trans.edit.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2009-05-11
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
 * @link      http://www.phpmyfaq.de
19
 * @since     2009-05-11
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
if (isset($_SESSION['trans'])) {

phpmyfaq/admin/user.php 1 location

@@ 23-30 (lines=8) @@
20
 * @link      http://www.phpmyfaq.de
21
 * @since     2005-12-15
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

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2002-08-27
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
$captcha = new PMF_Captcha($faqConfig);
32
$oGlossary = new PMF_Glossary($faqConfig);

phpmyfaq/ask.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-09-17
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
// Check user permissions
31
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowQuestionsForGuests'))) {

phpmyfaq/attachment.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2009-06-23
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
set_time_limit(0);
31

phpmyfaq/contact.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-09-16
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('contact', 0);

phpmyfaq/glossary.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-09-03
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('glossary', 0);

phpmyfaq/login.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-02-12
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
$loginMessage = '';
31
if (!is_null($error)) {

phpmyfaq/news.php 1 location

@@ 23-30 (lines=8) @@
20
 * @link      http://www.phpmyfaq.de
21
 * @since     2006-07-23
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
$captcha = new PMF_Captcha($faqConfig);
33
$comment = new PMF_Comment($faqConfig);

phpmyfaq/password.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-03-26
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('forgot_password', 0);

phpmyfaq/register.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2008-01-25
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('registration', 0);

phpmyfaq/send2friend.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-09-16
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
$captcha->setSessionId($sids);

phpmyfaq/show.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-08-27
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
$currentCategory = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
31
$subCategoryContent = '';

phpmyfaq/sitemap.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2005-08-21
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('sitemap', 0);

phpmyfaq/translate.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2006-11-12
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
$captcha->setSessionId($sids);

phpmyfaq/ucp.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2012-01-12
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 instanceof PMF_User) {
31
    try {

phpmyfaq/writecomment.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2002-08-29
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
$captcha->setSessionId($sids);

phpmyfaq/open.php 1 location

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

phpmyfaq/admin/elasticsearch.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link      http://www.phpmyfaq.de
19
 * @since     2015-12-25
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') && $faqConfig->get('search.enableElasticsearch')) {
31

phpmyfaq/admin/system.php 1 location

@@ 22-29 (lines=8) @@
19
 * @link      http://www.phpmyfaq.de
20
 * @since     2013-01-02
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->perm->checkRight($user->getUserId(), 'editconfig')) {
32
    $faqSystem = new PMF_System();

phpmyfaq/admin/ajax.elasticsearch.php 1 location

@@ 23-30 (lines=8) @@
20
 * @since     2015-12-26
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
33
$esInstance = new PMF_Instance_Elasticsearch($faqConfig);

phpmyfaq/admin/ajax.markdown.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link      http://www.phpmyfaq.de
18
 * @since     2015-03-30
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
$answer = PMF_Filter::filterInput(INPUT_POST, 'text', FILTER_SANITIZE_STRING);
30

phpmyfaq/search.php 1 location

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

phpmyfaq/overview.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2015-09-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
try {
30
    $faqsession->userTracking('overview', 0);

phpmyfaq/admin/ajax.tags.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2005-12-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
// Send headers
30
$http = new PMF_Helper_Http();

phpmyfaq/admin/group.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2005-12-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
if (!$user->perm->checkRight($user->getUserId(), 'editgroup') &&
30
    !$user->perm->checkRight($user->getUserId(), 'delgroup') &&

phpmyfaq/admin/record.show.php 1 location

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

phpmyfaq/admin/record.add.php 1 location

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

phpmyfaq/admin/record.save.php 1 location

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

phpmyfaq/admin/backup.main.php 1 location

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

phpmyfaq/admin/stat.main.php 1 location

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

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/admin/att.main.php 1 location

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

phpmyfaq/admin/backup.import.php 1 location

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

phpmyfaq/admin/category.edit.php 1 location

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