* * Owl Ultra Lite * * Copyright (c) 2005-2006 Bozz IT Consulting Inc * Licensed under the GNU GPL. For full terms see http://www.gnu.org/licenses/licenses.html#TOCGPL * */ require_once(dirname(__FILE__) . "/config/owl.php"); require_once($default->root_fs . "/lib/owlulite.lib.php"); require_once($default->root_fs ."/scripts/phpmailer/class.phpmailer.php"); import_request_variables('pgc'); global $owl_lang; if(isset($btn_browse)) { header("Location: $default->root_url" . "/index.php"); exit; } if (!isset($folder) || $folder == "" or $folder == "/" or $folder == "." or $folder == "..") { $default->root_folder = $default->root_folder . "/" . $sRootFolderName; $sRecyclePath = $sRootFolderName; $folder = $sRootFolderName; } else { $folder = ereg_replace("\.\.","",$folder); $default->root_folder .= "/" . $folder; $sRecyclePath = $folder; } if ($default->permit_file_email == 0) { header("Location: index.php"); exit; } if (isset($btn_send_mail)) { $fspath = $default->root_folder . "/" . $email_file; $mail = new phpmailer(); $mail->Host = $default->owl_email_server; // specify main and backup server $mail->From = $mailfrom; $mail->FromName = $default->owl_email_fromname; $mail->AddAddress($mailto); $mail->WordWrap = 50; // set word wrap to 50 characters $mail->IsHTML(true); // set email format to HTML $mail->Subject = $subject; $mail->Body = $mailbody; if(file_exists($fspath)) { $mail->AddAttachment($fspath, "" , "base64" , "application/octet-stream"); } if (!$mail->Send()) { $mail->ErrorInfo; exit; } header("Location: index.php?folder=$folder&sMessage=Mail Sent"); exit; } include("lib/header.inc"); include("lib/userheader.inc"); if (!file_exists($default->root_folder)) { exit("$owl_lang->err_root_does_not_exists $default->root_folder"); } print("