L A Z A R U S   G U E S T B O O K

Could not select the database because: '.mysql_error().'

'); } } else { die ('

Could not connect to MySQL because: '.mysql_error().'

'); } // // End of MySQL database information check // // Just a counter $querycount = 0; $needbaseurl = 0; // // Create our list of required fields and their types ready to go in a query // $book_auth = array( 'ID' => 'ADD ID smallint(5) NOT NULL auto_increment', 'username' => 'ADD username varchar(60) NOT NULL default ""', 'password' => 'ADD password varchar(60) NOT NULL default ""', 'session' => 'ADD session varchar(32) NOT NULL default ""', 'last_visit' => 'ADD last_visit int(11) NOT NULL' ); $book_ban = array( 'ban_ip' => 'ADD ban_ip varchar(15) NOT NULL default ""' ); $book_com = array( 'com_id' => 'ADD com_id int(11) NOT NULL auto_increment', 'id' => 'ADD id int(11) NOT NULL default 0', 'name' => 'ADD name varchar(50) NOT NULL default ""', 'comments' => 'ADD comments text NOT NULL', 'host' => 'ADD host varchar(255) NOT NULL default ""', 'timestamp' => 'ADD timestamp int(11) NOT NULL default 0', 'comaccepted' => 'ADD comaccepted smallint(1) NOT NULL default 1', 'ip' => 'ADD ip varchar(16) NOT NULL default ""' ); $book_config = array( 'config_id' => 'ADD config_id smallint(4) NOT NULL auto_increment', 'agcode' => 'ADD agcode smallint(1) NOT NULL default 0', 'allow_html' => 'ADD allow_html smallint(1) NOT NULL default 0', 'offset' => 'ADD offset varchar(5) NOT NULL default 0', 'smilies' => 'ADD smilies smallint(1) NOT NULL default 1', 'dformat' => 'ADD dformat varchar(6) NOT NULL default ""', 'tformat' => 'ADD tformat varchar(4) NOT NULL default "24hr"', 'admin_mail' => 'ADD admin_mail varchar(50) NOT NULL default ""', 'book_mail' => 'ADD book_mail varchar(50) NOT NULL default ""', 'always_bookemail' => 'ADD always_bookemail smallint(1) NOT NULL default 0', 'notify_private' => 'ADD notify_private smallint(1) NOT NULL default 0', 'notify_admin' => 'ADD notify_admin smallint(1) NOT NULL default 0', 'notify_guest' => 'ADD notify_guest smallint(1) NOT NULL default 0', 'notify_mes' => 'ADD notify_mes text NOT NULL default ""', 'entries_per_page' => 'ADD entries_per_page int(6) NOT NULL default 10', 'show_ip' => 'ADD show_ip smallint(1) NOT NULL default 0', 'pbgcolor' => 'ADD pbgcolor varchar(7) NOT NULL default 0', 'text_color' => 'ADD text_color varchar(7) NOT NULL default 0', 'link_color' => 'ADD link_color varchar(7) NOT NULL default 0', 'width' => 'ADD width varchar(4) NOT NULL default 0', 'tb_font_1' => 'ADD tb_font_1 varchar(7) NOT NULL default ""', 'tb_font_2' => 'ADD tb_font_2 varchar(7) NOT NULL default ""', 'font_face' => 'ADD font_face varchar(60) NOT NULL default ""', 'tb_hdr_color' => 'ADD tb_hdr_color varchar(7) NOT NULL default ""', 'tb_bg_color' => 'ADD tb_bg_color varchar(7) NOT NULL default ""', 'tb_text' => 'ADD tb_text varchar(7) NOT NULL default ""', 'tb_color_1' => 'ADD tb_color_1 varchar(7) NOT NULL default ""', 'tb_color_2' => 'ADD tb_color_2 varchar(7) NOT NULL default ""', 'lang' => 'ADD lang varchar(30) NOT NULL default ""', 'min_text' => 'ADD min_text smallint(4) NOT NULL default 0', 'max_text' => 'ADD max_text int(6) NOT NULL default 0', 'max_word_len' => 'ADD max_word_len smallint(4) NOT NULL default 0', 'comment_pass' => 'ADD comment_pass varchar(50) NOT NULL default ""', 'need_pass' => 'ADD need_pass smallint(1) NOT NULL default 0', 'censor' => 'ADD censor smallint(1) NOT NULL default 0', 'flood_check' => 'ADD flood_check smallint(1) NOT NULL default 0', 'banned_ip' => 'ADD banned_ip smallint(1) NOT NULL default 0', 'flood_timeout' => 'ADD flood_timeout smallint(5) NOT NULL default 0', 'allow_icq' => 'ADD allow_icq smallint(1) NOT NULL default 0', 'allow_aim' => 'ADD allow_aim smallint(1) NOT NULL default 0', 'allow_gender' => 'ADD allow_gender smallint(1) NOT NULL default 0', 'allow_img' => 'ADD allow_img smallint(1) NOT NULL default 0', 'max_img_size' => 'ADD max_img_size int(10) NOT NULL default 0', 'img_width' => 'ADD img_width smallint(5) NOT NULL default 0', 'img_height' => 'ADD img_height smallint(5) NOT NULL default 0', 'thumbnail' => 'ADD thumbnail smallint(1) NOT NULL default 0', 'thumb_min_fsize' => 'ADD thumb_min_fsize int(10) NOT NULL default 0', 'encrypt_email' => 'ADD encrypt_email smallint(1) NOT NULL default 1', 'allow_yahoo' => 'ADD allow_yahoo smallint(1) NOT NULL default 0', 'allow_skype' => 'ADD allow_skype smallint(1) NOT NULL default 0', 'allow_msn' => 'ADD allow_msn smallint(1) NOT NULL default 0', 'allow_private' => 'ADD allow_private smallint(1) NOT NULL default 1', 'allowed_tags' => 'ADD allowed_tags varchar(30) NOT NULL default ""', 'require_checking' => 'ADD require_checking smallint(1) NOT NULL default 0', 'require_email' => 'ADD require_email smallint(1) NOT NULL default 0', 'html_email' => 'ADD html_email smallint(1) NOT NULL default 0', 'require_comchecking' => 'ADD require_comchecking smallint(1) NOT NULL default 0', 'notify_admin_com' => 'ADD notify_admin_com smallint(1) NOT NULL default 0', 'allow_imgagcode' => 'ADD allow_imgagcode smallint(1) NOT NULL default 0', 'allow_emailagcode' => 'ADD allow_emailagcode smallint(1) NOT NULL default 0', 'allow_urlagcode' => 'ADD allow_urlagcode smallint(1) NOT NULL default 0', 'allow_url' => 'ADD allow_url smallint(1) NOT NULL default 1', 'antibottest' => 'ADD antibottest smallint(1) NOT NULL default 0', 'bottestquestion' => 'ADD bottestquestion varchar(50) NOT NULL default ""', 'bottestanswer' => 'ADD bottestanswer varchar(20) NOT NULL default ""', 'use_regex' => 'ADD use_regex smallint(1) NOT NULL default 0', 'post_time_min' => 'ADD post_time_min smallint(2) NOT NULL default 10', 'post_time_max' => 'ADD post_time_max smallint(5) NOT NULL default 300', 'hide_comments' => 'ADD hide_comments smallint(1) NOT NULL default 1', 'allow_loc' => 'ADD allow_loc smallint(1) NOT NULL default 1', 'com_question' => 'ADD com_question varchar(50) NOT NULL default ""', 'antispam_word' => 'ADD antispam_word varchar(10) NOT NULL default "'.substr(md5(time()), 0, 5).'"', 'charset' => 'ADD charset varchar(20) NOT NULL default "utf-8"', 'captcha_noise' => 'ADD captcha_noise smallint(1) NOT NULL default 1', 'captcha_grid' => 'ADD captcha_grid smallint(1) NOT NULL default 1', 'captcha_grey' => 'ADD captcha_grey smallint(1) NOT NULL default 1', 'captcha_greytext' => 'ADD captcha_greytext smallint(1) NOT NULL default 1', 'ad_pos' => 'ADD ad_pos varchar(5) NOT NULL default 0', 'ad_code' => 'ADD ad_code text NOT NULL default ""', 'agcode_img_width' => 'ADD agcode_img_width smallint(5) NOT NULL default 300', 'agcode_img_height' => 'ADD agcode_img_height smallint(5) NOT NULL default 100', 'disablecomments' => 'ADD disablecomments smallint(1) NOT NULL default 0', 'base_url' => 'ADD base_url varchar(100) NOT NULL default ""' ); $book_data = array( 'id' => 'ADD id int(11) NOT NULL auto_increment', 'name' => 'ADD name varchar(50) NOT NULL default ""', 'gender' => 'ADD gender char(1) NOT NULL default ""', 'email' => 'ADD email varchar(60) NOT NULL default ""', 'url' => 'ADD url varchar(70) NOT NULL default ""', 'date' => 'ADD date int(11) NOT NULL default 0', 'location' => 'ADD location varchar(50) NOT NULL default ""', 'host' => 'ADD host varchar(255) NOT NULL default ""', 'browser' => 'ADD browser varchar(255) NOT NULL default ""', 'comment' => 'ADD comment text NOT NULL', 'icq' => 'ADD icq int(11) NOT NULL default 0', 'aim' => 'ADD aim varchar(70) NOT NULL default ""', 'msn' => 'ADD msn varchar(70) NOT NULL default ""', 'yahoo' => 'ADD yahoo varchar(40) NOT NULL default ""', 'skype' => 'ADD skype varchar(40) NOT NULL default ""', 'accepted' => 'ADD accepted smallint(1) NOT NULL default 1', 'ip' => 'ADD ip varchar(16) NOT NULL default ""' ); $book_private = array( 'id' => 'ADD id int(11) NOT NULL auto_increment', 'name' => 'ADD name varchar(50) NOT NULL default ""', 'gender' => 'ADD gender char(1) NOT NULL default ""', 'email' => 'ADD email varchar(60) NOT NULL default ""', 'url' => 'ADD url varchar(70) NOT NULL default ""', 'date' => 'ADD date int(11) NOT NULL default 0', 'location' => 'ADD location varchar(50) NOT NULL default ""', 'host' => 'ADD host varchar(255) NOT NULL default ""', 'browser' => 'ADD browser varchar(255) NOT NULL default ""', 'comment' => 'ADD comment text NOT NULL', 'icq' => 'ADD icq int(11) NOT NULL default 0', 'aim' => 'ADD aim varchar(70) NOT NULL default ""', 'msn' => 'ADD msn varchar(70) NOT NULL default ""', 'yahoo' => 'ADD yahoo varchar(40) NOT NULL default ""', 'skype' => 'ADD skype varchar(40) NOT NULL default ""', 'accepted' => 'ADD accepted smallint(1) NOT NULL default 1', 'ip' => 'ADD ip varchar(16) NOT NULL default ""' ); $book_ip = array( 'guest_ip' => 'ADD guest_ip varchar(15) NOT NULL default ""', 'timestamp' => 'ADD timestamp int(11) NOT NULL default 0' ); $book_pics = array( 'msg_id' => 'ADD msg_id int(11) NOT NULL default 0', 'book_id' => 'ADD book_id int(11) NOT NULL default 0', 'p_filename' => 'ADD p_filename varchar(100) NOT NULL default ""', 'p_size' => 'ADD p_size int(11) unsigned NOT NULL default 0', 'width' => 'ADD width int(11) unsigned NOT NULL default 0', 'height' => 'ADD height int(11) unsigned NOT NULL default 0' ); $book_smile = array( 'id' => 'ADD id int(11) NOT NULL auto_increment', 's_code' => 'ADD s_code varchar(20) NOT NULL default ""', 's_filename' => 'ADD s_filename varchar(60) NOT NULL default ""', 's_emotion' => 'ADD s_emotion varchar(60) NOT NULL default ""', 'width' => 'ADD width smallint(6) unsigned NOT NULL default 0', 'height' => 'ADD height smallint(6) unsigned NOT NULL default 0' ); $book_words = array( 'word' => 'ADD word varchar(30) NOT NULL default ""' ); // // Lets attach the real name of the tables to the arrays // $dbtables = array($GB_TBL['auth'] => $book_auth, $GB_TBL['ban'] => $book_ban, $GB_TBL['com'] => $book_com, $GB_TBL['cfg'] => $book_config, $GB_TBL['data'] => $book_data, $GB_TBL['priv'] => $book_private, $GB_TBL['ip'] => $book_ip, $GB_TBL['pics'] => $book_pics, $GB_TBL['smile'] => $book_smile, $GB_TBL['words'] => $book_words); // // Now we create the functions we will need // // My function to retrieve the list of fields in a table function fetch_fields($table = '') { global $book_config; if ($table == '') { die ('No table has been specified'); } $sql = 'SHOW COLUMNS FROM ' . $table; // Our query to retrieve the field data $result = mysql_query($sql); $fieldarray = array(); // Just initialise the array $thekey = ''; // and the variable for the field name for ($i = 0; $i < mysql_num_rows($result); $i++) { $row_array = mysql_fetch_row($result); if ($row_array[0] == 'LAST_VISIT') { $row_array[0] = 'last_visit'; } $fieldarray[$row_array[0]] = $row_array[1]; } return $fieldarray; } // Function to compare the existing fields with those we want to add function check_fields($tablearray = '', $table = '') { global $querycount; $querycount = count($table); if ($table == '') // $table is the table we are checking against such as book_auth { die ('No table has been specified'); } if (!is_array($tablearray)) { die ('It is not an array'); } // $tablearray is the array returned by the fetch_fields function foreach($tablearray as $fieldname => $fieldtype) { if(isset($table[$fieldname])) { $queryfieldtype = explode(' ' , $table[$fieldname]); // All we want is the fieldtype so extract it if($queryfieldtype[2] == $fieldtype || $queryfieldtype[2] . ' unsigned' == $fieldtype) { unset($table[$fieldname]); $querycount--; } else { // If the field exists but is not the correct type we need to change it not add it $table[$fieldname] = str_replace('ADD ', 'CHANGE ' . $fieldname . ' ', $table[$fieldname]); } } } return $table; } function check_index($table = '') { global $querycount; if ($table == '') // $table is the table we are checking against such as book_auth { die ('No table has been specified'); } $query = 'SHOW INDEX FROM '.$table; $result = mysql_query($query); $indexquery = 'ADD INDEX (`id`)'; while ($row = mysql_fetch_row($result)) { $indexquery = ($row[4] == 'id') ? '' : $indexquery; } if ($indexquery != '') { $querycount++; } return $indexquery; } $domain = ''; $directory = ''; if (isset($_SERVER['HTTP_HOST']) && !empty($_SERVER['HTTP_HOST'])) { $domain = $_SERVER['HTTP_HOST']; } elseif (isset($_SERVER['SERVER_NAME']) && !empty($_SERVER['SERVER_NAME'])) { $domain = $_SERVER['SERVER_NAME']; } if (isset($_SERVER['PHP_SELF']) && !empty($_SERVER['PHP_SELF'])) { $directory = $_SERVER['PHP_SELF']; } elseif (isset($_SERVER['REQUEST_URI']) && !empty($_SERVER['REQUEST_URI'])) { $directory = $_SERVER['REQUEST_URI']; } $baseurl = 'http://' . $domain . dirname($directory); if (empty($_GET['action'])) { ?>
LAZARUS INSTALLER

This will create the necessary tables in your database for Lazarus to work.

Your base url:

The base url is the web address of your Lazarus folder without the trailing slash (eg. http://yoursite.com/lazarusgb). This script has guessed what this may be and filled it in but you may need to correct this. If you are using Lazarus as a Nuke module the base url needs to be set to the address of your Nuke folder and not the address of the Lazarus folder.

Set username for admin:

Set password for admin:

LAZARUS SMARTUPDATER

The smartupdater allows you to update the database of any version of Lazarus or Advanced Guestbook (2.3 and over) to that used by the current version of Lazarus.

It does this by comparing your existing database tables with those used by Lazarus and then making the changes where necessary.

Once it has finished making any changes required it will optimise the guestbooks tables which can help improve performance.

Please note that if you have a database with a lot of entries it may take a while for the script to make any changes so be patient if nothing happens immediately.


'; foreach ($dbtables as $table => $fields ) { $dbtables[$table] = str_replace('ADD ', '', $dbtables[$table]); switch ($table) { case $GB_TBL['auth']: $dbtables[$table][] = 'PRIMARY KEY (ID)'; break; case $GB_TBL['com']: $dbtables[$table][] = 'INDEX (id)'; $dbtables[$table][] = 'PRIMARY KEY (com_id)'; break; case $GB_TBL['cfg']: $dbtables[$table][] = 'PRIMARY KEY (config_id)'; break; case $GB_TBL['data']: $dbtables[$table][] = 'PRIMARY KEY (id)'; break; case $GB_TBL['priv']: $dbtables[$table][] = 'PRIMARY KEY (id)'; break; case $GB_TBL['ip']: $dbtables[$table][] = 'KEY guest_ip (guest_ip)'; break; case $GB_TBL['pics']: $dbtables[$table][] = 'KEY msg_id (msg_id)'; $dbtables[$table][] = 'KEY book_id (book_id)'; break; case $GB_TBL['smile']: $dbtables[$table][] = 'PRIMARY KEY ip (id)'; break; default: break; } $dbtables[$table] = 'CREATE TABLE '.$table.' ('.implode(",\n ", $dbtables[$table]).')'; echo "\nCreating table ".$table."\n"; if (@mysql_query($dbtables[$table])) { echo 'DONE'; } else { echo 'ERROR!'; echo "\n\n\n
Error: ".mysql_error()."\nQuery: ".$dbtables[$table].'
'; } echo "\n"; } echo "\n

Populating Tables

\n\n"; $username = (!empty($_POST['username'])) ? $_POST['username'] : 'test'; $password = (!empty($_POST['password'])) ? $_POST['password'] : '123'; $base_url = (!empty($_POST['base_url'])) ? $_POST['base_url'] : $baseurl; if (!get_magic_quotes_gpc()) { addslashes($username); addslashes($password); addslashes($base_url); } // // Create our queries for insertion // $tbl_data[] = "INSERT INTO ".$GB_TBL['auth']." VALUES (1,'".$username."',PASSWORD('".$password."'),'cd2c6d5e457641991d52da8fb6d87c08',1013100791)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['ban']." VALUES ('123.123.123.123')"; $tbl_data[] = "INSERT INTO ".$GB_TBL['cfg']." VALUES (1, 1, 1, '0', 1, 'Euro', '24hr', 'root@localhost', '', 0, 0, 0, 0, 'Thank you for signing the guestbook.', 10, 1, '#FFFFFF', '#000000', '#006699', '95%', '11px', '10px', 'Verdana, Arial, Helvetica, sans-serif', '#7878BE', '#000000', '#FFFFFF', '#E8E8E8', '#F7F7F7', 'english', 6, 1500, 80, 'comment', 0, 1, 1, 1, 300, 1, 1, 1, 0, 120, 60, 60, 1, 12, 1, 1, 1, 1, 1, 'b,i,u', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 'What colour is the sky?', 'blue', 0, 10, 300, 1, 1, '', '".substr(md5(time()), 0, 5)."', 'utf-8', 1, 1, 1, 1, 0, '', 300, 100, 0, '".$base_url."')"; $tbl_data[] = "INSERT INTO ".$GB_TBL['words']." VALUES ('fuck')"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (1, ':-)', 'a1.gif', 'smile', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (2, ':-(', 'a2.gif', 'frown', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (3, ';-)', 'a3.gif', 'wink', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (4, ':o', 'a4.gif', 'embarrassment', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (5, ':D', 'a5.gif', 'big grin', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (6, ':p', 'a6.gif', 'razz (stick out tongue)', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (7, ':cool:', 'a7.gif', 'cool', 21, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (8, ':rolleyes:', 'a8.gif', 'roll eyes (sarcastic)', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (9, ':mad:', 'a9.gif', '#@*%!', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (10, ':eek:', 'a10.gif', 'eek!', 15, 15)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (11, ':confused:', 'a11.gif', 'confused', 15, 22)"; $tbl_data[] = "INSERT INTO ".$GB_TBL['smile']." (id, s_code, s_filename, s_emotion, width, height) VALUES (12, ':lol:', 'lol.gif', 'lol', 15, 15)"; // // Ok now we've made our queries // Lets create the tables // $errors = ''; $success_count = 0; for ($i=0;$i The errors and the queries that generated them are listed below

THIS FILE SHOULD BE DELETED FOR SECURITY REASONS

'); } else { ?>

Lazarus has been successsfully installed.

Login to the ADMIN section. If you did not specify a username and password on the previous page they will of been set to the defaults of test and 123

NOW DELETE THIS FILE FOR SECURITY REASONS

'; // // Lets run through the tables to see whats what // foreach ($dbtables as $tablename => $tablefields) { $thetables[] = '`'.$tablename.'`'; echo "
\n\n"; $existingfields = fetch_fields($tablename); // get a list of the fields that already exist in the database. $queryfields = check_fields($existingfields, $tablefields); // Remove any existing fields from our query and check that the others are the right type // // Check if we have already set the index for the comments table and if not then set it // if ($tablename == $GB_TBL['com']) { $needsindex = check_index($GB_TBL['com']); if ($needsindex != '') { $queryfields[] = $needsindex; } } // // Lets report what we are about to do // echo '\n"; if (!empty($queryfields)) { echo 'updating ... '; if (isset($queryfields['base_url'])) { $needbaseurl = 1; } $thequery = implode(', ', $queryfields); $thequery = 'ALTER TABLE '. $tablename . ' ' . $thequery; if (@mysql_query($thequery)) { echo ''; } else { echo ''; echo "\n\n\n'; } } else { echo ''; } echo "\n\n"; $querycount = 0; } echo "
Checking ".$tablename."'.$querycount.' '; echo ($querycount == 1) ? 'change': 'changes'; echo " required DONEERROR!
Error: ".mysql_error()."\nQuery: ".$thequery.'
skipping
\n
\n
\n"; // // If we had to add the base_url field then we need to also set it // if ($needbaseurl) { if($GB_PG['base_url'] != '') // Have the supplied a base_url in the config.inc.php file? { $query = 'UPDATE '.$GB_TBL['cfg'].' set base_url="'.$GB_PG['base_url'].'" WHERE (config_id = 1)'; @mysql_query($query); echo '

The base url is now located in General Settings. It has automatically been set to the base_url you have in your config.inc.php file.

'; echo $query; } else // If not then use the url of this script to guess the base url. { $query = 'UPDATE '.$GB_TBL['cfg'].' set base_url="'.$baseurl.'" WHERE (config_id = 1)'; @mysql_query($query); echo '

The base url is now located in General Settings. Since you had not specified a base_url in the config.inc.php file this script has guessed it based on the url of this script.
It is important that you log in and check that it is set right otherwise images and links may not work.

'; } } // // Optimise our tables and report on the outcome // $thetables = implode(', ', $thetables); echo '
Now optimising the tables to improve performance
'; if (@mysql_query('OPTIMIZE TABLE ' . $thetables)) { echo 'TABLES OPTIMISED SUCCESSFULLY'; } else { echo 'ERROR!
Error: '.mysql_error().'
'; } echo '
'; // // We have finished updating so lets report this fact // echo '

Thats all folks!

(The updater has finished)

NOW DELETE THIS FILE FOR SECURITY REASONS

'; } // // And thats the end of our PHP // ?>