You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(193) |
Nov
(393) |
Dec
(347) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(401) |
Feb
(232) |
Mar
(343) |
Apr
(129) |
May
(129) |
Jun
(116) |
Jul
(189) |
Aug
(129) |
Sep
(68) |
Oct
(172) |
Nov
(298) |
Dec
(148) |
| 2003 |
Jan
(264) |
Feb
(210) |
Mar
(322) |
Apr
(309) |
May
(234) |
Jun
(188) |
Jul
(215) |
Aug
(161) |
Sep
(234) |
Oct
(163) |
Nov
(110) |
Dec
(7) |
| 2004 |
Jan
(95) |
Feb
(107) |
Mar
(55) |
Apr
(3) |
May
(49) |
Jun
(35) |
Jul
(57) |
Aug
(43) |
Sep
(56) |
Oct
(40) |
Nov
(25) |
Dec
(21) |
| 2005 |
Jan
(93) |
Feb
(25) |
Mar
(22) |
Apr
(72) |
May
(45) |
Jun
(24) |
Jul
(29) |
Aug
(20) |
Sep
(50) |
Oct
(93) |
Nov
(69) |
Dec
(183) |
| 2006 |
Jan
(185) |
Feb
(143) |
Mar
(402) |
Apr
(260) |
May
(322) |
Jun
(367) |
Jul
(234) |
Aug
(299) |
Sep
(206) |
Oct
(288) |
Nov
(338) |
Dec
(307) |
| 2007 |
Jan
(296) |
Feb
(250) |
Mar
(261) |
Apr
(434) |
May
(539) |
Jun
(274) |
Jul
(440) |
Aug
(190) |
Sep
(128) |
Oct
(249) |
Nov
(86) |
Dec
(51) |
| 2008 |
Jan
(177) |
Feb
(67) |
Mar
(61) |
Apr
(48) |
May
(56) |
Jun
(97) |
Jul
(60) |
Aug
(64) |
Sep
(151) |
Oct
(79) |
Nov
(109) |
Dec
(123) |
| 2009 |
Jan
(70) |
Feb
(70) |
Mar
(73) |
Apr
(80) |
May
(22) |
Jun
(193) |
Jul
(191) |
Aug
(181) |
Sep
(120) |
Oct
(48) |
Nov
(24) |
Dec
|
|
From: Paul S. O. <ps...@us...> - 2002-03-18 13:38:16
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv26684
Modified Files:
config.php
Log Message:
moron alert
Index: config.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/config.php,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -r1.46 -r1.47
*** config.php 18 Mar 2002 13:35:42 -0000 1.46
--- config.php 18 Mar 2002 13:38:12 -0000 1.47
***************
*** 1,51 ****
- <?php
-
- //
- // phpBB 2.x auto-generated config file
- // Do not change anything in this file!
- //
-
- $dbms = "mysql4";
- $dbhost = "localhost";
- $dbname = "dev_starstreak_net";
- $dbuser = "devhttp";
- $dbpasswd = "efx2KarizonaD";
-
- $dbhost = "localhost";
- $dbname = "phpbb_com";
- $dbuser = "devhttp";
- $dbpasswd = "efx2KarizonaD";
-
- /*
- $dbhost = "localhost";
- $dbname = "phpbb_test";
- $dbuser = "devhttp";
- $dbpasswd = "efx2KarizonaD";
-
- $dbms = "mssql-odbc";
-
- $dbhost = "mssql_phpbb_odbc";
- $dbname = "";
- $dbuser = "phpbb";
- $dbpasswd = "efx2000";
-
- $dbms = "msaccess";
-
- $dbhost = "phpbb_test_msaccess_odbc";
- $dbname = "";
- $dbuser = "devhttp";
- $dbpasswd = "efx2KarizonaD";
-
- $dbms = "mssql";
-
- $dbhost = "localhost";
- $dbname = "phpbb";
- $dbuser = "phpbb";
- $dbpasswd = "efx2000";
- */
-
- $table_prefix = "phpbb_";
-
- define('PHPBB_INSTALLED', true);
-
- ?>
\ No newline at end of file
--- 0 ----
|
|
From: Paul S. O. <ps...@us...> - 2002-03-18 13:35:47
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv25701
Modified Files:
config.php faq.php groupcp.php index.php install.php login.php
memberlist.php modcp.php posting.php privmsg.php profile.php
search.php upgrade.php viewforum.php viewonline.php
viewtopic.php
Log Message:
Loads'a changes including fix for security issue, thanks to Matthijs for checking this out and confirming
Index: config.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/config.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** config.php 25 Feb 2002 01:04:51 -0000 1.45
--- config.php 18 Mar 2002 13:35:42 -0000 1.46
***************
*** 0 ****
--- 1,51 ----
+ <?php
+
+ //
+ // phpBB 2.x auto-generated config file
+ // Do not change anything in this file!
+ //
+
+ $dbms = "mysql4";
+ $dbhost = "localhost";
+ $dbname = "dev_starstreak_net";
+ $dbuser = "devhttp";
+ $dbpasswd = "efx2KarizonaD";
+
+ $dbhost = "localhost";
+ $dbname = "phpbb_com";
+ $dbuser = "devhttp";
+ $dbpasswd = "efx2KarizonaD";
+
+ /*
+ $dbhost = "localhost";
+ $dbname = "phpbb_test";
+ $dbuser = "devhttp";
+ $dbpasswd = "efx2KarizonaD";
+
+ $dbms = "mssql-odbc";
+
+ $dbhost = "mssql_phpbb_odbc";
+ $dbname = "";
+ $dbuser = "phpbb";
+ $dbpasswd = "efx2000";
+
+ $dbms = "msaccess";
+
+ $dbhost = "phpbb_test_msaccess_odbc";
+ $dbname = "";
+ $dbuser = "devhttp";
+ $dbpasswd = "efx2KarizonaD";
+
+ $dbms = "mssql";
+
+ $dbhost = "localhost";
+ $dbname = "phpbb";
+ $dbuser = "phpbb";
+ $dbpasswd = "efx2000";
+ */
+
+ $table_prefix = "phpbb_";
+
+ define('PHPBB_INSTALLED', true);
+
+ ?>
\ No newline at end of file
Index: faq.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/faq.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** faq.php 4 Mar 2002 01:47:14 -0000 1.12
--- faq.php 18 Mar 2002 13:35:42 -0000 1.13
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: groupcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/groupcp.php,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** groupcp.php 4 Mar 2002 12:28:51 -0000 1.52
--- groupcp.php 18 Mar 2002 13:35:42 -0000 1.53
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: index.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/index.php,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -r1.95 -r1.96
*** index.php 16 Feb 2002 15:04:42 -0000 1.95
--- index.php 18 Mar 2002 13:35:42 -0000 1.96
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: install.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/install.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** install.php 11 Mar 2002 21:55:20 -0000 1.35
--- install.php 18 Mar 2002 13:35:42 -0000 1.36
***************
*** 23,28 ****
--- 23,30 ----
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
+ define('IN_PHPBB', true);
$phpbb_root_path='./';
include($phpbb_root_path.'extension.inc');
+ include($phpbb_root_dir . 'includes/functions_selects.'.$phpEx);
$userdata = array();
Index: login.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/login.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** login.php 15 Feb 2002 23:34:32 -0000 1.42
--- login.php 18 Mar 2002 13:35:42 -0000 1.43
***************
*** 27,30 ****
--- 27,31 ----
define("IN_LOGIN", true);
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: memberlist.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/memberlist.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** memberlist.php 4 Mar 2002 01:47:14 -0000 1.34
--- memberlist.php 18 Mar 2002 13:35:42 -0000 1.35
***************
*** 20,23 ****
--- 20,24 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: modcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/modcp.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -r1.62 -r1.63
*** modcp.php 4 Mar 2002 01:47:14 -0000 1.62
--- modcp.php 18 Mar 2002 13:35:42 -0000 1.63
***************
*** 30,38 ****
*/
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
! include($phpbb_root_path . 'includes/search.'.$phpEx);
//
--- 30,40 ----
*/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
! include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
! include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
//
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -r1.149 -r1.150
*** posting.php 3 Mar 2002 22:53:11 -0000 1.149
--- posting.php 18 Mar 2002 13:35:42 -0000 1.150
***************
*** 21,30 ****
***************************************************************************/
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
- include($phpbb_root_path . 'includes/post.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
! include($phpbb_root_path . 'includes/search.'.$phpEx);
//
[...1133 lines suppressed...]
--- 1079,1084 ----
topic_review($topic_id, true);
! $template->assign_block_vars('switch_inline_mode', array());
! $template->assign_var_from_handle('TOPIC_REVIEW_BOX', 'reviewbody');
}
***************
*** 1083,1087 ****
// Parse and print the body
//
! $template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
--- 1086,1090 ----
// Parse and print the body
//
! $template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -r1.88 -r1.89
*** privmsg.php 14 Mar 2002 13:08:26 -0000 1.88
--- privmsg.php 18 Mar 2002 13:35:43 -0000 1.89
***************
*** 21,29 ****
***************************************************************************/
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
- include($phpbb_root_path . 'includes/post.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
//
--- 21,30 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
+ include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
//
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.189
retrieving revision 1.190
diff -C2 -r1.189 -r1.190
*** profile.php 12 Mar 2002 21:14:58 -0000 1.189
--- profile.php 18 Mar 2002 13:35:43 -0000 1.190
***************
*** 21,29 ****
***************************************************************************/
! $phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
- include($phpbb_root_path . 'includes/post.'.$phpEx);
- include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
//
--- 21,28 ----
[...2039 lines suppressed...]
}
else if ( $mode == 'activate' )
{
! include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx);
! exit;
}
! else if ( $mode == 'email' )
{
! include($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
! exit;
}
}
+ else
+ {
+ header("Location: " . append_sid("index.$phpEx", true));
+ exit;
+ }
! ?>
\ No newline at end of file
Index: search.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/search.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -r1.63 -r1.64
*** search.php 25 Feb 2002 01:00:47 -0000 1.63
--- search.php 18 Mar 2002 13:35:43 -0000 1.64
***************
*** 21,29 ****
***************************************************************************/
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
! include($phpbb_root_path . 'includes/search.'.$phpEx);
//
--- 21,30 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
! include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
//
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/upgrade.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** upgrade.php 5 Mar 2002 14:15:39 -0000 1.22
--- upgrade.php 18 Mar 2002 13:35:43 -0000 1.23
***************
*** 20,23 ****
--- 20,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
+
if ( !defined('INSTALLING') )
{
***************
*** 48,52 ****
include('includes/db.'.$phpEx);
include('includes/bbcode.'.$phpEx);
! include('includes/search.'.$phpEx);
set_time_limit(0); // Unlimited execution time
--- 50,54 ----
include('includes/db.'.$phpEx);
include('includes/bbcode.'.$phpEx);
! include('includes/functions_search.'.$phpEx);
set_time_limit(0); // Unlimited execution time
Index: viewforum.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewforum.php,v
retrieving revision 1.131
retrieving revision 1.132
diff -C2 -r1.131 -r1.132
*** viewforum.php 19 Feb 2002 22:09:08 -0000 1.131
--- viewforum.php 18 Mar 2002 13:35:43 -0000 1.132
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: viewonline.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewonline.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** viewonline.php 1 Mar 2002 16:39:56 -0000 1.48
--- viewonline.php 18 Mar 2002 13:35:43 -0000 1.49
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
Index: viewtopic.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewtopic.php,v
retrieving revision 1.179
retrieving revision 1.180
diff -C2 -r1.179 -r1.180
*** viewtopic.php 12 Feb 2002 22:57:03 -0000 1.179
--- viewtopic.php 18 Mar 2002 13:35:43 -0000 1.180
***************
*** 21,24 ****
--- 21,25 ----
***************************************************************************/
+ define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv25584/includes
Modified Files:
auth.php bbcode.php constants.php db.php emailer.php
functions.php functions_admin.php functions_post.php
functions_search.php functions_selects.php
functions_validate.php page_header.php page_tail.php prune.php
sessions.php smtp.php sql_parse.php template.php
topic_review.php usercp_activate.php usercp_avatar.php
usercp_email.php usercp_sendpasswd.php usercp_viewprofile.php
Added Files:
usercp_register.php
Log Message:
Updates to overcome security issue + updates of various functions, initial version of profile registration include ... not completed but should be functional for obvious reasons(!)
--- NEW FILE ---
<?php
/***************************************************************************
* avatars.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_register.php,v 1.1 2002/03/18 13:35:23 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
if ( !defined('IN_PROFILE') )
{
die("Hacking attempt");
exit;
}
//
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa(&$coppa)
{
global $template, $lang, $phpbb_root_path, $phpEx;
$template->set_filenames(array(
'body' => 'agreement.tpl')
);
$template->assign_vars(array(
'COPPA' => $coppa,
'REGISTRATION' => $lang['Registration'],
'AGREEMENT' => $lang['Reg_agreement'],
"AGREE_OVER_13" => $lang['Agree_over_13'],
"AGREE_UNDER_13" => $lang['Agree_under_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
);
$template->pparse('body');
}
function parse_variables()
{
}
function process_data()
{
}
function show_profile_page()
{
}
//
//
//
$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register'];
if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
if ( !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
show_coppa($coppa);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
}
$coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == 'register' ) ? 0 : TRUE;
if ( isset($HTTP_POST_VARS['submit']) || isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar']) || $mode == 'register' )
{
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
if ( $mode == 'editprofile' )
{
$user_id = intval($HTTP_POST_VARS['user_id']);
$current_email = trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['current_email'])));
}
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
while( list($var, $param) = @each($strip_var_list) )
{
if ( !empty($HTTP_POST_VARS[$param]) )
{
$$var = trim(strip_tags($HTTP_POST_VARS[$param]));
}
}
$trim_var_list = array('password_current' => 'cur_password', 'password' => 'new_password', 'password_confirm' => 'password_confirm', 'signature' => 'signature');
while( list($var, $param) = @each($trim_var_list) )
{
if ( !empty($HTTP_POST_VARS[$param]) )
{
$$var = trim($HTTP_POST_VARS[$param]);
}
}
$username = str_replace(' ', '', $username);
$email = htmlspecialchars($email);
$signature = str_replace('<br />', '\n', $signature);
// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
// empty strings if they fail.
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
$notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0;
$notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE;
$popuppm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE;
if ( $mode == 'register' )
{
$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig'];
$allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $board_config['allow_html'];
$allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $board_config['allow_bbcode'];
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies'];
}
else
{
$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : 0;
$allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $userdata['user_allowhtml'];
$allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode'];
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmiles'];
}
$user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style'];
$user_lang = ( !empty($HTTP_POST_VARS['language']) ) ? $HTTP_POST_VARS['language'] : $board_config['default_lang'];
$user_timezone = ( isset($HTTP_POST_VARS['timezone']) ) ? doubleval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone'];
$user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim($HTTP_POST_VARS['dateformat']) : $board_config['default_dateformat'];
$user_avatar_local = ( isset($HTTP_POST_VARS['avatarselect']) && !empty($HTTP_POST_VARS['submitavatar']) && $board_config['allow_avatar_local'] ) ? $HTTP_POST_VARS['avatarselect'] : ( ( isset($HTTP_POST_VARS['avatarlocal']) ) ? $HTTP_POST_VARS['avatarlocal'] : '' );
$user_avatar_remoteurl = ( !empty($HTTP_POST_VARS['avatarremoteurl']) ) ? trim($HTTP_POST_VARS['avatarremoteurl']) : '';
$user_avatar_url = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim($HTTP_POST_VARS['avatarurl']) : '';
$user_avatar_loc = ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : '';
$user_avatar_name = ( !empty($HTTP_POST_FILES['avatar']['name']) ) ? $HTTP_POST_FILES['avatar']['name'] : '';
$user_avatar_size = ( !empty($HTTP_POST_FILES['avatar']['size']) ) ? $HTTP_POST_FILES['avatar']['size'] : 0;
$user_avatar_filetype = ( !empty($HTTP_POST_FILES['avatar']['type']) ) ? $HTTP_POST_FILES['avatar']['type'] : '';
$user_avatar = ( empty($user_avatar_loc) && $mode == 'editprofile' ) ? $userdata['user_avatar'] : '';
$user_avatar_type = ( empty($user_avatar_loc) && $mode == 'editprofile' ) ? $userdata['user_avatar_type'] : '';
if ( isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar']) )
{
$username = stripslashes($username);
$email = stripslashes($email);
$password = '';
$password_confirm = '';
$icq = stripslashes($icq);
$aim = stripslashes($aim);
$msn = stripslashes($msn);
$yim = stripslashes($yim);
$website = stripslashes($website);
$location = stripslashes($location);
$occupation = stripslashes($occupation);
$interests = stripslashes($interests);
$signature = stripslashes($signature);
$user_lang = stripslashes($user_lang);
$user_dateformat = stripslashes($user_dateformat);
$user_avatar = $user_avatar_local;
$user_avatar_type = USER_AVATAR_GALLERY;
}
}
if ( isset($HTTP_POST_VARS['submit']) )
{
$error = FALSE;
$passwd_sql = '';
if ( $mode == 'editprofile' )
{
if ( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Wrong_Profile'];
}
}
else if ( $mode == 'register' )
{
$coppa = (!$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa']) ? 0 : TRUE;
if ( empty($username) || empty($password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_ms .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
$passwd_sql = '';
if ( !empty($password) && !empty($password_confirm) )
{
if ( $password != $password_confirm )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch'];
}
else if ( strlen($password) > 32 )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_long'];
}
else
{
if ( $mode == 'editprofile' )
{
$sql = "SELECT user_password
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ( $row['user_password'] != md5($password_current) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Current_password_mismatch'];
}
}
if ( !$error )
{
$password = md5($password);
$passwd_sql = "user_password = '$password', ";
}
}
}
else if ( ( $password && !$password_confirm ) || ( !$password && $password_confirm ) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch'];
}
//
// Do a ban check on this email address
//
if ( $email != $userdata['user_email'] || $mode == 'register' )
{
$result = validate_email($email);
if ( $result['error'] )
{
$email = $userdata['user_email'];
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg'];
}
if ( $mode == 'editprofile' )
{
$sql = "SELECT user_password
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ( $row['user_password'] != md5($password_current) )
{
$email = $userdata['user_email'];
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Current_password_mismatch'];
}
}
}
$username_sql = '';
if ( $board_config['allow_namechange'] || $mode == 'register' )
{
if ( $username != $userdata['username'] || $mode == 'register' )
{
$result = validate_username($username);
if ( $result['error'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg'];
}
else
{
$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
}
}
}
if ( $signature != '' )
{
if ( strlen($signature) > $board_config['max_sig_chars'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
}
if ( $signature_bbcode_uid == '' )
{
$signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : '';
}
$signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
}
include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx);
if ( isset($HTTP_POST_VARS['avatardel']) && $mode == 'editprofile' )
{
$avatar_sql = user_avatar_delete($userdata['avatar_type'], $userdata['avatar_file']);
}
else if ( ( $user_avatar_loc != '' || !empty($user_avatar_url) ) && $board_config['allow_avatar_upload'] )
{
if ( !empty($user_avatar_loc) && !empty($user_avatar_url) )
{
$error = true;
$error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Only_one_avatar'];
}
$id = ( $mode == 'register' ) ? $new_user_id : $userdata['user_id'];
if ( !empty($user_avatar_loc) )
{
$avatar_sql = user_avatar_upload($mode, 'local', $id, $error, $error_msg, $user_avatar_loc, $user_avatar_name, $user_avatar_size, $user_avatar_filetype);
}
else if ( !empty($user_avatar_url) )
{
$avatar_sql = user_avatar_upload($mode, 'remote', $id, $error, $error_msg, $user_avatar_url, $user_avatar_name, $user_avatar_size, $user_avatar_filetype);
}
else if ( !empty($user_avatar_name) )
{
$l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024));
$error = true;
$error_msg = ( ( !empty($error_msg) ) ? '<br />' : '' ) . $l_avatar_size;
}
}
else if ( $user_avatar_remoteurl != '' && $board_config['allow_avatar_remote'] )
{
$avatar_sql = user_avatar_url($mode, $error, $error_msg, $user_avatar_remoteurl);
}
else if ( $user_avatar_local != '' && $board_config['allow_avatar_local'] )
{
$avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local);
}
if ( !$error )
{
if ( $avatar_sql == '' )
{
$avatar_sql = ( $mode == 'editprofile' ) ? '' : "'', " . USER_AVATAR_NONE;
}
if ( $mode == 'editprofile' )
{
if ( $email != $current_email && ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) && $userdata['user_level'] != ADMIN )
{
$user_active = 0;
$user_actkey = gen_rand_string(true);
//
// The user is inactive, remove their session forcing them to login again before they can post.
//
if ( $userdata['session_logged_in'] )
{
session_end($userdata['session_id'], $userdata['user_id']);
}
}
else
{
$user_active = 1;
$user_actkey = '';
}
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
}
if ( !$user_active )
{
//
// The users account has been deactivated, send them an email with a new activation key
//
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
$emailer->use_template('user_activate', stripslashes($user_lang));
$emailer->email_address($email);
$emailer->set_subject();//$lang['Reactivate']
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'USERNAME' => $username,
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),
'U_ACTIVATE' => $server_url . '?mode=activate&act_key=' . $user_actkey)
);
$emailer->send();
$emailer->reset();
$message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
}
else
{
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
}
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
);
message_die(GENERAL_MESSAGE, $message);
}
else
{
$sql = "SELECT MAX(user_id) AS total
FROM " . USERS_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtained next user_id information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$user_id = $row['total'] + 1;
$sql = "SELECT MAX(group_id) AS total
FROM " . GROUPS_TABLE;
if ( $result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not obtained next user_id information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$group_id = $row['total'] + 1;
//
// Get current date
//
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", $aim) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
{
$user_actkey = gen_rand_string(true);
$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
}
else
{
$sql .= "1, '')";
}
if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
{
message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);
}
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_id, group_name, group_description, group_single_user, group_moderator)
VALUES ($group_id, '', 'Personal User', 1, 0)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql);
}
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
VALUES ($user_id, $group_id, 0)";
if( !($result = $db->sql_query($sql, END_TRANSACTION)) )
{
message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql);
}
if ( $coppa )
{
$message = $lang['COPPA'];
$email_template = 'coppa_welcome_inactive';
}
else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF )
{
$message = $lang['Account_inactive'];
$email_template = 'user_welcome_inactive';
}
else if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN )
{
$message = $lang['Account_inactive_admin'];
$email_template = 'admin_welcome_inactive';
}
else
{
$message = $lang['Account_added'];
$email_template = 'user_welcome';
}
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
$emailer->use_template($email_template, stripslashes($user_lang));
$emailer->email_address($email);
$emailer->set_subject();//sprintf($lang['Welcome_subject'], $board_config['sitename'])
$emailer->extra_headers($email_headers);
if( $coppa )
{
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
'USERNAME' => $username,
'PASSWORD' => $password_confirm,
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),
'U_ACTIVATE' => $server_url . '?mode=activate&act_key=' . $user_actkey,
'FAX_INFO' => $board_config['coppa_fax'],
'MAIL_INFO' => $board_config['coppa_mail'],
'EMAIL_ADDRESS' => $email,
'ICQ' => $icq,
'AIM' => $aim,
'YIM' => $yim,
'MSN' => $msn,
'WEB_SITE' => $website,
'FROM' => $location,
'OCC' => $occupation,
'INTERESTS' => $interests,
'SITENAME' => $board_config['sitename']));
}
else
{
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
'USERNAME' => $username,
'PASSWORD' => $password_confirm,
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),
'U_ACTIVATE' => $server_url . '?mode=activate&act_key=' . $user_actkey)
);
}
$emailer->send();
$emailer->reset();
if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN )
{
$emailer->use_template("admin_activate", stripslashes($user_lang));
$emailer->email_address($board_config['board_email']);
$emailer->set_subject(); //$lang['New_account_subject']
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
'USERNAME' => $username,
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),
'U_ACTIVATE' => $server_url . '?mode=activate&act_key=' . $user_actkey)
);
$emailer->send();
$emailer->reset();
}
$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
} // if mode == register
}
}
if ( $error )
{
//
// If an error occured we need to stripslashes on returned data
//
$username = stripslashes($username);
$email = stripslashes($email);
$password = '';
$password_confirm = '';
$icq = stripslashes($icq);
$aim = stripslashes($aim);
$msn = stripslashes($msn);
$yim = stripslashes($yim);
$website = stripslashes($website);
$location = stripslashes($location);
$occupation = stripslashes($occupation);
$interests = stripslashes($interests);
$signature = stripslashes($signature);
$user_lang = stripslashes($user_lang);
$user_dateformat = stripslashes($user_dateformat);
}
else if ( $mode == 'editprofile' && !isset($HTTP_POST_VARS['avatargallery']) && !isset($HTTP_POST_VARS['submitavatar']) && !isset($HTTP_POST_VARS['cancelavatar']) )
{
$user_id = $userdata['user_id'];
$username = $userdata['username'];
$email = $userdata['user_email'];
$password = "";
$password_confirm = "";
$icq = $userdata['user_icq'];
$aim = $userdata['user_aim'];
$msn = $userdata['user_msnm'];
$yim = $userdata['user_yim'];
$website = $userdata['user_website'];
$location = $userdata['user_from'];
$occupation = $userdata['user_occ'];
$interests = $userdata['user_interests'];
$signature_bbcode_uid = $userdata['user_sig_bbcode_uid'];
$signature = ( $signature_bbcode_uid != "" ) ? preg_replace("/\:(([a-z0-9]:)?)$signature_bbcode_uid/si", '', $userdata['user_sig']) : $userdata['user_sig'];
$viewemail = $userdata['user_viewemail'];
$notifypm = $userdata['user_notify_pm'];
$popuppm = $userdata['user_popup_pm'];
$notifyreply = $userdata['user_notify'];
$attachsig = $userdata['user_attachsig'];
$allowhtml = $userdata['user_allowhtml'];
$allowbbcode = $userdata['user_allowbbcode'];
$allowsmilies = $userdata['user_allowsmile'];
$allowviewonline = $userdata['user_allow_viewonline'];
$user_avatar = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar'] : '';
$user_avatar_type = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar_type'] : USER_AVATAR_NONE;
$user_style = $userdata['user_style'];
$user_lang = $userdata['user_lang'];
$user_timezone = $userdata['user_timezone'];
$user_dateformat = $userdata['user_dateformat'];
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
"jumpbox" => "jumpbox.tpl")
);
$jumpbox = make_jumpbox();
$template->assign_vars(array(
'L_GO' => $lang['Go'],
'L_JUMP_TO' => $lang['Jump_to'],
'L_SELECT_FORUM' => $lang['Select_forum'],
'S_JUMPBOX_LIST' => $jumpbox,
'S_JUMPBOX_ACTION' => append_sid('viewforum.$phpEx'))
);
$template->assign_var_from_handle('JUMPBOX', 'jumpbox');
if ( $mode == 'editprofile' )
{
if ( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg = $lang['Wrong_Profile'];
}
}
if( isset($HTTP_POST_VARS['avatargallery']) && !$error )
{
include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx);
$avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? $HTTP_POST_VARS['avatarcategory'] : '';
$template->set_filenames(array(
"body" => "profile_avatar_gallery.tpl")
);
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat);
}
else
{
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
if ( !isset($coppa) )
{
$coppa = FALSE;
}
if ( !isset($user_template) )
{
$selected_template = $board_config['system_template'];
}
$signature = preg_replace('/\:[0-9a-z\:]*?\]/si', ']', $signature);
$avatar_img = '';
if ( $user_avatar_type )
{
switch( $user_avatar_type )
{
case USER_AVATAR_UPLOAD:
$avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $user_avatar . '" alt="" />' : '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $user_avatar . '" alt="" />' : '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $user_avatar . '" alt="" />' : '';
break;
}
}
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />';
if( $mode == 'editprofile' )
{
$s_hidden_fields .= '<input type="hidden" name="user_id" value="' . $userdata['user_id'] . '" />';
//
// Send the users current email address. If they change it, and account activation is turned on
// the user account will be disabled and the user will have to reactivate their account.
//
$s_hidden_fields .= '<input type="hidden" name="current_email" value="' . $userdata['user_email'] . '" />';
}
if ( !empty($user_avatar_local) )
{
$s_hidden_fields .= '<input type="hidden" name="avatarlocal" value="' . $user_avatar_local . '" />';
}
$html_status = ( $userdata['user_allowhtml'] && $board_config['allow_html'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF'];
$bbcode_status = ( $userdata['user_allowbbcode'] && $board_config['allow_bbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF'];
$smilies_status = ( $userdata['user_allowsmile'] && $board_config['allow_smilies'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];
if ( $error )
{
$template->set_filenames(array(
'reg_header' => 'error_body.tpl')
);
$template->assign_vars(array(
'ERROR_MESSAGE' => $error_msg)
);
$template->assign_var_from_handle('ERROR_BOX', 'reg_header');
}
$template->set_filenames(array(
'body' => 'profile_add_body.tpl')
);
if ( $mode == 'editprofile' )
{
$template->assign_block_vars('edit_profile', array());
}
//
// Let's do an overall check for settings/versions which would prevent
// us from doing file uploads....
//
$ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var';
$form_enctype = ( !$ini_val('file_uploads') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || ( phpversion() < '4.0.3' && $ini_val('open_basedir') != '' ) ) ? '' : 'enctype="multipart/form-data"';
$template->assign_vars(array(
'USERNAME' => $username,
'EMAIL' => $email,
'YIM' => $yim,
'ICQ' => $icq,
'MSN' => $msn,
'AIM' => $aim,
'OCCUPATION' => $occupation,
'INTERESTS' => $interests,
'LOCATION' => $location,
'WEBSITE' => $website,
'SIGNATURE' => str_replace('<br />', "\n", $signature),
'VIEW_EMAIL_YES' => ( $viewemail ) ? 'checked="checked"' : '',
'VIEW_EMAIL_NO' => ( !$viewemail ) ? 'checked="checked"' : '',
'HIDE_USER_YES' => ( !$allowviewonline ) ? 'checked="checked"' : '',
'HIDE_USER_NO' => ( $allowviewonline ) ? 'checked="checked"' : '',
'NOTIFY_PM_YES' => ( $notifypm ) ? 'checked="checked"' : '',
'NOTIFY_PM_NO' => ( !$notifypm ) ? 'checked="checked"' : '',
'POPUP_PM_YES' => ( $popuppm ) ? 'checked="checked"' : '',
'POPUP_PM_NO' => ( !$popuppm ) ? 'checked="checked"' : '',
'ALWAYS_ADD_SIGNATURE_YES' => ( $attachsig ) ? 'checked="checked"' : '',
'ALWAYS_ADD_SIGNATURE_NO' => ( !$attachsig ) ? 'checked="checked"' : '',
'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '',
'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_BBCODE_YES' => ( $allowbbcode ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_BBCODE_NO' => ( !$allowbbcode ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_HTML_YES' => ( $allowhtml ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_HTML_NO' => ( !$allowhtml ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_SMILIES_YES' => ( $allowsmilies ) ? 'checked="checked"' : '',
'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '',
'ALLOW_AVATAR' => $board_config['allow_avatar_upload'],
'AVATAR' => $avatar_img,
'AVATAR_SIZE' => $board_config['avatar_filesize'],
'LANGUAGE_SELECT' => language_select($user_lang, 'language'),
'STYLE_SELECT' => style_select($user_style, 'style'),
'TIMEZONE_SELECT' => tz_select($user_timezone, 'timezone'),
'DATE_FORMAT' => $user_dateformat,
'HTML_STATUS' => $html_status,
'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'),
'SMILIES_STATUS' => $smilies_status,
'L_CURRENT_PASSWORD' => $lang['Current_password'],
'L_NEW_PASSWORD' => ( $mode == 'register' ) ? $lang['Password'] : $lang['New_password'],
'L_CONFIRM_PASSWORD' => $lang['Confirm_password'],
'L_CONFIRM_PASSWORD_EXPLAIN' => ( $mode == 'editprofile' ) ? $lang['Confirm_password_explain'] : '',
'L_PASSWORD_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_if_changed'] : '',
'L_PASSWORD_CONFIRM_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_confirm_if_changed'] : '',
'L_SUBMIT' => $lang['Submit'],
'L_RESET' => $lang['Reset'],
'L_ICQ_NUMBER' => $lang['ICQ'],
'L_MESSENGER' => $lang['MSNM'],
'L_YAHOO' => $lang['YIM'],
'L_WEBSITE' => $lang['Website'],
'L_AIM' => $lang['AIM'],
'L_LOCATION' => $lang['Location'],
'L_OCCUPATION' => $lang['Occupation'],
'L_BOARD_LANGUAGE' => $lang['Board_lang'],
'L_BOARD_STYLE' => $lang['Board_style'],
'L_TIMEZONE' => $lang['Timezone'],
'L_DATE_FORMAT' => $lang['Date_format'],
'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'],
'L_YES' => $lang['Yes'],
'L_NO' => $lang['No'],
'L_INTERESTS' => $lang['Interests'],
'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'],
'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'],
'L_HIDE_USER' => $lang['Hide_user'],
'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],
'L_AVATAR_PANEL' => $lang['Avatar_panel'],
'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $board_config['avatar_max_width'], $board_config['avatar_max_height'], (round($board_config['avatar_filesize'] / 1024))),
'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'],
'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'],
'L_UPLOAD_AVATAR_URL_EXPLAIN' => $lang['Upload_Avatar_URL_explain'],
'L_AVATAR_GALLERY' => $lang['Select_from_gallery'],
'L_SHOW_GALLERY' => $lang['View_avatar_gallery'],
'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'],
'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'],
'L_DELETE_AVATAR' => $lang['Delete_Image'],
'L_CURRENT_IMAGE' => $lang['Current_Image'],
'L_SIGNATURE' => $lang['Signature'],
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
'L_NOTIFY_ON_REPLY' => $lang['Always_notify'],
'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'],
'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'],
'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'],
'L_PREFERENCES' => $lang['Preferences'],
'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
'L_ITEMS_REQUIRED' => $lang['Items_required'],
'L_REGISTRATION_INFO' => $lang['Registration_info'],
'L_PROFILE_INFO' => $lang['Profile_info'],
'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],
'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'],
'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'],
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_FORM_ENCTYPE' => $form_enctype,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
//
// This is another cheat using the block_var capability
// of the templates to 'fake' an IF...ELSE...ENDIF solution
// it works well :)
//
if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
{
$template->assign_block_vars('avatar_block', array() );
if ( $board_config['allow_avatar_upload'] && file_exists('./' . $board_config['avatar_path']) )
{
if ( $form_enctype != '' )
{
$template->assign_block_vars('avatar_block.avatar_local_upload', array() );
}
$template->assign_block_vars('avatar_block.avatar_remote_upload', array() );
}
if ( $board_config['allow_avatar_remote'] )
{
$template->assign_block_vars('avatar_block.avatar_remote_link', array() );
}
if ( $board_config['allow_avatar_local'] && file_exists('./' . $board_config['avatar_gallery_path']) )
{
$template->assign_block_vars('avatar_block.avatar_local_gallery', array() );
}
}
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/auth.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** auth.php 16 Dec 2001 18:53:44 -0000 1.34
--- auth.php 18 Mar 2002 13:35:21 -0000 1.35
***************
*** 21,24 ****
--- 21,29 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
/*
$type's accepted (pre-pend with AUTH_):
Index: bbcode.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/bbcode.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** bbcode.php 17 Feb 2002 16:05:18 -0000 1.32
--- bbcode.php 18 Mar 2002 13:35:22 -0000 1.33
***************
*** 20,23 ****
--- 20,28 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
define("BBCODE_UID_LEN", 10);
***************
*** 537,543 ****
global $lang;
- $html_entities_match = array("#<#", "#>#");
- $html_entities_replace = array("<", ">");
-
$code_start_html = $bbcode_tpl['code_open'];
$code_end_html = $bbcode_tpl['code_close'];
--- 542,545 ----
***************
*** 551,556 ****
$before_replace = $matches[1][$i];
$after_replace = $matches[1][$i];
-
- $after_replace = preg_replace($html_entities_match, $html_entities_replace, $after_replace);
// Replace 2 spaces with " " so non-tabbed code indents without making huge long lines.
--- 553,556 ----
***************
*** 765,767 ****
}
! ?>
--- 765,785 ----
}
! //
! // this does exactly what preg_quote() does in PHP 4-ish:
! // http://www.php.net/manual/en/function.preg-quote.php
! //
! // This function is here because the 2nd paramter to preg_quote was added in some
! // version of php 4.0.x.. So we use this in order to maintain compatibility with
! // earlier versions of PHP.
! //
! // If you just need the 1-parameter preg_quote call, then don't bother using this.
! //
! function phpbb_preg_quote($str, $delimiter)
! {
! $text = preg_quote($str);
! $text = str_replace($delimiter, "\\" . $delimiter, $text);
!
! return $text;
! }
!
! ?>
\ No newline at end of file
Index: constants.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/constants.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** constants.php 16 Feb 2002 20:35:36 -0000 1.44
--- constants.php 18 Mar 2002 13:35:22 -0000 1.45
***************
*** 21,24 ****
--- 21,29 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
// Debug Level
define('DEBUG', 1); // Debugging on
Index: db.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/db.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** db.php 30 Nov 2001 23:22:56 -0000 1.9
--- db.php 18 Mar 2002 13:35:22 -0000 1.10
***************
*** 21,24 ****
--- 21,29 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
switch($dbms)
{
Index: emailer.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/emailer.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** emailer.php 1 Mar 2002 16:43:32 -0000 1.12
--- emailer.php 18 Mar 2002 13:35:22 -0000 1.13
***************
*** 20,23 ****
--- 20,28 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
//
// The emailer class has support for attaching files, that isn't implemented
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.123
retrieving revision 1.124
diff -C2 -r1.123 -r1.124
*** functions.php 6 Mar 2002 00:40:31 -0000 1.123
--- functions.php 18 Mar 2002 13:35:22 -0000 1.124
***************
*** 22,30 ****
***************************************************************************/
function get_db_stat($mode)
{
global $db;
! switch($mode)
{
case 'usercount':
--- 22,35 ----
***************************************************************************/
+ if ( !defined('IN_PHPBB') )
+ {
+ die("Hacking attempt");
+ }
+
function get_db_stat($mode)
{
global $db;
! switch( $mode )
{
case 'usercount':
***************
*** 51,55 ****
if ( !($result = $db->sql_query($sql)) )
{
! return 'ERROR';
}
--- 56,60 ----
if ( !($result = $db->sql_query($sql)) )
{
! return false;
}
***************
*** 72,76 ****
}
! return 'ERROR';
}
--- 77,81 ----
}
! return false;
}
***************
*** 85,89 ****
if ( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, "Tried obtaining data for a non-existent user", "", __LINE__, __FILE__, $sql);
}
--- 90,94 ----
if ( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql);
}
***************
*** 118,122 ****
if ( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, "Couldn't obtain forums information.", "", __LINE__, __FILE__, $sql);
}
--- 123,127 ----
if ( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
***************
*** 133,137 ****
for($i = 0; $i < $total_categories; $i++)
{
! $boxstring_forums = "";
for($j = 0; $j < $total_forums; $j++)
{
--- 138,142 ----
for($i = 0; $i < $total_categories; $i++)
{
! $boxstring_forums = '';
for($j = 0; $j < $total_forums; $j++)
{
***************
*** 153,157 ****
}
! if ( $boxstring_forums != "" )
{
$boxstring .= '<option value="-1"> </option>';
--- 158,162 ----
}
! if ( $boxstring_forums != '' )
{
$boxstring .= '<option value="-1"> </option>';
***************
*** 179,213 ****
//
- // Simple version of jumpbox, just lists authed forums
- //
- function make_forum_select($box_name, $ignore_forum = false)
- {
- global $db, $userdata;
-
- $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata);
-
- $sql = "SELECT forum_id, forum_name
- FROM " . FORUMS_TABLE . "
- ORDER BY cat_id, forum_order";
- if ( !($result = $db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, "Couldn't obtain forums information.", "", __LINE__, __FILE__, $sql);
- }
-
- $forum_list = '';
- while( $row = $db->sql_fetchrow($result) )
- {
- if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
- {
- $forum_list .= '<option value="' . $row['forum_id'] . '">' . $row['forum_name'] . '</option>';
- }
- }
-
- $forum_list = ( $forum_list == "" ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>';
-
- return $forum_list;
- }
-
- //
// Initialise user settings on page load
function init_userprefs($userdata)
--- 184,187 ----
***************
*** 233,249 ****
}
}
! if ( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.".$phpEx) )
{
! $board_config['default_lang'] = "english";
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
! if ( defined("IN_ADMIN") )
{
! if( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) )
{
! $board_config['default_lang'] = "english";
}
--- 207,232 ----
}
}
+ /*switch( getenv('HTTP_ACCEPT_LANGUAGE') )
+ {
+ case 'en-gb':
+ $board_config['default_lang'] = 'english';
+ break;
+ case 'fr':
+ $board_config['default_lang'] = 'french';
+ break;
+ }*/
! if ( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx) )
{
! $board_config['default_lang'] = 'english';
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
! if ( defined('IN_ADMIN') )
{
! if( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx) )
{
! $board_config['default_lang'] = 'english';
}
***************
*** 279,288 ****
if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, "Couldn't query database for theme info.");
}
if ( !($row = $db->sql_fetchrow($result)) )
{
! message_die(CRITICAL_ERROR, "Couldn't get theme data for themes_id=$style.");
}
--- 262,271 ----
if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}
if ( !($row = $db->sql_fetchrow($result)) )
{
! message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
***************
*** 297,303 ****
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');
! if ( !defined("TEMPLATE_CONFIG") )
{
! message_die(CRITICAL_ERROR, "Couldn't open $template_name template config file");
}
--- 280,286 ----
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');
! if ( !defined('TEMPLATE_CONFIG') )
{
! message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
}
***************
*** 306,310 ****
while( list($key, $value) = @each($images) )
{
! $images[$key] = str_replace("{LANG}", 'lang_' . $img_lang, $value);
}
}
--- 289,296 ----
while( list($key, $value) = @each($images) )
{
! if ( !is_array($value) )
! {
! $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value);
! }
}
}
***************
*** 315,326 ****
function encode_ip($dotquad_ip)
{
! $ip_sep = explode(".", $dotquad_ip);
! return sprintf("%02x%02x%02x%02x", $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}
function decode_ip($int_ip)
{
! $hexipbang = explode(".",chunk_split($int_ip, 2, "."));
! return hexdec($hexipbang[0]).".".hexdec($hexipbang[1]).".".hexdec($hexipbang[2]).".".hexdec($hexipbang[3]);
}
--- 301,312 ----
function encode_ip($dotquad_ip)
{
! $ip_sep = explode('.', $dotquad_ip);
! return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}
function decode_ip($int_ip)
{
! $hexipbang = explode('.',chunk_split($int_ip, 2, '.'));
! return hexdec($hexipbang[0]).'.'.hexdec($hexipbang[1]).'.'.hexdec($hexipbang[2]).'.'.hexdec($hexipbang[3]);
}
***************
*** 331,347 ****
{
global $board_config, $lang;
! $result = @gmdate($format, $gmepoch + (3600 * $tz));
!
! if ( $board_config['default_lang'] != 'english' )
{
@reset($lang['datetime']);
while ( list($match, $replace) = @each($lang['datetime']) )
{
! $result = str_replace($match, $replace, $result);
}
}
! return $result;
}
--- 317,332 ----
{
global $board_config, $lang;
+ static $translate;
! if ( empty($translate) && $board_config['default_lang'] != 'english' )
{
@reset($lang['datetime']);
while ( list($match, $replace) = @each($lang['datetime']) )
{
! $translate[$match] = $replace;
}
}
! return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
}
***************
*** 363,367 ****
$on_page = floor($start_item / $per_page) + 1;
! $page_string = "";
if ( $total_pages > 10 )
{
--- 348,352 ----
$on_page = floor($start_item / $per_page) + 1;
! $page_string = '';
if ( $total_pages > 10 )
{
***************
*** 443,714 ****
}
-
- //
- // Check to see if the username has been taken, or if it is disallowed.
- // Also checks if it includes the " character, which we don't allow in usernames.
- // Used for registering, changing names, and posting anonymously with a username
- //
- function validate_username($username)
- {
- global $db, $lang, $userdata;
-
- $username = str_replace("\'", "''", $username);
-
- $sql = "SELECT username
- FROM " . USERS_TABLE . "
- WHERE LOWER(username) = '" . strtolower($username) . "'";
- if ( $result = $db->sql_query($sql) )
- {
- if ( $row = $db->sql_fetchrow($result) )
- {
- if ( ( $userdata['session_logged_in'] && $row['username'] != $userdata['username'] ) || !$userdata['session_logged_in'] )
- {
- return array('error' => true, 'error_msg' => $lang['Username_taken']);
- }
- }
- }
-
- $sql = "SELECT group_name
- FROM " . GROUPS_TABLE . "
- WHERE LOWER(group_name) = '" . strtolower($username) . "'";
- if ( $result = $db->sql_query($sql) )
- {
- if ( $row = $db->sql_fetchrow($result) )
- {
- return array('error' => true, 'error_msg' => $lang['Username_taken']);
- }
- }
-
- $sql = "SELECT disallow_username
- FROM " . DISALLOW_TABLE . "
- WHERE disallow_username LIKE '$username'";
- if ( $result = $db->sql_query($sql) )
- {
- if ( $db->sql_fetchrow($result) )
- {
- return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
- }
- }
-
- $sql = "SELECT word
- FROM " . WORDS_TABLE;
- if ( $result = $db->sql_query($sql) )
- {
- while( $row = $db->sql_fetchrow($result) )
- {
- if ( preg_match("/\b(" . str_replace("\*", "\w*?", preg_quote($row['word'])) . ")\b/i", $username) )
- {
- return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
- }
- }
- }
-
- // Don't allow " in username.
- if ( strstr($username, '"') )
- {
- return array('error' => true, 'error_msg' => $lang['Username_invalid']);
- }
-
- return array('error' => false, 'error_msg' => '');
- }
-
-
- //
- // Synchronise functions for forums/topics
- //
- function sync($type, $id)
- {
- global $db;
-
- switch($type)
- {
- case 'all forums':
- $sql = "SELECT forum_id
- FROM " . FORUMS_TABLE;
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not get forum IDs", "Error", __LINE__, __FILE__, $sql);
- }
-
- while( $row = $db->sql_fetchrow($result) )
- {
- sync("forum", $row['forum_id']);
- }
- break;
-
- case 'all topics':
- $sql = "SELECT topic_id
- FROM " . TOPICS_TABLE;
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not get topic ID's", "Error", __LINE__, __FILE__, $sql);
- }
-
- while( $row = $db->sql_fetchrow($result) )
- {
- sync("topic", $row['topic_id']);
- }
- break;
-
- case 'forum':
- $sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total
- FROM " . POSTS_TABLE . "
- WHERE forum_id = $id";
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not get post ID", "Error", __LINE__, __FILE__, $sql);
- }
-
- if ( $row = $db->sql_fetchrow($result) )
- {
- $last_post = ($row['last_post']) ? $row['last_post'] : 0;
- $total_posts = ($row['total']) ? $row['total'] : 0;
- }
- else
- {
- $last_post = 0;
- $total_posts = 0;
- }
-
- $sql = "SELECT COUNT(topic_id) AS total
- FROM " . TOPICS_TABLE . "
- WHERE forum_id = $id
- AND topic_status <> " . TOPIC_MOVED;
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not get topic count", "Error", __LINE__, __FILE__, $sql);
- }
-
- if ( $row = $db->sql_fetchrow($result) )
- {
- $total_topics = ($row['total']) ? $row['total'] : 0;
- }
- else
- {
- $total_topics = 0;
- }
-
- $sql = "UPDATE " . FORUMS_TABLE . "
- SET forum_last_post_id = $last_post, forum_posts = $total_posts, forum_topics = $total_topics
- WHERE forum_id = $id";
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not update forum $id", "Error", __LINE__, __FILE__, $sql);
- }
- break;
-
- case 'topic':
- $sql = "SELECT MAX(post_id) AS last_post, MIN(post_id) AS first_post, COUNT(post_id) AS total_posts
- FROM " . POSTS_TABLE . "
- WHERE topic_id = $id";
- if ( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, "Could not get post ID", "Error", __LINE__, __FILE__, $sql);
- }
-
- if ( $row = $db->sql_fetchrow($result) )
- {
- $sql = "UPDATE " . TOPICS_TABLE . "
- SET topic_replies = " . ( $row['total_posts'] - 1 ) . ", topic_first_post_id = " . $row['first_post'] . ", topic_last_post_id = " . $row['last_post'] . "
- WHERE topic_id = $id";
- if ( !($result = $db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, "Could not update topic $id", "Error", __LINE__, __FILE__, $sql);
- }
- }
-
- break;
- }
-
- return true;
- }
-
- //
- // Pick a language, any language ...
- //
- function language_select($default, $select_name = "language", $dirname="language")
- {
- global $phpEx;
-
- $dir = opendir($dirname);
-
- $lang = array();
- while ( $file = readdir($dir) )
- {
- if ( ereg("^lang_", $file) && !is_file($dirname . "/" . $file) && !is_link($dirname . "/" . $file) )
- {
- $filename = trim(str_replace("lang_", "", $file));
- $displayname = preg_replace("/^(.*?)_(.*)$/", "\\1 [ \\2 ]", $filename);
- $displayname = preg_replace("/\[(.*?)_(.*)\]/", "[ \\1 - \\2 ]", $displayname);
- $lang[$displayname] = $filename;
- }
- }
-
- closedir($dir);
-
- @asort($lang);
- @reset($lang);
-
- $lang_select = '<select name="' . $select_name . '">';
- while ( list($displayname, $filename) = @each($lang) )
- {
- $selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : '';
- $lang_select .= '<option value="' . $filename . '"' . $selected . '>' . ucwords($displayname) . '</option>';
- }
- $lang_select .= '</select>';
-
- return $lang_select;
- }
-
- //
- // Pick a template/theme combo,
- //
- function style_select($default_style, $select_name = "style", $dirname = "templates")
- {
- global $db;
-
- $sql = "SELECT themes_id, style_name
- FROM " . THEMES_TABLE . "
- ORDER BY template_name, themes_id";
- if ( !($result = $db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql);
- }
-
- $style_select = '<select name="' . $select_name . '">';
- while ( $row = $db->sql_fetchrow($result) )
- {
- $selected = ( $row['themes_id'] == $default_style ) ? ' selected="selected"' : '';
-
- $style_select .= '<option value="' . $row['themes_id'] . '"' . $selected . '>' . $row['style_name'] . '</option>';
- }
- $style_select .= "</select>";
-
- return $style_select;
- }
-
- //
- // Pick a timezone
- //
- function tz_select($default, $select_name = 'timezone')
- {
- global $sys_timezone, $lang;
-
- if ( !isset($default) )
- {
- $default == $sys_timezone;
- }
- $tz_select = '<select name="' . $select_name . '">';
-
- while( list($offset, $zone) = @each($lang['tz']) )
- {
- $selected = ( $offset == $default ) ? ' selected="selected"' : '';
- $tz_select .= '<option value="' . $offset . '"' . $selected . '>' . $zone . '</option>';
- }
- $tz_select .= '</select>';
-
- return $tz_select;
- }
-
//
// Obtain list of naughty words and build preg style replacement arrays for use by the
--- 428,431 ----
***************
*** 727,731 ****
if( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, "Couldn't get censored words from database.", "", __LINE__, __FILE__, $sql);
}
--- 444,448 ----
if( !($result = $db->sql_query($sql)) )
{
! message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql);
}
***************
*** 734,738 ****
do
{
! $orig_word[] = "#\b(" . str_replace("\*", "\w*?", preg_quote($row['word'])) . ")\b#is";
$replacement_word[] = $row['replacement'];
}
--- 451,455 ----
do
{
! $orig_word[] = '#\W(' . str_replace('\*', '\w*?', preg_quote($row['word'])) . ')\W#is';
$replacement_word[] = $row['replacement'];
}
***************
*** 744,772 ****
//
! // This function gets called to output any message or error
! // that doesn't require additional output from the calling
! // page.
! //
! // $msg_code takes one of four constant values:
! //
! // GENERAL_MESSAGE -> Use for any simple text message, eg.
! // results of an operation, authorisation failures, etc.
! //
! // GENERAL ERROR -> Use for any error which occurs _AFTER_
! // the common.php include and session code, ie. most errors
! // in pages/functions
! //
! // CRITICAL_MESSAGE -> Only currently used to announce a user
! // has been banned, can be used where session results cannot
! // be relied upon to exist but we can and do assume that basic
! // board configuration data is available
! //
! // CRITICAL_ERROR -> Used whenever a DB connection cannot be
! // guaranteed and/or we've been unable to obtain basic board
! // configuration data. Shouldn't be used in general
! // pages/functions (it results in a simple echo'd statement,
! // no templates are used)
//
! function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "", $err_file = "", $sql = "")
{
global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links;
--- 461,483 ----
//
! // This is general replacement for die(), allows templated
! // output in users (or default) language, etc.
! //
! // $msg_code can be one of these constants:
//
! // GENERAL_MESSAGE : Use for any simple text message, eg. results
! // of an operation, authorisation failures, etc.
! //
! // GENERAL ERROR : Use for any error which occurs _AFTER_ the
! // common.php include and session code, ie. most errors in
! // pages/functions
! //
! // CRITICAL_MESSAGE : Used when basic config data is available but
! // a session may not exist, eg. banned users
! //
! // CRITICAL_ERROR : Used when config data cannot be obtained, eg
! // no database connection. Should _not_ be used in 99.5% of cases
! //
! function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links;
***************
*** 784,802 ****
$sql_error = $db->sql_error();
! $debug_text = "";
! if ( $sql_error['message'] != "" )
{
! $debug_text .= "<br /><br />SQL Error : " . $sql_error['code'] . " " . $sql_error['message'];
}
! if ( $sql_store != "" )
{
$debug_text .= "<br /><br />$sql_store";
}
! if ( $err_line != "" && $err_file != "" )
{
! $debug_text .= "</br /><br />Line : " . $err_line . "<br />File : " . $err_file;
}
}
--- 495,513 ----
$sql_error = $db->sql_error();
! $debug_text = '';
! if ( $sql_error['message'] != '' )
{
! $debug_text .= '<br /><br />SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message'];
}
! if ( $sql_store != '' )
{
$debug_text .= "<br /><br />$sql_store";
}
! if ( $err_line != '' && $err_fil...
[truncated message content] |
|
From: Paul S. O. <ps...@us...> - 2002-03-17 14:08:35
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv29009/includes
Modified Files:
sessions.php
Log Message:
Remove extra select query when creating new session during page setup
Index: sessions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/sessions.php,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** sessions.php 11 Feb 2002 12:42:23 -0000 1.52
--- sessions.php 17 Mar 2002 14:08:31 -0000 1.53
***************
*** 37,55 ****
$cookiesecure = $board_config['cookie_secure'];
! if( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
! $session_id = isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ? stripslashes($HTTP_COOKIE_VARS[$cookiename . '_sid']) : "";
! $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : "";
!
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : "";
! $sessiondata = array();
!
$sessionmethod = SESSION_METHOD_GET;
}
$current_time = time();
$expiry_time = $current_time - $board_config['session_length'];
--- 37,54 ----
$cookiesecure = $board_config['cookie_secure'];
! if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
! $session_id = isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ? stripslashes($HTTP_COOKIE_VARS[$cookiename . '_sid']) : '';
! $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : '';
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $sessiondata = '';
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
$sessionmethod = SESSION_METHOD_GET;
}
+ $last_visit = 0;
$current_time = time();
$expiry_time = $current_time - $board_config['session_length'];
***************
*** 59,86 ****
// in a cookie, if it exists
//
! if( $user_id != ANONYMOUS )
{
! //
! // This is a 'work-around' since I managed to
! // freeze the schema without re-visiting sessions,
! // what's needed is a session timer in the user table
! // + the user_lastvisit ... damn damn damn damn and blast
! //
! $sql = "SELECT user_password, user_session_time, user_email, user_active
! FROM " . USERS_TABLE . "
! WHERE user_id = $user_id";
! $result = $db->sql_query($sql);
! if( !$result )
! {
! message_die(CRITICAL_ERROR, "Couldn't obtain lastvisit data from user table", "", __LINE__, __FILE__, $sql);
! }
! $row = $db->sql_fetchrow($result);
! $auto_login_key = $row['user_password'];
! if( $auto_create )
{
! if( isset($sessiondata['autologinid']) && $row['user_active'] )
{
// We have to login automagically
--- 58,78 ----
// in a cookie, if it exists
//
! $sql = "SELECT *
! FROM " . USERS_TABLE . "
! WHERE user_id = $user_id";
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Could not obtain lastvisit data from user table', '', __LINE__, __FILE__, $sql);
! }
! $userdata = $db->sql_fetchrow($result);
! if ( $user_id != ANONYMOUS )
! {
! $auto_login_key = $userdata['user_password'];
! if ( $auto_create )
{
! if ( isset($sessiondata['autologinid']) && $userdata['user_active'] )
{
// We have to login automagically
***************
*** 91,95 ****
$enable_autologin = 1;
! $sessiondata['lastvisit'] = ( $row['user_session_time'] > 0 ) ? $row['user_session_time'] : $current_time;
}
else
--- 83,87 ----
$enable_autologin = 1;
! $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
}
else
***************
*** 111,115 ****
else
{
! $sessiondata['lastvisit'] = ( $row['user_session_time'] > 0 ) ? $row['user_session_time'] : $current_time;
$login = 1;
}
--- 103,107 ----
else
{
! $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
$login = 1;
}
***************
*** 124,152 ****
// Initial ban check against user id, IP and email address
//
! ereg("(..)(..)(..)(..)", $user_ip, $user_ip_parts);
$sql = "SELECT ban_ip, ban_userid, ban_email
! FROM " . BANLIST_TABLE . "
! WHERE ban_ip = '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "'
! OR ban_ip = '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff'
! OR ban_ip = '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff'
! OR ban_ip = '" . $user_ip_parts[1] . "ffffff'
OR ban_userid = $user_id";
! if( $user_id != ANONYMOUS )
{
$sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $row['user_email']) . "'
OR ban_email LIKE '" . substr(str_replace("\'", "''", $row['user_email']), strpos(str_replace("\'", "''", $row['user_email']), "@")) . "'";
}
! $result = $db->sql_query($sql);
! if( !$result )
{
! message_die(CRITICAL_ERROR, "Couldn't obtain ban information.", "", __LINE__, __FILE__, $sql);
}
! $ban_info = $db->sql_fetchrow($result);
!
! if( $ban_info['ban_ip'] || $ban_info['ban_userid'] || $ban_info['ban_email'] )
{
! message_die(CRITICAL_MESSAGE, 'You_been_banned');
}
--- 116,141 ----
// Initial ban check against user id, IP and email address
//
! preg_match('/(..)(..)(..)(..)/', $user_ip, $user_ip_parts);
$sql = "SELECT ban_ip, ban_userid, ban_email
! FROM " . BANLIST_TABLE . "
! WHERE ban_ip IN ('" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "', '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff', '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff', '" . $user_ip_parts[1] . "ffffff')
OR ban_userid = $user_id";
! if ( $user_id != ANONYMOUS )
{
$sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $row['user_email']) . "'
OR ban_email LIKE '" . substr(str_replace("\'", "''", $row['user_email']), strpos(str_replace("\'", "''", $row['user_email']), "@")) . "'";
}
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Could not obtain ban information', '', __LINE__, __FILE__, $sql);
}
! if ( $ban_info = $db->sql_fetchrow($result) )
{
! if ( $ban_info['ban_ip'] || $ban_info['ban_userid'] || $ban_info['ban_email'] )
! {
! message_die(CRITICAL_MESSAGE, 'You_been_banned');
! }
}
***************
*** 158,164 ****
WHERE session_id = '" . $session_id . "'
AND session_ip = '$user_ip'";
! $result = $db->sql_query($sql);
!
! if( !$result || !$db->sql_affectedrows() )
{
$session_id = md5(uniqid($user_ip));
--- 147,151 ----
WHERE session_id = '" . $session_id . "'
AND session_ip = '$user_ip'";
! if ( !($result = $db->sql_query($sql)) || !$db->sql_affectedrows() )
{
$session_id = md5(uniqid($user_ip));
***************
*** 167,201 ****
(session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in)
VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login)";
! $result = $db->sql_query($sql);
! if(!$result)
{
! message_die(CRITICAL_ERROR, "Error creating new session : session_begin", "", __LINE__, __FILE__, $sql);
}
}
! if( $user_id != ANONYMOUS )
{
$sql = "UPDATE " . USERS_TABLE . "
! SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = " . $sessiondata['lastvisit'] . "
WHERE user_id = $user_id";
! if( !$db->sql_query($sql) )
{
! message_die(CRITICAL_ERROR, "Error updating last visit time : session_begin", "", __LINE__, __FILE__, $sql);
}
! $sessiondata['autologinid'] = ( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : "";
$sessiondata['userid'] = $user_id;
}
! $serialised_cookiedata = serialize($sessiondata);
! setcookie($cookiename . '_data', $serialised_cookiedata, ($current_time + 31536000), $cookiepath, $cookiedomain, $cookiesecure);
! setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
!
! $SID = ( $sessionmethod == SESSION_METHOD_GET ) ? "sid=" . $session_id : "";
! return $session_id;
! } // session_begin
//
--- 154,196 ----
(session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in)
VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login)";
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Error creating new session : session_begin', '', __LINE__, __FILE__, $sql);
}
}
! if ( $user_id != ANONYMOUS )
{
$sql = "UPDATE " . USERS_TABLE . "
! SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = $last_visit
WHERE user_id = $user_id";
! if ( !$db->sql_query($sql) )
{
! message_die(CRITICAL_ERROR, 'Error updating last visit time : session_begin', '', __LINE__, __FILE__, $sql);
}
! $userdata['user_lastvisit'] = $last_visit;
!
! $sessiondata['autologinid'] = ( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '';
$sessiondata['userid'] = $user_id;
}
! $userdata['session_id'] = $session_id;
! $userdata['session_ip'] = $user_ip;
! $userdata['session_user_id'] = $user_id;
! $userdata['session_logged_in'] = $login;
! $userdata['session_page'] = $page_id;
! $userdata['session_start'] = $current_time;
! $userdata['session_time'] = $current_time;
! setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
! setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_data=' . urlencode(serialize($sessiondata)) . '; expires=' . gmdate("l, d-M-Y H:i:s", $current_time + 31536000) . ' GMT; domain=' . $cookiedomain . '; path=' . $cookiepath . $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_sid=' . $session_id . '; domain=' . $cookiedomain . '; path=' . $cookiepath . $cookiesecure);
! $SID = ( $sessionmethod == SESSION_METHOD_GET ) ? 'sid=' . $session_id : '';
+ return $userdata;
+ }
//
***************
*** 212,231 ****
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
$current_time = time();
unset($userdata);
! if( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
! $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : "";
! $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? stripslashes($HTTP_COOKIE_VARS[$cookiename . '_sid']) : "";
!
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : "";
! $session_data = array();
!
$sessionmethod = SESSION_METHOD_GET;
}
--- 207,225 ----
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
+ $cookiesecure = ( $board_config['cookie_secure'] ) ? '; secure' : '';
$current_time = time();
unset($userdata);
! if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
! $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : '';
! $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? stripslashes($HTTP_COOKIE_VARS[$cookiename . '_sid']) : '';
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $session_data = '';
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
$sessionmethod = SESSION_METHOD_GET;
}
***************
*** 234,238 ****
// Does a session exist?
//
! if( !empty($session_id) )
{
//
--- 228,232 ----
// Does a session exist?
//
! if ( !empty($session_id) )
{
//
***************
*** 245,252 ****
AND u.user_id = s.session_user_id
AND s.session_ip = '$user_ip'";
! $result = $db->sql_query($sql);
! if( !$result )
{
! message_die(CRITICAL_ERROR, "Error doing DB query userdata row fetch : session_pagestart", "", __LINE__, __FILE__, $sql);
}
--- 239,245 ----
AND u.user_id = s.session_user_id
AND s.session_ip = '$user_ip'";
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch : session_pagestart', '', __LINE__, __FILE__, $sql);
}
***************
*** 256,262 ****
// Did the session exist in the DB?
//
! if( isset($userdata['user_id']) )
{
! $SID = ( $sessionmethod == SESSION_METHOD_GET ) ? "sid=" . $session_id : "";
//
--- 249,255 ----
// Did the session exist in the DB?
//
! if ( isset($userdata['user_id']) )
{
! $SID = ( $sessionmethod == SESSION_METHOD_GET ) ? 'sid=' . $session_id : '';
//
***************
*** 265,288 ****
$last_update = ( $userdata['user_id'] == ANONYMOUS ) ? $userdata['session_time'] : $userdata['user_session_time'];
! if( $current_time - $last_update > 60 )
! {
! if( $userdata['user_id'] == ANONYMOUS )
! {
! $sessiondata['lastvisit'] = $current_time;
!
! $sql = "UPDATE " . SESSIONS_TABLE . "
! SET session_time = $current_time, session_page = $thispage_id
! WHERE session_id = '" . $userdata['session_id'] . "'
! AND session_ip = '$user_ip'";
! }
! else
{
! $sql = "UPDATE " . USERS_TABLE . "
! SET user_session_time = $current_time, user_session_page = $thispage_id
! WHERE user_id = " . $userdata['user_id'];
! }
! if( !$db->sql_query($sql) )
! {
! message_die(CRITICAL_ERROR, "Error updating sessions table : session_pagestart", "", __LINE__, __FILE__, $sql);
}
--- 258,267 ----
$last_update = ( $userdata['user_id'] == ANONYMOUS ) ? $userdata['session_time'] : $userdata['user_session_time'];
! if ( $current_time - $last_update > 60 )
! { // || $userdata['user_session_page'] != $thispage_id
! $sql = ( $userdata['user_id'] == ANONYMOUS ) ? "UPDATE " . SESSIONS_TABLE . " SET session_time = $current_time, session_page = $thispage_id WHERE session_id = '" . $userdata['session_id'] . "' AND session_ip = '$user_ip'" : "UPDATE " . USERS_TABLE . " SET user_session_time = $current_time, user_session_page = $thispage_id WHERE user_id = " . $userdata['user_id'];
! if ( !$db->sql_query($sql) )
{
! message_die(CRITICAL_ERROR, 'Error updating sessions table : session_pagestart', '', __LINE__, __FILE__, $sql);
}
***************
*** 294,341 ****
WHERE session_time < $expiry_time
AND session_id <> '$session_id'";
! $result = $db->sql_query($sql);
! if( !$result )
{
! message_die(CRITICAL_ERROR, "Error clearing sessions table : session_pagestart", "", __LINE__, __FILE__, $sql);
}
- }
! setcookie($board_config['cookie_name'] . '_data', serialize($sessiondata), ($current_time + 31536000), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
! setcookie($board_config['cookie_name'] . '_sid', $session_id, 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
return $userdata;
}
}
//
// If we reach here then no (valid) session exists. So we'll create a new one,
// using the cookie user_id if available to pull basic user prefs.
//
-
$user_id = ( isset($sessiondata['userid']) ) ? $sessiondata['userid'] : ANONYMOUS;
! $result_id = session_begin($user_id, $user_ip, $thispage_id, TRUE);
! if( !$result_id )
{
! message_die(CRITICAL_ERROR, "Error creating user session : session_pagestart", "", __LINE__, __FILE__, $sql);
! }
! else
! {
! $sql = "SELECT u.*, s.*
! FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
! WHERE s.session_id = '$result_id'
! AND u.user_id = s.session_user_id
! AND s.session_ip = '$user_ip'";
! $result = $db->sql_query($sql);
! if ( !$result )
! {
! message_die(CRITICAL_ERROR, "Error doing DB query userdata row fetch : session_pagestart new user", "", __LINE__, __FILE__, $sql);
! }
!
! $userdata = $db->sql_fetchrow($result);
}
return $userdata;
! } // session_pagestart()
//
--- 273,305 ----
WHERE session_time < $expiry_time
AND session_id <> '$session_id'";
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Error clearing sessions table : session_pagestart', '', __LINE__, __FILE__, $sql);
}
! setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
! setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_data=' . urlencode(serialize($sessiondata)) . '; expires=' . gmdate("l, d-M-Y H:i:s", $current_time + 31536000) . ' GMT; domain=' . $cookiedomain . '; path=' . $cookiepath . $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_sid=' . $session_id . '; domain=' . $cookiedomain . '; path=' . $cookiepath . $cookiesecure);
! }
return $userdata;
}
}
+
//
// If we reach here then no (valid) session exists. So we'll create a new one,
// using the cookie user_id if available to pull basic user prefs.
//
$user_id = ( isset($sessiondata['userid']) ) ? $sessiondata['userid'] : ANONYMOUS;
! if ( !($userdata = session_begin($user_id, $user_ip, $thispage_id, TRUE)) )
{
! message_die(CRITICAL_ERROR, 'Error creating user session : session_pagestart', '', __LINE__, __FILE__, $sql);
}
return $userdata;
! }
//
***************
*** 353,373 ****
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
!
! $current_time = time();
//
// Pull cookiedata or grab the URI propagated sid
//
! if( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
! $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : "";
! $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : "";
!
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : "";
!
$sessionmethod = SESSION_METHOD_GET;
}
--- 317,333 ----
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
! // $cookiesecure = ( $board_config['cookie_secure'] ) ? '; secure' : '';
//
// Pull cookiedata or grab the URI propagated sid
//
! if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) )
{
! $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : '';
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
! $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
$sessionmethod = SESSION_METHOD_GET;
}
***************
*** 379,414 ****
WHERE session_id = '$session_id'
AND session_user_id = $user_id";
! $result = $db->sql_query($sql);
! if(!$result)
{
! message_die(CRITICAL_ERROR, "Error removing user session : session_end", "", __LINE__, __FILE__, $sql);
}
! //
! // If a registered user then update their last visit
! // and autologin (if necessary) details
! //
! if( $user_id != ANONYMOUS )
! {
! if( isset($sessiondata['autologinid']) && $sessionmethod == SESSION_METHOD_COOKIE )
! {
! unset($sessiondata['autologinid']);
! }
! }
! $sessiondata['userid'] = ANONYMOUS;
!
! $serialised_cookiedata = serialize($sessiondata);
! setcookie($cookiename . '_data', $serialised_cookiedata, ($current_time + 31536000), $cookiepath, $cookiedomain, $cookiesecure);
! setcookie($cookiename . '_sid', '', 0, $cookiepath, $cookiedomain, $cookiesecure);
!
! $SID = ($sessionmethod == SESSION_METHOD_GET) ? "sid=" . $session_id : "";
return TRUE;
! } // session_end()
//
- //
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
--- 339,359 ----
WHERE session_id = '$session_id'
AND session_user_id = $user_id";
! if ( !($result = $db->sql_query($sql)) )
{
! message_die(CRITICAL_ERROR, 'Error removing user session : session_end', '', __LINE__, __FILE__, $sql);
}
! setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
! setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_data=0; expires=' . gmdate("l, d-M-Y H:i:s", 0) . ' GMT; domain=' . $cookiedomain . '; path=' . $cookiepath. $cookiesecure);
! // header('Set-cookie: ' . $cookiename . '_sid=0; expires=' . gmdate("l, d-M-Y H:i:s", 0) . ' GMT; domain=' . $cookiedomain . '; path=' . $cookiepath . $cookiesecure);
! $SID = ( $sessionmethod == SESSION_METHOD_GET ) ? 'sid=' . $session_id : '';
return TRUE;
! }
//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
***************
*** 420,426 ****
global $SID;
! if( !empty($SID) && !eregi("sid=", $url) )
{
! $url .= ( ( strpos($url, "?") != false ) ? ( ( $non_html_amp ) ? "&" : "&" ) : "?" ) . $SID;
}
--- 365,371 ----
global $SID;
! if ( !empty($SID) && !eregi('sid=', $url) )
{
! $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
|
|
From: Paul S. O. <ps...@us...> - 2002-03-17 14:07:59
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv28850/includes
Added Files:
usercp_activate.php usercp_avatar.php usercp_email.php
usercp_sendpasswd.php usercp_viewprofile.php
Log Message:
First splits of profile
--- NEW FILE ---
<?php
/***************************************************************************
* avatars.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_activate.php,v 1.1 2002/03/17 14:07:56 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
if ( !defined('IN_PROFILE') )
{
header("Location: ../index.$phpEx");
exit;
}
$sql = "SELECT user_id, user_email, user_newpasswd, user_lang
FROM " . USERS_TABLE . "
WHERE user_actkey = '" . str_replace("\'", "''", $HTTP_GET_VARS['act_key']) . "'";
if ( $result = $db->sql_query($sql) )
{
if ( $row = $db->sql_fetchrow($result) )
{
$sql_update_pass = ( $row['user_newpasswd'] != "" ) ? ", user_password = '" . str_replace("\'", "''", $row['user_newpasswd']) . "', user_newpasswd = ''" : "";
$sql = "UPDATE " . USERS_TABLE . "
SET user_active = 1, user_actkey = ''" . $sql_update_pass . "
WHERE user_id = " . $row['user_id'];
if ( $result = $db->sql_query($sql) )
{
if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN && $sql_update_pass == '' )
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
$emailer->use_template("admin_welcome_activated", $row['user_lang']);
$emailer->email_address($row['user_email']);
$emailer->set_subject();//$lang['Account_activated_subject']
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
"SITENAME" => $board_config['sitename'],
"USERNAME" => $username,
"PASSWORD" => $password_confirm,
"EMAIL_SIG" => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']))
);
$emailer->send();
$emailer->reset();
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
);
message_die(GENERAL_MESSAGE, $lang['Account_active_admin']);
}
else
{
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
);
$message = ( $sql_update_pass == "" ) ? $lang['Account_active'] : $lang['Password_activated'];
message_die(GENERAL_MESSAGE, $message);
}
}
else
{
message_die(GENERAL_ERROR, "Couldn't update users table", "", __LINE__, __FILE__, $sql_update);
}
}
else
{
message_die(GENERAL_ERROR, $lang['Wrong_activation']); //wrongactiv
}
}
else
{
message_die(GENERAL_ERROR, "Couldn't obtain user information", "", __LINE__, __FILE__, $sql);
}
?>
--- NEW FILE ---
<?php
/***************************************************************************
* avatars.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_avatar.php,v 1.1 2002/03/17 14:07:56 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
function check_image_type(&$type, &$error, &$error_msg)
{
global $lang;
switch( $type )
{
case 'jpeg':
case 'pjpeg':
case 'jpg':
return '.jpg';
break;
case 'gif':
return '.gif';
break;
case 'png':
return '.png';
break;
default:
$error = true;
$error_msg = (!empty($error_msg)) ? $error_msg . '<br />' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];
break;
}
return false;
}
function user_avatar_delete($avatar_type, $avatar_file)
{
global $board_config, $userdata;
if ( $avatar_type == USER_AVATAR_UPLOAD && $avatar_file != '' )
{
if ( @file_exists('./' . $board_config['avatar_path'] . '/' . $avatar_file) )
{
@unlink('./' . $board_config['avatar_path'] . '/' . $avatar_file);
}
}
return ", user_avatar = '', user_avatar_type = " . USER_AVATAR_NONE;
}
function user_avatar_gallery($mode, &$error, &$error_msg, $avatar_filename)
{
return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_GALLERY : '';
}
function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename)
{
if ( !preg_match('#^http:\/\/#i', $avatar_filename) )
{
$avatar_filename = 'http://' . $avatar_filename;
}
if ( !preg_match('#^(http:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+(:[0-9]+)*\/.*?\.(gif|jpg|jpeg|png)$)#is', $avatar_filename) )
{
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format'];
return;
}
return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE : '';
}
function user_avatar_upload($mode, $avatar_mode, $user_id, &$error, &$error_msg, $avatar_filename, $avatar_realname, $avatar_filesize, $avatar_filetype)
{
global $board_config, $db, $lang, $images;
$ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var';
if ( $avatar_mode == 'remote' && preg_match('/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/(.*)$/', $avatar_filename, $url_ary) )
{
if ( empty($url_ary[4]) )
{
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Incomplete_URL'] : $lang['Incomplete_URL'];
return;
}
$base_get = '/' . $url_ary[4];
$port = ( !empty($url_ary[3]) ) ? $url_ary[3] : 80;
if ( !($fsock = @fsockopen($url_ary[2], $port, $errno, $errstr)) )
{
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['No_connection_URL'] : $lang['No_connection_URL'];
return;
}
@fputs($fsock, "GET $base_get HTTP/1.1\r\n");
@fputs($fsock, "HOST: " . $url_ary[2] . "\r\n");
@fputs($fsock, "Connection: close\r\n\r\n");
unset($avatar_data);
while( !@feof($fsock) )
{
$avatar_data .= @fread($fsock, $board_config['avatar_filesize']);
}
@fclose($fsock);
if ( !preg_match('/Content-Length\: ([0-9]+)[^\/ ][\s]+/i', $avatar_data, $file_data1) || !preg_match('/Content-Type\: image\/[x\-]*([a-z]+)[\s]+/i', $avatar_data, $file_data2) )
{
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['File_no_data'] : $lang['File_no_data'];
return;
}
$avatar_filesize = $file_data1[1];
$avatar_filetype = $file_data2[1];
if ( !$error && $avatar_filesize > 0 && $avatar_filesize < $board_config['avatar_filesize'] )
{
$avatar_data = substr($avatar_data, strlen($avatar_data) - $avatar_filesize, $avatar_filesize);
$tmp_path = ( !$ini_val('safe_mode') ) ? '/tmp' : './' . $board_config['avatar_path'] . "/tmp";
$tmp_filename = tempnam($tmp_path, $userdata['user_id'] . '-');
$fptr = @fopen($tmp_filename, 'wb');
$bytes_written = @fwrite($fptr, $avatar_data, $avatar_filesize);
@fclose($fptr);
if ( $bytes_written != $avatar_filesize )
{
@unlink($tmp_filename);
message_die(GENERAL_ERROR, 'Could not write avatar file to local storage. Please contact the board administrator with this message', '', __LINE__, __FILE__);
}
list($width, $height) = @getimagesize($tmp_filename);
}
else
{
$l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024));
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
}
}
else if ( $avatar_mode == 'local' && file_exists($avatar_filename) && preg_match('/\.(jpg|jpeg|gif|png)$/i', $avatar_realname) )
{
if ( $avatar_filesize <= $board_config['avatar_filesize'] && $avatar_filesize > 0 )
{
//
// Opera appends the image name after the type, not big, not clever!
//
preg_match("'image\/[x\-]*([a-z]+)'", $avatar_filetype, $avatar_filetype);
$avatar_filetype = $avatar_filetype[1];
}
else
{
$l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024));
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
return;
}
}
if ( !($imgtype = check_image_type($avatar_filetype, $error, $error_msg)) )
{
return;
}
if ( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )
{
$new_filename = $user_id . $imgtype;
if ( $mode == 'editprofile' && $userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $userdata['user_avatar'] != '')
{
if ( file_exists('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']) )
{
@unlink('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']);
}
}
if( $avatar_mode == 'remote' )
{
@copy($tmp_filename, './' . $board_config['avatar_path'] . "/$new_filename");
@unlink($tmp_filename);
}
else
{
if ( $ini_val('open_basedir') != '' )
{
if ( phpversion() < '4.0.3' )
{
message_die(GENERAL_ERROR, 'open_basedir is set and your PHP version does not allow move_uploaded_file', '', __LINE__, __FILE__);
}
$move_file = 'move_uploaded_file';
}
else
{
$move_file = 'copy';
}
$move_file($avatar_filename, './' . $board_config['avatar_path'] . "/$new_filename");
}
@chmod('./' . $board_config['avatar_path'] . "/$new_filename", 0777);
$avatar_sql = ( $mode == 'editprofile' ) ? ", user_avatar = '$new_filename', user_avatar_type = " . USER_AVATAR_UPLOAD : "'$avatar_filename', " . USER_AVATAR_UPLOAD;
}
else
{
$l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']);
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
}
return $avatar_sql;
}
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat)
{
global $board_config, $db, $template, $lang, $images, $theme;
global $phpbb_root_path, $phpEx;
$dir = @opendir($board_config['avatar_gallery_path']);
$avatar_images = array();
while( $file = @readdir($dir) )
{
if( $file != '.' && $file != '..' && !is_file($board_config['avatar_gallery_path'] . '/' . $file) && !is_link($board_config['avatar_gallery_path'] . '/' . $file) )
{
$sub_dir = @opendir($board_config['avatar_gallery_path'] . '/' . $file);
$avatar_row_count = 0;
$avatar_col_count = 0;
while( $sub_file = @readdir($sub_dir) )
{
if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) )
{
$avatar_images[$file][$avatar_row_count][$avatar_col_count] = $file . '/' . $sub_file;
$avatar_name[$file][$avatar_row_count][$avatar_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file)));
$avatar_col_count++;
if( $avatar_col_count == 5 )
{
$avatar_row_count++;
$avatar_col_count = 0;
}
}
}
}
}
@closedir($dir);
@ksort($avatar_images);
@reset($avatar_images);
if( empty($category) )
{
list($category, ) = each($avatar_images);
}
@reset($avatar_images);
$s_categories = '';
while( list($key) = each($avatar_images) )
{
$selected = ( $key == $category ) ? ' selected="selected"' : '';
if( count($avatar_images[$key]) )
{
$s_categories .= '<option value="' . $key . '"' . $selected . '>' . ucfirst($key) . '</option>';
}
}
$s_colspan = 0;
for($i = 0; $i < count($avatar_images[$category]); $i++)
{
$template->assign_block_vars("avatar_row", array());
$s_colspan = max($s_colspan, count($avatar_images[$category][$i]));
for($j = 0; $j < count($avatar_images[$category][$i]); $j++)
{
$template->assign_block_vars('avatar_row.avatar_column', array(
"AVATAR_IMAGE" => $board_config['avatar_gallery_path'] . '/' . $avatar_images[$category][$i][$j],
"AVATAR_NAME" => $avatar_name[$category][$i][$j])
);
$template->assign_block_vars('avatar_row.avatar_option_column', array(
"S_OPTIONS_AVATAR" => $avatar_images[$category][$i][$j])
);
}
}
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
$s_hidden_vars = '<input type="hidden" name="agreed" value="true" />';
for($i = 0; $i < count($params); $i++)
{
$s_hidden_vars .= '<input type="hidden" name="' . $params[$i] . '" value="' . str_replace('"', '"', $$params[$i]) . '" />';
}
$template->assign_vars(array(
'L_AVATAR_GALLERY' => $lang['Avatar_gallery'],
'L_SELECT_AVATAR' => $lang['Select_avatar'],
'L_RETURN_PROFILE' => $lang['Return_profile'],
'L_CATEGORY' => $lang['Select_category'],
'S_OPTIONS_CATEGORIES' => $s_categories,
'S_COLSPAN' => $s_colspan,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx?mode=$mode"),
'S_HIDDEN_FIELDS' => $s_hidden_vars)
);
return;
}
?>
--- NEW FILE ---
<?php
/***************************************************************************
* avatars.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_email.php,v 1.1 2002/03/17 14:07:56 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
if ( !defined('IN_PROFILE') )
{
header("Location: ../index.$phpEx");
exit;
}
if ( !$userdata['session_logged_in'] )
{
header('Location: ' . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true));
exit;
}
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) || !empty($HTTP_POST_VARS[POST_USERS_URL]) )
{
$user_id = ( !empty($HTTP_GET_VARS[POST_USERS_URL]) ) ? $HTTP_GET_VARS[POST_USERS_URL] : $HTTP_POST_VARS[POST_USERS_URL];
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_user_specified']);
}
$sql = "SELECT username, user_email, user_viewemail, user_lang
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if ( $result = $db->sql_query($sql) )
{
$row = $db->sql_fetchrow($result);
$username = $row['username'];
$user_email = $row['user_email'];
$user_lang = $row['user_lang'];
if ( $row['user_viewemail'] || $userdata['user_level'] == ADMIN )
{
if ( time() - $userdata['user_emailtime'] < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_email_limit']);
}
if ( isset($HTTP_POST_VARS['submit']) )
{
$error = FALSE;
if ( !empty($HTTP_POST_VARS['subject']) )
{
$subject = trim(strip_tags(stripslashes($HTTP_POST_VARS['subject'])));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Empty_subject_email'] : $lang['Empty_subject_email'];
}
if ( !empty($HTTP_POST_VARS['message']) )
{
$message = trim(strip_tags(stripslashes($HTTP_POST_VARS['message'])));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Empty_message_email'] : $lang['Empty_message_email'];
}
if ( !$error )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_emailtime = " . time() . "
WHERE user_id = " . $userdata['user_id'];
if ( $result = $db->sql_query($sql) )
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $userdata['user_email'] . "\n";
if ( !empty($HTTP_POST_VARS['cc_email']) )
{
$email_headers .= "Cc: " . $userdata['user_email'] . "\n";
}
$email_headers .= "Return-Path: " . $userdata['user_email'] . "\n";
$email_headers .= "X-AntiAbuse: Board servername - " . $server_name . "\n";
$email_headers .= "X-AntiAbuse: User_id - " . $userdata['user_id'] . "\n";
$email_headers .= "X-AntiAbuse: Username - " . $userdata['username'] . "\n";
$email_headers .= "X-AntiAbuse: User IP - " . decode_ip($user_ip) . "\r\n";
$emailer->use_template('profile_send_email', $user_lang);
$emailer->email_address($user_email);
$emailer->set_subject($subject);
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'BOARD_EMAIL' => $board_config['board_email'],
'FROM_USERNAME' => $userdata['username'],
'TO_USERNAME' => $username,
'MESSAGE' => $message)
);
$emailer->send();
$emailer->reset();
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
);
$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_ERROR, 'Could not update last email time', '', __LINE__, __FILE__, $sql);
}
}
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'profile_send_email.tpl',
'jumpbox' => 'jumpbox.tpl')
);
$jumpbox = make_jumpbox();
$template->assign_vars(array(
'L_GO' => $lang['Go'],
'L_JUMP_TO' => $lang['Jump_to'],
'L_SELECT_FORUM' => $lang['Select_forum'],
'S_JUMPBOX_LIST' => $jumpbox,
'S_JUMPBOX_ACTION' => append_sid("viewforum.$phpEx"))
);
$template->assign_var_from_handle('JUMPBOX', 'jumpbox');
if ( $error )
{
$template->set_filenames(array(
'reg_header' => 'error_body.tpl')
);
$template->assign_vars(array(
'ERROR_MESSAGE' => $error_msg)
);
$template->assign_var_from_handle('ERROR_BOX', 'reg_header');
}
if ( $userdata['user_sig'] != '' )
{
$template->assign_block_vars('signature_checkbox', array());
}
$template->assign_vars(array(
'USERNAME' => $username,
'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? 'checked="checked"' : '',
'S_POST_ACTION' => append_sid("profile.$phpEx?&mode=email&" . POST_USERS_URL . "=$user_id"),
'L_SEND_EMAIL_MSG' => $lang['Send_email_msg'],
'L_RECIPIENT' => $lang['Recipient'],
'L_SUBJECT' => $lang['Subject'],
'L_MESSAGE_BODY' => $lang['Message_body'],
'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'],
'L_OPTIONS' => $lang['Options'],
'L_CC_EMAIL' => $lang['CC_email'],
'L_NOTIFY_ON_REPLY' => $lang['Notify'],
'L_SPELLCHECK' => $lang['Spellcheck'],
'L_SEND_EMAIL' => $lang['Send_email'])
);
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_prevent_email']);
}
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_not_exist']);
}
?>
--- NEW FILE ---
<?php
/***************************************************************************
* avatars.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_sendpasswd.php,v 1.1 2002/03/17 14:07:56 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
if ( !defined('IN_PROFILE') )
{
header("Location: ../index.$phpEx");
exit;
}
if ( !$userdata['session_logged_in'] )
{
header("Location: " . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true));
exit;
}
if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) || !empty($HTTP_POST_VARS[POST_USERS_URL]) )
{
$user_id = ( !empty($HTTP_GET_VARS[POST_USERS_URL]) ) ? $HTTP_GET_VARS[POST_USERS_URL] : $HTTP_POST_VARS[POST_USERS_URL];
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_user_specified']);
}
$sql = "SELECT username, user_email, user_viewemail, user_lang
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if ( $result = $db->sql_query($sql) )
{
$row = $db->sql_fetchrow($result);
$username = $row['username'];
$user_email = $row['user_email'];
$user_lang = $row['user_lang'];
if ( $row['user_viewemail'] || $userdata['user_level'] == ADMIN )
{
if ( time() - $userdata['user_emailtime'] < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_email_limit']);
}
if ( isset($HTTP_POST_VARS['submit']) )
{
$error = FALSE;
if ( !empty($HTTP_POST_VARS['subject']) )
{
$subject = trim(strip_tags(stripslashes($HTTP_POST_VARS['subject'])));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . "<br />" . $lang['Empty_subject_email'] : $lang['Empty_subject_email'];
}
if ( !empty($HTTP_POST_VARS['message']) )
{
$message = trim(strip_tags(stripslashes($HTTP_POST_VARS['message'])));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . "<br />" . $lang['Empty_message_email'] : $lang['Empty_message_email'];
}
if ( !$error )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_emailtime = " . time() . "
WHERE user_id = " . $userdata['user_id'];
if ( $result = $db->sql_query($sql) )
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $userdata['user_email'] . "\n";
if ( !empty($HTTP_POST_VARS['cc_email']) )
{
$email_headers .= "Cc: " . $userdata['user_email'] . "\n";
}
$email_headers .= "Return-Path: " . $userdata['user_email'] . "\n";
$email_headers .= "X-AntiAbuse: Board servername - " . $server_name . "\n";
$email_headers .= "X-AntiAbuse: User_id - " . $userdata['user_id'] . "\n";
$email_headers .= "X-AntiAbuse: Username - " . $userdata['username'] . "\n";
$email_headers .= "X-AntiAbuse: User IP - " . decode_ip($user_ip) . "\r\n";
$emailer->use_template("profile_send_email", $user_lang);
$emailer->email_address($user_email);
$emailer->set_subject($subject);
$emailer->extra_headers($email_headers);
$emailer->assign_vars(array(
"SITENAME" => $board_config['sitename'],
"BOARD_EMAIL" => $board_config['board_email'],
"FROM_USERNAME" => $userdata['username'],
"TO_USERNAME" => $username,
"MESSAGE" => $message)
);
$emailer->send();
$emailer->reset();
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
);
$message = $lang['Email_sent'] . "<br /><br />" . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_ERROR, "Couldn't update last email time", "", __LINE__, __FILE__, $sql);
}
}
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
"body" => "profile_send_email.tpl",
"jumpbox" => "jumpbox.tpl")
);
$jumpbox = make_jumpbox();
$template->assign_vars(array(
"L_GO" => $lang['Go'],
"L_JUMP_TO" => $lang['Jump_to'],
"L_SELECT_FORUM" => $lang['Select_forum'],
"S_JUMPBOX_LIST" => $jumpbox,
"S_JUMPBOX_ACTION" => append_sid("viewforum.$phpEx"))
);
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
if ( $error )
{
$template->set_filenames(array(
"reg_header" => "error_body.tpl")
);
$template->assign_vars(array(
"ERROR_MESSAGE" => $error_msg)
);
$template->assign_var_from_handle("ERROR_BOX", "reg_header");
}
if ( $userdata['user_sig'] != "" )
{
$template->assign_block_vars("signature_checkbox", array());
}
$template->assign_vars(array(
"USERNAME" => $username,
"S_SIGNATURE_CHECKED" => ( $attach_sig ) ? 'checked="checked"' : '',
"S_POST_ACTION" => append_sid("profile.$phpEx?&mode=email&" . POST_USERS_URL . "=$user_id"),
"L_SEND_EMAIL_MSG" => $lang['Send_email_msg'],
"L_RECIPIENT" => $lang['Recipient'],
"L_SUBJECT" => $lang['Subject'],
"L_MESSAGE_BODY" => $lang['Message_body'],
"L_MESSAGE_BODY_DESC" => $lang['Email_message_desc'],
"L_OPTIONS" => $lang['Options'],
"L_CC_EMAIL" => $lang['CC_email'],
"L_NOTIFY_ON_REPLY" => $lang['Notify'],
"L_SPELLCHECK" => $lang['Spellcheck'],
"L_SEND_EMAIL" => $lang['Send_email'])
);
$template->pparse("body");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_prevent_email']);
}
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_not_exist']);
}
?>
--- NEW FILE ---
<?php
/***************************************************************************
* usercp_viewprofile.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: usercp_viewprofile.php,v 1.1 2002/03/17 14:07:56 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
*
***************************************************************************/
if ( !defined('IN_PROFILE') )
{
header("Location: ../index.$phpEx");
exit;
}
if ( empty($HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS )
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$profiledata = get_userdata(intval($HTTP_GET_VARS[POST_USERS_URL]));
$sql = "SELECT *
FROM " . RANKS_TABLE . "
ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$ranksrow[] = $row;
}
$db->sql_freeresult($result);
//
// Output page header and profile_view template
//
$template->set_filenames(array(
'body' => 'profile_view_body.tpl',
'jumpbox' => 'jumpbox.tpl')
);
$jumpbox = make_jumpbox();
$template->assign_vars(array(
'L_GO' => $lang['Go'],
'L_JUMP_TO' => $lang['Jump_to'],
'L_SELECT_FORUM' => $lang['Select_forum'],
'S_JUMPBOX_LIST' => $jumpbox,
'S_JUMPBOX_ACTION' => append_sid("viewforum.$phpEx"))
);
$template->assign_var_from_handle('JUMPBOX', 'jumpbox');
//
// Calculate the number of days this user has been a member ($memberdays)
// Then calculate their posts per day
//
$regdate = $profiledata['user_regdate'];
$memberdays = max(1, round( ( time() - $regdate ) / 86400 ));
$posts_per_day = $profiledata['user_posts'] / $memberdays;
// Get the users percentage of total posts
if ( $profiledata['user_posts'] != 0 )
{
$total_posts = get_db_stat('postcount');
$percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0;
}
else
{
$percentage = 0;
}
if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL . "=" . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email'];
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" border="0" /></a>';
}
else
{
$email = '';
$email_img = '';
}
$avatar_img = '';
if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] )
{
switch( $profiledata['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $profiledata['user_avatar'] . '" alt="" border="0" />' : '';
break;
}
}
$poster_rank = '';
$rank_image = '';
if ( $profiledata['user_rank'] )
{
for($i = 0; $i < count($ranksrow); $i++)
{
if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
{
$poster_rank = $ranksrow[$i]['rank_title'];
$rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
else
{
for($i = 0; $i < count($ranksrow); $i++)
{
if ( $profiledata['user_posts'] > $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
{
$poster_rank = $ranksrow[$i]['rank_title'];
$rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
if ( !empty($profiledata['user_icq']) )
{
$icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
$icq_add_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" border="0" /></a>';
}
else
{
$icq_status_img = ' ';
$icq_add_img = ' ';
}
$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" border="0" alt="' . $lang['AIM'] . '" /></a>' : ' ';
$msnm_img = ( $profiledata['user_msnm'] ) ? '<img src="' . $images['icon_msnm'] . '" border="0" alt="' . $lang['MSNM'] . '" /> ' . $profiledata['user_msnm'] : ' ';
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" border="0" alt="' . $lang['YIM'] . '" /></a>' : ' ';
$search_img = '<a href="' . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts") . '"><img src="' . $images['icon_search'] . '" border="0" alt="' . $lang['Search_user_posts'] . '" /></a>';
$search = '<a href="' . append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts") . '">' . $lang['Search_user_posts'] . '</a>';
$www_img = ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" border="0" /></a>' : ' ';
$pm_img = '<a href="' . append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $profiledata['user_id']) . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" border="0" /></a>';
//
// Generate page
//
$page_title = $lang['Viewing_profile'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
'POSTS_PER_DAY' => $posts_per_day,
'POSTS' => $profiledata['user_posts'],
'PERCENTAGE' => $percentage . '%',
'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day),
'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),
'EMAIL' => $email,
'EMAIL_IMG' => $email_img,
'PM_IMG' => $pm_img,
'UL_SEARCH' => $search,
'SEARCH_IMG' => $search_img,
'ICQ' => ( $profiledata['user_icq'] ) ? $profiledata['user_icq'] : ' ',
'ICQ_IMG' => ( $profiledata['user_icq'] ) ? $images['icon_icq'] : ' ',
'ICQ_ADD_IMG' => $icq_add_img,
'ICQ_STATUS_IMG' => $icq_status_img,
'AIM' => ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?">' . $profiledata['user_aim'] . '</a>' : ' ',
'AIM_IMG' => $aim_img,
'MSN' => ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ',
'MSN_IMG' => $msnm_img,
'YIM' => ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $profiledata['user_yim'] . '</a>' : ' ',
'YIM_IMG' => $yim_img,
'WEBSITE' => ( $profiledata['user_website'] ) ? '<a href="' . $profiledata['user_website'] . '" target="_phpbbwebsite">' . $profiledata['user_website'] . '</a>' : ' ',
'WEBSITE_IMG' => $www_img,
'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : ' ',
'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ',
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
'AVATAR_IMG' => $avatar_img,
'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']),
'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']),
'L_AVATAR' => $lang['Avatar'],
'L_POSTER_RANK' => $lang['Poster_rank'],
'L_TOTAL_POSTS' => $lang['Total_posts'],
'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']),
'L_CONTACT' => $lang['Contact'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_EMAIL' => $lang['Email'],
'L_PM' => $lang['Private_Message'],
'L_ICQ_NUMBER' => $lang['ICQ'],
'L_YAHOO' => $lang['YIM'],
'L_AIM' => $lang['AIM'],
'L_MESSENGER' => $lang['MSNM'],
'L_WEBSITE' => $lang['Website'],
'L_LOCATION' => $lang['Location'],
'L_OCCUPATION' => $lang['Occupation'],
'L_INTERESTS' => $lang['Interests'],
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
|
|
From: Paul S. O. <ps...@us...> - 2002-03-17 14:07:47
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv28805/includes
Modified Files:
functions_post.php functions_search.php
Log Message:
Various updates
Index: functions_post.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions_post.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** functions_post.php 10 Mar 2002 00:27:24 -0000 1.1
--- functions_post.php 17 Mar 2002 14:07:43 -0000 1.2
***************
*** 253,256 ****
--- 253,260 ----
}
}
+ else if ( $mode == 'editpost' )
+ {
+ $result = remove_search_post($post_id);
+ }
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
***************
*** 287,300 ****
}
- if ( $mode == 'editpost' )
- {
- $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . "
- WHERE post_id = $post_id";
- if ( !($db->sql_query($sql)) )
- {
- message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
- }
- }
-
add_search_words($post_id, stripslashes($post_message), stripslashes($post_subject));
--- 291,294 ----
***************
*** 368,376 ****
}
- if ( $mode == 'editpost' )
- {
- remove_unmatched_words();
- }
-
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
--- 362,365 ----
***************
*** 382,386 ****
// Update post stats and details
//
! function update_post_stats($mode, &$post_data, &$forum_id, &$topic_id, &$post_id)
{
global $db, $userdata;
--- 371,375 ----
// Update post stats and details
//
! function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id)
{
global $db, $userdata;
***************
*** 448,452 ****
else if ( $mode != 'poll_delete' )
{
! $forum_update_sql .= ", forum_last_post_id = $post_id" . ( ( $mode = 'newtopic' ) ? ", forum_topics = forum_topics $sign" : "" );
$topic_update_sql = "topic_last_post_id = $post_id" . ( ( $mode == 'reply' ) ? ", topic_replies = topic_replies $sign" : ", topic_first_post_id = $post_id" );
}
--- 437,441 ----
else if ( $mode != 'poll_delete' )
{
! $forum_update_sql .= ", forum_last_post_id = $post_id" . ( ( $mode == 'newtopic' ) ? ", forum_topics = forum_topics $sign" : "" );
$topic_update_sql = "topic_last_post_id = $post_id" . ( ( $mode == 'reply' ) ? ", topic_replies = topic_replies $sign" : ", topic_first_post_id = $post_id" );
}
Index: functions_search.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions_search.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** functions_search.php 10 Mar 2002 00:27:24 -0000 1.1
--- functions_search.php 17 Mar 2002 14:07:43 -0000 1.2
***************
*** 348,381 ****
}
! function remove_unmatched_words()
{
global $db;
! switch(SQL_LAYER)
{
case 'mysql':
case 'mysql4':
! $sql = "SELECT w.word_id
! FROM " . SEARCH_WORD_TABLE . " w
! LEFT JOIN " . SEARCH_MATCH_TABLE . " m ON m.word_id = w.word_id
! WHERE m.word_id IS NULL";
! if( $result = $db->sql_query($sql) )
{
! $word_id_sql = "";
while( $row = $db->sql_fetchrow($result) )
{
! $word_id_sql .= ( $word_id_sql != "" ) ? ", " . $row['word_id'] : $row['word_id'];
}
! if( $word_id_sql != "" )
{
! $sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
! WHERE word_id IN ($word_id_sql)";
! if( !($result = $db->sql_query($sql, END_TRANSACTION)) )
{
! message_die(GENERAL_ERROR, "Couldn't delete word list entry", "", __LINE__, __FILE__, $sql);
}
! return $db->sql_affectedrows();
}
}
--- 348,396 ----
}
! function remove_search_post($post_id)
{
global $db;
! $words_removed = false;
!
! switch( SQL_LAYER )
{
case 'mysql':
case 'mysql4':
! $sql = "SELECT word_id
! FROM " . SEARCH_MATCH_TABLE . "
! WHERE post_id = $post_id";
! if ( $result = $db->sql_query($sql) )
{
! $word_id_sql = '';
while( $row = $db->sql_fetchrow($result) )
{
! $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id'];
}
! $sql = "SELECT word_id
! FROM " . SEARCH_MATCH_TABLE . "
! WHERE word_id IN ($word_id_sql)
! GROUP BY word_id
! HAVING COUNT(word_id) = 1";
! if ( $result = $db->sql_query($sql) )
{
! $word_id_sql = '';
! while( $row = $db->sql_fetchrow($result) )
{
! $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id'];
}
! if ( $word_id_sql != '' )
! {
! $sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
! WHERE word_id IN ($word_id_sql)";
! if ( !($result = $db->sql_query($sql, END_TRANSACTION)) )
! {
! message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql);
! }
!
! $words_removed = $db->sql_affectedrows();
! }
}
}
***************
*** 384,402 ****
default:
$sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
! WHERE word_id NOT IN (
! SELECT word_id
! FROM " . SEARCH_MATCH_TABLE . "
! GROUP BY word_id)";
! if( !($result = $db->sql_query($sql, END_TRANSACTION)) )
{
! message_die(GENERAL_ERROR, "Couldn't delete old words from word table", __LINE__, __FILE__, $sql);
}
! return $db->sql_affectedrows();
break;
}
! return 0;
}
--- 399,431 ----
default:
$sql = "DELETE FROM " . SEARCH_WORD_TABLE . "
! WHERE word_id IN (
! SELECT word_id
! FROM " . SEARCH_MATCH_TABLE . "
! WHERE word_id IN (
! SELECT word_id
! FROM " . SEARCH_MATCH_TABLE . "
! WHERE post_id = $post_id
! )
! GROUP BY word_id
! HAVING COUNT(word_id) = 1
! )";
! if ( !($result = $db->sql_query($sql, END_TRANSACTION)) )
{
! message_die(GENERAL_ERROR, 'Could not delete old words from word table', '', __LINE__, __FILE__, $sql);
}
! $words_removed = $db->sql_affectedrows();
break;
}
! $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . "
! WHERE post_id = $post_id";
! if ( !($db->sql_query($sql)) )
! {
! message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
! }
!
! return $words_removed;
}
|
|
From: Paul S. O. <ps...@us...> - 2002-03-14 15:55:25
|
Update of /cvsroot/phpbb/phpBB2/develop
In directory usw-pr-cvs1:/tmp/cvs-serv30105/develop
Added Files:
revar_lang_files.php
Log Message:
Turn all lang files into single array ... testing proposal by ractive
--- NEW FILE ---
<?php
/***************************************************************************
* revar_lang_files.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : su...@ph...
*
* $Id: revar_lang_files.php,v 1.1 2002/03/14 15:55:21 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* 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.
*
***************************************************************************/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
$vars = array('lang_main' => 'lang', 'lang_admin' => 'lang', 'lang_faq' => 'faq', 'lang_bbcode' => 'faq');
$dirname = "./../language";
$dir = opendir($dirname);
while ( $file = readdir($dir) )
{
if ( ereg("^lang_", $file) && !is_file($dirname . "/" . $file) && !is_link($dirname . "/" . $file) )
{
foreach($vars as $lang_file => $lang_var)
{
$$lang_var = array();
include($dirname . "/" . $file . "/" . $lang_file . '.php');
$store = "";
while( list($key, $value) = each($$lang_var) )
{
if ( !is_array($value) )
{
$key = ( is_string($key) ) ? "'$key'" : $key;
$store .= ( ( $store != "" ) ? ", \n\t" : "" ) . "$key => '" . addslashes($value) . "'";
}
else
{
$key = ( is_string($key) ) ? "'$key'" : $key;
$store .= ( ( $store != "" ) ? ", \n\t" : "" ) . "$key => array(\n\t\t";
$store2 = "";
while( list($key2, $value2) = each($value) )
{
$key2 = ( is_string($key) ) ? "'$key2'" : $key2;
$store2 .= ( ( $store2 != "" ) ? ", \n\t\t" : "" ) . "$key2 => '" . addslashes($value2) . "'";
}
$store .= $store2 . "\n\t)";
}
}
$store = "<?php\n\$$lang_var = array(\n\t$store\n);\n?".">";
$fp = fopen($dirname . "/" . $file . "/" . $lang_file . '.php', 'w');
fwrite($fp, $store);
fclose($fp);
}
}
}
?>
|
|
From: Bart v. B. <ba...@us...> - 2002-03-14 13:08:30
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv30095
Modified Files:
privmsg.php
Log Message:
Don't send notification mails to users that are not active
Index: privmsg.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/privmsg.php,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -r1.87 -r1.88
*** privmsg.php 4 Mar 2002 01:47:14 -0000 1.87
--- privmsg.php 14 Mar 2002 13:08:26 -0000 1.88
***************
*** 1107,1111 ****
}
! if( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) )
{
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
--- 1107,1111 ----
}
! if( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) && $to_userdata['user_active'] == 1)
{
$email_headers = "From: " . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\r\n";
***************
*** 2053,2055 ****
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
\ No newline at end of file
--- 2053,2055 ----
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
|
|
From: Jonathan H. <the...@us...> - 2002-03-12 21:46:39
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv7005
Modified Files:
admin_forums.php
Log Message:
Fix for bug #528319, can't check currval of a sequence when the sequence doesn't exist... We manually determine and assign the forum id so no need to get currval anyway :D
Index: admin_forums.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_forums.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** admin_forums.php 24 Jan 2002 02:51:00 -0000 1.37
--- admin_forums.php 12 Mar 2002 21:46:34 -0000 1.38
***************
*** 391,395 ****
if( $HTTP_POST_VARS['prune_enable'] )
{
- $new_forum_id = $db->sql_nextid();
if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "")
--- 391,394 ----
***************
*** 399,403 ****
$sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq)
! VALUES($new_forum_id, " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")";
if( !$result = $db->sql_query($sql) )
{
--- 398,402 ----
$sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq)
! VALUES('" . $next_id . "', " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")";
if( !$result = $db->sql_query($sql) )
{
***************
*** 647,650 ****
--- 646,656 ----
{
message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql);
+ }
+
+ $sql = "DELETE FROM " . PRUNE_TABLE . "
+ WHERE forum_id = $from_id";
+ if( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't delete forum prune information!", "", __LINE__, __FILE__, $sql);
}
|
|
From: Jonathan H. <the...@us...> - 2002-03-12 21:15:01
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv29705
Modified Files:
profile.php
Log Message:
Ok, ok, ok so I didn't get one right... Sue me already
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.188
retrieving revision 1.189
diff -C2 -r1.188 -r1.189
*** profile.php 12 Mar 2002 21:11:59 -0000 1.188
--- profile.php 12 Mar 2002 21:14:58 -0000 1.189
***************
*** 1494,1498 ****
// us from doing file uploads....
//
! if( phpversion() >= '4.0.0 )
{
$file_uploads = ini_get('file_uploads');
--- 1494,1498 ----
// us from doing file uploads....
//
! if( phpversion() >= '4.0.0' )
{
$file_uploads = ini_get('file_uploads');
|
|
From: Jonathan H. <the...@us...> - 2002-03-12 21:12:03
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv28435
Modified Files:
profile.php
Log Message:
Ok one last attempt on my part to fix file upload bugs.. Might actually work (Hey it could happen, even I get one right occasionally)
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.187
retrieving revision 1.188
diff -C2 -r1.187 -r1.188
*** profile.php 6 Mar 2002 21:23:49 -0000 1.187
--- profile.php 12 Mar 2002 21:11:59 -0000 1.188
***************
*** 1494,1498 ****
// us from doing file uploads....
//
! $file_uploads = get_cfg_var('file_uploads');
if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off')|| (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) )
{
--- 1494,1505 ----
// us from doing file uploads....
//
! if( phpversion() >= '4.0.0 )
! {
! $file_uploads = ini_get('file_uploads');
! }
! else
! {
! $file_uploads = get_cfg_var('file_uploads');
! }
if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off')|| (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) )
{
|
|
From: Jonathan H. <the...@us...> - 2002-03-12 21:12:03
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv28435/admin
Modified Files:
admin_db_utilities.php admin_users.php
Log Message:
Ok one last attempt on my part to fix file upload bugs.. Might actually work (Hey it could happen, even I get one right occasionally)
Index: admin_db_utilities.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_db_utilities.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** admin_db_utilities.php 6 Mar 2002 21:23:51 -0000 1.37
--- admin_db_utilities.php 12 Mar 2002 21:11:59 -0000 1.38
***************
*** 33,37 ****
$filename = basename(__FILE__);
$module['General']['Backup_DB'] = $filename . "?perform=backup";
! $file_uploads = get_cfg_var('file_uploads');
if( ($file_uploads != 0 || empty($file_uploads)) && (strtolower($file_uploads) != 'off') && (phpversion() != '4.0.4pl1') )
{
--- 33,44 ----
$filename = basename(__FILE__);
$module['General']['Backup_DB'] = $filename . "?perform=backup";
! if(phpversion() >= '4.0.0')
! {
! $file_uploads = ini_get('file_uploads');
! }
! else
! {
! $file_uploads = get_cfg_var('file_uploads');
! }
if( ($file_uploads != 0 || empty($file_uploads)) && (strtolower($file_uploads) != 'off') && (phpversion() != '4.0.4pl1') )
{
Index: admin_users.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/admin_users.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** admin_users.php 6 Mar 2002 21:23:51 -0000 1.48
--- admin_users.php 12 Mar 2002 21:12:00 -0000 1.49
***************
*** 984,988 ****
// us from doing file uploads....
//
! $file_uploads = get_cfg_var('file_uploads');
if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off') || (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) )
{
--- 984,995 ----
// us from doing file uploads....
//
! if(phpversion() >= '4.0.0')
! {
! $file_uploads = ini_get('file_uploads');
! }
! else
! {
! $file_uploads = get_cfg_var('file_uploads');
! }
if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off') || (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) )
{
|
|
From: Jonathan H. <the...@us...> - 2002-03-12 17:36:12
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv4701
Modified Files:
smtp.php
Log Message:
Fix for various smtp issues reported in bugtracker
Index: smtp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/smtp.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** smtp.php 10 Feb 2002 13:04:14 -0000 1.12
--- smtp.php 12 Mar 2002 17:36:08 -0000 1.13
***************
*** 154,158 ****
// From this point onward most server response codes should be 250
// Specify who the mail is from....
! fputs($socket, "MAIL FROM: " . $board_config['board_email'] . "\r\n");
server_parse($socket, "250");
--- 154,158 ----
// From this point onward most server response codes should be 250
// Specify who the mail is from....
! fputs($socket, "MAIL FROM: <" . $board_config['board_email'] . ">\r\n");
server_parse($socket, "250");
***************
*** 166,172 ****
//
$mail_to_address = trim($mail_to_address);
! if ( preg_match('/.+\@.+/', $mail_to_address) )
{
! fputs( $socket, "RCPT TO: $mail_to_address\r\n" );
server_parse( $socket, "250" );
}
--- 166,172 ----
//
$mail_to_address = trim($mail_to_address);
! if ( preg_match('/[^ ]+\@[^ ]+/', $mail_to_address) )
{
! fputs( $socket, "RCPT TO: <$mail_to_address>\r\n" );
server_parse( $socket, "250" );
}
***************
*** 181,187 ****
//
$bcc_address = trim( $bcc_address );
! if ( preg_match('/.+\@.+/', $bcc_address) )
{
! fputs( $socket, "RCPT TO: $bcc_address\r\n" );
server_parse( $socket, "250" );
}
--- 181,187 ----
//
$bcc_address = trim( $bcc_address );
! if ( preg_match('/[^ ]+\@[^ ]+/', $bcc_address) )
{
! fputs( $socket, "RCPT TO: <$bcc_address>\r\n" );
server_parse( $socket, "250" );
}
***************
*** 194,200 ****
//
$cc_address = trim( $cc_address );
! if ( preg_match('/.+\@.+/', $cc_address) )
{
! fputs($socket, "RCPT TO: $cc_address\r\n");
server_parse($socket, "250");
}
--- 194,200 ----
//
$cc_address = trim( $cc_address );
! if ( preg_match('/[^ ]+\@[^ ]+/', $cc_address) )
{
! fputs($socket, "RCPT TO: <$cc_address>\r\n");
server_parse($socket, "250");
}
***************
*** 229,231 ****
}
! ?>
\ No newline at end of file
--- 229,231 ----
}
! ?>
|
|
From: Jonathan H. <the...@us...> - 2002-03-11 21:55:24
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv7226
Modified Files:
install.php
Log Message:
Fix for #527628 .. D@mn me and my stupiddity...
Index: install.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/install.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** install.php 8 Mar 2002 21:05:16 -0000 1.34
--- install.php 11 Mar 2002 21:55:20 -0000 1.35
***************
*** 515,519 ****
$instruction_text = $lang['Inst_Step_0'];
! if( ($HTTP_POST_VARS['admin_pass1'] != $HTTP_POST_VARS['admin_pass2']) || empty($HTTP_POST_VARS['admin_pass1'] ))
{
$instruction_text = $lang['Password_mismatch'] . '<br />' . $instruction_text;
--- 515,519 ----
$instruction_text = $lang['Inst_Step_0'];
! if( ($HTTP_POST_VARS['admin_pass1'] != $HTTP_POST_VARS['admin_pass2']) || (empty($HTTP_POST_VARS['admin_pass1']) && !empty($dbhost)))
{
$instruction_text = $lang['Password_mismatch'] . '<br />' . $instruction_text;
|
|
From: Paul S. O. <ps...@us...> - 2002-03-10 17:38:03
|
Update of /cvsroot/phpbb/phpBB2/language/lang_russian In directory usw-pr-cvs1:/tmp/cvs-serv28295/language/lang_russian Modified Files: lang_main.php Log Message: Changed on advice of borz_off ... as with all locales though YMMV and it may need to be changed to something else, ask your host for advice if necessary Index: lang_main.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/language/lang_russian/lang_main.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** lang_main.php 10 Mar 2002 03:23:56 -0000 1.11 --- lang_main.php 10 Mar 2002 17:31:08 -0000 1.12 *************** *** 26,30 **** ! setlocale(LC_ALL, "ru_RU.ISO-8859-5"); $lang['ENCODING'] = "windows-1251"; $lang['DIRECTION'] = "ltr"; --- 26,30 ---- ! setlocale(LC_ALL, "ru_RU.CP1251"); $lang['ENCODING'] = "windows-1251"; $lang['DIRECTION'] = "ltr"; |
|
From: Paul S. O. <ps...@us...> - 2002-03-10 17:31:26
|
Update of /cvsroot/phpbb/phpBB2/language/lang_chinese_simplified In directory usw-pr-cvs1:/tmp/cvs-serv28400/language/lang_chinese_simplified Modified Files: lang_main.php Log Message: Various updates Index: lang_main.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/language/lang_chinese_simplified/lang_main.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** lang_main.php 10 Mar 2002 03:23:55 -0000 1.5 --- lang_main.php 10 Mar 2002 17:31:21 -0000 1.6 *************** *** 1,986 **** ! <?php ! /*************************************************************************** ! * lang_main.php [chinese simplified] ! * ------------------- ! * begin : Sat Dec 16 2000 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $Id$ ! * [...1948 lines suppressed...] ! $lang['months_short'][10] = "ʮһÔÂ"; ! $lang['months_short'][11] = "Ê®¶þÔÂ"; ! ! // ! // Errors (not related to a ! // specific failure on a page) ! // ! $lang['Information'] = "ÏûÏ¢Ìáʾ"; ! $lang['Critical_Information'] = "¹Ø¼üÐÅÏ¢"; ! ! $lang['General_Error'] = "ÆÕͨ´íÎó"; ! $lang['Critical_Error'] = "¹Ø¼ü´íÎó"; ! $lang['An_error_occured'] = "·¢ÉúÁËÒ»¸ö´íÎó"; ! $lang['A_critical_error'] = "·¢ÉúÁËÒ»¸ö¹Ø¼üÐÔ´íÎó"; ! ! // ! // That's all Folks! ! // ------------------------------------------------- ! ?> |
|
From: Paul S. O. <ps...@us...> - 2002-03-10 15:42:43
|
Update of /cvsroot/phpbb/phpBB2/templates/Default/admin In directory usw-pr-cvs1:/tmp/cvs-serv22694 Removed Files: db_utilities.tpl ug_auth_body.tpl ug_auth_select_body.tpl Log Message: Did not go first time ... --- db_utilities.tpl DELETED --- --- ug_auth_body.tpl DELETED --- --- ug_auth_select_body.tpl DELETED --- |
|
From: Paul S. O. <ps...@us...> - 2002-03-10 15:38:27
|
Update of /cvsroot/phpbb/phpBB2/templates/Default/images In directory usw-pr-cvs1:/tmp/cvs-serv21182/templates/Default/images Removed Files: bold.gif code.gif email_url.gif image.gif italics.gif list-end.gif list-item.gif list-start.gif quote.gif url.gif Log Message: Removed for same reason as Euclid, James I did save a copy if you've not done so already --- bold.gif DELETED --- --- code.gif DELETED --- --- email_url.gif DELETED --- --- image.gif DELETED --- --- italics.gif DELETED --- --- list-end.gif DELETED --- --- list-item.gif DELETED --- --- list-start.gif DELETED --- --- quote.gif DELETED --- --- url.gif DELETED --- |
Update of /cvsroot/phpbb/phpBB2/templates/Default In directory usw-pr-cvs1:/tmp/cvs-serv21182/templates/Default Removed Files: Default.cfg agreement.tpl bbcode.tpl error_body.tpl index_body.tpl install.tpl install_error.tpl jumpbox.tpl login_body.tpl loginbox.tpl memberlist_body.tpl message_body.tpl modcp_body.tpl overall_footer.tpl overall_header.tpl posting_body.tpl posting_preview.tpl privmsgs_body.tpl profile_add_body.tpl profile_view_body.tpl search_body.tpl search_results_body.tpl viewforum_body.tpl viewonline_body.tpl viewtopic_body.tpl Log Message: Removed for same reason as Euclid, James I did save a copy if you've not done so already --- Default.cfg DELETED --- --- agreement.tpl DELETED --- --- bbcode.tpl DELETED --- --- error_body.tpl DELETED --- --- index_body.tpl DELETED --- --- install.tpl DELETED --- --- install_error.tpl DELETED --- --- jumpbox.tpl DELETED --- --- login_body.tpl DELETED --- --- loginbox.tpl DELETED --- --- memberlist_body.tpl DELETED --- --- message_body.tpl DELETED --- --- modcp_body.tpl DELETED --- --- overall_footer.tpl DELETED --- --- overall_header.tpl DELETED --- --- posting_body.tpl DELETED --- --- posting_preview.tpl DELETED --- --- privmsgs_body.tpl DELETED --- --- profile_add_body.tpl DELETED --- --- profile_view_body.tpl DELETED --- --- search_body.tpl DELETED --- --- search_results_body.tpl DELETED --- --- viewforum_body.tpl DELETED --- --- viewonline_body.tpl DELETED --- --- viewtopic_body.tpl DELETED --- |
|
From: Paul S. O. <ps...@us...> - 2002-03-10 15:36:02
|
Update of /cvsroot/phpbb/phpBB2/templates/Euclid/images/voting In directory usw-pr-cvs1:/tmp/cvs-serv20327/templates/Euclid/images/voting Removed Files: bar_1.gif bar_2.gif bar_3.gif bar_4.gif bar_5.gif index.htm Log Message: Removing from CVS to remove any chance of people using it 'accidently' while incomplete ... may recommit when it's updated --- bar_1.gif DELETED --- --- bar_2.gif DELETED --- --- bar_3.gif DELETED --- --- bar_4.gif DELETED --- --- bar_5.gif DELETED --- --- index.htm DELETED --- |
Update of /cvsroot/phpbb/phpBB2/templates/Euclid In directory usw-pr-cvs1:/tmp/cvs-serv20327/templates/Euclid Removed Files: Euclid.cfg agreement.tpl bbcode.tpl confirm_body.tpl error_body.tpl faq_body.tpl groupcp_info_body.tpl groupcp_pending_info.tpl groupcp_user_body.tpl ie_form_elements.css index.htm index_body.tpl jumpbox.tpl login_body.tpl memberlist_body.tpl message_body.tpl modcp_body.tpl modcp_move.tpl modcp_split.tpl modcp_viewip.tpl overall_footer.tpl overall_header.tpl posting_body.tpl posting_poll_body.tpl posting_preview.tpl posting_smilies.tpl posting_topic_review.tpl privmsgs_body.tpl privmsgs_popup.tpl privmsgs_preview.tpl privmsgs_read_body.tpl profile_add_body.tpl profile_avatar_gallery.tpl profile_send_email.tpl profile_send_pass.tpl profile_view_body.tpl search_body.tpl search_results_posts.tpl search_results_topics.tpl search_username.tpl simple_footer.tpl simple_header.tpl theme_info.cfg viewforum_body.tpl viewonline_body.tpl viewtopic_body.tpl viewtopic_poll_ballot.tpl viewtopic_poll_result.tpl Log Message: Removing from CVS to remove any chance of people using it 'accidently' while incomplete ... may recommit when it's updated --- Euclid.cfg DELETED --- --- agreement.tpl DELETED --- --- bbcode.tpl DELETED --- --- confirm_body.tpl DELETED --- --- error_body.tpl DELETED --- --- faq_body.tpl DELETED --- --- groupcp_info_body.tpl DELETED --- --- groupcp_pending_info.tpl DELETED --- --- groupcp_user_body.tpl DELETED --- --- ie_form_elements.css DELETED --- --- index.htm DELETED --- --- index_body.tpl DELETED --- --- jumpbox.tpl DELETED --- --- login_body.tpl DELETED --- --- memberlist_body.tpl DELETED --- --- message_body.tpl DELETED --- --- modcp_body.tpl DELETED --- --- modcp_move.tpl DELETED --- --- modcp_split.tpl DELETED --- --- modcp_viewip.tpl DELETED --- --- overall_footer.tpl DELETED --- --- overall_header.tpl DELETED --- --- posting_body.tpl DELETED --- --- posting_poll_body.tpl DELETED --- --- posting_preview.tpl DELETED --- --- posting_smilies.tpl DELETED --- --- posting_topic_review.tpl DELETED --- --- privmsgs_body.tpl DELETED --- --- privmsgs_popup.tpl DELETED --- --- privmsgs_preview.tpl DELETED --- --- privmsgs_read_body.tpl DELETED --- --- profile_add_body.tpl DELETED --- --- profile_avatar_gallery.tpl DELETED --- --- profile_send_email.tpl DELETED --- --- profile_send_pass.tpl DELETED --- --- profile_view_body.tpl DELETED --- --- search_body.tpl DELETED --- --- search_results_posts.tpl DELETED --- --- search_results_topics.tpl DELETED --- --- search_username.tpl DELETED --- --- simple_footer.tpl DELETED --- --- simple_header.tpl DELETED --- --- theme_info.cfg DELETED --- --- viewforum_body.tpl DELETED --- --- viewonline_body.tpl DELETED --- --- viewtopic_body.tpl DELETED --- --- viewtopic_poll_ballot.tpl DELETED --- --- viewtopic_poll_result.tpl DELETED --- |
Update of /cvsroot/phpbb/phpBB2/templates/Euclid/images In directory usw-pr-cvs1:/tmp/cvs-serv20327/templates/Euclid/images Removed Files: icon_aim.gif icon_delete.gif icon_edit.gif icon_email.gif icon_icq_add.gif icon_ip.gif icon_latest_reply.gif icon_minipost.gif icon_msnm.gif icon_newest_reply.gif icon_pm.gif icon_profile.gif icon_quote.gif icon_search.gif icon_www.gif icon_yim.gif index.htm logo_phpBB.gif logo_phpBB_med.gif mailbox.gif msg_inbox.gif msg_outbox.gif msg_savebox.gif msg_sentbox.gif post-edit.gif post-locked.gif post-new.gif post-quote.gif post-reply.gif topic-announce-new.gif topic-announce.gif topic-hot-new.gif topic-hot.gif topic-lock-new.gif topic-lock.gif topic-new.gif topic-sticky-new.gif topic-sticky.gif topic.gif whosonline.gif Log Message: Removing from CVS to remove any chance of people using it 'accidently' while incomplete ... may recommit when it's updated --- icon_aim.gif DELETED --- --- icon_delete.gif DELETED --- --- icon_edit.gif DELETED --- --- icon_email.gif DELETED --- --- icon_icq_add.gif DELETED --- --- icon_ip.gif DELETED --- --- icon_latest_reply.gif DELETED --- --- icon_minipost.gif DELETED --- --- icon_msnm.gif DELETED --- --- icon_newest_reply.gif DELETED --- --- icon_pm.gif DELETED --- --- icon_profile.gif DELETED --- --- icon_quote.gif DELETED --- --- icon_search.gif DELETED --- --- icon_www.gif DELETED --- --- icon_yim.gif DELETED --- --- index.htm DELETED --- --- logo_phpBB.gif DELETED --- --- logo_phpBB_med.gif DELETED --- --- mailbox.gif DELETED --- --- msg_inbox.gif DELETED --- --- msg_outbox.gif DELETED --- --- msg_savebox.gif DELETED --- --- msg_sentbox.gif DELETED --- --- post-edit.gif DELETED --- --- post-locked.gif DELETED --- --- post-new.gif DELETED --- --- post-quote.gif DELETED --- --- post-reply.gif DELETED --- --- topic-announce-new.gif DELETED --- --- topic-announce.gif DELETED --- --- topic-hot-new.gif DELETED --- --- topic-hot.gif DELETED --- --- topic-lock-new.gif DELETED --- --- topic-lock.gif DELETED --- --- topic-new.gif DELETED --- --- topic-sticky-new.gif DELETED --- --- topic-sticky.gif DELETED --- --- topic.gif DELETED --- --- whosonline.gif DELETED --- |
Update of /cvsroot/phpbb/phpBB2/templates/Euclid/admin In directory usw-pr-cvs1:/tmp/cvs-serv20327/templates/Euclid/admin Removed Files: admin_config_body.tpl admin_message_body.tpl auth_forum_body.tpl auth_select_body.tpl auth_ug_body.tpl board_config_body.tpl category_edit_body.tpl db_utils_backup_body.tpl db_utils_restore_body.tpl disallow_body.tpl forum_delete_body.tpl forum_edit_body.tpl forum_prune_body.tpl forum_prune_result_body.tpl forum_prune_select_body.tpl forums_body.tpl group_edit_body.tpl group_select_body.tpl index.htm index_body.tpl index_frameset.tpl index_navigate.tpl page_footer.tpl page_header.tpl ranks_edit_body.tpl ranks_list_body.tpl smile_edit_body.tpl smile_list_body.tpl smile_result_body.tpl styles_addnew_body.tpl styles_edit_body.tpl styles_exporter.tpl styles_list_body.tpl user_ban_body.tpl user_edit_body.tpl user_email.tpl user_select_body.tpl user_unban_body.tpl words_edit_body.tpl words_list_body.tpl Log Message: Removing from CVS to remove any chance of people using it 'accidently' while incomplete ... may recommit when it's updated --- admin_config_body.tpl DELETED --- --- admin_message_body.tpl DELETED --- --- auth_forum_body.tpl DELETED --- --- auth_select_body.tpl DELETED --- --- auth_ug_body.tpl DELETED --- --- board_config_body.tpl DELETED --- --- category_edit_body.tpl DELETED --- --- db_utils_backup_body.tpl DELETED --- --- db_utils_restore_body.tpl DELETED --- --- disallow_body.tpl DELETED --- --- forum_delete_body.tpl DELETED --- --- forum_edit_body.tpl DELETED --- --- forum_prune_body.tpl DELETED --- --- forum_prune_result_body.tpl DELETED --- --- forum_prune_select_body.tpl DELETED --- --- forums_body.tpl DELETED --- --- group_edit_body.tpl DELETED --- --- group_select_body.tpl DELETED --- --- index.htm DELETED --- --- index_body.tpl DELETED --- --- index_frameset.tpl DELETED --- --- index_navigate.tpl DELETED --- --- page_footer.tpl DELETED --- --- page_header.tpl DELETED --- --- ranks_edit_body.tpl DELETED --- --- ranks_list_body.tpl DELETED --- --- smile_edit_body.tpl DELETED --- --- smile_list_body.tpl DELETED --- --- smile_result_body.tpl DELETED --- --- styles_addnew_body.tpl DELETED --- --- styles_edit_body.tpl DELETED --- --- styles_exporter.tpl DELETED --- --- styles_list_body.tpl DELETED --- --- user_ban_body.tpl DELETED --- --- user_edit_body.tpl DELETED --- --- user_email.tpl DELETED --- --- user_select_body.tpl DELETED --- --- user_unban_body.tpl DELETED --- --- words_edit_body.tpl DELETED --- --- words_list_body.tpl DELETED --- |
|
From: Doug K. <dou...@us...> - 2002-03-10 03:41:36
|
Update of /cvsroot/phpbb/phpBB2/language/lang_english In directory usw-pr-cvs1:/tmp/cvs-serv27412/language/lang_english Modified Files: lang_admin.php Log Message: A small typo (missed it...) Shouldn't be a problem, now. Doug Index: lang_admin.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/language/lang_english/lang_admin.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** lang_admin.php 10 Mar 2002 03:23:55 -0000 1.34 --- lang_admin.php 10 Mar 2002 03:41:33 -0000 1.35 *************** *** 537,541 **** $lang['Rank_added'] = "The rank was successfully added"; $lang['Rank_removed'] = "The rank was successfully deleted"; ! $lang['No_update_ranks'] = "The rank was successfully deleted, however user accounts using this rank were not updated. You will need to manually reset the rank on these accounts"; $lang['Click_return_rankadmin'] = "Click %sHere%s to return to Rank Administration"; --- 537,541 ---- $lang['Rank_added'] = "The rank was successfully added"; $lang['Rank_removed'] = "The rank was successfully deleted"; ! $lang['No_update_ranks'] = "The rank was successfully deleted, however, user accounts using this rank were not updated. You will need to manually reset the rank on these accounts"; $lang['Click_return_rankadmin'] = "Click %sHere%s to return to Rank Administration"; |
|
From: Doug K. <dou...@us...> - 2002-03-10 03:24:03
|
Update of /cvsroot/phpbb/phpBB2/language/lang_turkish In directory usw-pr-cvs1:/tmp/cvs-serv23080/language/lang_turkish Modified Files: lang_bbcode.php lang_faq.php Log Message: Ok, this includes fixes for bugs numbered 526000, 524591, 520370, and 520872. Manily, a few typos were fixed, along with a problem in the jumpbox (fixed using a quick Javascript check, there really isn't another way without modifying some large portions of code), and a problem in the rank control panel. In other words, everything assigned to me (as of this morning) has been fixed. I also ran the lovely fix_files.sh, so CVS might be a little wacky and try to update everything. I hope not... That's it for now! dougk_ff7 Index: lang_bbcode.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/language/lang_turkish/lang_bbcode.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** lang_bbcode.php 31 Jan 2002 13:42:23 -0000 1.1 --- lang_bbcode.php 10 Mar 2002 03:23:56 -0000 1.2 *************** *** 1,65 **** ! <?php ! /*************************************************************************** ! * lang_bbcode.php [Turkish] ! * ------------------- ! * begin : Wednesday Oct 3, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $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. ! * ! ***************************************************************************/ ! ! // ! // Translation by: ! // ! // Onur Turgay (postexitus) :: onu...@is... :: http://welcome.to/aaal2000 ! // Erdem Corapcioglu (erdem) :: er...@sm... :: http://www.smtg.org ! // ! // For questions and comments use: onu...@is... ! // ! ! ! $faq[] = array("--","Giriþ"); ! $faq[] = array("BBCode nedir?", "BBCode HTML'in özel bir uygulamasýdýr. Forum'a yazdýðýnýz mesajlarda BBCode kullanabilme imkanýný pano yöneticisi saptar. Ayrýca mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda BBCode'ý iptal etmeniz mümkündür. BBCode, HTML'e benzer tarzdadýr fakat tag'ler < ve > yerine köþeli parantez içine alýnýr. Ayrýca nelerin nasýl görüntülendiði daha iyi kontrol edilebilir. Mesajlarýnýza BBCode eklemek için mesaj gövdesi üzerinde bulunan araç çubuðunu kullanmanýz iþi çok daha kolaylaþtýrýr (araç çubuðu görünümü kullandýðýnýz tema'ya baðlýdýr). Ayrýca alttaki rehberi faydalý bulabilirsiniz."); ! ! $faq[] = array("--","Metin Biçimini Deðiþtirme"); ! $faq[] = array("Kalýn, italik veya altýçizili yazýlar nasýl yazýlýr?", "BBCode, metnin temel biçimlemesini kolayca deðiþtirmenizi saðlayan tag'lere sahiptir. Bunu gerçekleþtirmek için þu yöntemler kullanýlýr: <ul><li>Metnin belirli bir kýsmýný kalýn harflerle görüntülemek için <b>[b][/b]</b> tag'leri içine alýn, örn. <br /><br /><b>[b]</b>Hello<b>[/b]</b><br /><br />yazýlýnca <b>Hello</b> olarak görüntülenir.</li><li>Altýçizili yazýlar için <b>[u][/u]</b> kullanýn, örn.: <br /><br /><b>[u]</b>Good Morning<b>[/u]</b><br /><br />yazýlýnca <u>Good Morning</u> olarak görüntülenir.</li><li>Metni italik yazmak için <b>[i][/i]</b> kullanýn, örn. <br /><br />This is <b>[i]</b>Great!<b>[/i]</b><br /><br />yazýlýnca sonuç This is <i>Great!</i> olur.</li></ul>"); ! $faq[] = array("Yazýlarýn rengi veya boyutu nasýl deðiþtirilir?", "Yazýlarýn renk veya boyutunu deðiþtirmek için alttaki tag'ler kullanýlabilir. Elde edilen sonuç, kullanýlan browser ve bilgisayar sistemine göre deðiþebilir, aklýnýzda bulunsun: <ul><li>Yazýlarýn rengi, metni <b>[color=][/color]</b> tag'leri içine alarak deðiþtirilir. Belirli ingilizce renk isimlerini (örn. red, blue, yellow vs.) veya alternatif olarak 16 tabanlý sayý sisteminde kodlanmýþ üç rakamlý renk kodunu yazabilirsiniz (örn. #FFFFFF, #000000). Metni örneðin kýrmýzý harflerle yazmak için:<br /><br /><b>[color=red]</b>Hello!<b>[/color]</b><br /><br />veya<br /><br /><b>[color=#FF0000]</b>Hello!<b>[/color]</b><br /><br />ayný þekilde görüntülenir: <span style=\"color:red\">Hello!</span></li><li>Karakterlerin boyutunu benzer þekilde <b>[size=][/size]</b> kullanarak deðiþtirebilirsiniz. Bu tag kullandýðýnýz tema'ya baðlýdýr. Karakterlerin pixel olarak boyutunu yazmanýz önerilir. Bu rakam 1 ile baþlayýp (gözle görülmeyecek kadar küçük), en fazla 29 (çok büyük) olabilir. Örnek:<br /><br /><b>[size=9]</b>KÜÇÜK<b>[/size]</b><br /><br />genelde þu sonucu verir: <span style=\"font-size:9px\">KÜÇÜK</span><br /><br />öte yandan:<br /><br /><b>[size=24]</b>BÜYÜK!<b>[/size]</b><br /><br /><span style=\"font-size:24px\">BÜYÜK!</span> sonucunu verir.</li></ul>"); ! $faq[] = array("Biçimlendirme tag'lerini karýþtýrabilir miyim?", "Evet, mesela dikkati çekmek için þöyle yazabilirsiniz:<br /><br /><b>[size=18][color=red][b]</b>DÝKKAT!<b>[/b][/color][/size]</b><br /><br />Bu yazý þu þekilde görüntülenir: <span style=\"color:red;font-size:18px\"><b>DÝKKAT!</b></span><br /><br />Uzun metinleri bu þekilde yazmamanýzý öneririz! Unutmayýn ki, tag'lerin düzgün bir þekilde kapatýlmasýný temin etmek, metni gönderen kiþi olarak sizin görevinizdir. Örneðin bu þekilde yazmak yanlýþtýr: <br /><br /><b>[b][u]</b>Tag'ler hatalý kapatýlmýþ<b>[/b][/u]</b>"); ! ! $faq[] = array("--","Alýntý ile Cevap ve Eþaralýklý Yazýtipi"); ! $faq[] = array("Alýntý ile cevap yazma", "Bir metinden alýntý yapmanýn iki ayrý yöntemi vardýr: kaynak vererek veya vermeyerek.<ul><li>Bir mesaja cevap vermek için Alýnýtý ile Cevap komutunu kullanýrsanýz, orijinal mesajýn kendi mesajýnýza <b>[quote=\"\"][/quote]</b> tag'leri arasýnda eklendiðini göreceksiniz. Bu yöntem, bir þahsý veya seçeceðiniz herhangi baþka bir yeri kaynak vererek yanýt yazmanýzý saðlar. Örneðin Ali isminde bir þahsýn yazdýklarýný iktibas etmek için þu þekilde yazmanýz gerek: <br /><br /><b>[quote=\"Ali\"]</b>Ali'nin yazdýðý yazýlar...<b>[/quote]</b><br /><br />Sonuçta iktibas edilen kýsmýn önüne otomatik olarak Ali wrote: yazýlýr. Alýntý yaptýðýnýz þahsýn ismini týrnak iþaretleri \"\" içine almayý unutmayýn, týrnak iþaretleri kullanmanýz <b>þart</b>.</li><li>Ýkinci yöntem, kaynak vermeden alýntý yapmanýzý saðlar. Ýlgili bölümü <b>[quote][/quote]</b> tag'leri içine almanýz yeterli. Bu bölümün önünde Quote: yazýsýný göreceksiniz.</li></ul>"); ! $faq[] = array("Kaynak yazýlým veya eþaralýklý yazýtipiyle görüntüleme", "Bir programlama dilinde yazýlmýþ kaynak yazýlým veya eþaralýklý yazýtipi (örn. Courier) gerektiren herhangi bir metni görüntülemek için, ilgili kýsmý <b>[code][/code]</b> tag'leri içine almalýsýnýz. Örn.: <br /><br /><b>[code]</b>echo \"This is some code\";<b>[/code]</b><br /><br /><b>[code][/code]</b> tag'leri arasýna yazýlan tüm biçimleme tag'leri (örn. [i], [b] gibi) iptal edilir."); ! ! $faq[] = array("--","Liste Yaratma"); ! $faq[] = array("Madde imiyle liste", "BBCode rakamsýz (madde imiyle) ve rakamlý olmak üzere iki türlü liste destekler. Bu listeler aslýnda HTML listelerine eþittir. Rakamsýz liste, her maddeyi bir madde imiyle beraber satýr baþýný biraz girintilenmiþ olarak görüntüler. Rakamsýz bir liste hazýrlamak için <b>[list][/list]</b> tag'lerini kullanýn ve her satýrýn baþýna <b>[*]</b> yazýn. Örn. sevdiðiniz renklerin bir listesini þu þekilde hazýrlayabilirsiniz:<br /><br /><b>[list]</b><br /><b>[*]</b>Kýrmýzý<br /><b>[*]</b>Mavi<br /><b>[*]</b>Sarý<br /><b>[/list]</b><br /><br />Sonuç olarak þu listeyi göreceksiniz:<ul><li>Kýrmýzý</li><li>Mavi</li><li>Sarý</li></ul>"); ! $faq[] = array("Rakamlý liste", "Ýkinci liste türü olan rakamlý listeyle, her satýr baþýnda görülen rakamý kontrol edebilirsiniz. Rakamlara göre sýralanmýþ bir liste için <b>[list=1][/list]</b> kullanmanýz gerek. Alternatif olarak alfabe'ye göre sýralanmýþ bir liste için <b>[list=a][/list]</b> tag'lerini kullanabilirsiniz. Rakamsýz listelerde olduðu gibi, her maddeyi <b>[*]</b> ile iþaretlemeniz gerek. Örneðin:<br /><br /><b>[list=1]</b><br /><b>[*]</b>Maðazaya git<br /><b>[*]</b>Yeni bilgisayar al<br /><b>[*]</b>Eve götür<br /><b>[/list]</b><br /><br />þu þekilde görüntülenir:<ol type=\"1\"><li>Maðazaya git</li><li>Yeni bilgisayar al</li><li>Eve götür</li></ol>Öte yandan alfabeye göre sýralanmýþ bir listeyi þu þekilde yazmanýz gerekir:<br /><br /><b>[list=a]</b><br /><b>[*]</b>Birinci seçenek<br /><b>[*]</b>Ýkinci seçenek<br /><b>[*]</b>Üçüncü seçenek<br /><b>[/list]</b><br /><br />Sonuç:<ol type=\"a\"><li>Birinci seçenek</li><li>Ýkinci seçenek</li><li>Üçüncü seçenek</li></ol>"); ! ! $faq[] = array("--", "Link (kýsayol) Yaratma"); ! $faq[] = array("Ayrý bir siteye link verme", "BBCode link (URL) yaratmak için deðiþik yöntemleri destekler.<ul><li>Birinci yöntem <b>[url=][/url]</b> tag'iyledir. = iþaretinin arkasýna yazýlanlar link olarak çalýþýr. Örneðin phpBB.com'a link vermek için þu þekilde yazýn:<br /><br /><b>[url=http://www.phpbb.com/]</b>phpBB'yi ziyaret edin!<b>[/url]</b><br /><br />Sonuçta þu linki göreceksiniz: <a href=\"http://www.phpbb.com/\" target=\"_blank\">phpBB'yi ziyaret edin!</a> Bu linki týklayýnca ayrý bir pencere açýlýr. Böylece kullanýcý forum'u gezmeye devam edebilir.</li><li>Link adresinin gösterilmesini istiyorsanýz, þu þekildede yazabilirsiniz:<br /><br /><b>[url]</b>http://www.phpbb.com/<b>[/url]</b><br /><br />Sonuçta þu linki göreceksiniz: <a href=\"http://www.phpbb.com/\" target=\"_blank\">http://www.phpbb.com/</a></li><li>phpBB ayrýca <i>Sihirli Linkler</i> denen bir iþleme sahip. Bunun sayesinde, kurallara uygun bir þekilde yazýlan her link adresi otomatik olarak link'e çevrilir, herhangi bir tag, hatta http:// yazmanýza gerek kalmaz. Örn. www.phpbb.com yazýnca, izlenim sayfasýnda otomatik olarak <a href=\"http://www.phpbb.com/\" target=\"_blank\">www.phpbb.com</a> olarak görüntülenir.</li><li>Ayný iþlem email adresleri için uygulanýr. Dilerseniz özel olarak bir adres belirleyebilirsiniz, örn.:<br /><br /><b>[email]</b>no...@do...<b>[/email]</b><br /><br />yazýlýnca þu þekilde görüntülenir: <a href=\"emailto:no...@do...\">no...@do...</a> Veya basitçe no...@do... yazabilirsiniz ve mesajýnýz görüntülendiðinde bu kýsým otomatik olarak link'e çevrilir.</li></ul>Bütün BBCode tag'leri gibi, link adreslerinide diðer tag'lerin içine alabilirsiniz, örn. <b>[img][/img]</b> (bir sonraki madde bakýn), <b>[b][/b]</b>, vs. Biçimleme tag'lerinde olduðu gibi, tag'lerin düzgün bir þekilde sýrasýyla kapatýlmasýný kendiniz saðlamalýsýnýz, örn.:<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/url][/img]</b><br /><br />doðru <u>deðildir</u> ve hatta mesajýnýzýn ! ! ! silinmesine yol açabilir, bu konuda dikkatli olmanýz gerek."); ! ! $faq[] = array("--", "Mesajlarda Resim Görüntüleme"); ! $faq[] = array("Bir mesaja resim ekleme", "BBCode mesajlarýnýza resim eklemek için bir tag'e sahiptir. Bu tag'i kullanýrken iki önemli noktayý dikkate almanýz gerek: birçok kullanýcý mesajlarda çok sayýda resmin görüntülenmesini hoþ karþýlamýyor. Ayrýca kullanmak istediðiniz resme internet üzerinden ulaþýlabilmeli (örn. bu resmin kendi bilgisayarýnýzda bulunmasý yeterli deðildir). Þu anda phpBB üzerinden resim kaydetme imkaný yoktur (bu konular muhtemelen phpBB'nin bir sonraki sürümünde ele alýnacak). Bir resmi görüntülemek için, resmin adresini <b>[img][/img]</b> tag'leri içine almalýsýnýz. Örn.:<br /><br /><b>[img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img]</b><br /><br />Bir önceki maddede belirtildiði gibi, resmi dilerseniz <b>[url][/url]</b> tag'leri içine alabilirsiniz. Örn.:<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img][/url]</b><br /><br />yazýnca þu sonucu verir:<br /><br /><a href=\"http://www.phpbb.com/\" target=\"_blank\"><img src=\"http://www.phpbb.com/images/phplogo.gif\" border=\"0\" alt=\"\" /></a><br />"); ! ! $faq[] = array("--", "Diðer Konular"); ! $faq[] = array("Kendi tag'lerimi ekleyebilir miyim?", "Hayýr, maalesef phpBB 2.0 sürümünde böyle bir imkan yok. Bir sonraki sürümde özelleþtirilmiþ BBCode tag'leri sunmayý planlýyoruz."); ! ! // ! // This ends the BBCode guide entries ! // ! ?> --- 1,65 ---- ! <?php ! /*************************************************************************** ! * lang_bbcode.php [Turkish] ! * ------------------- ! * begin : Wednesday Oct 3, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $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. ! * ! ***************************************************************************/ ! ! // ! // Translation by: ! // ! // Onur Turgay (postexitus) :: onu...@is... :: http://welcome.to/aaal2000 ! // Erdem Corapcioglu (erdem) :: er...@sm... :: http://www.smtg.org ! // ! // For questions and comments use: onu...@is... ! // ! ! ! $faq[] = array("--","Giriþ"); ! $faq[] = array("BBCode nedir?", "BBCode HTML'in özel bir uygulamasýdýr. Forum'a yazdýðýnýz mesajlarda BBCode kullanabilme imkanýný pano yöneticisi saptar. Ayrýca mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda BBCode'ý iptal etmeniz mümkündür. BBCode, HTML'e benzer tarzdadýr fakat tag'ler < ve > yerine köþeli parantez içine alýnýr. Ayrýca nelerin nasýl görüntülendiði daha iyi kontrol edilebilir. Mesajlarýnýza BBCode eklemek için mesaj gövdesi üzerinde bulunan araç çubuðunu kullanmanýz iþi çok daha kolaylaþtýrýr (araç çubuðu görünümü kullandýðýnýz tema'ya baðlýdýr). Ayrýca alttaki rehberi faydalý bulabilirsiniz."); ! ! $faq[] = array("--","Metin Biçimini Deðiþtirme"); ! $faq[] = array("Kalýn, italik veya altýçizili yazýlar nasýl yazýlýr?", "BBCode, metnin temel biçimlemesini kolayca deðiþtirmenizi saðlayan tag'lere sahiptir. Bunu gerçekleþtirmek için þu yöntemler kullanýlýr: <ul><li>Metnin belirli bir kýsmýný kalýn harflerle görüntülemek için <b>[b][/b]</b> tag'leri içine alýn, örn. <br /><br /><b>[b]</b>Hello<b>[/b]</b><br /><br />yazýlýnca <b>Hello</b> olarak görüntülenir.</li><li>Altýçizili yazýlar için <b>[u][/u]</b> kullanýn, örn.: <br /><br /><b>[u]</b>Good Morning<b>[/u]</b><br /><br />yazýlýnca <u>Good Morning</u> olarak görüntülenir.</li><li>Metni italik yazmak için <b>[i][/i]</b> kullanýn, örn. <br /><br />This is <b>[i]</b>Great!<b>[/i]</b><br /><br />yazýlýnca sonuç This is <i>Great!</i> olur.</li></ul>"); ! $faq[] = array("Yazýlarýn rengi veya boyutu nasýl deðiþtirilir?", "Yazýlarýn renk veya boyutunu deðiþtirmek için alttaki tag'ler kullanýlabilir. Elde edilen sonuç, kullanýlan browser ve bilgisayar sistemine göre deðiþebilir, aklýnýzda bulunsun: <ul><li>Yazýlarýn rengi, metni <b>[color=][/color]</b> tag'leri içine alarak deðiþtirilir. Belirli ingilizce renk isimlerini (örn. red, blue, yellow vs.) veya alternatif olarak 16 tabanlý sayý sisteminde kodlanmýþ üç rakamlý renk kodunu yazabilirsiniz (örn. #FFFFFF, #000000). Metni örneðin kýrmýzý harflerle yazmak için:<br /><br /><b>[color=red]</b>Hello!<b>[/color]</b><br /><br />veya<br /><br /><b>[color=#FF0000]</b>Hello!<b>[/color]</b><br /><br />ayný þekilde görüntülenir: <span style=\"color:red\">Hello!</span></li><li>Karakterlerin boyutunu benzer þekilde <b>[size=][/size]</b> kullanarak deðiþtirebilirsiniz. Bu tag kullandýðýnýz tema'ya baðlýdýr. Karakterlerin pixel olarak boyutunu yazmanýz önerilir. Bu rakam 1 ile baþlayýp (gözle görülmeyecek kadar küçük), en fazla 29 (çok büyük) olabilir. Örnek:<br /><br /><b>[size=9]</b>KÜÇÜK<b>[/size]</b><br /><br />genelde þu sonucu verir: <span style=\"font-size:9px\">KÜÇÜK</span><br /><br />öte yandan:<br /><br /><b>[size=24]</b>BÜYÜK!<b>[/size]</b><br /><br /><span style=\"font-size:24px\">BÜYÜK!</span> sonucunu verir.</li></ul>"); ! $faq[] = array("Biçimlendirme tag'lerini karýþtýrabilir miyim?", "Evet, mesela dikkati çekmek için þöyle yazabilirsiniz:<br /><br /><b>[size=18][color=red][b]</b>DÝKKAT!<b>[/b][/color][/size]</b><br /><br />Bu yazý þu þekilde görüntülenir: <span style=\"color:red;font-size:18px\"><b>DÝKKAT!</b></span><br /><br />Uzun metinleri bu þekilde yazmamanýzý öneririz! Unutmayýn ki, tag'lerin düzgün bir þekilde kapatýlmasýný temin etmek, metni gönderen kiþi olarak sizin görevinizdir. Örneðin bu þekilde yazmak yanlýþtýr: <br /><br /><b>[b][u]</b>Tag'ler hatalý kapatýlmýþ<b>[/b][/u]</b>"); ! ! $faq[] = array("--","Alýntý ile Cevap ve Eþaralýklý Yazýtipi"); ! $faq[] = array("Alýntý ile cevap yazma", "Bir metinden alýntý yapmanýn iki ayrý yöntemi vardýr: kaynak vererek veya vermeyerek.<ul><li>Bir mesaja cevap vermek için Alýnýtý ile Cevap komutunu kullanýrsanýz, orijinal mesajýn kendi mesajýnýza <b>[quote=\"\"][/quote]</b> tag'leri arasýnda eklendiðini göreceksiniz. Bu yöntem, bir þahsý veya seçeceðiniz herhangi baþka bir yeri kaynak vererek yanýt yazmanýzý saðlar. Örneðin Ali isminde bir þahsýn yazdýklarýný iktibas etmek için þu þekilde yazmanýz gerek: <br /><br /><b>[quote=\"Ali\"]</b>Ali'nin yazdýðý yazýlar...<b>[/quote]</b><br /><br />Sonuçta iktibas edilen kýsmýn önüne otomatik olarak Ali wrote: yazýlýr. Alýntý yaptýðýnýz þahsýn ismini týrnak iþaretleri \"\" içine almayý unutmayýn, týrnak iþaretleri kullanmanýz <b>þart</b>.</li><li>Ýkinci yöntem, kaynak vermeden alýntý yapmanýzý saðlar. Ýlgili bölümü <b>[quote][/quote]</b> tag'leri içine almanýz yeterli. Bu bölümün önünde Quote: yazýsýný göreceksiniz.</li></ul>"); ! $faq[] = array("Kaynak yazýlým veya eþaralýklý yazýtipiyle görüntüleme", "Bir programlama dilinde yazýlmýþ kaynak yazýlým veya eþaralýklý yazýtipi (örn. Courier) gerektiren herhangi bir metni görüntülemek için, ilgili kýsmý <b>[code][/code]</b> tag'leri içine almalýsýnýz. Örn.: <br /><br /><b>[code]</b>echo \"This is some code\";<b>[/code]</b><br /><br /><b>[code][/code]</b> tag'leri arasýna yazýlan tüm biçimleme tag'leri (örn. [i], [b] gibi) iptal edilir."); ! ! $faq[] = array("--","Liste Yaratma"); ! $faq[] = array("Madde imiyle liste", "BBCode rakamsýz (madde imiyle) ve rakamlý olmak üzere iki türlü liste destekler. Bu listeler aslýnda HTML listelerine eþittir. Rakamsýz liste, her maddeyi bir madde imiyle beraber satýr baþýný biraz girintilenmiþ olarak görüntüler. Rakamsýz bir liste hazýrlamak için <b>[list][/list]</b> tag'lerini kullanýn ve her satýrýn baþýna <b>[*]</b> yazýn. Örn. sevdiðiniz renklerin bir listesini þu þekilde hazýrlayabilirsiniz:<br /><br /><b>[list]</b><br /><b>[*]</b>Kýrmýzý<br /><b>[*]</b>Mavi<br /><b>[*]</b>Sarý<br /><b>[/list]</b><br /><br />Sonuç olarak þu listeyi göreceksiniz:<ul><li>Kýrmýzý</li><li>Mavi</li><li>Sarý</li></ul>"); ! $faq[] = array("Rakamlý liste", "Ýkinci liste türü olan rakamlý listeyle, her satýr baþýnda görülen rakamý kontrol edebilirsiniz. Rakamlara göre sýralanmýþ bir liste için <b>[list=1][/list]</b> kullanmanýz gerek. Alternatif olarak alfabe'ye göre sýralanmýþ bir liste için <b>[list=a][/list]</b> tag'lerini kullanabilirsiniz. Rakamsýz listelerde olduðu gibi, her maddeyi <b>[*]</b> ile iþaretlemeniz gerek. Örneðin:<br /><br /><b>[list=1]</b><br /><b>[*]</b>Maðazaya git<br /><b>[*]</b>Yeni bilgisayar al<br /><b>[*]</b>Eve götür<br /><b>[/list]</b><br /><br />þu þekilde görüntülenir:<ol type=\"1\"><li>Maðazaya git</li><li>Yeni bilgisayar al</li><li>Eve götür</li></ol>Öte yandan alfabeye göre sýralanmýþ bir listeyi þu þekilde yazmanýz gerekir:<br /><br /><b>[list=a]</b><br /><b>[*]</b>Birinci seçenek<br /><b>[*]</b>Ýkinci seçenek<br /><b>[*]</b>Üçüncü seçenek<br /><b>[/list]</b><br /><br />Sonuç:<ol type=\"a\"><li>Birinci seçenek</li><li>Ýkinci seçenek</li><li>Üçüncü seçenek</li></ol>"); ! ! $faq[] = array("--", "Link (kýsayol) Yaratma"); ! $faq[] = array("Ayrý bir siteye link verme", "BBCode link (URL) yaratmak için deðiþik yöntemleri destekler.<ul><li>Birinci yöntem <b>[url=][/url]</b> tag'iyledir. = iþaretinin arkasýna yazýlanlar link olarak çalýþýr. Örneðin phpBB.com'a link vermek için þu þekilde yazýn:<br /><br /><b>[url=http://www.phpbb.com/]</b>phpBB'yi ziyaret edin!<b>[/url]</b><br /><br />Sonuçta þu linki göreceksiniz: <a href=\"http://www.phpbb.com/\" target=\"_blank\">phpBB'yi ziyaret edin!</a> Bu linki týklayýnca ayrý bir pencere açýlýr. Böylece kullanýcý forum'u gezmeye devam edebilir.</li><li>Link adresinin gösterilmesini istiyorsanýz, þu þekildede yazabilirsiniz:<br /><br /><b>[url]</b>http://www.phpbb.com/<b>[/url]</b><br /><br />Sonuçta þu linki göreceksiniz: <a href=\"http://www.phpbb.com/\" target=\"_blank\">http://www.phpbb.com/</a></li><li>phpBB ayrýca <i>Sihirli Linkler</i> denen bir iþleme sahip. Bunun sayesinde, kurallara uygun bir þekilde yazýlan her link adresi otomatik olarak link'e çevrilir, herhangi bir tag, hatta http:// yazmanýza gerek kalmaz. Örn. www.phpbb.com yazýnca, izlenim sayfasýnda otomatik olarak <a href=\"http://www.phpbb.com/\" target=\"_blank\">www.phpbb.com</a> olarak görüntülenir.</li><li>Ayný iþlem email adresleri için uygulanýr. Dilerseniz özel olarak bir adres belirleyebilirsiniz, örn.:<br /><br /><b>[email]</b>no...@do...<b>[/email]</b><br /><br />yazýlýnca þu þekilde görüntülenir: <a href=\"emailto:no...@do...\">no...@do...</a> Veya basitçe no...@do... yazabilirsiniz ve mesajýnýz görüntülendiðinde bu kýsým otomatik olarak link'e çevrilir.</li></ul>Bütün BBCode tag'leri gibi, link adreslerinide diðer tag'lerin içine alabilirsiniz, örn. <b>[img][/img]</b> (bir sonraki madde bakýn), <b>[b][/b]</b>, vs. Biçimleme tag'lerinde olduðu gibi, tag'lerin düzgün bir þekilde sýrasýyla kapatýlmasýný kendiniz saðlamalýsýnýz, örn.:<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/url][/img]</b><br /><br />doðru <u>deðildir</u> ve hatta mesajýnýzýn ! ! ! silinmesine yol açabilir, bu konuda dikkatli olmanýz gerek."); ! ! $faq[] = array("--", "Mesajlarda Resim Görüntüleme"); ! $faq[] = array("Bir mesaja resim ekleme", "BBCode mesajlarýnýza resim eklemek için bir tag'e sahiptir. Bu tag'i kullanýrken iki önemli noktayý dikkate almanýz gerek: birçok kullanýcý mesajlarda çok sayýda resmin görüntülenmesini hoþ karþýlamýyor. Ayrýca kullanmak istediðiniz resme internet üzerinden ulaþýlabilmeli (örn. bu resmin kendi bilgisayarýnýzda bulunmasý yeterli deðildir). Þu anda phpBB üzerinden resim kaydetme imkaný yoktur (bu konular muhtemelen phpBB'nin bir sonraki sürümünde ele alýnacak). Bir resmi görüntülemek için, resmin adresini <b>[img][/img]</b> tag'leri içine almalýsýnýz. Örn.:<br /><br /><b>[img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img]</b><br /><br />Bir önceki maddede belirtildiði gibi, resmi dilerseniz <b>[url][/url]</b> tag'leri içine alabilirsiniz. Örn.:<br /><br /><b>[url=http://www.phpbb.com/][img]</b>http://www.phpbb.com/images/phplogo.gif<b>[/img][/url]</b><br /><br />yazýnca þu sonucu verir:<br /><br /><a href=\"http://www.phpbb.com/\" target=\"_blank\"><img src=\"http://www.phpbb.com/images/phplogo.gif\" border=\"0\" alt=\"\" /></a><br />"); ! ! $faq[] = array("--", "Diðer Konular"); ! $faq[] = array("Kendi tag'lerimi ekleyebilir miyim?", "Hayýr, maalesef phpBB 2.0 sürümünde böyle bir imkan yok. Bir sonraki sürümde özelleþtirilmiþ BBCode tag'leri sunmayý planlýyoruz."); ! ! // ! // This ends the BBCode guide entries ! // ! ?> Index: lang_faq.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/language/lang_turkish/lang_faq.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** lang_faq.php 31 Jan 2002 13:42:23 -0000 1.1 --- lang_faq.php 10 Mar 2002 03:23:56 -0000 1.2 *************** *** 1,92 **** ! <?php ! /*************************************************************************** ! * lang_faq.php [turkish] ! * ------------------- ! * begin : Wednesday Oct 3, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $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. ! * ! ***************************************************************************/ ! // ! // Translation by: ! // ! // Onur Turgay (postexitus) :: onu...@is... :: http://welcome.to/aaal2000 ! // Erdem Corapcioglu (erdem) :: er...@sm... :: http://www.smtg.org ! // ! // For questions and comments use: onu...@is... ! // ! ! $faq[] = array("--","Giriþ ve Kayýt sorunlarý"); ! ! $faq[] = array("Neden giriþ yapamýyorum?", "Kayýt oldunuz mu? Giriþ yapabilmek için önceden kayýt olmanýz gerek. Yoksa mesaj panosundan banlandýnýz mý (o halde bu anlamda bir mesaj görmeniz gerekir)? Eðer öyleyse, site yöneticisiyle (webmaster) veya pano yöneticisiyle (administrator) irtibata geçip sebebini sorabilirsiniz. Eðer kayýt olduysanýz ve banlanmýþ olmamanýza raðmen giriþ yapamýyorsanýz, tekrar tekrar kullanýcý adýnýzý ve þifrenizi kontrol edin. Genelde hata burada oluyor. Sorun bu deðilse pano yöneticisiyle irtibata geçin, belki mesaj panosu için yanlýþ ayar yapmýþ olabilir."); ! $faq[] = array("Neden kayýt olmam gerekiyor?", "Kayýt olmanýza gerek olmayabilirdi aslýnda. Mesaj gönderebilmek için kaydýn þart olmasý, pano yöneticisinin (administator) kararýna baðlý. Ayrýca kayýt olunca bazý özel imkanlara ulaþabilirsiniz. Örneðin mesajlarýnýzýn yanýnda kedinize ait küçük bir resim (avatar) gösterme, özel mesaj gönderme, tanýdýðýnýz kullanýcýlara mail gönderme veya kullanýcý gruplarýna katýlma imkanlarýna misafir kullanýcýlar sahip deðildir. Kayýt iþlemi çok basit olduðu için kaydolmanýz önerilir."); ! $faq[] = array("Neden otomatik olarak çýkýþým yapýlýyor?", "Giriþ sayfasýnda gördüðünüz <i>Her zaman otomatik giriþ yap</i> komutunu seçmediðiniz sürece, mesaj panosu sizi sadece belirli bir süre için giriþ yapmýþ kabul eder. Böylece kaydýnýzýn baþkalarý tarafýndan kullanýlmasý önlenir. Giriþinizin devamlý kalmasý için, bu komutu seçmeniz yeterlidir. Fakat baþka þahýslarýnda kullandýðý (örn. herhangi bir kütüphaneye, internet cafeye, üniversiteye vs. ait) bir bilgisayardan giriþ yapýyorsanýz, bu komutu seçmemeniz önerilir."); ! $faq[] = array("Kimler Online listesinde ismimin görülmesini nasýl önleyebilirim?", "Þahsýnýza ait profil sayfasýnda <i>Online olduðumu gizle</i> seçeneðini bulabilirsiniz. Buradan <i>Evet</i> 'i seçince online olduðunuzu sadece pano yöneticileri ve kendiniz görebilirsiniz. Bu durumda gizli kullanýcý olarak sayýlýrsýnýz."); ! $faq[] = array("Þifremi unuttum!", "Telaþa kapýlmayýn! Eski þifrenizi öðrenmek mümkün olmasa bile, yerine deðiþik bir þifre alabilirsiniz. Giriþ sayfasýný açýp <u>Þifremi unuttum</u> üzerini týklayýn ve tarif edilen iþlemleri uygulayýn. Kýsa sürede tekrar online olduðunuzu göreceksiniz."); ! $faq[] = array("Kayýt oldum ama giriþ yapamýyorum!", "Ýlk önce kullanýcý adýnýzý ve þifrenizi doðru yazdýðýnýzý temin edin. Doðru yazýlmýþsa, iki sebep daha olabilir. Eðer COPPA destekleniyorsa ve kaydýnýz esnasýnda <u>13 yaþýndan küçüðüm</u> linkini týkladýysanýz, tarif edilen iþlemleri uygulamanýz gerek. Sebep bu deðilse, kaydýnýzýn onaylanmasý gerekebilir. Bazý mesaj panolarý tüm yeni kayýtlarýn onaylanmasýný þart koþar. Giriþ yapabilmeniz için ya kendiniz yada pano yöneticisi tarafýndan kaydýnýz onaylanmalýdýr. Bu durumda onay gerekçesi, kaydýnýz esnasýnda size bildirilmiþ olmalý. Bu doðrultuda bir e-mail aldýysanýz, tarif edilen iþlemleri uygulamanýz gerek. Eðer böyle bir e-mail almadýysanýz, verdiðiniz e-mail adresinin doðru olup olmadýðýný kontrol edin. Onay gerekçesinin sebebi, <i>kötü amaçlý</i> kullanýcýlarýn anonim kalýp mesaj panosunu suiistimal etmelerini önlemektir. Verdiðiniz e-mail adresinin doðru olduðundan eminseniz, pano yöneticisiyle irtibata geçmeniz gerekir."); ! $faq[] = array("Daha önceleri kayýtlýydým ama artýk giriþ yapamýyorum?!", "Bunun en olasý sebebi hatalý kullanýcý adý veya þifre giriþidir (kayýt olduktan sonra aldýðýnýz e-maile bakýp kontrol edin). Belkide pano yöneticisi kaydýnýzý herhangi bir sebepten dolayý silmiþ olabilir. Panoya hiç mesaj gönderdinizmi? Veritabanýnýn kapladýðý alaný küçük tutmak için, mesaj göndermeyen kullanýcýlarýn kaydý genelde belirli bir süre sonra silinir. Tekrar kaydolmayý deneyin ve tartýþmalara katýlýn."); ! ! $faq[] = array("--","Kullanýcý Seçenekleri ve Ayarlarý"); ! $faq[] = array("Kullanýcý ayarlarýmý nasýl deðiþtirebilirim?", "Eðer kaydolduysanýz bütün ayarlarýnýz veritabanýna kaydedilir. Ayarlarýnýzý deðiþtirmek için (genelde sayfalarýn üst kýsmýnda bulunan) <u>Profil</u> linkini týklayýn. Ayarlarýnýz buradan deðiþtirilir."); ! $faq[] = array("Gösterilen saatler yanlýþ!", "Gösterilen saatler büyük bir ihtimalle doðrudur. Fakat gördüðünüz saat, bulunduðunuz yerin saat diliminden farklý olabilir. Bu durumda, <u>Profil</u> linkini týklayýp kendiniz için geçerli saat dilimini seçmeniz gerekir, örn. London, Paris, New York, Sydney vs. Çoðu seçenekler için geçerli olduðu gibi, saat dilimini deðiþtirme imkanýda sadece kayýtlý kullanýcýlara verilmiþtir. Eðer kayýtlý deðilseniz, kaydolmanýn tam zamaný (kelime oyununu baðýþlayýn)!"); ! $faq[] = array("Deðiþik bir zaman dilimi seçtim ama saatler hala yanlýþ!", "Doðru zaman dilimini seçtiðinizden eminseniz ve saat hala yanlýþ gösteriliyorsa, bunun en olasý sebebi günýþýðýndan yararlanma deðiþimleri olabilir. Örn. yaz aylarýnda görülen saatler, bulunduðunuz ülkenin gerçek saatinden bir saat ileri veya geri olabilir. Mesaj panosu bu deðiþimleri dikkate almaz."); ! $faq[] = array("Konuþtuðum lisan listede yok!", "Bunun en olasý sebepleri, ya pano yöneticisinin konuþtuðunuz lisaný destekleyen uzantýyý kurmuþ olmayýþý, yada bu panonun konuþtuðunuz lisana henüz çevrilmiþ olmayýþýdýr. Pano yöneticilerine baþvurup, kendi lisanýnýzý destekleyen uzantýyý kurmalarýný rica edin. Eðer böyle bir uzantý yoksa, panoyu kendi dilinize çevirmekte özgürsünüz. Bu konuda daha geniþ bilgi için sayfalarýn alt kýsmýnda görülen phpBB Group linkini týklayýn."); ! $faq[] = array("Ýsmimin altýnda resim (avatar) göstermek için ne yapmalýyým?", "Mesajlarýn görüntülendiði sayfalarda kullanýcý adlarýnýn altýnda iki tür resim görebilirsiniz. Birincisi, kullanýcý derecenizi gösterir ve genelde gönderdiðiniz mesaj sayýsýna baðlý olarak belirli bir sayýda yýldýz veya kare þeklindedir. Bunun altýnda avatar denen biraz daha büyük bir resim görebilirsiniz. Bu resim genelde kullanýcýya ait ve özeldir. Avatar kullanma imkanýný pano yöneticisi saptar. Ayrýca avatar'larýn ne þekilde kullanýlabileceðinide saptar. Avatar kullanamýyorsanýz, pano yöneticisine baþvurup bu imkaný ne sebepten iptal ettiðini öðrenebilirsiniz (bunun önemli bir sebebi olduðundan eminiz!)"); ! $faq[] = array("Kullanýcý derecemi nasýl deðiþtirebilirim?", "Genelde kullanýcý derecenizi doðrudan deðiþtirmeniz mümkün deðil (kullanýcý derecesi, gönderdiðiniz mesajýn yanýnda bulunan isminizin altýnda ve kullanýcý profili sayfasýnda görülür). Çoðu mesaj panosunda kullanýcý dereceleri, gönderilen mesajlarýn sayýsýný veya yetkili üyeleri belirlemek için kullanýlýr, örn. yöneticiler veya pano yöneticileri özel bir dereceye sahip olabilir. Lütfen gereksiz yere mesaj gönderipte derecenizi yükseltmeye çalýþmayýn, elde edeceðiniz tek sonuç, yöneticilerin mesajlarýnýzýn sayýsýný düþürmesi olacaktýr."); ! $faq[] = array("Bir kullanýcýnýn mail linkini týklayýnca giriþ yapmam isteniyor?", "Panoya ait e-mail formuyla maalesef sadece kayýtlý kullanýcýlar mail gönderebiliyor (ayrýca yöneticinin bu iþlevi çalýþtýrmasý gerek). Bunun sebebi, e-mail sisteminin anonim kullanýcýlar tarafýndan suiistimal edilmesini önlemektir."); ! ! $faq[] = array("--","Mesaj Gönderme"); ! $faq[] = array("Foruma yeni baþlýk nasýl gönderilir?", "Çok basit: forumu veya baþlýðý görüntüleme sayfasýnda <i>Yeni Baþlýk Gönder</i> düðmesini týklayýn. Yeni mesaj göndermeden önce kayýt olmanýz gerekebilir. Forum ve baþlýk sayfalarýnýn alt kýsmýnda yapabileceðiniz bütün iþlemlerin listesini görebilirsiniz (örn. <i>Bu forumda yeni konular açabilirsiniz</i> vs. gibi)."); ! $faq[] = array("Mesajlar nasýl deðiþtirilir veya silinir?", "Pano yöneticisi veya forum yöneticisi olmadýðýnýz sürece, sadece kendinize ait mesajlarý deðiþtirebilir veya silebilirsiniz. Gönderdiðiniz bir mesajý <i>Mesajý Deðiþtir</i> düðmesini týklayarak deðiþtirebilirsiniz (bu imkan bazen sadece belirli bir süre için mevcuttur). Mesajýnýza birileri cevap göndermiþse eðer, mesajýnýzýn altýnda metni kaç defa deðiþtirdiðinizi gösteren kýsa bir yazý göreceksiniz. Mesajýnýz henüz yanýtlanmamýþsa, bu not görülmez. Ayrýca mesajýnýz pano yöneticileri veya forum yöneticileri tarafýndan deðiþtirilincede bu yazý görülmez (yöneticilerin böyle bir durumda metnin hangi kýsmýný ne sebepten dolayý deðiþtirdiklerini yazmalarý önerilir). Bir mesaja cevap geldikten sonra normal kullanýcýlar tarafýndan silinemez."); ! $faq[] = array("Mesaj altýna imza nasýl eklenir?", "Herhangi bir mesaja imzanýzý ekleyebilmek için önce <i>Profil</i> sayfanýza girip bir imza hazýrlamanýz gerek. Daha sonra mesaj gönderme formunun alt kýsmýndaki <i>Ýmzamý ekle</i> seçeneðini seçip mesajýnýza imzanýzý ekleyebilirsiniz. Gönderdiðiniz bütün mesajlara genel bir ayar olarak imzanýzýn eklenmesini istiyorsanýz, <i>Profil</i> sayfasýndaki seçeneði týklayýn. Buna raðmen dilediðiniz her mesaj için imzanýzýn eklenmesini önleyebilirsiniz (mesaj gönderme formunda <i>Ýmzamý Ekle</i> seçeneðini silmeniz yeterli)."); ! $faq[] = array("Anket nasýl hazýrlanýr?", "Anket hazýrlamak çok basit: yeni bir baþlýk gönderirken (veya bir baþlýðýn ilk mesajýný deðiþtirirken - bu tabi yetkinize baðlý), mesaj gönderme formunun altýnda <i>Anket Ekle</i> formunu göreceksiniz (böyle bir formu göremiyorsanýz, anket ekleme yetkiniz yok demektir). Anket sorusunu ve en az iki tane anket þýkký eklemeniz gerekir. Anket þýkký eklemek için <i>Bu Þýkký Ekle</i> düðmesini týklayýn. Ayrýca anketin gösterim süresinide belirleyebilirsiniz, 0 süresiz demektir. Eklenebilecek anket þýklarýnýn sayýsý sýnýrlýdýr. Bu sýnýrý pano yöneticisi belirler."); ! $faq[] = array("Bir anket nasýl deðiþtirilir veya silinir?", "Anketlerde mesajlar gibi sadece gönderen kullanýcý, forum yöneticisi veya pano yöneticisi tarafýndan deðiþtirilebilir. Bir anketi deðiþtirmek için, baþlýðýn ilk mesajýný týklayýn (ilgili anket daima bu mesaja baðlýdýr). Ankete henüz katýlan olmadýysa, hazýrlayan kullanýcý tarafýndan deðiþtirilebilir veya silinebilir. Ankete katýlan olmuþsa, sadece forum ve pano yöneticileri tarafýndan deðiþtirilebilir veya silinebilir. Böylece bir süre sonra þýklarý deðiþtirip anket sonuçlarýný sapýtma olanaðý kalmaz."); ! $faq[] = array("Anketlere neden katýlamýyorum?", "Anketlere sadece kayýtlý kullanýcýlar katýlabilir (böylece hile yapma olanaðý önlenmiþ olur). Eðer kayýt olmanýza raðmen anketlere katýlamýyorsanýz, gerekli yetkilere sahip deðilsiniz demektir."); ! $faq[] = array("Bazý forumlara neden ulaþamýyorum?", "Bazý forumlar sadece belirli kullanýcýlara veya kullanýcý gruplarýna açýk olabilir. Mesajlarý okumak, görüntülemek, göndermek için vs. özel yetki gerekebilir. Bu yetkiyi sadece ilgili forum yöneticisi veya pano yöneticisi verebilir, bu kiþilere baþvurmalýsýnýz."); ! ! $faq[] = array("--","Biçimlendirme ve Baþlýk Tipleri"); ! $faq[] = array("BBCode nedir?", "BBCode HTML'in özel bir uygulamasýdýr. Forum'a yazdýðýnýz mesajlarda BBCode kullanabilme imkanýný pano yöneticisi saptar. Ayrýca mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda BBCode'ý iptal etmeniz mümkündür. BBCode, HTML'e benzer tarzdadýr fakat tag'ler < ve > yerine köþeli parantez içine alýnýr: [ ve ]. Ayrýca nelerin nasýl görüntülendiði daha iyi kontrol edilebilir. BBCode hakkýnda daha geniþ bilgiler için, mesaj gönderme sayfasýndan ulaþabileceðiniz rehbere bakýnýz."); ! $faq[] = array("HTML kullanabilir miyim?", "Pano yöneticisinin müsaade vermesine baðlýdýr, ilgili ayarlarýn tümünü o kontrol eder. Eðer müsaade verilmiþse, büyük ihtimalle sadece bazý tag'lerin çalýþtýðýný göreceksiniz. Böyle olmasý <i>güvenlik</i> içindir. Amaç, pano görüntüsünün bozulmasýný veya daha deðiþik sorunlarýn meydana gelmesini önlemektir. Müsaade verilmiþ olsa bile, mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda HTML'i iptal etmeniz mümkündür."); ! $faq[] = array("Smiley nedir?", "Smiley veya Emoticon, belirli duygu ifadelerini vermek için kullanýlan iþaretlerdir. Metinde küçük resimler halinde görüntülenir. Örn. :) mutlu, :( ise üzgün anlamýndadýr. Kullanabileceðiniz smileylerin listesini mesaj gönderme formunda görebilirsiniz. Smileyleri aþýrý derecede kullanmamaya özen gösterin, metin yoksa okunmaz hale gelebilir. Bu durumda yönetici smileyleri veya mesajýnýzý tamamýyla silmeye karar verebilir."); ! $faq[] = array("Resim gönderebilir miyim?", "Gönderdiðiniz mesajla beraber resimde görüntülenebilir. Fakat þu anda panoya doðrudan resim göndermek mümkün deðildir. Bu yüzden umuma açýk bir web serverinde kayýtlý bir resme link vermeniz gerek, örn. http://www.umuma-acik-server.net/resim.gif. Kendi bilgisayarýnýzda bulunan bir resme link vermeniz mümkün deðil (bilgisayarýnýz umuma açýk bir web serveri olmadýðý sürece). Ayrýca, umuma açýk olmayan ve sadece þifreyle ulaþýlan resimlere link vermek mümkün deðildir (örn. hotmail veya yahoo mailboxlarýnda vs. kayýtlý resimler). Resim görüntülemek için, BBCode'ýn [img] tag'ini yada (müsaade verilmiþse) HTML kullanabilirsiniz."); ! $faq[] = array("Duyuru nedir?", "Duyurular çoðu zaman önemli bilgileri içerir, en kýsa zamanda okumanýzý öneririz. Duyurular, ilgili forumun her sayfasýnýn baþýnda görülür. Duyuru gönderebilmeniz için bu yetkiye sahip olmanýz gerek. Yetkilerinizi ise pano yöneticisi saptar."); ! $faq[] = array("Sabit baþlýklar nedir?", "Sabit baþlýklar, ilgili forumun ilk sayfasýnda, duyurularýn hemen altýnda görülür. Çoðu zaman önemli bilgileri içerirler, mümkünse okumanýzý öneririz. Duyurular için geçerli olduðu gibi, herhangi bir foruma sabit baþlýk göndermek için gereken yetkileri pano yöneticisi saptar."); ! $faq[] = array("Kilitli baþlýklar nedir?", "Bu baþlýklarý forum yöneticisi veya pano yöneticisi kilitler. Kilitli baþlýklarý yanýtlamak mümkün deðildir, içerdikleri anketler otomatik olarak sona erir. Baþlýklar birçok nedenlerden dolayý kilitlenmiþ olabilir."); ! ! $faq[] = array("--","Kullanýcý Seviyeleri ve Gruplarý"); ! $faq[] = array("Pano yöneticileri (administrator) nedir?", "Pano yöneticileri, panonun her bölümünde en çok yetkiye sahip olan þahýslardýr. Bu kiþiler, panonun hertürlü iþlevini kontrol edebilir: müsaade verme, yetkilendirme, kullanýcý banlama, kullanýcý gruplarý yaratma, forum yöneticisi (moderator) yetkilerini verme vs. Ayrýca bütün forumlarda forum yöneticisi (moderator) yetkilerine sahiptirler."); ! $faq[] = array("Forum yöneticileri (moderator) nedir?", "Forum yöneticileri, günlük olarak forumun çalýþmasýný kontrol eden þahýslar veya gruplardýr. Baþlýklarý deðiþtirme ve silme yetkisine sahiptirler. Ayrýca yönettikleri forumdaki baþlýklarý kilitleyebilir, taþýyabilir, silebilir ve bölebilirler. Genelde forum yöneticilerinin görevi, <i>off-topic</i>, yani baþlýk konusuyla ilgisi olmayan yanýtlarýn veya hakaret ve saldýrý niteliðinde metinlerin gönderilmesini önlemektir."); ! $faq[] = array("Kullanýcý gruplarý nedir?", "Kullanýcý gruplarý, pano yöneticilerinin kullanýcýlarý grup halinde ayýrabilmesi için öngörülen bir yöntemdir. Her kullanýcý (çoðu panolardan farklý olarak) birçok gruba üye olabilir. Bu þekilde pano yöneticileri belirli kullanýcýlara rahatlýkla forum yöneticisi yetkilerini veya özel forumlara ulaþma yetkisini vs. verebilir."); ! $faq[] = array("Bir kullanýcý grubuna nasýl üye olabilirim?", "Bir kullanýcý grubuna üye olmak için, sayfa baþýndaki kullanýcý gruplarý linkini týklayýn. Kullanýcý gruplarýnýn listesini göreceksiniz. Gruplarýn tümü <i>eriþime açýk</i> olmayabilir, bazýlarý kilitli veya gizli olabilir. Pano açýk ise, ilgili düðmeyi týklayarak üye olmak için istekte bulunabilirsiniz. Ýsteðinizin kullanýcý grubu yöneticisi tarafýndan onaylanmasý gerek, örneðin isteðinizin nedenini sorabilir. Ýsteðiniz reddedilirse grup yöneticisini lütfen rahatsýz etmeyin, bunun nedenleri olsa gerek."); ! $faq[] = array("Bir kullanýcý grubunun yöneticisi olmak için ne yapmam gerek?", "Kullanýcý gruplarý pano yöneticisi tarafýndan açýlýr. Pano yöneticisi ayný zamanda her grubun yöneticisini saptar. Eðer yeni bir kullanýcý grubu açmak istiyorsanýz, ilk önce pano yöneticisiyle irtibata geçmeniz gerek, kendisine özel mesaj göndermeyi deneyin."); ! ! $faq[] = array("--","Özel Mesajlar"); ! $faq[] = array("Özel mesaj gönderemiyorum!", "Bunun üç sebebi olabilir: henüz kayýt olmamýþ veya giriþ yapmamýþsýnýz, veya pano yöneticisi bütün pano için özel mesajlarý iptal etmiþ. Üçüncü olanak ise: pano yöneticisi sizin bu imkaný kullanmanýzý önlemiþ olabilir, bu durumda kendisine nedenini sormanýz gerekir."); ! $faq[] = array("Ýstemediðim özel mesajlarý almaya devam ediyorum!", "Ýleride özel mesajlar sistemine belirli kiþilerden gelen mesajlarý iptal etme imkanýný ekleyeceðiz. Þimdilik herhangi bir þahýstan istemediðiniz özel mesajlar alýyorsanýz, pano yöneticisine baþvurun. O herhangi bir kullanýcýyý özel mesaj göndermekten men edebilir."); ! $faq[] = array("Bu mesaj panosuna kayýtlý birinden spam mail aldým!", "Üzgünüz. Aslýnda bu panonun sunduðu email gönderme iþlevi bundan korunmak için birçok önlemi almýþ bulunuyor. Aldýðýnýz spam mailinin bir kopyasýný pano yöneticisine gönderin. Özellikle aldýðýnýz emailin baþlýk kýsmýný (to (kime), subject (konu) vs.) iletmeyi unutmayýn, bu kýsýmda emaili gönderen kullanýcý hakkýnda bilgiler bulunur. Pano yöneticisi bu bilgilerle meseleyi takip edebilir."); ! ! // ! // These entries should remain in all languages and for all modifications ! // ! $faq[] = array("--","phpBB 2'yle ilgili Konular"); ! $faq[] = array("Bu mesaj panosunu kim yazdý?", "Bu yazýlým (deðiþtirilmemiþ haliyle) <a href=\"http://www.phpbb.com/\" target=\"_blank\">phpBB Group</a> tarafýndan üretilmiþ ve genel daðýtýma çýkarýlmýþtýr. Tüm eser haklarý phpBB Group'a aittir. Bu eser, GNU General Public Licence antlaþmasýna uygun olarak eriþime açýlmýþtýr. Bu antlaþmaya uyma þartýyla ücretsiz daðýtýlabilir. Daha detaylý bilgiler için üstteki linki týklayýn."); ! $faq[] = array("Aradýðým ... özellik neden yok?", "Bu yazýlým phpBB Group tarafýndan yazýlmýþ ve daðýtýma çýkarýlmýþtýr. Eðer herhangi bir özelliðin eksik olduðunu düþünüyorsanýz, lütfen phpbb.com sitesini ziyaret edip phpBB Group'un ilgili düþüncelerini öðrenin. Lütfen phpbb.com sitesindeki panoya yazýp yeni bir özellik isteðinde bulunmayýn. phpbb Group sourceforge aracýlýðýyla yeni özellikler ekler. Lütfen ilgili forumlarý gezip ilk önce phpBB Group'un herhangi bir özellikle ilgili tutumunu öðrenin ve daha sonra burada tarif edilen yöntemle baþvuruda bulunun."); ! $faq[] = array("Bu panoyla ilgili hukuki sorunlar için veya suiistimal durumunda kime baþvurabilirim?", "Pano yöneticisine baþvurmanýz önerilir. Pano yöneticisinin kim olduðunu öðrenemezseniz, ilk önce forum yöneticilerinden biriyle irtibata geçip, kime yazmanýz gerektiðini öðrenin. Herhangi bir yanýt alamadýðýnýz takdirde, site sahibine baþvurun (whois aramasýyla sitenin sahibini öðrenebilirsiniz) veya (eðer pano ücretsiz hizmet veren sitelerde çalýþtýrýlýyorsa, örn. yahoo, free.fr, f2s.com vs.) sitenin yönetimine veya suiistimal konularýyla ilgilenen þubesine baþvurun. phpBB Group'un bu panonun nasýl, nerede ve kimler tarafýndan çalýþtýrýldýðýný kontrol etmediðini ve herhangi bir þekilde bundan sorumlu olmadýðýný lütfen dikkate alýn. phpbb.com sitesiyle veya phpBB yazýlýmýyla doðrudan ilgisi olmayan herhangi bir hukuki konuda (ihtiyati tedbir, mali sorumluluk, iftira vs.) phpBB Group'la irtibata geçmek tamamen anlamsýzdýr. Bu yazýlýmýn herhangi üçüncü þahýslar tarafýndan kullanýmýyla ilgili phpBB Group'a e-mail yazarsanýz, çok kýsa yada hiç cevap almamayý beklemeniz gerek."); ! ! // ! // This ends the FAQ entries ! // ! ?> --- 1,92 ---- ! <?php ! /*************************************************************************** ! * lang_faq.php [turkish] ! * ------------------- ! * begin : Wednesday Oct 3, 2001 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $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. ! * ! ***************************************************************************/ ! // ! // Translation by: ! // ! // Onur Turgay (postexitus) :: onu...@is... :: http://welcome.to/aaal2000 ! // Erdem Corapcioglu (erdem) :: er...@sm... :: http://www.smtg.org ! // ! // For questions and comments use: onu...@is... ! // ! ! $faq[] = array("--","Giriþ ve Kayýt sorunlarý"); ! ! $faq[] = array("Neden giriþ yapamýyorum?", "Kayýt oldunuz mu? Giriþ yapabilmek için önceden kayýt olmanýz gerek. Yoksa mesaj panosundan banlandýnýz mý (o halde bu anlamda bir mesaj görmeniz gerekir)? Eðer öyleyse, site yöneticisiyle (webmaster) veya pano yöneticisiyle (administrator) irtibata geçip sebebini sorabilirsiniz. Eðer kayýt olduysanýz ve banlanmýþ olmamanýza raðmen giriþ yapamýyorsanýz, tekrar tekrar kullanýcý adýnýzý ve þifrenizi kontrol edin. Genelde hata burada oluyor. Sorun bu deðilse pano yöneticisiyle irtibata geçin, belki mesaj panosu için yanlýþ ayar yapmýþ olabilir."); ! $faq[] = array("Neden kayýt olmam gerekiyor?", "Kayýt olmanýza gerek olmayabilirdi aslýnda. Mesaj gönderebilmek için kaydýn þart olmasý, pano yöneticisinin (administator) kararýna baðlý. Ayrýca kayýt olunca bazý özel imkanlara ulaþabilirsiniz. Örneðin mesajlarýnýzýn yanýnda kedinize ait küçük bir resim (avatar) gösterme, özel mesaj gönderme, tanýdýðýnýz kullanýcýlara mail gönderme veya kullanýcý gruplarýna katýlma imkanlarýna misafir kullanýcýlar sahip deðildir. Kayýt iþlemi çok basit olduðu için kaydolmanýz önerilir."); ! $faq[] = array("Neden otomatik olarak çýkýþým yapýlýyor?", "Giriþ sayfasýnda gördüðünüz <i>Her zaman otomatik giriþ yap</i> komutunu seçmediðiniz sürece, mesaj panosu sizi sadece belirli bir süre için giriþ yapmýþ kabul eder. Böylece kaydýnýzýn baþkalarý tarafýndan kullanýlmasý önlenir. Giriþinizin devamlý kalmasý için, bu komutu seçmeniz yeterlidir. Fakat baþka þahýslarýnda kullandýðý (örn. herhangi bir kütüphaneye, internet cafeye, üniversiteye vs. ait) bir bilgisayardan giriþ yapýyorsanýz, bu komutu seçmemeniz önerilir."); ! $faq[] = array("Kimler Online listesinde ismimin görülmesini nasýl önleyebilirim?", "Þahsýnýza ait profil sayfasýnda <i>Online olduðumu gizle</i> seçeneðini bulabilirsiniz. Buradan <i>Evet</i> 'i seçince online olduðunuzu sadece pano yöneticileri ve kendiniz görebilirsiniz. Bu durumda gizli kullanýcý olarak sayýlýrsýnýz."); ! $faq[] = array("Þifremi unuttum!", "Telaþa kapýlmayýn! Eski þifrenizi öðrenmek mümkün olmasa bile, yerine deðiþik bir þifre alabilirsiniz. Giriþ sayfasýný açýp <u>Þifremi unuttum</u> üzerini týklayýn ve tarif edilen iþlemleri uygulayýn. Kýsa sürede tekrar online olduðunuzu göreceksiniz."); ! $faq[] = array("Kayýt oldum ama giriþ yapamýyorum!", "Ýlk önce kullanýcý adýnýzý ve þifrenizi doðru yazdýðýnýzý temin edin. Doðru yazýlmýþsa, iki sebep daha olabilir. Eðer COPPA destekleniyorsa ve kaydýnýz esnasýnda <u>13 yaþýndan küçüðüm</u> linkini týkladýysanýz, tarif edilen iþlemleri uygulamanýz gerek. Sebep bu deðilse, kaydýnýzýn onaylanmasý gerekebilir. Bazý mesaj panolarý tüm yeni kayýtlarýn onaylanmasýný þart koþar. Giriþ yapabilmeniz için ya kendiniz yada pano yöneticisi tarafýndan kaydýnýz onaylanmalýdýr. Bu durumda onay gerekçesi, kaydýnýz esnasýnda size bildirilmiþ olmalý. Bu doðrultuda bir e-mail aldýysanýz, tarif edilen iþlemleri uygulamanýz gerek. Eðer böyle bir e-mail almadýysanýz, verdiðiniz e-mail adresinin doðru olup olmadýðýný kontrol edin. Onay gerekçesinin sebebi, <i>kötü amaçlý</i> kullanýcýlarýn anonim kalýp mesaj panosunu suiistimal etmelerini önlemektir. Verdiðiniz e-mail adresinin doðru olduðundan eminseniz, pano yöneticisiyle irtibata geçmeniz gerekir."); ! $faq[] = array("Daha önceleri kayýtlýydým ama artýk giriþ yapamýyorum?!", "Bunun en olasý sebebi hatalý kullanýcý adý veya þifre giriþidir (kayýt olduktan sonra aldýðýnýz e-maile bakýp kontrol edin). Belkide pano yöneticisi kaydýnýzý herhangi bir sebepten dolayý silmiþ olabilir. Panoya hiç mesaj gönderdinizmi? Veritabanýnýn kapladýðý alaný küçük tutmak için, mesaj göndermeyen kullanýcýlarýn kaydý genelde belirli bir süre sonra silinir. Tekrar kaydolmayý deneyin ve tartýþmalara katýlýn."); ! ! $faq[] = array("--","Kullanýcý Seçenekleri ve Ayarlarý"); ! $faq[] = array("Kullanýcý ayarlarýmý nasýl deðiþtirebilirim?", "Eðer kaydolduysanýz bütün ayarlarýnýz veritabanýna kaydedilir. Ayarlarýnýzý deðiþtirmek için (genelde sayfalarýn üst kýsmýnda bulunan) <u>Profil</u> linkini týklayýn. Ayarlarýnýz buradan deðiþtirilir."); ! $faq[] = array("Gösterilen saatler yanlýþ!", "Gösterilen saatler büyük bir ihtimalle doðrudur. Fakat gördüðünüz saat, bulunduðunuz yerin saat diliminden farklý olabilir. Bu durumda, <u>Profil</u> linkini týklayýp kendiniz için geçerli saat dilimini seçmeniz gerekir, örn. London, Paris, New York, Sydney vs. Çoðu seçenekler için geçerli olduðu gibi, saat dilimini deðiþtirme imkanýda sadece kayýtlý kullanýcýlara verilmiþtir. Eðer kayýtlý deðilseniz, kaydolmanýn tam zamaný (kelime oyununu baðýþlayýn)!"); ! $faq[] = array("Deðiþik bir zaman dilimi seçtim ama saatler hala yanlýþ!", "Doðru zaman dilimini seçtiðinizden eminseniz ve saat hala yanlýþ gösteriliyorsa, bunun en olasý sebebi günýþýðýndan yararlanma deðiþimleri olabilir. Örn. yaz aylarýnda görülen saatler, bulunduðunuz ülkenin gerçek saatinden bir saat ileri veya geri olabilir. Mesaj panosu bu deðiþimleri dikkate almaz."); ! $faq[] = array("Konuþtuðum lisan listede yok!", "Bunun en olasý sebepleri, ya pano yöneticisinin konuþtuðunuz lisaný destekleyen uzantýyý kurmuþ olmayýþý, yada bu panonun konuþtuðunuz lisana henüz çevrilmiþ olmayýþýdýr. Pano yöneticilerine baþvurup, kendi lisanýnýzý destekleyen uzantýyý kurmalarýný rica edin. Eðer böyle bir uzantý yoksa, panoyu kendi dilinize çevirmekte özgürsünüz. Bu konuda daha geniþ bilgi için sayfalarýn alt kýsmýnda görülen phpBB Group linkini týklayýn."); ! $faq[] = array("Ýsmimin altýnda resim (avatar) göstermek için ne yapmalýyým?", "Mesajlarýn görüntülendiði sayfalarda kullanýcý adlarýnýn altýnda iki tür resim görebilirsiniz. Birincisi, kullanýcý derecenizi gösterir ve genelde gönderdiðiniz mesaj sayýsýna baðlý olarak belirli bir sayýda yýldýz veya kare þeklindedir. Bunun altýnda avatar denen biraz daha büyük bir resim görebilirsiniz. Bu resim genelde kullanýcýya ait ve özeldir. Avatar kullanma imkanýný pano yöneticisi saptar. Ayrýca avatar'larýn ne þekilde kullanýlabileceðinide saptar. Avatar kullanamýyorsanýz, pano yöneticisine baþvurup bu imkaný ne sebepten iptal ettiðini öðrenebilirsiniz (bunun önemli bir sebebi olduðundan eminiz!)"); ! $faq[] = array("Kullanýcý derecemi nasýl deðiþtirebilirim?", "Genelde kullanýcý derecenizi doðrudan deðiþtirmeniz mümkün deðil (kullanýcý derecesi, gönderdiðiniz mesajýn yanýnda bulunan isminizin altýnda ve kullanýcý profili sayfasýnda görülür). Çoðu mesaj panosunda kullanýcý dereceleri, gönderilen mesajlarýn sayýsýný veya yetkili üyeleri belirlemek için kullanýlýr, örn. yöneticiler veya pano yöneticileri özel bir dereceye sahip olabilir. Lütfen gereksiz yere mesaj gönderipte derecenizi yükseltmeye çalýþmayýn, elde edeceðiniz tek sonuç, yöneticilerin mesajlarýnýzýn sayýsýný düþürmesi olacaktýr."); ! $faq[] = array("Bir kullanýcýnýn mail linkini týklayýnca giriþ yapmam isteniyor?", "Panoya ait e-mail formuyla maalesef sadece kayýtlý kullanýcýlar mail gönderebiliyor (ayrýca yöneticinin bu iþlevi çalýþtýrmasý gerek). Bunun sebebi, e-mail sisteminin anonim kullanýcýlar tarafýndan suiistimal edilmesini önlemektir."); ! ! $faq[] = array("--","Mesaj Gönderme"); ! $faq[] = array("Foruma yeni baþlýk nasýl gönderilir?", "Çok basit: forumu veya baþlýðý görüntüleme sayfasýnda <i>Yeni Baþlýk Gönder</i> düðmesini týklayýn. Yeni mesaj göndermeden önce kayýt olmanýz gerekebilir. Forum ve baþlýk sayfalarýnýn alt kýsmýnda yapabileceðiniz bütün iþlemlerin listesini görebilirsiniz (örn. <i>Bu forumda yeni konular açabilirsiniz</i> vs. gibi)."); ! $faq[] = array("Mesajlar nasýl deðiþtirilir veya silinir?", "Pano yöneticisi veya forum yöneticisi olmadýðýnýz sürece, sadece kendinize ait mesajlarý deðiþtirebilir veya silebilirsiniz. Gönderdiðiniz bir mesajý <i>Mesajý Deðiþtir</i> düðmesini týklayarak deðiþtirebilirsiniz (bu imkan bazen sadece belirli bir süre için mevcuttur). Mesajýnýza birileri cevap göndermiþse eðer, mesajýnýzýn altýnda metni kaç defa deðiþtirdiðinizi gösteren kýsa bir yazý göreceksiniz. Mesajýnýz henüz yanýtlanmamýþsa, bu not görülmez. Ayrýca mesajýnýz pano yöneticileri veya forum yöneticileri tarafýndan deðiþtirilincede bu yazý görülmez (yöneticilerin böyle bir durumda metnin hangi kýsmýný ne sebepten dolayý deðiþtirdiklerini yazmalarý önerilir). Bir mesaja cevap geldikten sonra normal kullanýcýlar tarafýndan silinemez."); ! $faq[] = array("Mesaj altýna imza nasýl eklenir?", "Herhangi bir mesaja imzanýzý ekleyebilmek için önce <i>Profil</i> sayfanýza girip bir imza hazýrlamanýz gerek. Daha sonra mesaj gönderme formunun alt kýsmýndaki <i>Ýmzamý ekle</i> seçeneðini seçip mesajýnýza imzanýzý ekleyebilirsiniz. Gönderdiðiniz bütün mesajlara genel bir ayar olarak imzanýzýn eklenmesini istiyorsanýz, <i>Profil</i> sayfasýndaki seçeneði týklayýn. Buna raðmen dilediðiniz her mesaj için imzanýzýn eklenmesini önleyebilirsiniz (mesaj gönderme formunda <i>Ýmzamý Ekle</i> seçeneðini silmeniz yeterli)."); ! $faq[] = array("Anket nasýl hazýrlanýr?", "Anket hazýrlamak çok basit: yeni bir baþlýk gönderirken (veya bir baþlýðýn ilk mesajýný deðiþtirirken - bu tabi yetkinize baðlý), mesaj gönderme formunun altýnda <i>Anket Ekle</i> formunu göreceksiniz (böyle bir formu göremiyorsanýz, anket ekleme yetkiniz yok demektir). Anket sorusunu ve en az iki tane anket þýkký eklemeniz gerekir. Anket þýkký eklemek için <i>Bu Þýkký Ekle</i> düðmesini týklayýn. Ayrýca anketin gösterim süresinide belirleyebilirsiniz, 0 süresiz demektir. Eklenebilecek anket þýklarýnýn sayýsý sýnýrlýdýr. Bu sýnýrý pano yöneticisi belirler."); ! $faq[] = array("Bir anket nasýl deðiþtirilir veya silinir?", "Anketlerde mesajlar gibi sadece gönderen kullanýcý, forum yöneticisi veya pano yöneticisi tarafýndan deðiþtirilebilir. Bir anketi deðiþtirmek için, baþlýðýn ilk mesajýný týklayýn (ilgili anket daima bu mesaja baðlýdýr). Ankete henüz katýlan olmadýysa, hazýrlayan kullanýcý tarafýndan deðiþtirilebilir veya silinebilir. Ankete katýlan olmuþsa, sadece forum ve pano yöneticileri tarafýndan deðiþtirilebilir veya silinebilir. Böylece bir süre sonra þýklarý deðiþtirip anket sonuçlarýný sapýtma olanaðý kalmaz."); ! $faq[] = array("Anketlere neden katýlamýyorum?", "Anketlere sadece kayýtlý kullanýcýlar katýlabilir (böylece hile yapma olanaðý önlenmiþ olur). Eðer kayýt olmanýza raðmen anketlere katýlamýyorsanýz, gerekli yetkilere sahip deðilsiniz demektir."); ! $faq[] = array("Bazý forumlara neden ulaþamýyorum?", "Bazý forumlar sadece belirli kullanýcýlara veya kullanýcý gruplarýna açýk olabilir. Mesajlarý okumak, görüntülemek, göndermek için vs. özel yetki gerekebilir. Bu yetkiyi sadece ilgili forum yöneticisi veya pano yöneticisi verebilir, bu kiþilere baþvurmalýsýnýz."); ! ! $faq[] = array("--","Biçimlendirme ve Baþlýk Tipleri"); ! $faq[] = array("BBCode nedir?", "BBCode HTML'in özel bir uygulamasýdýr. Forum'a yazdýðýnýz mesajlarda BBCode kullanabilme imkanýný pano yöneticisi saptar. Ayrýca mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda BBCode'ý iptal etmeniz mümkündür. BBCode, HTML'e benzer tarzdadýr fakat tag'ler < ve > yerine köþeli parantez içine alýnýr: [ ve ]. Ayrýca nelerin nasýl görüntülendiði daha iyi kontrol edilebilir. BBCode hakkýnda daha geniþ bilgiler için, mesaj gönderme sayfasýndan ulaþabileceðiniz rehbere bakýnýz."); ! $faq[] = array("HTML kullanabilir miyim?", "Pano yöneticisinin müsaade vermesine baðlýdýr, ilgili ayarlarýn tümünü o kontrol eder. Eðer müsaade verilmiþse, büyük ihtimalle sadece bazý tag'lerin çalýþtýðýný göreceksiniz. Böyle olmasý <i>güvenlik</i> içindir. Amaç, pano görüntüsünün bozulmasýný veya daha deðiþik sorunlarýn meydana gelmesini önlemektir. Müsaade verilmiþ olsa bile, mesaj gönderme formundaki seçenekler sayesinde dilediðiniz mesajlarda HTML'i iptal etmeniz mümkündür."); ! $faq[] = array("Smiley nedir?", "Smiley veya Emoticon, belirli duygu ifadelerini vermek için kullanýlan iþaretlerdir. Metinde küçük resimler halinde görüntülenir. Örn. :) mutlu, :( ise üzgün anlamýndadýr. Kullanabileceðiniz smileylerin listesini mesaj gönderme formunda görebilirsiniz. Smileyleri aþýrý derecede kullanmamaya özen gösterin, metin yoksa okunmaz hale gelebilir. Bu durumda yönetici smileyleri veya mesajýnýzý tamamýyla silmeye karar verebilir."); ! $faq[] = array("Resim gönderebilir miyim?", "Gönderdiðiniz mesajla beraber resimde görüntülenebilir. Fakat þu anda panoya doðrudan resim göndermek mümkün deðildir. Bu yüzden umuma açýk bir web serverinde kayýtlý bir resme link vermeniz gerek, örn. http://www.umuma-acik-server.net/resim.gif. Kendi bilgisayarýnýzda bulunan bir resme link vermeniz mümkün deðil (bilgisayarýnýz umuma açýk bir web serveri olmadýðý sürece). Ayrýca, umuma açýk olmayan ve sadece þifreyle ulaþýlan resimlere link vermek mümkün deðildir (örn. hotmail veya yahoo mailboxlarýnda vs. kayýtlý resimler). Resim görüntülemek için, BBCode'ýn [img] tag'ini yada (müsaade verilmiþse) HTML kullanabilirsiniz."); ! $faq[] = array("Duyuru nedir?", "Duyurular çoðu zaman önemli bilgileri içerir, en kýsa zamanda okumanýzý öneririz. Duyurular, ilgili forumun her sayfasýnýn baþýnda görülür. Duyuru gönderebilmeniz için bu yetkiye sahip olmanýz gerek. Yetkilerinizi ise pano yöneticisi saptar."); ! $faq[] = array("Sabit baþlýklar nedir?", "Sabit baþlýklar, ilgili forumun ilk sayfasýnda, duyurularýn hemen altýnda görülür. Çoðu zaman önemli bilgileri içerirler, mümkünse okumanýzý öneririz. Duyurular için geçerli olduðu gibi, herhangi bir foruma sabit baþlýk göndermek için gereken yetkileri pano yöneticisi saptar."); ! $faq[] = array("Kilitli baþlýklar nedir?", "Bu baþlýklarý forum yöneticisi veya pano yöneticisi kilitler. Kilitli baþlýklarý yanýtlamak mümkün deðildir, içerdikleri anketler otomatik olarak sona erir. Baþlýklar birçok nedenlerden dolayý kilitlenmiþ olabilir."); ! ! $faq[] = array("--","Kullanýcý Seviyeleri ve Gruplarý"); ! $faq[] = array("Pano yöneticileri (administrator) nedir?", "Pano yöneticileri, panonun her bölümünde en çok yetkiye sahip olan þahýslardýr. Bu kiþiler, panonun hertürlü iþlevini kontrol edebilir: müsaade verme, yetkilendirme, kullanýcý banlama, kullanýcý gruplarý yaratma, forum yöneticisi (moderator) yetkilerini verme vs. Ayrýca bütün forumlarda forum yöneticisi (moderator) yetkiler... [truncated message content] |