Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: jfarschman on September 04, 2007, 05:25:30 PM
-
Good morning,
For those of you who do not know, AWOL is a nice simple php script that can build a company phone list and an in-out system. It's a great way to keep track of people in an office where they frequently travel.
The problem is SME 7.x does not provide the same PHP environment that 6.x did. Namely register_globals = Off. Global variables are set to 'Off' for input data (POST, GET, cookies, ; environment and other server variables). Instead of using $foo, you must use ; you can use $_REQUEST["foo"] (includes any variable that arrives through the ; request, namely, POST, GET and cookie variables), or use one of the specific ; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending ; on where the input originates.
So switch register_globals to On.
Also... I have reworked three files that you will need to replace:
- login.php
- includes/awol-common.inc.php
- includes/awol-session_check.inc.php
I think Darrell May wrote the original rpm for this, sadly, I don't have the time at the moment to rewrite this rpm with the changed code.... also I'm not really sure anyone uses this. Anyone who needs help, let me know and I'll send you the code changes. If there are enough people, I'll try to find the time to rebuild the rpm.
-
Hello,
This would be a very useful contrib, where do I find?
Searching the forums or Dmay's contrib area finds nothing!
-
It is a nice system
The source
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/dmay/smeserver/SRPMS/dmc-mitel-awol-2.1.0-0.src.rpm
The RPM
http://denver.execsavvy.com/dmc-mitel-awol-2.1.0-0.noarch.rpm
My Mods
http://denver.execsavvy.com/awol.zip
NB: I think I may have upgrade the 2.1.0 to AWOL 3.x... then added my modifications. I don't remember because I did this work about 18 months ago. With that in mind you will want to grab the AWOL 3.x from sourceforge and add that in to the mix. I don't think my modifications have any meaning at all in the 2.1.0 code. 3.x appears to be a rewrite.
Let me know if you need a hand. Email me directly if you need.
-
So switch register_globals to On.
You can do it for just the directory by adding "php_flag register_globals on" like this:
# Groupware: awol
Alias /awol /opt/groupware/awol
<Directory /opt/groupware/awol>
Options -Indexes
AllowOverride None
order allow,deny
allow from all
AddType application/x-httpd-php .php .php3
php_flag register_globals on
php_flag magic_quotes_gpc on
php_flag track_vars on
</Directory>