lilalo
changeset 113:8287cb3530de
sever files added
author | igor |
---|---|
date | Sun Mar 09 02:34:52 2008 +0200 (2008-03-09) |
parents | da65f1cbaf3a |
children | 658b4ea105c1 |
files | l3-upload l3files/error.png l3files/folder.gif l3files/folder.up.gif l3files/l3.css |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/l3-upload Sun Mar 09 02:34:52 2008 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +#!/usr/bin/perl 1.5 +# 1.6 + 1.7 +use CGI; 1.8 +$upload_dir = "/var/www/xguru/l3shot"; 1.9 +$query = new CGI; 1.10 + 1.11 +$filename = $query->param("photo"); 1.12 +$filename =~ s/.*[\/\\](.*)/$1/; 1.13 +$upload_filehandle = $query->upload("photo"); 1.14 + 1.15 +my $convert=""; 1.16 +if ($filename =~ s/.xwd$/.png/g) { 1.17 + $convert="|xwdtopnm|pnmtopng"; 1.18 +} 1.19 + 1.20 +open UPLOADFILE, "$convert>$upload_dir/$filename"; 1.21 +binmode UPLOADFILE; 1.22 +while ( <$upload_filehandle> ) 1.23 +{ 1.24 + print UPLOADFILE; 1.25 +} 1.26 + 1.27 +close UPLOADFILE; 1.28 + 1.29 +print $query->header ( ); 1.30 +print <<END_HTML; 1.31 +Upload complete 1.32 +END_HTML 1.33 + 1.34 +
2.1 Binary file l3files/error.png has changed
3.1 Binary file l3files/folder.gif has changed
4.1 Binary file l3files/folder.up.gif has changed
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/l3files/l3.css Sun Mar 09 02:34:52 2008 +0200 5.3 @@ -0,0 +1,342 @@ 5.4 +h1,h2,h3,h4 { 5.5 + color: #485c9f; 5.6 + padding-top: 10pt; 5.7 + padding-bottom: 0pt; 5.8 + padding-left: 5pt; 5.9 + margin-left: 0pt; 5.10 + font-family: sans-serif; 5.11 + /*border: thin solid gray;*/ 5.12 +} 5.13 + 5.14 +a { 5.15 + padding-left: 3pt; 5.16 + padding-right: 3pt; 5.17 + text-decoration: none; 5.18 +} 5.19 + 5.20 +a:hover { 5.21 + background-color: #eeeecc; 5.22 +} 5.23 + 5.24 +body { 5.25 + padding-left: 10pt; 5.26 + font-family: sans-serif; 5.27 +} 5.28 + 5.29 +tr.table_header { 5.30 + background-color : #98bcef; 5.31 + font-weight: bold; 5.32 + font-size: 105%; 5.33 +} 5.34 + 5.35 +td 5.36 +{ 5.37 + padding-left:5pt; 5.38 + padding-right:5pt; 5.39 + 5.40 + margin-left:0pt; 5.41 + margin-right:0pt; 5.42 +} 5.43 + 5.44 +.toc { 5.45 + border: 1px solid #aaa; 5.46 + background-color: #f9f9f9; 5.47 + padding: 10pt; 5.48 + padding-left: 0pt; 5.49 + padding-right: 15pt; 5.50 + font-size: 95%; 5.51 +} 5.52 + 5.53 +.files_toc { 5.54 + padding : 10pt; 5.55 +} 5.56 +.toc_title { 5.57 + font-weight: bold; 5.58 + text-align: center; 5.59 +} 5.60 + 5.61 +.cline, .output 5.62 + { 5.63 + margin : 0px 0px 0px 0em; 5.64 + padding : 0px 0px 0px 0px; 5.65 + vertical-align : top; 5.66 + /*display:inline;*/ 5.67 +} 5.68 + 5.69 +.cline 5.70 +{ font-weight : bold; } 5.71 + 5.72 +.wrong_cline, .wrong_root_cline, 5.73 +.mistyped_cline, .mistyped_root_cline 5.74 + { 5.75 + /* 5.76 + color : #ee7777; 5.77 + */ 5.78 + /* color : #aa5555; */ 5.79 + } 5.80 +.wrong_output, .wrong_root_output, 5.81 +.mistyped_output, .mistyped_root_output 5.82 + { 5.83 + /* 5.84 + font-size : 80%; 5.85 + color : #cc6666; 5.86 + */ 5.87 + } 5.88 + 5.89 +.cblock_mistyped, 5.90 +.cblock_mistyped_root 5.91 + { 5.92 + text-decoration : line-through; 5.93 + } 5.94 + 5.95 +.cblock_interrupted > .output, 5.96 +.cblock_interrupted_root > .output 5.97 + { 5.98 + color : #aaaaaa; 5.99 + } 5.100 + 5.101 +.cblock_interrupted > .cline 5.102 +.cblock_interrupted_root > .cline 5.103 + { 5.104 + color : #777777; 5.105 + } 5.106 + 5.107 + 5.108 +.cblock_normal_root, 5.109 +.cblock_wrong_root, 5.110 +.cblock_mistyped_root, 5.111 +.cblock_interrupted_root, 5.112 +.cblock_tab_root 5.113 + { 5.114 + border-left : #ff0000 solid thin; 5.115 + } 5.116 + 5.117 +.command { 5.118 + margin : 0pt 0pt 0pt 0pt; 5.119 + padding : 0pt 0pt 0pt 0pt; 5.120 + /*border : thin solid gray;*/ 5.121 + } 5.122 + 5.123 +.with_hint { 5.124 + background : #f9feff; 5.125 +} 5.126 + 5.127 +.without_hint { 5.128 + background : #fff9f9; 5.129 +} 5.130 + 5.131 +.note { 5.132 + /* 5.133 + color : black; 5.134 + background : #d8fcff; 5.135 + margin : 12px 12px 12px 12px; 5.136 + padding : 6px 6px 6px 6px; 5.137 + border-style : dashed; 5.138 + border-width : thin; 5.139 + border-color : #a8eaff; 5.140 + vertical-align : top; 5.141 + */ 5.142 + color : black; 5.143 + background : #d8f0ff; 5.144 + margin : 2px 12px 12px 12px; 5.145 + padding : 6px 6px 6px 6px; 5.146 + border-style : dotted; 5.147 + border-width : thin; 5.148 + border-color : #687cbf; 5.149 + vertical-align : top; 5.150 +} 5.151 + 5.152 +.note_title,.note_text,.note_search 5.153 + { 5.154 + color : black; 5.155 + margin : 0px 0px 0px 0px; 5.156 + padding : 0px 0px 0px 0px; 5.157 + vertical-align : top; 5.158 + } 5.159 +.note_title { 5.160 + font-size : 120%; 5.161 + font-family : sans-serif; 5.162 + padding-top : 2pt; 5.163 + padding-bottom : 2pt; 5.164 + } 5.165 +.note_text { 5.166 + font-family : sans-serif; 5.167 + font-size : 100%; 5.168 + } 5.169 +.note_search { text-align : right; } 5.170 + 5.171 + 5.172 +.diff { 5.173 + color : black; 5.174 + background : #fdffcd; 5.175 + margin : 16px 16px 16px 16px; 5.176 + padding : 6px 6px 6px 6px; 5.177 + border-style : dashed; 5.178 + border-width : thin; 5.179 +} 5.180 + 5.181 +.ttychange { 5.182 + color : #9a9a9a; 5.183 + background : #fafafa; 5.184 + margin : 0em 0px 0pt 0px; 5.185 + padding : 0em 0pt 0em 0pt; 5.186 + vertical-align : top; 5.187 + font-family : monospace; 5.188 + min-width: 5em; 5.189 + position : relative; 5.190 + left : 0em; 5.191 + border-top : thin dotted #cccccc; 5.192 + text-align : right; 5.193 + font-size : 50%; 5.194 +} 5.195 + 5.196 +.time { 5.197 + color : #999999; 5.198 + margin : 0px 0px 0px 0px; 5.199 + padding : 2pt 1pt 0px 10pt; 5.200 + vertical-align : top; 5.201 + font-size : 80%; 5.202 + width : 5em; 5.203 + float : left; 5.204 +/* height : 100%; */ 5.205 +/* border : thin solid gray; */ 5.206 +} 5.207 + 5.208 +.cblock, 5.209 +.cblock_normal, 5.210 +.cblock_wrong, 5.211 +.cblock_mistyped, 5.212 +.cblock_interrupted, 5.213 +.cblock_tab, 5.214 +.cblock_normal_root, 5.215 +.cblock_wrong_root, 5.216 +.cblock_mistyped_root, 5.217 +.cblock_interrupted_root, 5.218 +.cblock_tab_root 5.219 +{ 5.220 + margin : 0px 0px 0px 0em; 5.221 + padding : 0px 0px 0px 5pt; 5.222 + vertical-align : top; 5.223 +/* border : thin solid blue; */ 5.224 +} 5.225 + 5.226 +.visibility_form { 5.227 + position : fixed; 5.228 + bottom: 10; right: 10; 5.229 + z-index : 5; 5.230 + color : #9a9a9a; 5.231 + background : #e7e7e7; 5.232 + margin : 0px 0px 0px 0px; 5.233 + padding : 0px 0px 0px 0px; 5.234 + vertical-align : top; 5.235 + font-size : 80%; 5.236 + font-family : sans-serif; 5.237 +} 5.238 +.visibility_form > .header { 5.239 + font-weight: bold; 5.240 +} 5.241 +.visibility_form > .window_controls { 5.242 + position : absolute; 5.243 + right : 1pt; 5.244 +} 5.245 + 5.246 +.new_commands_table { 5.247 + padding : 0px 0px 0px 0px; 5.248 + margin : 20px 60px 60px 20px; 5.249 + background-color: #f9f9f9; 5.250 +} 5.251 + 5.252 +.new_commands_header { 5.253 + font-weight: bold; 5.254 + background-color: #e9e9e9; 5.255 +} 5.256 + 5.257 +.new_commands_caption { 5.258 + font-style: italic; 5.259 + background-color: #ffffff; 5.260 +} 5.261 + 5.262 +.err_box { 5.263 + color : white; 5.264 + background : red; 5.265 + font-weight : bold; 5.266 + font-size : 70%; 5.267 +} 5.268 +.filename, .file_navigation { 5.269 + background : #f7f7ba; 5.270 + padding : 1ex; 5.271 + padding-bottom: 1pt; 5.272 + display : inline; 5.273 +} 5.274 + 5.275 +.filename { 5.276 + font-weight : bold; 5.277 + margin : 20pt 0pt 0pt 10pt; 5.278 +} 5.279 + 5.280 +.file_navigation { 5.281 + font-weight : bold; 5.282 + margin : 20pt 10pt 0pt 0pt; 5.283 +} 5.284 + 5.285 +.filedata { 5.286 + padding: 5pt 10pt 5pt 10pt; 5.287 + margin: 0pt 10pt 30pt 10pt; 5.288 + border-left: 2pt; 5.289 + border-right: 2pt; 5.290 + border-bottom: 2pt; 5.291 + border-style: solid; 5.292 + border-color: #f7f7ba; 5.293 + background-color: #fffffa; 5.294 +} 5.295 + 5.296 +.time_passed { 5.297 + padding: 1em 5em 1em 5em 5.298 +} 5.299 + 5.300 +.much_time_passed { 5.301 + padding: 2em 5em 2em 5em 5.302 +} 5.303 + 5.304 +.edit_link { 5.305 + float: right; 5.306 + font-size: 80%; 5.307 + position: relative; 5.308 + bottom: 0; 5.309 + padding-top: 2em; 5.310 +} 5.311 + 5.312 +.lined_header { 5.313 + border-bottom: 1pt solid gray; 5.314 + padding: 10pt 0pt 5pt 0pt; 5.315 + margin: 30pt 0pt 20pt 0pt; 5.316 +} 5.317 + 5.318 + 5.319 +.nav_bar { 5.320 + font-size: 80%; 5.321 + color: #222222; 5.322 + background-color: #eeeeee; 5.323 +} 5.324 + 5.325 +/* 5.326 +.nav_bar a { 5.327 + color: #222222; 5.328 + padding-left: 1pt; 5.329 + padding-right: 1pt; 5.330 +} 5.331 +*/ 5.332 +body { 5.333 + margin:0; 5.334 + padding:0 0 15px 0; 5.335 + 5.336 +} 5.337 +.body { 5.338 + margin: 10; 5.339 + padding: 10; 5.340 +} 5.341 + 5.342 +.fixed_div { 5.343 + margin-left: 60pt; 5.344 + padding-left: 0pt; 5.345 +}