|
@@ 163-170 (lines=8) @@
|
| 160 |
|
break; |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if (isset($data['activity']) && $data['activity'] === "extension") { |
| 164 |
|
if (extension_loaded($data['task'])) { |
| 165 |
|
echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 166 |
|
} else { |
| 167 |
|
echo '[{"error" : " Extension '.$data['task'].' is not loaded!", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 168 |
|
} |
| 169 |
|
break; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (isset($data['activity']) && $data['activity'] === "function") { |
| 173 |
|
if (function_exists($data['task'])) { |
|
@@ 172-179 (lines=8) @@
|
| 169 |
|
break; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (isset($data['activity']) && $data['activity'] === "function") { |
| 173 |
|
if (function_exists($data['task'])) { |
| 174 |
|
echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 175 |
|
} else { |
| 176 |
|
echo '[{"error" : " Function '.$data['task'].' is not available!", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 177 |
|
} |
| 178 |
|
break; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
if (isset($data['activity']) && $data['activity'] === "version") { |
| 182 |
|
if (version_compare(phpversion(), '5.5.0', '>=')) { |