|
From: FlorinCB <ory...@us...> - 2008-10-22 23:50:17
|
Update of /cvsroot/mxbb/mx_contact/includes In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16917 Modified Files: contact_attach.php Log Message: Index: contact_attach.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/includes/contact_attach.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** contact_attach.php 12 Dec 2007 18:41:43 -0000 1.1 --- contact_attach.php 22 Oct 2008 23:50:09 -0000 1.2 *************** *** 34,38 **** // $attachment = !empty($attachment) ? strtolower(urlencode(basename($HTTP_POST_FILES['attachment']['name']))) : ''; ! $attach = $server_url . $script_path . "/" . trim($contact_config['contact_file_root']) . "/" . decode_ip($user_ip) . "/" . $attachment; } else --- 34,38 ---- // $attachment = !empty($attachment) ? strtolower(urlencode(basename($HTTP_POST_FILES['attachment']['name']))) : ''; ! $attach = $server_url . $script_path . "/" . trim($contact_config['contact_file_root']) . "/" . contact_contact_decode_ip($user_ip) . "/" . $attachment; } else *************** *** 48,55 **** // Generate a random Filename $attachment = !empty($attachment) ? strtolower(md5(mt_rand() * time()) . "." . $extn) : ''; ! $attach = $server_url . $script_path . "/" . trim($contact_config['contact_file_root']) . "/" . decode_ip($user_ip) . "/" . $attachment; } ! $delete_link = sprintf("\n" . $lang['Remove_file'], $server_url . $script_name . "?delete=" . decode_ip($user_ip) . "/" . $attachment . "\n"); // --- 48,55 ---- // Generate a random Filename $attachment = !empty($attachment) ? strtolower(md5(mt_rand() * time()) . "." . $extn) : ''; ! $attach = $server_url . $script_path . "/" . trim($contact_config['contact_file_root']) . "/" . contact_decode_ip($user_ip) . "/" . $attachment; } ! $delete_link = sprintf("\n" . $lang['Remove_file'], $server_url . $script_name . "?delete=" . contact_decode_ip($user_ip) . "/" . $attachment . "\n"); // *************** *** 126,130 **** $CF_general_message = 1; } ! elseif(file_exists(@phpbb_realpath($phpbb_root_path . $contact_config['contact_file_root'] . "/" . decode_ip($user_ip) . "/" . $attachment))) { $CF_attach_file_exists = $_br . $lang['Attach-File_exists']; --- 126,130 ---- $CF_general_message = 1; } ! elseif(file_exists(@phpbb_realpath($phpbb_root_path . $contact_config['contact_file_root'] . "/" . contact_decode_ip($user_ip) . "/" . $attachment))) { $CF_attach_file_exists = $_br . $lang['Attach-File_exists']; *************** *** 253,257 **** error_check(); ! if(!file_exists(@phpbb_realpath($module_root_path . $contact_config['contact_file_root'] . "/" . decode_ip($user_ip)))) { if(!file_exists(@phpbb_realpath($module_root_path . $contact_config['contact_file_root'] . "/"))) --- 253,257 ---- error_check(); ! if(!file_exists(@phpbb_realpath($module_root_path . $contact_config['contact_file_root'] . "/" . contact_decode_ip($user_ip)))) { if(!file_exists(@phpbb_realpath($module_root_path . $contact_config['contact_file_root'] . "/"))) *************** *** 262,273 **** @fclose($fd); } ! @mkdir($module_root_path . $contact_config['contact_file_root'] . "/" . decode_ip($user_ip), 0755); } if(@is_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'])) { ! @move_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'], $module_root_path . $contact_config['contact_file_root'] . "/" . decode_ip($user_ip) . "/" . $attachment); ! $fa = @fopen($module_root_path . $contact_config['contact_file_root'] . "/" . decode_ip($user_ip) . "/index.html", 'a'); @fclose($fa); --- 262,273 ---- @fclose($fd); } ! @mkdir($module_root_path . $contact_config['contact_file_root'] . "/" . contact_decode_ip($user_ip), 0755); } if(@is_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'])) { ! @move_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'], $module_root_path . $contact_config['contact_file_root'] . "/" . contact_decode_ip($user_ip) . "/" . $attachment); ! $fa = @fopen($module_root_path . $contact_config['contact_file_root'] . "/" . contact_decode_ip($user_ip) . "/index.html", 'a'); @fclose($fa); |