|
From: Jon O. <jon...@us...> - 2006-08-01 21:03:28
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23242/modules/mx_pafiledb Modified Files: db_install.php db_upgrade.php dload_lists.php Log Message: massive update Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_upgrade.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** db_upgrade.php 5 Jul 2006 22:50:21 -0000 1.17 --- db_upgrade.php 1 Aug 2006 21:03:24 -0000 1.18 *************** *** 216,221 **** --- 216,225 ---- // Appearance + $sql[] = "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_simple_navigation', '1') "; $sql[] = "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('cat_col', '2') "; + // Auth + $sql[] = "ALTER TABLE " . $mx_table_prefix . "pa_cat CHANGE auth_approval_groups auth_approval_edit tinyint(2) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "pa_auth CHANGE auth_approval_groups auth_approval_edit tinyint(2) NOT NULL default '0' "; } else Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_install.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** db_install.php 5 Jul 2006 22:50:21 -0000 1.25 --- db_install.php 1 Aug 2006 21:03:24 -0000 1.26 *************** *** 100,104 **** auth_delete_comment tinyint(2) NOT NULL default '0', auth_approval tinyint(2) NOT NULL default '0', ! auth_approval_groups tinyint(2) NOT NULL default '0', PRIMARY KEY (cat_id), --- 100,104 ---- auth_delete_comment tinyint(2) NOT NULL default '0', auth_approval tinyint(2) NOT NULL default '0', ! auth_approval_edit tinyint(2) NOT NULL default '0', PRIMARY KEY (cat_id), *************** *** 260,264 **** auth_delete_comment tinyint(1) DEFAULT '0' NOT NULL, auth_approval tinyint(1) DEFAULT '0' NOT NULL, ! auth_approval_groups tinyint(1) DEFAULT '0' NOT NULL, auth_mod tinyint(1) DEFAULT '1' NOT NULL, auth_search tinyint(1) DEFAULT '1' NOT NULL, --- 260,264 ---- auth_delete_comment tinyint(1) DEFAULT '0' NOT NULL, auth_approval tinyint(1) DEFAULT '0' NOT NULL, ! auth_approval_edit tinyint(1) DEFAULT '0' NOT NULL, auth_mod tinyint(1) DEFAULT '1' NOT NULL, auth_search tinyint(1) DEFAULT '1' NOT NULL, *************** *** 298,301 **** --- 298,302 ---- "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('settings_topnumber', '10')", + "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_simple_navigation', '1')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('cat_col', '2')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('settings_newdays', '1')", Index: dload_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_lists.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** dload_lists.php 5 Jul 2006 22:50:21 -0000 1.21 --- dload_lists.php 1 Aug 2006 21:03:24 -0000 1.22 *************** *** 109,113 **** { // $album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW ! if ( $pafiledb->auth[$row['cat_id']]['auth_view'] ) { $catrows[] = $row; --- 109,113 ---- { // $album_user_access = album_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW ! if ( $pafiledb->auth_user[$row['cat_id']]['auth_read'] ) { $catrows[] = $row; |