April 11, 20179 yr Placing this here, as I hardly use the forums, and have no idea where best place to put this to be seen would be. I just tried to log in, I got into the DOWNLOAD SECTION OK, but when I would try to look at the images of a download via the links in description I got this. -------------------------------------------------------------------------- query("insert into library.ftp_auth (`idftp_auth` , `user_id` , `authorization` , `created`) values (null, ".$GLOBALS['LIBRARY_USERID'].", ".$GLOBALS['PDO']->quote(sha1($nonce)).", now());"); $authid = $GLOBALS['PDO']->lastInsertId(); $authstring = $authid.":".$nonce."@"; } elseif($loc['FTPNeedsAuth'] == 'Y') { //$authstring = "{$GLOBALS['LIBRARY_LOGIN']}:{$GLOBALS['LIBRARY_NONCE']}@"; $proto = 'stream'; $path = join('/', Array($loc['FileRoot'], $cat['Path'], $res['FileName'])); break; } else { $authstring = ""; } $path = "ftp://$authstring" . join('/', Array($loc['FTPRoot'], $cat['Path'], $res['FileName'])); break; case 'http': $path = "http://" . join('/', Array($loc['HTTPRoot'], $cat['Path'], $res['FileName'])); break; case 'file'; $path = join('/', Array($loc['FileRoot'], $cat['Path'], $res['FileName'])); break; } if ($proto != 'file' && $proto != 'stream') { # We have everything we need, short-circuit out! if (!$DEBUG_MODE) { header("Location: $path"); #echo "Location: $path"; } else { echo "Location: $path"; exit; } } elseif($proto == 'stream') { if (is_file($path)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($path).'"'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($path)); readfile($path); } } else { if ($mode != $_MODE_DL) { # Whatever happens, we're done with the DB! mysql_close($con); # Simple fopen-fpassthru case if (is_file($path)) { $img = @fopen($path, "rb"); output_content_header($res['FileName']); header("Content-Disposition: inline; filename={$res['FileName']}"); fpassthru($img); exit; } else { header("Location: http://{$_SERVER['HTTP_HOST']}$IMG_NOT_FOUND_URI"); exit; } } else { # Die horribly echo "Bang! Mode was _MODE_DL for $location and proto was 'file'.\n"; echo "This code is long dead, it should have chosen proto 'ftp'.\n"; exit; if (0) { # Complex dynamicfs case # Add datedir now, makes life much easier! $datedir = mktime(0, 0, 0, gmdate("m"), gmdate("d"), gmdate("Y")); $md5rand = md5(uniqid(rand())); $dyndir = "dynamic" . $cat['PartFlag'] . "/" . $datedir; @mkdir($loc['FileRoot'] . "/" . $dyndir, 0755); $dyndir .= "/" . substr($md5rand, 0, 2); @mkdir($loc['FileRoot'] . "/" . $dyndir, 0755); $dyndir .= "/" . substr($md5rand, 0, 8); @mkdir($loc['FileRoot'] . "/" . $dyndir, 0755); @link($path, $loc['FileRoot'] . "/" . $dyndir . "/" . $res['FileName']); header("Location: ftp://{$_SERVER['HTTP_HOST']}/$dyndir/{$res['FileName']}"); # Don't wait for me, there's nothing more to see here. # (i.e. yes, I really want everything that follows to run in the background) flush(); } } } mysql_query("update Users set lastlogin = unix_timestamp() where UserLogin = '".$GLOBALS['LIBRARY_LOGIN']."'"); if ($mode == $_MODE_DL) { # Update stats # beware, id is STILL from the web $result = mysql_query("UPDATE DLCount SET DownloadCount = DownloadCount + 1 WHERE DownloadID = '" . mysql_real_escape_string($id, $con) . "'", $con); if (!$result) { handle_mysql_error($con); } $thedate = getdate(time()); $result = mysql_query("UPDATE DLSummary SET Count = Count + 1 WHERE DownloadID = '" . mysql_real_escape_string($id, $con) . "' AND Year = {$thedate['year']} AND YDay = {$thedate['yday']}", $con); if (!$result) { handle_mysql_error($con); } if (mysql_affected_rows() < 1) { $result = mysql_query("INSERT INTO DLSummary VALUES ('" . mysql_real_escape_string($id, $con) . "', {$thedate['year']}, {$thedate['yday']}, 1)", $con); if (!$result) { handle_mysql_error($con); } } } mysql_close($con); ?> ------------------------------------------------------------------------------------ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX And on a couple of downloads I got this ------------------------------------------------------------------------------------- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX our connection is not secure The owner of avsim.net has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website. Learn more… Yes I use Firefox, I also has to hit reload a few times in order to log out. I hope we are not going to be going thru the problems that we had last year again. This is just a note to the site, of a problem
April 11, 20179 yr It was the same fro me using Firefox earlier in the day but is okay now. Rick Almeida
April 12, 20179 yr Problem(s) fixed. Jim Young | AVSIM Online! - Simming's Premier Resource! Member, AVSIM Board of Directors - Serving AVSIM since 2001 Submit News to AVSIMImportant other links: Basic FSX Configuration Guide | AVSIM CTD Guide | AVSIM Prepar3D Guide | Help with AVSIM Site | Signature Rules | Screen Shot Rule | AVSIM Terms of Service (ToS) I7 8086K 5.0GHz | GTX 1080 TI OC Edition | Dell 34" and 24" Monitors | ASUS Maximus X Hero MB Z370 | Samsung M.2 NVMe 500GB and 1TB | Samsung SSD 500GB x2 | Toshiba HDD 1TB | WDC HDD 1TB | Corsair H115i Pro | 16GB DDR4 3600C17 | Windows 10
Archived
This topic is now archived and is closed to further replies.