search for: get_current_us

Displaying 4 results from an estimated 4 matches for "get_current_us".

Did you mean: get_current_cs
2007 Oct 04
4
Using PHP to reload extensions
I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the script from the command line, it runs just fine (works perfect, actually). I think it is permissions related. Does anyone have any ideas? <php
2005 Apr 04
0
io timeout after 180 seconds
...es ~ ), ~ // A test example configuration that can be used with the test ~ // directory that comes with RIBS. ~ 'example' => array( ~ 'enabled' => false, ~ 'ip' => 'localhost', ~ 'ssh_user' => get_current_user(), ~ 'directories' => dirname(__FILE__) . '/test\ dir', ~ 'use_hard_links'=> true, ~ // An example of a post_command which will tar up each backup. ~ // NOTE: this is only useful if use_hard_links is false ~ // 'post_command...
2006 Jan 10
6
Can we cache user home pages?
Hi Railers, I am trying to create a simple application like a guest book which has users and uses sessions to keep track of which users are logged on. The user''s page is constructed after doing some SQL queries and the user clicks on another link and hits the back button I dont want to regenerate the whole page (which is what happens now) .So I want to use some kind of caching mechanism.
2008 Mar 01
15
before_filter strange behaviour on update and create
...authentication script and I''m calling it like this in every class: class Blah < ApplicationController before_filter :auth def auth req_perm = Permission.find_by_name("Permission Blah") access = AccessController.new() if access.is_logged_in(session.session_id) if !access.get_current_user(session.session_id).role.permissions.include? req_perm redirect_to no_permission_url end else redirect_to login_url end end It works for the view pages but if an update or create is made then it always redirects to the login_url. Acting like the user is not logged in. But that''s...