Location: PHPKode > projects > Nukequiz > html/root/nq_installer/up300-310.php
<?php
/*****************************************************************/
/* Nukequiz (tm)    v 3.1.0                                		 */
/* By: Kissoftware (hide@address.com)      		     */
/* http://www.kissoftware.org.uk                           		 */
/* http://www.kissoftware.co.uk                       		     */
/* Copyright © 2003-2008 by Kissoftware         				 */
/* See Docs For Information & Credits                 			 */
/* For More information Visit Forums Or The Online Help Manual	 */
/*****************************************************************/
//Language Definitions You May Want To Edit
define("_NQ_FAILED","<b><font color='#CC0000'>&nbsp;Failed</font></b>");
define("_NQ_OK","<b><font color='#00CC00'>&nbsp;Completed</font></b>");
define("_NQ_CREATIONOF","<b>&loz;&nbsp;Creation Of Table&nbsp;</b>");
define("_NQ_ALTERTABLE","<b>&loz;&nbsp;Alter Table&nbsp;</b>");
define("_NQ_DATA4","<b>&loz;&nbsp;Data For&nbsp;</b>");
define("_NQ_ADMIN","Nukequiz Administration");
define("_NQ_INSTALLNOTE","If You Have Upgraded - You Can Now Upload All New Nukequiz Files<br><br>Please Remove All Old Version Files Before Proceeding!!");
//////////////////////////////////////////////////////Do Not Edit Below
$pagetitle = "&copy;&nbsp;Nukequiz Upgrade 3.0.0 - 3.1.0";
@include("header.php");
OpenTable();
echo "<center><table cellpadding='2' cellspacing='2' border='0'><tr><td align='center' colspan='2'>";
echo "<b>$pagetitle</b></td></tr><tr>";
//Max image size for display full size
$result = $db->sql_query("INSERT INTO ".$prefix."_nquiz_config VALUES ('maximagesize', '300')");
if (!$result) { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_FAILED."</td></tr><tr>"; } 
else { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_OK."</td></tr><tr>"; }
//Max thumbnail size
$result = $db->sql_query("INSERT INTO ".$prefix."_nquiz_config VALUES ('maxthumbs', '100')");
if (!$result) { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_FAILED."</td></tr><tr>"; } 
else { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_OK."</td></tr><tr>"; }
//Insert into groups info for rate Nukequiz
$result = $db->sql_query("INSERT INTO ".$prefix."_groups_info VALUES (22, 'Rating A Quiz With Nukequiz')");
if (!$result) { echo "<td>"._NQ_DATA4."".$prefix."_groups_info</td><td>"._NQ_FAILED."</td></tr><tr>"; } 
else { echo "<td>"._NQ_DATA4."".$prefix."_groups_info</td><td>"._NQ_OK."</td></tr><tr>"; }
//Insert into groups points for rate Nukequiz
$result = $db->sql_query("INSERT INTO ".$prefix."_groups_points VALUES (22, '15')");
if (!$result) { echo "<td>"._NQ_DATA4."".$prefix."_groups_points</td><td>"._NQ_FAILED."</td></tr><tr>"; } 
else { echo "<td>"._NQ_DATA4."".$prefix."_groups_points</td><td>"._NQ_OK."</td></tr><tr>"; }
//Version Checked
$result = $db->sql_query("UPDATE ".$prefix."_nquiz_config SET config_value='3.1.0' WHERE config_name='version_number'");
if (!$result) { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_FAILED."</td></tr><tr>"; } 
else { echo "<td>"._NQ_DATA4."".$prefix."_nquiz_config</td><td>"._NQ_OK."</td></tr><tr>"; }
echo "<td colspan='2' align='center'><a href='admin.php?op=nukequiz'>"._NQ_ADMIN."</a></td></tr><tr>";
echo "<td colspan='2' align='center'>"._NQ_INSTALLNOTE."</td></tr><tr>";
echo "<td colspan='2' align='center'>"._GOBACK."";
echo "</td></tr></table></center>";
CloseTable();
@include("footer.php");
?>
Return current item: Nukequiz