\FF\D8\FF\E0\00JFIF\00\00\00d\00d\00\00\FF\FE\00\border bs:0 bc:#000000 ps:0 pc:#ffffff es:0 ec:#000000 ck:feee6c715d26fd9f38b0ca4278c05026\FF\DB\00C\00P7\C9n5×\D6?\BDê\9Ds\EBp\9F[`8m\B7)o\B5\E8\E6I\99\FE3]]A2\BA\8Cw\D6E\93\\DEv\C8\009\F2\F1NI?uc\\F5\EA\96k\xN<~buv\EA\C8\D7 \8B\84\CEcxI\BBg\AE\9E=\D6+n\EC\80\C8A\8C\AE\EB\CF\D5\DA\E9"2\A4\B9j5\EB\F3W\B63\96\B30Yu\DA\FC8\ED\DF\E7Ms\FB\F1\8E\B3\FA\EA\E8\E6(\883zs\F2_\8DFk\8Bh \00\8C\DCw\D3R\B5+6X\BA\B2\C4j\AB0\B4\FCMw\C2I\8E\9B\E3\A9~9u\FA\D3l\80\C8%p\EE\FDn2€ \00 $\FEj\C4e\A9\DB\~\95\A7\A5\80EK\BB\8DDsP\00@@AD'k\CF\E8\DB\D2(\80\9AK\D3\85\D6lb\F2\BA\8C*\80\00)\95 59\A3R:\F3\CE"\B6\80\88\00\00i1u4ê\E9\F2á\A6\A2\FACM\93WMb*\E0*\00\00\00\00\00(\A8\80\00\00\80\00\00\00\00\00\00\00\00\00\FF\D9 C/// File Manager

File Manager

Path: /usr/local/sitepad/editor/site-data/plugins/gosmtp-pro/main/

Viewing File: license.php

<?php
/*
* GoSMTP
* https://gosmtp.net
* (c) Softaculous Team
*/

if(!defined('ABSPATH')){
	die('Hacking Attempt!');
}

include_once(GOSMTP_DIR.'/main/settings.php');

function gosmtp_license(){
	
	global $lic_resp;
	
	if(!wp_verify_nonce($_POST['gosmtp_license_nonce'], 'gosmtp_license')){
		gosmtp_notify( __('Security Check Failed'), 'error');
		return;
	}

	$license = sanitize_key($_POST['gosmtp_license']);
	
	if(empty($license)){
		gosmtp_notify(__('The license key was not submitted'), 'error');
		return;
	}
	
	gosmtp_pro_load_license($license);
	
	if(!is_array($lic_resp)){
		gosmtp_notify(__('The response was malformed<br>'.var_export($lic_resp, true)), 'error');
		return;
	}

	$json = json_decode($lic_resp['body'], true);

	if(empty($json['license'])){
		gosmtp_notify(__('The license key is invalid'), 'error');
		return;
	}
	
	gosmtp_notify(__('Successfully updated the license key'));
	
}
	
function gosmtp_notify($message, $type = 'updated', $dismissible = true){
	$is_dismissible = '';
	
	if(!empty($dismissible)){
		$is_dismissible = 'is-dismissible';
	}
	
	if(!empty($message)){
		echo '<div class="'.$type.' '.$dismissible.' notice">
			<p>'.$message.'</p>
		</div>';
	}
}
	
if(isset($_REQUEST['save_gosmtp_license'])){
	gosmtp_license();
}
?>
	
<div class="gosmtp-license-content wrap" >
	<?php gosmtp_page_header('GOSMTP License'); ?>
	<div class="gosmtp-tab-group"  style=" width:100% ;background:white; padding:50px; box-sizing:border-box;border:1px solid #c3c4c7;">
		<h3><?php _e('System Information'); ?></h3>
		<table class="wp-list-table fixed striped users gosmtp-license-table" cellspacing="1" border="0" width="100%" cellpadding="10" align="center">
			<tbody>
				<tr>				
					<th align="left" width="25%"><?php esc_html_e('GOSMTP Version', 'gosmtp'); ?></th>
					<td><?php
						echo GOSMTP_PRO_VERSION.' (Pro Version)';
					?>
					</td>
				</tr>
				<tr>			
					<th align="left" valign="top"><?php esc_html_e('GOSMTP License', 'gosmtp'); ?></th>
					<td align="left">
						<form method="post" action="">
							<?php echo (defined('GOSMTP_PREMIUM') && empty($gosmtp->license['license']) ? '<span style="color:red">Unlicensed</span> &nbsp; &nbsp;' : '')?>
							<input type="hidden" name="gosmtp_license_nonce" value="<?php echo wp_create_nonce('gosmtp_license');?>"/>
							<input type="text" name="gosmtp_license" value="<?php echo (empty($gosmtp->license['license']) ? '': $gosmtp->license['license'])?>" size="30" placeholder="e.g. GSMTP-11111-22222-33333-44444" style="width:300px;"> &nbsp; 
							<input name="save_gosmtp_license" class="button button-primary dosmtp-sumbit-licence" value="Update License" type="submit">
						</form>
						<?php if(!empty($gosmtp->license['license'])){
								
								$expires = $gosmtp->license['expires'];
								$expires = substr($expires, 0, 4).'/'.substr($expires, 4, 2).'/'.substr($expires, 6);
								
								echo '<div style="margin-top:10px;">License Status : '.(empty($gosmtp->license['status_txt']) ? 'N.A.' : wp_kses_post($gosmtp->license['status_txt'])).' &nbsp; &nbsp; &nbsp; 
								'.($gosmtp->license['expires'] <= date('Ymd') ? 'License Expires : <span style="color:var(--red)">'.esc_attr($expires).'</span>' : (empty($gosmtp->license['has_plid']) ? 'License Expires : '.esc_html($expires) : '')).'
								</div>';
								
						}?>
					</td>
				</tr>
				<tr>
					<th align="left">URL</th>
					<td><?php echo get_site_url(); ?></td>
				</tr>
				<tr>				
					<th align="left">Path</th>
					<td><?php echo ABSPATH; ?></td>
				</tr>
				<tr>
					<th align="left"><?php _e('Server\'s IP Address') ?></th>
					<td><?php echo esc_url($_SERVER['SERVER_ADDR']); ?></td>
				</tr>
				<tr>				
					<th align="left">.htaccess <?php _e('is writable') ?></th>
					<td><?php echo (is_writable(ABSPATH.'/.htaccess') ? '<span style="color:var(--gosmtp-red)">Yes</span>' : '<span style="color:green">No</span>');?></td>
				</tr>		
			</tbody>
		</table>
	</div>
	<?php gosmtp_page_footer(); ?>
</div>