[pLog-svn] r2999 - plog/trunk
Mark Wu
markplace at gmail.com
Thu Mar 2 07:27:04 GMT 2006
Hi Oscar:
Kindly take a look at /class/view/admin/admineditsiteblogview.class.php
We store the editBlogInfo into session when we fetch it, and if something
wrong, we can get the editBlogInfo back from session.
The problem is the code works well in php4, but not php5 ...
So, I have to add the templatesets calss before we start the sesson :(
** Without that inlcude, the code can not work in php5 ... :(
I really hate php5, it seems they break a lot of back compatability
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> Oscar Renalias
> Sent: Thursday, March 02, 2006 3:20 PM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r2999 - plog/trunk
>
> why is the TemplateSet class needed at all for the session?
> Do we store anything related to that in it?
>
> Oscar
>
> On 3/2/06, mark at devel.lifetype.net <mark at devel.lifetype.net> wrote:
> > Author: mark
> > Date: 2006-03-02 02:49:02 +0000 (Thu, 02 Mar 2006) New
> Revision: 2999
> >
> > Modified:
> > plog/trunk/admin.php
> > Log:
> > I know, it's stupid. But I have to add
> templatesets.class.php to admin to avoid
> php_incomplete_object(class) problem in PHP5.
> >
> > It is becasue PHP5 need to delcare the class deifintion
> before the session_start().
> >
> > To avoid this problem, we need to change our session
> implementation I think.
> >
> > More detail idea, please reference to the comments in this
> page: http://nl2.php.net/__autoload by "shurikk at gmail dot com"
> >
> >
> > Modified: plog/trunk/admin.php
> > ===================================================================
> > --- plog/trunk/admin.php 2006-03-01 23:24:28 UTC (rev 2998)
> > +++ plog/trunk/admin.php 2006-03-02 02:49:02 UTC (rev 2999)
> > @@ -12,6 +12,7 @@
> > include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
> > include_once(
> PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
> > include_once( PLOG_CLASS_PATH."class/misc/info.class.php" );
> > + include_once(
> > +
> PLOG_CLASS_PATH.'class/template/templatesets/templatesets.class.php'
> > + );
> >
> > ini_set("arg_seperator.output", "&");
> > ini_set("magic_quotes_runtime", 0 );
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list