</dd>
</dl>
- <dl{if $errorField == 'cookiePath'} class="formError"{/if}>
- <dt><label for="cookiePath">{lang}wcf.acp.application.cookiePath{/lang}</label></dt>
- <dd>
- <input type="text" name="cookiePath" id="cookiePath" value="{$cookiePath}" class="long" />
- {if $errorField == 'cookiePath'}
- <small class="innerError">
- {if $errorType == 'empty'}
- {lang}wcf.global.form.error.empty{/lang}
- {else}
- {lang}wcf.acp.application.cookiePath.error.{$errorType}{/lang}
- {/if}
- </small>
- {/if}
- </dd>
- </dl>
-
{event name='cookieFields'}
</fieldset>
<th class="columnText columnDomainName">{lang}wcf.acp.application.domainName{/lang}</th>
<th class="columnText columnDomainPath">{lang}wcf.acp.application.domainPath{/lang}</th>
<th class="columnText columnCookieDomain">{lang}wcf.acp.application.cookieDomain{/lang}</th>
- <th class="columnText columnCookiePath">{lang}wcf.acp.application.cookiePath{/lang}</th>
{event name='columnHeads'}
</tr>
<td class="columnText columnDomainName">{$application->domainName}</td>
<td class="columnText columnDomainPath">{$application->domainPath}</td>
<td class="columnText columnCookieDomain">{$application->cookieDomain}</td>
- <td class="columnText columnCookiePath">{$application->cookiePath}</td>
{event name='columns'}
</tr>
*/
public $cookieDomain = '';
- /**
- * cookie path
- * @var string
- */
- public $cookiePath = '';
-
/**
* domain name
* @var string
parent::readFormParameters();
if (isset($_POST['cookieDomain'])) $this->cookieDomain = StringUtil::trim($_POST['cookieDomain']);
- if (isset($_POST['cookiePath'])) $this->cookiePath = StringUtil::trim($_POST['cookiePath']);
if (isset($_POST['domainName'])) $this->domainName = StringUtil::trim($_POST['domainName']);
if (isset($_POST['domainPath'])) $this->domainPath = StringUtil::trim($_POST['domainPath']);
}
if (empty($_POST)) {
$this->cookieDomain = $this->application->cookieDomain;
- $this->cookiePath = $this->application->cookiePath;
$this->domainName = $this->application->domainName;
$this->domainPath = $this->application->domainPath;
}
}
}
- if (empty($this->domainPath)) {
- $this->cookiePath = '';
- }
- else {
- // strip first and last slash
- $this->domainPath = FileUtil::removeLeadingSlash(FileUtil::removeTrailingSlash($this->domainPath));
- $this->cookiePath = FileUtil::removeLeadingSlash(FileUtil::removeTrailingSlash($this->cookiePath));
-
- if (!empty($this->cookiePath) && ($this->domainPath != $this->cookiePath)) {
- // check if cookie path is contained within domain path
- if (!StringUtil::startsWith($this->domainPath, $this->cookiePath)) {
- throw new UserInputException('cookiePath', 'notValid');
- }
- }
- }
-
// add slashes
$this->domainPath = FileUtil::addLeadingSlash(FileUtil::addTrailingSlash($this->domainPath));
- $this->cookiePath = FileUtil::addLeadingSlash(FileUtil::addTrailingSlash($this->cookiePath));
// search for other applications with the same domain and path
$sql = "SELECT packageID
// save application
$this->objectAction = new ApplicationAction(array($this->application->getDecoratedObject()), 'update', array('data' => array_merge($this->additionalFields, array(
'cookieDomain' => $this->cookieDomain,
- 'cookiePath' => $this->cookiePath,
'domainName' => $this->domainName,
'domainPath' => $this->domainPath
))));
WCF::getTPL()->assign(array(
'application' => $this->application,
'cookieDomain' => $this->cookieDomain,
- 'cookiePath' => $this->cookiePath,
'domainName' => $this->domainName,
'domainPath' => $this->domainPath,
'packageID' => $this->packageID
<category name="wcf.acp.application">
<item name="wcf.acp.application.cookie"><![CDATA[Cookie-Einstellungen]]></item>
- <item name="wcf.acp.application.cookie.warning"><![CDATA[Die folgenden Einstellungen stellen sicher, dass der Login gespeichert wird und ein automatischer Login möglich ist. Sie müssen diese Einstellungen anpassen, sollten sich Domain und/oder Pfad geändert haben. Sollten Sie sich bei den korrekten Werten nicht sicher sein, übernehmen Sie bitte die exakten Angaben der beiden obigen Eingabefelder.]]></item>
+ <item name="wcf.acp.application.cookie.warning"><![CDATA[Die folgenden Einstellungen stellen sicher, dass der Login gespeichert wird und ein automatischer Login möglich ist. Sie müssen diese Einstellungen anpassen, sollten sich die Domain geändert haben. Sollten Sie sich bei dem korrekten Wert nicht sicher sein, übernehmen Sie bitte die exakte Angabe im Feld „Domain“.]]></item>
<item name="wcf.acp.application.cookieDomain"><![CDATA[Cookie-Domain]]></item>
<item name="wcf.acp.application.cookieDomain.error.containsPath"><![CDATA[Die Cookie-Domain darf keine Pfadangaben enthalten]]></item>
<item name="wcf.acp.application.cookieDomain.error.notValid"><![CDATA[Die Cookie-Domain stimmt nicht mit der oben angegebenen Domain überein (Subdomains wie zum Beispiel „www“ dürfen weggelassen werden).]]></item>
- <item name="wcf.acp.application.cookiePath"><![CDATA[Cookie-Pfad]]></item>
- <item name="wcf.acp.application.cookiePath.error.notValid"><![CDATA[Der Cookie-Pfad passt nicht zum oben angegebenen Domain-Pfad.]]></item>
<item name="wcf.acp.application.domain"><![CDATA[Domain-Einstellungen]]></item>
<item name="wcf.acp.application.domainName"><![CDATA[Domain]]></item>
<item name="wcf.acp.application.domainName.description"><![CDATA[Geben Sie die Domain an, über die diese Anwendung erreichbar ist. Wenn Ihre Anwendung zum Beispiel unter „http://www.example.com/community/forum/“ erreichbar ist, so geben Sie hier bitte „www.example.com“ ein.]]></item>
<category name="wcf.acp.application">
<item name="wcf.acp.application.cookie"><![CDATA[Cookie Settings]]></item>
- <item name="wcf.acp.application.cookie.warning"><![CDATA[The settings below are used to establish a persistent login for your website; Keep in mind to update these values whenever the domain name or path changes. If you are unsure which values you need to provide, you can safely copy both values from above.]]></item>
+ <item name="wcf.acp.application.cookie.warning"><![CDATA[The setting below is used to establish a persistent login for your website; Keep in mind to update this value whenever the domain name changes. If you are unsure which value you need to provide, you can safely copy the value of “Domain”.]]></item>
<item name="wcf.acp.application.cookieDomain"><![CDATA[Cookie Domain]]></item>
<item name="wcf.acp.application.cookieDomain.error.containsPath"><![CDATA[Cookie domain may not contain path components]]></item>
<item name="wcf.acp.application.cookieDomain.error.notValid"><![CDATA[Cookie domain does not match the domain entered above (sub-domains like “www” may be omitted).]]></item>
- <item name="wcf.acp.application.cookiePath"><![CDATA[Cookie Path]]></item>
- <item name="wcf.acp.application.cookiePath.error.notValid"><![CDATA[Cookie path does not match the domain path above.]]></item>
<item name="wcf.acp.application.domain"><![CDATA[Domain Settings]]></item>
<item name="wcf.acp.application.domainName"><![CDATA[Domain]]></item>
<item name="wcf.acp.application.domainName.description"><![CDATA[If you’re accessing this application through “http://www.example.com/community/forum/”, please enter “www.example.com”.]]></item>