include "modules/cdb.php";
include "modules/language.php";
$DB = new MySqlDataBase();
$messageLimit = 20;
//receiving vars
$delete = stripslashes($_GET['delete']);
$old = stripslashes($_GET['old']);
$noedit = stripslashes($_GET['noedit']);
$msgoffset = stripslashes($_GET['msgoffset']);
$search = $_POST['search'];
$msgoffset = ($msgoffset) ? $msgoffset : 0;
function html_links($string) {
$search = array ("/([\w\.\/\&\=\?\-]+)@([\w\.\/\&\=\?\-]+)/",
"/((ftp(7?):\/\/)|(ftp\.))([\w\.\/\&\=\?\-]+)/",
"/((http(s?):\/\/)|(www\.))([\w\.\/\&\=\?\-\~;]+)/");
$replace = array ("
".
"$1@$2",
"
".
"$4$5",
"
".
"$4$5");
return preg_replace ($search, $replace, $string);
}
function getReplies($rowId) {
global $DB, $rcounter, $priority, $l_messages_replied_at, $l_messages_reply, $l_messages_print;
$rquery = $DB->execute("SELECT * FROM x_vpv_msg WHERE replyid=".$rowId." ORDER BY timestamp ASC");
while ($rrow =@ mysql_fetch_array($rquery)) {
$rcounter++;
$message = html_links($rrow[msg_long]);
$repl.="
".
"
".
"![]() | ".
"".
"".$rrow[msg_short]." ". "".$rrow[author]." ".$l_messages_replied_at." ".$rrow[date_time]." ". " |
| ". " |