- Timestamp:
- Jan 5, 2009, 7:40:40 AM (16 years ago)
- Location:
- devel/www
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/aktuality/index.php
r100 r131 83 83 if($this->System->Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category)) 84 84 { 85 86 85 //print_r($_FILES); 87 86 // Process uploaded file … … 175 174 while($Row = $DbResult->fetch_array()) 176 175 { 177 $Output .= '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1; border-bottom-style: solid; border-bottom-color: silver;"><strong>'.$Row['title'].'('.HumanDate($Row['date']).', '.$Row['Name'].$Row['author'].')</strong>';176 $Output .= '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1; border-bottom-style: solid; border-bottom-color: silver;"><strong><a href="?action=view&id='.$Row['id'].'">'.$Row['title'].'</a> ('.HumanDate($Row['date']).', '.$Row['Name'].$Row['author'].')</strong>'; 178 177 if($this->System->Modules['User']->User['Id'] == $Row['User']) 179 { 178 { 180 179 $Output .= ' <a href="index.php?action=del&category='.$Category.'&id='.$Row['id'].'">Smazat</a>'; 181 180 $Output .= ' <a href="index.php?action=edit&category='.$Category.'&id='.$Row['id'].'">Editovat</a>'; … … 183 182 $Output .= '</div>'.$Row['content'].'<br />'; 184 183 if($Row['enclosure'] != '') 185 { 184 { 186 185 $Output .= '<br />Přílohy: '; 187 186 $Enclosures = explode(';', $Row['enclosure']); -
devel/www/chat/history.php
r98 r131 60 60 } 61 61 $Output .= '</span></div>'; 62 } else $Output .= '<span><a href="?month='.$Month.'">'.$MonthNames[$Month].'</a></span> '; 62 } else $Output .= '<span><a href="?month='.$Month.'">'.$MonthNames[$Month].'</a></span> '; 63 63 } 64 64 $Output .='</div></div>'; … … 66 66 } 67 67 $Output .= '</div><div></div>'; 68 68 69 69 $DbResult = $this->Database->select('ChatHistory', 'Nick, Color, Text, UNIX_TIMESTAMP(Time)', "RoomType = 0 AND Time > '".$Date." 00:00:00' AND Time < '".$Date." 23:59:59' ORDER BY Time DESC"); 70 70 $Output .= '<div class="ChatHistoryText">'; -
devel/www/database.php
r101 r131 36 36 $Name .= ',`'.$Key.'`'; 37 37 if($Value == 'NOW()') $Values .= ",".$Value; 38 else if($Value == 'UUID()') $Values .= ",".$Value; 38 39 else $Values .= ",'".$Value."'"; 39 40 } -
devel/www/finance/inventory.php
r87 r131 11 11 { 12 12 $TotalPrice = 0; 13 $Output = 'Výpis skladových zásob:<br><table style="font-size: smaller;" border="1" cellspacing="0" cellpadding="3">';13 $Output = 'Výpis skladových zásob:<br><table class="WideTable">'; 14 14 $Output .= '<tr><th>Název</th><th>Datum<br />zakoupení</th><th>Cena [Kč]</th><th>Počet</th><th>Cena<br /> dohromady [Kč]</th></tr>'; 15 15 $DbResult = $this->Database->query("SELECT * FROM network_devices WHERE used=2"); -
devel/www/global.php
r104 r131 8 8 include('config.php'); 9 9 include('database.php'); 10 include('error.php');10 //include('error.php'); 11 11 include_once('code.php'); 12 12 $Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); … … 61 61 list($Usec, $Sec) = explode(" ", microtime()); 62 62 return ((float)$Usec + (float)$Sec); 63 } 64 65 $UnitNames = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB'); 66 67 function HumanSize($Value) 68 { 69 global $UnitNames; 70 71 $UnitIndex = 0; 72 while($Value > 1024) 73 { 74 $Value = round($Value / 1024, 3); 75 $UnitIndex++; 76 } 77 return($Value.' '.$UnitNames[$UnitIndex]); 63 78 } 64 79 -
devel/www/index.php
r107 r131 17 17 array('Seznam počítačů', '/hostlist.php', 'comp.gif'), 18 18 array('Historie chatu', '/chat/history.php', 'sunrisechat.gif', array('Chat', 'Display')), 19 array('Webový chat', 'http://embed.mibbit.com/?server=game.zdechov.net%3A6667&channel=%23zdechov&forcePrompt=true&charset= windows-1250', 'sunrisechat.gif'),19 array('Webový chat', 'http://embed.mibbit.com/?server=game.zdechov.net%3A6667&channel=%23zdechov&forcePrompt=true&charset=utf-8', 'sunrisechat.gif'), 20 20 array('Diskusní fórum', '/forum/', 'discus.gif'), 21 21 array('WebMail', 'https://centrala.zdechov.net/cgi-bin/openwebmail/openwebmail.pl', 'openwebmail.gif'), … … 83 83 return($Result); 84 84 } 85 85 86 86 function InfoBar() 87 87 { -
devel/www/page.php
r107 r131 92 92 'jidelna' => array('', 93 93 'index.php' => 'Jídelníček', 94 'menuedit.php' => 'Editace jídelníčku', 94 'menuedit.php' => 'Editace jídelníčku', 95 95 ), 96 96 'backup' => array('', 97 'index.php' => 'Nastavení zálohování', 97 'index.php' => 'Nastavení zálohování', 98 98 ), 99 99 'mapa.php' => 'Mapa webu', … … 138 138 } 139 139 $Navigation = substr($Navigation, 0, -6); 140 140 141 141 $Output = '<?xml version="1.0" encoding="'.$this->System->Config['Web']['Charset'].'"?>'."\n". 142 142 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. … … 148 148 <div id="Title">'.$Title.'</div> 149 149 <div class="Navigation"><span class="MenuItem"><strong>Navigace >></strong> '.$Navigation.'</span><div class="MenuItem2">'; 150 if($this->System->Modules['User']->User['Id'] == $this->System->Modules['User']->AnonymousUserId) 151 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=LoginForm">Přihlášení</a> <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserRegister">Registrace</a>'; 152 else $Output .= $this->System->Modules['User']->User['Name'].' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=Logout">Odhlásit</a>'; 150 if($this->System->Config['Web']['UserSupport'] == 1) 151 { 152 if($this->System->Modules['User']->User['Id'] == $this->System->Modules['User']->AnonymousUserId) 153 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=LoginForm">Přihlášení</a> <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserRegister">Registrace</a>'; 154 else $Output .= $this->System->Modules['User']->User['Name'].' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=Logout">Odhlásit</a>'; 155 } else $Output .= ' '; 153 156 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>'; 154 157 $Output .= '</div></div>'; … … 160 163 $Time = floor((GetMicrotime() - $this->Time_Start) * 100) / 100; 161 164 $Output = '<div id="Footer"> 162 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | Vygenerováno za '.$Time.' s | Verze: 1.1 | Úprava skriptu: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i></div></body></html>';165 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | Vygenerováno za '.$Time.' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' |</i></div></body></html>'; 163 166 return($Output); 164 167 } -
devel/www/style.css
r100 r131 14 14 border-style: solid; 15 15 border-color: silver; 16 padding: 0px 5px 0px 5px;16 padding: 0px 1px 0px 1px; 17 17 } 18 18 -
devel/www/user.php
r109 r131 62 62 63 63 // Odeber neaktivní uživatele 64 $DbResult = $this->Database->select('UserOnline', ' User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.USER_TIMEOUT.' SECOND)');64 $DbResult = $this->Database->select('UserOnline', 'Id, User', 'ActivityTime < DATE_SUB(NOW(), INTERVAL '.USER_TIMEOUT.' SECOND)'); 65 65 while($DbRow = $DbResult->fetch_array()) 66 66 { -
devel/www/webcam/webcam.php
r87 r131 4 4 { 5 5 var $ImageFileName = 'webcam.jpg'; 6 6 7 7 function ShowImage() 8 8 { 9 9 global $Config; 10 return('<a href="'.$this->System->Config['Web']['RootFolder'].'/webcam/"><img alt="Webkamera školní hřiště" width="1 60" height="120" src="'.$this->System->Config['Web']['RootFolder'].'/webcam/'.$this->ImageFileName.'" /></a>');10 return('<a href="'.$this->System->Config['Web']['RootFolder'].'/webcam/"><img alt="Webkamera školní hřiště" width="140" height="105" src="'.$this->System->Config['Web']['RootFolder'].'/webcam/'.$this->ImageFileName.'" /></a>'); 11 11 } 12 12 }
Note:
See TracChangeset
for help on using the changeset viewer.