16
FHFS / Re: 500 - This account is missing it's root file folder
« on: August 07, 2014, 03:36:01 AM »
Well... for one reason or another it can't be accessed. From there I can't really tell you why.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
check_file("server.dll", "Startup_Error_0x0001");
check_file("hfs.events", "Startup_Error_0x1001");
check_file("version.dat", "Startup_Error_0x1002");
check_file("hfs.ini", "Startup_Error_0x1003");
check_file("hfs.vfs", "Startup_Error_0x1004");
check_file("openssl-bin\\openssl.exe", "Startup_Error_0x2001");
check_file("openssl-bin\\ssleay32.dll", "Startup_Error_0x2002");
check_file("openssl-bin\\libeay32.dll", "Startup_Error_0x2003");
check_file("openssl-bin\\libssl32.dll", "Startup_Error_0x2004");
check_file("stunnel-bin\\stunnel.exe", "Startup_Error_0x3001");
check_file("stunnel-bin\\libeay32.dll", "Startup_Error_0x3002");
check_file("stunnel-bin\\msvcr90.dll", "Startup_Error_0x3003");
check_file("stunnel-bin\\ssleay32.dll", "Startup_Error_0x3004");
check_file("php-bin\\php5ts.dll", "Startup_Error_0x4001");
check_file("php-bin\\php.exe", "Startup_Error_0x4002");
check_file("filezilla-bin\\FileZilla.exe", "Startup_Error_0x5001");
check_file("filezilla-bin\\FzGSS.dll", "Startup_Error_0x5002");
check_file("filezilla-bin\\libeay32.dll", "Startup_Error_0x5003");
check_file("filezilla-bin\\ssleay32.dll", "Startup_Error_0x5004");
check_file("sendemail-bin\\email.exe", "Startup_Error_0x6001");
<?php
function loadHFS($file) {
$output = array();
$hfsini = preg_split("/\r\n|\n|\r/", file_get_contents("hfs.ini"));
foreach ($hfsini as $string) { if ($string) {
$split = explode("=",$string,2);
if (isset($split[0]) && isset($split[1])) { $output[$split[0]] = $split[1]; }
}}
$accounts = explode(";",$output['accounts']); $output['accounts'] = array();
foreach ($accounts as $string) { if ($string) {
$string = explode("|",$string); $account = array();
foreach ($string as $info) {
$split = explode(':',$info,2);
if (isset($split[0]) && isset($split[1])) { $account[$split[0]] = $split[1]; }
}
if (!empty($account['login'])) { $account['login'] = explode(":",base64_decode($account['login'])); }
if (!empty($account['notes'])) {
$notes = preg_split("/\r\n|\n|\r/",zlib_decode(base64_decode($account['notes']))); $data = array();
foreach ($notes as $note) {
$split = explode("=",$note);
$data[$split[0]] = $split[1];
}
$account['notes'] = $data;
}
array_push($output['accounts'],$account);
}}
return $output;
}
print_r( loadHFS("hfs.ini") );
?>