/branches/mans/logo.png |
Новый файл |
Изменения свойств: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |
Index: branches/mans/right.php |
=================================================================== |
--- branches/mans/right.php (revision 0) |
+++ branches/mans/right.php (revision 184) |
@@ -0,0 +1,8 @@ |
+По вопросам обращаться: |
+<p> |
+• <b>ICQ:</b> 268795111<br> |
+• <b>Jabber:</b> ik00@jabber.ru<br> |
+</p> |
+<br><br> |
+• <b>Jabber:</b> diffor@jabber.ru<br> |
+ |
Index: branches/mans/man_ru.php |
=================================================================== |
--- branches/mans/man_ru.php (revision 0) |
+++ branches/mans/man_ru.php (revision 184) |
@@ -0,0 +1,59 @@ |
+<div align=center> |
+<br><br> |
+<form name="form1"> |
+<input value="<?php |
+ $query = $_REQUEST['query']; |
+ # clean up passed value |
+ $query = preg_replace("/^\s+/","",$query); |
+ $query = preg_replace("/\s+$/","",$query); |
+ $query = preg_replace("/\s+/"," ",$query); |
+ $query = ereg_replace("--","––",$query); |
+# $query = ereg_replace("-","–",$query); |
+ $value = preg_replace("/\"/",""",$query); |
+ |
+ echo "$value" |
+?>" type="text" name="query" onChange="submit()"> |
+<input type="Hidden" name="lang" value="<?php print $lang; ?>"> |
+<p> |
+</form></div> |
+<?php |
+if($query != "") { |
+ |
+switch ($lang) { |
+ case NULL: |
+ exec("export LANG=ru_RU.UTF8 && export MANWIDTH=90 && man $query",$output,$error); |
+ break; |
+ case ru: |
+ exec("export LANG=ru_RU.UTF8 && export MANWIDTH=90 && man $query | col -bx",$output,$error); |
+ break; |
+ case en: |
+ exec("export MANWIDTH=90 && man $query | col -b",$output,$error); |
+ break; |
+ |
+} |
+ |
+$output = implode("\n",$output); |
+ |
+ |
+if($error) { |
+ echo "<pre><b>Ошибка</b>: $output</pre>"; |
+} |
+ else {# bold first line |
+ $output = preg_replace("/^(.*)/","<b>\\1</b>",$output); |
+ # wrap first line of each reference in table to control background color |
+ $output = preg_replace("/(\n\nFrom )(.*)\n/","\n\n<table cellpadding=4 |
+ bgcolor=#7FA95D><tr><td><b>\\2</b></td></tr></table>",$output); |
+ # add a href |
+ $output = ereg_replace("\n","<br>",$output); |
+ $output = ereg_replace("<br>[A-Z]{4,}","<a href=#\\0><img src=download.gif alt=\"\"></a><a name=\\0>\\0</a>",$output); |
+ $output = ereg_replace("<br>[А-Я]{4,}","<a href=#\\0><img src=download.gif alt=\"\"></a><a name=\\0>\\0</a>",$output); |
+ $output = ereg_replace("=#<br>","#=",$output); |
+ $output = ereg_replace("=<br>","=",$output); |
+ $output = ereg_replace("#=","=#",$output); |
+ echo "<pre>$output</pre>"; |
+ } |
+} |
+?> |
+<script type="text/javascript"> |
+ document.form1.query.focus(); |
+</script> |
Index: branches/mans/download.gif |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: branches/mans/download.gif |
=================================================================== |
--- branches/mans/download.gif (revision 0) |
+++ branches/mans/download.gif (revision 184) |
/branches/mans/download.gif |
Изменения свойств: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |
Index: branches/mans/uk_flag.png |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: branches/mans/uk_flag.png |
=================================================================== |
--- branches/mans/uk_flag.png (revision 0) |
+++ branches/mans/uk_flag.png (revision 184) |
/branches/mans/uk_flag.png |
Изменения свойств: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |
Index: branches/mans/bg.gif |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: branches/mans/bg.gif |
=================================================================== |
--- branches/mans/bg.gif (revision 0) |
+++ branches/mans/bg.gif (revision 184) |
/branches/mans/bg.gif |
Изменения свойств: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |
Index: branches/mans/index.php |
=================================================================== |
--- branches/mans/index.php (revision 0) |
+++ branches/mans/index.php (revision 184) |
@@ -0,0 +1,43 @@ |
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> |
+<head> |
+<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
+<meta name="verify-v1" content="ZBUJHzjxrbMV7MF6WPLOfr1axcHzJQzurV7DTxU3vDo="> |
+<meta name='yandex-verification' content='472a7407da2185d8'> |
+<title> |
+MAN PAGES - niX-FILES |
+</title> |
+<style type="text/css"> |
+input { |
+ border: 1px solid #7777BB; |
+ background: #B9B9D0 ; |
+ padding-right:4px; |
+ padding-left:4px; |
+ } |
+td { |
+ font-size:8pt; |
+ font-family: tahoma; |
+ } |
+pre { |
+ font-size: 10pt; |
+ font-family: tahoma; |
+ { |
+</style> |
+</head> |
+<body bgcolor="#F3FBEC" background=bg.gif> |
+<TABLE WIDTH="100%" BORDER=1 BORDERCOLOR="#7777BB" CELLPADDING=4 CELLSPACING=0> |
+ <TR VALIGN=TOP> |
+ <TD WIDTH="20%" bgcolor="#B9B9D0"> |
+ <?php include ('left.php'); ?> |
+ </TD> |
+ <TD WIDTH="80%"> |
+ <?php |
+ include ('man_ru.php'); |
+ ?> |
+ </TD> |
+ <TD WIDTH="20%" bgcolor="#B9B9D0"> |
+ <?php include ('right.php'); ?> |
+ </TD> |
+ </TR> |
+</TABLE> |
+</body> |
+</html> |
\ No newline at end of file |
Index: branches/mans/left.php |
=================================================================== |
--- branches/mans/left.php (revision 0) |
+++ branches/mans/left.php (revision 184) |
@@ -0,0 +1,4 @@ |
+<img src=uk_flag.png height=12 alt=""><a href=http://mans.nix-files.org.ru/?lang=en&query=<?php print $query; ?>>English</a> |
+<br><br> |
+<img src=ru_flag.png height=12 alt=""><a href=http://mans.nix-files.org.ru/?lang=ru&query=<?php print $query; ?>>Русский</a> |
+<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> |
\ No newline at end of file |
Index: branches/mans/ru_flag.png |
=================================================================== |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Index: branches/mans/ru_flag.png |
=================================================================== |
--- branches/mans/ru_flag.png (revision 0) |
+++ branches/mans/ru_flag.png (revision 184) |
/branches/mans/ru_flag.png |
Изменения свойств: |
Added: svn:mime-type |
## -0,0 +1 ## |
+application/octet-stream |
\ No newline at end of property |