Changeset 98
- Timestamp:
- Jul 31, 2008, 4:13:02 PM (16 years ago)
- Location:
- devel/www
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/www/chat/irc_bot.php
r94 r98 1 1 <?php 2 2 3 // PHP IRC bot 4 // Based on HARVESTER IRC BOT by Harvie 3 include('../global.php'); 5 4 6 5 class IRCBot … … 10 9 var $Port = 6667; 11 10 var $Channel = "#zdechov"; 12 var $Nick = " BigBrother";11 var $Nick = "History"; 13 12 var $JokeFileName = "jokes.txt"; 14 13 var $File; … … 42 41 function Run() 43 42 { 43 global $Database; 44 44 45 while(!fwrite($this->File, '')) 45 46 { … … 70 71 } 71 72 73 // Log messages to database 74 if(strpos($Line, 'PRIVMSG') !== false) 75 { 76 $LineParts = explode(':', $Line); 77 $Text = $LineParts[2]; 78 $LineParts2 = explode(' ', $LineParts[1]); 79 $LineParts3 = explode('@', $LineParts2[0]); 80 $Host = $LineParts3[1]; 81 $LineParts4 = explode('!', $LineParts3[0]); 82 $Nick = $LineParts4[0]; 83 $Database->insert('ChatHistory', array('Nick' => $Nick, 'Text' => $Text, 'Host' => $Host, 'Time' => 'NOW()', 'RoomName' => 'Všichni')); 84 } 85 72 86 $Commands = explode(':', $Line); 73 87 foreach($Commands as $Index => $Item) … … 90 104 $this->Say('Ja jsem Harvester.'); 91 105 /* 92 irc_say( $sfp, " Harvester- Posle vizitku", $nick, $channel );106 irc_say( $sfp, "Bot - Posle vizitku", $nick, $channel ); 93 107 irc_say( $sfp, "hhelp - vypise tuto napovedu", $nick, $channel ); 94 108 irc_say( $sfp, "hsay:Message - Posle zpravu", $nick, $channel ); -
devel/www/code.php
r96 r98 560 560 { 561 561 if($code = array_search($string[$i].$string[($i + 1)], $coding)) 562 $string = substr($string, 0, $i).chr($code).substr($string, $i + 2);562 $string = substr($string, 0, $i).chr($code).substr($string, $i + 2); 563 563 } 564 564 return $string; -
devel/www/finance/bills.php
r87 r98 1 1 <?php 2 2 //include_once('global.php'); 3 include_once('code.php');4 3 5 4 class Bill extends Module -
devel/www/index.php
r96 r98 16 16 array('Seznam uživatelů', '/userlist.php', 'comp.gif'), 17 17 array('Seznam počítačů', '/hostlist.php', 'comp.gif'), 18 array('Historie SunriseChatu', '/sunrisechat/history.php', 'sunrisechat.gif', array('Sunrisechat', 'Display')),19 array('Webový SunriseChatu', '/sunrisechat/webchat.php', 'sunrisechat.gif', array('Sunrisechat', 'Webchat')),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'), 20 20 array('Diskusní fórum', '/forum/', 'discus.gif'), 21 21 array('WebMail', 'https://centrala.zdechov.net/cgi-bin/openwebmail/openwebmail.pl', 'openwebmail.gif'), -
devel/www/style.css
r96 r98 196 196 } 197 197 198 . SunriseChatHistory .Year198 .ChatHistory .Year 199 199 { 200 200 border-style: solid; … … 205 205 } 206 206 207 . SunriseChatHistory .Year .YearContent207 .ChatHistory .Year .YearContent 208 208 { 209 209 margin-left: 15px; … … 211 211 } 212 212 213 . SunriseChatHistory .Year .YearContent .Months213 .ChatHistory .Year .YearContent .Months 214 214 { 215 215 border-style: solid; … … 220 220 } 221 221 222 . SunriseChatHistory .Year .YearContent .Months span222 .ChatHistory .Year .YearContent .Months span 223 223 { 224 224 position: absolute; … … 226 226 } 227 227 228 . SunriseChatHistory .YearContent .Months span strong228 .ChatHistory .YearContent .Months span strong 229 229 { 230 230 border-style: solid; … … 234 234 } 235 235 236 . SunriseChatHistoryText236 .ChatHistoryText 237 237 { 238 238 font-size: small; -
devel/www/sunrisechat/history.php
r89 r98 2 2 3 3 include_once('../global.php'); 4 include_once('../style.php');5 include('../page.php');6 4 7 5 8 class SunriseChatHistory extends page6 class SunriseChatHistory extends Page 9 7 { 10 8 var $FullTitle = 'Výpis z historie SunriseChatu';
Note:
See TracChangeset
for help on using the changeset viewer.