*/ function make_clickable($text) // thanks to phpwizard.net { $ret = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "\\1://\\2\\3", $text); $ret = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))", "\\1", $ret); return($ret); } // include getID3() library (can be in a different directory if full path is specified) require_once('./getid3/getid3.php'); // Initialize getID3 engine $getID3 = new getID3; $mixname = $_GET['mixname']; $FullFileName = realpath(".".'/'.$mixname); $ThisFileInfo = $getID3->analyze($FullFileName); getid3_lib::CopyTagsToComments($ThisFileInfo); echo "".(!empty($ThisFileInfo['comments_html']['artist']) ? implode('
', $ThisFileInfo['comments_html']['artist']) : ' ')." - ".(!empty($ThisFileInfo['comments_html']['title']) ? implode('
', $ThisFileInfo['comments_html']['title']) : ' ')." kommentjei:



"; if ($_POST['message']) { $name = strip_tags($_POST['name']); $message = strip_tags($_POST['message']); $message = ereg_replace("\r\n\r\n", "\n

", $message); $message = make_clickable($message); if (get_magic_quotes_gpc()) { $message = stripslashes($message); $name = stripslashes($name); } $date = date("Y.m.d. G:i"); $message = "$name ($_SERVER[REMOTE_ADDR]) -- $date

$message


\r\n"; // first read the file into a buffer, if it exists $textfile = "comments/" . $mixname . ".comment"; if ($fp = @fopen ($textfile, "r")) // open without complaining { $oldmessages = @fread($fp,filesize($textfile)); @fclose(fp); } // now reopen the file in write mode, with the // pointer at the head of the file $fp = fopen ($textfile, "w"); fwrite ($fp, $message); fwrite ($fp, $oldmessages); // adding back the old messages fclose ($fp); } @readfile("comments/" . $mixname . ".comment"); ?>

Név:


Komment:


Vissza a Mixekhez!


welcome radio mixes gallery djs links forum