user

Where does Drupal store user permissions in the database?

Does anyone know where Drupal stores, in the Database, the role of a user? It's not in the users table, and I can't seem to find it. I can find where it defines the role, defines the role's permissions, but I can't find where it defines what Role a certain User is. Anyone know? Thanks! ...

php cookies block access to directories

I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this. Currently when a user logs in a cookie is created with their customer id and the customer is is used to display their content. How would I block entire directori...

Django microblog showing a logged in user only his posts

i have a miniblog application, with a class named New(refering to a new post), having a foreign key to an user(who has posted the entry). above i have a method that displays all the posts from all the users. I'd like to show to the logged in user, only his posts How can i do it? Thanks in advance! def paginate(request): paginator = N...

Sessions and cookies

I currently have a website that allows my visitors to login via a simple script i've pasted together and wrote. Currently I only use sessions to keep visitors logged in. Are there any advantages to adding cookies to my website to store user logged in status? Or is there a better way altogether? using PHP ...

Drupal : how to emulate the public/private attribute available in WordPress

Hi, Basically, I'm looking for an easy way (module) to add a private/public option to any kind of content I may published in Drupal (blog entry, image, etc.). So that when I'm logged in, I can see everything. But when an anonymous user visit the site, he will only see the public stuff. It's way to manage a kind of front window/back-stor...

Sharepoint get User information

I have MOSS server and users authorization is going trough AD. I want to programmaticaly get some current user information, like e-mail, phome number. I made the following steps: 1) create dll with [assembly: AllowPartiallyTrustedCallers] 2) i have the class PhoneBookCL that inherits System.Web.UI.WebControls.WebParts.WebPart and I try...

Securing ASP.Net user database

Hi, I'm working on the web app which will be hosted on the client's server. There are various restrictions/security measures in place and I'm concerned that these can be "hacked" because the client will have a direct access to the ASP.Net user database through the SSMS. I can think of few ways to stop the user from doing this, but I...

how to set the permission to a user for stream publishing in facebook?

Hi, I would like to post the stream from my website to facebook user wall by using facebook API.. I have created the facebook application posted the stream by application admin .. passed the parameter which required to this function.. $this->facebook->api_client->stream_publish($comments,'From:blinkbee.com',$action_link,$f_user_id,$...

How can I map UIDs to user names using Perl library functions?

I'm looking for a way of mapping a uid (unique number representing a system user) to a user name using Perl. Please don't suggest greping /etc/passwd :) Edit As a clarification, I wasn't looking for a solution that involved reading /etc/passwd explicitly. I realize that under the hood any solution would end up doing this, but I was se...

How to handle different roles with different previliges in PHP?

I would like to know how we can create different "user Roles" for different users in PHP. example: Administrator can create all types of users, add, view, manipulate data, delete managers, viewers, and workers, etc Managers can only create, workers and viewers, can add and view data, workers can't create new users, but can only add da...

Explaining your system to a client

I'm currently developing a small Database Management System for a local company. How would you go about explaining how the system you have designed to a client? If they are non-technical and have no understanding of programming, how would you go about showing what the system will do and how it will do it? I guess some sort of visual repr...

best gae framework for openid user login..

i want to enable openid user login my site. which is best framework to do it ? thanks ...

How can I isolate the form controls in a ASP Web User Control from the rest of the page's form controls?

I have a Web User Control I created for authentication. The web user control is inside the box below. Clicking any button (1 or 2) below works correct as it goes to the correct c# button click event in the code behind file. If I press enter on fields a or b it goes to the correct callback (button1's) if I press enter on field c it still ...

How do I find out what android system icons mean?

Ok, so I've got an andoid phone with a bunch of icons up the top, looks like app notifications go on the left, system icons go on the right. Most of the system icons seem reasonably intuitive, service, 3g, wireless etc. I've recently gotten a new one that looks like a phone being tilted / shaken and have absolutely no idea what it mean...

Rails: Polymorphic User Table a good idea with AuthLogic?

Hi everyone, I have a system where I need to login three user types: customers, companies, and vendors from one login form on the home page. I have created one User table that works according to AuthLogic's example app at http://github.com/binarylogic/authlogic_example. I have added a field called "User Type" that currently contains ei...

Kohana 3 auth module problems

Hey there, I am having an issue with the Kohana 3 Auth module. Both the Auth and ORM modules are enabled in the bootstrap.php , the sql tables are installed and the DB connection is fine. I have put in application/config/database.php and sessions.php as well as auth.php. When I try to create new users doing this - $user = ORM::fac...

django link to any user profile in social comunity

i am trying to build a virtual comunity, and i have a profile page, and a personal page. In the profile page, one can see only the posts of one user(the user whos profile is checked), in the personal page one can see his posts, plus all the posts he has subscribed to (just like in Facebook) it's a little confusing for me how i can link ...

Weblogic: How do I list all logged on users?

I'd like to list the currently logged on users for my Weblogic domain Failing that, I'd like to know how many users are logged on. Ideally by using the admin console, or a script if I must. ...

Weblogic: listing users assigned to a specific group/role

Can I do this through the Admin console? Or do I need a script? If the latter, some hints about how to approach this would be appreciated. ...

WPF: Sort of inconsistence in the visual appearence of WPF controls derived by Selector class

Hello, focused items == selected items but selected items != focused items. Have you ever wondered about that? Do you specially style the backcolor of a focused/selected item ? I ask this question because a user has an enabled button because some customer items are selected. The user is wondering now "why the heck can I delete this ...