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