xPtv45z Posted April 29, 2013 Report Posted April 29, 2013 http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html Quote
anonīms Posted April 29, 2013 Report Posted April 29, 2013 (edited) http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html 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 April 29, 2013 by anonīms Quote
xPtv45z Posted April 29, 2013 Report Posted April 29, 2013 Nu apmēram tā, tikai aizstāj ar savām tiesībām - http://en.wikipedia.org/wiki/Chmod Quote
sega99 Posted May 6, 2013 Report Posted May 6, 2013 (edited) ne to iekopeju tagad jabut ok login.php http://paste.php.lv/82fa37a937c1948133506fed05abb73b?lang=php index.php http://paste.php.lv/22ff13d5f0d1c1da49dc847e55e552c3?lang=php Edited May 6, 2013 by sega99 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.