Location: PHPKode > projects > PHP-Fusion: Guestbook > inf_guestbook_v4.12/files/infusions/guest_book/updates/update_from_v4.02.php
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Guestbook Infusion 4.06
| Author: Sebastian Schüssler (slaughter)
| Download:
| http://basti2web.de
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../../maincore.php";

// Check: iAUTH and $aid
if (!defined("iAUTH") || $_GET['aid'] != iAUTH) redirect("index.php");

// Includes
require_once INFUSIONS."guest_book/infusion_db.php";
require_once INFUSIONS."guest_book/includes/functions.php";

// Check: Admin Rights
if (!GB_ADMIN) redirect("index.php");

// Header
switch(UCC_PHPF_VER) {
case 6:
	require_once BASEDIR."subheader.php";
	require_once ADMIN."navigation.php";
	break;
case 7:
	require_once THEMES."templates/header.php";
	break;
default:
	redirect(INFUSIONS."guest_book/admin/error.php?id=3");
}

opentable("Update: v4.02 => v4.03");

//-----------

$text = "sex
fuck
porn
gangbang
viagra
anal
phentermine
blowjob
asian
gay
lesbian
href=
mailto
meridia
soma
levitra
lipitor
nexium
effexor
flomax
carisoprodol
accutane
aldara
condylox
cipro xr
cialis
pill
cyclobenzaprine
bactrim
celebrex
crestor
arimidex
aciphex
buspar
valium
ebony
booty
bbw
boob
bangbros
prescription
purchase
herbal
pharmacy
gambling";

$res1 = dbquery("UPDATE ".$db_prefix."guestbook_settings SET gb_version = '4.03', gb_spam_words = '$text'");

$res2 = dbquery("UPDATE ".$db_prefix."infusions SET inf_version='4.03' WHERE inf_folder='guest_book'");

$res3 = dbquery("ALTER TABLE ".$db_prefix."guestbook_log ADD gb_log_urltitel TEXT NOT NULL");


if ($res1 && $res2 && $res3) echo "<br>done!";

echo "<br><br><a href='".INFUSIONS."guest_book/admin/gb_admin.php".$aidlink."'>back</a>";

//-----------
closetable();
tablebreak();

// Footer
switch(UCC_PHPF_VER) {
case 6:
	require_once BASEDIR."side_right.php";
	require_once BASEDIR."footer.php";
	break;
case 7:
	require_once THEMES."templates/footer.php";
	break;
default:
	redirect(INFUSIONS."guest_book/admin/error.php?id=3");
}
?>
Return current item: PHP-Fusion: Guestbook