public static function ajax_checkFalconHtaccess_callback() { if (wfUtils::isNginx()) { return array('nginx' => 1); } $file = wfCache::getHtaccessPath(); if (!$file) { return array('err' => "We could not find your .htaccess file to modify it.", 'code' => wfCache::getHtaccessCode()); } $fh = @fopen($file, 'r+'); if (!$fh) { $err = error_get_last(); return array('err' => "We found your .htaccess file but could not open it for writing: " . $err['message'], 'code' => wfCache::getHtaccessCode()); } return array('ok' => 1); }