'; // db connect $dbh = mysqli_connect ($db[mfg][host], $db[mfg][username], $db[mfg][password]) or die ("DB error, administrator has been notified."); mysqli_select_db ($dbh, $db[mfg][dbname]); // we should only init anything if the search function was used if ( $_POST['cmdname'] ) { $search = mysqli_real_escape_string($dbh, $_POST['cmdname']); $ostype = mysqli_real_escape_string($dbh, $_POST['ostype']); $search_uniqid = md5(uniqid(rand(), true)); $resnum = 0; $distnum = 0; if ( strstr($ostype, 'all_') ) { $disttype = substr($_POST['ostype'], 4); if ( $disttype = 'os' ) { $qry = "SELECT * FROM unixmanpages_dist"; } else { $qry = "SELECT * FROM unixmanpages_dist WHERE distid='$disttype'"; } } else { $qry = "SELECT * FROM unixmanpages_dist WHERE shortname='$ostype'"; } //print "qry1: $qry\n\n"; $qrh = mysqli_query($dbh, $qry); while ($qres = mysqli_fetch_assoc($qrh) ) { $dist['tablename'][$distnum] = $qres['tablename']; $dist['distname'][$distnum] = $qres['distname']; $dist['shortname'][$distnum] = $qres['shortname']; $dist['distid'][$distnum] = $qres['distid']; $distnum++; } //print_r($dist); for ( $i=0; $i 0 ) { $haveresults = true; // array sort routine } //print_r($res); //print "$tmp_cat_qry"; } ?> UNIX manpage repository

UNIX manual page repository

Manual pages are available for the following OS/distributions:

"; while ($qres = mysqli_fetch_assoc($qrh) ) { $shortname = $qres['shortname']; $distname = $qres['distname']; print "
  • $distname
  • "; } } elseif ( ($_GET['cmd'] == 'contact') || ($_POST['cmd'] == 'contact') ) { ?>

    Contact

    If you have any questions or comments, contact me at wigyori at uid0.hu

    UNIX manual page repository

    This site contains a large database of searchable manual pages for some of the available UNIX operating systems.

    Enter a command and specify an OS or distribution for which you would like to read the manual page of the command. The database will show you the exact and near matches.


    You can see some of my other projects in the menubar.

    Search results:\n"; if ( $haveresults ) { print "
      "; // first try to look for exact matches $qry = "SELECT * FROM unixmanpages_tmpsearch WHERE search_uniqid='$search_uniqid' AND name='$search' ORDER BY shortname"; $qrh = mysqli_query($dbh, $qry); $qrc = mysqli_num_rows($qrh); if ( $qrc > 0 ) { while ( $qres = mysqli_fetch_assoc($qrh) ) { $cmdtype = str_replace('man', '', $qres['catname']); //$url = "http://" .$qres['shortname']. "-manpages.uid0.hu/" .$qres['shortname']. "-manpages/" .$qres['pageid']. "/" .$qres['name']. ".html"; $url = "http://" .$qres['shortname']. ".unixmanpages.net/".$qres['catname']."/" .$qres['name']. ".html"; print "
    • " .$qres['name']. "($cmdtype) - " .$qres['shortname']. "
    • \n"; } } $qry = "SELECT * FROM unixmanpages_tmpsearch WHERE search_uniqid='$search_uniqid' AND name !='$search' ORDER BY name"; $qrh = mysqli_query($dbh, $qry); $qrc = mysqli_num_rows($qrh); if ( $qrc > 0 ) { while ( $qres = mysqli_fetch_assoc($qrh) ) { $cmdtype = str_replace('man', '', $qres['catname']); //$url = "http://" .$qres['shortname']. "-manpages.uid0.hu/" .$qres['shortname']. "-manpages/" .$qres['pageid']. "/" .$qres['name']. ".html"; $url = "http://" .$qres['shortname']. ".unixmanpages.net/".$qres['catname']. '/' .$qres['name']. ".html"; print "
    • " .$qres['name']. "($cmdtype) - " .$qres['shortname']. "
    • \n"; } } /* OLD STUFF for ($i=0; $i" .$res[$i]['name']. " - " .$res[$i]['shortname']. " (" .$res[$i]['catname']. ")\n"; } else { print "
    • " .$res[$i]['name']. " - " .$res[$i]['shortname']. " (" .$res[$i]['catname']. ")
    • \n"; } // } */ print "
    "; $qry = "DELETE FROM unixmanpages_tmpsearch WHERE search_uniqid='$search_uniqid'"; mysqli_query($dbh, $qry); } else { print "No results"; } } ?>
    Partners
    DeployIS

    Deploy IS kindly provides the basic infrastructure for operating this site.

    VPS Pro VPS

    This is a favourite virtual server provider, using Xensource's Xen.