projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manage remote address with socket_getpeername()
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
587acd8
..
c8a1599
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-220,7
+220,7
@@
function carousel_top()
return (sprintf('<a target="_blank" href="http://shop.alternativeoutput.it"><img class="nobo" style="display: inline; border: 1px solid #808080;" src="img/briskshop%d.gif"></a>', $rn));
}
return (sprintf('<a target="_blank" href="http://shop.alternativeoutput.it"><img class="nobo" style="display: inline; border: 1px solid #808080;" src="img/briskshop%d.gif"></a>', $rn));
}
-function index_main(&$room, &$header_out, $get, $post, $cookie)
+function index_main(&$room, &$header_out, $
addr, $
get, $post, $cookie)
{
GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all;
GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local;
{
GLOBAL $G_with_donors, $G_donors_cur, $G_donors_all;
GLOBAL $G_with_topbanner, $G_topbanner, $G_is_local;
@@
-287,7
+287,7
@@
function index_main(&$room, &$header_out, $get, $post, $cookie)
$room->garbage_manager(TRUE);
/* try login */
$room->garbage_manager(TRUE);
/* try login */
- if (($user = $room->add_user(&$sess, &$idx, $name, $pass_private, $
_SERVER['REMOTE_ADDR']
)) != FALSE) {
+ if (($user = $room->add_user(&$sess, &$idx, $name, $pass_private, $
addr
)) != FALSE) {
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;