LI Nick X.com

blog | contact

PHP

 
I got into php as a way of making linux boxes more friendly to a windows user !
you'd be supprised how '$top = system("top -b -n 1");' re-assure's them that the box is running & everything's ok !

I'll be sharing any usefull scripts & code I have.

mysql php
  • nagios-simple-gen_php.txt
    This is a basic form for generating nagios configs. Demo: Simple Nagios cfg Generator

    UPDATE: Also available at nagiosexchange.org: http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view]=327

  • phpbb_recent_topics.txt
    Ever wanted a list of recent phpBB threads or Topics displayed in wordpress ? If so then this plugin maybe for you !
    Install instructions here
  • root-cookie.v1.0.txt
  • root-cookie.txt
    root Cookie, is a simple WordPress Plugin which changes the default cookie path to / (i.e.root), useful if you've included the wordpress header in your external code, and need to check the authentication cookie.
  • root-cookie.v1.2.txt
  • bbpress_bbcode.txt
    This is a port of the BBCode Plugin for Wordpress by Jeff Moore to bbPress
  • php-cat-ALPHA.tar.gz
    PHP-Cat another mini-project. It allows you to easily create a website where you can browse a file system and read text files.
    Compatability: I have only tested this on a LINUX box, but there is no linux spefic code here, so there's no reason that it shouldn't work on window$ ;-)
  • quote_php.txt
    Random quotes from a text file.

    Usage: include("./quote.php"); echo randomquote();

  • phpbb_recent_topics_v0.3.tgz
  • root-cookie.v1.1.txt
  • wordpress_hacker.zip
    h4x0r Screenshot h4x0r (hacker) is a The Matrix style theme for wordpress, it's a simple green on black theme - view screenshot. (Tested on WP 1.5 & WP 2)
  • php-ices-BETA.tgz
    PHP-ICES is my own little php project that allows you to manipulate ices.
    ices is a media server that works with icecast, together they allow you to stream mp3s & Oggs.
    See www.icecast.org
  • ls_php.txt
    A simple example of how to browse a linux file system using your broswer, this version works in safemode thanks to xavier at rootshell.be
  • nagios-ping-tool.tgz
    Want to View Ping & Traceroute results from your web browser, then this is the php script for you ! ;-)
    My place of work pretty much demanded the need for the monitoring guys (i.e. people that stare at the screen, waiting for red things) to have the ability to run traceroutes from nagios to the effected node - The twist in the storey was that they wanted to do it from a browser !
    This package is a collection of simple scripts, one to read your nagios hosts.cfg file, one to produce the buttons to click, and a couple to format page headers & footers.
    Installation should be simple, unpack & edit config.php so that it can see your working nagios hosts.cfg, WARNING: php safemode, ping & traceroute are not normally accepted if safemode is on, you may need to check your server settings.

    Nagios Exchange Project Page

  • browser_php.txt
    Browser is an extension of ls.php, It allows the viewer to browse the file system, select some files, and submit them to another form.
    Default submission is to ./playlist.php, and that'll recieve $PATH and an array ($MPEG) of file names.

Posts related to this page...

---

Nick is on Google+