File:  [mozdev] / kcms / src / upgrade.php
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Aug 20 02:33:40 2005 UTC (13 years, 1 month ago) by kanaco
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<?php
/*
+---------------------------------------------------------------+
|	kCMS 0.1.5
|	/banner.php
|
|	kCMS.Kanaco.Com
|	kCMS.Kanaco.Com
|	optiK@kcms.kanaco.com
|
|	
|	
+---------------------------------------------------------------+
*/
require_once("set.php");
require_once(HEADERF);


$pref['cookie_name'] = "kCMScookie";
save_prefs();

$sql -> db_Select("core", "*", "kCMS_name='kCMS' ");
$row = $sql -> db_Fetch();
$tmp = stripslashes($row['kCMS_value']);
$kCMS=unserialize($tmp);
if(!is_array($kCMS)){
	$kCMS=unserialize($row['kCMS_value']);
}

$kCMS['kCMS_version'] = "0.601";
$kCMS['kCMS_build'] = "0";
$kCMS['kCMS_datestamp'] = time();

$tmp = addslashes(serialize($kCMS));
$sql -> db_Update("core", "kCMS_value='$tmp' WHERE kCMS_name='kCMS' ");

$text = "<div style='text-align:center'>Upgrade complete, now running v0.601.</div>";
$ns -> tablerender("Upgrade", $text);


require_once(FOOTERF);
?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>