~ubuntu-dev/ubuntu/lucid/zabbix/lucid-201002110857

« back to all changes in this revision

Viewing changes to frontends/php/include/classes/chelp.inc.php

  • Committer: Bazaar Package Importer
  • Author(s): Michael Ablassmeier
  • Date: 2007-07-02 09:06:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070702090651-8l6fl3fjw9rh6l2u
Tags: 1:1.4.1-2
Add patch from SVN in order to fix Incorrect processing of character '%'
in user parameters and remote commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        class CHelp extends CLink
23
23
        {
24
24
/* public */
25
 
                function CHelp($url="index.php")
 
25
                function CHelp($url="index.php",$side=null)
26
26
                {
 
27
                        if(is_null($side)) $side = 'right';
 
28
                        if($side == 'right')
 
29
                        {
 
30
                                $pside = 'left';
 
31
                        }
 
32
                        else
 
33
                        {
 
34
                                $side = 'left';
 
35
                                $pside = 'right';
 
36
                        }
 
37
 
27
38
                        parent::CLink(new CImg('images/general/help.gif','?'), 'http://www.zabbix.com/manual/v1.1/'.$url);
28
 
                        $this->options['style'] = 'float:right';
 
39
                        $this->options['style'] = 'padding-'.$pside.': 5px; float:'.$side;
29
40
                        $this->options['target'] = '_blank';
30
41
                }
31
42
        }