Редакция 247 | Редакция 282 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 247 | Редакция 278 | ||
---|---|---|---|
Строка 48... | Строка 48... | ||
48 | function getThemeName($link,$dblink) { //TODO remove links |
48 | function getThemeName($link,$dblink) { //TODO remove links |
49 | $result=$link->getSetting('theme',$dblink); |
49 | $result=$link->getSetting('theme',$dblink); |
50 | if (!file_exists('./themes/styles/'.$result.'/style.css')) $result='default'; |
50 | if (!file_exists('./themes/styles/'.$result.'/style.css')) $result='default'; |
51 | return $result; |
51 | return $result; |
52 | }
|
52 | }
|
- | 53 | function getIconSetName($link,$dblink) { //TODO remove links |
|
- | 54 | $result=$link->getSetting('icons',$dblink); |
|
- | 55 | if (!file_exists('./themes/icons/'.$result.'/edit.png')) $result='tango'; |
|
- | 56 | return $result; |
|
- | 57 | }
|
|
53 | function setTheme($newtheme,$dblink){ |
58 | function setTheme($newtheme,$dblink){ |
54 | $req =& $dblink->query("UPDATE settings SET optvalue='$newtheme' WHERE opt='theme'"); |
59 | $req =& $dblink->query("UPDATE settings SET optvalue='$newtheme' WHERE opt='theme'"); |
55 | }
|
60 | }
|
56 | function setIcon($newtheme,$dblink){ |
61 | function setIcon($newtheme,$dblink){ |
57 | $req =& $dblink->query("UPDATE settings SET optvalue='$newtheme' WHERE opt='icons'"); |
62 | $req =& $dblink->query("UPDATE settings SET optvalue='$newtheme' WHERE opt='icons'"); |