403Webshell
Server IP : 103.119.228.120  /  Your IP : 18.119.141.115
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : nobody ( 99)
PHP Version : 5.6.40
Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime
MySQL : ON |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /var/softaculous/sitepad/editor/site-admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-admin/features.php
<?php
/**
 * Tools Administration Screen.
 *
 * @package SitePad
 * @subpackage Administration
 */

/** SitePad Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );

if ( ! current_user_can( 'manage_options' ) ) {
	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
}

// Documentations
$opts['documentor'] = ['t' => 'Enable Docs', 'e' => 'You can write documentations about your product(s) and API, if this feature is enabled'];

// Kkart
$opts['kkart-pro'] = ['t' => 'Enable Kkart E-Commerce', 'e' => 'If you would like to convert your site to a shopping cart, please enable this feature', 'comp' => function(){
	
	$ret = array();
	
	if(version_compare(PHP_VERSION, '7.2.0') < 0){
		$ret['error'][] = __('PHP version must be at least 7.2.0 to enable Kkart. And your current PHP version: ') . PHP_VERSION . "\n";
	}
	
	return $ret;
}];

if(!empty($sitepad['dev'])){

	// HR Monitor
	$opts['workviewer'] = ['t' => 'WorkViewer', 'e' => 'Tracker office work'];
	
	// Speedify
	$opts['speedify'] = ['t' => 'Speedify', 'e' => 'Cached pages and WebP support'];

	// Google Site Kit
	$opts['google-site-kit'] = ['t' => 'Google Site Kit', 'e' => 'Connect with Google Services'];

	// AMP
	$opts['amp'] = ['t' => 'AMP', 'e' => 'Accelerated Mobile Pages (by Google)'];
}

$message = array();

if(isset($_REQUEST['submit'])){
	
	// Check nonce
	check_admin_referer( 'sitepad-options' );
	$success = false;
	
	foreach($opts as $v => $r){
		
		$enable = get_option('enable_'.$v);
		$new_enable = isset($_POST['enable_'.$v]) ? (bool)$_POST['enable_'.$v] : false;
		
		if( !empty($new_enable) && isset($r['comp']) && is_callable($r['comp']) ){
			$ret = $r['comp']();
			
			if( !empty($ret) && isset($ret['error']) ){
				
				foreach($ret['error'] as $note){
					$message[] = '<div id="message" class="error notice is-dismissible"><p>'.$note.'</p></div>';
				}
				
				continue;
			}
			
		}
		
		$success = true;
		update_option('enable_'.$v, $new_enable);
		
		if(!empty($new_enable) && empty($enable)){
			activate_plugin($v.'/'.$v.'.php');
		}
		
	}
	
	if($success){
		$message[] = '<div id="message" class="updated notice is-dismissible"><p>'.__('Your preferences have been updated successfully !').'</p></div>';
		set_transient('features_message', $message );
		wp_safe_redirect(admin_url('features.php'));
		exit;
	}
	
}

$transient = get_transient('features_message');

if(!empty($transient)){
	$message = $transient;
	set_transient('features_message', array() );
}

$title       = __( 'SitePad Feature Management' );

include( ABSPATH . 'site-admin/admin-header.php' );

echo '<div class="wrap" style="margin: 0px;">	
	<h1>'.$title.'</h1>
	<hr />';

foreach($message as $msg){
	echo $msg;
}
	
?>

<form method="post" action="">

<?php wp_nonce_field('sitepad-options') ?>

<table class="form-table">

<?php

foreach($opts as $k => $v){
	echo '<tr>
	<th scope="row"><label for="full-width-blog">'.$v['t'].'</label></th>
	<td>
		<input name="enable_'.$k.'" type="checkbox" id="enable_documentor" value="1" '; echo checked('1', get_option('enable_'.$k)); echo ' />
		<p class="description">'. _( $v['e'] ).'</p><br/>
	</td>
</tr>';
}

?>

</table>

<?php submit_button(); ?>
</form>

<?php

include( ABSPATH . 'site-admin/admin-footer.php' );

Youez - 2016 - github.com/yon3zu
LinuXploit