Ну дак это заголовок http, а не XML. Так ведь?
Так! Виноват, искренне раскаиваюсь в содеянном, а также во всем том, чего не успел совершить по недостатку ума и времени.
Ну дак это заголовок http, а не XML. Так ведь?
//
// END Includes of phpBB scripts
//$nonascii=array();
for($i=0;$i<32;$i++)$nonascii[chr($i)]="";'POST_TEXT' => htmlspecialchars($message),'POST_TEXT' => htmlspecialchars(strtr($message,$nonascii)),Закрытые (приватные форумы) без авторизации в агрегаторе человек не сможет получать по RSS?
//
// BEGIN Configuration. Change values
////
//*** DON't MODIFY CODE BELOW ****************
//// Copyright (c) 2004-2005, Egor Naklonyaeff // Config Page generation method<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</IfModule>[hide:79a236ebcd] текст сообщения в форуме [/hide:79a236ebcd]

Понимаю, что это не стандартный тэг, но всё же...
MOD Database
Manager писал(а):-------------------------------------------------------------------------------------
This PM is automatically generated. Please do not reply.
-------------------------------------------------------------------------------------
Hello,
As you may know, all MODs submitted to the phpBB MOD Database must be validated and approved by members of the phpBB Team.
Upon validating your MOD, the phpBB MOD Team regrets to inform you that we have had to deny your MOD.
To correct the problem(s) with your MOD, please following the below instructions:Please ensure you tested your MOD on the latest version of phpBB (see the Downloads page) before you reupload your MOD.
- Make the necessary changes to correct any problems (listed below) that resulted in your MOD being denied.
- Increase your version number. (See Knowledge Base Article 43 for help.)
- Change the filename. (For example, my_mod_1.0.0.zip would become my_mod_1.0.1.zip.)
- Re-upload your MOD into our MOD Database.
Before you resubmit your MOD, please check your MOD Syntax via our MOD Syntax Validator to ensure your MOD is using the correct MOD Template Syntax.
Here is a report on why your MOD was denied:
-------------------------------------------------------------------------------------
Instead of using header to redirect, you needs to use phpBB's redirect function.
Short var ($_SERVER) is not acceptable.
- Код: Выделить всё
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
htmlspecialchars() on $HTTP_SERVER_VARS['QUERY_STRING']
- Код: Выделить всё
header('Location: ' .$index_url."rss.".$phpEx."?".$HTTP_SERVER_VARS['QUERY_STRING'].'&login');
One of the addon has russian changed inside the main MOD. Because of the new guideline, you need to put non-english changes into a separate file. Please read: http://www.phpbb.com/phpBB/viewtopic.php?t=160827
- Код: Выделить всё
#
#-----[ OPEN ]-------------------------------------------------------
#
language/lang_russian/lang_main.php
#
#-----[ FIND ]----------------------------------------
#
$lang['Viewing_FAQ'] = 'Viewing FAQ';
#
#-----[ AFTER, ADD ]----------------------------------
#
$lang['Viewing_RSS'] = 'RSS feed'; // RSS Feed Mod
~Mac
-------------------------------------------------------------------------------------
Please refer to the following links before you reupload your MOD:For further reading, you may want to review the following:
- phpBB MOD Template
- phpBB MOD Template "Tutorial"
- MOD Template - MOD Author Syntax
- MOD Version Numbering System
- MOD Syntax Validator
- How to Validate a MOD
- Securing MODs
- Security Checks and Security Score
- Insta-Deny™ Checklist
- MODifications FAQ
- phpBB2 Templating Syntax
- Enable phpBB2 SQL Debug Mode
- phpBB Template Tutorial
- PAGE_ Constants Reservation
- BBCode MOD Standardization
- BBCode Reservation List
- Coding Standards
- Coding Guidelines
- MODifications Category in Knowledge Base
For help with writing phpBB MODs, the following resources exists:
- Forum for MOD Authors' Help
- IRC Support - #phpBBMOD is registered on the FreeNode IRC network (irc.freenode.net)
Should you have any questions, please contact us at: mod-team@phpbb.com
If you feel this denial was not warranted, you can contact the MOD Team Leader, wGEric.
Thank You,
phpBB MOD Team
-------------------------------------------------------------------------------------
If you wish to discuss anything in this PM please contact: ycl6
-------------------------------------------------------------------------------------
Instead of using header to redirect, you needs to use phpBB's redirect function.
Short var ($_SERVER) is not acceptable.
- Код: Выделить всё
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
$phpver = phpversion();
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
htmlspecialchars() on $HTTP_SERVER_VARS['QUERY_STRING']
- Код: Выделить всё
header('Location: ' .$index_url."rss.".$phpEx."?".$HTTP_SERVER_VARS['QUERY_STRING'].'&login');
One of the addon has russian changed inside the main MOD. Because of the new guideline, you need to put non-english changes into a separate file. Please read: http://www.phpbb.com/phpBB/viewtopic.php?t=160827
Мод отличный - давно пора его зарелизить в мировом масштабе
ycl6 писал(а):Hi
I've consulted with our team leader wGEric about the header redirection issue.
- Код: Выделить всё
header('Location: ' .$index_url."rss.".$phpEx."?".$HTTP_SERVER_VARS['QUERY_STRING'].'&login');
ExitWithHeader("301 Moved Permanently");With the above, I don't get it why he is redirecting when he doesn't need to. Just see if they are logged in near the top of the script. There is no need to redirect to the same page but with a varaible added to the url.
I hope you understand this.
login.php may offer you an example how redirect can be done, and also use str_replace together with htmlspecialchars to secure your variable.
- Код: Выделить всё
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
redirect(append_sid($url, true));
~Mac
function rss_get_user()
{
global $db, $HTTP_SERVER_VARS, $HTTP_GET_VARS,$useragent;
if((!isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) || !isset($HTTP_SERVER_VARS['PHP_AUTH_PW']))
&& isset($HTTP_SERVER_VARS['REMOTE_USER']) && preg_match('/Basic\s+(.*)$/i', $HTTP_SERVER_VARS['REMOTE_USER'], $matches)) {
list($name, $password) = explode(':', base64_decode($matches[1]), 2);
$HTTP_SERVER_VARS['PHP_AUTH_USER'] = strip_tags($name);
$HTTP_SERVER_VARS['PHP_AUTH_PW'] = strip_tags($password);
}
if (isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
if((function_exists("iconv")) && (strpos($useragent,'Opera')!==false))
{
$HTTP_SERVER_VARS['PHP_AUTH_USER']=iconv("utf-8","windows-1251",$HTTP_SERVER_VARS['PHP_AUTH_USER']);
$HTTP_SERVER_VARS['PHP_AUTH_PW']=iconv("utf-8","windows-1251",$HTTP_SERVER_VARS['PHP_AUTH_PW']);
}
$username=(function_exists("phpbb_clean_username"))? phpbb_clean_username($HTTP_SERVER_VARS['PHP_AUTH_USER']):$HTTP_SERVER_VARS['PHP_AUTH_USER'];
$password=md5($HTTP_SERVER_VARS['PHP_AUTH_PW']);
if(isset($HTTP_GET_VARS['uid'])){
$uid=intval($HTTP_GET_VARS['uid']);
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = $uid";
}
else
$sql = "SELECT user_id, username, user_password, user_active, user_level
FROM " . USERS_TABLE . "
WHERE username = '" . str_replace("\\'", "''", $username) . "'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql);
}
if( $row = $db->sql_fetchrow($result) )
{
if( $password == $row['user_password'] && $row['user_active'] )
{
// Yes!!! It's good user
return $row['user_id'];
}
else GetHTTPPasswd();
}
}
else GetHTTPPasswd();
return ANONYMOUS;
}
Вернуться в Анонсы и поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0