Error cannot write to $dir directory and cannot change the permissions of it. You must set the file permissions to allow writing, usually chmod(0777). Please do this then refresh the page
Connect succeeded, database already exists, checking for database contents....
\n
\n";
$gettables = query("SHOW TABLES");
if (countrows($gettables)) {
echo "
\n
The database exists, however it is NOT empty
\n
\n";
echo "
\n
If you would like to empty the database please click here. THIS WILL UNCONDITIONALLY ERASE ALL THE DATE FROM YOUR DATABASE. DO NOT DO THIS IF YOU PLAN TO USE A FORUM FOR YOUR USER TABLES.
\n
\n";
echo "
\n
Click here to continue to the next step if you wish to leave your database intact
Unable to conntect to server: Error Number: ".geterrno()." Error Description: ".geterrordesc()."
\n
\n";
echo "
\n
Please go back and check the details in config.php and try again. Click here to go to the VirtuaNews website
\n
\n";
}
}
if ($step == "confirmempty") {
echo "
\n
YOU ARE ABOUT TO DELETE ALL THE DATA FROM YOUR DATABASE. VIRTUANEWS CANNOT BE HELD RESPONSABLE FOR ANY LOSS OF DATA CAUSED BY THIS ACTION. DO NOT DO THIS IF YOU PLAN TO USE YOUR FORUM FOR YOUR USER TABLES.
\n
\n";
echo "
\n
If you agree to these terms then please click here otherwise click here to continue to the next step without erasing your data.
There has been an error deleting one or more of the tables. Please examine this error and only continue if you are sure it will not effect the install process. Click here to continue or here to go to the VirtuaNews website
\n
\n";
} else {
echo "
\n
All tables are deleted, please click here to continue
\n";
}
}
if ($step > 3) {
include("admin/config.php");
include("includes/db_$dbservertype.php");
$db = vn_connect();
}
if ($step == 4) {
$query[news_activation] = "CREATE TABLE news_activation (
id INT(10) NOT NULL auto_increment,
userid INT(10) DEFAULT '0' NOT NULL,
date INT(10) DEFAULT '' NOT NULL,
activateid INT(10) UNSIGNED DEFAULT '0' NOT NULL,
type TINYINT(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (id))";
$query[news_adminlog] = "CREATE TABLE news_adminlog (
id INT(10) UNSIGNED NOT NULL auto_increment,
staffid SMALLINT(5) DEFAULT '0' NOT NULL,
time INT(10) DEFAULT '' NOT NULL,
script VARCHAR(20) DEFAULT '' NOT NULL,
action VARCHAR(20) DEFAULT '' NOT NULL,
extrainfo VARCHAR(200) DEFAULT '' NOT NULL,
ipaddress VARCHAR(15) DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_announcement] = "CREATE TABLE news_announcement (
catid SMALLINT(5) DEFAULT '0' NOT NULL,
content MEDIUMTEXT DEFAULT '' NOT NULL,
image VARCHAR(255) DEFAULT '' NOT NULL,
link VARCHAR(255) DEFAULT '' NOT NULL,
PRIMARY KEY (catid))";
$query[news_article] = "CREATE TABLE news_article (
id SMALLINT(5) NOT NULL auto_increment,
date INT(10) DEFAULT '' NOT NULL,
title VARCHAR(255) DEFAULT '' NOT NULL,
staffid SMALLINT(5) DEFAULT '0' NOT NULL,
authorname VARCHAR(255) DEFAULT '' NOT NULL,
numpages SMALLINT(2) DEFAULT '' NOT NULL,
views INT(10) DEFAULT '' NOT NULL,
rating FLOAT DEFAULT '' NOT NULL,
page1 MEDIUMTEXT DEFAULT '' NOT NULL,
page2 MEDIUMTEXT DEFAULT '' NOT NULL,
page3 MEDIUMTEXT DEFAULT '' NOT NULL,
page4 MEDIUMTEXT DEFAULT '' NOT NULL,
page5 MEDIUMTEXT DEFAULT '' NOT NULL,
page6 MEDIUMTEXT DEFAULT '' NOT NULL,
page7 MEDIUMTEXT DEFAULT '' NOT NULL,
page8 MEDIUMTEXT DEFAULT '' NOT NULL,
page9 MEDIUMTEXT DEFAULT '' NOT NULL,
page10 MEDIUMTEXT DEFAULT '' NOT NULL,
catid SMALLINT(5) DEFAULT '0' NOT NULL,
parsenewline TINYINT(1) DEFAULT '1' NOT NULL,
display SMALLINT(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (id))";
$query[news_articlecat] = "CREATE TABLE news_articlecat (
id SMALLINT(5) NOT NULL auto_increment,
title VARCHAR(255) DEFAULT '' NOT NULL,
description MEDIUMTEXT DEFAULT '' NOT NULL,
parentid SMALLINT(5) DEFAULT '0' NOT NULL,
children SMALLINT(5) DEFAULT '0' NOT NULL,
numarticles SMALLINT(5) DEFAULT '0' NOT NULL,
displayorder SMALLINT(4) DEFAULT '0' NOT NULL,
display SMALLINT(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (id))";
$query[news_articlevote] = "CREATE TABLE news_articlevote (
id INT(10) UNSIGNED NOT NULL auto_increment,
articleid INT(10) DEFAULT '0' NOT NULL,
userid INT(10) DEFAULT '0' NOT NULL,
votedate INT(10) DEFAULT '' NOT NULL,
voteoption INT(10) DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_category] = "CREATE TABLE news_category (
id SMALLINT(5) NOT NULL auto_increment,
parentid SMALLINT(5) DEFAULT '' NOT NULL,
children SMALLINT(5) DEFAULT '' NOT NULL,
name VARCHAR(255) NOT NULL,
description MEDIUMTEXT NOT NULL,
image VARCHAR(255) NOT NULL,
posts SMALLINT(5) DEFAULT '' NOT NULL,
allowcomments TINYINT(1) DEFAULT '' NOT NULL,
allowview TINYINT(1) DEFAULT '' NOT NULL,
showsitestats TINYINT(1) DEFAULT '' NOT NULL,
showforumstats TINYINT(1) DEFAULT '' NOT NULL,
showforumoptions TINYINT(1) DEFAULT '' NOT NULL,
showpoll TINYINT(1) DEFAULT '' NOT NULL,
showannouncement TINYINT(1) DEFAULT '' NOT NULL,
showsubcats TINYINT(1) DEFAULT '' NOT NULL,
defaulttheme SMALLINT(5) DEFAULT '' NOT NULL,
forcetheme TINYINT(1) DEFAULT '' NOT NULL,
recentpost VARCHAR(255) NOT NULL,
display TINYINT(1) DEFAULT '' NOT NULL,
displayorder SMALLINT(5) DEFAULT '' NOT NULL,
displaymain TINYINT(1) DEFAULT '' NOT NULL,
pollid SMALLINT(5) NOT NULL,
PRIMARY KEY (id),
KEY displayorder (displayorder))";
$query[news_comment] = "CREATE TABLE news_comment (
id INT(10) UNSIGNED NOT NULL auto_increment,
newsid SMALLINT(5) DEFAULT '' NOT NULL,
username VARCHAR(255) NOT NULL,
userid SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
useremail VARCHAR(255),
ip VARCHAR(15),
comment MEDIUMTEXT NOT NULL,
showsig TINYINT(1) DEFAULT '' NOT NULL,
time INT(10) DEFAULT '' NOT NULL,
parentid INT(10) DEFAULT '' NOT NULL,
editlock TINYINT(1) DEFAULT '' NOT NULL,
edituserid SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
editdate INT(10) DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY userid (userid),
KEY newsid (newsid,time))";
$query[news_hit] = "CREATE TABLE news_hit (
time INT(10) DEFAULT '' NOT NULL,
ip VARCHAR(20) NOT NULL,
browser VARCHAR(15) NOT NULL,
os VARCHAR(15) NOT NULL,
location VARCHAR(255) NOT NULL,
PRIMARY KEY (ip)
) TYPE=HEAP";
$query[news_module] = "CREATE TABLE news_module (
id MEDIUMINT(5) NOT NULL auto_increment,
name VARCHAR(255) NOT NULL,
text VARCHAR(255) NOT NULL,
description MEDIUMTEXT,
version VARCHAR(255),
templates MEDIUMTEXT,
table_list MEDIUMTEXT,
display TINYINT(1) DEFAULT '' NOT NULL,
enable TINYINT(1) DEFAULT '' NOT NULL,
options MEDIUMTEXT,
PRIMARY KEY (id))";
$query[news_news] = "CREATE TABLE news_news (
id INT(10) UNSIGNED NOT NULL auto_increment,
catid SMALLINT(5) DEFAULT '' NOT NULL,
title VARCHAR(255) NOT NULL,
mainnews MEDIUMTEXT NOT NULL,
extendednews MEDIUMTEXT NOT NULL,
logoimage VARCHAR(50),
logoimageborder SMALLINT(1) DEFAULT '' NOT NULL,
commentcount SMALLINT(5) DEFAULT '' NOT NULL,
lastcommentuser VARCHAR(255),
time INT(11) DEFAULT '' NOT NULL,
staffid SMALLINT(5) DEFAULT '' NOT NULL,
stickypost TINYINT(1) DEFAULT '' NOT NULL,
parsenewline TINYINT(1) DEFAULT '' NOT NULL,
program SMALLINT(1) DEFAULT '' NOT NULL,
display SMALLINT(1) DEFAULT '' NOT NULL,
allowcomments SMALLINT(1) DEFAULT '' NOT NULL,
editstaffid SMALLINT(5) DEFAULT '' NOT NULL,
editdate INT(10) DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY catid (catid),
KEY program (program),
KEY staffid (staffid))";
$query[news_option] = "CREATE TABLE news_option (
id SMALLINT(5) NOT NULL auto_increment,
optiongroup VARCHAR(100),
varname VARCHAR(100) NOT NULL,
value TEXT NOT NULL,
title VARCHAR(100),
description MEDIUMTEXT,
code MEDIUMTEXT,
PRIMARY KEY (id))";
$query[news_page] = "CREATE TABLE news_page (
id SMALLINT(5) NOT NULL auto_increment,
pagesetid SMALLINT(4) DEFAULT '' NOT NULL,
title VARCHAR(255) NOT NULL,
description MEDIUMTEXT,
onserver TINYINT(1) DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_pageset] = "CREATE TABLE news_pageset (
id SMALLINT(5) NOT NULL auto_increment,
title VARCHAR(255) NOT NULL,
PRIMARY KEY (id))";
$query[news_pm] = "CREATE TABLE news_pm (
id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
fromuserid SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
touserid SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
folder TINYINT(1) DEFAULT '' NOT NULL,
senddate INT(10) DEFAULT '' NOT NULL,
readdate INT(10) DEFAULT '' NOT NULL,
subject VARCHAR(255) NOT NULL,
message MEDIUMTEXT NOT NULL,
showsig TINYINT(1) DEFAULT '' NOT NULL,
copyid SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_poll] = "CREATE TABLE news_poll (
id SMALLINT(5) NOT NULL auto_increment,
question VARCHAR(255) NOT NULL,
option1 VARCHAR(255) NOT NULL,
option2 VARCHAR(255) NOT NULL,
option3 VARCHAR(255),
option4 VARCHAR(255),
option5 VARCHAR(255),
option6 VARCHAR(255),
option7 VARCHAR(255),
option8 VARCHAR(255),
option9 VARCHAR(255),
option10 VARCHAR(255),
totalvotes SMALLINT(5) DEFAULT '' NOT NULL,
votes VARCHAR(255) NOT NULL,
display VARCHAR(255) NOT NULL,
PRIMARY KEY (id))";
$query[news_pollvote] = "CREATE TABLE news_pollvote (
id INT(10) UNSIGNED NOT NULL auto_increment,
pollid INT(10) DEFAULT '' NOT NULL,
userid INT(10) DEFAULT '' NOT NULL,
votedate INT(10) DEFAULT '' NOT NULL,
voteoption INT(10) DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY pollid (pollid,userid))";
$query[news_profilefield] = "CREATE TABLE news_profilefield (
id SMALLINT(5) NOT NULL auto_increment,
title VARCHAR(255) NOT NULL,
description MEDIUMTEXT NOT NULL,
required TINYINT(1) DEFAULT '' NOT NULL,
hidden TINYINT(1) DEFAULT '' NOT NULL,
editable TINYINT(1) DEFAULT '' NOT NULL,
displayorder SMALLINT(5) DEFAULT '' NOT NULL,
maxlength SMALLINT(5) DEFAULT '' NOT NULL,
size SMALLINT(5) DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_referer] = "CREATE TABLE news_referer (
name varchar(255) NOT NULL default '',
value int(10) unsigned NOT NULL default '0',
PRIMARY KEY (name))";
$query[news_smilie] = "CREATE TABLE news_smilie (
id SMALLINT(5) UNSIGNED NOT NULL auto_increment,
title CHAR(100) NOT NULL,
smilietext CHAR(100) NOT NULL,
smiliepath CHAR(100) NOT NULL,
PRIMARY KEY (id))";
$query[news_staff] = "CREATE TABLE news_staff (
id SMALLINT(5) NOT NULL auto_increment,
userid MEDIUMINT(8) UNSIGNED DEFAULT '' NOT NULL,
job VARCHAR(100) NOT NULL,
newsposts SMALLINT(5) DEFAULT '' NOT NULL,
caneditallnews SMALLINT(1) DEFAULT '' NOT NULL,
caneditallcomments SMALLINT(1) DEFAULT '' NOT NULL,
canmakesticky TINYINT(1) DEFAULT '' NOT NULL,
caneditusers TINYINT(1) DEFAULT '' NOT NULL,
caneditprofilefields TINYINT(1) DEFAULT '' NOT NULL,
caneditstaff SMALLINT(1) DEFAULT '' NOT NULL,
caneditcategories SMALLINT(1) DEFAULT '' NOT NULL,
caneditarticles TINYINT(1) DEFAULT '' NOT NULL,
caneditsmilies TINYINT(1) DEFAULT '' NOT NULL,
caneditpolls SMALLINT(1) DEFAULT '' NOT NULL,
candeletelogos TINYINT(1) DEFAULT '' NOT NULL,
caneditmodules TINYINT(1) DEFAULT '' NOT NULL,
caneditthemes SMALLINT(1) DEFAULT '' NOT NULL,
caneditoptions TINYINT(1) DEFAULT '' NOT NULL,
canmaintaindb TINYINT(1) DEFAULT '' NOT NULL,
canviewlog SMALLINT(1) DEFAULT '' NOT NULL,
canpost_1 SMALLINT(1) DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY userid (userid))";
$query[news_stats] = "CREATE TABLE news_stats (
lastupdate int(10) unsigned NOT NULL default '0',
uniquestotal int(10) unsigned NOT NULL default '0',
uniquestoday int(10) unsigned NOT NULL default '0',
maxusersonline int(10) unsigned NOT NULL default '0')";
$query[news_style] = "CREATE TABLE news_style (
id SMALLINT(5) NOT NULL auto_increment,
stylesetid SMALLINT(5) DEFAULT '0' NOT NULL,
varname TEXT DEFAULT '' NOT NULL,
value TEXT DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY stylesetid (stylesetid))";
$query[news_styleset] = "CREATE TABLE news_styleset (
id SMALLINT(5) NOT NULL auto_increment,
title VARCHAR(255) DEFAULT '' NOT NULL,
PRIMARY KEY (id))";
$query[news_subscribe] = "CREATE TABLE news_subscribe (
id MEDIUMINT(10) NOT NULL auto_increment,
newsid MEDIUMINT(10) DEFAULT '' NOT NULL,
userid MEDIUMINT(10) DEFAULT '' NOT NULL,
lastview INT(10) DEFAULT '' NOT NULL,
emailupdate TINYINT(1) DEFAULT '' NOT NULL,
PRIMARY KEY (id),
KEY newsid (newsid,userid))";
$query[news_theme] = "CREATE TABLE news_theme (
id SMALLINT(5) NOT NULL auto_increment,
title VARCHAR(255) DEFAULT '' NOT NULL,
pagesetid SMALLINT(5) DEFAULT '0' NOT NULL,
stylesetid SMALLINT(5) DEFAULT '0' NOT NULL,
allowselect TINYINT(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (id))";
$query[news_user] = "CREATE TABLE news_user (
userid INT(10) UNSIGNED NOT NULL auto_increment,
username VARCHAR(50) NOT NULL,
password VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL,
showemail TINYINT(1) DEFAULT '' NOT NULL,
homepage VARCHAR(100) NOT NULL,
icq VARCHAR(20) NOT NULL,
aim VARCHAR(20) NOT NULL,
yahoo VARCHAR(20) NOT NULL,
signature MEDIUMTEXT NOT NULL,
activated TINYINT(1) DEFAULT '' NOT NULL,
moderated TINYINT(1) DEFAULT '' NOT NULL,
joindate INT(10) DEFAULT '' NOT NULL,
posts SMALLINT(5) UNSIGNED DEFAULT '' NOT NULL,
emailnotification TINYINT(1) DEFAULT '' NOT NULL,
commentdefault TINYINT(1) DEFAULT '' NOT NULL,
viewsigs TINYINT(1) DEFAULT '' NOT NULL,
allowpm TINYINT(1) DEFAULT '' NOT NULL,
emailpm TINYINT(1) DEFAULT '' NOT NULL,
isbanned TINYINT(1) DEFAULT '' NOT NULL,
PRIMARY KEY (userid))";
$query[news_useragent] = "CREATE TABLE news_useragent (
name VARCHAR(255) DEFAULT '' NOT NULL,
type VARCHAR(15) DEFAULT '' NOT NULL,
value INT(10) DEFAULT '' NOT NULL,
PRIMARY KEY (name,type))";
$query[news_userfield] = "CREATE TABLE news_userfield (
userid INT(10) DEFAULT '0' NOT NULL,
field1 VARCHAR(250) DEFAULT ''NOT NULL,
field2 VARCHAR(250) DEFAULT ''NOT NULL,
field3 VARCHAR(255) DEFAULT ''NOT NULL,
field4 VARCHAR(255) DEFAULT ''NOT NULL,
PRIMARY KEY (userid),
UNIQUE KEY id (userid))";
echo "
\n
Installing the VirtuaNews tables:
\n";
while (list($table_name,$query_text) = each($query)) {
query($query_text,0);
if (geterrno() == 0) {
echo "
There has been an error creating one or more of the tables. Please examine this error and only continue if you are sure it will not effect the install process. Click here to continue or here to go to the VirtuaNews website
\n
\n";
} else {
echo "
\n
All tables created correctly, please click here to continue
\n";
}
}
if ($step == 5) {
$query[news_announcement][] = "INSERT INTO news_announcement VALUES ('1','','','')";
$query[news_category][] = "INSERT INTO news_category VALUES ('1','0','0','Main','View the latest news from our site here.','','1','3','3','1','1','1','1','1','0','1','0','1','1','1','1','1');";
$query[news_news][] = "INSERT INTO news_news VALUES (NULL,'1','New Site','Welcome to our new website, powered by VirtuaNews version $version we hope to be able to bring you the latest and best information available on the web.\n\nFor more information on VirtuaNews visit their website at http://www.virtuanews.co.uk\n\nYour admin team','','virtuanews_logo.gif','0','0','','".time()."','1','0','1','0','1','1','0','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','aboutus_main','This template displays information about news posters and the admin of the site, along with any other info you wish to display on the page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','aboutus_record','This template displays the indervidual records for the user on the aboutus page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','archive_header','This template creates a table that will contain the posts over that day on the archive page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','archive_next_days_link','This template will provide a link to the next set of days on the archive page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','archive_page','This template is the main archive page which will output the list of posts over the number of days set int he options.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','archive_post','This template is used to display an indervidual news post on the archive page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','archive_previous_days_link','This template will provide a link to the previous set of days on the archive page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_cats_page','This template will display the articles within the category specified by the user.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_cats_record','This template will display indervidual links to the articles within the category specified.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_cats_sub_cat','This template will display links to the sub categories to the category specified.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_display_page','This template will display each article to the user.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_display_rating','This template will display an option for the user to rate the article, it will not be shown if a user has already selected a rating for the article.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_index_cat','This template displays the top level article categories.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_index_page','This template will display links to the first 2 levels of categories of articles on the main article page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','articles_index_sub_cat','This template displays the sub categories on the article index page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_autoparse_check','This template will display a check box allowing users to select if they wish to automatically parse urls or not.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_closed','This template is displayed in place of the table to add comments when comments are not allowed to be posted.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_disabled','This template is displayed instead of the table to add a comment when a user does not have permission to post comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_new','This template displays the table to add a comment to a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_notify_check','This template will display a check box allowing registered users to select if they wish to subscribe to a comment or not.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_qhtml_disabled','This template is shown inplace of the qhtml buttons when qhtml for the user is disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_qhtml_links','This template provides the buttons to insert qhtml into the comment, when it is enabled for the user on the comments page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_reply','This template displays the table to reply to a comment from a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_add_signature_check','This template will display a check box allowing registered users to select if they wish to use their signature or not.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_admin_del_link','This template is used to display a link to posters (thoses who have permissions) to delete users comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_admin_edit_link','This template is used to display a link to posters (thoses who have permissions) to edit users comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_close_link','This template is used to display a link to close all comment replies for a specific comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_data','This template is used to display the comments that dont have any replies to them for the news posts.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_data_child','This template is used to display the comments which are replies to other comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_data_parent','This template is used to display the comments that have replies to them for the news posts.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_editedby','This template is used to display details about who has edited a comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_edit_link','This template is used to display a link to reply to the comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_open_link','This template is used to display a link to open all comment replies for a specific comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_outer_table','This template is used as a parent to the comments for a news post, this will contain all comment info which can then be outputted to the main comment page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_reply_last','This template will display a link on the last child comment displaying a link to reply to the parent.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_reply_link','This template is used to display a link to the user allowing them to reply to a comment. It is not displayed with the child comments, apart from the last one for each parent.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_report_link','This page bit is displayed along with comments providing a link to report them when the user is allowed to report comments.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_signature','This template is used to display a users signature along with their comment post if they have one.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_comment_user_post_count','This template is used to display a users post count on the forum and comments along with their comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_emailnotify_msg','This template is the main body of the emails that are sent users to tell them when there is a new comment to a news post they have subscribed to.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_emailnotify_subject','This template is the subject of the emails that are sent users to tell them when there is a new comment to a news post they have subscribed to.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_logged_in','This template is displayed in the comment add form to show the username that is logged in.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_logged_out','This template is displayed in the comment add form displaying text boxes to allow an unregistered user to enter a name to comment under.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_admin_close','This template is displayed when a user views a news post that can open and close posts, it will provide it will provide a link to close the news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_admin_open','This template is displayed when a user views a news post that can open and close posts, it will provide it will provide a link to open the news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_data','This template displays the news post and extended news on the comments page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_editedby','This template is used to display details about who has edited a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_logo','This template is for the logo that is optionally displayed with news posts on the comments page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_logo_border','This template is for the logo border that is optionally displayed around the logo with news posts on the comments page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_news_oc_link','This template is displayed when the comment reply system is enabled, allowing the user to open or close all comments to a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_page','This template is used as the comments page displaying the comment and news data within.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_report','This page will display a form allowing users to report a comment to the staff.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_report_email','This page bit contains the body of the email that will be sent to staff when a comment is reported.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_smilies_disabled','This template is displayed in place of the clickable smilies table when smilies are not allowed to be used.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_smilies_row','This page bit will display a row containing the clickable smilies.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_smilies_smiliebit','This template displays the actual clickable smilies in the table.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comments_smilies_table','This template is used to provide a table of clickable smilies to insert into the comment text area on the comment page, it is displayed only when the smilies are enabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','comment_news_subscribe_link','This page bit is displayed allowing a registered user to subscribe to a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','edit_page','This template is displayed when a user is editing a comment, it contains the form they will use to do so.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_account_notmoderated','This template is displayed when a user tries to access the user panel, but their account has not yet been moderated.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_activation_expired','This template is displayed when a user tries to activate their account using an activation id which has expired. It will display a form allowing them to email a new activation id to their email address.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_already_activated','This template is displayed when a user requests a new activation id and has already activated their account.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_already_logged_in','This template is displayed when a user is trying to log in and is already logged in.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_already_registered','This template will be displayed when a user tries to register that is already registered.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_already_voted','This template is displayed when a user tries to vote more than once for a poll or an article.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_blank_field','This template is displayed when a required field is left blank.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_cannot_edit','This template is displayed whena user tries to edit a comment and comment editing is not allowed.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_category_hidden','This page bit is displayed when a user tries to view a category which is hidden from view to them.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_comments_closed','This template is displayed when a user tries to post a comment to a news post that they are not permitted to do.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_comment_edit_locked','this template is displayed when a user tries to edit a comment that has already been edited by a poster and locked for editing.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_comment_long','This template is displayed when a user enters a comment which is over the character limit.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_comment_user_taken','This template is displayed when a user tries to post a comment with a username which is already in use by a member.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_comment_wrong_user','This template is displayed when a user tries to post a comment with a different user name to what they are logged in as.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_edit_wrong_user','This template is displayed when a user tries to edit a comment that is not their own.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_failed','This template is displayed if an email fails to send at any time.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_hidden','This template is displayed when a user tries to email another user that has specified that they have their email address hidden.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_long','This template is displayed when a user enters an email address which is over the character limit.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_mismatch','This template is displayed when a user is registering and enters a different email address in the email confirm box to that which they entered first.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_notactivated','This template is displayed when a user tries to access the user panel, and has not yet activated their email address.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_email_taken','This template is displayed when a user tries to register with an email address that another member already has.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_field_long','This template is displayed when a user is registering or editing their profile and enters data greater than the max length of a custom field.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_invalid_cat','This template is displayed when a user specifies an invalid category to post a comment in.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_invalid_email','This template is displayed when a user enters an email address which is not valid.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_invalid_id','This template is displayed when the user specifies an invlaid id.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_invalid_link','this template is displayed when the user specifies an invalid link.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_invalid_rating','This template is displayed when a user tries to vote for something and specifies an invalid option.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_ip_banned','This template is displayed when a user who\'s IP has been banned tries to view the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_memberlist_disabled','This template is displayed when a user tries to access the member list and it is disabled in the site options.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_module_disabled','This template is displayed when a user tries to access a module which has been disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_no_anon_voting','This template is displayed when a user tries to vote and is not logged in when anonymous voting is not allowed.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_no_next_post','This page bit is displayed when a user tries to view the next post to the one they are viewing but there is no newer post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_no_perms','This template is displayed when a user tries to do an action they are not permitted to do.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_no_previous_post','This page bit is displayed when a user tries to view the previous post to the one they are viewing but there is no older post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_page','This template is used when there is an error on the site, it will output the error to the user. This template is the basic outline of the error page, containing the error message within.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_page_hidden','This page bit will be displayed when a user tries to view a page they do not have the permission to view.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_password_mismatch','This template is displayed when a user is registering and enters a different password in the password confirm box to that which they entered first.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_password_request_expired','This template is displayed when a user tries to reset their password using an activation id that has expired.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_pm_bounce','This template is displayed when a user tries to send a message to another user who cannot recieve them.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_pm_disabled','This is displayed when a user tries to access their private messages but has them turned off in their profile.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_pm_full','This template is displayed when a user tries to send a new private message and their pm in/outbox is full.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_pm_invalid_user','This template is displayed when a user tries to view a private message that is not theirs.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_pm_no_perms','This template is displayed when a user tries to access their private messages but do not have the permissions to do so.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_profile_disabled','This template is shown when a user tries to view a users profile but viewing of profiles has been disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_search_disabled','This template is displayed when a user tries to search the site but searching has been disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_server_busy','This template is displayed when there are too many users on the site causing it too slow.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_signup_disabled','This template is displayed when a user tries to register and registration is disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_site_closed','This template is displayed when the site is closed.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_stats_disabled','This template is displayed when a user tries to view the stats.php page and viewing of stats has been disabled.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_too_many_images','This template is displayed when a user includes too many images in their post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_username_taken','This template is displayed when a user tries to register with a username which is already taken.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_user_banned','This template is displayed when a banned user tries to access the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_user_long','This template is displayed when a user enters a username which is over the character limit.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_wrong_password','This template is displayed when a user is logging in and enters an invlaid password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','error_wrong_username','This template is displayed when a user is logging in and enters an invlaid username.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','help_faq','This will display a page showing answers to frequently asked questions to help the users.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','help_qhtml','This will display a page showing information about the quick HTML code help the users.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','help_smilie','This will display a page showing a list of all smilies to help the users.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','help_smilie_bit','This page bit will the indervidual smilies on the smilie list.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_empty','This page bit is displayed when there are no sub categories to list.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_image','This template is used to display the image along with each category on the category list page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_name_link','This page bit displays the category names on the listing page, it is used to give a link to the main page showing the news posts.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_name_nolink','This page bit displays the category names on the listing page, it is used when showing details about a category which is set not to display on the main page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_page','This template is used to display a page listing all of the news categories and their info.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_record','This template is used to display each category on the category list.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_catlist_sub_record','This page bit will display details about the sub categories on the category listing page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_custom_page','This page is displayed as a custom start page when it is set to display first (in site options).','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_home_page','This template is used on the front page of the site, displaying the news posts.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post','This template is used to display the news posts on the front page of the site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_comments_image','This template is the name of the image with the link to the comments. This will display when the comments are allowed.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_comments_image_lock','This template is the name of the image with the link to the comments. This will display when the comments are closed.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_logo','This template is used when a news post is displayed with a logo.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_logo_border','This template is used when a news post is displayed with a logo which has a border round it selected.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_no_comments','This template is used to show that there are no comments to a news post, it will be replaced by the last comment username when there is.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_post_read_more','This template is used when extended news is entered for a news post, providing a link to read more.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','main_news_sticky','This page bit is used to display sticky news posts on the main news page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_email_content','This template is the content of them email which will be used to email users containing the message from the sender.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_email_disabled','This template is displayed when a user tries to use the email form but dont have permission to do so, instead it will just display the email address as a link.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_email_form','This template is displayed so that a user can email another user.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_email_subject','This template is the subject of the email which will be sent to users by people using the email form.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_page','This template will display a list of all the members on your site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_record','This template is used to display the indervidual details about each member on the member list page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_record_email','This template will display a link to email a user on the member list page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_record_homepage','This template will display a link to a users homepage on the member list page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_search','This template will display a search form allowing the user to search the members table.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_list_search_blank','This template is displayed if a user conducts a member search and there are no results.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_profile_custom','This page bit will display details of a members custom fields on their profile page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_profile_email','This template is used to display a link to email a user on the profile page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_profile_homepage','This template is used to display a link to a users homepage on the profile pahe.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_profile_page','This template is used to display the profile about a certain member.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','member_profile_pm','This template will display a link to send the user a private message for users who are able to do so.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','menu_1','This page is the menu for the category called Main.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_announcement','This template will output the announcement for the news category the user is browsing.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_announcement_image','This template will output an image without a link next to the announcement, if there is an image entered.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_announcement_image_link','This template will output an image with a link next to the announcement, if there is an image link entered.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_cat_nav_link','This template displays the links to the different news sections on each page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_cat_nav_off','This page bit displays the name of the category which is being viewed on the category nav.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_footer','This template is the footer, displayed at the bottom of every page. \n \nNOTE DO NOT REMOVE THE COPYRIGHT NOTICE','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_forum_options','This template outputs options for the forums to be displayed on every page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_header','This template is the header, displayed at the top of every page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_module_link','Template is used to provide links to the modules that are on the site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_nav_bar','This template will display the nav bar at the top of the page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_nav_joiner','This template will join the links in the nav bar at the top of the page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_nav_link_off','This template is displayed for a link on the nav bar at the top of the page, when only the title is displayed, no link.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_nav_link_on','This template is displayed for a link on the nav bar at the top of the page, where an actual link is required.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_curr_page','This template displays the current page number.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_first_link','This template displays a link to the very first page of the set,.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_last_link','This template displays a link to the very last page of the set,.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_main','This template displays the page navigation, shown where there are multiple pages for search results etc. This contains the seperate page links as variables.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_next_link','This template displays a link to the next page to the current one the user is on.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_page_nav_prev_link','This template displays a link to the previous page to the current one the user is on.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_recent_post_header','This template is the header displayed at the top of the recent posts.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_recent_post_link','This template displays the links to the comment pages for the recent post display.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_sitejump_cat','This page bit will display the indervidual categories in the site jump.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_sitejump_main','This page bit will display the outline of the site jump.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_sitejump_news','This page bit will display the news posts in the site jump.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_stats_forum','This template is displayed on every page (when forum stats are enabled in the category being browsed) containing stats about the forum.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_stats_site','This template is displayed on every page (when stats are enable in the category being browsed) containing the site counter and users online.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_theme_selector','This template provides the selector for the site styles, it is the parent drop down box which will be filled by the options.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_theme_selector_option','This template provides the indervidual options for the style selector allowing the user to choose which style they wish to use.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_username_email','This template will be used to display a persons name whent they post comments or news etc and provide a link to their email.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_username_noemail','This template will be used to display a persons name whent they post comments or news etc, it is used when no email address is given.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_username_profile','This template will be used to display a persons name whent they post comments or news etc and provide a link to their profile.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_welcometext_logged_in','This template is the welcome text displayed for users who are logged in.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','misc_welcometext_logged_out','This template is the welcome text displayed for users who are either not registered or not logged in to the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_options_option','This template is used to display the poll options on every page so a user can vote for the poll from any page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_options_table','This template is the table in which the poll will be displayed on all pages when the user has not already voted.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_results_option','This template is used to display the poll results for each option on every page.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_results_table','This template is the table in which the poll will be displayed on all pages when the user has already voted.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_view_results','This template displays all the polls that have been on the site from the past, this is the main page for this and contiains all the data about the polls.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_view_results_option','This template is used to display the poll results for each option on the page showing all the polls from the past on the site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','poll_view_results_table','This template is used to display the polls on the page showing all of the polls.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','print_news','This template is displayed so that a user can print out a news post, ie there are only a few images and simple text.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','print_news_comment','This template is used to display the comments on the print post page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','print_news_comment_child','This template is used to display the comments which are replies to other comments on the print post page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','print_news_comment_parent','This template is used to display the comments which have replies on the print post page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','print_news_post','This template is used to display the news post on the print post page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_acitvation_resent','This template is displayed when the user is being redirected after a new activation id has been sent to a new user.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_activation_complete','This template is displayed when the user is being redirected after email activation is complete.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_comment_edit','This template is displayed when the user is being redirected after editing a comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_comment_new','This template is displayed when the user is being redirected after posting a new comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_comment_report','This template is displayed when the user is being redirected after they have reported a comment.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_comment_sub','This template is displayed when the user is being redirected after they have subscribed to a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_comment_usub','This template is displayed when the user is being redirected after they have unsubscribed from a news post.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_login','This template is displayed when the user is being redirected after Logging in.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_logout','This template is displayed when the user is being redirected after logging out.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_member_email','This template is displayed when the user is being redirected after emailing a member.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_page','This template is displayed after a user has submitted something tot he site, it will redirect them to the correct page.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_pm_delete','This template is displayed when the user is being redirected after delete a private message.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_pm_sent','This template is displayed when the user is being redirected after they have sent a private message.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_profile_updated','This template is displayed when the user is being redirected after they have updated their profile.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_pwd_forgot','This template is displayed when the user is being redirected after an email has been sent to auser containing details how to reset their password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_pwd_reset','This template is displayed when the user is being redirected after they have reset their password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_pwd_updated','This template is displayed when the user is being redirected after they have updated their password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_registration_done','This template is displayed when the user is being redirected after registering with the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','redirect_voted','This template is displayed when the user is being redirected after voting for an article or poll.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_activation_msg','This template is emailed in the main body of the email, to a new user with details of how to activate their account.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_activation_subject','This template is the subject of the email which is sent to new users to give them details about activating their account.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_details_msg','This template is the body of the email which is sent to a user, after their account has been activated, confirming their login details.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_details_subject','This template is the subject of the email which is sent to a user, after their account has been activated, confirming their login details.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_moderated','This page is sent in the body of an email to users who have been moderated by staff.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_mod_msg','This page is sent in the body of an email to users after they have activated their email if their account still requires admin moderation.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_mod_subject','This page is sent as the subject of an email to users after they have activated their email if their account still requires admin moderation.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_newuser_msg','This page is sent in the body of an email to staff after a new user registeres requiring moderation.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_email_newuser_subject','This page is sent as the subject of an email to staff after a new user registeres requiring moderation.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_form','This template displays the form allowing users to register with your site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_form_custom_field','This template will display a text box for the custom profile fields you use, allowing the user to enter data into them.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','register_lost_activation','This page will display a form allowing users to request new activation details be sent to them.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_page','This template is the search form the user will use to search the site.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_page_cat_option','This template displays the options on the search page allowing the user to search specific news categories.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_results_article','This template will contain all the articles found by the search.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_results_article_record','This template displays the indervidual articles found by the search.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_results_news','This template will contain all the news posts found by the search.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_results_news_record','This template displays the indervidual news posts found by the search.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','search_results_page','This template is used as the main page for the search results, on it will be a list of the posts found by the users search.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','stats_browser_row','This template will display the info about the browsers for the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','stats_main_page','This template is displayed when a user views the site stats page. This template is the main page, in which the details will be displayed.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','stats_os_row','This template will display the info about the operating systems for the site.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_forget_request_emailmsg','This template will be emailed to users containing information on how to reset their password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_forget_request_emailsub','This template is the subject of the email which will be sent containing details on how to reset a users password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_forget_request_form','This template is displayed allowing a user to request that their password be sent to them when they forget it.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_forget_reset_emailmsg','This template will be emailed to a user contianing their new password after it has been reset.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_forget_reset_emailsub','This template is the subject of the email that will be sent to users containing their new password.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_first_unread_link','This template is displayed giving a link to the first unread post for the user to a news post which they have subscribed to.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_page','This template is displayed on the front page of the user control panel. It contains links to each part of the control panel and details about posts users have subscribed to.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_pm','This template is used to display a list of new private messages for users on the front page of the user panel.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_pm_empty','This template is displayed on the front page of the user panel when a user has no new private messages.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_post','This template is used to display the indervidual post details about posts which users have subcribed to.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_index_post_empty','This template is displayed on the front page of the user panel for users that are not subscribed to any posts.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_login_form','This template is displayed when a user logs in, it contains the form they will use to do so.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_email_msg','This template is sent as an email in the body to a user when they recieve a new private message.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_email_subject','This template is sent as an email in the subject to a user when they recieve a new private message.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_empty','This template is displayed when a user views their pm inbox or outbox and it is empty.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_form','This template will display a form allowing users to send a new pm to someone.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_inbox','This template will display a page allowing users to view their pm inbox.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_inbox_record','This template is used to display the indervidual messages in a users inbox.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_outbox','This template will display a page listing all messages sent by the user and the times they were read plus a list of messages that havent been read so far.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_outbox_record','This template is used to display the indervidual messages in a users outbox.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_show','This template is used to display indervidual private messages to the users.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pm_unread','This template will be displayed instead of the read date for private messages which have yet to be read by users.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_profile_edit','This template will allow users to update their profile.','1')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_profile_email_msg','This page is sent in the body of an email to users after they change their email address allowing them to validate it again.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_profile_email_subject','This page is sent as the subject of an email to users after they change their email address.','0')";
$query[news_page][] = "INSERT INTO news_page VALUES (NULL,'-1','user_pwd_edit','This template will display a form allowing users to alter their password.','1')";
$query[news_pageset][] = "INSERT INTO news_pageset VALUES (1,'Default')";
$query[news_poll][] = "INSERT INTO news_poll VALUES (NULL,'Do You Like VirtuaNews?','I love it','Its Good','Seen Better','Whats VirtuaNews?','','','','','','','0','0,0,0,0','1')";
$query[news_profilefield][] = "INSERT INTO news_profilefield VALUES (NULL,'Biography','What are you like?','0','0','1','1','250','40')";
$query[news_profilefield][] = "INSERT INTO news_profilefield VALUES (NULL,'Location','Where do you live?','0','0','1','2','250','40')";
$query[news_profilefield][] = "INSERT INTO news_profilefield VALUES (NULL,'Interests','What are your hobbies?','0','0','1','3','250','40')";
$query[news_profilefield][] = "INSERT INTO news_profilefield VALUES (NULL,'Occupation','What is your job?','0','0','1','4','250','40')";
$query[news_referer][] = "INSERT INTO news_referer VALUES ('Home','0')";
$query[news_referer][] = "INSERT INTO news_referer VALUES ('None','0')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'smile',':)','images/smilies/smile.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'frown',':(','images/smilies/frown.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'embarrasment',':o','images/smilies/redface.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'big grin',':D','images/smilies/biggrin.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'wink',';)','images/smilies/wink.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'stick out tongue',':p','images/smilies/tongue.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'cool',':cool:','images/smilies/cool.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'roll eyes (sarcastic)',':rolleyes:','images/smilies/rolleyes.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'mad',':mad:','images/smilies/mad.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'eek!',':eek:','images/smilies/eek.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'confused',':confused:','images/smilies/confused.gif')";
$query[news_smilie][] = "INSERT INTO news_smilie VALUES (NULL,'knockout',':knockout:','images/smilies/knockout.gif')";
$query[news_stats][] = "INSERT INTO news_stats VALUES ('" . time() . "','0','0','0')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','body','body style=\"background-color:#476297;margin:8px\"')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','bordercolor','#555555')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','charset','utf-8')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','csspath','images/blue/style.css')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','headerbgcolor','#FFFBF7')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','headertablewidth','100%')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','htmldoctype','')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','imagefolder','images/blue')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','logopath','images/blue/virtuanews_logo.gif')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','mainbgcolor','#EFF1F6')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','maincellpadding','3')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','maincellspacing','0')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','maintablewidth','95%')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','menubgcolor','#FFFBF7')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'-1','submitbutton','')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','body','body style=\"background-color:#666666;margin:8px\"')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','csspath','images/grey/style.css')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','headerbgcolor','#E2E2E2')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','imagefolder','images/grey')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','logopath','images/grey/virtuanews_logo.gif')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','mainbgcolor','#FFFFFF')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','menubgcolor','#E2E2E2')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'2','submitbutton','')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','body','body style=\"background-color:#666699;margin:8px\"')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','csspath','images/purple/style.css')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','headerbgcolor','#EAEDF7')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','imagefolder','images/purple')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','logopath','images/purple/virtuanews_logo.gif')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','mainbgcolor','#ffffff')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','menubgcolor','#EAEDF7')";
$query[news_style][] = "INSERT INTO news_style VALUES(NULL,'3','submitbutton','')";
$query[news_styleset][] = "INSERT INTO news_styleset VALUES('1','Blue')";
$query[news_styleset][] = "INSERT INTO news_styleset VALUES('2','Grey')";
$query[news_styleset][] = "INSERT INTO news_styleset VALUES('3','Purple')";
$query[news_theme][] = "INSERT INTO news_theme VALUES ('1','Blue','1','1','1')";
$query[news_theme][] = "INSERT INTO news_theme VALUES ('2','Grey','1','2','1')";
$query[news_theme][] = "INSERT INTO news_theme VALUES ('3','Purple','1','3','1')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Netscape','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Opera','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('MSIE','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Lynx','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('WebTV','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Konqueror','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Bot','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Other','browser','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Windows','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Mac','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Linux','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('SunOS','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('IRIX','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('BeOS','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('OS/2','os','0')";
$query[news_useragent][] = "INSERT INTO news_useragent VALUES ('Other','os','0')";
echo "
\n
Inserting the default data into the VirtuaNews tables:
\n";
while (list($table_name,$query_arr) = each($query)) {
echo "
\n
Adding $table_name Data
\n
\n";
foreach ($query_arr AS $query_text) {
query($query_text,0);
if (geterrno() != 0) {
echo "
\n
Error Adding $table_name Data Error Number: ".geterrno()." Error Description: ".geterrordesc()."
\n
\n";
$error = 1;
}
}
}
if ($error) {
echo "
\n
There has been an error inserting one or more of the records. Please examine this error and only continue if you are sure it will not effect the install process. Click here to continue or here to go to the VirtuaNews website
\n
\n";
} else {
echo "
\n
All tables created correctly, please click here to continue
\n";
}
}
if ($step == 6) {
echo "
\n
Inserting the default templates:
\n
\n";
if (!file_exists("admin/virtuanews.set")) {
echo "
\n
Cannot find the template file. Please ensure it is uploaded to admin/virtuanews.set When you are sure it is uploaded correctly please refresh this page and continue