aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/testremote.php
blob: 10ea3075ed3d993c6e84a8a3666a493d067df2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */

$remote = $_GET['remote'];

if (file_get_contents('https://' . $remote . '/status.php')) {
	echo 'https';
} elseif (file_get_contents('http://' . $remote . '/status.php')) {
	echo 'http';
}else{
	echo 'false';
}