-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathskype.php
More file actions
42 lines (33 loc) · 751 Bytes
/
skype.php
File metadata and controls
42 lines (33 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
This program is to read chat log of skype with opera speak
*/
if (isset($_POST['body']))
{
$quotes = get_magic_quotes_gpc();
$text = $_POST['body'];
if ($quotes)
{
$text = stripslashes($text);
}
$lines = explode("\n", $text);
echo '<pre>';
foreach ($lines as $line)
{
$line = preg_replace('/\[[^\]]+\]/i', '', $line);
$line = wordwrap($line, 80, "\n");
echo $line . "\n";
}
echo '</pre>';
echo '<br /><br /><a href="/post.php">Back</a>';
}
else
{
echo <<<EOT
<form action="" method="post">
<textarea name="body" rows="20" cols="80"></textarea>
<br />
<input type="submit" name="submit" value="Submit">
</form>
EOT;
}