‰PNG  IHDR 3 ( S°Âr 7iCCPsRGB IEC61966-2.1 xœ–wTSهϽ7½P’Š”ÐkhRH ½H‘.*1 JÀ "6DTpDQ‘¦2(à€£C‘±"Š…Q±ëDÔqp–Id­ß¼yïÍ›ß÷~kŸ½ÏÝgï}Öº üƒÂLX € ¡Xáçň‹g` ð l àp³³BøF™|ØŒl™ø½º ùû*Ó?ŒÁ ÿŸ”¹Y"1 P˜ŒçòøÙ\É8=Wœ%·Oɘ¶4MÎ0JÎ"Y‚2V“sò,[|ö™e9ó2„<ËsÎâeðäÜ'ã9¾Œ‘`çø¹2¾&cƒtI†@Æoä±|N6 (’Ü.æsSdl-c’(2‚-ãy àHÉ_ðÒ/XÌÏËÅÎÌZ.$§ˆ&\S†“‹áÏÏMç‹ÅÌ07#â1Ø™Yár fÏüYym²";Ø8980m-m¾(Ô]ü›’÷v–^„îDøÃöW~™ °¦eµÙú‡mi ]ëP»ý‡Í`/ в¾u}qº|^RÄâ,g+«ÜÜ\KŸk)/èïúŸC_|ÏR¾Ýïåaxó“8’t1C^7nfz¦DÄÈÎâpù 柇øþuü$¾ˆ/”ED˦L L–µ[Ȉ™B†@øŸšøÃþ¤Ù¹–‰ÚøЖX¥!@~ (* {d+Ðï} ÆGù͋љ˜ûÏ‚þ}W¸LþÈ$ŽcGD2¸QÎìšüZ4 E@ê@èÀ¶À¸ àA(ˆq`1à‚D €µ ”‚­`'¨u 4ƒ6ptcà48.Ë`ÜR0ž€)ð Ì@„…ÈR‡t CȲ…XäCP”%CBH@ë R¨ª†ê¡fè[è(tº C· Qhúz#0 ¦ÁZ°l³`O8Ž„ÁÉð28.‚·À•p|î„O×àX ?§€:¢‹0ÂFB‘x$ !«¤i@ڐ¤¹ŠH‘§È[EE1PL” Ê…⢖¡V¡6£ªQP¨>ÔUÔ(j õMFk¢ÍÑÎè t,:‹.FW ›Ðè³èô8úƒ¡cŒ1ŽL&³³³ÓŽ9…ÆŒa¦±X¬:ÖëŠ År°bl1¶ {{{;Ž}ƒ#âtp¶8_\¡8áú"ãEy‹.,ÖXœ¾øøÅ%œ%Gщ1‰-‰ï9¡œÎôÒ€¥µK§¸lî.îžoo’ïÊ/çO$¹&•'=JvMÞž<™âžR‘òTÀT ž§ú§Ö¥¾N MÛŸö)=&½=—‘˜qTH¦ û2µ3ó2‡³Ì³Š³¤Ëœ—í\6% 5eCÙ‹²»Å4ÙÏÔ€ÄD²^2šã–S“ó&7:÷Hžrž0o`¹ÙòMË'ò}ó¿^ZÁ]Ñ[ [°¶`t¥çÊúUЪ¥«zWë¯.Z=¾Æóµ„µik(´.,/|¹.f]O‘VÑš¢±õ~ë[‹ŠEÅ76¸l¨ÛˆÚ(Ø8¸iMKx%K­K+Jßoæn¾ø•ÍW•_}Ú’´e°Ì¡lÏVÌVáÖëÛÜ·(W.Ï/Û²½scGÉŽ—;—ì¼PaWQ·‹°K²KZ\Ù]ePµµê}uJõHWM{­fí¦Ú×»y»¯ìñØÓV§UWZ÷n¯`ïÍz¿úΣ†Š}˜}9û6F7öÍúº¹I£©´éÃ~á~遈}ÍŽÍÍ-š-e­p«¤uò`ÂÁËßxÓÝÆl«o§·—‡$‡›øíõÃA‡{°Ž´}gø]mµ£¤ê\Þ9Õ•Ò%íŽë>x´·Ç¥§ã{Ëï÷Ó=Vs\åx٠‰¢ŸN柜>•uêééäÓc½Kz=s­/¼oðlÐÙóç|ϝé÷ì?yÞõü± ÎŽ^d]ìºäp©sÀ~ ãû:;‡‡º/;]îž7|âŠû•ÓW½¯ž»píÒÈü‘áëQ×oÞH¸!½É»ùèVú­ç·snÏÜYs}·äžÒ½Šûš÷~4ý±]ê =>ê=:ð`Áƒ;cܱ'?eÿô~¼è!ùaÅ„ÎDó#ÛGÇ&}'/?^øxüIÖ“™§Å?+ÿ\ûÌäÙw¿xü20;5þ\ôüÓ¯›_¨¿ØÿÒîeïtØôýW¯f^—¼Qsà-ëmÿ»˜w3¹ï±ï+?˜~èùôñî§ŒOŸ~÷„óûpf* pHYs  Ê&ó? ÉIDATxœí™mh[UÇo’Û·´iWi`×b;Ym­`p Œ¬­n¢8Dh7ýà‡²‰ƒ9Q?t²f-(¢›:?±(Žiˆ:W¦‚m†…Vi‰ö…®±)KÚ4ñwºÜr“Ü›·¶YÊú‡'çí9ç>ÿsžsÎsoäp8, ŒŽŽÔÖÖv †ç)>€äK·>äòòòr¯,Ë¿¥ÒA?@`g]]‹lÓFZ—&J&“é‰P(ôªÑh<“¬ƒì÷ûwüL~ûÆÛ—LxK„<ú"‘¢ ‘³RîY„ހ̗ ëé7{<‹6­÷ø|¾»HÿÑSd ³gÏÚÀþIh«œ-C²-2¹ŠÛ’ÌUä;ää²-î·ˆiDžBŒ:z7'2ŽØ"’28¢“ˆ`þ˜˜ø¡¦¦ÆŸ ™KCCCO[­Ö%Qà’íånú…ìŽXE>Ê]ðR&9@ù+ BóÁ`Ж——wUÕ÷C’#©’áÞy$Tª®®Å®G’’ᡯ+D Ç™•>y'Fõ1ÔyÚV+8J¿ÁÈÉ>£û‰šÈ »ùùN‹ÅÒ!º¥JH…Lð™¤d`<΃c«4TÇungFÝõØŠÒÒÒëÁeY2›t°?)™âââ}$Õu¬Ê^ Õ½^ï¶²²²9¥ÂétšÚÚÚöhè>ŠØÕxÀnV2S"–¤d0ü¾ÿ«óýððp^}}ýêžÑŒÙufÉG =* ò6õ÷jèîaúfffNVVVú ò0D>[‘¤r T²‰/ BÒÍwœD!Ek~~þ†zYQ‹¤’ ¯¨¨8*\ "åé­‡tî™Ò4tSu±×…ˆÀmyin l‘ÉUl‘ÉU2^)ó"«XZZšçBÖmdÞGNdÍ¢Ìq¥¤¤dFd¸Ä \âq©ÜÓÓs²««ËLþ%Đm SÄ_„Iϱ¯æææÄE]Èv»]Äì/³„Ÿ‹žVéf<•±PDŒZÉ"‚vî\ôx<ŽªªªJ¡ÒCZV ÉA’Džþ ¹_ç!"Ì¿ ùÞ©©©1‡ÃˆLÈ*º»»---“šžž···/‹¼xù‚HT;nv,! ÛÍfs£ÎsÜøê1Vð åÊC §!Šï¾6ÌÎΖ–——Ÿ&û¤V{™¢¢¢ýR¼‹‰§.—Ëu^™1Hµ1CÙú*6KDv“ë)Å‘aYÕ¯¸bv?fµNp’LCD­w7IÇúÙ»f£ÈD޼}‘â¯äãR¿C$®'{æk\M¼|åÊÅ;eÇŸø&€K= ‰ ‰¾¸sy]£ý+Ô»áf¦ lî"³¸¸8922²«¡¡aQý•E¬äiô&#„nÕß"bÂûÝn÷›Qd8¿'!’ÖHúhpp°¿©©©‘üe•(G´ú„iPJ~â1œá>ÒWs‹pø5Ü݉—ŒY­Öõñ÷Èw5÷zŒ¥¿ßïÀà·ÈŒi "J!W6oBÆüMrˆ©•ÕWŠü÷ʪ‰h圢·)È(0™L? Xm6Û‹9EÕ^m(Ȧ"#ÐÜÜ,öÚYŸÏ÷9{ÜÞÙÙ¹‹òŸ¢íº›|¬– IEND®B`‚ AnonSec Shell
AnonSec Shell
Server IP : 20.73.19.71  /  Your IP : 10.112.20.21
Web Server : nginx/1.15.12
System : Linux a10deea3d6b7 6.8.0-1044-azure #50~22.04.1-Ubuntu SMP Wed Dec 3 15:13:22 UTC 2025 x86_64
User :  ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/backupbuddy/destinations/stash3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /var/www/html/wp-content/plugins/backupbuddy/destinations/stash3/_configure.php
<?php
/**
 * Settings to display in a form for a user to configure.
 *
 * Pre-populated variables coming into this script:
 *      $destination_settings
 *      $mode
 *
 * @package BackupBuddy
 */

if ( isset( $destination['disabled'] ) && '1' == $destination['disabled'] ) {
	die( __( '<span class="description">This destination is currently disabled based on its settings. Re-enable it under its Advanced Settings.</span>', 'it-l10n-backupbuddy' ) );
}

global $pb_hide_test, $pb_hide_save;
$pb_hide_test = false;

$itxapi_username = '';
$itxapi_password = '';
$itxapi_token    = '';


if ( 'add' === $mode ) { // ADD MODE.

	$credentials_form = new pb_backupbuddy_settings( 'pre_settings', false, 'action=pb_backupbuddy_backupbuddy&function=destination_picker&quickstart=' . htmlentities( pb_backupbuddy::_GET( 'quickstart' ) ) . '&add=' . htmlentities( pb_backupbuddy::_GET( 'add' ) ) . '&callback_data=' . htmlentities( pb_backupbuddy::_GET( 'callback_data' ) ) . '&sending=' . pb_backupbuddy::_GET( 'sending' ) . '&selecting=' . pb_backupbuddy::_GET( 'selecting' ) ); // name, savepoint|false, additional querystring.

	$credentials_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'itxapi_username',
			'title' => esc_html__( 'iThemes username', 'it-l10n-backupbuddy' ),
			'tip'   => esc_html__( '[Example: kerfuffle] - Your iThemes.com membership username.', 'it-l10n-backupbuddy' ), // Is a username example necessary here?
			'rules' => 'required|string[1-45]',
		)
	);
	$credentials_form->add_setting(
		array(
			'type'  => 'password',
			'name'  => 'itxapi_password_raw',
			'title' => esc_html__( 'iThemes password', 'it-l10n-backupbuddy' ),
			'tip'   => esc_html__( '[Example: 48dsds!s08K%x2s] - Your iThemes.com membership password.', 'it-l10n-backupbuddy' ), // Is a password example necessary here?
			'rules' => 'required|string[1-250]',
		)
	);

	$settings_result = $credentials_form->process();

	$login_welcome = esc_html__( 'Log in with your iThemes.com member account to begin.', 'it-l10n-backupbuddy' );

	if ( 0 === count( $settings_result ) ) { // No form submitted.

		echo $login_welcome; // @codingStandardsIgnoreLine: ok.

		$credentials_form->display_settings( 'Submit' );

		$pb_hide_test = true;
		$pb_hide_save = true;
		return;
	} else { // Form submitted.
		if ( count( $settings_result['errors'] ) > 0 ) { // Form errors.
			echo $login_welcome; // @codingStandardsIgnoreLine: ok.
			pb_backupbuddy::alert( implode( '<br>', $settings_result['errors'] ) );
			$credentials_form->display_settings( 'Submit' );

			$pb_hide_test = true;
			$pb_hide_save = true;
			return;
		} else { // No form errors; process!
			$pb_hide_test = true;
			$pb_hide_save = true;

			require_once dirname( __FILE__ ) . '/class.itx_helper2.php';
			global $wp_version;

			$itxapi_username = strtolower( $settings_result['data']['itxapi_username'] );
			$password_hash   = iThemes_Credentials::get_password_hash( $itxapi_username, $settings_result['data']['itxapi_password_raw'] );
			$access_token    = ITXAPI_Helper2::get_access_token( $itxapi_username, $password_hash, site_url(), $wp_version );

			$settings = array(
				'itxapi_username' => $itxapi_username,
				'itxapi_password' => $access_token,
			);
			$response = pb_backupbuddy_destination_stash3::stashAPI( $settings, 'connect' );

			if ( ! is_array( $response ) ) { // Error message.
				pb_backupbuddy::alert( 'Error #23333: Unexpected server response. Check your login and try again. Detailed response: `' . print_r( $response, true ) . '`.' );
				$credentials_form->display_settings( 'Submit' );
			} else {
				if ( isset( $response['error'] ) ) {
					pb_backupbuddy::alert( 'Error: ' . $response['error']['message'] );
					$credentials_form->display_settings( 'Submit' );
				} else {
					if ( isset( $response['token'] ) ) {
						$itxapi_token = $response['token'];
					} else {
						pb_backupbuddy::alert( 'Error #382383232: Unexpected server response. Token missing. Check your login and try again. Detailed response: `' . print_r( $response, true ) . '`.' );
						$credentials_form->display_settings( 'Submit' );
					}
				}
			}
		}
	} // end form submitted.
} elseif ( 'edit' === $mode ) { // EDIT MODE.
	$settings        = array(
		'itxapi_username' => $destination_settings['itxapi_username'],
		'itxapi_token'    => $destination_settings['itxapi_token'],
	);
	$account_info    = pb_backupbuddy_destination_stash3::get_quota( $settings );
	$itxapi_username = $destination_settings['itxapi_username'];
}

if ( 'save' === $mode || 'edit' === $mode || '' != $itxapi_token ) {
	$default_name = null;

	if ( 'save' !== $mode && 'edit' !== $mode ) {
		$settings     = array(
			'itxapi_username' => $itxapi_username,
			'itxapi_token'    => $itxapi_token,
		);
		$account_info = pb_backupbuddy_destination_stash3::get_quota( $settings );

		if ( ! is_array( $account_info ) ) {
			$pb_hide_test = true;
			$pb_hide_save = true;
			return false;
		} else {
			$pb_hide_test = false;
			$pb_hide_save = false;
		}

		$account_details = esc_html__( 'Welcome to your BackupBuddy Stash', 'it-l10n-backupbuddy' ) .
			sprintf( ', <b>%s</b>. ', $itxapi_username ) .
			esc_html__( 'Your account is ', 'it-l10n-backupbuddy' );

		if ( '1' == $account_info['subscriber_locked'] ) {
			$account_details .= esc_html__( 'LOCKED', 'it-l10n-backupbuddy' );
		} elseif ( '1' == $account_info['subscriber_expired'] ) {
			$account_details .= esc_html__( 'EXPIRED', 'it-l10n-backupbuddy' );
		} elseif ( '1' == $account_info['subscriber_active'] ) {
			$account_details .= esc_html__( 'active', 'it-l10n-backupbuddy' );
		} else {
			$account_details .= esc_html__( 'Unknown', 'it-l10n-backupbuddy' );
		}
		$account_details .= '.';

		if ( 'add' === $mode ) {
			$default_name = 'My Stash (v3)';

			echo $account_details; // @codingStandardsIgnoreLine: ok.

			echo ' ' . esc_html__( 'To jump right in using the defaults just hit "Add Destination" below.', 'it-l10n-backupbuddy' );
		} else {
			echo '<div style="text-align: center;">' . $account_details . '</div>'; // @codingStandardsIgnoreLine: ok.
		}

		if ( 'add' === $mode ) {
			// Check to see if user already has a Stash with this username set up for this site. No need for multiple same account Stashes.
			foreach ( (array) pb_backupbuddy::$options['remote_destinations'] as $destination ) {
				if ( 'stash3' === $destination['type'] || 'stash' === $destination['type'] ) {
					if ( isset( $destination['itxapi_username'] ) && strtolower( $destination['itxapi_username'] ) === strtolower( $itxapi_username ) ) {
						echo '<br><br>';
						pb_backupbuddy::alert( 'Note: You already have a Stash destination set up under the provided iThemes account username.  It is unnecessary to create multiple Stash destinations that go to the same user account as they are effectively the same destination and a duplicate.' );
						break;
					}
				}
			}
		}

		echo '<br><br>';
		echo pb_backupbuddy_destination_stash3::get_quota_bar( $account_info );
		echo '<!-- STASH DETAILS: ' . print_r( $account_info, true ) . ' -->'; // TODO: Should this code be in production?

	} // end if NOT in save mode.

	// Form settings.
	$settings_form->add_setting(
		array(
			'type'    => 'text',
			'name'    => 'title',
			'title'   => __( 'Destination name', 'it-l10n-backupbuddy' ),
			'tip'     => __( 'Name of the new destination to create. This is for your convenience only.', 'it-l10n-backupbuddy' ),
			'rules'   => 'required|string[1-45]',
			'default' => $default_name,
		)
	);
	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'full_archive_limit',
			'title' => __( 'Full backup limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of Full (complete) backup archives to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);
	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'db_archive_limit',
			'title' => __( 'Database only limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of Database Only backup archives to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);

	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'themes_archive_limit',
			'title' => __( 'Themes only limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of this type of archive to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);
	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'plugins_archive_limit',
			'title' => __( 'Plugins only limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of this type of archive to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);
	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'media_archive_limit',
			'title' => __( 'Media only limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of this type of archive to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);
	$settings_form->add_setting(
		array(
			'type'  => 'text',
			'name'  => 'files_archive_limit',
			'title' => __( 'Files only limit', 'it-l10n-backupbuddy' ),
			'tip'   => __( '[Example: 5] - Enter 0 for no limit. This is the maximum number of this type of archive to be stored in this specific destination. If this limit is met the oldest backup of this type will be deleted.', 'it-l10n-backupbuddy' ),
			'rules' => 'int[0-9999999]',
			'css'   => 'width: 50px;',
			'after' => ' backups. &nbsp;<span class="description">0 or blank for no limit.</span>',
		)
	);

	$settings_form->add_setting(
		array(
			'type'      => 'title',
			'name'      => 'advanced_begin',
			'title'     => '<span class="dashicons dashicons-arrow-right"></span> ' . __( 'Advanced Options', 'it-l10n-backupbuddy' ),
			'row_class' => 'advanced-toggle-title',
		)
	);

	$settings_form->add_setting(
		array(
			'type'      => 'text',
			'name'      => 'max_burst',
			'title'     => __( 'Send per burst', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Example: 10] - This is the amount of data that will be sent per burst within a single PHP page load/chunk. Bursts happen within a single page load. Chunks occur when broken up between page loads/PHP instances. Reduce if hitting PHP memory limits. Chunking time limits will only be checked between bursts. Lower burst size if timeouts occur before chunking checks trigger.', 'it-l10n-backupbuddy' ),
			'rules'     => 'required|int[5-9999999]',
			'css'       => 'width: 50px;',
			'after'     => ' MB',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'      => 'text',
			'name'      => 'max_time',
			'title'     => __( 'Max time per chunk', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Example: 30] - Enter 0 for no limit (aka no chunking; bursts may still occur based on burst size setting). This is the maximum number of seconds per page load that bursts will occur. If this time is exceeded when a burst finishes then the next burst will be chunked and ran on a new page load. Multiple bursts may be sent within each chunk.', 'it-l10n-backupbuddy' ),
			'rules'     => '',
			'css'       => 'width: 50px;',
			'after'     => ' secs. <span class="description">' . __( 'Blank for detected default:', 'it-l10n-backupbuddy' ) . ' ' . backupbuddy_core::detectMaxExecutionTime() . ' sec</span>',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'      => 'checkbox',
			'name'      => 'ssl',
			'options'   => array(
				'unchecked' => '0',
				'checked'   => '1',
			),
			'title'     => __( 'Encrypt connection', 'it-l10n-backupbuddy' ) . '*',
			'tip'       => __( '[Default: enabled] - When enabled, all transfers will be encrypted with SSL encryption. Disabling this may aid in connection troubles but results in lessened security. Note: Once your files arrive on our server they are encrypted using AES256 encryption. They are automatically decrypted upon download as needed.', 'it-l10n-backupbuddy' ),
			'css'       => '',
			'after'     => '<span class="description"> ' . __( 'Enable connecting over SSL.', 'it-l10n-backupbuddy' ) . '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Files are always encrypted with AES256 upon arrival.</span>',
			'rules'     => '',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'      => 'checkbox',
			'name'      => 'use_server_cert',
			'options'   => array(
				'unchecked' => '0',
				'checked'   => '1',
			),
			'title'     => __( 'Use system CA bundle', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Default: disabled] - When enabled, BackupBuddy will use your web server\'s certificate bundle for connecting to the server instead of BackupBuddy bundle. Use this if SSL fails due to SSL certificate issues.', 'it-l10n-backupbuddy' ),
			'css'       => '',
			'after'     => '<span class="description"> ' . __( 'Use webserver certificate bundle instead of BackupBuddy\'s.', 'it-l10n-backupbuddy' ) . '</span>',
			'rules'     => '',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'      => 'checkbox',
			'name'      => 'disable_hostpeer_verficiation',
			'options'   => array(
				'unchecked' => '0',
				'checked'   => '1',
			),
			'title'     => __( 'Disable SSL Verifications', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Default: disabled] - When enabled, the SSL host and peer information will not be verified. While the connection will still be encrypted SSL\'s man-in-the-middle protection will be voided. Disable only if you understand and if directed by support to work around host issues.', 'it-l10n-backupbuddy' ),
			'css'       => '',
			'after'     => '<span class="description"> ' . __( 'Check only if directed by support. Use with caution.', 'it-l10n-backupbuddy' ) . '</span>',
			'rules'     => '',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'      => 'checkbox',
			'name'      => 'debug_mode',
			'options'   => array(
				'unchecked' => '0',
				'checked'   => '1',
			),
			'title'     => __( 'Enable SDK debug mode', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Default: disabled] - When enabled, additional data will be logged by the SDK for troubleshooting.', 'it-l10n-backupbuddy' ),
			'css'       => '',
			'after'     => '<span class="description"> ' . __( 'Check if directed by support.', 'it-l10n-backupbuddy' ) . '</span>',
			'rules'     => '',
			'row_class' => 'advanced-toggle',
		)
	);
	if ( 'edit' !== $mode ) {
		$settings_form->add_setting(
			array(
				'type'      => 'checkbox',
				'name'      => 'disable_file_management',
				'options'   => array(
					'unchecked' => '0',
					'checked'   => '1',
				),
				'title'     => __( 'Disable file management', 'it-l10n-backupbuddy' ),
				'tip'       => __( '[Default: unchecked] - When checked, selecting this destination disables browsing or accessing files stored at this destination from within BackupBuddy.', 'it-l10n-backupbuddy' ),
				'css'       => '',
				'rules'     => '',
				'row_class' => 'advanced-toggle',
			)
		);
	}
	$settings_form->add_setting(
		array(
			'type'      => 'checkbox',
			'name'      => 'disabled',
			'options'   => array(
				'unchecked' => '0',
				'checked'   => '1',
			),
			'title'     => __( 'Disable destination', 'it-l10n-backupbuddy' ),
			'tip'       => __( '[Default: unchecked] - When checked, this destination will be disabled and unusable until re-enabled. Use this if you need to temporary turn a destination off but don\t want to delete it.', 'it-l10n-backupbuddy' ),
			'css'       => '',
			'after'     => '<span class="description"> ' . __( 'Check to disable this destination until re-enabled.', 'it-l10n-backupbuddy' ) . '</span>',
			'rules'     => '',
			'row_class' => 'advanced-toggle',
		)
	);
	$settings_form->add_setting(
		array(
			'type'    => 'hidden',
			'name'    => 'itxapi_username',
			'default' => $itxapi_username,
		)
	);
	$settings_form->add_setting(
		array(
			'type'    => 'hidden',
			'name'    => 'itxapi_token',
			'default' => $itxapi_token,
		)
	);
}

Anon7 - 2022
AnonSec Team