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' : '';
}