Add Site Script and Create 1 file

Cancelado Publicado Jan 31, 2007 Pagado a la entrega
Cancelado Pagado a la entrega

SEE ATTACHED ZIP FILE FOR DETAILS - WINDOWS 2003 IS SERVER --

DETAILS

We provide our clients forwarding accounts. What we are looking to do is create a system we can run on our servers as admins to create forwarding accounts for out clients easily.

Basically what we do is add a site to our server, then add an [url removed, login to view] file for that URL. The [url removed, login to view] looks like below, with carrots taken out because elance does not accept them.

We need this to ideally work on a windows box (php is okay), but can be Linux. What will occur is we load this page, fill out the form and submit it and then it automatically creates the accounts in IIS and the folder for the site.

----------- [url removed, login to view] ---------------------

html

head

title URL Name::../title

/head

frameset framespacing="0" border="0" frameborder="0" rows="0,*"

frame name="zero" scrolling="auto"

frame name="site" scrolling="no" noresize target="site" src="[url removed, login to view];phrase=YYY"

noframes

body

pThis page uses frames, but your browser doesn't support them./p

/body

/noframes

/frameset

/html

------------------------------------

What We Need Created

1. We need to use the attached file, [url removed, login to view] to create the sites on the server, create the above frames page ([url removed, login to view]) and then create a CSV to export or comma delimited output.

2. The form [url removed, login to view] gets submitted and each site under the “Site URL” column is created automatically on the server, with its own folder. In each folder, the file [url removed, login to view] gets created.

3. URL within the [url removed, login to view] is created with the [url removed, login to view] form. The URL variables and where they come from is broken down below based upon the information taken from [url removed, login to view] file:

Base URL Page/Override URL Location Phrase

[url removed, login to view] [url removed, login to view] XXX YYY

[url removed, login to view];phrase=YYY

a. Field Explanation

i. Base URL – this is the base URL that will load in the “site” section of the frame that is created for the domain. This domain will be used for all the sites created on this form. If the field is filled in, we need to make sure it has in the domain the “.” and an extension, like “Com” “Net” Etc.

ii. Site URL - this is the URL of the website we will be adding to the server. This url will then host the [url removed, login to view] file, which is the code above.

iii. Page – the drop down choices we need to be able to edit in the code manually if need be, for example adding or taking away addresses. This drop down will be selected and will tell the [url removed, login to view] URL what page to go to. In the below selection, it is “[url removed, login to view]”. If the next column, OVERRIDE URL, is filled out, then this drop down selection is ignored.

Example: [url removed, login to view];phrase=YYY

iv. Location – this field works like this… If this field is empty, then for the loca=XXX, it will say “[url removed, login to view]”. If the field is filled out, then the XXX gets replaced with whatever is entered in the field.

v. Phrase– this field works like this… If this field is empty, then for the phrase=YYY, it will say “[url removed, login to view]”. So phrase=siteurl.com. If the field is filled out, then the YYY gets replaced with whatever is entered in the field.

4. Once the form is filled out, then you can hit:

a. Submit – this submits the form, creates the sites listed on the page and then creates a text or CSV file that looks like this:

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

b. Export without Site Creation – this submits the forms, but does not create the sites and instead just creates a text or CSV file that looks like this:

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

[url removed, login to view], [url removed, login to view];phrase=[url removed, login to view]

NOTES:

1. For each field, we want to have cookies that save the last inputs. The fields will be wiped clear and the cookies when the link “Clear Page” is clicked on site_creator.htm.

2. If the domain exists and another form is submitted with same domain, then old domain gets written over with new domain information.

3. We have 50 listed on the page, so if the Site URL field is blank, then its ignored and nothing is created.

4. In the code for “loca=” and “phrase=”, The Site URL will not always be “.com”, it will be whatever extension the Site URL is using.

5. Site creation should be a simple script like - [url removed, login to view] We are not adding email or ftp, just main folder for site and one file.

ASP Linux Perl PHP Windows Desktop

Nº del proyecto: #122444

Sobre el proyecto

Proyecto remoto Activo Feb 1, 2007