[ Avaa Bypassed ]




Upload:

Command:

www-data@3.144.124.77: ~ $
<?php 
if ( ! defined( 'ABSPATH' ) ) exit;
$sahu_so_social = unserialize(get_option('sahu_so_social'));	
?>
<table class="form-table">
	<tr>
		<th><?php _e('Facbook','site-offline'); ?></th>
	</tr>
	<tr class="radio-span" >
		<td>
				
			
			<input type="text" class="pro_text" id="sahu_so_fb" name="sahu_so_fb" placeholder="<?php _e('Enter Facebook profile url','site-offline'); ?>" size="56" value="<?php echo esc_url($sahu_so_social['sahu_so_fb']); ?>" />
				<span style="color: #8e8e8e;"> Note : Enter complete profile url with "http://" example  : https://www.facebook.com/sahufb/</span>		
							
		</td>
		
	</tr>
	<tr>
		<th><?php _e('Twitter','site-offline'); ?></th>
	</tr>
	<tr class="radio-span" >
		<td>
				
			
			<input type="text" class="pro_text" id="sahu_so_twit" name="sahu_so_twit" placeholder="<?php _e('Enter Twitter profile url','site-offline'); ?>" size="56" value="<?php echo esc_url($sahu_so_social['sahu_so_twit']); ?>" />
			<span style="color: #8e8e8e;">Note : Enter complete profile url with "http://" example  :https://twitter.com/sahu1</span>			
							
		</td>
		
	</tr>
		
		<tr>
			<th><?php _e('LinkedIn','site-offline'); ?></th>
		</tr>
		<tr class="radio-span" >
			<td>
					
				
				<input type="text" class="pro_text" id="sahu_so_ln" name="sahu_so_ln" placeholder="<?php _e('Enter LinkedIn profile url','site-offline'); ?>" size="56" value="<?php echo esc_url($sahu_so_social['sahu_so_ln']); ?>" />
							
					<span style="color: #8e8e8e;">Note : Enter complete profile url with "http://" example  : https://www.linkedin.com/</span>			
			</td>
			
		</tr>
		
		<tr>
			<th> <?php _e('Instagram','site-offline'); ?></th>
		</tr>
		<tr class="radio-span" >
			<td>
					
				
				<input type="text" class="pro_text" id="sahu_so_gp" name="sahu_so_gp" placeholder="<?php _e('Enter Instagram profile url ','site-offline'); ?>" size="56" value="<?php echo esc_url($sahu_so_social['sahu_so_gp']); ?>" />
				<span style="color: #8e8e8e;">Note : Enter complete profile url with "http://" </span>			
								
			</td>
			
		</tr>
		<tr class="radio-span" >
		<td>
				<button class="portfolio_read_more_btn "  onclick="sahu_save_data_social()"><?php _e('Save Settings','site-offline'); ?></button>
				<button class="portfolio_demo_btn" onclick="sahu_reset_data_social()" ><?php _e('Reset Default Setting','site-offline'); ?></button>
		</td>
		
	</tr>	
</table>

<script>
function sahu_save_data_social(){
 jQuery("#sahu_loding_image").show();
 var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
 var sahu_so_fb = jQuery("#sahu_so_fb").val();
 var sahu_so_twit = jQuery("#sahu_so_twit").val();
 var sahu_so_ln = jQuery("#sahu_so_ln").val();
 var sahu_so_gp = jQuery("#sahu_so_gp").val();
 
 
 	jQuery.ajax(
            {
	    	    type: "POST",
		        url: location.href,
	
		        data : {
			    'action_social':'sahu_sop_social',
			    'sahu_so_fb':sahu_so_fb,
				 'site_offline_form_secure':site_offline_form_secure,
			    'sahu_so_twit':sahu_so_twit,
			    'sahu_so_ln':sahu_so_ln,
			    'sahu_so_gp':sahu_so_gp,
			    
			        },
                success : function(data){
									jQuery("#sahu_loding_image").fadeOut();
									jQuery(".dialog-button").click();
                                   
								  
                                   }			
            });
 
}
</script>
<?php
if(isset($_POST['site_offline_form_secure'])) 
{
	if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
	{	
		if(isset($_POST['action_social'])=="sahu_sop_social") {
		$sahu_so_fb          = sanitize_text_field($_POST['sahu_so_fb']);
		$sahu_so_twit          = sanitize_text_field($_POST['sahu_so_twit']);
		$sahu_so_ln          = sanitize_text_field($_POST['sahu_so_ln']);
		$sahu_so_gp          = sanitize_text_field($_POST['sahu_so_gp']);
					
					
		$social = serialize( array(
			'sahu_so_fb' 		       => $sahu_so_fb,
			'sahu_so_twit' 		       => $sahu_so_twit,
			'sahu_so_ln' 		       => $sahu_so_ln,
			'sahu_so_gp'    		   => $sahu_so_gp,
			
			) );

		update_option('sahu_so_social', $social);
		}
	}
}
 ?>
 
 
 <script>
 
	function sahu_reset_data_social(){
		if (confirm('Are you sure you want to reste this setting?')) {
    
		} else {
		   return;
		}
		jQuery("#sahu_loding_image").show();
		var site_offline_form_secure = jQuery("#site_offline_form_secure").val();
		jQuery.ajax(
		{
			type: "POST",
			url: location.href,

			data : {
			'reset_action_social':'action_social_reset',
			 'site_offline_form_secure':site_offline_form_secure,
		   
				},
			success : function(data){
				jQuery("#sahu_loding_image").fadeOut();
				jQuery(".dialog-button").click();
				location.href='?page=sahu_site_offline_wp';
		  
		   }			
		});
	 
	}
	
</script>

<?php
if(isset($_POST['site_offline_form_secure'])) 
{
	if ( wp_verify_nonce( $_POST['site_offline_form_secure'], 'site_offline_secure_action_nonce' ) )
	{
		if(isset($_POST['reset_action_social'])=="action_social_reset") {
			
			
			$sahu_social = serialize( array(
			'sahu_so_fb' 		       => "#",
			'sahu_so_twit' 		       => "#",
			'sahu_so_ln' 		       => "#",
			'sahu_so_gp'    		   => "#",
			
			) );

			update_option('sahu_so_social', $sahu_social);
		}
	}
}
 ?>

Filemanager

Name Type Size Permission Actions
contact.php File 4.39 KB 0644
content.php File 11.14 KB 0644
countdown-setting.php File 4.44 KB 0644
dashboard.php File 6.81 KB 0644
design.php File 13.55 KB 0644
fs.php File 987 B 0644
pro.php File 725 B 0644
seo.php File 5.41 KB 0644
sidebar.php File 2.44 KB 0644
social.php File 5.32 KB 0644