Page 1 of 1

Adding links

Posted: Sat Jun 10, 2006 8:57 pm
by Brian
Script URL: http://www.arcadex.deltaanime.net/index.php
Version of script: 1.1
Version of PHP: 4.4.2
Hosting company: http://www.register.deltaanime.net
Have you searched THIS FORUM for your problem: N/A
(if not please do before posting)
If so, what terms did you try: N/A

Write your message below:

I am trying to write a code for a froum for top sites. I made a file at http://www.arcadex.deltaanime.net/New1.php so that the admin could add links him self and not bother me all the time. But, when I click Add Link, it does not add and says:
An error occured:

You are not authorized to view this page!



Back to the previous page
Is there any way to have it add the links, but not give the admin the password?

Here is New1.php:

Code: Select all

<form action="index.php?" method="POST">

<p><a name="#addlink"></a><b>Add a link</b></p>
<p>Use this form to add a new URL link to track clicks. Please type in the
<b>full URL</b> of the link below:<br>
<input type="hidden" name="action" value="add">
<input type="hidden" name="pass" value="******">
<input type="text" name="url" value="http://" size="50">
</p>
<p><b>Link name:</b> (Optional)<br>
Choose a unique name for this link (max 40 chars). This name will be displayed
as "Web page" in the statistics. If you don't choose a name the link
URL will be displayed (if longer than 40 chars it will be shorten to 40 chars).<br>

<input type="text" name="name" size="40" maxlength="40"> </p>
<p><input type="submit" value=" Add link "></p>
</form>

Posted: Sun Jun 11, 2006 11:07 am
by Klemen
First of all don't post your password here (it was in the code), I changed it to ***** now.

What you are trying to do won't work because you have to be logged in into admin. What you could do is take the PHP code from admin panel that adds link to file and use that to create a new file.