Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
tedrodgers #1
PHP: Restrict access to a section of code
hi guys,
I have implemented the login/user auth sections of my webby without any
problems. Ive used the built in server behaviours in DW8. So i have a session
variable called MM_username.
now instead of restricting access to a whole page, i just need to restrict
access to certain sections inside a page. For example i have a user admin panel
that i only want to show if they are logged in. and i only want the logout
button to show if they are logged in etc.
im not great at hand coding php yet , so any help would be greatly appreciated.
thanks,
ted.
tedrodgers Guest
-
Restrict access by ip
I have an ASP page that I want to allow access from only from a certain block of address, can someone get me started? -
SECOND restrict access
I have built several databases in MySQL, in one is a table that has all the log-on information that keeps the administration side of the site... -
how do I indentify which section of code is slow?
I have a query that loops over several CFIF statements. The page seems to be rendering too slow. Is there a way where I can put some code around... -
Restrict Access with Levels
I set up my login page to restrict by username, password, and access level. I restrict access to "Admin" on one of my pages. However, when I submit... -
How can I keep a section of code from firing?
I am wondering if I am attempting the impossible on one page. CODE: set current= cConn.Execute(SQLCurrent) Do Until current.eof Response.Write... -
Joe Makowiec #2
Re: PHP: Restrict access to a section of code
On 09 Jun 2006 in macromedia.exchange.extensions.dreamweaver,
tedrodgers wrote:
<?php if($_SESSION['MM_username']) { ?>> I have implemented the login/user auth sections of my webby without
> any problems. Ive used the built in server behaviours in DW8. So i
> have a session variable called MM_username.
>
> now instead of restricting access to a whole page, i just need to
> restrict access to certain sections inside a page. For example i
> have a user admin panel that i only want to show if they are logged
> in. and i only want the logout button to show if they are logged in
> etc.
<!-- HTML code you want displayed goes here -->
<form name="logoutform" method="POST" action="logout.php">
<input type="submit" name="Submit" value="Log Out">
</form>
<?php } ?>
[url]http://www.php.net/manual/en/ref.session.php[/url]
--
Joe Makowiec
[url]http://makowiec.net/[/url]
Email: [url]http://makowiec.net/email.php[/url]
Joe Makowiec Guest
-
Joe Makowiec #3
Re: PHP: Restrict access to a section of code
On 09 Jun 2006 in macromedia.exchange.extensions.dreamweaver, tedrodgers
wrote:
By the way: you'd be much better off in the macromedia.dreamweaver or> hi guys,
macromedia.dreamweaver.appdev groups; this group is fairly low volume.
--
Joe Makowiec
[url]http://makowiec.net/[/url]
Email: [url]http://makowiec.net/email.php[/url]
Joe Makowiec Guest
-
tedrodgers #4
Re: PHP: Restrict access to a section of code
oops i meant to put it in appdev :) thnx
tedrodgers Guest



Reply With Quote

