Submit.php Part
1
This script is used to submit
a new link and also to edit an existing link. Each new link is saved to a queue
and admin must review it to decide if it have to be approved or rejected.
To show the submit form
it has to be called as 'submit.php?category=CATEGORY_NUMBER'. To show the submit form is used template 'link_submit.html'. Used variables:
#%lcats%# |
It makes links to all first level categories |
#%category%# |
Number of the category where we go to submit a new link. |
#%categoryname%# |
Name of the category where we go to submit a new link. |
#%m_title%# |
Maximum allowed size of Title. |
#%m_desc%# |
Maximum allowed size of Description. |
The following items are used only if someone just sent the form but there was an error. If this happens, he/she gets the form back with the inserted data. |
|
#%info%# |
Description of the error which just happened. |
#%url%# |
Entered URL. |
#%title%# |
Entered Link Title. |
#%description%# |
Entered Description. |
#%detail%# |
Entered Detailed Entry. |
#%name%# |
Entered Name of the webmaster. |
#%email%# |
Entered Email of the webmaster. |
When the link is submitted, a 'Thank You'
page is showed. It is based on template 'link_submitted.html' where are
used these variables:
#%lcats%# |
It makes links to all first level categories |
#%categoryname%# |
Name of category of the new link. |
#%url%# |
URL of the link. |
#%title%# |
Link Title of the link. |
#%description%# |
Description of the link. |
#%detail%# |
Detailed Entry of the link. |
#%name%# |
Name of the webmaster of the link. |
#%email%# |
Email of the webmaster of the link. |
Now we will send email admin. Please note that the first line of
all email templates must begin with the word "Subject: " and below the line must
be one blank line.
The email is based on template 'email_link_admin.txt'. These
variables may be used:
#%adminfile%# |
URL of your admin file, where you can log in and review the link. |
#%url%# |
URL of the link. |
#%title%# |
Link Title of the link. |
#%description%# |
Description of the link. |
#%detail%# |
Detailed Entry of the link. |
#%categoryname%# |
Name of Category of the link. |
#%name%# |
Name of the webmaster of the link. |
#%email%# |
Email of the webmaster of the link. |
Once
a link from the queue is approved or rejected by a moderator, the link owner gets an email
which is based on template 'email_link_approved.txt' or , 'email_reject.txt'
where are these
variables available:
#%url%# |
URL of the link. |
#%title%# |
Link Title of the link. |
#%description%# |
Description of the link. |
#%detail%# |
Detailed Entry of the link. |
#%name%# |
Name of the webmaster of the link. |
#%email%# |
Email of the webmaster of the link. |
#%no%# |
Number of the link. |