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

phpmyfaq/404.php 1 location

@@ 18-25 (lines=8) @@
15
 * @since 2002-09-17
16
 */
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
try {
28
    $faqSession->userTracking('404', 0);

phpmyfaq/add.php 1 location

@@ 28-35 (lines=8) @@
25
use phpMyFAQ\Helper\CategoryHelper as HelperCategory;
26
use phpMyFAQ\User\CurrentUser;
27
28
if (!defined('IS_VALID_PHPMYFAQ')) {
29
    $protocol = 'http';
30
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
31
        $protocol = 'https';
32
    }
33
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
34
    exit();
35
}
36
37
// Check user permissions
38
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowNewFaqsForGuests'))) {

phpmyfaq/admin/ajax.attachment.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Helper\HttpHelper;
21
use phpMyFAQ\Filter;
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
$http = new HttpHelper();
33

phpmyfaq/admin/ajax.autosave.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\User\CurrentUser;
22
use phpMyFAQ\Visits;
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
$do = Filter::filterInput(INPUT_GET, 'do', FILTER_SANITIZE_STRING);
34

phpmyfaq/admin/ajax.category.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Category;
19
use phpMyFAQ\Filter;
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 = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.comment.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Comment;
19
use phpMyFAQ\Filter;
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 = Filter::filterInput(INPUT_POST, 'ajaxaction', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.config_list.php 1 location

@@ 27-34 (lines=8) @@
24
use phpMyFAQ\System;
25
use phpMyFAQ\Utils;
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
if (!empty($_SESSION['access_token'])) {
37
    $connection = new TwitterOAuth(

phpmyfaq/admin/ajax.elasticsearch.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Filter;
22
use phpMyFAQ\Instance\Elasticsearch;
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
$ajaxAction = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
34
$esInstance = new Elasticsearch($faqConfig);

phpmyfaq/admin/ajax.group.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Permission\MediumPermission;
20
use phpMyFAQ\User;
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 = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
32
$groupId = Filter::filterInput(INPUT_GET, 'group_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.image.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Filter;
19
use phpMyFAQ\Helper\HttpHelper;
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
$http = new HttpHelper();
31

phpmyfaq/admin/ajax.markdown.php 1 location

@@ 21-28 (lines=8) @@
18
19
use phpMyFAQ\Filter;
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
$answer = Filter::filterInput(INPUT_POST, 'text', FILTER_SANITIZE_STRING);
31

phpmyfaq/admin/ajax.ondemandurl.php 1 location

@@ 30-37 (lines=8) @@
27
use phpMyFAQ\Helper\HttpHelper;
28
use phpMyFAQ\Linkverifier;
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 HttpHelper();
40
$httpHeader->setContentType('text/html');

phpmyfaq/admin/ajax.records.php 1 location

@@ 28-35 (lines=8) @@
25
use phpMyFAQ\Search;
26
use phpMyFAQ\Search\Resultset;
27
28
if (!defined('IS_VALID_PHPMYFAQ')) {
29
    $protocol = 'http';
30
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
31
        $protocol = 'https';
32
    }
33
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
34
    exit();
35
}
36
37
$ajax_action = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
38
$csrfTokenPost = Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.search.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Filter;
19
use phpMyFAQ\Search;
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 = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$searchTerm = Filter::filterInput(INPUT_GET, 'searchterm', FILTER_SANITIZE_STRING);

phpmyfaq/admin/ajax.tags.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Tags;
21
use phpMyFAQ\Entity\Tags as TagEntity;
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
// Send headers
33
$http = new HttpHelper();

phpmyfaq/admin/ajax.user.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Permission;
23
use phpMyFAQ\User;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
$ajaxAction = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
35
$userId = Filter::filterInput(INPUT_GET, 'user_id', FILTER_VALIDATE_INT);

phpmyfaq/admin/ajax.verifyurl.php 1 location

@@ 31-38 (lines=8) @@
28
use phpMyFAQ\Helper\HttpHelper;
29
use phpMyFAQ\Linkverifier;
30
31
if (!defined('IS_VALID_PHPMYFAQ')) {
32
    $protocol = 'http';
33
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
34
        $protocol = 'https';
35
    }
36
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
37
    exit();
38
}
39
40
$httpHeader = new HttpHelper();
41
$httpHeader->setContentType('text/html');

phpmyfaq/admin/att.main.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Link;
22
use phpMyFAQ\Pagination;
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
$page = Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT);
34
$page = 1 > $page ? 1 : $page;

phpmyfaq/admin/backup.import.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Filter;
22
use phpMyFAQ\Strings;
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
$csrfToken = Filter::filterInput(INPUT_GET, 'csrf', FILTER_SANITIZE_STRING);
34

phpmyfaq/admin/backup.main.php 1 location

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

phpmyfaq/admin/category.add.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Strings;
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
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
32
          <h1 class="h2">

phpmyfaq/admin/category.cut.php 1 location

@@ 20-27 (lines=8) @@
17
use phpMyFAQ\Category;
18
use phpMyFAQ\Filter;
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 Category($faqConfig, [], false);

phpmyfaq/admin/category.delete.php 1 location

@@ 20-27 (lines=8) @@
17
use phpMyFAQ\Category;
18
use phpMyFAQ\Filter;
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
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/category.edit.php 1 location

@@ 20-27 (lines=8) @@
17
use phpMyFAQ\Category;
18
use phpMyFAQ\Filter;
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
$currentUserId = $user->getUserId();
30

phpmyfaq/admin/category.main.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Category;
20
use phpMyFAQ\Category\Image;
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
?>
32
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/category.move.php 1 location

@@ 20-27 (lines=8) @@
17
use phpMyFAQ\Category;
18
use phpMyFAQ\Filter;
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 = Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);

phpmyfaq/admin/category.showstructure.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Strings;
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
?>
32
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/category.translate.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Category;
19
use phpMyFAQ\Filter;
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 Category($faqConfig, [], false);

phpmyfaq/admin/configuration.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Filter;
21
use phpMyFAQ\Strings;
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(), 'editconfig')) {
33
    // actions defined by url: user_action=

phpmyfaq/admin/dashboard.php 1 location

@@ 29-36 (lines=8) @@
26
use phpMyFAQ\Session;
27
use phpMyFAQ\System;
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
$faqTableInfo = $faqConfig->getDb()->getTableStatus(Db::getTablePrefix());
39
$faqSystem = new System();

phpmyfaq/admin/elasticsearch.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Search\Elasticsearch;
22
use phpMyFAQ\Instance\Elasticsearch as ElasticsearchInstance;
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
if ($user->perm->checkRight($user->getUserId(), 'editconfig') && $faqConfig->get('search.enableElasticsearch')) {
34

phpmyfaq/admin/export.file.php 1 location

@@ 28-35 (lines=8) @@
25
use phpMyFAQ\HttpStreamer;
26
use phpMyFAQ\Tags;
27
28
if (!defined('IS_VALID_PHPMYFAQ')) {
29
    $protocol = 'http';
30
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
31
        $protocol = 'https';
32
    }
33
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
34
    exit();
35
}
36
37
if ($user->perm->checkRight($user->getUserId(), 'export')) {
38
    $categoryId = Filter::filterInput(INPUT_POST, 'catid', FILTER_VALIDATE_INT);

phpmyfaq/admin/export.main.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Helper\CategoryHelper;
23
use phpMyFAQ\HttpStreamer;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
?>
34
        <header>
35
            <div class="col-lg-12">

phpmyfaq/admin/footer.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Language;
19
use phpMyFAQ\Template;
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
</main> <!-- main -->

phpmyfaq/admin/glossary.add.php 1 location

@@ 19-26 (lines=8) @@
16
 * @since 2005-09-15
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
        <header class="row">
29
            <div class="col-lg-12">

phpmyfaq/admin/glossary.edit.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Glossary;
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
        <header class="row">
32
            <div class="col-lg-12">

phpmyfaq/admin/glossary.main.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Glossary;
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
        <header class="row">
32
            <div class="col-lg-12">

phpmyfaq/admin/group.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\User;
22
use phpMyFAQ\User\CurrentUser;
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
if (!$user->perm->checkRight($user->getUserId(), 'editgroup') &&
34
    !$user->perm->checkRight($user->getUserId(), 'delgroup') &&

phpmyfaq/admin/header.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Services\Gravatar;
21
use phpMyFAQ\Template;
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
$httpHeader = new HttpHelper();
33
$httpHeader->setContentType('text/html');

phpmyfaq/admin/instances.edit.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Instance;
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
?>
32
    <header class="row">

phpmyfaq/admin/instances.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Instance\Client;
22
use phpMyFAQ\System;
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
?>
34
    <header class="row">

phpmyfaq/admin/meta.edit.php 1 location

@@ 20-27 (lines=8) @@
17
use phpMyFAQ\Filter;
18
use phpMyFAQ\Meta;
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
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/meta.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Meta;
19
use phpMyFAQ\Entity\Meta as MetaEntity;
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
$defaultMetaAction = 'list';
31
$metaAction = Filter::filterInput(INPUT_GET, 'meta_action', FILTER_SANITIZE_STRING, $defaultMetaAction);

phpmyfaq/admin/news.php 1 location

@@ 26-33 (lines=8) @@
23
use phpMyFAQ\Language;
24
use phpMyFAQ\News;
25
26
if (!defined('IS_VALID_PHPMYFAQ')) {
27
    $protocol = 'http';
28
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
29
        $protocol = 'https';
30
    }
31
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
32
    exit();
33
}
34
35
$news = new News($faqConfig);
36

phpmyfaq/admin/pwd.change.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Auth;
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
?>
32
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/record.add.php 1 location

@@ 32-39 (lines=8) @@
29
use phpMyFAQ\Tags;
30
use phpMyFAQ\Visits;
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
if ($user->perm->checkRight($user->getUserId(), 'edit_faq') || $user->perm->checkRight($user->getUserId(), 'add_faq')) {
42

phpmyfaq/admin/record.comments.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Faq;
23
use phpMyFAQ\Strings;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
?>
35
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/record.delatt.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Filter;
21
use phpMyFAQ\Attachment\Factory;
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
printf(
33
    '<header><h2 class="page-header"><i aria-hidden="true" class="fas fa-pencil"></i> %s</h2></header>',

phpmyfaq/admin/record.edit.php 1 location

@@ 30-37 (lines=8) @@
27
use phpMyFAQ\Tags;
28
use phpMyFAQ\User;
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
$currentUserId = $user->getUserId();
40

phpmyfaq/admin/record.questions.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Date;
21
use phpMyFAQ\Filter;
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
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
33
          <h1 class="h2">

phpmyfaq/admin/record.save.php 1 location

@@ 29-36 (lines=8) @@
26
use phpMyFAQ\Tags;
27
use phpMyFAQ\Visits;
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
$category = new Category($faqConfig, [], false);
39
$category->setUser($currentAdminUser);

phpmyfaq/admin/record.search.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Filter;
21
use phpMyFAQ\Linkverifier;
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
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
33
          <h1 class="h2">

phpmyfaq/admin/record.show.php 1 location

@@ 33-40 (lines=8) @@
30
use phpMyFAQ\Search\SearchFactory;
31
use phpMyFAQ\Visits;
32
33
if (!defined('IS_VALID_PHPMYFAQ')) {
34
    $protocol = 'http';
35
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
36
        $protocol = 'https';
37
    }
38
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
39
    exit();
40
}
41
?>
42
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
43
          <h1 class="h2">

phpmyfaq/admin/report.export.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Report;
21
use phpMyFAQ\HttpStreamer;
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
    $useCategory = Filter::filterInput(INPUT_POST, 'report_category', FILTER_VALIDATE_INT);

phpmyfaq/admin/report.main.php 1 location

@@ 19-26 (lines=8) @@
16
 * @link https://www.phpmyfaq.de
17
 * @since 2011-01-12
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(), 'reports')) {
29
    ?>

phpmyfaq/admin/report.view.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Filter;
21
use phpMyFAQ\Report;
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
        <header class="row">
33
            <div class="col-lg-12">

phpmyfaq/admin/section.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\User;
21
use phpMyFAQ\User\CurrentUser;
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(), 'edit_section') &&
33
    !$user->perm->checkRight($user->getUserId(), 'delete_section') &&

phpmyfaq/admin/stat.adminlog.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Logging;
23
use phpMyFAQ\Pagination;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
$logging = new Logging($faqConfig);
35
$csrfToken = Filter::filterInput(INPUT_GET, 'csrf', FILTER_SANITIZE_STRING);

phpmyfaq/admin/stat.browser.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Filter;
21
use phpMyFAQ\Session;
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(), 'viewlog')) {
33
    $perpage = 50;

phpmyfaq/admin/stat.main.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Session;
23
use phpMyFAQ\Visits;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
?>
34
        <header class="row">
35
            <div class="col-lg-12">

phpmyfaq/admin/stat.ratings.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Strings;
23
use phpMyFAQ\Utils;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
if ($user->perm->checkRight($user->getUserId(), 'viewlog')) {
35
    $category = new Category($faqConfig, [], false);

phpmyfaq/admin/stat.search.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Search;
22
use phpMyFAQ\Strings;
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
        <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
34
          <h1 class="h2">

phpmyfaq/admin/stat.show.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Session;
21
use phpMyFAQ\Strings;
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(), 'viewlog')) {
33
    $sid = Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);

phpmyfaq/admin/stopwordsconfig.main.php 1 location

@@ 20-27 (lines=8) @@
17
 * @link https://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
30
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/system.php 1 location

@@ 26-33 (lines=8) @@
23
use phpMyFAQ\Db;
24
use phpMyFAQ\System;
25
26
if (!defined('IS_VALID_PHPMYFAQ')) {
27
    $protocol = 'http';
28
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
29
        $protocol = 'https';
30
    }
31
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
32
    exit();
33
}
34
35
if ($user->perm->checkRight($user->getUserId(), 'editconfig')) {
36
    $faqSystem = new System();

phpmyfaq/admin/tags.main.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Strings;
19
use phpMyFAQ\Tags;
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 class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">

phpmyfaq/admin/user.php 1 location

@@ 30-37 (lines=8) @@
27
use phpMyFAQ\User\CurrentUser;
28
use phpMyFAQ\Utils;
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
if ($user->perm->checkRight($user->getUserId(), 'edit_user') ||
40
    $user->perm->checkRight($user->getUserId(), 'delete_user') ||

phpmyfaq/ask.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Helper\CategoryHelper as HelperCategory;
23
use phpMyFAQ\Helper\CaptchaHelper;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
// Check user permissions
35
if ((-1 === $user->getUserId() && !$faqConfig->get('records.allowQuestionsForGuests'))) {

phpmyfaq/contact.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Helper\CaptchaHelper;
23
use phpMyFAQ\User\CurrentUser;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
try {
35
    $faqSession->userTracking('contact', 0);

phpmyfaq/glossary.php 1 location

@@ 25-32 (lines=8) @@
22
use phpMyFAQ\Link;
23
use phpMyFAQ\Pagination;
24
25
if (!defined('IS_VALID_PHPMYFAQ')) {
26
    $protocol = 'http';
27
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
28
        $protocol = 'https';
29
    }
30
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
31
    exit();
32
}
33
34
try {
35
    $faqSession->userTracking('glossary', 0);

phpmyfaq/login.php 1 location

@@ 17-24 (lines=8) @@
14
 * @link https://www.phpmyfaq.de
15
 * @since 2012-02-12
16
 */
17
if (!defined('IS_VALID_PHPMYFAQ')) {
18
    $protocol = 'http';
19
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
20
        $protocol = 'https';
21
    }
22
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
23
    exit();
24
}
25
26
$loginMessage = '';
27
if (!is_null($error)) {

phpmyfaq/news.php 1 location

@@ 33-40 (lines=8) @@
30
use phpMyFAQ\Link;
31
use phpMyFAQ\News;
32
33
if (!defined('IS_VALID_PHPMYFAQ')) {
34
    $protocol = 'http';
35
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
36
        $protocol = 'https';
37
    }
38
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
39
    exit();
40
}
41
42
$captcha = new Captcha($faqConfig);
43
$comment = new 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/overview.php 1 location

@@ 22-29 (lines=8) @@
19
20
use phpMyFAQ\Helper\FaqHelper;
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('overview', 0);

phpmyfaq/password.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link https://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/request-removal.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Helper\CaptchaHelper;
21
use phpMyFAQ\User\CurrentUser;
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
try {
33
    $faqSession->userTracking('request_removal', 0);

phpmyfaq/search.php 1 location

@@ 31-38 (lines=8) @@
28
use phpMyFAQ\Tags;
29
use phpMyFAQ\User\CurrentUser;
30
31
if (!defined('IS_VALID_PHPMYFAQ')) {
32
    $protocol = 'http';
33
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
34
        $protocol = 'https';
35
    }
36
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
37
    exit();
38
}
39
40
try {
41
    $faqSession->userTracking('fulltext_search', 0);

phpmyfaq/send2friend.php 1 location

@@ 24-31 (lines=8) @@
21
use phpMyFAQ\Helper\HttpHelper;
22
use phpMyFAQ\User\CurrentUser;
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
$http = new HttpHelper();
34
$captcha = new Captcha($faqConfig);

phpmyfaq/show.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\Filter;
20
use phpMyFAQ\Link;
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
$selectedCategoryId = Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
32
$subCategoryContent = '';

phpmyfaq/sitemap.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Sitemap;
21
use phpMyFAQ\Strings;
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
try {
33
    $faqSession->userTracking('sitemap', 0);

phpmyfaq/startpage.php 1 location

@@ 22-29 (lines=8) @@
19
use phpMyFAQ\News;
20
use phpMyFAQ\Strings;
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
$news = new News($faqConfig);
32

phpmyfaq/translate.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link https://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 phpMyFAQ\Captcha($faqConfig);
31
$captcha->setSessionId($sids);

phpmyfaq/ucp.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\User\CurrentUser;
19
use phpMyFAQ\Services\Gravatar;
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 CurrentUser) {
31
    try {

phpmyfaq/writecomment.php 1 location

@@ 21-28 (lines=8) @@
18
 * @link https://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 phpMyFAQ\Captcha($faqConfig);
31
$captcha->setSessionId($sids);

phpmyfaq/admin/ajax.section.php 1 location

@@ 21-28 (lines=8) @@
18
use phpMyFAQ\Filter;
19
use phpMyFAQ\Permission\LargePermission;
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 = Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
31
$sectionId = Filter::filterInput(INPUT_GET, 'section_id', FILTER_VALIDATE_INT);

phpmyfaq/faq.php 1 location

@@ 41-48 (lines=8) @@
38
use phpMyFAQ\Utils;
39
use phpMyFAQ\Visits;
40
41
if (!defined('IS_VALID_PHPMYFAQ')) {
42
    $protocol = 'http';
43
    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
44
        $protocol = 'https';
45
    }
46
    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
47
    exit();
48
}
49
50
$captcha = new Captcha($faqConfig);
51
$oGlossary = new Glossary($faqConfig);

phpmyfaq/attachment.php 1 location

@@ 23-30 (lines=8) @@
20
use phpMyFAQ\Permission\MediumPermission;
21
use phpMyFAQ\User\CurrentUser;
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
set_time_limit(0);
33