bugphpGroupWare - Bugs: bug #132, Mcrypt option in header.inc.php

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #132: Mcrypt option in header.inc.php

Submitted by:  None
Submitted on:  Thu 25 Apr 2002 09:43:11 PM UTC  
 
Item Group: SVN trunk (dev code)Category: API - Setup
Severity: 3 - NormalPriority: 5 - Normal
Status: FixedPrivacy: Public
Assigned to: Invalid User ID <Invalid User ID>Open/Closed: Closed
Component Version: NoneOperating System: None
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Fri 26 Apr 2002 06:03:50 PM UTC, comment #5:

I looked into the file phpgwapi/inc/class.crypto.inc.php and dicovered that line 52 checks if mcrypt is enabled, and it says the value is 1 even if it obviously is 0 (False) in header.inc.php, strange.
There must be a line somwere in the code where this setting is hardcoded after reading the header.inc.php!
I will try to find it.

I'm sorry to write so much. I'm not a programmer, but this seems to be doable to me, I hope.
Cheers

Anonymous
Fri 26 Apr 2002 05:37:22 PM UTC, comment #4:

I found the bug in manageheader.tpl on my own. I don't have CVS access, so Milosch please edit the file accordingly.

The lines 40/41 should probably look like this:
<option value="True"{mcrypt_enabled_yes}>True</option>
<option value="False"{mcrypt_enabled_no}>False</option>

This makes the header admin work, but still I get the
Fatal error: Call to undefined function: mcrypt_module_open() in /users/grosvadssk-nu/http/extapps/phpgroupware/phpgwapi/inc/class.crypto.inc.php on line 88
error when trying to login.
Is $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] the right variable at all?

Peter Andersson

Anonymous
Fri 26 Apr 2002 04:35:14 PM UTC, comment #3:

Milosch, it got even worse!
The change you did sets the value to either True or nothing, which then becomes a parse error.
Maybe I wasn't clear enough before. Before the fix, I got the settings True and False in the header.inc.php file, but when enterring the header admin it always states True.
Now I suspect that you have altered the name of the setting so that neither headeradmin nor the phpgwapi recognizes the setting as Mcrypt_enabled = False

Does this make sense?

Anonymous
Fri 26 Apr 2002 06:46:00 AM UTC, comment #2:

My CVS full checkout commands
I used these yesterday

cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware login
cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/phpgroupware co phpgroupware addressbook admin backup bookkeeping bookmarks brewer calendar cart ccs cdb chat chora comic cron developer_tools dj eldaptir email filemanager forum ftp headlines hr infolog inv manual mediadb meerkat messenger napster netsaint news_admin nntp notes phonelog phpGWShell_Win32_VB phpgwapi phpgwnetsaint phpsysinfo phpwebhosting polls preferences projects qmailldap rbs setup skel soap squirrelmail stocks syncml-server timetrack todo transy tts wap wcm weather xmlrpc

Anonymous
Fri 26 Apr 2002 02:34:42 AM UTC, comment #1:

Which version of phpGW are you using?

Thanks,
Mark A Peters (Skeeter)

Mark A Peters <skeeter>
Project Administrator
Thu 25 Apr 2002 09:43:11 PM UTC, original submission:

I just did a fresh clean CVS checkout and I have found a nasty little bug.
I turned off Mcrypt in the header.inc.php file, but when I log into the header admin page I get my settings with Mcrypt enabled. I tried to set it to false, but every time I enter the header admin, it's turned on.
When I try to log into phpGW I also get an error:
Fatal error: Call to undefined function: mcrypt_module_open() in /users/grosvadssk-nu/http/extapps/phpgroupware/phpgwapi/inc/class.crypto.inc.php on line 88

so I kind of wonder if Mcrypt really is turned off.

I hope I'm not being a fool...

Peter Andersson in Sweden

BTW Keep up the good work!

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1