mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
better error checking
This commit is contained in:
parent
100909a910
commit
e6d119ea26
|
@ -31,12 +31,14 @@ if (!$user->isAdmin()) {
|
|||
|
||||
$v = new SeedDMS_Version;
|
||||
if(@ini_get('allow_url_fopen') == '1') {
|
||||
$lines = file('http://www.seeddms.org/latest', FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
|
||||
$lines = @file('http://www.seeddms.org/latest', FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);
|
||||
$versions = array();
|
||||
if($lines) {
|
||||
foreach($lines as $line) {
|
||||
$versions[] = explode(':', $line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'version'=>$v, 'availversions'=>$versions));
|
||||
|
|
Loading…
Reference in New Issue
Block a user