//<![CDATA[
$(function() {
{if $aclValues[$objectTypeID]|isset}
- var initialPermissions = {
+ var initialPermissions = {
returnValues: {
options: {
{foreach from=$aclValues[$objectTypeID][options] key='__optionID' item='__optionData'}
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="format-detection" content="telephone=no" />
-{if $allowSpidersToIndexThisPage|empty}<meta name="robots" content="noindex,nofollow" />{/if}
+{if $allowSpidersToIndexThisPage|empty}<meta name="robots" content="noindex,nofollow" />{/if}
{implode from=$__wcf->getMetaTagHandler() item=__metaTag glue="\n"}{@$__metaTag}{/implode}
{event name='metaTags'}
{if !$sidebarOrientation|isset || $sidebarOrientation == 'left'}
{@$__sidebar}
- {/if}
+ {/if}
<section id="content" class="content">
{if MODULE_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.header.content')}{/if}
<div class="details userInformation">
<div class="containerHeadline">
<h3><a href="{link controller='User' object=$user}{/link}">{@$user->getFormattedUsername()}</a>{if MODULE_USER_RANK && $user->getUserTitle()} <span class="badge userTitleBadge{if $user->getRank() && $user->getRank()->cssClassName} {@$user->getRank()->cssClassName}{/if}">{$user->getUserTitle()}</span>{/if}</h3>
- {@$locationData}
+ {@$locationData}
</div>
{@$sessionData}
<div class="details userInformation">
<div class="containerHeadline">
<h3>{if $user->getSpider()->spiderURL}<a href="{$user->getSpider()->spiderURL}" class="externalURL"{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{if EXTERNAL_LINK_REL_NOFOLLOW} rel="nofollow"{/if}>{$user->getSpider()->spiderName}</a>{else}{$user->getSpider()->spiderName}{/if}</h3>
- {@$locationData}
+ {@$locationData}
</div>
{@$sessionData}
<div class="details userInformation">
<div class="containerHeadline">
<h3>{lang}wcf.user.guest{/lang}</h3>
- {@$locationData}
+ {@$locationData}
</div>
{@$sessionData}
> a {
border-width: 0 !important;
- .transition(color, .3s, ease);
+ .transition(color, .3s, ease);
.textShadow(@wcfPageBackgroundColor);
&:hover {
.boxShadowNative(~"0 0 5px" fade(@wcfErrorBackgroundColor, 50%) ~", inset 0 1px 5px rgba(0, 0, 0, .1)");
&:hover, &:focus {
- background-color: @wcfInputHoverBackgroundColor;
+ background-color: @wcfInputHoverBackgroundColor;
}
}
.boxShadowNative(~"0 0 5px" fade(@wcfSuccessBackgroundColor, 50%) ~", inset 0 1px 5px rgba(0, 0, 0, .1)");
&:hover, &:focus {
- background-color: @wcfInputHoverBackgroundColor;
+ background-color: @wcfInputHoverBackgroundColor;
}
}
/* attachments */
.attachmentThumbnail {
.boxShadow(0, 1px, rgba(0, 0, 0, 0.2), 1px);
- .transition(box-shadow, .1s);
+ .transition(box-shadow, .1s);
&:hover {
.boxShadow(0, 0, @wcfButtonHoverBorderColor, 20px);
//<![CDATA[
$(function() {
{if $aclValues[$objectTypeID]|isset}
- var initialPermissions = {
+ var initialPermissions = {
returnValues: {
options: {
{foreach from=$aclValues[$objectTypeID][options] key='__optionID' item='__optionData'}
<script data-relocate="true">
//<![CDATA[
if (document.referrer) {
- $('#errorMessage').append('<br /><a href="' + document.referrer + '">{lang}wcf.global.error.backward{/lang}</a>');
+ $('#errorMessage').append('<br /><a href="' + document.referrer + '">{lang}wcf.global.error.backward{/lang}</a>');
}
//]]>
</script>
}
badge.appendTo($widget);
- this._addWidget(containerID, $widget);
+ this._addWidget(containerID, $widget);
},
/**
/**
* like type
- * @var string
+ * @var string
*/
_likeType: 'received',
/**
* like value
- * @var integer
+ * @var integer
*/
_likeValue: 1,
arguments[0] = key.replace(/ID$/, '-id');
}
break;
- }
+ }
}
// call jQuery's own data method
pe.stop();
self._pending = null;
- }, 250);
+ }, 250);
}
-
}
},
$maximumWidth -= parseInt($container.css('padding-left').replace(/px$/, '')) + parseInt($container.css('padding-right').replace(/px$/, ''));
// substract paddings from the actual list
- $maximumWidth -= parseInt($container.children('ul:eq(0)').css('padding-left').replace(/px$/, '')) + parseInt($container.children('ul:eq(0)').css('padding-right').replace(/px$/, ''));
+ $maximumWidth -= parseInt($container.children('ul:eq(0)').css('padding-left').replace(/px$/, '')) + parseInt($container.children('ul:eq(0)').css('padding-right').replace(/px$/, ''));
if ($currentWidth > $maximumWidth || (this._hasHiddenItems[containerID] && ($currentWidth > $maximumWidth - $dropdownWidth))) {
var $menuItems = $menuItems.filter(':not(.active):not(.ui-state-active):visible');
/**
* Validates the page No input.
- *
+ *
* @param Event event
*/
_keyUp: function(event) {
}
var self = this;
- $.ajax({
+ $.ajax({
type: 'POST',
url: this._options.url,
enctype: 'multipart/form-data',
*/
_sendRequest: function(internalFileID, formData) {
var self = this;
- $.ajax({
+ $.ajax({
type: 'POST',
url: this._options.url,
enctype: 'multipart/form-data',
$pageElement.addClass('break');
}
if (page != this.options.activePage) {
- var $pageLink = $('<a>' + WCF.String.addThousandsSeparator(page) + '</a>');
+ var $pageLink = $('<a>' + WCF.String.addThousandsSeparator(page) + '</a>');
$pageElement.append($pageLink);
this._bindSwitchPage($pageLink, page);
}
* max package name length
* @var integer
*/
- public $packageNameLength = 0;
+ public $packageNameLength = 0;
/**
* @see \wcf\page\IPage::readParameters()
/**
* 1 if the notice will be displayed for all users again
- * @var unknown
+ * @var integer
*/
public $resetIsDismissed = 0;
// read variables with units, e.g. 13px
foreach ($this->globals as $variableName) {
if (isset($_POST[$variableName]) && is_numeric($_POST[$variableName])) {
- if (isset($_POST[$variableName.'_unit']) && in_array($_POST[$variableName.'_unit'], $this->availableUnits)) {
+ if (isset($_POST[$variableName.'_unit']) && in_array($_POST[$variableName.'_unit'], $this->availableUnits)) {
$this->variables[$variableName] = $_POST[$variableName].$_POST[$variableName.'_unit'];
}
}
// get changed options
$sql = "SELECT optionID, defaultValue
FROM wcf".WCF_N."_user_option
- WHERE optionID IN (?".str_repeat(', ?', count($optionIDs) - 1).")";
+ WHERE optionID IN (?".str_repeat(', ?', count($optionIDs) - 1).")";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($optionIDs);
$optionIDs = $optionValues = array();
// even items become keys, odd items become values
$this->exceptions = call_user_func_array('array_merge', array_map(
- function($v) {
- return array($v[0] => $v[1]);
+ function($v) {
+ return array($v[0] => $v[1]);
},
array_chunk($contents, 2)
));
/**
* start date (yyyy-mm-dd)
- * @var string
+ * @var string
*/
public $startDate = '';
/**
* end date (yyyy-mm-dd)
- * @var string
+ * @var string
*/
public $endDate = '';
/**
* available object type
- * @var array
+ * @var array
*/
public $availableObjectTypes = array();
/**
* applies special CSS classes for selected columns
- * @var array
+ * @var array
*/
public $columnStyling = array(
'registrationDate' => 'columnDate',
throw new IllegalLinkException();
}
- if (!empty($_REQUEST['size'])) $this->size = intval($_REQUEST['size']);
+ if (!empty($_REQUEST['size'])) $this->size = intval($_REQUEST['size']);
}
/**
AbstractSecureAction::readParameters();
if (isset($_POST['actionName'])) $this->actionName = StringUtil::trim($_POST['actionName']);
- if (isset($_POST['getFullQuoteObjectIDs'])) $this->_getFullQuoteObjectIDs = intval($_POST['getFullQuoteObjectIDs']);
- if (isset($_POST['objectTypes']) && is_array($_POST['objectTypes'])) $this->objectTypes = ArrayUtil::trim($_POST['objectTypes']);
+ if (isset($_POST['getFullQuoteObjectIDs'])) $this->_getFullQuoteObjectIDs = intval($_POST['getFullQuoteObjectIDs']);
+ if (isset($_POST['objectTypes']) && is_array($_POST['objectTypes'])) $this->objectTypes = ArrayUtil::trim($_POST['objectTypes']);
if (isset($_POST['quoteIDs'])) {
$this->quoteIDs = ArrayUtil::trim($_POST['quoteIDs']);
$processors[$comment->objectTypeID]->updateCounter($comment->objectID, -1 * ($comment->responses + 1));
$groupCommentIDs[$comment->objectTypeID][] = $comment->commentID;
- $commentIDs[] = $comment->commentID;
+ $commentIDs[] = $comment->commentID;
}
if (!empty($groupCommentIDs)) {
foreach ($this->objects as $cronjob) {
if (!$cronjob->isEditable()) {
throw new PermissionDeniedException();
- }
+ }
}
}
foreach ($this->objects as $cronjob) {
if (!$cronjob->canBeDisabled()) {
throw new PermissionDeniedException();
- }
+ }
}
}
// search language file
$filename = WCF_DIR.'language/'.$this->languageID.'_'.$category.'.php';
- if (!@file_exists($filename)) {
+ if (!@file_exists($filename)) {
if ($this->editor === null) {
$this->editor = new LanguageEditor($this);
}
/**
* Loads a list of likes.
- *
+ *
* @return array
*/
public function load() {
foreach ($this->objects as $style) {
if ($style->isDefault) {
throw new UserInputException('objectIDs');
- }
+ }
}
}
/**
* Shows a list of user birthdays.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
$userList->readObjects();
foreach ($userList->getObjects() as $user) {
if (!$user->isProtected() && $user->getAge($year) >= 0) {
- $users[] = $user;
+ $users[] = $user;
}
}
/**
* Returns true, if the active user has access to the user option with the given name.
- *
+ *
* @param string $name
* @return boolean
*/
/**
* Returns the formatted username.
- *
+ *
* @return string
*/
public function getFormattedUsername() {
foreach ($groupIDs as $groupID) {
if (!in_array($groupID, self::$accessibleGroups)) {
return false;
- }
+ }
}
return true;
use wcf\system\user\authentication\UserAuthenticationFactory;
use wcf\system\WCF;
use wcf\util\HeaderUtil;
-use wcf\util\UserUtil;
+use wcf\util\UserUtil;
/**
* Shows the user login form.
/**
* Show the cookie policy.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
/**
* Show the privacy policy.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
/**
* @see \wcf\system\cache\builder\AbstractCacheBuilder::rebuild()
*/
- public function rebuild(array $parameters) {
+ public function rebuild(array $parameters) {
$data = array();
// get "real" menu items
/**
* @see \wcf\system\cache\builder\AbstractCacheBuilder::rebuild()
*/
- public function rebuild(array $parameters) {
+ public function rebuild(array $parameters) {
$data = array();
$menuItemList = new PageMenuItemList();
unset($this->cache[$key]);
}
}
- }
+ }
}
/**
/**
* title link
- * @var string
+ * @var string
*/
public $titleLink = '';
if (empty($template)) {
return '';
}
-
+
WCF::getTPL()->assign(array(
'box' => $this->box,
'template' => $template,
'titleLink' => $this->titleLink
));
-
+
return WCF::getTPL()->fetch($this->templateName);
}
}
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\online\UsersOnlineList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\WCF;
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
if (MODULE_USERS_ONLINE && count(WCF::getUserProfileHandler()->getFollowingUsers())) {
$this->usersOnlineList = new UsersOnlineList();
$this->usersOnlineList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
*/
protected function render() {
if (empty($this->usersOnlineList) || !count($this->usersOnlineList->getObjects())) {
- return '';
+ return '';
}
WCF::getTPL()->assign(array(
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\UserProfileList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\cache\builder\MostActiveMembersCacheBuilder;
use wcf\system\WCF;
* user profile list
* @var \wcf\data\user\UserProfileList
*/
- public $userProfileList = null;
+ public $userProfileList = null;
/**
* @see \wcf\system\dashboard\box\AbstractDashboardBoxContent::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
// get ids
$mostActiveMemberIDs = MostActiveMembersCacheBuilder::getInstance()->getData();
$this->userProfileList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
* @see \wcf\system\dashboard\box\AbstractContentDashboardBox::render()
*/
protected function render() {
- if ($this->userProfileList == null) return '';
+ if ($this->userProfileList == null) return '';
WCF::getTPL()->assign(array(
'mostActiveMembers' => $this->userProfileList
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\UserProfileList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\cache\builder\MostLikedMembersCacheBuilder;
use wcf\system\WCF;
* user profile list
* @var \wcf\data\user\UserProfileList
*/
- public $userProfileList = null;
+ public $userProfileList = null;
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
// get ids
$mostLikedMemberIDs = MostLikedMembersCacheBuilder::getInstance()->getData();
$this->userProfileList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
* @see \wcf\system\dashboard\box\AbstractContentDashboardBox::render()
*/
protected function render() {
- if ($this->userProfileList == null) return '';
+ if ($this->userProfileList == null) return '';
WCF::getTPL()->assign(array(
'mostLikedMembers' => $this->userProfileList
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\UserProfileList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\cache\builder\NewestMembersCacheBuilder;
use wcf\system\WCF;
* user profile list
* @var \wcf\data\user\UserProfileList
*/
- public $userProfileList = null;
+ public $userProfileList = null;
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
// get ids
$newestMemberIDs = NewestMembersCacheBuilder::getInstance()->getData();
$this->userProfileList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
* @see \wcf\system\dashboard\box\AbstractContentDashboardBox::render()
*/
protected function render() {
- if ($this->userProfileList == null) return '';
+ if ($this->userProfileList == null) return '';
WCF::getTPL()->assign(array(
'newestMembers' => $this->userProfileList
// removes orphaned and non-accessable events
UserActivityEventHandler::validateEvents($this->eventList);
- $this->fetched();
+ $this->fetched();
}
/**
// removes orphaned and non-accessable events
UserActivityEventHandler::validateEvents($this->eventList);
- $this->fetched();
+ $this->fetched();
}
/**
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\online\UsersOnlineList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\WCF;
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
if (MODULE_USERS_ONLINE) {
$this->usersOnlineList = new UsersOnlineList();
$this->usersOnlineList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
*/
protected function render() {
if (empty($this->usersOnlineList) || !count($this->usersOnlineList->getObjects())) {
- return '';
+ return '';
}
WCF::getTPL()->assign(array(
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
-use wcf\page\IPage;
+use wcf\data\dashboard\box\DashboardBox;
+use wcf\page\IPage;
use wcf\system\cache\builder\UserStatsCacheBuilder;
use wcf\system\WCF;
class StatsSidebarDashboardBox extends AbstractSidebarDashboardBox {
/**
* displayed stats
- * @var \wcf\system\cache\builder\UserStatsCacheBuilder
+ * @var array
*/
- public $stats = null;
+ public $stats = null;
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
public function init(DashboardBox $box, IPage $page) {
parent::init($box, $page);
- $this->stats = UserStatsCacheBuilder::getInstance()->getData();
+ $this->stats = UserStatsCacheBuilder::getInstance()->getData();
- $this->fetched();
+ $this->fetched();
}
/**
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\UserProfileList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\user\UserBirthdayCache;
use wcf\system\WCF;
use wcf\util\DateUtil;
class TodaysBirthdaysDashboardBox extends AbstractSidebarDashboardBox {
/**
* user profiles
- * @var arra<\wcf\data\user\UserProfile>
+ * @var array<\wcf\data\user\UserProfile>
*/
- public $userProfiles = array();
+ public $userProfiles = array();
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
// get current date
$currentDay = DateUtil::format(null, 'm-d');
}
}
- $this->fetched();
+ $this->fetched();
}
/**
*/
protected function render() {
if (empty($this->userProfiles)) {
- return '';
+ return '';
}
WCF::getTPL()->assign(array(
<?php
namespace wcf\system\dashboard\box;
-use wcf\data\dashboard\box\DashboardBox;
+use wcf\data\dashboard\box\DashboardBox;
use wcf\data\user\UserProfileList;
-use wcf\page\IPage;
+use wcf\page\IPage;
use wcf\system\user\UserBirthdayCache;
use wcf\system\WCF;
use wcf\util\DateUtil;
* user profiles
* @var arra<\wcf\data\user\UserProfile>
*/
- public $userProfiles = array();
+ public $userProfiles = array();
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
// get current date
$currentDay = DateUtil::format(null, 'm-d');
}
}
- $this->fetched();
+ $this->fetched();
}
/**
*/
protected function render() {
if (empty($this->userProfiles)) {
- return '';
+ return '';
}
WCF::getTPL()->assign(array(
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
- parent::init($box, $page);
+ parent::init($box, $page);
if (MODULE_USERS_ONLINE) {
$this->usersOnlineList = new UsersOnlineList();
$this->usersOnlineList->readObjects();
}
- $this->fetched();
+ $this->fetched();
}
/**
*/
protected function render() {
if (empty($this->usersOnlineList) || !count($this->usersOnlineList->getObjects())) {
- return '';
+ return '';
}
$this->titleLink = LinkHandler::getInstance()->getLink('UsersOnlineList');
$usernames = array();
foreach ($matches[1] as $match) {
$username = self::getUsername($match);
- if (!in_array($username, $usernames)) $usernames[] = $username;
+ if (!in_array($username, $usernames)) $usernames[] = $username;
}
if (!empty($usernames)) {
$userList->readObjects();
$users = array();
foreach ($userList as $user) {
- $users[mb_strtolower($user->username)] = $user;
+ $users[mb_strtolower($user->username)] = $user;
}
$text = $userRegex->replace($text, new Callback(function ($matches) use ($users) {
/**
* list of available user option categories
- * @var array<string>
+ * @var array<string>
*/
protected $categoryCache = null;
// read headers
$header = array();
$header = unpack('vminVersion/vgeneralPurposeBit/vcompression/vmtime/vmdate', $this->read(10));
- if ($header['generalPurposeBit'] & 7 /* 3rd bit */) throw new SystemException('Data Descriptors are not supported');
+ if ($header['generalPurposeBit'] & 7 /* 3rd bit */) throw new SystemException('Data Descriptors are not supported');
$second = ($header['mtime'] & 31 /* 5 bits */) * 2;
$minute = ($header['mtime'] >> 5) & 63 /* 6 bits */;
$hour = ($header['mtime'] >> 11) & 31 /* 5 bits */;
/**
* Removes all assigned labels for given object ids.
- *
+ *
* @param integer $objectTypeID
* @param array<integer> $objectID
*/
$this->body .= self::$lineEnding;
// wrap lines after 70 characters
- $this->body .= wordwrap($this->getMessage(), 70);
+ $this->body .= wordwrap($this->getMessage(), 70);
$this->body .= self::$lineEnding.self::$lineEnding;
$this->body .= '--'.$this->getBoundary().self::$lineEnding;
/**
* Option type implementation for the 'about me' text field.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
public function validate(Option $option, $newValue) {
parent::validate($option, $newValue);
-
+
if (WCF::getSession()->getPermission('user.profile.aboutMeMaxLength') < mb_strlen($newValue)) {
throw new UserInputException($option->optionName, 'tooLong');
}
if (empty($newValue)) return;
- $timestamp = @strtotime($newValue);
+ $timestamp = @strtotime($newValue);
if ($timestamp > TIME_NOW) {
throw new UserInputException($option->optionName, 'validationFailed');
}
* @category Community Framework
*/
class SelectOptionType extends RadioButtonOptionType {
- protected $allowEmptyValue = false;
+ protected $allowEmptyValue = false;
/**
* @see \wcf\system\option\IOptionType::getFormElement()
if ($option->contentpattern) {
if (preg_match('~'.$option->contentpattern.'~', $newValue, $matches)) {
unset($matches[0]);
- $newValue = implode('', $matches);
+ $newValue = implode('', $matches);
}
}
/**
* preset event ids
- * @var array<integer>
+ * @var array<integer>
*/
protected $presetEventIDs = array();
if ($userOptionCategory !== null) {
if ($userOptionCategory->packageID != $this->installation->getPackageID()) {
throw new SystemException("Cannot override existing category '".$category['categoryName']."'");
- }
+ }
$categoryEditor = new UserOptionCategoryEditor($userOptionCategory);
$categoryEditor->update($data);
/**
* Handles http requests.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
/**
* Handles a http request.
- *
+ *
* @param string $application
* @param boolean $isACPRequest
*/
/**
* Builds a new request.
- *
+ *
* @param string $application
*/
protected function buildRequest($application) {
/**
* Returns the class data for the active request or null if for the given
* configuration no proper class exist.
- *
+ *
* @param string $controller
* @param string $pageType
* @param string $application
/**
* Returns the active request object.
- *
+ *
* @return \wcf\system\request\Request
*/
public function getActiveRequest() {
/**
* Returns true if the request is an acp request.
- *
+ *
* @return boolean
*/
public function isACPRequest() {
/**
* Returns true, if current host mismatches any known domain.
- *
+ *
* @return boolean
*/
public function inRescueMode() {
abstract class AbstractSearchableObjectType extends AbstractObjectTypeProcessor implements ISearchableObjectType {
/**
* active main menu item
- * @var string
+ * @var string
*/
protected $activeMenuItem = '';
protected $virtualSession = false;
/**
- * true, if this is a new session
- * @var boolean
+ * true if this is a new session
+ * @var boolean
*/
protected $firstVisit = false;
}
/**
- * Returns true, if this is a new session.
- *
+ * Returns true if this is a new session.
+ *
* @return boolean
*/
public function isFirstVisit() {
/**
* Abstract implementation of a stat handler.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
/**
* Counts the total number of rows.
- *
+ *
* @param integer $date
* @param string $tableName
* @param string $dateColumnName
}
/**
- * @see \wcf\system\stat\IStatDailyHandler::getFormattedCounter()
+ * @see \wcf\system\stat\IStatDailyHandler::getFormattedCounter()
*/
public function getFormattedCounter($counter) {
return $counter;
/**
* Stat handler implementation for attachment disk usage.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
class AttachmentDiskUsageStatDailyHandler extends AbstractStatDailyHandler {
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
*/
public function getData($date) {
$sql = "SELECT CEIL(SUM(filesize) / 1000)
}
/**
- * @see \wcf\system\stat\IStatDailyHandler::getFormattedCounter()
+ * @see \wcf\system\stat\IStatDailyHandler::getFormattedCounter()
*/
public function getFormattedCounter($counter) {
return round($counter / 1000, 2); // return mb
/**
* Stat handler implementation for attachment stats.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
class AttachmentStatDailyHandler extends AbstractStatDailyHandler {
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
*/
public function getData($date) {
return array(
/**
* Stat handler implementation for dislike stats.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
/**
* Stat handler implementation for like stats.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
protected $likeValue = Like::LIKE;
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
*/
public function getData($date) {
$sql = "SELECT COUNT(*)
/**
* Stat handler implementation for user stats.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
*/
class UserStatDailyHandler extends AbstractStatDailyHandler {
/**
- * @see \wcf\system\stat\IStatDailyHandler::getData()
+ * @see \wcf\system\stat\IStatDailyHandler::getData()
*/
public function getData($date) {
return array(
if (isset($this->v[$variable][$key])) {
$this->v[$variable][$key] .= $value[$key];
}
- else {
+ else {
$this->v[$variable][$key] = $value[$key];
}
}
if (isset($this->v[$variable][$key])) {
$this->v[$variable][$key] = $value[$key] . $this->v[$variable][$key];
}
- else {
+ else {
$this->v[$variable][$key] = $value[$key];
}
}
$result = '';
if ($counter['print']) {
$result = $counter['count'];
- }
+ }
if ($counter['direction'] == 'down') {
$counter['count'] -= $counter['skip'];
/**
* Manages the user birthday cache.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2014 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
class UserBirthdayCache extends SingletonFactory {
/**
* loaded months
- * @var array<integer>
+ * @var array<integer>
*/
protected $monthsLoaded = array();
/**
* user birthdays
- * @var array<integer>
+ * @var array<integer>
*/
protected $birthdays = array();
/**
* Returns all events for given object type.
- *
+ *
* @param string $objectType
* @return array<\wcf\system\user\notification\event\IUserNotificationEvent>
*/
public function getEvents($objectType) {
if (!isset($this->availableEvents[$objectType])) return array();
-
+
return $this->availableEvents[$objectType];
}
/**
* start timestamp
- * @var integer
+ * @var integer
*/
protected $startDate = 0;
if (strpos($_SERVER['DOCUMENT_ROOT'], 'strato') !== false) {
// strato bugfix
// create tmp folder in document root automatically
- if (!@file_exists($_SERVER['DOCUMENT_ROOT'].'/tmp')) {
+ if (!@file_exists($_SERVER['DOCUMENT_ROOT'].'/tmp')) {
@mkdir($_SERVER['DOCUMENT_ROOT'].'/tmp/', 0777);
self::makeWritable($_SERVER['DOCUMENT_ROOT'].'/tmp/');
}
if ($dir == '..') {
if (end($result) == '..') {
$result[] = '..';
- }
- else {
+ }
+ else {
$lastValue = array_pop($result);
if ($lastValue === '' || $lastValue === null) {
$result[] = '..';
}
}
- }
+ }
else if ($dir !== '' && $dir != '.') {
$result[] = $dir;
}
* Sends no cache headers.
*/
public static function sendNoCacheHeaders() {
- @header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
+ @header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
@header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
@header('Cache-Control: no-cache, must-revalidate');
@header('Pragma: no-cache');
}
&:target {
- background-color: @wcfHighlightBackgroundColor;
+ background-color: @wcfHighlightBackgroundColor;
}
}
}
width: 8px;
}
}
-}
+}
#colorPickerBar {
background-image: url('../images/colorPickerBar.png');
font-family: FontAwesome !important;
font-size: 14px !important;
font-weight: normal !important;
- font-style: normal !important;
+ font-style: normal !important;
margin-left: 4px;
vertical-align: -1px;
}
/* fixes fieldset overflow issues */
/* webkit */
fieldset {
- min-width: 0;
+ min-width: 0;
}
/* firefox */
@-moz-document url-prefix() {
border-radius: 6px;
display: block;
- .transition(background-color, .1s);
+ .transition(background-color, .1s);
&:hover {
background-color: @wcfContainerHoverBackgroundColor;
margin-bottom: -@wcfGapSmall;
> li {
- margin-bottom: @wcfGapSmall;
+ margin-bottom: @wcfGapSmall;
> div {
overflow: hidden;
> .badge.label {
top: -2px;
}
- }
+ }
> small {
display: block;
.dislikeButton.active {
.icon {
- color: rgba(204, 0, 0, 1);
+ color: rgba(204, 0, 0, 1);
}
}