user

How do you exit execution of a codeigniter program?

Hi everyone, I am currently working on adding pre-validation to my website. So that pages that require a log-in or other criteria, will only display if your session matches that criteria. I've got most of the system working, but I have one major obstacle. I cannot figure out how to stop CodeIgniter from running the rest of the controlle...

How to handle the expiration of a "remember me" option?

For a cookie based "remember me" function on a web app the user can choose to stay logged in for X days: What do you think is better: a) set the expiration time of the "remember me" only at first login, so the cookie expires after X days after the first login? or b) re-set the expiration time each time the user logs in, so the cookie...

Grant CCK Field edit rights to a user referenced from User Reference; Drupal

In Drupal I am trying to create a content node where the original author can upload an image and then 'challenge' another user to upload an image into that node as well. I can already grant the 2nd user access rights through CCK > User Reference > Node Access User Reference but I don't want that new user to be able to edit the whole node...

Create personal page for every user, PHP

What i want to do is to create an web page for every user when they signup on my page. Example: www.someweb.com/username and this will be their webpage. I know that this can be done easy with mkdir() and other related functions, but the problem is that my root folder is not chmod 777 and i don want to chmod 777 this root folder becaus...

How can I create read-only FTP access for user on Apache server?

I have a web site with lots of pages of photography. In order to allow visitors to download groups of photos without having to save each one individually, I want to create a read-only FTP user that will be publicly available. Via the control panel for the host, I can create "regular" FTP user accounts, but they have write access, which ...

MAMP on OSX 10.5.8 - httpd.conf file being overwritten on when I click start servers

Hi, I am using MAMP pro on osx 10.5.8 and everytime I launch MAMP, it overrides what I have set in the httpd.conf for user. It overwrites it with my current user name, and MAMP wont work unless I have both user and group set as www -- Does anyone have any idea as to how to fix this problem? Any help would be much appreciated! Thanks ...

Synch and admin samba users from django?

I want to create and maintain my user database using the default user handling in django, but at the same time synch the samba user profiles so that users can access the django website and the samba shares using the same password. Any hints? ...

How to designate "priority" levels in a database application "low" "normal" "high"?

I'm working on a database-driven web application that must keep track of "tasks" that are assigned to users by management. I was told that the tasks should be categorized by priority: "low", "normal", or "high". I told the manager who described the requirement this way that I am familiar with another application that keeps track of tas...

Configurable Content System in ASP.NET

I need to design a configurable content system for all of the text in our web application that will tie together our need for Translation with the ability for Groups of users, Subgroups of users, and single Users to configure what a given label, Error Message, or piece of system text says. Because everything needs to be configurable th...

Validate allowed filesize from user input like files to save in local database

Hello, I can not allow my user to save a 6 GB video in the sqlite database. Can I not really? Well all freedom to the user not? Should I protect the user from himself? Where do I draw the border? 1 mb? ...

How do I make an edit users page work on my home page?

Complete rails novice and something just isn't clicking. On my home page /home - I use devise, so I have a check . <% if user_signed_in? %> <%= render "getting_started" %> <% else %> Welcome! <%= link_to "Sign up", new_user_registration_path%> <% end %> At the moment getting_started.html.erb has some instructions and then I'm di...

How can I offer user generated websites with PHP/MySQL?

I am getting started on a new project and I haven't been able to find a pre-packaged solution that will allow me to offer users the opportunity to create an account and use my templates to create their own web page/site that is hosted on my server. I'm sure there is something out there I can use and modify, but if I'm wrong, what is the...

Mapping certificates to custom user database on IIS 6

How can I do many to one certificate mapping to a user from a custom user database on IIS 6. I don't want to use the domain users to be mapped with these certificates. Do I have to do this using code? ...

Separating yourself from your software

Hello folks: My work consists of technical analysis. I like software development, but that is not my job. However, I've developed a substantial system of executables, libraries, databases, and modules. It is not unrealistic to say that such products have made everyone's job easier. I produced a fair amount of documentation for every pro...

How to add a new Windows user to the Users group by default

I have a piece of code that creates a Windows user. Everything is fine and the user is indeed created. However, when I try to pinvoke LoadUserProfile, the operation fails, because the user is not in the Users group. Now, I know how to pragmatically add this user to the Users group, but I dont want to hard-code group name "Users", since i...

Drupal hook_user switch for registration and submit

I need to send registration details somewhere else when Drupal completes a registration. I can't find the correct variables for the switch. I tried this but it's not working. This function is in my module "externalnewsletter". function externalnewsletter_user($op, &$edit, &$account, $category = NULL) { if ($op == 'register' && $cate...

Different user profiles with django-profiles & django-registration

My models.py: USER_TYPES = ( ('D', 'Demo' ), ...

How can I can not find a user with spaces in their names?

I try to search user:"Nam Gi VU" But I got no results, how can I search using this name? (The name can be any names, I just get my name as an example. ...

User controls within table using MVC2 issues

I have a ascx file (with its own viewmodel) that displays a table. Each row in the table will have a user control (with their own ViewModel - created from the ascx viewmodel). The main problem is with validation. The individual user controls on each row use DataAnnotation validation with a Validation summary at the top of it, when runni...

Sitecore - Adding custom fields to the User editor

Is it possible to add custom fields on some tab of the User editor to for example allow Sitecore users to have a profile image? We want a Sitecore based website to allow certain people to visit pages which other user types can't see. Also we want a list of all users with a certain profile. This made me think of custom user fields in the ...