$user variable in vicidial.php

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

$user variable in vicidial.php

Postby cyrenity » Wed Aug 11, 2010 3:25 am

Hi,

while looking at agc/vicidial.php code. i am wondering where is $user variable defined, i see this variable is used several times in vicidial.php but i couldn't find the point where it is. defined.

Best Regards
cyrenity
 
Posts: 32
Joined: Mon Jan 15, 2007 10:32 pm

Postby mflorell » Wed Aug 11, 2010 7:35 am

The PHP "$user" variable does not exist in vicidial.php.

The Javascript "user" variable does, and it is defined towards the top:

var user = '<?php echo $VD_login ?>';
mflorell
Site Admin
 
Posts: 18399
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: $user variable in vicidial.php

Postby williamconley » Wed Aug 11, 2010 6:25 pm

cyrenity wrote:Hi,

while looking at agc/vicidial.php code. i am wondering where is $user variable defined, i see this variable is used several times in vicidial.php but i couldn't find the point where it is. defined.

Best Regards

when you post, please post your entire configuration including (but not limited to) your installation method, vicidial version and build, asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box.

Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X Build XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)
___

For instance, this is from 2.0.5 which is no longer supported:
Code: Select all
### BEGIN - CHECK TO SEE IF SHIFT ENFORCEMENT IS ENABLED AND AGENT IS OUTSIDE OF THEIR SHIFTS, IF SO, OUTPUT ERROR
Below which I find:
Code: Select all
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01056',     $user,     $server_ip,$session_name,$one_mysql_log);}
But i expect this has been changed in future versions.

Perhaps you could post your setup and ask again (with a snippet of the code about which are you inquiring).

PS: I could not find the declaration/initialization/assignment of $user either! LOL
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20345
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 31 guests