|
A Proud Member of World Wide Web Chamber of Commerce, Dedicated to Responsible, Ethical Business
A Proud Honorary Member of IAWMD
The roots of true achievement lie in the will to become
the best that you can become.
Harold Taylor
With 'Pathway To Success' you are receiving only top information,
reliable and proven resources vital for your
online home business success and profitability, never anything just to make a
couple of dollars at your expense. However, to make full use of
the resources, get fast ahead of your competition and have your
business and profits grow, you should read, apply and follow
the information you receive.
To read the Current Subscriber Issue Online, please subscribe here:
http://pathwaytosuccessezine.thecassiopeia.com/subscribe.html
Note:
To learn more about our privacy policy, please check all the related documents at the bottom of this page.
Also Get Insider Tips, a Special Motivational 2008 Calendar, Gifts, Bonuses and much more...
Special:
Please join me in the fight against hunger. Sign up now,
bring your friends and learn more about what we can all do
to fight global poverty. Thank you.
http://www.thecassiopeia.com/Care/
http://www.thecassiopeia.com/Care/Donate.html
FREE Advertising:
Unique advertising: Join Free Advertising Forum!
http://www.thecassiopeia.com/CassiRecommends59.html
2 NEW Classifieds sites:
You can now post your ads in the two new classifieds sites.
And also, you can get classified ad sites like that as well
and promote your business the easier, more efficient and
faster way:
http://www.thecassiopeia.com/cgi-bin/classifieds.cgi
http://www.pathwaytosuccess.pressmania.com
Post your Ad:
http://www.pathwaytosuccess.pressmania.com/postSelection.aspx
NEW! Open Your Free Store
http://stores.pressmania.com/thecassiopeia/lists.aspx
Note: you can get your classified ad site here:
http://www.thecassiopeia.com/eclassifiedsite.html
NEW! Mega Department Store: Get paid to purchase items you have
to buy anyway, receive discounts, vouchers, coupons, bonuses,
gifts,...
http://www.thecassiopeia.com/ShoppingCenter/
What's New
** Pathway To Success on Your iPod or MP3 Player!
This is the full issue. You can download it or listen by clicking here!
http://www.thecassiopeia.com/WebLions/Issue0825Audio.mp3
Note: Please let me know what you like and what you don't,
so I can make it better next time. Thank you.
iwhitfield at thecassiopeia.com
** Read the full Archives on Google Reader or on your Mobile
(Note: open a free account to get a sorted view and a better
format - click 'Subscribe')
by clicking here!
* theCassi News: Learn every information the minute it's out! Click here!
http://www.thecassiopeia.com/News.html
** Hot Tips for Boosting Home Based Business! Click here!
http://www.thecassiopeia.com/CassiRecommends113.html
** Special Firesale Offer for you to boost your income
PLUS unique Bonuses. Make life easy and Brand Whole Pages with custom information instantly.
Click here!
http://www.thecassiopeia.com/FireSaleOffer.html
Starting now you can also read Pathway on Pathway Blog below. Click here!
http://www.thecassiopeia.com/PathwayBlog/
Google Alert: You can also create a Google Alert to notify you when a new Pathway Issue is online. Please click the link below and fill in the following:
(note: you will be asked to verify your alert.)
Search terms: pathwaytosuccessezine
Type: Groups
How often: as-it-happens
Your email: your main email address
http://www.google.com/alerts
Reminders
** 1st December: Subscriber Articles:
Subscriber: Marketing Strategy for a Tough Economy
by Bobette Kyle
Guest: Newsletter Writing: Retain More Clients for Life
by David Gruttadaurio
Click here!
Get Your Share in the Business of the Decade, Do It Now! Download the full Insiders' report, watch the movie and
decide for yourself. Just don't Miss Out! Click here now:
http://www.thecassiopeia.com/bestbiz.html
Free Auction Ads: Start by clicking here! http://www.thecassiopeia.com/auctionadvertising.html
New Additions: theCassiopeia.com recommends top Internet items for both:
your use and profit in a new Version. Click here!
http://www.thecassiopeia.com/theCassiRecommends.html
Starting now you can also read Pathway on Pathway Blog. Click here!
http://www.thecassiopeia.com/PathwayBlog/
HOT! Home Based Business Watch:
http://www.thecassiopeia.com/HomeBasedBusinessWatch.php
You can download it free as a .zip file and give it away
as a Bonus to your audience:
http://www.thecassiopeia.com/WebLions/HomeBasedBusinessWatch.html
Find 1000 Questions for Couples and more:
http://www.thecassiopeia.com/Valentine/RomanticShop.html
New Attractive Games and Bonuses: Relax in our New Games Centre or make another income stream of its opportunities or both. Amazing Free Cash Bonuses!
http://www.thecassiopeia.com/WebLions/Games/
Read News Here!
Get free and low-cost targeted and automatic traffic here:
http://www.thecassiopeia.com/Traffic/
Check our Froogle Shop. Every New Top Item I publish will be there within hours:
http://www.thecassiopeia.com/Froogle/
Ad Board - you can have your Banner at the top or place a Top Sponsor Ad and get a high exposure for your business. Check Offers by Colleague Netpreneurs at:
http://www.thecassiopeia.com/Portal/AdCentre.html
Click here to Get Stupidman Adventures!
Get a Review and Excerpts of the Book You Need to Profit - new top items added frequently.
http://www.thecassiopeia.com/SuccessReports/
Listen to Online Radio Regularly; a new Top Show every Saturday at:
http://www.thecassiopeia.com/Portal/Newsletter.html
|
Our Sponsor
|
7 Little Used Techniques for Creating Profitable Home Businesses
Fire Your Boss: Work at Home is the name of the workshop I
taught for over 10 years at Lakeland Community College!
These techniques worked for many of the participants and
they can work for you! You will also get dozens of examples
from people who created money making home businesses.
I published a home business newsletter for 20 years with
readers all over the world. I learned what worked and what
didn't. After reviewing thousands of home businesses, I found
the 7 little used techniques that made many of these businesses
successful. Go to the following link for a free, no strings
attached report and more info.
Click here!
|
Editorial:
Happy, Peaceful and Joyful Christmas. my precious Readers!
As every year I'm bringing you presents to thank you for
your loyalty and business we have done together during this
year. You can download them
by clicking here.
In these uncertain times I have a good offer for you to
create your own economy with 'Hidden' complimentary Forex
training...
Have you had a chance to check out 30+ year trader Bill
Poulos's enrollment page for his step-by-step Forex Income
Engine home study course yet?
If you already saw it, here's something you may have missed:
* The page is jam-packed with lots of complimentary Forex
tips and training materials... -so even if you have no intention
of joining Bill in finally becoming an independent Forex trader...
at the VERY LEAST you should read every word of his enrollment
page and TAKE NOTES.
Here are some of the "insider insights" he reveals on the page:
- The 4 "golden rules" most traders never learn...
- 19th century trading great Bernard Baruch's astonishing
observation about market moves...
- Albert Einstein's profound observation about the solution
to any problem...
- The 4 components every good trading method MUST have...
- ...and a lot more little inside observations you'll
probably find helpful.
PLUS, there are at least 5 live Forex trading videos that
you should check out and study.
Sure, Bill wants you to get his course, but he does a great
job giving you tons of complimentary training "on the house"
even if you don't join him, and I think that's impressive.
Check it all out
by clicking here.
Enjoy Today's Issue and stay tuned, Pathway is back in a
fortnight with a load of New Year's presents and goodies
vital for every successful online home business.
Sincerely,
Irena Whitfield
Your Publisher
P.S.: Here you can find answers to the basic questions you may
have related to Pathway, incl organizational items, article and
ad guidelines and submissions, Pathway delivery, communication with me,...
by clicking Questions and Answers here
P.S.S.:
Permanent Special Sales Bonus for Pathway To Success Subscribers Only!:
1+1 ! Buy 1 item and get 1 of your own choice within this section:
http://www.thecassiopeia.com/ePublishing/
Note: How to claim your sales Bonus?
Any purchase from one of my websites qualifies you for the Bonus.
It's sufficient to send me your purchase receipt to sales at thecassiopeia.com put 'Sales Bonus' in the Subject line and your purchase receipt no in the body.
Today's Special Free Reading Bonus:
Inner Selling
Unlock Your Subconscious Mind for Peak Sales
Performance by Dr. Steve Taubman. It's a terrific 100-page
book, particularly if you're in a sales or influence type of
business. You can download free shen you subscribe to Pathway To Success Ezine.
To subscribe to Pathway, click below. Please NO aol, hotmail, zwallet or autoresponder address. These will NOT subscribe you. Thank you.
http://pathwaytosuccessezine.thecassiopeia.com/subscribe.html
Today's Tips:
- Today's Tip On the Opportunity Worth Checking
What will you be selling at the holidays?
Learn the Holidays Trends 2008!
- Today's Tip On the Book Worth Getting
Are you tired of not being able to find a product or idea in which to profit from?
Learn How to Identify, Create And Promote a High Demand Product.
- Today's Tip On the Learning Worth Using
14 Internet Millionaires Are Here To Help:
Free Interview with the godfather of internet marketing
- Today's Tip On Tool Worth Using
Create Your Own Video Commercial In 15 Minutes:
Even If You Have Never Created Any!
- Today's Promotional Tips
Seeking More Targeted Promotion?
Special Free Advertising Forum!
- Today's Useful Tip
Suffering from lack of traffic to your website?
There's a brand new site that gives YOU viral web traffic
and online advertising without spending 1 penny!
- Today's Special
Haven't Got All Christmas Presents?
Give Amazon Gift Cards!
http://pathwaytosuccessezine.thecassiopeia.com/subscribe.html
Note: Please don't use any hotmail, yahoo, zwallet addresses nor autoresponders.
These will not subscribe you. Also, by subscribing to our Pathway To Success Ezine you expressly request to receive our regular newsletter and agree to in-house and third party advertising contained therein.
|
Today's Sponsor
|
Your Lucrative Business Contact Is Here Today!
You can start today with unrivaled consultants and web sites.
This program is the best I tested for being instructional.
It's clear about which steps to take for success.
You can have a new life and never look back to the old way.
Curious? Then call: 1-800-719-8268 ext. 28578
Click here!
|
Publishing dates: 'Pathway To Success' is published every other Sunday. Next Issue is supposed on 28th December 2008.
|
Today's Sponsor
|
Turn $9 Into $12,879.45 Over & Over Again!
Join This Internet Marketing Expert today and receive:
Your very own 9 Dollar Solution website setup for FREE!
1 year pre-written automated salesman... FREE!
Methods used by online pro's who never require you to risk money!
Multiple streams of automated residual income!
Step-by-step marketing instructions to make quick cash!
FREE lifetime support and training From The Internet
Millionaire Cowboy himself!
SUPPORT, SUPPORT, SUPPORT... And Even more SUPPORT!
And much more...
The possibilities are truly unlimited!
Get all the exciting details
by clicking here!
|
Today's Feature Article
How to Use Twitter for Business And Publicity
Joan Stewart, The Publicity Hound
Twitter.
It's an unlikely name for a social networking site that
some of the largest companies in the world are using for
customer service, crisis communications, customer retention
and one of the cheapest and most powerful marketing tools
on the planet.
The free microblogging service allows users to write
messages, up to 140 characters long, directly at the site
at Twitter.com, via instant messaging, or through third-
party applications such as Facebook.
What is Twitter?
The service asks the question "What are you doing?" While
many people respond with things like "I'm taking off for
lunch at Panera's" or "I'm trying to repair my printer,"
others have found a wide variety of ways to use it as a
valuable business tool.
Twitter is so named because the flow of updates is like the
chirping of a bird. When you send an update, it's called a
tweet. The people who tweet are called twitterers or
tweeters, not twits. And when you rebroadcast a message
that has appeared earlier, that's called a retweet.
When you sign up for Twitter, you get a page where your
updates are published, as well as those of the people you
follow. The concept of following is similar to adding
friends on other social sites. Other Twitter features
include the ability to send direct messages to your
contacts and to mark tweets as favorites so you can find
them easily later.
Why Twitter Is Successful
One reason for Twitter's success is the wide array of
methods you can use for posting updates.
In addition to the web-based interface on the Twitter site
itself, users can take advantage of instant messaging or
mobile phones to send updates to their home page. In
addition, there are several Twitter mashups (web
applications that combine Twitter data with other data)
that enhance the functionality of the basic web interface.
These tools allow you to update Twitter from your desktop
or from unsupported I'm clients, to post links to photos,
to search for particular keywords, to update Twitter from
your blog, to use it with other social networking sites,
and to track updates around particular topics.
How Businesses and Nonprofits Use Twitter
Businesses and nonprofits are experimenting with dozens of
ways to use Twitter. Here are just a few of them:
As a crisis communications tool.
- To announce new products and services.
- To promote your new articles and blog posts.
- To follow journalists who Twitter and find out what they
think is important.
- To respond to media coverage, good or bad
- To monitor what others are saying about you and your brand
- To comment on journalists' articles--particularly journalists
who you are targeting
I'll bet you can come up with at least three ideas on how
you can use it. I hope you'll follow me on Twitter by clicking
on the "Follow" button under my photo. I'll follow you, too.
Then tweet about how you're using Twitter. I'd love to see
what you're doing.
For dozens more ideas on how businesses and nonprofits are
using Twitter, see Special Report #52: How to Use Twitter
for Business to Network, Promote, Sell, Recruit & Profit
by clicking here.
Today's Motivational Reading
Seven Gemstones for Success
Gerri D Smith
Let your heart be in your labor and success will often follow.
When you set a goal, no matter how difficult it seems to
accomplish, don’t be afraid to take the risk. In life, some
sacrifices are worth the challenge. So, stop making excuses.
Life is too short to miss out on reaching for your goals
and realizing dreams do come true. With a little effort and
a little time on your part make a commitment to go for it!
If your goals and your dreams are good ones a plan is
required to make them real. Develop a time plan or a target.
For instance, when you know the end result you wish to
accomplish, you might list several mini targets to work on
first.
Your initial target plan might look like this:
If you wish to lose 20 pounds, set up a weekly schedule.
The first week you might start a daily exercise program.
Second week- start cutting back on sugar and sweets. Third
week - try and lowering your daily intake of calories, and
so on until your goal weight is achieved.
If you wish to take a trip to the south of France (or
wherever), or if you desire to expand your business, the
strategy would be similar. You may need to set up a weekly
or monthly schedule to put a sum away toward the cost of
the trip or the cost needed to purchase more space and more
equipment for the business. You could cut back on your
spending and put the savings aside, or take on an extra
paying project until you reach your required goal. When
you’ve accumulated sufficient funds for the trip or the
down payment on the larger business space and more
equipment, you can plan your next target.
So that you may have a richer, fuller, more rewarding life,
putting a system together to target your success and make
your dreams a reality may include the following seven gems:
¨ Set reasonable goals and target dates. Day to day living
makes a lot of demands on you your time, your physical
and emotional energy, and your responsibilities. Do not set
yourself up for defeat. Master one goal at a time and do
not expect instant gratification. With the onset of the
microwave, and then along comes the computer and the
internet both giving ways to shortcut everything you do,
trying to stay focused isn’t always easy.
¨ Be the master of your thoughts. Dream big. A small goal
takes just as much time and effort as a giant one. Think
your goal through and keep a record of your ideas and a
time schedule of what needs to be done and when. Seek help
where needed.
¨ Choose goals that you are passionate about. Motivation
and inspiration are powerful forces that keep you moving
toward your goals. Positive attitudes are also helpful. And
of course, never forget your faith and the knowledge that a
higher power is available to help you reach your goal.
Remember: Nothing is easy, and everything takes time lots
of it. So, be patient it eliminates the stress.
¨ Stay healthy and practice taking care of yourself - first.
When you aren’t feeling well, everyone around you is
affected your family, your friends and associates, and
your business clients. Try to stay flexible and allow
enough time to work on any project so you won’t have to
rush. The old saying: Haste makes waste, is often true
and may even cause a serious accident. And if you are a
sole proprietor, when illness or accidents happen, this
could mean a devastating loss of business income.
¨ Don’t be afraid to take risks. Fear is an internal
blockage that you impose on your thoughts. It is a way of
making excuses for not dealing directly with your anxiety.
Or, you may not wish to face the outcome. What if it
doesn’t work out? Instead, replace your thoughts of fear
with your own source of strength and let your inner support
system guide you.
¨ Keep a list of your qualities and values. What do you
consider to be your most valuable asset? Do you know which
of your qualities you need to make stronger? Make a list of
those qualities and values that you think are the best you,
those that make you feel most secure, and give you your
highest self-esteem. Some of these may include: self-
confidence, a forgiving nature, courage, being a good
listener, trustworthy and honest, and a willingness to
inspire others.
¨ Keep your emotions under control. A peaceful attitude and
an awareness of your surroundings go hand in hand with
prosperity and success. When you are peaceful, your
thoughts and actions come from a wide-awake place that is
free of fear and confusion. You will see more clearly and
act quickly. When you are at peace within yourself, you
attract all that is good. You are more likely to bring
success, happiness and prosperity to you. When you feel
rich, you attract riches. And when you feel successful, you
become successful.
Make it your goal to attract the best of gems to reach your
success and prosperity!
********************************
Gerri D Smith, author, entrepreneur desires to inspire
women business owners and entrepreneurs. Gerri publishes an
inspirational newsletter filled with articles, business
opportunities, affiliate programs, resources and more. And
it’s Free! Go to: http://www.distinctivebusinesswomen.com
Today's Subscriber Article
My Own Worst Enemy
Ronald Yip
Did you ever asked yourself "who is my own worst enemy"? Do
you consider criminals roaming the dark street as your
worst enemy? How about your boss who's killing you mentally
and emotionally with stress and harsh words? The people in
office who are engaging in graft and corruption, instead of
helping those in need?
When something failed to work, we have many implications of
who our enemies are; but we have one common foe who is the
main cause of our failures and misfortunes, and we're not
even aware of this opponent. You may not want to admit it,
but our own worst enemy is ourselves.
Take for instance you are leading a few other colleagues in
an important project for your company you work for. You and
your team belongs to the steering committee but things seem
to go wrong everywhere. Who do you blame when something
goes wrong? You blame the people around you, the weather,
maybe even God. But we are the ones who are in control of
ourselves. We can change the outcome of our lives because
we have the capacity to do that.
Ask yourself, it is our fear, jealousy, greed, etc. that is
ruining our lives. Some people who never managed to get out
of poverty blame the government or their jobs. Some even
take their anger and frustration to the streets and wave
their banners in demonstration in front of parliament house.
But they're too afraid to try out new ventures that may
improve their lives. They drag themselves to go to work on
their 9 to 5 jobs. Then when the day is done, they watch TV
and go out aimlessly having fun without seriously thinking
of what great opportunity the future has in store for them,
if only they would try to do something different with their
lives.
Fear is your worst enemy
Fear has caused many to remain frigid and to never go out
exploring the wonderful things this world has to offer.
Lots of people would rather stay where they are in an
unsatisfied state than to risk difficulties and obstacles
for the sake of attaining their dreams. They find excuses
for themselves not to try anything new. Befor they even
start, they start telling themselves that their family will
not support their idea anyway, and so they never take any action.
Jealousy and envy has also caused some relationship problems.
Some people immediately jump to conclusions without first
analyzing the situation. They let their sudden emotions control
their behaviors without even thinking of the consequences
that may result. As a result, if they're having problems
with their relationships, they have no one else to blame but
themselves. They have themselves to blame, if their lives are
not getting any better.
This goes to show that we decide what will happen to us and
we can control the outcome. Even under circumstances that
are beyond our control, like natural calamities, we can
still utilize to our best advantage the things that we have
control of.
For instance, you got rejected by your dream girl. Some would
just get drunk and feel miserable, thinking that it's the end
of the world. Some will move onwards with their lives and find
the best in what remains with them. See? It's really up to you.
You decide if you want to have a good life or not.
You failed in your exams? So what? There's always another
opportunity. Either you just sulk in sorrow or you can study
harder to get a high score in the future. It's really up
to you.
Don't cry over spilled milk. Concentrate on how you could
get better in the future instead of get frustrated over
your misfortunes.
If we encounter problems, we can either succumb to it, or
we can treat it as an opportunity to become stronger and to
become better individuals. Winners would always treat their
dilemmas as opportunities while losers would see problems
in every opportunity and run away without a second thought.
Oh yes. As yourself again "Who is my own worst enemy?". But
your worst enemy can also be your best friend. It's all up
to you!
**************************
Ronald Yip has been learning and applying intuitive and
creative processes in personal, business and community life
helping people in self improvement. Visit Self Improvement
for more info.
http://www.selfhelprecipe.com/
|
Our Sponsor
|
Reviewed & Tested Money Making Program!
This Reviewed & Tested Money Making Program is designed to work for YOU no
matter who you are or what your situation is. We do not just provide you
with a program, We provide you with a real work from home business and
complete training. A business that is affordable, profitable and works
immediately. This program is As Easy As It Gets...!!
Start your new life where bills are not a problem.
Visit my website for proof and get the details straight from me!
Click here!
http://www.RealSteadyIncome.com
|
To listen to a new Top Show, click the picture.
To Get FREE Tips, Books, Software, Subscribe by clicking here!
Subscribe to 'Pathway To Success'
Published every other Sunday, our FREE Ezine helps Subscribers to succeed in their online home business providing them with hot marketing tips, top webmaster resources, articles, motivational reading, FREE Ads, Subscriber Corner, Web Lions Library, Bonuses and more. Check current visitor Issue.
Click here!
Don't forget to collect YOUR FREE Bonuses!
Get Your Special Motivational and Publishing Calendar,
Insider Tips PLUS More Bonuses!
Note: Please do NOT use any aol, hotmail, yahoo, zwallet addresses nor autoresponders.
These will NOT subscribe you. Also, by subscribing to Pathway To Success Ezine you expressly request to receive our regular newsletter and agree to in-house and third party advertising contained therein.
Privacy Guarantee:
Your privacy is 100% guaranteed. We never share any personal data incl email addresses with any third party, we do not even store email addresses on third party servers.
Privacy Policy
HOT!
Now you can get the full RSS Reader bringing you all the news from Pathway To Success Ezine Portal.
Click the image on the right to download.
|
All achievement is the triumph of persistence.
John Rennie
NEW!
Install our new toolbar, get special business information fast and be informed the minute hot items are out, incl Articles in Subscriber Corner, new Pathway To Success Issues and much more.
http://www.thecassiopeia.com/WebLions/theCassi1.html
Note: Download the above file, unzip and install. When you open a new browser window, the toolbar should be there. If not, please go to 'View', 'Toolbars' and you will see 'theCassiopeia's' - click on it and the toolbar will display.
Whenever there's a new item, an icon will blink. Click on it and it will take you straight to the information.
Important: you can have a toolbar of your own below. It's an
amazing tool: easy to create, easy to use, easy to update,
unobtrusive, bringing unbelievable results PLUS endless
makreting and other possibilities limited only by your
imagination. Definitely a tool of the future. I even
created several for my own use containing the information I
need and use regularly.
http://www.thecassiopeia.com/toolbar/
*******************************
Get one of the Feature Ads in our Ezine:
http://www.thecassiopeia.com/WebmasterMall/EzineAdPrices.html

*****************************************************
The articles published here may be reprinted or used freely as long as it is in its entirety incl the resource box of the author
*****************************************************
If you want quality sticky content for your site, put the below piece of code to your page where you want the current Pathway To Success Issue to appear - copy and paste:
<script language="JavaScript" type="text/javascript" src="http://www.thecassiopeia.com/content1.js"></script>
Note: check what it looks like
Click here
Get my RSS feed to your site - copy and paste the code into your page where you want fresh content to appear:
<SCRIPT LANGUAGE=JavaScript SRC=http://jade.mcli.dist.maricopa.edu/feed/rss2js.php?src=http://www.thecassiopeia.com/xml/thecassiopeiaweb.xml&chan=yes& num=0&desc=yes&date=yes> </script>
Note: check what it looks like
Click here
For All Information For Free Syndicated Content for Your Site
Click here
<%@ page import="java.net.*"%>
<%@ page import="java.io.*"%>
<%@ page import="javax.xml.parsers.DocumentBuilderFactory"%>
<%@ page import="javax.xml.parsers.ParserConfigurationException"%>
<%@ page import="org.xml.sax.SAXException"%>
<%@ page import="org.w3c.dom.*"%>
<%@ page import="java.util.*"%>
<%!
// The following code was graciously provided by Armond Avanes (http://www.armondavanes.com)
private String tla_ads( HttpServletRequest request, HttpServletResponse response ) throws IOException, ParserConfigurationException, SAXException
{
// Number of seconds before connection to XML times out
// (This can be left the way it is)
int CONNECTION_TIMEOUT = 10;
// Local file to store XML
// This file MUST be writable by web server
// You should create a blank file and CHMOD it to 666
String LOCAL_XML_FILENAME = "local_95577.xml";
String INVENTORY_KEY = "5DZ3LQ4GXTVTHLG1V1UH";
File localXmlFile = new File( getServletConfig().getServletContext().getRealPath(LOCAL_XML_FILENAME ) );
if( !localXmlFile.exists() ) {
return( "Text Link Ads script error: " + localXmlFile.getName() + " does not exist. Please create a blank file named " + localXmlFile.getName() + "." );
}
if( !localXmlFile.canWrite() ) {
return( "Text Link Ads script error: " + localXmlFile.getName() + " is not writable. Please set write permissions on " + localXmlFile.getName() + "." );
}
if( localXmlFile.lastModified()<(new Date().getTime() - 3600*1000) || localXmlFile.length()<20 ) {
String request_uri = (request.getRequestURI()!=null) ? request.getRequestURI() : "";
String user_agent = (request.getHeader("User-Agent")!=null) ? request.getHeader("User-Agent") : "";
URL url = new URL("http://www.text-link-ads.com/xml.php?inventory_key=" + INVENTORY_KEY + "&referer=" + response.encodeURL( request_uri ) + "&user_agent=" + response.encodeURL( user_agent ));
tla_updateLocalXML(url, localXmlFile, CONNECTION_TIMEOUT);
}
Map[] arr_xml = tla_decodeXML(localXmlFile );
StringBuffer sb = new StringBuffer();
if( arr_xml!=null && arr_xml.length>0 ) {
sb.append( "\n \n" );
for( int i=0; i" );
sb.append( map.get("BeforeText") );
sb.append( " " + map.get("Text") + " " );
sb.append( map.get("AfterText") + " \n" );
}
sb.append("");
}
return sb.toString();
}
private void tla_updateLocalXML(URL url, File file, int time_out) throws IOException
{
file.setLastModified( new Date().getTime() );
String xml = file_get_contents_tla(url, time_out);
if( xml!=null && !xml.trim().equals("") ) {
FileWriter fw = new FileWriter(file);
fw.write( xml );
fw.close();
}
}
private String file_get_contents_tla(URL url, int time_out) throws IOException
{
URLConnection urlConnection = url.openConnection();
//urlConnection.setConnectTimeout( time_out * 1000 );
//urlConnection.setReadTimeout( time_out * 1000 );
InputStream is = urlConnection.getInputStream();
StringBuffer content = new StringBuffer();
int ch;
while( (ch=is.read())!=-1 )
content.append( (char)ch );
is.close();
return content.toString();
}
private Map[] tla_decodeXML(File file) throws ParserConfigurationException, IOException, SAXException
{
Document dom = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( file );
Node linksRoot = dom.getFirstChild();
NodeList links = linksRoot.getChildNodes();
List result = new ArrayList();
for( int i=0; i
<%= tla_ads(request, response) %>
Read what others say about Pathway To Success by clicking here!
|