<?php
session_start();
include("./functions.php");
include("./header.php");

$amazon_affiliate_id = mysql_result(mysql_query("select amazon_affiliate_id from autoposter_settings where id='1'"),0);
$ebay_partner_network_id = mysql_result(mysql_query("select ebay_partner_network_id from autoposter_settings where id='1'"),0);
$ebay_partner_custom_id = mysql_result(mysql_query("select ebay_partner_custom_id from autoposter_settings where id='1'"),0);

/*
$ezine_dir_cats = array(
"Business" => "--- Business ---",
"Business:Accounting" => "Accounting",
"Business:Accounting-Payroll" => "Accounting Payroll",
"Business:Advertising" => "Advertising",
"Business:Branding" => "Branding",
"Business:Career-Advice" => "Career Advice",
"Business:Careers-Employment" => "Careers Employment",
"Business:Change-Management" => "Change Management",
"Business:Consulting" => "Consulting",
"Business:Continuity-Disaster-Recovery" => "Continuity Disaster Recovery",
"Business:Customer-Service" => "Customer Service",
"Business:Entrepreneurialism" => "Entrepreneurialism",
"Business:Ethics" => "Ethics",
"Business:Franchising" => "Franchising",
"Business:Fundraising" => "Fundraising",
"Business:Human-Resources" => "Human Resources",
"Business:Industrial-Mechanical" => "Industrial Mechanical",
"Business:International-Business" => "International Business",
"Business:Job-Search-Techniques" => "Job Search Techniques",
"Business:Management" => "Management",
"Business:Marketing" => "Marketing",
"Business:Marketing-Direct" => "Marketing Direct",
"Business:Negotiation" => "Negotiation",
"Business:Networking" => "Networking",
"Business:Non-Profit" => "Non Profit",
"Business:Outsourcing" => "Outsourcing",
"Business:PR" => "PR",
"Business:Presentation" => "Presentation",
"Business:Productivity" => "Productivity",
"Business:Resumes-Cover-Letters" => "Resumes Cover Letters",
"Business:Retail" => "Retail",
"Business:Sales" => "Sales",
"Business:Sales-Management" => "Sales Management",
"Business:Sales-Teleselling" => "Sales Teleselling",
"Business:Sales-Training" => "Sales Training",
"Business:Security" => "Security",
"Business:Small-Business" => "Small Business",
"Business:Solo-Professionals" => "Solo Professionals",
"Business:Strategic-Planning" => "Strategic Planning",
"Business:Team-Building" => "Team Building",
"Business:Top7-or-10-Tips" => "Top7 or 10 Tips",
"Business:Venture-Capital" => "Venture Capital",
"Business:Workplace-Communication" => "Workplace Communication",
"Business:Workplace-Safety" => "Workplace Safety",
"Internet-and-Businesses-Online" => "--- Internet and Businesses Online ---",
"Internet-and-Businesses-Online:Affiliate-Revenue" => "Affiliate Revenue",
"Internet-and-Businesses-Online:Auctions" => "Auctions",
"Internet-and-Businesses-Online:Audio-Streaming" => "Audio Streaming",
"Internet-and-Businesses-Online:Autoresponders" => "Autoresponders",
"Internet-and-Businesses-Online:Banner-Advertising" => "Banner Advertising",
"Internet-and-Businesses-Online:Blogging" => "Blogging",
"Internet-and-Businesses-Online:CMS" => "CMS",
"Internet-and-Businesses-Online:Domain-Names" => "Domain Names",
"Internet-and-Businesses-Online:E-Books" => "E Books",
"Internet-and-Businesses-Online:Ecommerce" => "Ecommerce",
"Internet-and-Businesses-Online:Email-Marketing" => "Email Marketing",
"Internet-and-Businesses-Online:Ezine-Publishing" => "Ezine Publishing",
"Internet-and-Businesses-Online:Forums" => "Forums",
"Internet-and-Businesses-Online:Internet-Marketing" => "Internet Marketing",
"Internet-and-Businesses-Online:Link-Popularity" => "Link Popularity",
"Internet-and-Businesses-Online:List-Building" => "List Building",
"Internet-and-Businesses-Online:PPC-Advertising" => "PPC Advertising",
"Internet-and-Businesses-Online:PPC-Publishing" => "PPC Publishing",
"Internet-and-Businesses-Online:Paid-Surveys" => "Paid Surveys",
"Internet-and-Businesses-Online:Podcasting" => "Podcasting",
"Internet-and-Businesses-Online:Product-Creation" => "Product Creation",
"Internet-and-Businesses-Online:Product-Launching" => "Product Launching",
"Internet-and-Businesses-Online:RSS" => "RSS",
"Internet-and-Businesses-Online:SEO" => "SEO",
"Internet-and-Businesses-Online:Search-Engine-Marketing" => "Search Engine Marketing",
"Internet-and-Businesses-Online:Security" => "Security",
"Internet-and-Businesses-Online:Site-Promotion" => "Site Promotion",
"Internet-and-Businesses-Online:Social-Bookmarking" => "Social Bookmarking",
"Internet-and-Businesses-Online:Social-Media" => "Social Media",
"Internet-and-Businesses-Online:Social-Networking" => "Social Networking",
"Internet-and-Businesses-Online:Spam-Blocker" => "Spam Blocker",
"Internet-and-Businesses-Online:Traffic-Building" => "Traffic Building",
"Internet-and-Businesses-Online:Video-Marketing" => "Video Marketing",
"Internet-and-Businesses-Online:Video-Streaming" => "Video Streaming",
"Internet-and-Businesses-Online:Web-Design" => "Web Design",
"Internet-and-Businesses-Online:Web-Development" => "Web Development",
"Internet-and-Businesses-Online:Web-Hosting" => "Web Hosting",
"Finance" => "--- Finance ---",
"Finance:Auto-Loans" => "Auto Loans",
"Finance:Bankruptcy" => "Bankruptcy",
"Finance:Bankruptcy-Lawyers" => "Bankruptcy Lawyers",
"Finance:Bankruptcy-Medical" => "Bankruptcy Medical",
"Finance:Bankruptcy-Personal" => "Bankruptcy Personal",
"Finance:Bankruptcy-Tips-Advice" => "Bankruptcy Tips Advice",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
"" => "",
);
*/

/*
#Import from EzineArticles.com
if($_REQUEST['import_from_ezine']) {

include_once('simplepie.inc');
include_once('idn/idna_convert.class.php');

$feed_url = "http://ezinearticles.com/rss/" . str_replace(":", "-", $_REQUEST['dir_category']) . ".xml";

$feedurl = trim($feed_url);
$xmldump = false; //display as log
$cache = false; //cache
$image = false; //image cache
$orderbydate = false;

// Create a new instance of the SimplePie object
$feed = new SimplePie();

// Make sure that page is getting passed a URL
// Strip slashes if magic quotes is enabled (which automatically escapes certain characters)
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
	$feedurl = stripslashes($feedurl);
}

// Use the URL that was passed to the page in SimplePie
$feed->set_feed_url($feedurl);

// XML dump
$feed->enable_xml_dump($xmldump);

// XML dump
$feed->enable_cache($cache);

$feed->enable_order_by_date($orderbydate);

// Allow us to cache images in feeds.  This will also bypass any hotlink blocking put in place by the website.
if ($image) {
	$feed->set_image_handler('./handler_image.php');
}

// We'll enable the discovering and caching of favicons.
$feed->set_favicon_handler('./handler_image.php');

// Initialize the whole SimplePie object.  Read the feed, process it, parse it, cache it, and
// all that other good stuff.  The feed's information will not be available to SimplePie before
// this is called.
$success = $feed->init();

// We'll make sure that the right content type and character encoding gets set automatically.
// This function will grab the proper character encoding, as well as set the content type to text/html.
$feed->handle_content_type();

// When we end our PHP block, we want to make sure our DOCTYPE is on the top line to make
// sure that the browser snaps into Standards Mode.


// Check to see if there are more than zero errors (i.e. if there are any errors at all)
if ($feed->error())
	{
		// If so, start a <div> element with a classname so we can style it.
		echo '<div class="sp_errors">' . "\r\n";

		// ... and display it.
		echo '<p>' . htmlspecialchars($feed->error()) . "</p>\r\n";

		// Close the <div> element we opened.
		echo '</div>' . "\r\n";
	}

function get_article_from_ezine($url) {
	$ch = curl_init();
	curl_setopt ($ch, CURLOPT_VERBOSE, 0);
	curl_setopt ($ch, CURLOPT_HEADER, 0);
	curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
	curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt ($ch, CURLOPT_TIMEOUT, 25);
	curl_setopt ($ch, CURLOPT_URL, $url);
	$getdata = curl_exec ($ch);
	curl_close($ch);

	$getdata = trim($getdata);
	echo $getdata;

	$section = explode('<div id="body">', $getdata);
	$fnsection = explode('</table></div>', $section[1]);
	$str = "<div id=\"body\">" . trim($fnsection[0]) . "</table></div>";

return $str;
}

$folderpath = trim(str_replace("-", " ", str_replace(":", " ", $_REQUEST['dir_category'])) . " (" . date("Y-m-d H.i.s") . ")");
if(!is_dir("tmp/{$folderpath}")) {
	mkdir("tmp/{$folderpath}", 0755);
}
?>
		<div id="sp_results">

			<!-- As long as the feed has data to work with... -->
			<?php if ($success): ?>

				<!-- Let's begin looping through each individual news item in the feed. -->
				<?php foreach($feed->get_items() as $item): ?>
					<div class="chunk">

						<!-- If the item has a permalink back to the original post (which 99% of them do), link the item's title to it. -->
						<h4><?php // echo $item->get_title(); ?></h4>

						<!-- Display the item's primary content. -->
						<?php // echo $item->get_content(); ?>

					</div>

					<?php
						$item->get_link();
						$getcontent = get_article_from_ezine( $item->get_link() );
						$randfilename = time().rand(111,999);
						$fp = fopen ("tmp/{$folderpath}/{$randfilename}.txt", "w+");
						fwrite ($fp, trim($item->get_title()) . "\r\n\r\n" . trim($getcontent));
						fclose ($fp);

						echo $item->get_link();
						exit();
					?>

				<!-- Stop looping through each item once we've gone through all of them. -->
				<?php endforeach; ?>

			<!-- From here on, we're no longer using data from the feed. -->
			<?php endif; ?>

		</div>

<?php
}
*/

$rss_atom_feeds_names = array(
"Amazon.com",
"Ebay.com",
"GoArticles.com",
"Technorati Feeds",
"Google News",
"Google Video",
"Youtube Video",
"Yahoo! News"
);

$rss_atom_feeds_urls = array(
"http://www.amazon.com/rss/tag/{replace_keyword}/new/ref=tag_tdp_rss_new_man?tag={replace_affid}",
"http://rss.api.ebay.com/ws/rssapi?FeedName=SearchResults&siteId=0&language=en-US&output=RSS20&catref=C5&sacqy=&sacur=0&from=R6&saobfmts=exsif&dfsp=32&afepn={replace_affid}&sacqyop=ge&saslc=0&floc=1&sabfmts=0&saprclo=&saprchi=&saaff=afepn&ftrv=1&ftrt=1&fcl=3&frpp=50&customid={customid}&nojspr=y&satitle={replace_keyword}&afmp=&sacat=-1&saslop=1&fss=0",
"http://www.goarticles.com/cgi-bin/rss-search.cgi?search_title={replace_keyword}&l=20&s=1&c=none&D1=advanced",
"http://feeds.technorati.com/tag/{replace_keyword}",
"http://news.google.com/news?q={replace_keyword}&output=rss",
"http://video.google.com/videofeed?type=search&q={replace_keyword}&so=0&num=20&output=rss",
"http://www.youtube.com/rss/tag/{replace_keyword}.rss",
"http://news.search.yahoo.com/news/rss?p={replace_keyword}&ei=UTF-8&fl=0&x=wrt"
);

#Search from RSS/Atom Feeds
if($_REQUEST['submit']) {

include_once('simplepie.inc');
include_once('idn/idna_convert.class.php');

if($_REQUEST['get_feed_from']==0) {
	$feed_url = trim(str_replace("{replace_keyword}", str_replace(" ", "%20", trim(strtolower($_REQUEST['search_keyword']))), $rss_atom_feeds_urls[$_REQUEST['get_feed_from']]));
} else {
	$feed_url = trim(str_replace("{replace_keyword}", str_replace(" ", "+", trim(strtolower($_REQUEST['search_keyword']))), $rss_atom_feeds_urls[$_REQUEST['get_feed_from']]));
}

if($_REQUEST['get_feed_from']==0) {
	$feed_url = str_replace("{replace_affid}", trim($amazon_affiliate_id), $feed_url);
} elseif($_REQUEST['get_feed_from']==1) {
	$feed_url = str_replace("{replace_affid}", trim($ebay_partner_network_id), $feed_url);
	$feed_url = str_replace("{customid}", trim($ebay_partner_custom_id), $feed_url);
}

$feedurl = trim($feed_url);
$xmldump = false; //display as log
$cache = false; //cache
$image = false; //image cache
$orderbydate = false;

// Create a new instance of the SimplePie object
$feed = new SimplePie();

// Make sure that page is getting passed a URL
// Strip slashes if magic quotes is enabled (which automatically escapes certain characters)
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
	$feedurl = stripslashes($feedurl);
}

// Use the URL that was passed to the page in SimplePie
$feed->set_feed_url($feedurl);

// XML dump
$feed->enable_xml_dump($xmldump);

// XML dump
$feed->enable_cache($cache);

$feed->enable_order_by_date($orderbydate);

// Allow us to cache images in feeds.  This will also bypass any hotlink blocking put in place by the website.
if ($image) {
	$feed->set_image_handler('./handler_image.php');
}

// We'll enable the discovering and caching of favicons.
$feed->set_favicon_handler('./handler_image.php');

// Initialize the whole SimplePie object.  Read the feed, process it, parse it, cache it, and
// all that other good stuff.  The feed's information will not be available to SimplePie before
// this is called.
$success = $feed->init();

// We'll make sure that the right content type and character encoding gets set automatically.
// This function will grab the proper character encoding, as well as set the content type to text/html.
$feed->handle_content_type();

// When we end our PHP block, we want to make sure our DOCTYPE is on the top line to make
// sure that the browser snaps into Standards Mode.


// Check to see if there are more than zero errors (i.e. if there are any errors at all)
if ($feed->error())
	{
		// If so, start a <div> element with a classname so we can style it.
		echo '<div class="sp_errors">' . "\r\n";

		// ... and display it.
		echo '<p>' . htmlspecialchars($feed->error()) . "</p>\r\n";

		// Close the <div> element we opened.
		echo '</div>' . "\r\n";
	}

$folderpath = trim($_REQUEST['feed_save_folder']);
if(!is_dir("tmp/{$folderpath}")) {
	mkdir("tmp/{$folderpath}", 0755);
}
?>
		<div id="sp_results">

			<!-- As long as the feed has data to work with... -->
			<?php if ($success): ?>

				<!-- Let's begin looping through each individual news item in the feed. -->
				<?php foreach($feed->get_items() as $item): ?>
					<div class="chunk">

						<!-- If the item has a permalink back to the original post (which 99% of them do), link the item's title to it. -->
						<h4><?php // echo $item->get_title(); ?></h4>

						<!-- Display the item's primary content. -->
						<?php // echo $item->get_content(); ?>

					</div>

					<?php
						$randfilename = time().rand(111,999);
						$fp = fopen ("tmp/{$folderpath}/{$randfilename}.txt", "w+");
						fwrite ($fp, trim($item->get_title())."\r\n\r\n".trim($item->get_content() . " <a target=\"_blank\" href=\"".trim($item->get_permalink())."\">Continue reading ...</a>"));
						fclose ($fp);
					?>

				<!-- Stop looping through each item once we've gone through all of them. -->
				<?php endforeach; ?>

			<!-- From here on, we're no longer using data from the feed. -->
			<?php endif; ?>

		</div>

<?php
}

/*
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" bordercolor=\"#000000\" align=\"center\">";
echo "<tr><td colspan=\"2\" bgcolor=\"#C0C0C0\" align=\"center\"><font face=verdana, arial>Import Articles from Article Directory</td></tr>";
echo "</table><br />";

echo "<form name=\"\" action=\"\" method=\"post\">
<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" bordercolor=\"#000000\" align=\"center\">";
echo "<tr><td><font face=verdana, arial>Select Category:</td><td><select size=\"1\" name=\"dir_category\">";
foreach($ezine_dir_cats as $v => $k) {
echo "<option value=\"{$v}\">{$k}</option>";
}
echo "</select> <font face=verdana, arial><input type=\"submit\" name=\"import_from_ezine\" value=\"Import from EzineArticles.com\"></td></tr>";
echo "</table>
</form><br />";
*/

echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" bordercolor=\"#000000\" align=\"center\">";
echo "<tr><td colspan=\"2\" bgcolor=\"#C0C0C0\" align=\"center\"><font size=\"2\" face=verdana, arial>Search from RSS/Atom Feeds</td></tr>";
echo "</table><br />";

echo "<form name=\"\" action=\"\" method=\"post\">
<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" bordercolor=\"#000000\" align=\"center\">";
echo "<tr><td><font face=verdana, arial>Search Term:</td><td><font face=verdana, arial><input name=\"search_keyword\" type=\"text\" value=\"\" size=\"30\"></td></tr>";
echo "<tr><td><font face=verdana, arial>Select Feed:</td><td><select size=\"1\" name=\"get_feed_from\">";
foreach($rss_atom_feeds_names as $v => $k) {
echo "<option value=\"{$v}\">{$k}</option>";
}
echo "</select></td></tr>";
echo "<tr><td><font face=verdana, arial>Save to Folder:</td><td><input name=\"feed_save_folder\" type=\"text\" value=\"\" size=\"18\"></td></tr>";
echo "<tr><td>&nbsp;</td><td><font face=verdana, arial><input type=\"submit\" name=\"submit\" value=\"Search & Save\"></td></tr>";
echo "</table>
</form><br />";

echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" bgcolor=\"#FFFFFF\" bordercolor=\"#000000\" align=\"center\">";
echo "<tr><td colspan=\"2\" bgcolor=\"#C0C0C0\" align=\"center\"><font size=\"2\" face=verdana, arial>Upload Articles from PC</td></tr>";
echo "</table><br />";

echo "<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"98%\" align=\"center\">
<tr><td><font face=verdana, arial>For new upload of articles \"Folder/File\" names must be different than
already uploaded, also better to replace spaces into \"_\" underscore in case
of duplicate uploads. It will overwrite with the older articles which are
already uploaded if you don't add the underscore.
</td></tr>

<tr><td align=\"center\"><font face=verdana, arial>
 <applet
  code=\"JUpload.startup\"
  archive=\"./jupload.jar\"
  width=\"600\"
  height=\"300\"
  mayscript=\"mayscript\"
  name=\"JUpload\"
  alt=\"JUpload by www.jupload.biz\">

 <!-- Java Plug-In Options -->
 <param name=\"progressbar\" value=\"true\">
 <param name=\"boxmessage\" value=\"Loading JUpload Applet ...\">
 <param name=\"boxbgcolor\" value=\"#e0e0ff\">
 <param name=\"backgroundColor\" value=\"#e0e0e0\">

 <!-- Target links -->
 <param name=\"actionURL\" value=\"./upload-folder.php\">

<!--
 <param name=\"completeURL\" value=\"./upload-ok.html\">
 <param name=\"errorURL\" value=\"./upload-error.html\">
-->

 <!-- IF YOU HAVE PROBLEMS, CHANGE THIS TO TRUE BEFORE CONTACTING SUPPORT -->
 <param name=\"debug\" value=\"false\">
 <param name=\"checkJavaVersion\" value=\"false\">
 <param name=\"checkJavaVersionGotoURL\" value=\"http://java.sun.com/j2se/downloads.html\">

 <!-- Extra Options -->
 <param name=\"askAuthentification\" value=\"false\">
 <param name=\"checkResponse\" value=\"true\">
 <param name=\"showSuccessDialog\" value=\"true\">
 <param name=\"imageFileFilter\" value=\"false\">
 <param name=\"hideShowAll\" value=\"true\">
 <param name=\"showPicturePreview\" value=\"false\">
 <param name=\"labelAdd\" value=\"Add Articles\">
 <param name=\"labelRemove\" value=\"Remove Selected\">
 <param name=\"labelUpload\" value=\"Upload Articles\">
 <param name=\"customFileFilter\" value=\"true\">
 <param name=\"customFileFilterDescription\" value=\"Only Allowed (TEXT & HTML)\">
 <param name=\"customFileFilterExtensions\" value=\"txt,htm,html\">
 <param name=\"showServerResponse\" value=\"true\">
 <param name=\"showStatusPanel\" value=\"true\">
 <param name=\"showThumbnails\" value=\"false\">
 <param name=\"preventDoubles\" value=\"false\">
 <param name=\"alwaysAcceptCertificates\" value=\"false\">

 <!-- CONFIGURATION -->
 <param name=\"foregroundColor\" value=\"#ff0000\">
 <param name=\"autoselectLastFile\" value=\"true\">
 <param name=\"showErrorsOnAdd\" value=\"true\">
 <param name=\"disableContextMenu\" value=\"true\">

 Your browser does not support applets. Or you have disabled applet in your options.
 To use this applet, please install the newest version of Sun's java. You can get it from <a href=\"http://www.java.com/\">java.com</a>

 </applet>

<hr>

</td></tr>

<tr><td><font face=verdana, arial>
<iframe name=\"I1\" src=\"./uploadarticles_frame.php\" width=\"100%\" height=\"650\" scrolling=\"yes\" align=\"center\" border=\"0\" frameborder=\"0\">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
</td></tr>

</table>";
?>