Location: PHPKode > scripts > Lightweight online chat room > jsRequestChat-0.1/update.php
<?php
	/*
		jsRequestChat v.1 - Chat room executable on common server types.
		Copyright (C) 2012 Riley Galloway

		This file is part of jsRequestChat.

		jsRequestChat is free software: you can redistribute it and/or modify
		it under the terms of the GNU General Public License as published by
		the Free Software Foundation, either version 3 of the License, or
		(at your option) any later version.

		This program is distributed in the hope that it will be useful,
		but WITHOUT ANY WARRANTY; without even the implied warranty of
		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
		GNU General Public License for more details.

		You should have received a copy of the GNU General Public License
		along with jsRequestChat. If not, see <http://www.gnu.org/licenses/>.
		You can contact the author at hide@address.com
	*/
	//Edit as appropriate for different files and $_GET methods
	$stringData = $_GET['message'];
	if($stringData != "")
	{
		$myFile = "./chat.crack";
		$orig = file_get_contents($myFile);
		$fh = fopen($myFile, 'w');
		fwrite($fh, $stringData);
		fwrite($fh, "\n");
		fwrite($fh, $orig);
		fclose($fh);
	}
?>
Return current item: Lightweight online chat room