Cytat
================================================================================
=
HOW TO INSTALL
================================================================================
=
1. Run keygen.php
2. Run install.php in your browser and enter the configuration details.
================================================================================
=
WHERE TO ASK HELP
================================================================================
=
For any help please use the forums. http://www.phplogin.net/forum/
================================================================================
=
HOW TO APPLY RESTRICTIONS
================================================================================
=
From the admin control panel, click on the "generate code" button and
select the groups that are allowed to see a certain page. Copy the code
that the wizard outputs and place it at the very start of the page.
================================================================================
=
Aby wyświetlić zawartość tylko dla zalogowanych, TYLKO DLA UŻYTKOWNIKÓW:
================================================================================
=
<?php
if ( $login->is_logged_in () ):
?>
Content here for logged in members
<?php
endif;
?>
================================================================================
==
Aby wyświetlić zawartość tylko dla niezalogowanych, TYLKO DLA GOŚĆI:
================================================================================
==
<?php
if ( ! $login->is_logged_in () ):
?>
Content here for guests
<?php
endif;
?>
================================================================================
==
Aby wyświetlić zawartość tylko dla adminów:
================================================================================
==
<?php
if ( $login->isadmin () ):
?>
Content here for the admin only
<?php
endif;
?>
================================================================================
==
THINGS TO REMEMBER
================================================================================
==
settings.php always needs to be included in your php pages (where you want
restrictions applied).
================================================================================
=
CREDITS
================================================================================
=
FAMFAMFAM (icons used) http://www.famfamfam.com/lab/icons/silk/
EZSQL http://www.justinvincent.com
Codeigniter http://www.codeigniter.com
=
HOW TO INSTALL
================================================================================
=
1. Run keygen.php
2. Run install.php in your browser and enter the configuration details.
================================================================================
=
WHERE TO ASK HELP
================================================================================
=
For any help please use the forums. http://www.phplogin.net/forum/
================================================================================
=
HOW TO APPLY RESTRICTIONS
================================================================================
=
From the admin control panel, click on the "generate code" button and
select the groups that are allowed to see a certain page. Copy the code
that the wizard outputs and place it at the very start of the page.
================================================================================
=
Aby wyświetlić zawartość tylko dla zalogowanych, TYLKO DLA UŻYTKOWNIKÓW:
================================================================================
=
<?php
if ( $login->is_logged_in () ):
?>
Content here for logged in members
<?php
endif;
?>
================================================================================
==
Aby wyświetlić zawartość tylko dla niezalogowanych, TYLKO DLA GOŚĆI:
================================================================================
==
<?php
if ( ! $login->is_logged_in () ):
?>
Content here for guests
<?php
endif;
?>
================================================================================
==
Aby wyświetlić zawartość tylko dla adminów:
================================================================================
==
<?php
if ( $login->isadmin () ):
?>
Content here for the admin only
<?php
endif;
?>
================================================================================
==
THINGS TO REMEMBER
================================================================================
==
settings.php always needs to be included in your php pages (where you want
restrictions applied).
================================================================================
=
CREDITS
================================================================================
=
FAMFAMFAM (icons used) http://www.famfamfam.com/lab/icons/silk/
EZSQL http://www.justinvincent.com
Codeigniter http://www.codeigniter.com
Robię tak:
<body> <center> <?php include ('login/settings.php'); if ( ! $login->is_logged_in () ): ?> <?php ?> <?php endif; ?> <?php include ('login/settings.php'); if ( $login->is_logged_in () ): ?> hehe <?php endif; ?> </center> </body>
i nie działa ;/