HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/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 = str_replace('\\','/',$this->op['baseurl']); 

$s2mem = fileaway_definitions::$s2member && ($base == 's2member-files' || stripos($this->op['base'.$base], 'plugins/s2member-files') !== false) ? true : false;

$base = $s2mem ? str_replace('\\','/',fileaway_utility::replacefirst(WP_PLUGIN_DIR.'/s2member-files', $chosenpath, '')) : str_replace('\\','/',$this->op['base'.$base]);

$base = trim(str_replace('\\','/',$base), '/'); 

$base = trim(str_replace('\\','/',$base), '/');

if($base == '' || $base == null) 

{

	echo 'Your Base Directory is not set.'; 

	return 2;

}

$sub = $sub ? trim(str_replace('\\','/',$sub), '/') : false;

$dir = $sub ? $base.'/'.$sub : $base;

$dir = str_replace('//', '/', "$dir");

$dir = $problemchild ? $install.$dir : $dir;

$plabackpath = $playback ? str_replace('\\','/',$playbackpath) : false;

if($s2mem)

{

	$iss2 = true;

	$s2skip = $s2skipconfirm ? '&s2member_skip_confirmation' : '';	

}