|
From: FlorinCB <ory...@us...> - 2008-08-31 13:30:14
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1805 Modified Files: db_install.php Log Message: test category added Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_install.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** db_install.php 29 Aug 2008 05:58:23 -0000 1.23 --- db_install.php 31 Aug 2008 13:30:06 -0000 1.24 *************** *** 32,35 **** --- 32,37 ---- } + global $mx_user, $client_ip; + $mx_module_version = '2.9.3'; $mx_module_copy = 'Mx-Publisher <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The Mx-Publisher Development Team</a>'; *************** *** 178,182 **** elseif( !$result = $db->sql_query("SELECT config_name from ".$mx_table_prefix."smartor_album_sp_config")) { ! $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); --- 180,184 ---- elseif( !$result = $db->sql_query("SELECT config_name from ".$mx_table_prefix."smartor_album_sp_config")) { ! $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); *************** *** 395,400 **** --- 397,408 ---- $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('midthumb_cache', '1')"; $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('jaime_lettering', '0')"; + $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_rate ADD rate_hon_point TINYINT(3) DEFAULT '0' NOT NULL"; + + $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_cat VALUES ('1', 'Test Category', 'Just a test category.', '', '10', '-1', '2', '0', '0', '3', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2', '0', '0')"; + + $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album VALUES ('1', 'mx_publisher_cms_testimage.png', 'mx_publisher_cms_testimage.png', 'Mxp Pic', 'Mx-Publisher Image', '" . $mx_user->data['user_id'] . "', '" . $mx_user->data['username'] . "', '" . $client_ip . "', '" . time() . "', '1', '1', '0', '1')"; + $sql[] = "UPDATE " . $mx_table_prefix . "module" . " |