[phpbbreloaded-checkins] SF.net SVN: phpbbreloaded: [279] main/trunk
Status: Planning
Brought to you by:
tehphpmaster
From: <teh...@us...> - 2006-12-26 21:01:16
|
Revision: 279 http://svn.sourceforge.net/phpbbreloaded/?rev=279&view=rev Author: tehphpmaster Date: 2006-12-26 13:01:11 -0800 (Tue, 26 Dec 2006) Log Message: ----------- Big changes on the ACP front. I've started to backport the phpBB3 ACP to phpBB Reloaded. We've done this for a number of reasons, which i will explain more on later. admin/index.php doesn't have a lot of content; it needs rewriting for the new ACP. Things are hardcoded and pretty messy at the moment but that will change as development continues. More details on this later. Modified Paths: -------------- main/trunk/admin/index.php main/trunk/templates/subSilver/admin/index_body.tpl main/trunk/templates/subSilver/admin/index_frameset.tpl main/trunk/templates/subSilver/admin/page_header.tpl Added Paths: ----------- main/trunk/templates/subSilver/images/bg_header.gif main/trunk/templates/subSilver/images/bg_tabs1.gif main/trunk/templates/subSilver/images/bg_tabs2.gif Modified: main/trunk/admin/index.php =================================================================== --- main/trunk/admin/index.php 2006-12-24 06:08:00 UTC (rev 278) +++ main/trunk/admin/index.php 2006-12-26 21:01:11 UTC (rev 279) @@ -30,628 +30,20 @@ require($phpbb_root_path . 'extension.inc'); require('./pagestart.' . $phpEx); -// --------------- -// Begin functions -// -function inarray($needle, $haystack) -{ - for($i = 0; $i < sizeof($haystack); $i++ ) - { - if( $haystack[$i] == $needle ) - { - return true; - } - } - return false; -} -// -// End functions -// ------------- -// -// Generate relevant output -// -if( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'left' ) -{ - $dir = @opendir("."); - - $setmodules = 1; - while( $file = @readdir($dir) ) - { - if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) ) - { - include('./' . $file); - } - } - - @closedir($dir); - - unset($setmodules); - include('./page_header_admin.'.$phpEx); $template->set_filenames(array( - "body" => "admin/index_navigate.tpl") - ); - - $template->assign_vars(array( - "U_FORUM_INDEX" => append_sid("../index.$phpEx"), - "U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"), - - "L_FORUM_INDEX" => $lang['Main_index'], - "L_ADMIN_INDEX" => $lang['Admin_Index'], - "L_PREVIEW_FORUM" => $lang['Preview_forum']) - ); - - ksort($module); - - while( list($cat, $action_array) = each($module) ) - { - $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); - - $template->assign_block_vars("catrow", array( - "ADMIN_CATEGORY" => $cat) - ); - - ksort($action_array); - - $row_count = 0; - while( list($action, $file) = each($action_array) ) - { - $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); - - $template->assign_block_vars("catrow.modulerow", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - - "ADMIN_MODULE" => $action, - "U_ADMIN_MODULE" => append_sid($file)) - ); - $row_count++; - } - } - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); -} -elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) -{ - - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( "body" => "admin/index_body.tpl") ); $template->assign_vars(array( - "L_WELCOME" => $lang['Welcome_phpBB'], - "L_ADMIN_INTRO" => $lang['Admin_intro'], - "L_FORUM_STATS" => $lang['Forum_stats'], - "L_WHO_IS_ONLINE" => $lang['Who_is_Online'], - "L_USERNAME" => $lang['Username'], - "L_LOCATION" => $lang['Location'], - "L_LAST_UPDATE" => $lang['Last_updated'], - "L_IP_ADDRESS" => $lang['IP_Address'], - "L_STATISTIC" => $lang['Statistic'], - "L_VALUE" => $lang['Value'], - "L_NUMBER_POSTS" => $lang['Number_posts'], - "L_POSTS_PER_DAY" => $lang['Posts_per_day'], - "L_NUMBER_TOPICS" => $lang['Number_topics'], - "L_TOPICS_PER_DAY" => $lang['Topics_per_day'], - "L_NUMBER_USERS" => $lang['Number_users'], - "L_USERS_PER_DAY" => $lang['Users_per_day'], - "L_BOARD_STARTED" => $lang['Board_started'], - "L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'], - "L_DB_SIZE" => $lang['Database_size'], - "L_FORUM_LOCATION" => $lang['Forum_Location'], - "L_STARTED" => $lang['Login'], - "L_GZIP_COMPRESSION" => $lang['Gzip_compression']) + ) ); - // - // Get forum statistics - // - $total_posts = get_db_stat('postcount'); - $total_users = get_db_stat('usercount'); - $total_topics = get_db_stat('topiccount'); - $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); - - $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; - - $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); - $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); - $users_per_day = sprintf("%.2f", $total_users / $boarddays); - - $avatar_dir_size = 0; - - if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) - { - while( $file = @readdir($avatar_dir) ) - { - if( $file != "." && $file != ".." ) - { - $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file); - } - } - @closedir($avatar_dir); - - // - // This bit of code translates the avatar directory size into human readable format - // Borrowed the code from the PHP.net annoted manual, origanally written by: - // Jesse (je...@je...) - // - if($avatar_dir_size >= 1048576) - { - $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; - } - else if($avatar_dir_size >= 1024) - { - $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; - } - else - { - $avatar_dir_size = $avatar_dir_size . " Bytes"; - } - - } - else - { - // Couldn't open Avatar dir. - $avatar_dir_size = $lang['Not_available']; - } - - if($posts_per_day > $total_posts) - { - $posts_per_day = $total_posts; - } - - if($topics_per_day > $total_topics) - { - $topics_per_day = $total_topics; - } - - if($users_per_day > $total_users) - { - $users_per_day = $total_users; - } - - // - // DB size ... MySQL only - // - // This code is heavily influenced by a similar routine - // in phpMyAdmin 2.2.0 - // - if( preg_match("/^mysql/", SQL_LAYER) ) - { - $sql = "SELECT VERSION() AS mysql_version"; - if($result = $db->sql_query($sql)) - { - $row = $db->sql_fetchrow($result); - $version = $row['mysql_version']; - - if( preg_match("/^(3\.23|4\.|5\.)/", $version) ) - { - $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)|(5\.)/", $version) ) ? "`$dbname`" : $dbname; - - $sql = "SHOW TABLE STATUS - FROM " . $db_name; - if($result = $db->sql_query($sql)) - { - $tabledata_ary = $db->sql_fetchrowset($result); - - $dbsize = 0; - for($i = 0; $i < count($tabledata_ary); $i++) - { - if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) - { - if( $table_prefix != "" ) - { - if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - else - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - } - } // Else we couldn't get the table status. - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - } - else if( preg_match("/^mssql/", SQL_LAYER) ) - { - $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize - FROM sysfiles"; - if( $result = $db->sql_query($sql) ) - { - $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available']; - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - - if ( is_integer($dbsize) ) - { - if( $dbsize >= 1048576 ) - { - $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); - } - else if( $dbsize >= 1024 ) - { - $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); - } - else - { - $dbsize = sprintf("%.2f Bytes", $dbsize); - } - } - - $template->assign_vars(array( - "NUMBER_OF_POSTS" => $total_posts, - "NUMBER_OF_TOPICS" => $total_topics, - "NUMBER_OF_USERS" => $total_users, - "START_DATE" => $start_date, - "POSTS_PER_DAY" => $posts_per_day, - "TOPICS_PER_DAY" => $topics_per_day, - "USERS_PER_DAY" => $users_per_day, - "AVATAR_DIR_SIZE" => $avatar_dir_size, - "DB_SIZE" => $dbsize, - "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF']) - ); - // - // End forum statistics - // - - // - // Get users online information. - // - $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start - FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s - WHERE s.session_logged_in = " . TRUE . " - AND u.user_id = s.session_user_id - AND u.user_id <> " . ANONYMOUS . " - AND s.session_time >= " . ( time() - 300 ) . " - ORDER BY u.user_session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_reg = $db->sql_fetchrowset($result); - - $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start - FROM " . SESSIONS_TABLE . " - WHERE session_logged_in = 0 - AND session_time >= " . ( time() - 300 ) . " - ORDER BY session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_guest = $db->sql_fetchrowset($result); - - $sql = "SELECT forum_name, forum_id - FROM " . FORUMS_TABLE; - if($forums_result = $db->sql_query($sql)) - { - while($forumsrow = $db->sql_fetchrow($forums_result)) - { - $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name']; - } - } - else - { - message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql); - } - - $reg_userid_ary = array(); - - if( count($onlinerow_reg) ) - { - $registered_users = 0; - - for($i = 0; $i < count($onlinerow_reg); $i++) - { - if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) ) - { - $reg_userid_ary[] = $onlinerow_reg[$i]['user_id']; - - $username = $onlinerow_reg[$i]['username']; - - if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) - { - $registered_users++; - $hidden = FALSE; - } - else - { - $hidden_users++; - $hidden = TRUE; - } - - if( $onlinerow_reg[$i]['user_session_page'] < 1 ) - { - switch($onlinerow_reg[$i]['user_session_page']) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']); - $location = $forum_data[$onlinerow_reg[$i]['user_session_page']]; - } - - $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']); - - $template->assign_block_vars("reg_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $username, - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $reg_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip", - "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']), - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - } - - } - else - { - $template->assign_vars(array( - "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) - ); - } - - // - // Guest users - // - if( count($onlinerow_guest) ) - { - $guest_users = 0; - - for($i = 0; $i < count($onlinerow_guest); $i++) - { - $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip']; - $guest_users++; - - if( $onlinerow_guest[$i]['session_page'] < 1 ) - { - switch( $onlinerow_guest[$i]['session_page'] ) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']); - $location = $forum_data[$onlinerow_guest[$i]['session_page']]; - } - - $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']); - - $template->assign_block_vars("guest_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $lang['Guest'], - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $guest_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip", - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - - } - else - { - $template->assign_vars(array( - "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) - ); - } - - // Check for new version - $current_version = explode('.', '2' . $board_config['version']); - $minor_revision = (int) $current_version[2]; - - $errno = 0; - $errstr = $version_info = ''; - - if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) - { - @fputs($fsock, "GET /updatecheck/20x.txt HTTP/1.1\r\n"); - @fputs($fsock, "HOST: www.phpbb.com\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - $get_info = false; - while (!@feof($fsock)) - { - if ($get_info) - { - $version_info .= @fread($fsock, 1024); - } - else - { - if (@fgets($fsock, 1024) == "\r\n") - { - $get_info = true; - } - } - } - @fclose($fsock); - - $version_info = explode("\n", $version_info); - $latest_head_revision = (int) $version_info[0]; - $latest_minor_revision = (int) $version_info[2]; - $latest_version = (int) $version_info[0] . '.' . (int) $version_info[1] . '.' . (int) $version_info[2]; - - if ($latest_head_revision == 2 && $minor_revision == $latest_minor_revision) - { - $version_info = '<p style="color:green">' . $lang['Version_up_to_date'] . '</p>'; - } - else - { - $version_info = '<p style="color:red">' . $lang['Version_not_up_to_date']; - $version_info .= '<br />' . sprintf($lang['Latest_version_info'], $latest_version) . ' ' . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '</p>'; - } - } - else - { - if ($errstr) - { - $version_info = '<p style="color:red">' . sprintf($lang['Connect_socket_error'], $errstr) . '</p>'; - } - else - { - $version_info = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; - } - } - - $version_info .= '<p>' . $lang['Mailing_list_subscribe_reminder'] . '</p>'; - - - $template->assign_vars(array( - 'VERSION_INFO' => $version_info, - 'L_VERSION_INFORMATION' => $lang['Version_information']) - ); - $template->pparse("body"); include('./page_footer_admin.'.$phpEx); -} -else -{ - // - // Generate frameset - // - $template->set_filenames(array( - "body" => "admin/index_frameset.tpl") - ); - - $template->assign_vars(array( - "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"), - "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right")) - ); - - header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); - header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - - $template->pparse("body"); - - $db->sql_close(); - exit; - -} - ?> \ No newline at end of file Modified: main/trunk/templates/subSilver/admin/index_body.tpl =================================================================== --- main/trunk/templates/subSilver/admin/index_body.tpl 2006-12-24 06:08:00 UTC (rev 278) +++ main/trunk/templates/subSilver/admin/index_body.tpl 2006-12-26 21:01:11 UTC (rev 279) @@ -1,86 +1,70 @@ - -<h1>{L_WELCOME}</h1> - -<p>{L_ADMIN_INTRO}</p> - -<h1>{L_FORUM_STATS}</h1> - -<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> - <tr> - <th width="25%" nowrap="nowrap" height="25" class="thCornerL">{L_STATISTIC}</th> - <th width="25%" height="25" class="thTop">{L_VALUE}</th> - <th width="25%" nowrap="nowrap" height="25" class="thTop">{L_STATISTIC}</th> - <th width="25%" height="25" class="thCornerR">{L_VALUE}</th> - </tr> - <tr> - <td class="row1" nowrap="nowrap">{L_NUMBER_POSTS}:</td> - <td class="row2"><b>{NUMBER_OF_POSTS}</b></td> - <td class="row1" nowrap="nowrap">{L_POSTS_PER_DAY}:</td> - <td class="row2"><b>{POSTS_PER_DAY}</b></td> - </tr> - <tr> - <td class="row1" nowrap="nowrap">{L_NUMBER_TOPICS}:</td> - <td class="row2"><b>{NUMBER_OF_TOPICS}</b></td> - <td class="row1" nowrap="nowrap">{L_TOPICS_PER_DAY}:</td> - <td class="row2"><b>{TOPICS_PER_DAY}</b></td> - </tr> - <tr> - <td class="row1" nowrap="nowrap">{L_NUMBER_USERS}:</td> - <td class="row2"><b>{NUMBER_OF_USERS}</b></td> - <td class="row1" nowrap="nowrap">{L_USERS_PER_DAY}:</td> - <td class="row2"><b>{USERS_PER_DAY}</b></td> - </tr> - <tr> - <td class="row1" nowrap="nowrap">{L_BOARD_STARTED}:</td> - <td class="row2"><b>{START_DATE}</b></td> - <td class="row1" nowrap="nowrap">{L_AVATAR_DIR_SIZE}:</td> - <td class="row2"><b>{AVATAR_DIR_SIZE}</b></td> - </tr> - <tr> - <td class="row1" nowrap="nowrap">{L_DB_SIZE}:</td> - <td class="row2"><b>{DB_SIZE}</b></td> - <td class="row1" nowrap="nowrap">{L_GZIP_COMPRESSION}:</td> - <td class="row2"><b>{GZIP_COMPRESSION}</b></td> - </tr> -</table> - -<h1>{L_VERSION_INFORMATION}</h1> - -{VERSION_INFO} - -<br /> - -<h1>{L_WHO_IS_ONLINE}</h1> - -<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> - <tr> - <th width="20%" class="thCornerL" height="25"> {L_USERNAME} </th> - <th width="20%" height="25" class="thTop"> {L_STARTED} </th> - <th width="20%" class="thTop"> {L_LAST_UPDATE} </th> - <th width="20%" class="thCornerR"> {L_FORUM_LOCATION} </th> - <th width="20%" height="25" class="thCornerR"> {L_IP_ADDRESS} </th> - </tr> - <!-- BEGIN reg_user_row --> - <tr> - <td width="20%" class="{reg_user_row.ROW_CLASS}"> <span class="gen"><a href="{reg_user_row.U_USER_PROFILE}" class="gen">{reg_user_row.USERNAME}</a></span> </td> - <td width="20%" align="center" class="{reg_user_row.ROW_CLASS}"> <span class="gen">{reg_user_row.STARTED}</span> </td> - <td width="20%" align="center" nowrap="nowrap" class="{reg_user_row.ROW_CLASS}"> <span class="gen">{reg_user_row.LASTUPDATE}</span> </td> - <td width="20%" class="{reg_user_row.ROW_CLASS}"> <span class="gen"><a href="{reg_user_row.U_FORUM_LOCATION}" class="gen">{reg_user_row.FORUM_LOCATION}</a></span> </td> - <td width="20%" class="{reg_user_row.ROW_CLASS}"> <span class="gen"><a href="{reg_user_row.U_WHOIS_IP}" class="gen" target="_phpbbwhois">{reg_user_row.IP_ADDRESS}</a></span> </td> - </tr> - <!-- END reg_user_row --> - <tr> - <td colspan="5" height="1" class="row3"><img src="../templates/subSilver/images/spacer.gif" width="1" height="1" alt="."></td> - </tr> - <!-- BEGIN guest_user_row --> - <tr> - <td width="20%" class="{guest_user_row.ROW_CLASS}"> <span class="gen">{guest_user_row.USERNAME}</span> </td> - <td width="20%" align="center" class="{guest_user_row.ROW_CLASS}"> <span class="gen">{guest_user_row.STARTED}</span> </td> - <td width="20%" align="center" nowrap="nowrap" class="{guest_user_row.ROW_CLASS}"> <span class="gen">{guest_user_row.LASTUPDATE}</span> </td> - <td width="20%" class="{guest_user_row.ROW_CLASS}"> <span class="gen"><a href="{guest_user_row.U_FORUM_LOCATION}" class="gen">{guest_user_row.FORUM_LOCATION}</a></span> </td> - <td width="20%" class="{guest_user_row.ROW_CLASS}"> <span class="gen"><a href="{guest_user_row.U_WHOIS_IP}" target="_phpbbwhois">{guest_user_row.IP_ADDRESS}</a></span> </td> - </tr> - <!-- END guest_user_row --> -</table> - -<br /> +<!-- INCLUDE overall_header.html --> + +<a name="maincontent"></a> + + <h1>Welcome to phpBB Reloaded</h1> + + <p>Admin control panel blablahblahblah</p> + + <table cellspacing="1"> + <caption>Forum Statistics</caption> + <col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" /> + <thead> + <tr> + <th>Statistic</th> + <th>Value</th> + <th>Statistic</th> + <th>Value</th> + </tr> + </thead> + <tbody> + <tr> + <td>Number of posts: </td> + <td><b>0</b></td> + <td>Posts per day: </td> + <td><b>0</b></td> + </tr> + <tr> + <td>Number of topics: </td> + <td><b>0</b></td> + <td>Topics per day: </td> + <td><b>0</b></td> + </tr> + <tr> + <td>Number of users: </td> + <td><b>0</b></td> + <td>Users per day: </td> + <td><b>0</b></td> + </tr> + <tr> + <td>Number of files: </td> + <td><b>0</b></td> + <td>Files per day: </td> + <td><b>0</b></td> + </tr> + + + <tr> + <td>Board started: </td> + <td><b>0</b></td> + <td>Avatar directory size: </td> + <td><b>0</b></td> + </tr> + <tr> + <td>Database Size: </td> + <td><b>0</b></td> + <td>Size of posted attachments: </td> + <td><b></b></td> + </tr> + <tr> + <td>Database server: </td> + <td><b>MySQL 4.1.22-community-nt</b></td> + <td>GZip compression: </td> + <td><b>Off/On</b></td> + </tr> + </tbody> + </table> + +<br /> + +<!-- INCLUDE overall_footer.html --> \ No newline at end of file Modified: main/trunk/templates/subSilver/admin/index_frameset.tpl =================================================================== --- main/trunk/templates/subSilver/admin/index_frameset.tpl 2006-12-24 06:08:00 UTC (rev 278) +++ main/trunk/templates/subSilver/admin/index_frameset.tpl 2006-12-26 21:01:11 UTC (rev 279) @@ -1,4 +1,4 @@ -<html dir="{S_CONTENT_DIRECTION}"> +<!--<html dir="{S_CONTENT_DIRECTION}"> <head> <title>phpBB Administration</title> <meta http-equiv="Content-Type" content="text/html;"> @@ -14,4 +14,5 @@ <p>Sorry, your browser doesn't seem to support frames</p> </body> </noframes> -</html> \ No newline at end of file +</html>--> +{S_FRAME_MAIN} \ No newline at end of file Modified: main/trunk/templates/subSilver/admin/page_header.tpl =================================================================== --- main/trunk/templates/subSilver/admin/page_header.tpl 2006-12-24 06:08:00 UTC (rev 278) +++ main/trunk/templates/subSilver/admin/page_header.tpl 2006-12-26 21:01:11 UTC (rev 279) @@ -1,226 +1,147 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html dir="{S_CONTENT_DIRECTION}"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}"> <head> -{META} -<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> -<!-- link rel="stylesheet" href="../templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" --> -<style type="text/css"> -<!-- -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com +<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> +<meta http-equiv="Content-Style-Type" content="text/css" /> +<meta http-equiv="Content-Language" content="{S_USER_LANG}" /> +<meta http-equiv="imagetoolbar" content="no" /> +<!-- IF META -->{META}<!-- ENDIF --> +<title>{PAGE_TITLE}</title> - NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 - theme administration centre. When you have finalised your style you could cut the final CSS code - and place it in an external file, deleting this section to save bandwidth. -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: {T_BODY_BGCOLOR}; - scrollbar-face-color: {T_TR_COLOR2}; - scrollbar-highlight-color: {T_TD_COLOR2}; - scrollbar-shadow-color: {T_TR_COLOR2}; - scrollbar-3dlight-color: {T_TR_COLOR3}; - scrollbar-arrow-color: {T_BODY_LINK}; - scrollbar-track-color: {T_TR_COLOR1}; - scrollbar-darkshadow-color: {T_TH_COLOR1}; -} +<link href="./../templates/subSilver/admin/admin.css" rel="stylesheet" type="text/css" media="screen" /> -/* General font families for common tags */ -font,th,td,p { font-family: {T_FONTFACE1} } -p, td { font-size : {T_FONTSIZE2}; color : {T_BODY_TEXT}; } -a:link,a:active,a:visited { color : {T_BODY_LINK}; } -a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } -hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} -h1,h2 { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;} +<script type="text/javascript"> +<!-- +var jump_page = '{LA_JUMP_PAGE}:'; +var on_page = '{ON_PAGE}'; +var per_page = '{PER_PAGE}'; +var base_url = '{BASE_URL}'; - -/* This is the border line & background colour round the entire page */ -.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } - -/* This is the outline round the main forum tables */ -.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: {T_TR_COLOR1}; } -td.row2 { background-color: {T_TR_COLOR2}; } -td.row3 { background-color: {T_TR_COLOR3}; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum +/** +* Jump to page */ -td.rowpic { - background-color: {T_TD_COLOR2}; - background-image: url(../templates/subSilver/images/{T_TH_CLASS3}); - background-repeat: repeat-y; -} +function jumpto() +{ + var page = prompt(jump_page, on_page); -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; - background-color: {T_BODY_LINK}; height: 25px; - background-image: url(../templates/subSilver/images/{T_TH_CLASS2}); + if (page !== null && !isNaN(page) && page > 0) + { + document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page); + } } -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(../templates/subSilver/images/{T_TH_CLASS1}); - background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) +/** +* Set display of page element +* s[-1,0,1] = hide,toggle display,show */ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } -td.row3Right,td.spaceRow { - background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } +function dE(n, s, type) +{ + if (!type) + { + type = 'block'; + } -th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle { - font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; - text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; + var e = document.getElementById(n); + if (!s) + { + s = (e.style.display == '') ? -1 : 1; + } + e.style.display = (s == 1) ? type : 'none'; } +/** +* Mark/unmark checkboxes +* id = ID of parent container, name = name prefix, state = state [true/false] +*/ +function marklist(id, name, state) +{ + var parent = document.getElementById(id); + if (!parent) + { + eval('parent = document.' + id); + } -/* General text */ -.gen { font-size : {T_FONTSIZE3}px; } -.genmed { font-size : {T_FONTSIZE2}px; } -.gensmall { font-size : {T_FONTSIZE1}px; } -.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } -a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } + if (!parent) + { + return; + } - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } -a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } -a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} -a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } -a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } -a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} -a.nav { text-decoration: none; color : {T_BODY_LINK}; } -a.nav:hover { text-decoration: underline; } - - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} -a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } -a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } -a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} - - -/* Quote & Code blocks */ -.code { - font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; - background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px + var rb = parent.getElementsByTagName('input'); + + for (var r = 0; r < rb.length; r++) + { + if (rb[r].name.substr(0, name.length) == name) + { + rb[r].checked = state; + } + } } -.quote { - font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; - background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px +/** +* Open trace popup +*/ +function trace(link) +{ + window.open(link.replace(/&/g, '&'), '_trace', 'height=515, resizable=yes, scrollbars=yes, width=680'); + return false; } - -/* Copyright and bottom info */ -.copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} -a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} -a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : {T_BODY_TEXT}; - font: normal {T_FONTSIZE2}px {T_FONTFACE1}; - border-color : {T_BODY_TEXT}; +/** +* Find a member +*/ +function find_username() +{ + <!-- IF UA_FIND_USERNAME --> + window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=570, resizable=yes, scrollbars=yes, width=760'); + <!-- ENDIF --> + return false; } -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : {T_TD_COLOR2}; +/** +* Color swatch +*/ +function swatch(field) +{ + <!-- IF UA_SWATCH --> + window.open('{UA_SWATCH}' + field, '_swatch', 'height=150, resizable=yes, scrollbars=no, width=636'); + <!-- ENDIF --> + return false; } -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : {T_TR_COLOR1}; - color : {T_BODY_TEXT}; - font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; -} - -/* The main submit button option */ -input.mainoption { - background-color : {T_TD_COLOR1}; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : {T_TD_COLOR1}; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: {T_TR_COLOR2}; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("../templates/subSilver/formIE.css"); ---> -</style> -<title>{SITENAME} - {L_PHPBB_ADMIN}</title> +//--> +</script> </head> -<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}"> -<a name="top"></a> +<body> +<div id="wrap"> + <div id="page-header"> + <h1>Administration Panel</h1> + <p><a href="./">Admin Index</a> • <a href="../">Forum Index</a></p> + </div> + + <div id="page-body"> + <div id="tabs"> + <ul> + <li><a href="./index.php"><span>General</span></a></li> + <li><a href="./index.php?i=forums"><span>Forums</span></a></li> + <li><a href="./index.php?i=posting"><span>Posting</span></a></li> + <li><a href="./index.php?i=users"><span>Users and Groups</span></a></li> + <li><a href="./index.php?i=perms"><span>Permissions</span></a></li> + <li><a href="./index.php?i=styles"><span>Styles</span></a></li> + <li><a href="./index.php?i=maint"><span>Maintenance</span></a></li> + <li><a href="./index.php?i=system"><span>System</span></a></li> + </ul> + </div> + + <div class="panel"> + <span class="corners-top"><span></span></span> + <div id="content"> + <div id="menu"> + <p>You are logged in as<br /><strong>tehphpmaster</strong> [ <a href="{U_LOGOUT}">{L_LOGOUT}</a> ]</p> + <ul> + <li><a href="./index.php"><span>General</span></a></li> + </ul> + </div> + + <div id="main"> Added: main/trunk/templates/subSilver/images/bg_header.gif =================================================================== (Binary files differ) Property changes on: main/trunk/templates/subSilver/images/bg_header.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: main/trunk/templates/subSilver/images/bg_tabs1.gif =================================================================== (Binary files differ) Property changes on: main/trunk/templates/subSilver/images/bg_tabs1.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: main/trunk/templates/subSilver/images/bg_tabs2.gif =================================================================== (Binary files differ) Property changes on: main/trunk/templates/subSilver/images/bg_tabs2.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |