Annulé

Quick screen-scrape / authorization on-the-fly

A quick, fun job for you: Given a visitor's email address, look it up on a third-party website, (acting as a web client), and determine if they are authorized to view the desired content. Details below.

## Deliverables

This PHP script will be called with an email address as the query string.

The email address may or may not be URL-safe encoded, so it's best to translate %## type tokens into the appropriate characters, such as "@", ".", etc.

Output "Checking authorization for $email; please wait." Set $today as today's date, and set $sjs_final as four days after today, as a default value.

If the query string is missing, zero-length, etc., set $sjs_auth to 0 and skip ahead to the Authorization step.

Log into the remote, third-party website by passing a name and password (which will of course be provided to you). This site appears to use PHP session id's to maintain login sessions rather than cookies, so it's quite possible that you'll just be able to issue the GET without actually visiting the login URL. Of course, if that doesn't work, then you'll have to load the first page explicitly. See picture **p1**.

If this step fails for any reason, set $sjs_auth to **1** and skip ahead to the Authorization step.

The GET should yield a PHP session id. Again, if cookies are used, then you might have to load the next page. There's a form used to search on a given email address; you may be able to just POST using the email address and the PHP session id. See picture **p2**.

If this step fails for any reason, set $sjs_auth to **1** and skip ahead to the Authorization step.

You will then receive a web page containing a report table. See picture **p3**. Find the row with Listname (column 2) "lfns01". If this doesn't exist, set $sjs_auth to 0 and skip ahead to the Authorization step.

Scrape the Mes (column 4) and Emailed (column 8) values in that row. Interpret the Emailed value as a date (in format MM-DD-YY). If Mes is 31, set $sjs_final as the Emailed date plus 4 days. If Mes is 32, set $sjs_final as the Emailed date plus 1 day. If Mes is any other value, set $sjs_auth to 0 and skip ahead to the Authorization step.

Set $sjs_auth to the boolean (((4 days prior to $sjs_final) <= $today) and ($today <= $sjs_final)). i.e., Set $sjs_auth to 1 if today falls within the five day window which ends on $sjs_final, otherwise set it to 0.

**Authorization step:**

Use JavaScript to display the original "Checking authorization ..." line as white-on-white, thus effectively making it disappear.

If $sjs_auth is 1, then set the following three variables, and then output a sample message:

$sjs_final_full is a full representation of the $sjs_final date, spelling out the month and year in full, e.g., "July 14, 2006".

$sjs_final_dow is the day of the week of the $sjs_final date, e.g., "Friday".

$sjs_exp_dow is the day of the week of the day after the $sjs_final date, e.g., "Saturday".

Output "You may see this page until $sjs_final_dow, $sjs_final_full. It will be taken down on $sjs_exp_dow."

Otherwise, output "You are not authorized to view this page."

Yes, I will be adding real content once you are done. :-)

* * *

**Notes:** There are three pictures attached; please look at them.

I will be traveling this weekend, so if we don't finish things early Saturday, we'll have to pick this back up on Monday.

I'm pretty flexible and easy to work with. I tried to make sure that this job is as completely specified as humanly possible.

If you have **any** questions, *please* ask them! I have found that it is far better to risk a bit of embarrassment than to spend time working on an assumption which later proves to be wrong. Do not worry that a question may seem silly; just *let me know* and I will be very happy to answer you!

| ![][1] | You must have a PGP (or compatible) program. All data will be transmitted in a PGP-encrypted form, and we expect you to do the same. Coders will be expected to provide their PGP public key. Strong preference will be given to Coders who provide this key _in your bid_. |

| ![][2] | You will be expected to sign our non-disclosure agreement (NDA) (*and follow it!*) upon winning this project; we will be transmitting our sensitive corporate data, as will you. You need to sign the NDA using PGP, as this is now legally binding, as per the US Federal Electronic Signatures in Global and National (ESIGN) Commerce Act of 2000. If you are not prepared to do this, please do not bid. |

We will retain full legal rights to the code and/or data upon completion. All code and/or data is and becomes *our* intellectual property! You will *not* have any rights to the code and/or data in any fashion.

**Thank you for your consideration and for bidding through RentACoder!**

* * *Copyright ? 2006, RentACoder Buyer

[notecom][3]. **All Rights Reserved.** Reproduction without permission is strictly prohibited.

* * *

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

PHP, tiny bit of JavaScript.

The web server is Apache running on Linux, but that's probably irrelevant.

Compétences : Ingénierie, Javascript, Linux, Marketing, MySQL, PHP, Ventes, Architecture Logicielle, Tests de Logiciels, Hébergement Web, Administration de Site Web, Tests de Sites Web

en voir plus : we hire the best, weekend job search, web page making easy, third party agreement sample, third party agreement format, third federal, the real real, the month may, the job window, the coders, the best questions, the best job for you, thank you follow up email, string the, string c plus plus, sample thank you notes, sample of nda form, sample of nda, sample non-disclosure form, sample non disclosure form

Concernant l'employeur :
( 137 commentaires ) Wyoming, United States

Nº du projet : #3646940

1 freelance fait une offre moyenne de $17 pour ce travail

cambridge

See private message.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(3 Commentaires)
0.9