Jump to content
php.lv forumi

Problēma ar Login sistēmu.


Tevocis

Recommended Posts

 

khm, varbūt varētu kādu mazu piemēru parādīt citādi tāpāt isti nav skaidrs. te jau vairāk ar skaitļiem izskatās, bet, ja man teiksim ir grupas tabula

 

`group` (`gid`,`name`,`perms`) VALUES (1,'testa grupa','add content, edit any content, create poll')
 

 

un lietotājam jāpārbauda vai viņš var izmantot lapu ar permu (`add content`) 

 

if(access('add content'))

Edited by anonīms
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...