Ticket #366: meta-366.diff
| File meta-366.diff, 7.1 KB (added by , 12 years ago) |
|---|
-
irc-logger/public_html/chanlog.php
3 3 require dirname(__FILE__) . '/header.php'; 4 4 5 5 if ( isset( $_GET['search'] ) ) { 6 echo "<h1>#" . htmlentities( $_GET['channel'] ) . " search results for "" . htmlentities( $_GET['search'] ) . ""</h1> <hr />";6 echo "<h1>#" . htmlentities( $_GET['channel'] ) . " search results for "" . htmlentities( $_GET['search'] ) . ""</h1>"; 7 7 $rx = $_GET['search']; 8 8 foreach ( search_log( '%' . $_GET['search'] . '%' ) as $row ) { 9 9 display_log_row( $row, $rx ); 10 10 } 11 11 } elseif ( isset( $_GET['day'] ) ) { 12 echo "<h1>#" . htmlentities( $_GET['channel'] ) . " logs for " . htmlentities( $_GET['day'] ) . "</h1> <hr />";12 echo "<h1>#" . htmlentities( $_GET['channel'] ) . " logs for " . htmlentities( $_GET['day'] ) . "</h1>"; 13 13 show_day_log( $_GET['day'] ); 14 14 } 15 15 -
irc-logger/public_html/header.php
22 22 ?><html> 23 23 <head> 24 24 <style> 25 body { font-family: 'Lucida Grande', Arial, sans-serif; font-size: 80%; } 26 body div div { -moz-border-radius: 10px; -webkit-border-radius: 10px; 27 padding: 10px !important; } 28 h1 { text-align: center; font-family: Georgia, 'Times New Roman', 29 serif; color: #21759B; } 25 body { font-family: 'Open Sans', sans-serif; font-size: 80%; margin: 0; } 26 .header-controls { background: #222; padding: 12px; color: #eee; } 27 body div div { float: left; padding: 10px; height: 26px; } 28 h1 { text-align: center; font-family: 'Open Sans', sans-serif; color: #555; font-size: 28px; line-height: 1.5em; text-shadow: #fff 0px 1px 0px; margin: 0; padding: 8px 0 10px 0; width: 100%; background: #f7f7f7; border-bottom: 1px solid #dfdfdf; } 30 29 h1 span.highlight { background: white; padding: 0; } 31 30 hr { color: #ddd; } 31 a { color: #0074a2; } 32 a:hover, a:active, a:focus, a:visited { color: #2ea2cc; } 32 33 span.highlight { background: yellow; padding-left: 3px; padding-right: 33 34 3px; padding-top: 1px; padding-bottom: 1px;} 34 35 ul.entry { list-style: none; margin: 0; } 35 36 ul.entry li { float: left; margin-right: 3px; padding: 4px 3px; } 36 ul:hover { background: # fff5af; }37 ul:hover { background: #e4f2fd; } 37 38 ul.entry li.msg:hover { } 38 39 ul.entry li.ts { font-size: 70%; float: right; margin-right: 40px; } 39 40 ul.entry li.ts a { text-decoration: none; color: #808080; } 40 ul.entry li.nick a { color: # f90; text-decoration: none; font-weight: bold; float: left; }41 ul.entry li.nick a { color: #0074a2; text-decoration: none; font-weight: bold; float: left; } 41 42 ul.entry li.msg { float: none; } 43 @-ms-viewport { width: device-width; } 44 @viewport { width: device-width; } 45 input[type="submit"] { border: 1px solid #ccc; background: #f7f7f7; color: #555; -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08); 46 border-radius: 3px; height: 28px; font-size: 13px; cursor: pointer; padding: 0 10px 1px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } 47 input[type="submit"]:hover { background: #fafafa; border-color: #999; color: #222; } 48 input[type="submit"]:active { background: #eee; border-color: #999; color: #333; -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); } 49 select { border: none; height: 27px; vertical-align: top; } 50 input[type="text"] { border: none; height: 27px; padding: 0 5px; } 42 51 </style> 52 <link href="//fonts.googleapis.com/css?family=Open+Sans:400&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic" rel="stylesheet" type="text/css"> 53 <meta name="viewport" content="width=device-width"> 43 54 <script type="text/javascript" src="searchhi_slim.js"></script> 44 55 </head> 45 56 <body> 46 <div >57 <div class="header-controls"> 47 58 48 <div style="float: left; padding: 2px; border: 1px solid #aaa; background: #ddd; margin: 2px; height: 22px;">59 <div> 49 60 <?php if ( $db ) { ?> 50 61 <strong><u>#<?php echo htmlentities( $channel ); ?></u></strong> 51 62 <?php } else { ?> … … 54 65 </div> 55 66 56 67 <?php if ( $db ) { ?> 57 <div style="float: left; padding: 2px; margin: 2px; height: 22px;"> actions: </div>68 <div> actions: </div> 58 69 <?php } ?> 59 70 60 <div style="float: left; padding: 2px; border: 1px solid #aaa; background: #ddd; margin: 2px; height: 22px;">71 <div> 61 72 <form method="GET"> 62 73 <select name="channel"> 63 74 <?php … … 82 93 83 94 <?php if ( $db ) { ?> 84 95 85 <div style="float: left; padding: 2px; margin: 2px; height: 22px;"> or </div>96 <div> or </div> 86 97 87 <div style="float: left; padding: 2px; border: 1px solid #aaa; background: #ddd; margin: 2px; height: 22px;">98 <div> 88 99 <form method="GET"/> 89 100 <input type="hidden" name="channel" value="<?php echo htmlentities($channel); ?>" /> 90 101 <select name="day" id="day" /> … … 105 116 </form> 106 117 </div> 107 118 108 <div style="float: left; padding: 2px; margin: 2px; height: 22px;"> or </div>119 <div> or </div> 109 120 110 <div style="float: left; padding: 2px; border: 1px solid #aaa; background: #ddd; margin: 2px; height: 22px;">121 <div> 111 122 <form method="GET"/> 112 123 <input type="hidden" name="channel" value="<?php echo htmlentities($channel); ?>" /> 113 124 <input type="text" name="search" value="<?php if ( isset( $_GET['search'] ) ) echo htmlentities( $_GET['search'] ); ?>"/> … … 122 133 <?php } ?> 123 134 124 135 <br style="clear: both;" /> 125 <hr />126 136 </div> -
irc-logger/public_html/index.php
1 1 <html> 2 2 <head> 3 3 <style> 4 body { padding: 30px; }5 a { color: steelblue; font-size: 1.5em; text-decoration: none; }4 body { font-family: "Open Sans", sans-serif; padding: 0; margin: 0; } 5 a { color: #0074a2; font-size: 1.5em; text-decoration: none; } 6 6 a:hover { text-decoration: underline; } 7 h1 { font-size: 26px; text-align: center; } 7 8 ul { list-style: none; margin: none; padding: none; } 8 li { background: #ccc; border: 1px solid #aaa; margin: 5px; padding: 3px; width: 360px; text-align: center;}9 li { background: #ccc; border: 1px solid #aaa; margin: 5px; padding: 3px; max-width: 360px; text-align: center;} 9 10 li:hover { background: #ddd; } 11 @-ms-viewport { width: device-width; } 12 @viewport { width: device-width; } 10 13 </style> 14 <link href="//fonts.googleapis.com/css?family=Open+Sans:400&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic" rel="stylesheet" type="text/css"> 15 <meta name="viewport" content="width=device-width"> 11 16 </head> 12 17 <body> 13 <div style="margin-left: auto; margin-right: auto; width: 460px;">18 <div style="margin-left: auto; margin-right: auto; width: 100%; max-width: 460px; padding: 30px 0;"> 14 19 <h1>Please Choose A Logged Channel</h1> 15 20 <ul> 16 21 <?php