* *
* -------------------------------------------------------------------- *
* File : what-extentions.php *
* *
* -------------------------------------------------------------------- *
* File : what-extentions.php *
// Get response from our server
$response = sendGetRequest('check-themes.php');
// Are theme_check found?
// Get response from our server
$response = sendGetRequest('check-themes.php');
// Are theme_check found?
// Ok, mark found and create the array
$themes = array(
'fname' => array(), // File names
// Ok, mark found and create the array
$themes = array(
'fname' => array(), // File names
$value = str_replace("\n", '', $value); $ver = '';
// Leave loop when data is invalid or EOF?
$value = str_replace("\n", '', $value); $ver = '';
// Leave loop when data is invalid or EOF?
- if ((substr($value, 0, 6) == "theme-") && (substr($value, -4) == ".zip")) {
+ if ((substr($value, 0, 6) == 'theme-') && (substr($value, -4) == '.zip')) {
// Extract name and version
$name = substr($value, 6, -4);
$ver = trim(substr($response[$idx + 3], 4));
// Extract name and version
$name = substr($value, 6, -4);
$ver = trim(substr($response[$idx + 3], 4));