64 ) { $msg = << 'manage-dataset' , 'dataset_slug' => $dataset_slug , 'record_key' => NULL ) ; if ( $page_variant !== '' ) { $query_changes['pv'] = $page_variant ; } $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $application = '&application=' . $_GET['application'] ; } else { $application = '' ; } // --------------------------------------------------------------------- if ( array_key_exists( 'page' , $_GET ) ) { $page = $_GET['page'] ; } else { $page = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } // --------------------------------------------------------------------- if ( $page_variant !== '' ) { $page_variant = '&pv=' . urlencode( $page_variant ) ; } // --------------------------------------------------------------------- return \untrailingslashit( \admin_url() ) . << 64 ) { $msg = << 'add-record' , 'dataset_slug' => $dataset_slug , 'return_to' => $return_to , 'view_slug' => $view_slug ) ; if ( is_string( $view_title ) ) { $query_changes['view_title'] = $view_title ; } } else { $query_changes = array( 'action' => 'add-record' , 'dataset_slug' => $dataset_slug ) ; } $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $application = '&application=' . $_GET['application'] ; } else { $application = '' ; } // --------------------------------------------------------------------- if ( array_key_exists( 'page' , $_GET ) ) { $page = $_GET['page'] ; } else { $page = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } // --------------------------------------------------------------------- if ( is_string( $return_to ) && trim( $return_to ) !== '' && is_string( $view_slug ) && trim( $view_slug ) !== '' ) { $url = \untrailingslashit( \admin_url() ) . << 64 ) { $msg = << 64 ) { $msg = << 'edit-record' , 'dataset_slug' => $dataset_slug , 'record_key' => $record_key , 'return_to' => $return_to , 'view_slug' => $view_slug ) ; if ( is_string( $view_title ) ) { $query_changes['view_title'] = $view_title ; } } else { $query_changes = array( 'action' => 'edit-record' , 'dataset_slug' => $dataset_slug , 'record_key' => $record_key ) ; } // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $query_changes['application'] = $_GET['application'] ; } else { $query_changes['application'] = NULL ; } // --------------------------------------------------------------------- $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $application = '&application=' . $_GET['application'] ; } else { $application = '' ; } // --------------------------------------------------------------------- if ( array_key_exists( 'page' , $_GET ) ) { $page = $_GET['page'] ; } else { $page = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } // --------------------------------------------------------------------- if ( is_string( $return_to ) && trim( $return_to ) !== '' && is_string( $view_slug ) && trim( $view_slug ) !== '' ) { $url = \untrailingslashit( \admin_url() ) . << 64 ) { $msg = << 64 ) { $msg = << 'delete-record' , 'dataset_slug' => $dataset_slug , 'record_key' => $record_key , 'return_to' => $return_to , 'view_slug' => $view_slug ) ; if ( is_string( $view_title ) ) { $query_changes['view_title'] = $view_title ; } } else { $query_changes = array( 'action' => 'edit-record' , 'dataset_slug' => $dataset_slug , 'record_key' => $record_key ) ; } // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $query_changes['application'] = $_GET['application'] ; } else { $query_changes['application'] = NULL ; } // --------------------------------------------------------------------- $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $application = '&application=' . $_GET['application'] ; } else { $application = '' ; } // --------------------------------------------------------------------- if ( array_key_exists( 'page' , $_GET ) ) { $page = $_GET['page'] ; } else { $page = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } // --------------------------------------------------------------------- if ( is_string( $return_to ) && trim( $return_to ) !== '' && is_string( $view_slug ) && trim( $view_slug ) !== '' ) { $url = \untrailingslashit( \admin_url() ) . << 64 ) { $msg = << 64 || ! \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['action_slug'] ) ) { $msg = << 64 ) { $msg = << 'custom' , 'dataset_slug' => $dataset_slug , 'action_slug' => $action_slug , 'record_key' => $record_key , 'return_to' => $return_to , 'view_slug' => $view_slug ) ; if ( is_string( $view_title ) ) { $query_changes['view_title'] = $view_title ; } } else { $query_changes = array( 'action' => 'custom' , 'dataset_slug' => $dataset_slug , 'action_slug' => $action_slug , 'record_key' => $record_key ) ; } // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $query_changes['application'] = $_GET['application'] ; } else { $query_changes['application'] = NULL ; } // --------------------------------------------------------------------- $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- if ( isset( $_GET['application'] ) && trim( $_GET['application'] ) !== '' && strlen( $_GET['application'] ) <= 64 && \greatKiwi_byFernTec_adSwapper_local_v0x1x208_stringUtils\ctype_alphanumeric_underscore_dash( $_GET['application'] ) ) { $application = '&application=' . $_GET['application'] ; } else { $application = '' ; } // --------------------------------------------------------------------- if ( array_key_exists( 'page' , $_GET ) ) { $page = $_GET['page'] ; } else { $page = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } // --------------------------------------------------------------------- if ( is_string( $return_to ) && trim( $return_to ) !== '' && is_string( $view_slug ) && trim( $view_slug ) !== '' ) { $url = \untrailingslashit( \admin_url() ) . <<.app/plugin.stuff/custom.pages/.cp/ // directory. // // 2. If:- // $page_slug === NULL // then we look for the page slug in:- // $_GET['page'] // (and it's a FATAL error if that GET variable doesn't exist). // // 3. If:- // $application_slug === NULL // then we look for the application slug in:- // $_GET['application'] // (and it's a FATAL error if that GET variable doesn't exist). // // 4. If:- // $custom_page_slug === NULL // then we look for the custom page slug in:- // $_GET['custom_page'] // (and it's a FATAL error if that GET variable doesn't exist). // // RETURNS // o On SUCCESS // $url STRING // // o On FAILURE // ARRAY( $error_message STRING ) // ------------------------------------------------------------------------- $ns = __NAMESPACE__ ; $fn = __FUNCTION__ ; // ------------------------------------------------------------------------- if ( ! is_string( $page_slug ) || trim( $page_slug ) === '' ) { if ( array_key_exists( 'page' , $_GET ) && is_string( $_GET['page'] ) && trim( $_GET['page'] ) !== '' ) { $page_slug = $_GET['page'] ; } else { $page_slug = \greatKiwi_byFernTec_adSwapper_local_v0x1x208_appsAPI\get_page_query_variable_value() ; } } // ------------------------------------------------------------------------- if ( ! is_string( $application_slug ) || trim( $application_slug ) === '' ) { if ( ! array_key_exists( 'application' , $_GET ) || ! is_string( $_GET['application'] ) || trim( $_GET['application'] ) === '' ) { $msg = << $page_slug , 'action' => 'custom-page' , 'application' => $application_slug , 'custom_page' => $custom_page_slug ) ; $question_amp = FALSE ; $question_die_on_error = FALSE ; return \greatKiwi_byFernTec_adSwapper_local_v0x1x208_urlUtils\get_query_adjusted_current_page_url( $query_changes , $question_amp , $question_die_on_error ) ; // --------------------------------------------------------------------- } else { // --------------------------------------------------------------------- return \untrailingslashit( \admin_url() ) . <<