Rev 768 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 768 | Rev 800 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | 26 | ||
27 | public function gui($id, &$out, &$handled) { |
27 | public function gui($id, &$out, &$handled) { |
28 | if ($id === 'oidplus:nostalgia') { |
28 | if ($id === 'oidplus:nostalgia') { |
29 | $handled = true; |
29 | $handled = true; |
30 | $out['title'] = _L('Nostalgia'); |
30 | $out['title'] = _L('Nostalgia'); |
31 | $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : ''; |
31 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
32 | 32 | ||
33 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
33 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
34 | $out['icon'] = 'img/error_big.png'; |
34 | $out['icon'] = 'img/error.png'; |
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 | 40 | ||
41 | if (class_exists('ZipArchive')) { |
41 | if (class_exists('ZipArchive')) { |
42 | $out['text'] .= '<ul>'; |
42 | $out['text'] .= '<ul>'; |
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>'; |
43 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__,true).'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>'; |
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>'; |
45 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__,true).'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>'; |
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>'; |
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>'; |
47 | $out['text'] .= '<li><a href="'.OIDplus::webpath(__DIR__,true).'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>'; |
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>'; |
49 | $out['text'] .= '</ul>'; |
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>'; |
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 { |
51 | } else { |
52 | $out['text'] .= '<ul>'; |
52 | $out['text'] .= '<ul>'; |
Line 60... | Line 60... | ||
60 | } |
60 | } |
61 | 61 | ||
62 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
62 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
63 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
63 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
64 | 64 | ||
65 | if (file_exists(__DIR__.'/treeicon.png')) { |
65 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
66 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
66 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
67 | } else { |
67 | } else { |
68 | $tree_icon = null; // default icon (folder) |
68 | $tree_icon = null; // default icon (folder) |
69 | } |
69 | } |
70 | 70 | ||
71 | $json[] = array( |
71 | $json[] = array( |