111
script_fu
Re: Site slow? Using news module? Read this!

Thanks for the post. I will be on the lookout for this. I always use the news module on all my sites. I hope this will make it better for my server.



112
script_fu
Re: How to search inside each module's file for text? I found a php.reg that worked for php files.

Thanks for the tip! I found another program called Windows Grep it didn't find the color im looking for in my theme or pical.

Im kinda lost on this one.

I wonder if my color program is correct. I have used color cop for a very long time. It has been right since I started using it. I use to use pixie for finding colors but pixie lied sometimes about the correct colors.

Anyway any other suggestions for color programs? Also some more software that will search thru XOOPS code quickly would be awesome.



113
script_fu
Re: How to search inside each module's file for text? I found a php.reg that worked for php files.

Modifying Windows Search

Im crossing my fingers on this one...



114
script_fu
How to search inside each module's file for text? I found a php.reg that worked for php files.

I have been trying to figure out how to search for text or code inside different files like .php .css .html & .tpl in an fast manner.

I needed to change some words in a module. I hate looking through all the files so Im looking for a better way to do this.

I found this little baby...

http://www.thecodenet.com/articles.php?id=93

And it worked perfect for .php files using windows search.

I installed it and restarted my xp pro machine and then set up windows search on the XOOPS module. It found the words I was looking for in 2 seconds.

Anyway im looking for a way to search inside all XOOPS files at once.

Do you know of others ways to do this. Right now Im having a problem finding a color inside GiJoes pical. When you go to post an event the java script calendar pops up and is set to #999999. We can't see the darn thing to set the date.

I cannot find the color to save my life.



115
script_fu
Re: News 1.55 and Spotlight

I have this notice from php debug

NoticeUndefined variableoption in file /modules/xmspotlight/blocks/xmspotlight_block_news.php line 25


xoops 2.0.18
php 5.2.4



116
script_fu
Re: What else is wrong with 2.0.18? When is the patch going to be ready? Issues Issues...

Thanks Maka!

The php.ini worked on the surpass hosting account.



117
script_fu
Re: When is the 2.0.18 patch going to be ready? Issues Issues...

Another blank page... I cannot click on any user. Say admin posts a story. I click the link to admins profile I get a blank page.

Here is an error that XOOPS spit out after not giving any clues all day.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 122880 bytes) in
/home/mysite/public_html/class/smarty/Smarty_Compiler.class.php on line 1808

I am building a new site for a client on surpasshosting.com

Fresh install of XOOPS 2.0.18
Apache version 1.3.39 (Unix)
PHP version 5.2.5
MySQL version 5.0.45-community

news 1.56
pical 0.91
contact 1.6
extgallery 1.03
spotlight 1.02



118
script_fu
Re: piCal-0.9 blank white page when news-1.56 is active???

A little resolution for anyone else that might run across this. I had php debug in inline mode looking for errors as I always do when building a new site.

Once I turned off php debug piCal started to work again. I haven't added any data yet just cats. So if I find any other issues I'll post back...



119
script_fu
Re: What else is wrong with 2.0.18? When is the patch going to be ready? Issues Issues...

Quote:

qcorek wrote:
and u really count on some support here :)?


Huh? lol...
It was a post to get the ball rolling for 2.0.18.1rc nothing more or less.

As far as support goes I have given my share here thats foresure.

----------



After I did those three above... I was still having problems anyway to make a long story short. Once I turned off php debug piCal started showing again...


So im back on track for this new customer site...

I'll post if I find anything else. This is the first live site I have done with 2.0.18 its like any other release it has its lil qcorek's...



120
script_fu
Re: When is the 2.0.18 patch going to be ready? Issues Issues...

login issues

Does this file need replaced?

kernel/session.php

with this

<?php
// $Id: session.php 1083 2007-10-16 16:42:51Z phppp $
//  ------------------------------------------------------------------------ //
//                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;
    
    
/**
     * Security checking level
     *
     * Possible value: 
     *    0 - no check;
     *    1 - check browser characteristics (HTTP_USER_AGENT/HTTP_ACCEPT_LANGUAGE), to be implemented in the future now;
     *    2 - check browser and IP A.B;
     *    3 - check browser and IP A.B.C, recommended;
     *    4 - check browser and IP A.B.C.D;
     * 
     * @var    int
     * @access    public
     */
    
var $securityLevel 3;
    
    
/**
     * Enable regenerate_id
     *
     * @var    bool
     * @access    public
     */
    
var $enableRegenerateId false;
    
    
/**
     * Constructor
     * 
     * @param object $db reference to the {@link XoopsDatabase} object
     * 
     */
    
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()
    {
        
$this->gc_force();
        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 sprintf('SELECT sess_data, sess_ip FROM %s WHERE sess_id = %s'$this->db->prefix('session'), $this->db->quoteString($sess_id));
        if (
false != $result $this->db->query($sql)) {
            if (list(
$sess_data$sess_ip) = $this->db->fetchRow($result)) {
                if (
$this->securityLevel 1) {
                    
$pos strpos($sess_ip"."$this->securityLevel 1);
                    if (
strncmp($sess_ip$_SERVER['REMOTE_ADDR'], $pos)) {
                        
$sess_data '';
                    }
                }
                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)
    {
        
$sess_id $this->db->quoteString($sess_id);
        
$sql sprintf('UPDATE %s SET sess_updated = %u, sess_data = %s WHERE sess_id = %s'$this->db->prefix('session'), time(), $this->db->quoteString($sess_data), $sess_id);
        
$this->db->queryF($sql);
        if (!
$this->db->getAffectedRows()) {
            
$sql sprintf('INSERT INTO %s (sess_id, sess_updated, sess_ip, sess_data) VALUES (%s, %u, %s, %s)'$this->db->prefix('session'), $sess_idtime(), $this->db->quoteString($_SERVER['REMOTE_ADDR']), $this->db->quoteString($sess_data));
            return 
$this->db->queryF($sql);
        }
        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'), $this->db->quoteString($sess_id));
        if ( !
$result $this->db->queryF($sql) ) {
            return 
false;
        }
        return 
true;
    }

    
/**
     * Garbage Collector
     * 
     * @param   int $expire Time in seconds until a session expires
     * @return  bool
     **/
    
function gc($expire)
    {
        if (empty(
$expire)) {
            return 
true;
        }
        
        
$mintime time() - intval($expire);
        
$sql sprintf('DELETE FROM %s WHERE sess_updated < %u'$this->db->prefix('session'), $mintime);
        return 
$this->db->queryF($sql);
    }
    
    
/**
     * Force gc for situations where gc is registered but not executed
     **/
    
function gc_force()
    {
        if (
rand(1100) < 11) {
            
$expiration = empty($GLOBALS["xoopsConfig"]["session_expire"]) ? @ini_get('session.gc_maxlifetime') : $GLOBALS["xoopsConfig"]["session_expire"] * 60;
            
$this->gc($expiration);
        }
    }
    
    
/**
     * Update the current session id with a newly generated one
     *
     * To be refactored 
     * 
     * @param   bool $delete_old_session
     * @return  bool
     **/
    
function regenerate_id($delete_old_session false)
    {
        if (!
$this->enableRegenerateId) {
            return 
true;
        }
        
        
$phpversion phpversion();
        
        
// parameter "delete_old_session" only available as of PHP 5.1.0
        
if (version_compare($phpversion"5.1.0"">=")) {
             
$success session_regenerate_id($delete_old_session);
        } else {
            
$old_session_id session_id();
            
// session_regenerate_id function available as of PHP 4.3.2
            
if (function_exists("session_regenerate_id")) {
                
$success session_regenerate_id();
                if (
$success && $delete_old_session) {
                    
// Extra step to destroy old session
                    
$this->destroy($old_session_id);
                }
            
// For PHP prior to 4.3.2
            
} else {
                
// session_regenerate_id is not defined, create new session ID
                
$session_id md5uniqid(rand(), true) . @$_SERVER['HTTP_USER_AGENT'] );
                
// Set the new session ID
                
session_id($session_id);
                
// Destory old session on request
                
if ($delete_old_session) {
                    
$this->destroy($old_session_id);
                
// switch old session to new one
                
} else {
                    
$sql sprintf('UPDATE %s SET sess_id = %s WHERE sess_id = %s'$this->db->prefix('session'), $this->db->quoteString($session_id), $this->db->quoteString($old_session_id));
                    
$this->db->queryF($sql);
                }
                
$success true;
            }
        }
        
        
// Force updating cookie for session cookie is not issued correctly in some IE versions or not automatically issued prior to PHP 4.3.3 for all browsers 
        
if ($success) {
            
$this->update_cookie();
        }
        
        return 
$success;
    }
    
    
/**
     * Update cookie status for current session
     *
     * To be refactored 
     * FIXME: how about $xoopsConfig['use_ssl'] is enabled?
     * 
     * @param   string  $sess_id    session ID
     * @param   int     $expire     Time in seconds until a session expires
     * @return  bool
     **/
    
function update_cookie($sess_id null$expire null)
    {
        global 
$xoopsConfig;
        
$session_name = ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_name'] : session_name();
        
$session_expire = !is_null($expire) ? intval($expire) : ( ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_expire'] * 60 ini_get("session.cookie_lifetime") );
        
$session_id = empty($sess_id) ? session_id() : $sess_id;
        
setcookie($session_name$session_id$session_expire time() + $session_expire 0'/',  ''0);
    }
}
?>




TopTop
« 1 ... 9 10 11 (12) 13 14 15 ... 133 »



Login

Who's Online

151 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

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

Latest GitHub Commits