home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
notepage.net
/
notepage.net.tar
/
notepage.net
/
dev
/
temp
/
image1.php
< prev
next >
Wrap
Text File
|
2015-09-23
|
1KB
|
42 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>~~~FeedTitle~~~</title>
</head>
<body>
<h1>~~~FeedTitle~~~</h1>
<p>~~~FeedDescription~~~</p>
<hr>
<table width="100%">
~~~BeginItemsRecord~~~
<?php
// Set initial values for our variables
$theImage = ' ';
// To ensure proper display with borders
$newDescription = '~~~ItemDescription~~~';
$match = Array();
// Use regular expressions to find <img ... >
if (preg_match('/<img[^>]*>/', $newDescription, $match) == 1) {
// Make sure it truely was a match
if ((count($match) != 0) && ($match[0] != '')) {
// Save the image
$theImage = $match[0];
// Remove the image from the description
$newDescription = str_replace($match[0], '', $newDescription);
}
}
echo "<tr><td>$theImage</td><td><br />";
echo '<tr><td>~~~ItemPubShortDate~~~ ~~~ItemPubShortTime~~~<br />';
echo '~~~ItemTitle~~~<br />';
echo $newDescription.'</td></tr>';
echo '<tr><td colspan="2"><hr></td></tr>';
?>
~~~EndItemsRecord~~~
</table>
</body>
</html>