~ubuntu-branches/ubuntu/breezy/moodle/breezy

« back to all changes in this revision

Viewing changes to lib/smarty/plugins/function.popup.php

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2005-10-13 02:00:59 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051013020059-y2qcyo41t7nqppcg
Tags: 1.5.2-1ubuntu1
* Resync with debian (security update)
* changed dependencys to php5
* changed apache dependency to apache2 
* References
  CAN-2005-2247

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        switch ($_key) {
26
26
            case 'text':
27
27
            case 'trigger':
 
28
            case 'function':
 
29
            case 'inarray':
28
30
                $$_key = (string)$_value;
 
31
                if ($_key == 'function' || $_key == 'inarray')
 
32
                    $append .= ',' . strtoupper($_key) . ",'$_value'";
29
33
                break;
30
34
 
31
35
            case 'caption':
42
46
            case 'textfont':
43
47
            case 'captionfont':
44
48
            case 'closefont':
 
49
            case 'fgbackground':
 
50
            case 'bgbackground':
 
51
            case 'caparray':
 
52
            case 'capicon':
 
53
            case 'background':
 
54
            case 'frame':
 
55
                $append .= ',' . strtoupper($_key) . ",'$_value'";
 
56
                break;
 
57
 
45
58
            case 'textsize':
46
59
            case 'captionsize':
47
60
            case 'closesize':
50
63
            case 'border':
51
64
            case 'offsetx':
52
65
            case 'offsety':
53
 
            case 'fgbackground':
54
 
            case 'bgbackground':
55
 
            case 'inarray':
56
 
            case 'caparray':
57
 
            case 'capicon':
58
66
            case 'snapx':
59
67
            case 'snapy':
60
68
            case 'fixx':
61
69
            case 'fixy':
62
 
            case 'background':
63
70
            case 'padx':
64
71
            case 'pady':
65
 
            case 'frame':
66
72
            case 'timeout':
67
73
            case 'delay':
68
 
            case 'function':
69
 
                $append .= ',' . strtoupper($_key) . ",'$_value'";
 
74
                $append .= ',' . strtoupper($_key) . ",$_value";
70
75
                break;
71
76
 
72
77
            case 'sticky':
81
86
            case 'fullhtml':
82
87
            case 'hauto':
83
88
            case 'vauto':
 
89
            case 'mouseoff':
 
90
            case 'followmouse':
84
91
                if ($_value) $append .= ',' . strtoupper($_key);
85
92
                break;
86
93
 
97
104
    if (empty($trigger)) { $trigger = "onmouseover"; }
98
105
 
99
106
    $retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
100
 
    $retval .= $append . ');" onmouseout="nd();"';
 
107
    $retval .= $append . ');"';
 
108
    if ($trigger == 'onmouseover')
 
109
       $retval .= ' onmouseout="nd();"';
 
110
 
101
111
 
102
112
    return $retval;
103
113
}