@@ 106-115 (lines=10) @@ | ||
103 | * |
|
104 | * @return boolean |
|
105 | */ |
|
106 | public static function isX23() |
|
107 | { |
|
108 | $x23 = false; |
|
109 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
110 | if ((int)substr($xv, 2, 1) >= 3) { |
|
111 | $x23 = true; |
|
112 | } |
|
113 | ||
114 | return $x23; |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * Is Xoops 2.0.x ? |
|
@@ 122-131 (lines=10) @@ | ||
119 | * |
|
120 | * @return boolean |
|
121 | */ |
|
122 | public static function isX20() |
|
123 | { |
|
124 | $x20 = false; |
|
125 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
126 | if (substr($xv, 2, 1) == '0') { |
|
127 | $x20 = true; |
|
128 | } |
|
129 | ||
130 | return $x20; |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Create (in a link) a javascript confirmation's box |