Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

use php fusion authentication for external page

Asked Modified Viewed 2,821 times
S
sami4net
S
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

How i can use php fusion authentication for external page?

example : i have form i want just member who login can view this page , so incase he login he can view the form.

i want code to put it in this form.

I tried to use custom page for this form but error cause this form required many files.
0 replies

8 posts

A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

If that is a PHP File, then you can Try this :

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]require_once "maincore.php";

if (iMEMBER)
{
echo "The Code which you want to show, if the User if Logged In : For Example :- \n";
echo "<br />The User is Logged In";
}
else
{
echo "The Code you want to show if Not Log In, say Error !!! \n";
echo "<br />The User is Not Logged In ! Access Denied !";
}
[/syntaxhighlighter]
0 replies
S
sami4net
S
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Not work

message said :
Not Found
The requested URL /upload/setup.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Could you please provide more details about your files ? Please also give your site Link where you are testing ...

Do you have PHP Fusion installed ? If yes, then where is the File located in which you are doing this change ?

I mean that this script may work if you will place the file in the same Directory where PHP Fusion files are saved,i.e, root directory...
0 replies
R
Rolf Mayer
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Please show us a link to your website. I've got information that someone with your nick owns a website where the copyrights are removed.
0 replies
S
sami4net
S
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I test it locally , PHP fusion already installed in :
www.localhost.com/mag/

and the PHP file located in :
www.localhost.com/mag/upload/index.php

So the Php file loacted inside PHP fusion dir
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

replace
require_once "maincore.php";

to
require_once "../maincore.php";
0 replies
S
sami4net
S
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I already change the dir "../maincore.php" but still not work , it's redirect me to setup.php !!!!
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

You have to upload the Files and folders into the root of your site... If the Site URL is something ...yoursite.com/folder/ then php files should be in the folder folder...
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
R
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
S
S
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet