|
From: Jon O. <jon...@us...> - 2006-06-30 21:11:02
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9308/modules/mx_smartor Modified Files: album.php album_lists.php db_install.php db_upgrade.php hierarchy_db_migrate.php Log Message: This module is really messy. I have done some general code cleanup and security scrutiny. Still, much to do... Index: album.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** album.php 17 Jun 2006 20:51:30 -0000 1.12 --- album.php 30 Jun 2006 21:10:55 -0000 1.13 *************** *** 9,12 **** --- 9,17 ---- */ + // +--------------------------------------------------------+ + // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | + // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | + // +--------------------------------------------------------+ + if ( !function_exists( 'read_block_config' ) ) { *************** *** 230,234 **** else { ! /* +---------------------------------------------------------- | Build Categories Index --- 235,240 ---- else { ! ! /* +---------------------------------------------------------- | Build Categories Index *************** *** 1014,1019 **** } ! $template->set_filenames( array( 'body' => 'album_index_body.tpl' ) ! ); if ( defined( 'ALBUM_SP_CONFIG_TABLE' ) ) --- 1020,1024 ---- } ! $template->set_filenames( array( 'body' => 'album_index_body.tpl' ) ); if ( defined( 'ALBUM_SP_CONFIG_TABLE' ) ) *************** *** 1057,1073 **** } ! $template->assign_vars( array( 'S_COLS' => $cols, ! 'S_COL_WIDTH' => $cols_width, ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', ! 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'], ! 'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Pics'], ! 'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Pics'], ! 'L_MOST_PUBLIC_PICS' => $lang['Most_Public_Pics'], ! 'L_NO_PICS' => $lang['No_Pics'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_VIEW' => $lang['View'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Posted'] ) ! ); } // it's a personal gallery, and in the root folder --- 1062,1079 ---- } ! $template->assign_vars( array( ! 'S_COLS' => $cols, ! 'S_COL_WIDTH' => $cols_width, ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', ! 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'], ! 'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Pics'], ! 'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Pics'], ! 'L_MOST_PUBLIC_PICS' => $lang['Most_Public_Pics'], ! 'L_NO_PICS' => $lang['No_Pics'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_VIEW' => $lang['View'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Posted'] ) ! ); } // it's a personal gallery, and in the root folder *************** *** 1101,1109 **** include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } - // +--------------------------------------------------------+ - // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | - // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | - // +--------------------------------------------------------+ } - ?> \ No newline at end of file --- 1107,1110 ---- Index: hierarchy_db_migrate.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/hierarchy_db_migrate.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** hierarchy_db_migrate.php 5 Apr 2006 23:03:48 -0000 1.3 --- hierarchy_db_migrate.php 30 Jun 2006 21:10:55 -0000 1.4 *************** *** 8,12 **** * */ ! define( 'IN_PORTAL', true ); $album_root_path = '../modules/mx_smartor/album_mod/'; --- 8,12 ---- * */ ! define( 'IN_PORTAL', true ); $album_root_path = '../modules/mx_smartor/album_mod/'; *************** *** 49,53 **** if ( $db->sql_numrows( $result ) == 0 ) ! { // mx_message_die(GENERAL_ERROR, 'There aren\'t any \'old\' personal galleries. Script is ending.'); echo '<li><font color="#0000FF"><b>NOTICE:</b></font> There aren\'t any \'old\' personal galleries to migrate. Script is ending.</li><br />'; --- 49,53 ---- if ( $db->sql_numrows( $result ) == 0 ) ! { // mx_message_die(GENERAL_ERROR, 'There aren\'t any \'old\' personal galleries. Script is ending.'); echo '<li><font color="#0000FF"><b>NOTICE:</b></font> There aren\'t any \'old\' personal galleries to migrate. Script is ending.</li><br />'; *************** *** 64,68 **** $sql = ""; for( $i = 0; $i < count( $personal_gallery_info ); $i++ ) ! { // check wheter the personal gallery root id already exists...it shouldn't tho'. $sql = "SELECT cat_id --- 64,68 ---- $sql = ""; for( $i = 0; $i < count( $personal_gallery_info ); $i++ ) ! { // check wheter the personal gallery root id already exists...it shouldn't tho'. $sql = "SELECT cat_id *************** *** 76,80 **** $error = $db->sql_error(); ! echo '<li>' . $sql . '<br /><font color="#FF0000"><b>ERROR:</b></font> ' . $error['message'] . '</li><br />'; // try the next personal gallery continue; --- 76,80 ---- $error = $db->sql_error(); ! echo '<li>' . $sql . '<br /><font color="#FF0000"><b>ERROR:</b></font> ' . $error['message'] . '</li><br />'; // try the next personal gallery continue; *************** *** 106,113 **** echo '<li>' . $sql . '<br /><font color="#FF0000"><b>ERROR:</b></font> ' . $error['message'] . '</li><br />'; echo ' Personal gallery was <b>NOT</b> created for user : \'' . $personal_gallery_info[$i]['pic_username'] . '\'<br />'; ! echo ' Please inform IdleVoid (the Author) about this, including the user name<br />'; // try the next personal gallery and by that skip the updating of this users personal gallery continue; ! } // get the newly created personal gallery root id. $sql = "SELECT cat_id --- 106,113 ---- echo '<li>' . $sql . '<br /><font color="#FF0000"><b>ERROR:</b></font> ' . $error['message'] . '</li><br />'; echo ' Personal gallery was <b>NOT</b> created for user : \'' . $personal_gallery_info[$i]['pic_username'] . '\'<br />'; ! echo ' Please inform IdleVoid (the Author) about this, including the user name<br />'; // try the next personal gallery and by that skip the updating of this users personal gallery continue; ! } // get the newly created personal gallery root id. $sql = "SELECT cat_id *************** *** 127,131 **** $row = $db->sql_fetchrow( $result ); ! $root_cat_id = $row['cat_id']; // move the pictures of this user into the $sql = "UPDATE " . ALBUM_TABLE . " --- 127,131 ---- $row = $db->sql_fetchrow( $result ); ! $root_cat_id = $row['cat_id']; // move the pictures of this user into the $sql = "UPDATE " . ALBUM_TABLE . " *************** *** 151,154 **** echo '<tr><th>Finish</th></tr><tr><td><span class="genmed"><center><br />Installation is now finished.<br /></center></span></td></tr></table></td></tr></table>'; // include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - ?> \ No newline at end of file --- 151,153 ---- Index: album_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_lists.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** album_lists.php 17 Jun 2006 20:51:30 -0000 1.15 --- album_lists.php 30 Jun 2006 21:10:55 -0000 1.16 *************** *** 9,12 **** --- 9,17 ---- */ + // +--------------------------------------------------------+ + // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | + // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | + // +--------------------------------------------------------+ + if ( !function_exists( 'read_block_config' ) ) { *************** *** 88,102 **** // Set ALBUM Version ! $template->assign_vars( array( 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.71 :: MX-Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon) is modified by <a href="http://www.mx-system.com">MX-Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( this_smartor_mxurl() ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_TITLE' => $title, ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ) ! ) ! ); // Read block Configuration --- 93,107 ---- // Set ALBUM Version ! $template->assign_vars( array( ! 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.71 :: MX-Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon) is modified by <a href="http://www.mx-system.com">MX-Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( this_smartor_mxurl() ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_TITLE' => $title, ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ) ! )); // Read block Configuration *************** *** 209,234 **** } ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_col', array( 'TITLE' => $recentrow[$j]['pic_title'], ! 'POSTER' => $recent_poster, ! 'VIEW' => $recentrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $recentrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $recentrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $recentrow[$j]['pic_id'], true ) ), ! 'DESC' => $recentrow[$j]['pic_desc'] ! ) ! ); $rating_image = ImageRating( $recentrow[$j]['rating'] ); ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_detail', array( 'TITLE' => $recentrow[$j]['pic_title'], ! 'POSTER' => $recent_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $recentrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $recentrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! ) ! ); } } --- 214,239 ---- } ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_col', array( ! 'TITLE' => $recentrow[$j]['pic_title'], ! 'POSTER' => $recent_poster, ! 'VIEW' => $recentrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $recentrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $recentrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $recentrow[$j]['pic_id'], true ) ), ! 'DESC' => $recentrow[$j]['pic_desc'] ! )); $rating_image = ImageRating( $recentrow[$j]['rating'] ); ! $template->assign_block_vars( 'recent_pics_block.recent_pics.recent_detail', array( ! 'TITLE' => $recentrow[$j]['pic_title'], ! 'POSTER' => $recent_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $recentrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $recentrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $recentrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); } } *************** *** 238,242 **** // No Pics Found - $template->assign_block_vars( 'recent_pics_block.no_pics', array() ); } --- 243,246 ---- *************** *** 246,250 **** // No Cats Found - $template->assign_block_vars( 'recent_pics_block.no_pics', array() ); } --- 250,253 ---- *************** *** 307,332 **** } ! $template->assign_block_vars( 'most_pics_block.most_pics.most_col', array( 'TITLE' => $mostrow[$j]['pic_title'], ! 'POSTER' => $most_poster, ! 'VIEW' => $mostrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $mostrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $mostrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $mostrow[$j]['pic_id'], true ) ), ! 'DESC' => $mostrow[$j]['pic_desc'] ! ) ! ); $rating_image = ImageRating( $mostrow[$j]['rating'] ); ! $template->assign_block_vars( 'most_pics_block.most_pics.most_detail', array( 'TITLE' => $mostrow[$j]['pic_title'], ! 'POSTER' => $most_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $mostrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $mostrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $mostrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $mostrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! ) ! ); } } --- 310,335 ---- } ! $template->assign_block_vars( 'most_pics_block.most_pics.most_col', array( ! 'TITLE' => $mostrow[$j]['pic_title'], ! 'POSTER' => $most_poster, ! 'VIEW' => $mostrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $mostrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $mostrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $mostrow[$j]['pic_id'], true ) ), ! 'DESC' => $mostrow[$j]['pic_desc'] ! )); $rating_image = ImageRating( $mostrow[$j]['rating'] ); ! $template->assign_block_vars( 'most_pics_block.most_pics.most_detail', array( ! 'TITLE' => $mostrow[$j]['pic_title'], ! 'POSTER' => $most_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $mostrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $mostrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $mostrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $mostrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); } } *************** *** 336,340 **** // No Pics Found - $template->assign_block_vars( 'most_pics_block.no_pics', array() ); } --- 339,342 ---- *************** *** 344,348 **** // No Cats Found - $template->assign_block_vars( 'most_pics_block.no_pics', array() ); } --- 346,349 ---- *************** *** 406,431 **** } ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_col', array( 'H_TITLE' => $highestrow[$j]['pic_title'], ! 'H_POSTER' => $highest_poster, ! 'H_VIEW' => $highestrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $highestrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $highestrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $highestrow[$j]['pic_id'], true ) ), ! 'DESC' => $highestrow[$j]['pic_desc'] ! ) ! ); $rating_image = ImageRating( $highestrow[$j]['rating'] ); ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_detail', array( 'H_TITLE' => $highestrow[$j]['pic_title'], ! 'H_POSTER' => $highest_poster, ! 'H_TIME' => create_date( $board_config['default_dateformat'], $highestrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'H_VIEW' => $highestrow[$j]['pic_view_count'], ! 'H_RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'H_COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $highestrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $highestrow[$j]['comments'] . '<br />' ) : '' ! // 'H_IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($highestrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($highestrow[$j]['pic_user_ip']) .'</a><br />' : '' ! ) ! ); } } --- 407,432 ---- } ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_col', array( ! 'H_TITLE' => $highestrow[$j]['pic_title'], ! 'H_POSTER' => $highest_poster, ! 'H_VIEW' => $highestrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $highestrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $highestrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $highestrow[$j]['pic_id'], true ) ), ! 'DESC' => $highestrow[$j]['pic_desc'] ! )); $rating_image = ImageRating( $highestrow[$j]['rating'] ); ! $template->assign_block_vars( 'highest_pics_block.highest_pics.highest_detail', array( ! 'H_TITLE' => $highestrow[$j]['pic_title'], ! 'H_POSTER' => $highest_poster, ! 'H_TIME' => create_date( $board_config['default_dateformat'], $highestrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'H_VIEW' => $highestrow[$j]['pic_view_count'], ! 'H_RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'H_COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $highestrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $highestrow[$j]['comments'] . '<br />' ) : '' ! // 'H_IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($highestrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($highestrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); } } *************** *** 505,531 **** } ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_col', array( 'TITLE' => $randrow[$j]['pic_title'], ! 'POSTER' => $rand_poster, ! 'VIEW' => $randrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $randrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $randrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $randrow[$j]['pic_id'], true ) ), ! 'DESC' => $randrow[$j]['pic_desc'] ! ) ! ); $rating_image = ImageRating( $randrow[$j]['rating'] ); ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_detail', array( 'TITLE' => $randrow[$j]['pic_title'], ! 'POSTER' => $rand_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $randrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $randrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $randrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $randrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($randrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($randrow[$j]['pic_user_ip']) .'</a><br />' : '' ! ) ! ); } } --- 506,532 ---- } ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_col', array( ! 'TITLE' => $randrow[$j]['pic_title'], ! 'POSTER' => $rand_poster, ! 'VIEW' => $randrow[$j]['pic_view_count'], ! 'U_PIC' => ( $album_config['fullpic_popup'] || 1 == 2 ) ? append_sid( this_smartor_mxurl( "smartor_mode=album_pic&pic_id=" . $randrow[$j]['pic_id'], true ) ) : append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $randrow[$j]['pic_id'], false, $smartor_page_id ) ), ! 'THUMBNAIL' => append_sid( this_smartor_mxurl( "smartor_mode=album_thumbnail&pic_id=" . $randrow[$j]['pic_id'], true ) ), ! 'DESC' => $randrow[$j]['pic_desc'] ! )); $rating_image = ImageRating( $randrow[$j]['rating'] ); ! $template->assign_block_vars( 'random_pics_block.rand_pics.rand_detail', array( ! 'TITLE' => $randrow[$j]['pic_title'], ! 'POSTER' => $rand_poster, ! 'TIME' => create_date( $board_config['default_dateformat'], $randrow[$j]['pic_time'], $board_config['board_timezone'] ), ! 'VIEW' => $randrow[$j]['pic_view_count'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( this_smartor_mxurl( "smartor_mode=album_showpage&pic_id=" . $randrow[$j]['pic_id'], false, $smartor_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $randrow[$j]['comments'] . '<br />' ) : '' ! // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($randrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($randrow[$j]['pic_user_ip']) .'</a><br />' : '' ! )); } } *************** *** 535,539 **** // No Pics Found - $template->assign_block_vars( 'random_pics_block.no_pics', array() ); } --- 536,539 ---- *************** *** 543,547 **** // No Cats Found - $template->assign_block_vars( 'random_pics_block.no_pics', array() ); } --- 543,546 ---- *************** *** 560,600 **** } ! $template->set_filenames( array( 'body' => 'album_lists.tpl' ) ! ); ! $template->assign_vars( array( 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ), ! 'L_CATEGORY' => $lang['Category'], ! 'L_PICS' => $lang['Pics'], ! 'L_LAST_PIC' => $lang['Last_Pic'], ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ), ! 'U_YOUR_PERSONAL_GALLERY' => append_sid( this_smartor_mxurl( "smartor_mode=album_personal&user_id=" . $userdata['user_id'] ) ), ! 'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'], ! 'U_USERS_PERSONAL_GALLERIES' => append_sid( this_smartor_mxurl( "smartor_mode=album_personal_index" ) ), ! 'L_USERS_PERSONAL_GALLERIES' => $lang['Users_Personal_Galleries'], ! 'S_COLS' => $album_sp_config['img_cols'], ! 'S_COL_WIDTH' => ( 100 / $album_sp_config['img_cols'] ) . '%', ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', ! 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'], ! 'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Pics'], ! 'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Pics'], ! 'L_MOST_PUBLIC_PICS' => $lang['Most_Public_Pics'], ! 'L_NO_PICS' => $lang['No_Pics'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_VIEW' => $lang['View'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Pic_Posted'], ! 'L_PUBLIC_CATS' => $lang['Public_Categories'] ) ! ); // Generate the page --- 559,599 ---- } ! $template->set_filenames( array( 'body' => 'album_lists.tpl' ) ); ! $template->assign_vars( array( ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ), ! 'L_CATEGORY' => $lang['Category'], ! 'L_PICS' => $lang['Pics'], ! 'L_LAST_PIC' => $lang['Last_Pic'], ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'U_ALBUM' => append_sid( this_smartor_mxurl() ), ! 'U_YOUR_PERSONAL_GALLERY' => append_sid( this_smartor_mxurl( "smartor_mode=album_personal&user_id=" . $userdata['user_id'] ) ), ! 'L_YOUR_PERSONAL_GALLERY' => $lang['Your_Personal_Gallery'], ! 'U_USERS_PERSONAL_GALLERIES' => append_sid( this_smartor_mxurl( "smartor_mode=album_personal_index" ) ), ! 'L_USERS_PERSONAL_GALLERIES' => $lang['Users_Personal_Galleries'], ! 'S_COLS' => $album_sp_config['img_cols'], ! 'S_COL_WIDTH' => ( 100 / $album_sp_config['img_cols'] ) . '%', ! 'TARGET_BLANK' => ( $album_config['fullpic_popup'] ) ? 'target="_blank"' : '', ! 'L_RECENT_PUBLIC_PICS' => $lang['Recent_Public_Pics'], ! 'L_TOPRATED_PUBLIC_PICS' => $lang['Toprated_Public_Pics'], ! 'L_RANDOM_PUBLIC_PICS' => $lang['Random_Public_Pics'], ! 'L_MOST_PUBLIC_PICS' => $lang['Most_Public_Pics'], ! 'L_NO_PICS' => $lang['No_Pics'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_VIEW' => $lang['View'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Pic_Posted'], ! 'L_PUBLIC_CATS' => $lang['Public_Categories'] ) ! ); // Generate the page *************** *** 606,612 **** include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } - // +--------------------------------------------------------+ - // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | - // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | - // +--------------------------------------------------------+ ?> \ No newline at end of file --- 605,607 ---- Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_install.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** db_install.php 2 May 2006 23:29:32 -0000 1.11 --- db_install.php 30 Jun 2006 21:10:55 -0000 1.12 *************** *** 30,34 **** } ! $mx_module_version = '2.0.0'; $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; --- 30,34 ---- } ! $mx_module_version = '2.8.0'; $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_upgrade.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** db_upgrade.php 2 May 2006 23:29:32 -0000 1.11 --- db_upgrade.php 30 Jun 2006 21:10:55 -0000 1.12 *************** *** 30,34 **** } ! $mx_module_version = '2.0.0'; $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; --- 30,34 ---- } ! $mx_module_version = '2.8.0'; $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; |