if (xmail($fromaddr, $_GET["email"], "File " . basename($file["file"]), "File: " . basename($file["file"]) . "\r\n" . "Link: " . $_GET["link"] . (!empty($_GET["comment"]) ? "\r\n" . "Comments: " . str_replace("\\r\\n", "\r\n", $_GET["comment"]) : ""), $pathWithName, $_GET["partSize"], $_GET["partSize"] && !empty($_GET["method"]) ? $_GET["method"] : '')) { print $L->sprintf($L->say['mail_file_sent'], $_GET['email'], basename($file['file'])); } else { print "<div class='acthistory_result'>" . $L->say['mail_error_send'] . "</div>"; } } if ($options['new_window']) { print '<br /><a href="javascript:window.close();">' . $L->say['closewin'] . '</a>'; } else { $rnd = rand(11, 99); // generate delete link echo $L->sprintf($L->say['_del_link'], 'del.php?d=' . str_replace("=", "", rotN(base64_encode($file["date"] . ':' . '4puZ'), $rnd)) . "-" . $rnd, date("M-d, Y - H:i:s", $file["date"])); print "<br /><a id='tdone' href=\"" . $PHP_SELF . "\">[ <b><span id='txtdone'>" . $L->say['back_main'] . " ]</b></span></a><br />"; } } else { @unlink($pathWithName); print $L->say['con_lost'] . "<br /><a href=\"javascript:location.reload();\">" . $L->say['_reload'] . "</a>"; print '<script type="text/javascript">setTimeout("location.reload()",1000);</script>'; } //check whether this index called from audl.php $audlparam = isset($_GET["idx"]) ? $_GET["idx"] : ''; if ($audlparam != '') { $audlparam = explode('|', $audlparam); $audlparam[0] = $audlparam[0] != '' ? true : false; if ($audlparam[1] == '') { $audlparam[1] = 'none'; } echo autoNext($audlparam[0], true, $audlparam[1]); } echo "\n</div>\n</body>\n</html>"; }
function html_error($msg, $newwin = 1, $retry = 0) { global $PHP_SELF, $options, $L, $RL_VER, $onGoing, $audlparam, $nn; if (strtolower(basename($PHP_SELF)) == 'audl.php' && isset($_REQUEST['GO']) && $_REQUEST['GO'] == 'GO' && $_REQUEST['server_side'] == 'on' && !empty($GLOBALS['isHost'])) { throw new Exception($msg); } else { //if ($head == 1) if (!headers_sent()) { $litehead = 1; $page_title = 'Upps...'; include TEMPLATE_DIR . 'header.php'; } echo '<div align="center">'; echo '<span class="htmlerror"><b>' . $msg . '</b></span><br /><br />'; if ($retry == 1) { echo buildRetryform($msg); } elseif (!empty($options['new_window']) && $newwin) { echo '<a href="javascript:window.close();">' . $L->say['closewin'] . '</a>'; } else { echo '<a id="tdone" href="' . $PHP_SELF . '"><b>' . $L->say['back_main'] . '</b></a>'; } if ($audlparam != '') { $audlparam = explode('|', $audlparam); if ($audlparam[0] != '') { $audlparam[0] = true; } if ($audlparam[1] == '') { $audlparam[1] = 'none'; } echo autoNext($audlparam[0], false, $audlparam[1]); } flush(); echo '</div>'; echo $nn . '</body></html>'; exit; } }