[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-plugins
Subject:    Re: [SM-PLUGINS] Problem with vkeyboard and squirrelmail-1.4.20
From:       Jobst Schmalenbach <jobst () barrett ! com ! au>
Date:       2010-07-11 9:22:37
Message-ID: 4C398D5D.6070600 () barrett ! com ! au
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi.

Sorry, I should have said that there are no warnings ... I ran the test 
and its all ok.
I shall send the list later, I am not sitting at the console f that 
machine in the moment.

Jobst



On 10/07/2010 04:32, Tomas Kuliavas wrote:
>
> Jobst Schmalenbach wrote:
>    
>> Hi,
>>
>> (cc'ed to Daniel the author).
>>
>> Last version I was using squirrelmail.1.4.13 and vkeyboartd working fine.
>> New version is squirrelmail-1.4.20, vkeyboard stopped working
>> (vkeyboard-0.9.1).
>> (centos 5.4, php 5.3)
>>
>>
>> When I go to the login page of squirrelmail and click on [button|message]
>> I will get
>>
>>     You must be logged in to access this page.
>>               Go to the login page
>>
>>
>> When I include the following into "auth.php" (after line 128, after
>> checking for signout) it works:
>>
>>          if(isset($_GET['passformname'])&&
>> $_GET['passformname']=="secretkey"&&
>> preg_match("/vkeyboard.php/",$_SERVER['PHP_SELF']))
>>            return;
>>          if(preg_match("/vkeyboard\/help.php/",$_SERVER['PHP_SELF']))
>>            return;
>>
>> However I need to add the following to vkeyboard.php (after line 30) to
>> make it work
>>
>>       // Including functions and settings
>>       require_once(SM_PATH . 'config/config.php');
>>
>> otherwise it fails with:
>>
>>       Error opening ../../data/default_pref  Could not create initial
>> preference file!
>>
>> that is because looking at the PHP errorlog I see:
>>
>>       PHP Notice:  Undefined variable: data_dir in
>> /PATH_TO_SQUIRRELMAIL/squirrelmail-1.4.20/include/load_prefs.php on line
>> 25
>>
>> which explains that is cannot see the config file, including it solves the
>> problem.
>>
>>
>> What to do?
>> Is there a need to change something in vkeyboard?
>> Is there a need to have the code added to auth.php?
>> Is this a module problem or base code problem?
>>
>>      
> Can you show list of all enabled plugins? With version numbers and the order
> in which they are enabled.
>
> Could you test SquirrelMail configuration with configtest.php and make sure
> that there are no warnings?
>
>    

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi.<br>
<br>
Sorry, I should have said that there are no warnings ... I ran the test
and its all ok.<br>
I shall send the list later, I am not sitting at the console f that
machine in the moment.<br>
<br>
Jobst<br>
<br>
<br>
</font><br>
On 10/07/2010 04:32, Tomas Kuliavas wrote:
<blockquote cite="mid:29121147.post@talk.nabble.com" type="cite">
  <pre wrap="">

Jobst Schmalenbach wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
Hi,

(cc'ed to Daniel the author).

Last version I was using squirrelmail.1.4.13 and vkeyboartd working fine.
New version is squirrelmail-1.4.20, vkeyboard stopped working
(vkeyboard-0.9.1).
(centos 5.4, php 5.3)


When I go to the login page of squirrelmail and click on [button|message]
I will get 

   You must be logged in to access this page.
             Go to the login page


When I include the following into "auth.php" (after line 128, after
checking for signout) it works:

        if(isset($_GET['passformname']) &amp;&amp; 
$_GET['passformname']=="secretkey" &amp;&amp;
preg_match("/vkeyboard.php/",$_SERVER['PHP_SELF']))
          return;
        if(preg_match("/vkeyboard\/help.php/",$_SERVER['PHP_SELF']))
          return;

However I need to add the following to vkeyboard.php (after line 30) to
make it work

     // Including functions and settings
     require_once(SM_PATH . 'config/config.php');

otherwise it fails with:

     Error opening ../../data/default_pref  Could not create initial
preference file!

that is because looking at the PHP errorlog I see:

     PHP Notice:  Undefined variable: data_dir in
/PATH_TO_SQUIRRELMAIL/squirrelmail-1.4.20/include/load_prefs.php on line
25

which explains that is cannot see the config file, including it solves the
problem.


What to do?
Is there a need to change something in vkeyboard?
Is there a need to have the code added to auth.php?
Is this a module problem or base code problem?

    </pre>
  </blockquote>
  <pre wrap="">
Can you show list of all enabled plugins? With version numbers and the order
in which they are enabled.

Could you test SquirrelMail configuration with configtest.php and make sure
that there are no warnings?

  </pre>
</blockquote>
</body>
</html>


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic