From Scottie@VERT/THE to All on Sat Apr 19 20:38:00 2008
i have a simple question.ããis it possible to add a piece of script to a .ssjs file that i have made toãonly allow age, sex, or user config restrictions/exemption?ããi have made another set of menus from an option off the leftnav and i wouldãlike to know if there was a line of script that i can insert into the subãmenu(s) so that i can restrict access to those .inc pages.ããexample:ãã<leftnav>ã who's onlineã loginã new userã message areaã file areaã < Chatrooms > -------< chatroom1 > (general)ã -------< chatroom2 > (special) <----this would be protectedã -------< chatroom3 > (special) <----this would be protectedããif there is a way, will someone post it so that i know what to put in theã.ssjs file?ããscottieãthe.synchro.netãã ãã---ã þ Synchronet þ The Electrical Connection - the.synchro.netã
From Mindless Automaton@VERT/ELDRITCH to Scottie on Thu May 1 00:16:00 2008
Scottie wrote:ãã> only allow age, sex, or user config restrictions/exemption?ã> ã> menu(s) so that i can restrict access to those .inc pages.ããlets see.. you could try something like this in leftnav.inc:ãã@@JS:if(user.gender==1)'<a href="@@ftp_url@@%%ftpidx%%">File ãLibraries</a>';@@ããWhich would theoretically display the File Libraries link ifãthe user's gender is male or whatever 1 equals.ããThe others restricts would be something like:ãã(user.security.restrictions&UFLAG_G)ãã(user.age>=18 && user.age<=21)ããI didn't test them out though, so you may need to mangle it some more.ãã-Mindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBS - eldritch.darktech.orgã