Rev 754 | Rev 768 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 754 | Rev 755 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
35 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
36 | return; |
36 | return; |
37 | } |
37 | } |
38 | 38 | ||
39 | $out['text'] = '<p>'._L('Did you ever wonder what OIDplus would look like if it had been created in the era of MS-DOS, Windows 3.11, or Windows 95? Just download the ZIP files below and have a look!').'</p>'; |
39 | $out['text'] = '<p>'._L('Did you ever wonder what OIDplus would look like if it had been created in the era of MS-DOS, Windows 3.11, or Windows 95? Just download the ZIP files below and have a look!').'</p>'; |
- | 40 | ||
- | 41 | if (class_exists('ZipArchive')) { |
|
- | 42 | $out['text'] .= '<ul>'; |
|
40 | $out['text'] .= '<p><a href="'.OIDplus::webpath(__DIR__).'export_dos.php">'._L('Download OIDplus for DOS').'</a>, '._L('including your database (only OIDs)').'</p>'; |
43 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__).'export_dos.php">'._L('Download OIDplus for DOS').'</a>, '._L('including your database (only OIDs)').'</li>'; |
- | 44 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/252/oidplus_dos.zip">'._L('Download OIDplus for DOS').'</a>, '._L('without data').'</li>'; |
|
- | 45 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__).'export_win.php">'._L('Download OIDplus for Windows 3.11').'</a>, '._L('including your database (only OIDs)').'</li>'; |
|
- | 46 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/254/oidplus_win311.zip">'._L('Download OIDplus for Windows 3.11').'</a>, '._L('without data').'</li>'; |
|
41 | $out['text'] .= '<p><a href="'.OIDplus::webpath(__DIR__).'export_win.php">'._L('Download OIDplus for Windows 3.11 or Windows 95').'</a>, '._L('including your database (only OIDs)').'</p>'; |
47 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__).'export_win.php">'._L('Download OIDplus for Windows 95 or later').'</a>, '._L('including your database (only OIDs)').'</li>'; |
- | 48 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/253/oidplus_win95.zip">'._L('Download OIDplus for Windows 95 or later').'</a>, '._L('without data').'</li>'; |
|
- | 49 | $out['text'] .= '</ul>'; |
|
42 | $out['text'] .= '<p>'._L('Please note that the download might be delayed since your OID database is exported and added to the ZIP file.').'</p>'; |
50 | $out['text'] .= '<p>'._L('Please note that the download might be delayed since your OID database is exported and added to the ZIP file.').'</p>'; |
- | 51 | } else { |
|
- | 52 | $out['text'] .= '<ul>'; |
|
- | 53 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/252/oidplus_dos.zip">'._L('Download OIDplus for DOS').'</a>, '._L('without data').'</li>'; |
|
- | 54 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/254/oidplus_win311.zip">'._L('Download OIDplus for Windows 3.11').'</a>, '._L('without data').'</li>'; |
|
- | 55 | $out['text'] .= '<li><a href="https://www.viathinksoft.de/download/253/oidplus_win95.zip">'._L('Download OIDplus for Windows 95 or later').'</a>, '._L('without data').'</li>'; |
|
- | 56 | $out['text'] .= '</ul>'; |
|
- | 57 | $out['text'] .= '<p><font color="red">'._L('The PHP extension "ZipArchive" needs to be installed to create a ZIP archive with an included database. Otherwise, you can just download the plain program without data.').'</font></p>'; |
|
- | 58 | } |
|
43 | } |
59 | } |
44 | } |
60 | } |
45 | 61 | ||
46 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
62 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
47 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
63 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |