From: Bharat M. <bh...@us...> - 2002-10-22 07:46:48
|
Update of /cvsroot/gallery/gallery2/modules/core/test/TestCase In directory usw-pr-cvs1:/tmp/cvs-serv1088/modules/core/test/TestCase Modified Files: CreateAnonymousUser.class InitializeGallery.class Log Message: * Introduced session support. We can now store arbitrary data in the session. By default, visitors are given a new session and are logged in as the anonymous user. * Added the concept of "system links" to modules. These are links that are system-wide and are not related to a specific item (eg, the login/logout links). Layouts can place these links separately from item specific links (although the classic layout groups them together) * Updated AddComment.inc to use the new $form.xx.xx pattern * Introduced the $return.xx.xx pattern for allowing us to go to a modal page but be able to return to the calling page. See core:Login for an example of how this works. * The various GalleryModule.getItemXxx() calls now explicitly declare the second parameter to be $returnUrlParams * There's a new section in the general site admin for session timeouts. * Small theme-related optimizations of SiteAdmin.inc * The setup code now gives the admin user the "setup" password to get things going (that's the password you put in config.php). The CreateAdminUser test case gives it the password 'admin', though. That's ok -- the test case won't be used at production time. * Tweaked NetPBM so that now you must explicitly specify which version of pnmtojpeg you have on your system. We can't detect the version readily when open_basedir is set, unless netpbm is inside the open_basedir (which is probably not the case if e.g. it's in /usr/local/bin on a shared machine) Index: CreateAnonymousUser.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/test/TestCase/CreateAnonymousUser.class,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- CreateAnonymousUser.class 30 Sep 2002 08:42:13 -0000 1.7 +++ CreateAnonymousUser.class 22 Oct 2002 07:46:44 -0000 1.8 @@ -19,7 +19,6 @@ return $ret->wrap(__FILE__, __LINE__); } $user->setFullName('Anonymous'); - $user->setLanguage('es_ES'); $ret = $user->save(); if ($ret->isError()) { Index: InitializeGallery.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/test/TestCase/InitializeGallery.class,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- InitializeGallery.class 7 Oct 2002 21:41:26 -0000 1.6 +++ InitializeGallery.class 22 Oct 2002 07:46:44 -0000 1.7 @@ -24,6 +24,9 @@ $retArray[] = $gallery->setModuleParameter('core', 'default.theme', 'classic'); $retArray[] = $gallery->setModuleParameter('core', 'default.language', 'en_US'); $retArray[] = $gallery->setModuleParameter('core', 'graphics.type', 'netpbm'); + $retArray[] = $gallery->setModuleParameter('core', 'session.idParameter', 'GALLERYSID'); + $retArray[] = $gallery->setModuleParameter('core', 'session.lifetime', 25 * 365 * 86400); /* 25 years */ + $retArray[] = $gallery->setModuleParameter('core', 'session.inactivityTimeout', 7 * 365 * 86400); /* one week */ foreach ($retArray as $ret) { if ($ret->isError()) { |