|
@@ 120-127 (lines=8) @@
|
| 117 |
|
break; |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
if (isset($data['activity']) && $data['activity'] === "extension") { |
| 121 |
|
if (extension_loaded($data['task'])) { |
| 122 |
|
echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 123 |
|
} else { |
| 124 |
|
echo '[{"error" : " Extension '.$data['task'].' is not loaded!", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 125 |
|
} |
| 126 |
|
break; |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
if (isset($data['activity']) && $data['activity'] === "function") { |
| 130 |
|
if (function_exists($data['task'])) { |
|
@@ 129-136 (lines=8) @@
|
| 126 |
|
break; |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
if (isset($data['activity']) && $data['activity'] === "function") { |
| 130 |
|
if (function_exists($data['task'])) { |
| 131 |
|
echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 132 |
|
} else { |
| 133 |
|
echo '[{"error" : " Function '.$data['task'].' is not available!", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]'; |
| 134 |
|
} |
| 135 |
|
break; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if (isset($data['activity']) && $data['activity'] === "version") { |
| 139 |
|
if (version_compare(phpversion(), '5.5.0', '>=')) { |