⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.97
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
View File Name :
test.php
* @author Chuck Hagenbuch
* @author Michael Slusarz
* @category Horde * @license http://www.horde.org/licenses/lgpl LGPL-2 * @package Horde */ /* Function to output fatal error message. */ function _hordeTestError($msg) { exit('
ERROR
' . htmlspecialchars($msg) . '
'); } /* If we can't find the Autoloader, then the framework is not setup. A user * must at least correctly install the framework. */ ini_set('include_path', __DIR__ . '/lib' . PATH_SEPARATOR . ini_get('include_path')); if (file_exists(__DIR__ . '/config/horde.local.php')) { include __DIR__ . '/config/horde.local.php'; } if (!@include_once 'Horde/Autoloader.php') { _hordeTestError(sprintf('Could not find Horde\'s framework libraries in the following path(s): %s. Please read horde/docs/INSTALL for information on how to install these libraries.', get_include_path())); } /* Similarly, registry.php needs to exist. */ if (!file_exists(__DIR__ . '/config/registry.php')) { _hordeTestError('Could not find horde/config/registry.php. Please make sure this file exists. Read horde/docs/INSTALL for further information.'); } require_once __DIR__ . '/lib/Application.php'; try { Horde_Registry::appInit('horde', array( 'authentication' => 'none', 'test' => true )); $init_exception = null; } catch (Exception $e) { define('HORDE_TEMPLATES', __DIR__ . '/templates'); $init_exception = $e; } if (!empty($conf['testdisable'])) { _hordeTestError('Horde test scripts have been disabled in the local configuration. To enable, change the \'testdisable\' setting in horde/config/conf.php to false.'); } /* We should have loaded the String class, from the Horde_Util package. If it * isn't defined, then we're not finding some critical libraries. */ if (!class_exists('Horde_String')) { _hordeTestError('Required Horde libraries were not found. If PHP\'s error_reporting setting is high enough and display_errors is on, there should be error messages printed above that may help you in debugging the problem. If you are simply missing these files, then you need to install the framework module.'); } /* Initialize the Horde_Test:: class. */ if (!class_exists('Horde_Test')) { /* Try and provide enough information to debug the missing file. */ _hordeTestError('Unable to find the Horde_Test library. Your Horde installation may be missing critical files, or PHP may not have sufficient permissions to include files. There may be error messages printed above this message that will help you in debugging the problem.'); } /* Load the application. */ $app = Horde_Util::getFormData('app', 'horde'); $app_name = $registry->get('name', $app); $app_version = $registry->getVersion($app); /* If we've gotten this far, we should have found enough of Horde to run * tests. Create the testing object. */ if ($app != 'horde') { try { $registry->pushApp($app, array('check_perms' => false)); } catch (Exception $e) { _hordeTestError($e->getMessage()); } } $classname = ucfirst($app) . '_Test'; if (!class_exists($classname)) { _hordeTestError('No tests found for ' . ucfirst($app) . ' [' . $app_name . '].'); } $test_ob = new $classname(); /* Register a session. */ if ($session && !$session->exists('horde', 'test_count')) { $session->set('horde', 'test_count', 0); } /* Template location. */ $test_templates = HORDE_TEMPLATES . '/test'; /* Self URL. */ $url = Horde::url('test.php', false, array('app' => 'horde')); $self_url = $url->copy()->add('app', $app); /* Handle special modes. */ switch (Horde_Util::getGet('mode')) { case 'extensions': echo ''; $ext_get = Horde_Util::getGet('ext'); require $test_templates . '/extensions.inc'; exit; case 'phpinfo': echo ''; echo '
<< Back to test.php
'; phpinfo(); exit; case 'unregister': echo ''; $session->remove('horde', 'test_count'); ?> The test session has been unregistered.
Go back
to the test.php page.
pearModuleCheck(); Horde::startBuffer(); require $test_templates . '/header.inc'; require $test_templates . '/version.inc'; if ($app == 'horde') { ?>
Horde Applications
listAllApps(), array($app)); sort($app_list); foreach ($app_list as $val) { echo '
' . ucfirst($val); if ($name = $registry->get('name', $val)) { echo ' [' . $name . ']'; } echo ': ' . $registry->getVersion($val); if (file_exists($registry->get('fileroot', $val) . '/lib/Test.php')) { echo ' (
run tests
)
'; } echo "\n"; } } catch (Exception $e) { $init_exception = $e; } } if ($init_exception) { echo '
Horde is not correctly configured so no application information can be displayed. Please follow the instructions in horde/docs/INSTALL and ensure horde/config/conf.php and horde/config/registry.php are correctly configured.
' . '
Error:
' . $e->getMessage() . '
'; } ?>
requiredAppCheck()) { ?>
Other Horde Applications
getPhpVersionInformation(); require $test_templates . '/php_version.inc'; if ($module_output = $test_ob->phpModuleCheck()) { ?>
PHP Module Capabilities
phpSettingCheck()) { ?>
Miscellaneous PHP Settings
requiredFileCheck()) { ?>
Required Configuration Files
PHP Sessions
Session counter: get('horde', 'test_count'); echo ++$tc; $session->set('horde', 'test_count', $tc); ?> [refresh the page to increment the counter]
To unregister the session:
click here
The PHP session test is disabled until Horde is correctly configured.
PEAR
appTests(); require $test_templates . '/footer.inc'; echo Horde::endBuffer();