1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Disable system/xup/test by default

Now guests can't snoop there unless the admin allows it.
Documentation has been improved accordingly.
This commit is contained in:
Nick Liu
2020-02-19 23:30:24 +01:00
parent c260152b57
commit bc4ade5a27
7 changed files with 90 additions and 18 deletions

View File

@@ -91,6 +91,15 @@ class core_system_xup_controller extends eController
public function actionTest()
{
require_once(e_PLUGIN . "social/SocialLoginConfigManager.php");
$manager = new SocialLoginConfigManager(e107::getConfig());
if (!$manager->isFlagActive($manager::ENABLE_BIT_TEST_PAGE))
{
e107::getRedirect()->redirect(SITEURL);
return;
}
echo '<h3>'.LAN_XUP_ERRM_07.'</h3>';
if(getperms('0'))
@@ -122,8 +131,6 @@ class core_system_xup_controller extends eController
$testUrl = SITEURL."?route=system/xup/test";
require_once(e_PLUGIN . "social/SocialLoginConfigManager.php");
$manager = new SocialLoginConfigManager(e107::getConfig());
$providers = $manager->getValidConfiguredProviderConfigs();
foreach($providers as $key=>$var)