<xs:minInclusive value="0" />
<xs:maxInclusive value="1" />
</xs:restriction>
- </xs:simpleType>
+ </xs:simpleType>
</xs:schema>
\ No newline at end of file
public function readFormParameters() {
parent::readFormParameters();
- if (isset($_POST['username'])) $this->username = StringUtil::trim($_POST['username']);
+ if (isset($_POST['username'])) $this->username = StringUtil::trim($_POST['username']);
if (isset($_POST['email'])) $this->email = StringUtil::trim($_POST['email']);
if (isset($_POST['confirmEmail'])) $this->confirmEmail = StringUtil::trim($_POST['confirmEmail']);
if (isset($_POST['password'])) $this->password = $_POST['password'];
public function validate() {
// validate static user options
try {
- $this->validateUsername($this->username);
+ $this->validateUsername($this->username);
}
catch (UserInputException $e) {
$this->errorType[$e->getField()] = $e->getType();
}
try {
- $this->validateEmail($this->email, $this->confirmEmail);
+ $this->validateEmail($this->email, $this->confirmEmail);
}
catch (UserInputException $e) {
$this->errorType[$e->getField()] = $e->getType();
* string used to wrap email adresses
* @var string
*/
- public $textSeparator = '"';
+ public $textSeparator = '"';
/**
* users whose email addresses are exported
ON (option_value.userID = user_table.userID)";
// build search condition
- $this->conditions = new PreparedStatementConditionBuilder();
+ $this->conditions = new PreparedStatementConditionBuilder();
// static fields
$this->buildStaticConditions();
// export mail address
public $fileType = 'csv';
public $separator = ',';
- public $textSeparator = '"';
+ public $textSeparator = '"';
// send mail
public $subject = '';
* ids of result objects
* @var array<integer>
*/
- public $objectIDs = null;
+ public $objectIDs = null;
/**
* sql offset
* Validates permissions and parameters.
*/
public function validateImport() {
- parent::validateCreate();
+ parent::validateCreate();
}
/**
* Validates permissions and parameters.
*/
public function validateUpdateAll() {
- parent::validateCreate();
+ parent::validateCreate();
}
/**
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($cache, $packageID) = explode('-', $cacheResource['cache']);
+ list($cache, $packageID) = explode('-', $cacheResource['cache']);
$data = array();
// get all menu items and filter menu items with low priority
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($cache, $packageID) = explode('-', $cacheResource['cache']);
+ list($cache, $packageID) = explode('-', $cacheResource['cache']);
$data = array(
'actions' => array('user' => array(), 'admin' => array()),
'inheritedActions' => array('user' => array(), 'admin' => array())
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($cache, $packageID, $styleID) = explode('-', $cacheResource['cache']);
+ list($cache, $packageID, $styleID) = explode('-', $cacheResource['cache']);
$data = array();
// get active package
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($cache, $packageID) = explode('-', $cacheResource['cache']);
+ list($cache, $packageID) = explode('-', $cacheResource['cache']);
$data = array();
// get all menu items and filter menu items with low priority
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($cache, $packageID, $environment) = explode('-', $cacheResource['cache']);
+ list($cache, $packageID, $environment) = explode('-', $cacheResource['cache']);
// get templates for current package id
$templateListenerList = new TemplateListenerList();
* @see wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
- list($packageID, $environment, $templateName) = explode('-', $cacheResource['cache']);
+ list($packageID, $environment, $templateName) = explode('-', $cacheResource['cache']);
// get template codes for specified template
$templateListenerList = new TemplateListenerList();
*
* @param wcf\system\mail\Mail $mail
*/
- abstract public function sendMail(Mail $mail);
+ abstract public function sendMail(Mail $mail);
}
$result .= $read;
if (substr($read, 3, 1) == " ") break;
}
- return $result;
+ return $result;
}
/**
* @param string $menuItem name of the active menu item
*/
public function setActiveMenuItem($menuItem) {
- $this->activeMenuItems = array();
+ $this->activeMenuItems = array();
// build active menu list
while (isset($this->menuItemList[$menuItem])) {
if (!preg_match("/^[\w-\.]+$/", $data['name'])) {
$matches = array();
preg_match_all("/(\W)/", $data['name'], $matches);
- throw new SystemException("The user option '".$data['name']."' has at least one non-alphanumeric character (underscore is permitted): (".implode("), ( ", $matches[1]).").");
+ throw new SystemException("The user option '".$data['name']."' has at least one non-alphanumeric character (underscore is permitted): (".implode("), ( ", $matches[1]).").");
}
$this->saveOption($data, $data['categoryname']);
* @return string
*/
public function getClassName() {
- return $this->className;
+ return $this->className;
}
/**
// calculate page links
$maxLinks = static::SHOW_LINKS - 4;
$linksBeforePage = $tagArgs['page'] - 2;
- if ($linksBeforePage < 0) $linksBeforePage = 0;
+ if ($linksBeforePage < 0) $linksBeforePage = 0;
$linksAfterPage = $tagArgs['pages'] - ($tagArgs['page'] + 1);
- if ($linksAfterPage < 0) $linksAfterPage = 0;
+ if ($linksAfterPage < 0) $linksAfterPage = 0;
if ($tagArgs['page'] > 1 && $tagArgs['page'] < $tagArgs['pages']) {
$maxLinks--;
}
// darwin fix
if ($REMOTE_ADDR == '::1' || $REMOTE_ADDR == 'fe80::1') {
- $REMOTE_ADDR = '127.0.0.1';
+ $REMOTE_ADDR = '127.0.0.1';
}
$REMOTE_ADDR = self::convertIPv4To6($REMOTE_ADDR);
> a {
display: inline-block;
color: @wcfColor;
- font-weight: bold;
+ font-weight: bold;
height: 30px;
line-height: 30px;
text-align: center;
- width: 30px;
+ width: 30px;
.textShadow(@wcfContainerBackgroundColor);
}
.dialogTitlebar {
background-color: @wcfTabularBoxBackgroundColor;
- border-bottom: 1px solid rgba(0, 0, 0, .1);
+ border-bottom: 1px solid rgba(0, 0, 0, .1);
display: block;
padding: 10px 20px;
min-height: 27px;
z-index: 800;
.borderRadius(6px);
- .boxShadow(0, 3px, rgba(0, 0, 0, .3), 7px);
+ .boxShadow(0, 3px, rgba(0, 0, 0, .3), 7px);
.pointer {
border-color: @wcfTooltipBackgroundColor transparent;