Archive for the ‘Classes’ Category

VN:F [1.8.0_1031]
Rating: 0.0/10 (0 votes cast)

Are you wanting to create a irc bot or a web based application to provide automated match details about specific games from quakelive? Well this class is exactly what your looking for. The object of this class is to pull match details from quakelive and store then in a number of public vars that you can recall or access once you have initiated the class.

Download MatchPoll.zip (9 downloads)

You can init the class with the following example. with this idea you would want to use a url to start the process with something like

//http://mysite.com/?match=20823155&type=CA
include('matchPoll.php');

matchDetail($_GET['match'], $_GET['type']);

You can also use something like this.

if($_POST['action' == 'submit']){
	include('matchPoll.php');
	$bits = explode('/', $_POST['uri']);
	$type = $bits[sizeof($bits)];
	$match = $bits[(sizeof($bits)-1)];
	matchDetail($match, $type);
}
Paste match url here:

This script is in alpha form so you may have to play with it. I will make updates and changes later as they are required.

Post to Twitter Post to Digg Post to Facebook Post to Ping.fm Post to StumbleUpon

VN:F [1.8.0_1031]
Rating: 0.0/10 (0 votes cast)

I was wondering, can you dynamically edit a word document on the fly? Well no, not a word document, but you can edit an open office document this way. So, I wrote this class to accomplish this task for me.

Edit open office documents on the fly with a webform. This class is GPL and free. The class comes with examples of the classes usage. This script will edit and ODT Open Office document on the fly, just specify what you want to replace and cha-ching its done.

/*
* example.php
* this is an example file to show how the workings of the docParse class works.
* read the comments in the class to know what params or switches are needed to do what.
* some of the basics have been explained below.
*/
include 'class.docParser.php';
$doc = new docParser;
$doc->init('tmp', $tempfolder, $tempfile);
$doc->breakDoc($tempfolder, 'example.doc');
$doc->searchAndReplace($tempfile, ':foo:', 'Do The Dew');
$doc->buildDoc($tempfolder, 'seeitworks.doc', true, true);

Download docParser.zip (11 downloads)

Post to Twitter Post to Digg Post to Facebook Post to Ping.fm Post to StumbleUpon

Onys VSpy Plugin