Added check if curl is enabled
This commit is contained in:
16
lib/ajax.php
16
lib/ajax.php
@@ -35,12 +35,16 @@ if ($action == "newsfeed") {
|
|||||||
if (ini_get('allow_url_fopen')) {
|
if (ini_get('allow_url_fopen')) {
|
||||||
$news = simplexml_load_file($feed, null, LIBXML_NOCDATA);
|
$news = simplexml_load_file($feed, null, LIBXML_NOCDATA);
|
||||||
} else {
|
} else {
|
||||||
$ch = curl_init();
|
if (function_exists('curl_version')) {
|
||||||
curl_setopt($ch, CURLOPT_URL, $feed);
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($ch, CURLOPT_URL, $feed);
|
||||||
$output = curl_exec($ch);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
curl_close($ch);
|
$output = curl_exec($ch);
|
||||||
$news = simplexml_load_file(trim($output));
|
curl_close($ch);
|
||||||
|
$news = simplexml_load_file(trim($output));
|
||||||
|
} else {
|
||||||
|
$news = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($news !== false) {
|
if ($news !== false) {
|
||||||
|
|||||||
6
templates/Sparkle/assets/css/main.css
vendored
6
templates/Sparkle/assets/css/main.css
vendored
@@ -588,7 +588,7 @@ table thead:first-child th {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table tbody td {
|
table tbody td {
|
||||||
border-bottom:1px dotted #ccc;
|
border-bottom:1px solid #f1f2f3;
|
||||||
}
|
}
|
||||||
table tbody tr:last-child td {
|
table tbody tr:last-child td {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
@@ -604,7 +604,7 @@ table tbody tr:last-child td {
|
|||||||
|
|
||||||
.formtable tbody td {
|
.formtable tbody td {
|
||||||
border:0;
|
border:0;
|
||||||
border-bottom:1px dotted #ccc;
|
border-bottom:1px solid #f1f2f3;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -811,7 +811,7 @@ select[multiple="multiple"] {
|
|||||||
|
|
||||||
.dboarditem td,.dboarditemfull td {
|
.dboarditem td,.dboarditemfull td {
|
||||||
border-right:0;
|
border-right:0;
|
||||||
border-bottom:1px dotted #ccc;
|
border-bottom:1px solid #f1f2f3;
|
||||||
padding: 4px 0px 4px 8px;
|
padding: 4px 0px 4px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user