31
mondarse
Re: Flash Banner?
  • 2004/3/10 16:32

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Quote:

Stewdio wrote:
When I use flash banners that I have created, I use the the html option and code in the flash banner.


Does this method increment click's counter?.

Please if so, post any example from yours.

Thanks.



32
mondarse
Re: Session Bug Patch
  • 2004/3/2 7:28

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Thank you BPJones,
I'm not a php coder, so it is hard to me to find any bug, and I would be not very easy to find a new bug without making a new step by step search.

MonDarSE

(Sorry for my english )



33
mondarse
Re: HeadLine Bug with spanish language feed
  • 2003/12/16 8:08

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Hi,
I still have the same problem with rss.
I have tried all convinations of encondings. I also have tried from 4 different webservers, and I have instaled my
own local apache+php+mysql in my computer, with lastest versions, and I get always nothing.

I think that implemented rss has any "localization"
bug.

I have a question, iso-8859-1 encoding allows localized
characters, like á in spanish, or must use html enconding,
like & a a c u t e ; (without spaces)?

Please, developers or adv. users, try theese
news feed backs, and tell me if you get anything:

http://www.deportesoriano.com/backend.php
http://www.lajuve.org/backend.php

Thanks, Dario



34
mondarse
Re: Session Bug Patch
  • 2003/12/11 7:29

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Thank you very much!!!



35
mondarse
Re: Session Bug Patch
  • 2003/12/3 22:52

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Quote:

Just a suggestion about this hack... it would be better to use the admin-configured session-lifetime rather than a fixed value of 300 seconds.


Yes thats right. Please, post the code, I don't know much about XOOPS core and I'm completely new with php.

(It took me an hour to know that I must use "$this->gc()" and not "gc()")



36
mondarse
Re: Session Bug Patch
  • 2003/12/3 18:21

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Ok, I'm proud to be able to help XOOPS community.




37
mondarse
Session Bug Patch
  • 2003/12/3 10:40

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Hi, I have made myself a patch that solves the bug I have described earlier in this topic:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=14208&forum=21#forumpost57443

The patch only includes two new lines of code, that calls Garbage Colector function (included already) that clears session counter:
File: kernel\session.php
Lines Patched: #129 and #147
Code:
Quote:

<?php
// $Id: session.php,v 1.2 2003/03/12 21:02:08 okazu Exp $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <https://xoops.org/> //
// ------------------------------------------------------------------------ //
// 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. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// Author: Kazumi Ono (AKA onokazu) //
// URL:http://www.myweb.ne.jp/,https://xoops.org/,http://www.xoopscube.jp/ //
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
/**
* @package kernel
*
* @author Kazumi Ono <onokazu@xoops.org>
* @copyright copyright (c) 2000-2003 XOOPS.org
*/


/**
* Handler for a session
* @package kernel
*
* @author Kazumi Ono <onokazu@xoops.org>
* @copyright copyright (c) 2000-2003 XOOPS.org
*/
class XoopsSessionHandler
{

/**
* Database connection
*
* @var object
* @access private
*/
var $db;

/**
* Constructor
*
* @param object &$mf reference to a XoopsManagerFactory
*
*/
function XoopsSessionHandler(&$db)
{
$this->db =& $db;
}

/**
* Open a session
*
* @param string $save_path
* @param string $session_name
*
* @return bool
*/
function open($save_path, $session_name)
{
return true;
}

/**
* Close a session
*
* @return bool
*/
function close()
{
return true;
}

/**
* Read a session from the database
*
* @param string &sess_id ID of the session
*
* @return array Session data
*/
function read($sess_id)
{
$sql = "SELECT sess_data FROM ".$this->db->prefix('session')." WHERE sess_id = '$sess_id'";
if (false != $result = $this->db->query($sql)) {
if (list($sess_data) = $this->db->fetchRow($result)) {
return $sess_data;
}
}
return '';
}

/**
* Write a session to the database
*
* @param string $sess_id
* @param string $sess_data
*
* @return bool
**/
function write($sess_id, $sess_data)
{
global $HTTP_SERVER_VARS;
list($count) = $this->db->fetchRow($this->db->query("SELECT COUNT(*) FROM ".$this->db->prefix('session')." WHERE sess_id='".$sess_id."'"));
if ( $count > 0 ) {
$sql = sprintf("UPDATE %s SET sess_updated = %u, sess_data = '%s' WHERE sess_id = '%s'", $this->db->prefix('session'), time(), $sess_data, $sess_id);
} else {
$sql = sprintf("INSERT INTO %s (sess_id, sess_updated, sess_ip, sess_data) VALUES ('%s', %u, '%s', '%s')", $this->db->prefix('session'), $sess_id, time(), $HTTP_SERVER_VARS['REMOTE_ADDR'], $sess_data);
}
if (!$this->db->queryF($sql)) {
return false;
}
// MonDarse Hack//
$this->gc(300);
// MonDarse Hack//

return true;
}

/**
* Destroy a session
*
* @param string $sess_id
*
* @return bool
**/
function destroy($sess_id)
{
$sql = sprintf("DELETE FROM %s WHERE sess_id = '%s'", $this->db->prefix('session'), $sess_id);
if ( !$result = $this->db->queryF($sql) ) {
return false;
}
// MonDarse Hack//
$this->gc(300);
// MonDarse Hack//

return true;
}

/**
* Garbage Collector
*
* @param int $expire Time in seconds until a session expires
**/
function gc($expire)
{
$mintime = time() - intval($expire);
$sql = sprintf("DELETE FROM %s WHERE sess_updated < %u", $this->db->prefix('session'), $mintime);
$this->db->queryF($sql);
}
}
?>


I hope this would be usefull for others, or for the dev team



38
mondarse
Re: Is this the right place to post?
  • 2003/12/1 8:33

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1





39
mondarse
Re: Is this the right place to post?
  • 2003/12/1 8:32

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Thanks all you for your replays,
I thoght I was alone, but I have realised that I was wrong.



40
mondarse
Is this the right place to post?
  • 2003/12/1 7:36

  • mondarse

  • Just popping in

  • Posts: 96

  • Since: 2003/2/3 1


Hi again,
I have recently posted two bugs in this forum, but I haven't get any replay from any develeper or so, telling me that I was right o not, and if I have cached them, or if they are going to be solved in next version, or I there is any patch that solve it.

I'm not not criticizing any body, I only ask I this is the right place to post bugs, and if it is, if XOOPS develelopers are temporaly too busy, by example, finishing a new release or solving other more important bugs.

Yours sincerely,
MonDarSE




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

239 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits