| @@ 105-114 (lines=10) @@ | ||
| 102 | * |
|
| 103 | * @return boolean |
|
| 104 | */ |
|
| 105 | public static function isX23() |
|
| 106 | { |
|
| 107 | $x23 = false; |
|
| 108 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
| 109 | if ((int)substr($xv, 2, 1) >= 3) { |
|
| 110 | $x23 = true; |
|
| 111 | } |
|
| 112 | ||
| 113 | return $x23; |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Is Xoops 2.0.x ? |
|
| @@ 121-130 (lines=10) @@ | ||
| 118 | * |
|
| 119 | * @return boolean |
|
| 120 | */ |
|
| 121 | public static function isX20() |
|
| 122 | { |
|
| 123 | $x20 = false; |
|
| 124 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
| 125 | if (substr($xv, 2, 1) == '0') { |
|
| 126 | $x20 = true; |
|
| 127 | } |
|
| 128 | ||
| 129 | return $x20; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Retreive an editor according to the module's option "form_options" |
|
| @@ 249-258 (lines=10) @@ | ||
| 246 | * |
|
| 247 | * @return boolean |
|
| 248 | */ |
|
| 249 | public static function isX23() |
|
| 250 | { |
|
| 251 | $x23 = false; |
|
| 252 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
| 253 | if ((int)substr($xv, 2, 1) >= 3) { |
|
| 254 | $x23 = true; |
|
| 255 | } |
|
| 256 | ||
| 257 | return $x23; |
|
| 258 | } |
|
| 259 | ||
| 260 | /** |
|
| 261 | * Is Xoops 2.0.x ? |
|
| @@ 265-274 (lines=10) @@ | ||
| 262 | * |
|
| 263 | * @return boolean |
|
| 264 | */ |
|
| 265 | public static function isX20() |
|
| 266 | { |
|
| 267 | $x20 = false; |
|
| 268 | $xv = str_replace('XOOPS ', '', XOOPS_VERSION); |
|
| 269 | if (substr($xv, 2, 1) == '0') { |
|
| 270 | $x20 = true; |
|
| 271 | } |
|
| 272 | ||
| 273 | return $x20; |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|
| 277 | * Retreive an editor according to the module's option "form_options" |
|