From: <gem...@li...> - 2011-09-19 13:38:32
|
Revision: 38 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=38&view=rev Author: mennodekker Date: 2011-09-19 13:38:23 +0000 (Mon, 19 Sep 2011) Log Message: ----------- Fixed broken favicons Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-09-19 11:21:51 UTC (rev 37) +++ trunk/library/classes/GemsEscort.php 2011-09-19 13:38:23 UTC (rev 38) @@ -594,7 +594,7 @@ { // FAVICON $icon = isset($this->project->favicon) ? $this->project->favicon : 'favicon.ico'; - if (file_exists(GEMS_ROOT_DIR . '/' . $icon)) { + if (file_exists(GEMS_WEB_DIR . '/' . $icon)) { $this->view->headLink(array( 'rel' => 'shortcut icon', 'href' => $this->basepath->getBasePath() . '/' . $icon, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-09-28 10:11:54
|
Revision: 83 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=83&view=rev Author: mennodekker Date: 2011-09-28 10:11:45 +0000 (Wed, 28 Sep 2011) Log Message: ----------- Fix for order of css, to allow form css to come last Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-09-27 17:28:46 UTC (rev 82) +++ trunk/library/classes/GemsEscort.php 2011-09-28 10:11:45 UTC (rev 83) @@ -536,7 +536,9 @@ { // Set CSS stylescheet(s) if (isset($this->project->css)) { - foreach ((array) $this->project->css as $css) { + $projectCss = (array) $this->project->css; + $projectCss = array_reverse($projectCss); + foreach ($projectCss as $css) { if (is_array($css)) { $media = $css['media']; $url = $css['url']; @@ -544,7 +546,7 @@ $url = $css; $media = 'screen'; } - $this->view->headLink()->appendStylesheet($this->basepath->getBasePath() . '/' . $url, $media); + $this->view->headLink()->prependStylesheet($this->basepath->getBasePath() . '/' . $url, $media); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-10-12 08:26:55
|
Revision: 93 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=93&view=rev Author: mennodekker Date: 2011-10-12 08:26:48 +0000 (Wed, 12 Oct 2011) Log Message: ----------- Removed obsolete hook, use track-events now Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-10-12 07:55:30 UTC (rev 92) +++ trunk/library/classes/GemsEscort.php 2011-10-12 08:26:48 UTC (rev 93) @@ -925,17 +925,6 @@ } /** - * Hook to do project specific handling after a round was completed - * - * The tokendata array will be passed and the values to be saved, including a possible calculated - * result. We can calculate results here, and maybe add extra surveys or present a warning screen. - * - * @param array $tokenData - * @param array $values - */ - public function afterRoundCompleted($tokenData, $values) {} - - /** * Hook 2: Called in $this->run(). * * This->init() has ran and the constructor has finisched so all _init{name} and application.ini This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-01 13:30:48
|
Revision: 158 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=158&view=rev Author: michieltcs Date: 2011-11-01 13:30:39 +0000 (Tue, 01 Nov 2011) Log Message: ----------- Initialize variable, suppress mkdir error message Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-01 13:19:49 UTC (rev 157) +++ trunk/library/classes/GemsEscort.php 2011-11-01 13:30:39 UTC (rev 158) @@ -144,10 +144,11 @@ */ protected function _initCache() { + $cache = null; $exists = false; $cacheDir = GEMS_ROOT_DIR . "/var/cache/"; if (!file_exists($cacheDir)) { - if (mkdir($cacheDir, 0777, true)) { + if (@mkdir($cacheDir, 0777, true)) { $exists = true; } } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-03 13:09:05
|
Revision: 170 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=170&view=rev Author: michieltcs Date: 2011-11-03 13:08:54 +0000 (Thu, 03 Nov 2011) Log Message: ----------- Allow backwards-compatibility Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-03 12:23:36 UTC (rev 169) +++ trunk/library/classes/GemsEscort.php 2011-11-03 13:08:54 UTC (rev 170) @@ -911,8 +911,12 @@ } } - public function afterLogin($userName) + public function afterLogin($userName = null) { + if (empty($userName)) { + $userName = $_POST['userlogin']; + } + /** * Reset number of failed logins */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-04 11:39:49
|
Revision: 182 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=182&view=rev Author: mennodekker Date: 2011-11-04 11:39:43 +0000 (Fri, 04 Nov 2011) Log Message: ----------- use Apc memory cache when available (add more when needed) Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-04 11:18:25 UTC (rev 181) +++ trunk/library/classes/GemsEscort.php 2011-11-04 11:39:43 UTC (rev 182) @@ -146,20 +146,29 @@ { $cache = null; $exists = false; - $cacheDir = GEMS_ROOT_DIR . "/var/cache/"; - if (!file_exists($cacheDir)) { - if (@mkdir($cacheDir, 0777, true)) { + + // Check if APC extension is loaded + if( extension_loaded('apc') ) { + $cacheBackend = 'Apc'; + $cacheBackendOptions = array(); + $exists = true; + } else { + $cacheBackend = 'File'; + $cacheDir = GEMS_ROOT_DIR . "/var/cache/"; + $cacheBackendOptions = array('cache_dir' => $cacheDir); + if (!file_exists($cacheDir)) { + if (@mkdir($cacheDir, 0777, true)) { + $exists = true; + } + } else { $exists = true; } - } else { - $exists = true; } if ($exists) { $cacheFrontendOptions = array('automatic_serialization' => true); - $cacheBackendOptions = array('cache_dir' => $cacheDir); - $cache = Zend_Cache::factory('Core', 'File', $cacheFrontendOptions, $cacheBackendOptions); + $cache = Zend_Cache::factory('Core', $cacheBackend, $cacheFrontendOptions, $cacheBackendOptions); Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); Zend_Translate::setCache($cache); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-07 09:27:02
|
Revision: 186 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=186&view=rev Author: mennodekker Date: 2011-11-07 09:26:56 +0000 (Mon, 07 Nov 2011) Log Message: ----------- Improved cache by using prefix so 'apc' won't get name clashes on a shared environment Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-04 14:01:18 UTC (rev 185) +++ trunk/library/classes/GemsEscort.php 2011-11-07 09:26:56 UTC (rev 186) @@ -166,7 +166,8 @@ } if ($exists) { - $cacheFrontendOptions = array('automatic_serialization' => true); + $cacheFrontendOptions = array('automatic_serialization' => true, + 'cache_id_prefix' => GEMS_PROJECT_NAME . '_'); $cache = Zend_Cache::factory('Core', $cacheBackend, $cacheFrontendOptions, $cacheBackendOptions); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-14 12:31:57
|
Revision: 206 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=206&view=rev Author: michieltcs Date: 2011-11-14 12:31:51 +0000 (Mon, 14 Nov 2011) Log Message: ----------- Refs #448 - add session name and cookie path to prevent clashes Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-14 12:10:52 UTC (rev 205) +++ trunk/library/classes/GemsEscort.php 2011-11-14 12:31:51 UTC (rev 206) @@ -89,8 +89,13 @@ $firebug = $application->getOption('firebug'); $this->_startFirebird = $firebug['log']; - - Zend_Session::start(); + + Zend_Session::start( + array( + 'name' => GEMS_PROJECT_NAME_UC . 'SESSID', + 'cookie_path' => dirname($_SERVER['SCRIPT_NAME']) + ) + ); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-18 15:12:05
|
Revision: 237 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=237&view=rev Author: michieltcs Date: 2011-11-18 15:11:59 +0000 (Fri, 18 Nov 2011) Log Message: ----------- Refs #453 - set default session timeout to 30 minutes Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-18 14:18:45 UTC (rev 236) +++ trunk/library/classes/GemsEscort.php 2011-11-18 15:11:59 UTC (rev 237) @@ -58,6 +58,14 @@ private $_copyDestinations; private $_startFirebird; + + /** + * Lifetime of the session (determines the expiration of the session cookie(s)) + * Defaults to 1800 seconds = 30 minutes, you override this in your own + * Escort class + * @var int + */ + protected $_sessionLifetime = 1800; /** * The menu variable @@ -89,6 +97,9 @@ $firebug = $application->getOption('firebug'); $this->_startFirebird = $firebug['log']; + + // expire the session after 30 minutes + Zend_Session::rememberMe($this->_sessionLifetime); $sessionOptions['name'] = GEMS_PROJECT_NAME_UC . 'SESSID'; $sessionOptions['cookie_path'] = strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-01-17 08:36:55
|
Revision: 408 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=408&view=rev Author: michieltcs Date: 2012-01-17 08:36:49 +0000 (Tue, 17 Jan 2012) Log Message: ----------- Add additional hash to session id to prevent possible clashes Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-01-12 17:30:32 UTC (rev 407) +++ trunk/library/classes/GemsEscort.php 2012-01-17 08:36:49 UTC (rev 408) @@ -90,7 +90,7 @@ $firebug = $application->getOption('firebug'); $this->_startFirebird = $firebug['log']; - $sessionOptions['name'] = GEMS_PROJECT_NAME_UC . 'SESSID'; + $sessionOptions['name'] = GEMS_PROJECT_NAME_UC . '_' . md5(APPLICATION_PATH) . '_SESSID'; $sessionOptions['cookie_path'] = strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'); Zend_Session::start($sessionOptions); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-01-26 08:47:15
|
Revision: 423 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=423&view=rev Author: mennodekker Date: 2012-01-26 08:47:09 +0000 (Thu, 26 Jan 2012) Log Message: ----------- prevent cache clashes on apc Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-01-25 14:33:44 UTC (rev 422) +++ trunk/library/classes/GemsEscort.php 2012-01-26 08:47:09 UTC (rev 423) @@ -147,13 +147,17 @@ */ protected function _initCache() { - $cache = null; - $exists = false; + $cache = null; + $exists = false; + $cachePrefix = GEMS_PROJECT_NAME . '_'; + // Check if APC extension is loaded if( extension_loaded('apc') ) { $cacheBackend = 'Apc'; $cacheBackendOptions = array(); + //Add path to the prefix as APC is a SHARED cache + $cachePrefix .= md5(APPLICATION_PATH); $exists = true; } else { $cacheBackend = 'File'; @@ -175,7 +179,7 @@ * not support automatic cleaning. */ $cacheFrontendOptions = array('automatic_serialization' => true, - 'cache_id_prefix' => GEMS_PROJECT_NAME . '_', + 'cache_id_prefix' => $cachePrefix, 'automatic_cleaning_factor' => 0); $cache = Zend_Cache::factory('Core', $cacheBackend, $cacheFrontendOptions, $cacheBackendOptions); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-04-23 12:25:14
|
Revision: 630 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=630&view=rev Author: mennodekker Date: 2012-04-23 10:58:42 +0000 (Mon, 23 Apr 2012) Log Message: ----------- get the real project object :) Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-04-23 10:41:59 UTC (rev 629) +++ trunk/library/classes/GemsEscort.php 2012-04-23 10:58:42 UTC (rev 630) @@ -212,7 +212,7 @@ die(sprintf($this->translate->_('Path %s not writable'), $log_path)); } - $filter = new Zend_Log_Filter_Priority($project->getLogLevel()); + $filter = new Zend_Log_Filter_Priority($this->project->getLogLevel()); $writer->addFilter($filter); $logger->addWriter($writer); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-25 08:37:18
|
Revision: 783 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=783&view=rev Author: mennodekker Date: 2012-06-25 08:37:12 +0000 (Mon, 25 Jun 2012) Log Message: ----------- fixed a warning Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-06-22 12:25:39 UTC (rev 782) +++ trunk/library/classes/GemsEscort.php 2012-06-25 08:37:12 UTC (rev 783) @@ -876,6 +876,7 @@ $orgSwitch = MUtil_Html::create('div', array('id' => 'organizations')); $currentId = $user->getCurrentOrganizationId(); $params = $this->request->getParams(); + unset($params['error_handler']); // If present, this is an object and causes a warning unset($params[Gems_Util_RequestCache::RESET_PARAM]); $currentUri = $this->view->url($params, null, true); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-06-29 08:34:35
|
Revision: 799 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=799&view=rev Author: mennodekker Date: 2012-06-29 08:34:24 +0000 (Fri, 29 Jun 2012) Log Message: ----------- Locale has a cache too, and when not set it will use system temp dir Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-06-28 15:16:55 UTC (rev 798) +++ trunk/library/classes/GemsEscort.php 2012-06-29 08:34:24 UTC (rev 799) @@ -191,6 +191,7 @@ Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); Zend_Translate::setCache($cache); + Zend_Locale::setCache($cache); return $cache; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-07-31 11:12:21
|
Revision: 888 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=888&view=rev Author: michieltcs Date: 2012-07-31 11:12:12 +0000 (Tue, 31 Jul 2012) Log Message: ----------- Set jQuery UI minimum required version to fix datepicker popup bug Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-07-31 10:59:06 UTC (rev 887) +++ trunk/library/classes/GemsEscort.php 2012-07-31 11:12:12 UTC (rev 888) @@ -700,6 +700,7 @@ if (MUtil_JQuery::usesJQuery($this->view)) { $jquery = $this->view->jQuery(); $jquery->uiEnable(); // enable user interface + $jquery->setUiVersion('1.8.9'); if (MUtil_Https::on()) { $jquery->setCdnSsl(true); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-08-13 11:49:00
|
Revision: 894 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=894&view=rev Author: mennodekker Date: 2012-08-13 11:48:54 +0000 (Mon, 13 Aug 2012) Log Message: ----------- Fixed bug #558: when editing a round, the crumbs don't work Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-08-13 08:12:00 UTC (rev 893) +++ trunk/library/classes/GemsEscort.php 2012-08-13 11:48:54 UTC (rev 894) @@ -600,8 +600,11 @@ $content = $div->seq(); $content->setGlue(MUtil_Html::raw($this->_(' > '))); + // Add request to existing menu parameter sources + $source = array($this->menu->getParameterSource(), $this->request); + foreach ($path as $menuItem) { - $content->a($menuItem->toHRefAttribute($this->request), $menuItem->get('label')); + $content->a($menuItem->toHRefAttribute($source), $menuItem->get('label')); } $content->append($last->get('label')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2012-10-25 12:55:47
|
Revision: 997 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=997&view=rev Author: matijsdejong Date: 2012-10-25 12:55:41 +0000 (Thu, 25 Oct 2012) Log Message: ----------- Some style fixes Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2012-10-25 12:44:18 UTC (rev 996) +++ trunk/library/classes/GemsEscort.php 2012-10-25 12:55:41 UTC (rev 997) @@ -159,7 +159,7 @@ // Check if APC extension is loaded - if($useCache === 'apc' && extension_loaded('apc') ) { + if ($useCache === 'apc' && extension_loaded('apc')) { $cacheBackend = 'Apc'; $cacheBackendOptions = array(); //Add path to the prefix as APC is a SHARED cache @@ -210,13 +210,13 @@ $this->bootstrap('project'); // Make sure the project object is available $logger = Gems_Log::getLogger(); - $log_path = GEMS_ROOT_DIR . '/var/logs'; + $logPath = GEMS_ROOT_DIR . '/var/logs'; try { - $writer = new Zend_Log_Writer_Stream($log_path . '/errors.log'); + $writer = new Zend_Log_Writer_Stream($logPath . '/errors.log'); } catch (Exception $exc) { $this->bootstrap(array('locale', 'translate')); - die(sprintf($this->translate->_('Path %s not writable'), $log_path)); + die(sprintf($this->translate->_('Path %s not writable'), $logPath)); } $filter = new Zend_Log_Filter_Priority($this->project->getLogLevel()); @@ -286,7 +286,8 @@ return $acl->getAcl(); } - protected function _initActionHelpers() { + protected function _initActionHelpers() + { Zend_Controller_Action_HelperBroker::addPrefix('Gems_Controller_Action_Helper'); } @@ -571,8 +572,9 @@ if ($menuItem) { $contactDiv = MUtil_Html::create()->div( - $args, - array('id' => 'contact')); // tooltip + $args, + array('id' => 'contact') + ); // tooltip $contactDiv->a($menuItem->toHRefAttribute(), $menuItem->get('label')); $ul = $menuItem->toUl(); @@ -686,12 +688,14 @@ // FAVICON $icon = isset($this->project->favicon) ? $this->project->favicon : 'favicon.ico'; if (file_exists(GEMS_WEB_DIR . '/' . $icon)) { - $this->view->headLink(array( - 'rel' => 'shortcut icon', - 'href' => $this->basepath->getBasePath() . '/' . $icon, - 'type' => 'image/x-icon'), - Zend_View_Helper_Placeholder_Container_Abstract::PREPEND - ); + $this->view->headLink( + array( + 'rel' => 'shortcut icon', + 'href' => $this->basepath->getBasePath() . '/' . $icon, + 'type' => 'image/x-icon' + ), + Zend_View_Helper_Placeholder_Container_Abstract::PREPEND + ); } } @@ -837,7 +841,8 @@ if ($messages) { foreach ($messages as &$message) { // Make sure html is preserved - if (is_string($message) && strlen($message) && ((strpos($message, '<') !== false) || (strpos($message, '&') !== false))) { + if (is_string($message) && strlen($message) && + ((strpos($message, '<') !== false) || (strpos($message, '&') !== false))) { $message = MUtil_Html::raw($message); } } @@ -991,10 +996,10 @@ if ($user->isActive()) { return MUtil_Html::create()->div( - sprintf($this->_('User: %s'), $user->getFullName()), - $args, - array('id' => 'username') - ); + sprintf($this->_('User: %s'), $user->getFullName()), + $args, + array('id' => 'username') + ); } } @@ -1115,7 +1120,7 @@ Zend_Registry::set(MUtil_Model_FormBridge::REGISTRY_KEY, array('date' => $dateFormOptions)); } - protected function createProjectClass($className, $param1 = null, $param2 = null) + protected function createProjectClass($className, $paramOne = null, $paramTwo = null) { if (file_exists(APPLICATION_PATH . '/classes/' . GEMS_PROJECT_NAME_UC . '/' . str_replace('_', '/', $className) . '.php')) { $className = GEMS_PROJECT_NAME_UC . '_' . $className; @@ -1129,10 +1134,10 @@ return new $className(); case 2: - return new $className($param1); + return new $className($paramOne); case 3: - return new $className($param1, $param2); + return new $className($paramOne, $paramTwo); default: throw new Gems_Exception_Coding(__CLASS__ . '->' . __FUNCTION__ . '() called with more parameters than possible.'); @@ -1786,7 +1791,7 @@ $result['{todo_track_count}'] = $todo['track']; $result['{token}'] = strtoupper($tokenData['gto_id_token']); - $result['{token_from}'] = MUtil_Date::format($tokenData['gto_valid_from'], Zend_Date::DATE_LONG, 'yyyy-MM-dd', $locale); + $result['{token_from}'] = MUtil_Date::format($tokenData['gto_valid_from'], Zend_Date::DATE_LONG, 'yyyy-MM-dd', $locale); // $result['{token_input}'] = MUtil_Html::create()->a($url_input, $tokenData['gsu_survey_name']); // $result['{token_link}'] = MUtil_Html::create()->a($url, $tokenData['gsu_survey_name']); // $result['{token_link}'] = '<a href="' . $url . '">' . $tokenData['gsu_survey_name'] . '</a>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2013-04-03 12:53:03
|
Revision: 1211 http://sourceforge.net/p/gemstracker/code/1211 Author: matijsdejong Date: 2013-04-03 12:52:59 +0000 (Wed, 03 Apr 2013) Log Message: ----------- Logic error causes warnings, also in trunk Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-04-03 12:25:27 UTC (rev 1210) +++ trunk/library/classes/GemsEscort.php 2013-04-03 12:52:59 UTC (rev 1211) @@ -430,10 +430,10 @@ return $locale; } - + /** * Initialize the OpenRosa survey source - * + * * @param Zend_Controller_Action $actionController */ public function _initOpenRosa(Zend_Controller_Action $actionController = null) @@ -441,12 +441,12 @@ if ($this->getOption('useOpenRosa')) { // First handle dependencies $this->bootstrap(array('db', 'loader', 'util')); - + $this->getLoader()->addPrefixPath('OpenRosa', GEMS_LIBRARY_DIR . '/classes/OpenRosa', true); - + $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('OpenRosa_'); - + /** * Add Source for OpenRosa */ @@ -629,7 +629,7 @@ */ protected function _initZFDebug() { - if ((APPLICATION_ENV === 'production') && + if ((APPLICATION_ENV === 'production') || (false !== strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.'))) { // Never on on production systems, never for IE 6 return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-07 13:48:41
|
Revision: 187 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=187&view=rev Author: michieltcs Date: 2011-11-07 13:48:32 +0000 (Mon, 07 Nov 2011) Log Message: ----------- Allow creation of (dummy) cache when cache directory is not writeable Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-07 09:26:56 UTC (rev 186) +++ trunk/library/classes/GemsEscort.php 2011-11-07 13:48:32 UTC (rev 187) @@ -170,11 +170,13 @@ 'cache_id_prefix' => GEMS_PROJECT_NAME . '_'); $cache = Zend_Cache::factory('Core', $cacheBackend, $cacheFrontendOptions, $cacheBackendOptions); - - Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); - Zend_Translate::setCache($cache); + } else { + $cache = Zend_Cache::factory('Core', 'Static', array('caching' => false), array('disable_caching' => true)); } + Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); + Zend_Translate::setCache($cache); + return $cache; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-21 09:23:21
|
Revision: 243 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=243&view=rev Author: michieltcs Date: 2011-11-21 09:23:15 +0000 (Mon, 21 Nov 2011) Log Message: ----------- Fix typo Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-19 18:12:07 UTC (rev 242) +++ trunk/library/classes/GemsEscort.php 2011-11-21 09:23:15 UTC (rev 243) @@ -1345,7 +1345,7 @@ // fake POST if ($this->session->previousRequestMode == 'POST') { - $this->addMessage($this->_('Take note: your session has expired, your inputs where not saved. Please check the input data and try again')); + $this->addMessage($this->_('Take note: your session has expired, your inputs were not saved. Please check the input data and try again')); $_POST = $previousRequestParameters; $_SERVER['REQUEST_METHOD'] = $this->session->previousRequestMode; $this->session->previousRequestMode = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2011-11-21 09:41:45
|
Revision: 244 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=244&view=rev Author: michieltcs Date: 2011-11-21 09:41:35 +0000 (Mon, 21 Nov 2011) Log Message: ----------- Refs #453 - Do not call rememberMe() (this regenerates the session id), instead set an expiration time on the session namespace Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2011-11-21 09:23:15 UTC (rev 243) +++ trunk/library/classes/GemsEscort.php 2011-11-21 09:41:35 UTC (rev 244) @@ -98,9 +98,6 @@ $firebug = $application->getOption('firebug'); $this->_startFirebird = $firebug['log']; - // expire the session after 30 minutes - Zend_Session::rememberMe($this->_sessionLifetime); - $sessionOptions['name'] = GEMS_PROJECT_NAME_UC . 'SESSID'; $sessionOptions['cookie_path'] = strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'); @@ -397,6 +394,7 @@ protected function _initSession() { $session = new Zend_Session_Namespace('gems.' . GEMS_PROJECT_NAME . '.session'); + $session->setExpirationSeconds($this->_sessionLifetime); if (! isset($session->user_role)) { $session->user_role = 'nologin'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2013-01-04 16:21:56
|
Revision: 1089 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=1089&view=rev Author: matijsdejong Date: 2013-01-04 16:21:50 +0000 (Fri, 04 Jan 2013) Log Message: ----------- ZfDebug code switched off Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-01-04 16:20:22 UTC (rev 1088) +++ trunk/library/classes/GemsEscort.php 2013-01-04 16:21:50 UTC (rev 1089) @@ -539,7 +539,7 @@ * Add ZFDebug info to the page output. * * @return void - */ + * / protected function _initZFDebug() { // if ((APPLICATION_ENV === 'development') && This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2013-01-07 16:04:12
|
Revision: 1090 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=1090&view=rev Author: michieltcs Date: 2013-01-07 16:04:05 +0000 (Mon, 07 Jan 2013) Log Message: ----------- OS-dependent separators Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-01-04 16:21:50 UTC (rev 1089) +++ trunk/library/classes/GemsEscort.php 2013-01-07 16:04:05 UTC (rev 1090) @@ -96,7 +96,7 @@ parent::__construct($application); $autoloader = Zend_Loader_Autoloader::getInstance(); - $cachedloader = MUtil_Loader_CachedLoader::getInstance(GEMS_ROOT_DIR . '\var\cache'); + $cachedloader = MUtil_Loader_CachedLoader::getInstance(GEMS_ROOT_DIR . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'cache'); $autoloader->setDefaultAutoloader(array($cachedloader, 'loadClassByPaths')); self::$_instanceOfSelf = $this; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gem...@li...> - 2013-02-04 13:41:52
|
Revision: 1132 http://sourceforge.net/p/gemstracker/code/1132 Author: mennodekker Date: 2013-02-04 13:41:50 +0000 (Mon, 04 Feb 2013) Log Message: ----------- Pdf export needs full url to css files Modified Paths: -------------- trunk/library/classes/GemsEscort.php Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-01-31 15:15:45 UTC (rev 1131) +++ trunk/library/classes/GemsEscort.php 2013-02-04 13:41:50 UTC (rev 1132) @@ -729,7 +729,12 @@ $url = $css; $media = 'screen'; } - $this->view->headLink()->prependStylesheet($this->basepath->getBasePath() . '/' . $url, $media); + // When exporting to pdf, we need full urls + if (substr($url,0,4) == 'http') { + $this->view->headLink()->prependStylesheet($url, $media); + } else { + $this->view->headLink()->prependStylesheet($this->view->serverUrl() . $this->basepath->getBasePath() . '/' . $url, $media); + } } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |