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 81 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
$captcha = new PMF_Captcha($faqConfig);
30
$captcha->setSessionId($sids);

phpmyfaq/admin/ajax.attachment.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2010-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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30
$attId      = PMF_Filter::filterInput(INPUT_GET, 'attId', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.autosave.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-07-07
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
$do = PMF_Filter::filterInput(INPUT_GET, 'do', FILTER_SANITIZE_STRING);
30

phpmyfaq/admin/ajax.category.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2012-12-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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30

phpmyfaq/admin/ajax.comment.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-03-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
$ajax_action = PMF_Filter::filterInput(INPUT_POST, 'ajaxaction', FILTER_SANITIZE_STRING);
30

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

@@ 20-27 (lines=8) @@
17
 * @since     2009-04-06
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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30
$groupId    = PMF_Filter::filterInput(INPUT_GET, 'group_id', FILTER_VALIDATE_INT);

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

@@ 21-28 (lines=8) @@
18
 * @since     2009-03-31
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
$ajax_action   = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$csrfTokenPost = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.search.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2011-08-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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30
$searchTerm = PMF_Filter::filterInput(INPUT_GET, 'searchterm', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.tags_list.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/ajax.trans.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2009-05-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
$ajax_action = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$csrfToken  = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.user.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2009-04-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
$ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30
$userId     = PMF_Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.verifyurl.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/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
printf('<header><h2><i class="icon-download-alt"></i> %s</h2></header>', $PMF_LANG['ad_csv_backup']);
30

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
?>
31
        <header>

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 ($permission["editcateg"]) {
30
    $category = new PMF_Category($faqConfig, array(), false);

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
?>
30

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 ($permission['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
?>
30
        <header>

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 ($permission["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
?>
31
        <header>

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 ($permission["editcateg"]) {
31
    $category = new PMF_Category($faqConfig, array(), 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 ($permission['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
$faqSystem    = new PMF_System();

phpmyfaq/admin/export.file.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2005-11-02
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 ($permission['export']) {
31

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
printf('<header><h2><i class="icon-book"></i> %s</h2></header>', $PMF_LANG['ad_menu_export']);
31

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
?>
31
            </div>

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
printf('<header><h2><i class="icon-list-ul"></i> %s</h2></header>', $PMF_LANG['ad_glossary_add']);
30

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
printf('<header><h2><i class="icon-list-ul"></i> %s</h2></header>', $PMF_LANG['ad_glossary_edit']);
30

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
?>
30
        <header>

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 (!$permission['editgroup'] && !$permission['delgroup'] && !$permission['addgroup']) {
31
    exit();

phpmyfaq/admin/header.php 1 location

@@ 20-27 (lines=8) @@
17
 * @since     2003-02-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
$httpHeader = new PMF_Helper_Http();
30
$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>

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
?>
30
        <header>

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 ($permission['editbt']|| $permission['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><i class="icon-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><i class="icon-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.edit.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 (($permission['editbt']|| $permission['addbt']) && !PMF_Db::checkOnEmptyTable('faqcategories')) {
30

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
printf(
30
    '<header><h2><i class="icon-pencil"></i> %s</h2></header>',

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, array(), 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
printf(
30
    '<header><h2><i class="icon-pencil"></i> %s</h2><header>',

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
printf(
31
    '<header><h2><i class="icon-pencil"></i> %s</h2><header>',

phpmyfaq/admin/report.export.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 ($permission['reports']) {
31
    

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 ($permission['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
if ($permission['reports']) {
31

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 ($permission['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
printf('<header><h2><i class="icon-tasks"></i> %s</h2></header>', $PMF_LANG['ad_stat_sess']);
31

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 ($permission['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
if ($permission['viewlog']) {
31

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 ($permission['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 ($permission['editconfig']) {
30
    printf('<header><h2><i class="icon-wrench"></i> %s</h2></header>', $PMF_LANG['ad_menu_stopwordsconfig']);

phpmyfaq/admin/system.php 1 location

@@ 21-28 (lines=8) @@
18
 * @since     2013-01-02
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 ($permission['editconfig']) {
31
    $faqSystem = new PMF_System();

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 (!$permission["addtranslation"]) {
30
    print $PMF_LANG['err_NotAuth'];

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 (!$permission["edittranslation"]) {
30
    print $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
if(isset($_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 ($permission['edituser'] || $permission['deluser'] || $permission['adduser']) {
33
    // set some parameters

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
$captcha = new PMF_Captcha($faqConfig);
30
$captcha->setSessionId($sids);

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
$faqsession->userTracking('contact', 0);
30

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
$page = PMF_Filter::filterInput(INPUT_GET, 'page' , FILTER_VALIDATE_INT, 1);
30

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
$faqsession->userTracking('instantresponse', 0);
31

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

@@ 22-29 (lines=8) @@
19
 * @since     2006-07-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
$captcha = new PMF_Captcha($faqConfig);
32
$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
$faqsession->userTracking('open_questions', 0);
30

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
$tpl->parse(
30
    'writeContent',

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
$faqsession->userTracking('registration', 0);
31

phpmyfaq/search.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
$faqsession->userTracking('fulltext_search', 0);
30

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
$faqsession->userTracking('sitemap', 0);
31

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

@@ 20-27 (lines=8) @@
17
 * @since     2012-01-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 ($user instanceof PMF_User) {
30

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);