config
11 years ago
languages
10 years ago
scripts
11 years ago
styles
11 years ago
cacert.pem
11 years ago
class-tiny-compress-curl.php
10 years ago
class-tiny-compress-fopen.php
10 years ago
class-tiny-compress.php
10 years ago
class-tiny-exception.php
11 years ago
class-tiny-metadata.php
10 years ago
class-tiny-notices.php
11 years ago
class-tiny-php.php
11 years ago
class-tiny-plugin.php
10 years ago
class-tiny-settings.php
10 years ago
class-tiny-wp-base.php
11 years ago
class-tiny-php.php
30 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Tiny Compress Images - WordPress plugin. |
| 4 | * Copyright (C) 2015 Voormedia B.V. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the Free |
| 8 | * Software Foundation; either version 2 of the License, or (at your option) |
| 9 | * any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 14 | * more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, write to the Free Software Foundation, Inc., 51 |
| 18 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | class Tiny_PHP { |
| 22 | public static function is_curl_available() { |
| 23 | return extension_loaded('curl'); |
| 24 | } |
| 25 | |
| 26 | public static function is_fopen_available() { |
| 27 | return ini_get('allow_url_fopen'); |
| 28 | } |
| 29 | } |
| 30 |