1
jpco_122122
Help!How to protect a page!

I have a menu named "CrimeMapping Administration" and was linked to "http://proxyserver/crimemapping" it can only be viewed when you are logged as administrator in XOOPS and it works fine but the problem goes here when I typed the http://proxyserver/crimemapping in the address bar it shows the whole page meaning even though you are not logged in as administrator you can still view it by typing the exact URL whta can I do enable to protect this page?

Here is the script:



Muntinlupa Crime Mapping System - Index










<body><br></body>


Anyone can help?

2
wtravel
Re: Help!How to protect a page!

As I understand you call this url in a php page (index.php?). I would rather show the url directly within a php page, not calling an external url.

For example:
Quote:

include necessary header files

$display = '

Muntinlupa Crime Mapping System - Index










<body><br></body>
';
echo $display;

include your footer files

That way you can delete the direct url from your file server.

HTH,

Martijn

3
tjnemez
Re: Help!How to protect a page!
  • 2005/1/6 6:15

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


do you have an XOOPS powered site?

4
jpco_122122
Re: Help!How to protect a page!

@wtravel

What shall I put here: "include necessary header files" & "include your footer files" ?



pls help me..

5
wtravel
Re: Help!How to protect a page!

Standard for including the header is:
Quote:

include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");

And for including the footer:
Quote:

include(XOOPS_ROOT_PATH."/footer.php");

Regards,

Martijn

6
jpco_122122
Re: Help!How to protect a page!

I had tried it but it still doesn't work there is no change on the webpage. What else can I do?

7
wtravel
Re: Help!How to protect a page!

Can you please show me the code of the original php file in which you show the html file (hence there are no passwords or secret codes in that file )? There the page seems to be shown correctly.

Regards,

Martijn

8
jpco_122122
Re: Help!How to protect a page!

Here are the codes:

For HTMLSERVICES/top.htm




MUNTINLUPA CRIME MAPPING











For HTMLSERVICES/map.htm



Muntinlupa Crime Mapping System - Map










classid="CLSID:62789780-B744-11D0-986B-00609731A21D"
codebase="ftp://adeskftp.autodesk.com/webpub/mapguide/ver6/mgaxctrl.cab#Version=6,0,2,2" >





















For HTMLSERVICES/intro.htm




intro

















WELCOME
TO MUNTINLUPA WEB-BASED CRIMEMAPPING SYSTEM




With the increase of GIS in crime mapping
has come increased public access to crime data. The most accessible
and popular method emerging is through Internet access.


Probably one of the most invaluable tools available
for effective crime fighting is information. Using maps to display
that information is an old tool. The advent of desktop computers
has significantly increased the role of computer mapping. The availability
of low-cost and user-friendly GIS applications has further served
to increase the use of GIS in crime mapping.













 


 


 


















For HTMLSERVICES/dummy.htm








For HTMLSERVICES/bottom.htm







27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1280" height="50">





9
tl
Re: Help!How to protect a page!
  • 2005/1/9 14:45

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


It seems that the section is outside the XOOPS realms. XOOPS header and footer will not help in this case. In order to protect the pages using Xoops, you must a module set up and then assign access right under System Admin/Groups.

You may want to try .htaccess to protect the area.

10
jpco_122122
Re: Help!How to protect a page!

@tl

No, we don't need to create it as a module for XOOPS since it is only a link. What I need is how to protect that page like for example if a certain user had guess the correct URL then they can view the whole page without logging in anymore to the XOOPS.

Login

Who's Online

258 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 258


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits