HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/inspirationdigital.com.old/wp-content/plugins/file-away/lib/inc/inc.base.php
<?php
defined('fileaway') or die('Water, water everywhere, but not a drop to drink.');
$url = $this->op['baseurl']; 
$s2mem = fileaway_definitions::$s2member && ($base == 's2member-files' || stripos($this->op['base'.$base], 'plugins/s2member-files') !== false) ? true : false;
$base = $s2mem ? fileaway_utility::replacefirst(WP_PLUGIN_DIR.'/s2member-files', $chosenpath, '') : $this->op['base'.$base];
$base = trim($base, '/'); 
$base = trim($base, '/');
if($base == '' || $base == null) 
{
	echo 'Your Base Directory is not set.'; 
	return 2;
}
$sub = $sub ? trim($sub, '/') : false;
$dir = $sub ? $base.'/'.$sub : $base;
$dir = str_replace('//', '/', "$dir");
$dir = $problemchild ? $install.$dir : $dir;
$plabackpath = $playback ? $playbackpath : false;
if($s2mem)
{
	$iss2 = true;
	$s2skip = $s2skipconfirm ? '&s2member_skip_confirmation' : '';	
}