[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.139.86.53: ~ $
<?php
/**
 * UserRegistration Form Functions
 *
 * Functions related to forms.
 *
 * @package  UserRegistration/Functions
 * @version  1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

function ur_get_form_fields( $form_id ) {
	$form_id = (int) $form_id;

	$form_fields = array();

	if ( ! empty( $form_id ) ) {
		$post_content_array = ( $form_id ) ? UR()->form->get_form( $form_id, array( 'content_only' => true ) ) : array();

		foreach ( $post_content_array as $row_index => $row ) {
			foreach ( $row as $grid_index => $grid ) {
				foreach ( $grid as $field_index => $field ) {
					$field_name = $field->general_setting->field_name;

					if ( $field_name ) {
						$form_fields[ $field_name ] = $field;
					}
				}
			}
		}
	}

	return $form_fields;
}

function ur_get_form_field_keys( $form_id ) {
	$form_fields = ur_get_form_fields( $form_id );

	$field_keys = array();

	if ( ! empty( $form_fields ) && is_array( $form_fields ) ) {
		$field_keys = array_keys( $form_fields );
	}

	return $field_keys;
}

/**
 * Returns settings for all form fields in proper array format.
 *
 * Uses UR_FrontEnd_Form_Handler::get_form_field_data() function.
 *
 * @param integer $form_id Form Id.
 * @return array
 */
function ur_get_form_field_data( $form_id = 0 ) {

	$post_content_array = ( $form_id ) ? UR()->form->get_form( $form_id, array( 'content_only' => true ) ) : array();

	$form_field_data = UR_Frontend_Form_Handler::get_form_field_data( $post_content_array );

	return $form_field_data;
}

Filemanager

Name Type Size Permission Actions
3rd-party Folder 0755
RestApi Folder 0755
abstracts Folder 0755
admin Folder 0755
blocks Folder 0755
form Folder 0755
frontend Folder 0755
interfaces Folder 0755
libraries Folder 0755
log-handlers Folder 0755
shortcodes Folder 0755
stats Folder 0755
validation Folder 0755
class-ur-ajax.php File 60.74 KB 0644
class-ur-autoloader.php File 2.25 KB 0644
class-ur-background-updater.php File 2.46 KB 0644
class-ur-cache-helper.php File 2.61 KB 0644
class-ur-cron.php File 1.44 KB 0644
class-ur-email-approval.php File 7.15 KB 0644
class-ur-email-confirmation.php File 16.92 KB 0644
class-ur-emailer.php File 46.02 KB 0644
class-ur-form-block.php File 4.58 KB 0644
class-ur-form-handler.php File 37.01 KB 0644
class-ur-frontend-scripts.php File 24.51 KB 0644
class-ur-install.php File 21.99 KB 0644
class-ur-log-levels.php File 2.79 KB 0644
class-ur-logger.php File 8.64 KB 0644
class-ur-plugin-updater.php File 25.9 KB 0644
class-ur-post-types.php File 4.03 KB 0644
class-ur-preview.php File 8.18 KB 0644
class-ur-privacy.php File 7.44 KB 0644
class-ur-query.php File 6.05 KB 0644
class-ur-session-handler.php File 10.59 KB 0644
class-ur-shortcodes.php File 16.27 KB 0644
class-ur-smart-tags.php File 28.28 KB 0644
class-ur-user-approval.php File 18.43 KB 0644
functions-ur-account.php File 10.23 KB 0644
functions-ur-core.php File 247.9 KB 0644
functions-ur-deprecated.php File 7.7 KB 0644
functions-ur-form.php File 1.47 KB 0644
functions-ur-notice.php File 7.42 KB 0644
functions-ur-page.php File 11.17 KB 0644
functions-ur-template.php File 68.04 KB 0644
functions-ur-update.php File 13.99 KB 0644