Your ultimate PunBB resource!
You are not logged in.
hello everybody,
open include/functions.php
goto :
function check_cookie(&$pun_user)
find :
global $db, $pun_config, $cookie_name, $cookie_seed;
replace with :
global $db, $pun_config, $cookie_name, $cookie_seed, $tmplang;
after:
if (isset($_COOKIE[$cookie_name]))
list($cookie['user_id'], $cookie['password_hash']) = @unserialize($_COOKIE[$cookie_name]);paste :
if (isset($_GET['language']))
$tmplang = $_GET['language'] ;
elseif (isset($_COOKIE['language']))
$tmplang = $_COOKIE['language'];
else
$tmplang = "foo";find :
else
set_default_user();replace with :
else
{
set_default_user();
if (!@file_exists(PUN_ROOT.'lang/'.$pun_user['language']))
$pun_user['language'] = $pun_config['o_default_lang'];
setcookie('language', $pun_user['language'], $expire);
}goto :
function set_default_user()
find :
global $db, $pun_user, $pun_config;
replace with :
global $db, $pun_user, $pun_config, $tmplang;
find :
$pun_user['language'] = $pun_config['o_default_lang'];
replace with :
//$pun_user['language'] = $pun_config['o_default_lang'];
$pun_user['language'] = $tmplang;not releasing it as a mod because it is part of a mod i am making.
However, if you think this could cause security issues, please post reply.
Good day.
Last edited by agravetoncas (2006-05-30 07:25:41)
Offline
Is there a way to see a demo agravetoncas? I'm pretty interested ![]()
Offline
agravetoncas wrote:
However, if you think this could cause security issues, please post reply.
*replies* ![]()
Offline
Smartys wrote:
agravetoncas wrote:
However, if you think this could cause security issues, please post reply.
*replies*
please make an smart reply ![]()
demo can be found on leetnoob.info
Offline
Well, late bump, but allowing users to specify the path to an arbitrary PHP file on a server is a quite huge security flaw.
Offline