Module: appdb
Branch: master
Commit: e40aec5d8404f00601c42ff65a0d5b132b193c91
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=e40aec5d8404f00601c42ff6…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sat Aug 8 23:09:32 2009 +0200
objectManager: Avoid losing data when session times out while filling out a form
---
include/objectManager.php | 18 ++++++++++++++++--
objectManager.php | 2 +-
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php
index 593c0d2..182b373 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -406,8 +406,10 @@ class ObjectManager
}
/* Only show the edit screen if the user has sufficient rights */
- if(!$oObject->canEdit())
+ if(!$oObject->canEdit() && !getInput('sSubmit', $aClean))
$this->error_exit('You do not have sufficient privileges to edit this entry');
+ else if(!$oObject->canEdit())
+ $this->show_form_help_session_timeout();
/* Display errors, if any, and fetch form data */
if($this->displayErrors($sErrors))
@@ -1214,12 +1216,24 @@ class ObjectManager
echo '<input type="submit" name="sSubmit" class="button" value="Preview">';
}
- public function handle_anonymous_submission()
+ public function show_form_help_session_timeout()
+ {
+ $this->error_exit("Your session has timed out. <a target=\"_blank\" href=\"".BASE."account.php?sCmd=login\">Log in</a> and then <a href=\"javascript:location.reload();\">refresh thise page</a>.");
+ }
+
+ public function handle_anonymous_submission($aClean)
{
$oObject = new $this->sClass();
if($oObject->allowAnonymousSubmissions() || $_SESSION['current']->isLoggedIn())
return;
+ // Allow the user to continue filling out a form
+ if(getInput('sSubmit', $aClean))
+ {
+ apidb_header($this->get_title(getInput($sAction, $aClean)));
+ $this->show_form_help_session_timeout();
+ }
+
login_form();
exit;
}
diff --git a/objectManager.php b/objectManager.php
index aa1db6d..65b867d 100644
--- a/objectManager.php
+++ b/objectManager.php
@@ -82,7 +82,7 @@ if($sAction)
switch($aClean['sAction'])
{
case 'add':
- $oObject->handle_anonymous_submission();
+ $oObject->handle_anonymous_submission($aClean);
break;
case 'changeParent':
Module: website
Branch: master
Commit: 658c085f9be2f2003351b351e2d8be8ef7679317
URL: http://source.winehq.org/git/website.git/?a=commit;h=658c085f9be2f2003351b3…
Author: Maik Schulz <maik.schulz(a)gmail.com>
Date: Sat Aug 8 15:58:03 2009 +0200
Website: insert link to licensing page in German About page
---
templates/de/about.template | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/templates/de/about.template b/templates/de/about.template
index 1838fae..6882634 100644
--- a/templates/de/about.template
+++ b/templates/de/about.template
@@ -9,7 +9,7 @@
<h3>Open Source und benutzergetrieben</h3>
-<p>Wine wird immer <a href="" title="Wine-Lizensierung">Freie Software</a> sein. Ungefähr die Hälfte des Quellcodes von Wine wird von Freiwilligen geschrieben. Der Rest wird von Firmen gesponsort, insbesondere <a href="http://www.codeweavers.com/products/" title="Codeweavers Crossover Office">Codeweavers</a>, die eine eigene Version von Wine mit Unterstützung verkaufen.</p>
+<p>Wine wird immer <a href="http://wiki.winehq.org/Licensing" title="Wine-Lizensierung">Freie Software</a> sein. Ungefähr die Hälfte des Quellcodes von Wine wird von Freiwilligen geschrieben. Der Rest wird von Firmen gesponsort, insbesondere <a href="http://www.codeweavers.com/products/" title="Codeweavers Crossover Office">Codeweavers</a>, die eine eigene Version von Wine mit Unterstützung verkaufen.</p>
<p>Wine ist stark von seinen Anwendern abhängig. Tests von Anwendern bevölkern unsere <a href="http://appdb.winehq.org/" title="Wine Anwendungsdatenbank">Anwendungsdatenbank (en)</a> zur Dokumentation davon, wie gut einzelne Programme funktionieren, und sämtliche Antworten in den <a href="http://forums.winehq.org/" title="WineHQ Foren">Foren</a> kommen von Freiwilligen.</p>
Module: appdb
Branch: master
Commit: c7bdd32b9f2098d2a48ec6f1f13877e4b6e1e003
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=c7bdd32b9f2098d2a48ec6f1…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Sat Aug 8 04:13:20 2009 +0200
note: When showing for specific versions, make sure at least one version is selected
---
include/note.php | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/include/note.php b/include/note.php
index b88727b..92891b5 100644
--- a/include/note.php
+++ b/include/note.php
@@ -443,7 +443,10 @@ class Note {
public function getNoteLinksFromInput($aValues)
{
- $oApp = new application($this->iAppId);
+ $iAppId = $this->iAppId;
+ if(!$iAppId)
+ $iAppId = getInput('iAppId', $aValues);
+ $oApp = new application($iAppId);
$iCount = sizeof($oApp->getVersions());
$aLinkedVersions = html_read_input_series('iVersionId', $aValues, $iCount);
$aLinks = array();
@@ -595,6 +598,20 @@ class Note {
echo html_frame_end();
}
+ public function checkOutputEditorInput($aClean)
+ {
+ $shErrors = '';
+ $iVersionId = getInput('iVersionId', $aClean);
+
+ if($iVersionId == APPNOTE_SHOW_FOR_SPECIFIC_VERSIONS)
+ {
+ $aNoteLinks = $this->getNoteLinksFromInput($aClean);
+ if(!sizeof($aNoteLinks))
+ $shErrors .= '<li>You need to show the note for at least one version, or choose another display mode</li>';
+ }
+ return $shErrors;
+ }
+
/* retrieves values from $aValue that were output by outputEditor() */
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */
function GetOutputEditorValues($aValues)
Module: website
Branch: master
Commit: 0c32a07cd89ddde129401630d1ecc69fea28578a
URL: http://source.winehq.org/git/website.git/?a=commit;h=0c32a07cd89ddde1294016…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Fri Aug 7 18:06:14 2009 +0200
Wine release 1.1.27
---
news/en/2009080701.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/news/en/2009080701.xml b/news/en/2009080701.xml
new file mode 100644
index 0000000..b0007db
--- /dev/null
+++ b/news/en/2009080701.xml
@@ -0,0 +1,16 @@
+<news>
+<date>August 7, 2009</date>
+<title>Wine 1.1.27 Released</title>
+<body>
+<p> The Wine development release 1.1.27 is now available.</p>
+<p> <a href="{$root}/announce/1.1.27">What's new</a> in this release:
+<ul>
+ <li>New version of the Gecko engine.</li>
+ <li>New GSM 06.10 codec support.</li>
+ <li>Improved support for the disk volume APIs.</li>
+ <li>Support for XShm pixmaps for better performance.</li>
+ <li>Various bug fixes.</li>
+</ul></p>
+<p><p>The source is <a href="http://prdownloads.sourceforge.net/wine/wine-1.1.27.tar.bz2">available now</a>.
+Binary packages are in the process of being built, and will appear soon at their respective <a href="{$root}/download">download locations</a>.
+</p></body></news>