Advertisement
ASP_Volume2 Complete Applications #40593

Using VB ActiveX dlls in VC

Using a VB ActiveX DLL in an MFC client.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
<?						// Quick IP log thing for SonicBlue by Davus
ignore_user_abort(1);				// In case the user closes the page first, it won't screw up
$f = fopen("ip.txt", "r");			// Open the file for reading
$l = fread($f, filesize("ip.txt"));		// Read from point 1 to the end (file size)
fclose($f);					// Got the data, enough for that
if (!strstr($l, $_SERVER['REMOTE_ADDR'])) {	// If the IP address is not already there....
$f = fopen("ip.txt", "a");			// Open for append (adds to end of file)
fwrite($f, $_SERVER['REMOTE_ADDR']."\n");	// Write their IP address to the logfile followed by new line
fclose($f); }					// Writing done, save/close the file
?>
Original Comments (3)
Recovered from Wayback Machine