Update of /cvsroot/mxbb/mx_smartor/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/admin Modified Files: admin_album_auth.php admin_album_cat.php admin_album_clearcache.php admin_album_clown_SP.php admin_album_config.php admin_album_personal.php Log Message: lang renaming... Index: admin_album_personal.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_personal.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_personal.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_personal.php 12 Apr 2005 19:51:47 -0000 1.4 *************** *** 1,205 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Personal_Galleries'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $template->set_filenames( array( 'body' => 'admin/album_personal_body.tpl' ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get the current album settings for non created personal galleries ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE . " ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get Album info", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $private_groups = explode( ',', $row['config_value'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // Since all personal galleries have the same private/moderator settings we fetch the first ! // personal gallery and not all. ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_parent = 0 and cat_user_id != 0 ! LIMIT 1"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! // --- Album Category Hierarchy : end ! for( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // --- removed ! // $template->assign_block_vars('grouprow', array( ! // --- added ! $template->assign_block_vars( 'creation_grouprow', array( ! // --- Album Category Hierarchy : end ! 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! 'PRIVATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $private_groups ) ) ? 'checked="checked"' : '' ! ) // end array ! ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! // --- Album Category Hierarchy : end ! } ! ! $template->assign_vars( array( 'L_ALBUM_PERSONAL_TITLE' => $lang['Album_personal_gallery_title'], ! 'L_ALBUM_PERSONAL_EXPLAIN' => $lang['Album_personal_gallery_explain'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Personal_Auth_Explain'], ! // --- Album Category Hierarchy : end ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_GROUP_CONTROL' => $lang['Auth_Control_Group'], ! 'L_GROUPS' => $lang['Usergroups'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! // --- Album Category Hierarchy : end ! 'L_PRIVATE_ACCESS' => $lang['Private_access'], ! 'S_ALBUM_ACTION' => append_sid( 'admin_album_personal.' . $phpEx ) ! ) ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! // Now we update the datatabase ! $private_groups = @implode( ',', $HTTP_POST_VARS['private'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! // --- Album Category Hierarchy : end ! // album config for non created personal galleries ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " ! SET config_value = '$private_groups' ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_user_id != 0"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update personal gallery group information table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : end ! // okay, return a message... ! $message = $lang['Album_personal_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_personal'], '<a href="' . append_sid( "admin_album_personal.$phpEx" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . '">', '</a>' ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,205 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Personal_Galleries'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $template->set_filenames( array( 'body' => 'admin/album_personal_body.tpl' ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get the current album settings for non created personal galleries ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE . " ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get Album info", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $private_groups = explode( ',', $row['config_value'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // Since all personal galleries have the same private/moderator settings we fetch the first ! // personal gallery and not all. ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_parent = 0 and cat_user_id != 0 ! LIMIT 1"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! // --- Album Category Hierarchy : end ! for( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // --- removed ! // $template->assign_block_vars('grouprow', array( ! // --- added ! $template->assign_block_vars( 'creation_grouprow', array( ! // --- Album Category Hierarchy : end ! 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! 'PRIVATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $private_groups ) ) ? 'checked="checked"' : '' ! ) // end array ! ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! // --- Album Category Hierarchy : end ! } ! ! $template->assign_vars( array( 'L_ALBUM_PERSONAL_TITLE' => $lang['Album_personal_gallery_title'], ! 'L_ALBUM_PERSONAL_EXPLAIN' => $lang['Album_personal_gallery_explain'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Personal_Auth_Explain'], ! // --- Album Category Hierarchy : end ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_GROUP_CONTROL' => $lang['Auth_Control_Group'], ! 'L_GROUPS' => $lang['Usergroups'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! // --- Album Category Hierarchy : end ! 'L_PRIVATE_ACCESS' => $lang['Private_access'], ! 'S_ALBUM_ACTION' => append_sid( 'admin_album_personal.' . $phpEx ) ! ) ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! // Now we update the datatabase ! $private_groups = @implode( ',', $HTTP_POST_VARS['private'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! // --- Album Category Hierarchy : end ! // album config for non created personal galleries ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " ! SET config_value = '$private_groups' ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_user_id != 0"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update personal gallery group information table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : end ! // okay, return a message... ! $message = $lang['Album_personal_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_personal'], '<a href="' . append_sid( "admin_album_personal.$phpEx" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . '">', '</a>' ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file Index: admin_album_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_auth.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_auth.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_auth.php 12 Apr 2005 19:51:46 -0000 1.4 *************** *** 1,206 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Tuesday, February 04, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Permissions'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! $album_user_id = ALBUM_PUBLIC_GALLERY; ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! /* // Build the category selector ! $sql = "SELECT cat_id, cat_title, cat_order ! FROM ". ALBUM_CAT_TABLE ." ! ORDER BY cat_order ASC"; ! if( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get Category list', '', __LINE__, __FILE__, $sql); ! } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! $catrows[] = $row; ! } ! ! for ($i = 0; $i < count($catrows); $i++) ! { ! $template->assign_block_vars('catrow', array( ! 'CAT_ID' => $catrows[$i]['cat_id'], ! 'CAT_TITLE' => $catrows[$i]['cat_title']) ! ); ! } ! */ ! album_read_tree(); ! $s_album_cat_list = album_get_tree_option( ALBUM_ROOT_CATEGORY, ALBUM_AUTH_VIEW, ALBUM_SELECTBOX_INCLUDE_ALL | ALBUM_SELECTBOX_INCLUDE_ROOT ); ! // --- Album Category Hierarchy : end ! $template->set_filenames( array( 'body' => 'admin/album_cat_select_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SELECT_CAT' => $lang['Select_a_Category'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx" ), ! 'L_LOOK_UP_CAT' => $lang['Look_up_Category'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 ! 'CAT_SELECT_TITLE' => $s_album_cat_list ) ! // --- Album Category Hierarchy : end ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! if ( !isset( $HTTP_GET_VARS['cat_id'] ) ) ! { ! $cat_id = intval( $HTTP_POST_VARS['cat_id'] ); ! ! $template->set_filenames( array( 'body' => 'admin/album_auth_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! ! 'L_GROUPS' => $lang['Usergroups'], ! ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx?cat_id=$cat_id" ), ! ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get info of this cat ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! ! for ( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! } ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! $cat_id = intval( $HTTP_GET_VARS['cat_id'] ); ! ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // okay, return a message... ! $message = $lang['Album_Auth_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_auth'], '<a href="' . append_sid( "admin_album_auth.$phpEx" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . '">', '</a>' ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,206 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Tuesday, February 04, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Permissions'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! $album_user_id = ALBUM_PUBLIC_GALLERY; ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! /* // Build the category selector ! $sql = "SELECT cat_id, cat_title, cat_order ! FROM ". ALBUM_CAT_TABLE ." ! ORDER BY cat_order ASC"; ! if( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get Category list', '', __LINE__, __FILE__, $sql); ! } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! $catrows[] = $row; ! } ! ! for ($i = 0; $i < count($catrows); $i++) ! { ! $template->assign_block_vars('catrow', array( ! 'CAT_ID' => $catrows[$i]['cat_id'], ! 'CAT_TITLE' => $catrows[$i]['cat_title']) ! ); ! } ! */ ! album_read_tree(); ! $s_album_cat_list = album_get_tree_option( ALBUM_ROOT_CATEGORY, ALBUM_AUTH_VIEW, ALBUM_SELECTBOX_INCLUDE_ALL | ALBUM_SELECTBOX_INCLUDE_ROOT ); ! // --- Album Category Hierarchy : end ! $template->set_filenames( array( 'body' => 'admin/album_cat_select_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SELECT_CAT' => $lang['Select_a_Category'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx" ), ! 'L_LOOK_UP_CAT' => $lang['Look_up_Category'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 ! 'CAT_SELECT_TITLE' => $s_album_cat_list ) ! // --- Album Category Hierarchy : end ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! if ( !isset( $HTTP_GET_VARS['cat_id'] ) ) ! { ! $cat_id = intval( $HTTP_POST_VARS['cat_id'] ); ! ! $template->set_filenames( array( 'body' => 'admin/album_auth_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! ! 'L_GROUPS' => $lang['Usergroups'], ! ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx?cat_id=$cat_id" ), ! ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get info of this cat ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! ! for ( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! } ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! $cat_id = intval( $HTTP_GET_VARS['cat_id'] ); ! ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // okay, return a message... ! $message = $lang['Album_Auth_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_auth'], '<a href="' . append_sid( "admin_album_auth.$phpEx" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . '">', '</a>' ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file Index: admin_album_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_config.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_config.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_config.php 12 Apr 2005 19:51:47 -0000 1.4 *************** *** 1,315 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Configuration std'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! // Pull all config data ! ! $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = isset( $HTTP_POST_VARS['submit'] ) ? str_replace( "'", "\'", $config_value ) : $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . append_sid( "admin_album_config.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! } ! ! $template->set_filenames( array( "body" => "admin/album_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_CONFIG' => $lang['Album_config'], ! 'L_ALBUM_CONFIG_EXPLAIN' => $lang['Album_config_explain'], ! 'S_ALBUM_CONFIG_ACTION' => append_sid( 'admin_album_config.' . $phpEx ), ! ! 'MAX_PICS' => $new['max_pics'], ! 'MAX_FILE_SIZE' => $new['max_file_size'], ! 'MAX_WIDTH' => $new['max_width'], ! 'MAX_HEIGHT' => $new['max_height'], ! 'ROWS_PER_PAGE' => $new['rows_per_page'], ! 'COLS_PER_PAGE' => $new['cols_per_page'], ! 'THUMBNAIL_QUALITY' => $new['thumbnail_quality'], ! 'THUMBNAIL_SIZE' => $new['thumbnail_size'], ! 'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'], ! ! 'USER_PICS_LIMIT' => $new['user_pics_limit'], ! 'MOD_PICS_LIMIT' => $new['mod_pics_limit'], ! ! 'THUMBNAIL_CACHE_ENABLED' => ( $new['thumbnail_cache'] == 1 ) ? 'checked="checked"' : '', ! 'THUMBNAIL_CACHE_DISABLED' => ( $new['thumbnail_cache'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'INDEX_SHOW_SUBCATS_ENABLED' => ( $new['show_index_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_SUBCATS_DISABLED' => ( $new['show_index_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_ENABLED' => ( $new['show_index_thumb'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_DISABLED' => ( $new['show_index_thumb'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_ENABLED' => ( $new['show_index_total_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_DISABLED' => ( $new['show_index_total_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_ENABLED' => ( $new['show_index_total_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_DISABLED' => ( $new['show_index_total_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_ENABLED' => ( $new['show_index_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_DISABLED' => ( $new['show_index_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_ENABLED' => ( $new['show_index_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_DISABLED' => ( $new['show_index_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_ENABLED' => ( $new['show_index_last_comment'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_DISABLED' => ( $new['show_index_last_comment'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_ENABLED' => ( $new['show_index_last_pic'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_DISABLED' => ( $new['show_index_last_pic'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_ENABLED' => ( $new['line_break_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_DISABLED' => ( $new['line_break_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED' => ( $new['show_personal_gallery_link'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED' => ( $new['show_personal_gallery_link'] == 0 ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ID' => ( $new['album_category_sorting'] == 'cat_id' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_NAME' => ( $new['album_category_sorting'] == 'cat_title' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_ORDER' => ( $new['album_category_sorting'] == 'cat_order' ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ASC' => ( $new['album_category_sorting_direction'] == 'ASC' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_DESC' => ( $new['album_category_sorting_direction'] == 'DESC' ) ? 'checked="checked"' : '', ! ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['personal_show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['personal_show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_ENABLED' => ( $new['personal_allow_gallery_mod'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_DISABLED' => ( $new['personal_allow_gallery_mod'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_ENABLED' => ( $new['personal_allow_sub_categories'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_DISABLED' => ( $new['personal_allow_sub_categories'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUB_GALLERY_LIMIT' => $new['personal_sub_category_limit'], ! 'PERSONAL_SHOW_SUBCATS_ENABLED' => ( $new['personal_show_subcats_in_index'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_SUBCATS_DISABLED' => ( $new['personal_show_subcats_in_index'] == 0 ) ? 'checked="checked"' : '', ! // --- version : 1.2.0 ! 'ALBUM_DEBUG_MODE_ENABLED' => ( $new['album_debug_mode'] == 1 ) ? 'checked="checked"' : '', ! 'ALBUM_DEBUG_MODE_DISABLED' => ( $new['album_debug_mode'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_ALL_PICS_ENABLED' => ( $new['show_all_in_personal_gallery'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_ALL_PICS_DISABLED' => ( $new['show_all_in_personal_gallery'] == 0 ) ? 'checked="checked"' : '', ! 'NEW_PIC_CHECK_INTERVAL' => $new['new_pic_check_interval'], ! // --- version : 1.3.0 ! 'INDEX_SUPERCELLS_ENABLED' => ( $new['index_enable_supercells'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SUPERCELLS_DISABLED' => ( $new['index_enable_supercells'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : end ! 'JPG_ENABLED' => ( $new['jpg_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'JPG_DISABLED' => ( $new['jpg_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'PNG_ENABLED' => ( $new['png_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'PNG_DISABLED' => ( $new['png_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'GIF_ENABLED' => ( $new['gif_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'GIF_DISABLED' => ( $new['gif_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'PIC_DESC_MAX_LENGTH' => $new['desc_length'], ! ! 'HOTLINK_PREVENT_ENABLED' => ( $new['hotlink_prevent'] == 1 ) ? 'checked="checked"' : '', ! 'HOTLINK_PREVENT_DISABLED' => ( $new['hotlink_prevent'] == 0 ) ? 'checked="checked"' : '', ! ! 'HOTLINK_ALLOWED' => $new['hotlink_allowed'], ! ! 'PERSONAL_GALLERY_USER' => ( $new['personal_gallery'] == ALBUM_USER ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_PRIVATE' => ( $new['personal_gallery'] == ALBUM_PRIVATE ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_ADMIN' => ( $new['personal_gallery'] == ALBUM_ADMIN ) ? 'checked="checked"' : '', ! ! 'PERSONAL_GALLERY_VIEW_ALL' => ( $new['personal_gallery_view'] == ALBUM_GUEST ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_VIEW_REG' => ( $new['personal_gallery_view'] == ALBUM_USER ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_VIEW_PRIVATE' => ( $new['personal_gallery_view'] == ALBUM_PRIVATE ) ? 'checked="checked"' : '', ! ! 'RATE_ENABLED' => ( $new['rate'] == 1 ) ? 'checked="checked"' : '', ! 'RATE_DISABLED' => ( $new['rate'] == 0 ) ? 'checked="checked"' : '', ! ! 'RATE_SCALE' => $new['rate_scale'], ! ! 'COMMENT_ENABLED' => ( $new['comment'] == 1 ) ? 'checked="checked"' : '', ! 'COMMENT_DISABLED' => ( $new['comment'] == 0 ) ? 'checked="checked"' : '', ! ! 'NO_GD' => ( $new['gd_version'] == 0 ) ? 'checked="checked"' : '', ! 'GD_V1' => ( $new['gd_version'] == 1 ) ? 'checked="checked"' : '', ! 'GD_V2' => ( $new['gd_version'] == 2 ) ? 'checked="checked"' : '', ! ! 'SORT_TIME' => ( $new['sort_method'] == 'pic_time' ) ? 'selected="selected"' : '', ! 'SORT_PIC_TITLE' => ( $new['sort_method'] == 'pic_title' ) ? 'selected="selected"' : '', ! 'SORT_USERNAME' => ( $new['sort_method'] == 'pic_user_id' ) ? 'selected="selected"' : '', ! 'SORT_VIEW' => ( $new['sort_method'] == 'pic_view_count' ) ? 'selected="selected"' : '', ! 'SORT_RATING' => ( $new['sort_method'] == 'rating' ) ? 'selected="selected"' : '', ! 'SORT_COMMENTS' => ( $new['sort_method'] == 'comments' ) ? 'selected="selected"' : '', ! 'SORT_NEW_COMMENT' => ( $new['sort_method'] == 'new_comment' ) ? 'selected="selected"' : '', ! ! 'SORT_ASC' => ( $new['sort_order'] == 'ASC' ) ? 'selected="selected"' : '', ! 'SORT_DESC' => ( $new['sort_order'] == 'DESC' ) ? 'selected="selected"' : '', ! ! 'FULLPIC_POPUP_ENABLED' => ( $new['fullpic_popup'] == 1 ) ? 'checked="checked"' : '', ! 'FULLPIC_POPUP_DISABLED' => ( $new['fullpic_popup'] == 0 ) ? 'checked="checked"' : '', ! ! 'S_GUEST' => ALBUM_GUEST, ! 'S_USER' => ALBUM_USER, ! 'S_PRIVATE' => ALBUM_PRIVATE, ! 'S_MOD' => ALBUM_MOD, ! 'S_ADMIN' => ALBUM_ADMIN, ! ! 'L_MAX_PICS' => $lang['Max_pics'], ! 'L_MAX_FILE_SIZE' => $lang['Max_file_size'], ! 'L_MAX_WIDTH' => $lang['Max_width'], ! 'L_MAX_HEIGHT' => $lang['Max_height'], ! 'L_USER_PICS_LIMIT' => $lang['User_pics_limit'], ! 'L_MOD_PICS_LIMIT' => $lang['Moderator_pics_limit'], ! 'L_ROWS_PER_PAGE' => $lang['Rows_per_page'], ! 'L_COLS_PER_PAGE' => $lang['Cols_per_page'], ! 'L_MANUAL_THUMBNAIL' => $lang['Manual_thumbnail'], ! 'L_THUMBNAIL_QUALITY' => $lang['Thumbnail_quality'], ! 'L_THUMBNAIL_SIZE' => $lang['Thumbnail_size'], ! 'L_THUMBNAIL_CACHE' => $lang['Thumbnail_cache'], ! 'L_JPG_ALLOWED' => $lang['JPG_allowed'], ! 'L_PNG_ALLOWED' => $lang['PNG_allowed'], ! 'L_GIF_ALLOWED' => $lang['GIF_allowed'], ! 'L_PIC_DESC_MAX_LENGTH' => $lang['Pic_Desc_Max_Length'], ! 'L_HOTLINK_PREVENT' => $lang['Hotlink_prevent'], ! 'L_HOTLINK_ALLOWED' => $lang['Hotlink_allowed'], ! 'L_PERSONAL_GALLERY' => $lang['Personal_gallery'], ! 'L_PERSONAL_GALLERY_LIMIT' => $lang['Personal_gallery_limit'], ! 'L_PERSONAL_GALLERY_VIEW' => $lang['Personal_gallery_view'], ! 'L_RATE_SYSTEM' => $lang['Rate_system'], ! 'L_RATE_SCALE' => $lang['Rate_Scale'], ! 'L_COMMENT_SYSTEM' => $lang['Comment_system'], ! 'L_GD_VERSION' => $lang['GD_version'], ! 'L_THUMBNAIL_SETTINGS' => $lang['Thumbnail_Settings'], ! 'L_EXTRA_SETTINGS' => $lang['Extra_Settings'], ! 'L_DEFAULT_SORT_METHOD' => $lang['Default_Sort_Method'], ! 'L_TIME' => $lang['Time'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_USERNAME' => $lang['Sort_Username'], ! 'L_VIEW' => $lang['View'], ! 'L_RATING' => $lang['Rating'], ! 'L_COMMENTS' => $lang['Comments'], ! 'L_NEW_COMMENT' => $lang['New_Comment'], ! 'L_DEFAULT_SORT_ORDER' => $lang['Default_Sort_Order'], ! 'L_ASC' => $lang['Sort_Ascending'], ! 'L_DESC' => $lang['Sort_Descending'], ! 'L_FULLPIC_POPUP' => $lang['Fullpic_Popup'], ! 'L_GUEST' => $lang['Forum_ALL'], ! 'L_REG' => $lang['Forum_REG'], ! 'L_PRIVATE' => $lang['Forum_PRIVATE'], ! 'L_MOD' => $lang['Forum_MOD'], ! 'L_ADMIN' => $lang['Forum_ADMIN'], ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'L_ALBUM_INDEX_SETTINGS' => $lang['Album_Index_Settings'], ! 'L_INDEX_SHOW_SUBCATS' => $lang['Show_Index_Subcats'], ! 'L_INDEX_THUMB' => $lang['Show_Index_Thumb'], ! 'L_INDEX_TOTAL_PICS' => $lang['Show_Index_Total_Pics'], ! 'L_INDEX_TOTAL_COMMENTS' => $lang['Show_Index_Total_Comments'], ! 'L_INDEX_PICS' => $lang['Show_Index_Pics'], ! 'L_INDEX_COMMENTS' => $lang['Show_Index_Comments'], ! 'L_INDEX_LAST_COMMENT' => $lang['Show_Index_Last_Comment'], ! 'L_INDEX_LAST_PIC' => $lang['Show_Index_Last_Pic'], ! 'L_INDEX_LINEBREAK_SUBCATS' => $lang['Line_Break_Subcats'], ! 'L_SHOW_RECENT_IN_SUBCATS' => $lang['Show_Recent_In_Subcats'], ! 'L_SHOW_RECENT_INSTEAD_OF_NOPICS' => $lang['Show_Recent_Instead_of_NoPics'], ! ! 'L_SHOW_PERSONAL_GALLERY_LINK' => $lang['Show_Personal_Gallery_Link'], ! ! 'L_ALBUM_CATEGORY_SORTING' => $lang['Album_Category_Sorting'], ! 'L_ALBUM_CATEGORY_SORTING_ID' => $lang['Album_Category_Sorting_Id'], ! 'L_ALBUM_CATEGORY_SORTING_NAME' => $lang['Album_Category_Sorting_Name'], ! 'L_ALBUM_CATEGORY_SORTING_ORDER' => $lang['Album_Category_Sorting_Order'], ! ! 'L_ALBUM_CATEGORY_DIRECTION' => $lang['Album_Category_Sorting_Direction'], ! 'L_ALBUM_CATEGORY_SORTING_ASC' => $lang['Album_Category_Sorting_Asc'], ! 'L_ALBUM_CATEGORY_SORTING_DESC' => $lang['Album_Category_Sorting_Desc'], ! ! 'L_ALBUM_PERSONAL_GALLERY_SETTINGS' => $lang['Album_Personal_Settings'], ! 'L_ALBUM_PERSONAL_MODERATOR' => $lang['Personal_Gallery_MOD'], ! 'L_PERSONAL_SUB_GALLERY_LIMIT' => $lang['Personal_Sub_Cat_Limit'], ! 'L_PERSONAL_ALLOW_SUB_GATTEGORY' => $lang['User_Can_Create_Personal_SubCats'], ! 'L_PERSONAL_SHOW_SUBCATS' => $lang['Show_Personal_Sub_Cats'], ! 'L_PERSONAL_SHOW_RECENT_IN_SUBCATS' => $lang['Show_Recent_In_Personal_Subcats'], ! 'L_PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS' => $lang['Show_Recent_Instead_of_Personal_NoPics'], ! // --- version : 1.2.0 ! 'L_ALBUM_DEBUG_MODE' => $lang['Album_debug_mode'], ! 'L_PERSONAL_SHOW_ALL_PICS' => $lang['Enable_Show_All_Pics'], ! ! 'L_NEW_PIC_CHECK_INTERVAL' => $lang['New_Pic_Check_Interval'], ! 'L_NEW_PIC_CHECK_INTERVAL_DESC' => $lang['New_Pic_Check_Interval_Desc'], ! // --- version : 1.3.0 ! 'L_ENABLE_SUPERCELLS' => $lang['Enable_Index_Supercells'], ! // --- Album Category Hierarchy : end ! 'L_DISABLED' => $lang['Disabled'], ! 'L_ENABLED' => $lang['Enabled'], ! 'L_YES' => $lang['Yes'], ! 'L_NO' => $lang['No'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'] ) ! ); ! ! $template->pparse( "body" ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,315 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Configuration std'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! // Pull all config data ! ! $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = isset( $HTTP_POST_VARS['submit'] ) ? str_replace( "'", "\'", $config_value ) : $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . append_sid( "admin_album_config.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); ! ! mx_message_die( GENERAL_MESSAGE, $message ); ! } ! } ! ! $template->set_filenames( array( "body" => "admin/album_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_CONFIG' => $lang['Album_config'], ! 'L_ALBUM_CONFIG_EXPLAIN' => $lang['Album_config_explain'], ! 'S_ALBUM_CONFIG_ACTION' => append_sid( 'admin_album_config.' . $phpEx ), ! ! 'MAX_PICS' => $new['max_pics'], ! 'MAX_FILE_SIZE' => $new['max_file_size'], ! 'MAX_WIDTH' => $new['max_width'], ! 'MAX_HEIGHT' => $new['max_height'], ! 'ROWS_PER_PAGE' => $new['rows_per_page'], ! 'COLS_PER_PAGE' => $new['cols_per_page'], ! 'THUMBNAIL_QUALITY' => $new['thumbnail_quality'], ! 'THUMBNAIL_SIZE' => $new['thumbnail_size'], ! 'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'], ! ! 'USER_PICS_LIMIT' => $new['user_pics_limit'], ! 'MOD_PICS_LIMIT' => $new['mod_pics_limit'], ! ! 'THUMBNAIL_CACHE_ENABLED' => ( $new['thumbnail_cache'] == 1 ) ? 'checked="checked"' : '', ! 'THUMBNAIL_CACHE_DISABLED' => ( $new['thumbnail_cache'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'INDEX_SHOW_SUBCATS_ENABLED' => ( $new['show_index_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_SUBCATS_DISABLED' => ( $new['show_index_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_ENABLED' => ( $new['show_index_thumb'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_DISABLED' => ( $new['show_index_thumb'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_ENABLED' => ( $new['show_index_total_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_DISABLED' => ( $new['show_index_total_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_ENABLED' => ( $new['show_index_total_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_DISABLED' => ( $new['show_index_total_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_ENABLED' => ( $new['show_index_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_DISABLED' => ( $new['show_index_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_ENABLED' => ( $new['show_index_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_DISABLED' => ( $new['show_index_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_ENABLED' => ( $new['show_index_last_comment'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_DISABLED' => ( $new['show_index_last_comment'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_ENABLED' => ( $new['show_index_last_pic'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_DISABLED' => ( $new['show_index_last_pic'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_ENABLED' => ( $new['line_break_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_DISABLED' => ( $new['line_break_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED' => ( $new['show_personal_gallery_link'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED' => ( $new['show_personal_gallery_link'] == 0 ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ID' => ( $new['album_category_sorting'] == 'cat_id' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_NAME' => ( $new['album_category_sorting'] == 'cat_title' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_ORDER' => ( $new['album_category_sorting'] == 'cat_order' ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ASC' => ( $new['album_category_sorting_direction'] == 'ASC' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_DESC' => ( $new['album_category_sorting_direction'] == 'DESC' ) ? 'checked="checked"' : '', ! ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['personal_show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['personal_show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_ENABLED' => ( $new['personal_allow_gallery_mod'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_DISABLED' => ( $new['personal_allow_gallery_mod'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_ENABLED' => ( $new['personal_allow_sub_categories'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_DI... [truncated message content] |