*/
protected static $databaseTableIndexName = 'notificationID';
}
-?>
\ No newline at end of file
*/
protected $className = 'wcf\data\user\notification\UserNotificationEditor';
}
-?>
\ No newline at end of file
*/
protected static $baseClass = 'wcf\data\user\notification\UserNotification';
}
-?>
\ No newline at end of file
*/
public $className = 'wcf\data\user\notification\UserNotification';
}
-?>
\ No newline at end of file
*/
protected static $databaseTableIndexName = 'eventID';
}
-?>
\ No newline at end of file
*/
protected $className = 'wcf\data\user\notification\event\UserNotificationEventEditor';
}
-?>
\ No newline at end of file
*/
protected static $baseClass = 'wcf\data\user\notification\event\UserNotificationEvent';
}
-?>
\ No newline at end of file
*/
public $className = 'wcf\data\user\notification\event\UserNotificationEvent';
}
-?>
\ No newline at end of file
*/
protected static $databaseTableIndexName = 'objectTypeID';
}
-?>
\ No newline at end of file
*/
protected $className = 'wcf\data\user\notification\object\type\UserNotificationObjectTypeEditor';
}
-?>
\ No newline at end of file
*/
protected static $baseClass = 'wcf\data\user\notification\object\type\UserNotificationObjectType';
}
-?>
\ No newline at end of file
*/
public $className = 'wcf\data\user\notification\object\type\UserNotificationObjectType';
}
-?>
\ No newline at end of file
*/
protected static $databaseTableIndexName = 'notificationTypeID';
}
-?>
\ No newline at end of file
*/
protected $className = 'wcf\data\user\notification\type\UserNotificationTypeEditor';
}
-?>
\ No newline at end of file
*/
protected static $baseClass = 'wcf\data\user\notification\type\UserNotificationType';
}
-?>
\ No newline at end of file
*/
public $className = 'wcf\data\user\notification\type\UserNotificationType';
}
-?>
\ No newline at end of file
}\r
\r
// start setup\r
-new \wcf\system\WCFSetup();\r
-?>
\ No newline at end of file
+new \wcf\system\WCFSetup();
// starting wcf acp\r
require_once(WCF_DIR.'lib/system/WCF.class.php');\r
require_once(WCF_DIR.'lib/system/WCFACP.class.php');\r
-new wcf\system\WCFACP();\r
-?>
\ No newline at end of file
+new wcf\system\WCFACP();
* @category Community Framework\r
*/\r
require_once('./global.php');\r
-wcf\system\request\RequestHandler::getInstance()->handle('wcf', true);\r
-?>
\ No newline at end of file
+wcf\system\request\RequestHandler::getInstance()->handle('wcf', true);
LanguageEditor::deleteLanguageFiles();\r
\r
// delete all compiled templates\r
-ACPTemplateEngine::deleteCompiledTemplates(WCF_DIR.'acp/templates/compiled/');\r
-?>\r
+ACPTemplateEngine::deleteCompiledTemplates(WCF_DIR.'acp/templates/compiled/');
\r
// initiate wcf core\r
require_once(WCF_DIR.'lib/system/WCF.class.php');\r
-new wcf\system\WCF();\r
-?>
\ No newline at end of file
+new wcf\system\WCF();
* @subpackage acp.action\r
* @category Community Framework\r
*/\r
-class AJAXProxyAction extends \wcf\action\AJAXProxyAction { }\r
-?>
\ No newline at end of file
+class AJAXProxyAction extends \wcf\action\AJAXProxyAction { }
break;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
HeaderUtil::redirect('index.php'.SID_ARG_1ST);\r
exit;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$this->executed();\r
exit;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
break;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
parent::show();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $children;\r
}\r
-}\r
-?>\r
+}
'action' => 'add'\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
'action' => 'edit'\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
'url' => $this->url\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
));
}
}
-?>
\ No newline at end of file
if (!parent::checkOption($option)) return false;\r
return ($option->hidden != 1);\r
}\r
-}\r
-?>\r
+}
parent::show();
}
}
-?>
\ No newline at end of file
\r
parent::show();\r
}\r
-}\r
-?>\r
+}
parent::show();
}
}
-?>
\ No newline at end of file
));
}
}
-?>
\ No newline at end of file
\r
return ($option->editable != 1 && $option->editable != 4 && !$option->disabled);\r
}\r
-}\r
-?>\r
+}
protected function readGroups() {\r
$this->groups = UserGroup::getAccessibleGroups(array(), array(UserGroup::GUESTS, UserGroup::EVERYONE, UserGroup::USERS));\r
}\r
-}\r
-?>\r
+}
parent::validatePassword($password, $confirmPassword);\r
}\r
}\r
-}\r
-?>\r
+}
'fileType' => $this->fileType\r
));\r
}\r
-}\r
-?>\r
+}
\r
return $this->typeObjects[$type];\r
}\r
-}\r
-?>
\ No newline at end of file
+}
// show success message\r
WCF::getTPL()->assign('success', true);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
'enableHTML' => $this->enableHTML\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
throw new UserInputException($option->optionName);\r
}\r
}\r
-}\r
-?>\r
+}
protected static function checkOption(Option $option) {\r
return ($option->searchable == 1 && !$option->disabled && ($option->visible == 3 || $option->visible < 2));\r
}\r
-}\r
-?>\r
+}
return ($option['searchable'] == 1 && !$option['disabled'] && ($option['visible'] == 3 || $option['visible'] < 2));
}
}
-?>
parent::show();
}
}
-?>
\ No newline at end of file
// show page\r
parent::show();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
default: $this->sortField = $this->defaultSortField;\r
}\r
}\r
-}\r
-?>\r
+}
break;\r
}\r
}\r
-}\r
-?>\r
+}
\r
parent::show();\r
}\r
-}\r
-?>\r
+}
default: $this->sortField = $this->defaultSortField;\r
}\r
}\r
-}\r
-?>\r
+}
* @see wcf\page\MultipleLinkPage::readObjects()\r
*/ \r
protected function readObjects() { }\r
-}\r
-?>\r
+}
echo JSON::encode($this->response);\r
exit;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
protected function executed() {\r
EventHandler::getInstance()->fireAction($this, 'executed');\r
}\r
-}\r
-?>
\ No newline at end of file
+}
echo $json;\r
exit;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* Validates current dialog step.\r
*/\r
abstract protected function validateStep();\r
-}\r
-?>
\ No newline at end of file
+}
}
}
}
-?>
\ No newline at end of file
* Handles action result, derived classes must implement this but leave it empty.\r
*/\r
abstract protected function handleResult();\r
-}\r
-?>
\ No newline at end of file
+}
* Executes this action.\r
*/\r
public function execute();\r
-}\r
-?>
\ No newline at end of file
+}
// define escape string shortcut\r
function escapeString($string) {\r
return wcf\system\WCF::getDB()->escapeString($string);\r
-}\r
-?>
\ No newline at end of file
+}
}
}
}
-?>
\ No newline at end of file
\r
return 0;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
public function getReturnValues();
}
-?>
\ No newline at end of file
return static::$baseClass;
}
}
-?>
\ No newline at end of file
return count($objectIDs);
}
}
-?>
\ No newline at end of file
return call_user_func(array($this->className, 'getDatabaseTableAlias'));
}
}
-?>
\ No newline at end of file
*/
public static function resetCache();
}
-?>
\ No newline at end of file
*/
public static function deleteAll(array $objectIDs = array());
}
-?>
\ No newline at end of file
*/
public static function getDatabaseTableIndexName();
}
-?>
\ No newline at end of file
return LinkHandler::getInstance()->getLink($this->menuItemLink);
}
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\acp\menu\item\ACPMenuItemEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\acp\menu\item\ACPMenuItem';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\acp\menu\item\ACPMenuItem';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'sessionID';
}
-?>
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\acp\session\ACPSessionEditor';\r
-}\r
-?>
\ No newline at end of file
+}
return parent::update($parameters);
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\acp\session\ACPSession';\r
-}\r
-?>
\ No newline at end of file
+}
return false;
}
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\acp\session\access\log\ACPSessionAccessLogEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\acp\session\access\log\ACPSessionAccessLog';
}
-?>
\ No newline at end of file
parent::readObjects();
}
}
-?>
\ No newline at end of file
*/
protected static $databaseTableIndexName = 'sessionID';
}
-?>
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\acp\session\data\ACPSessionDataEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\acp\session\data\ACPSessionData';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\acp\session\data\ACPSessionData';\r
-}\r
-?>
\ No newline at end of file
+}
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\acp\session\log\ACPSessionLogEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\acp\session\log\ACPSessionLog';
}
-?>
\ No newline at end of file
parent::readObjects();
}
}
-?>
\ No newline at end of file
*/
protected static $databaseTableIndexName = 'templateID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.template.canUpdateTemplate');\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\acp\template\ACPTemplate';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\acp\template\ACPTemplate';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'packageID';
}
-?>
*/
protected $className = 'wcf\data\application\ApplicationEditor';
}
-?>
*/
protected static $baseClass = 'wcf\data\application\Application';
}
-?>
*/
public $className = 'wcf\data\application\Application';
}
-?>
*/
protected static $databaseTableIndexName = 'groupID';
}
-?>
*/
protected $className = 'wcf\data\application\group\ApplicationGroupEditor';
}
-?>
*/
protected static $baseClass = 'wcf\data\application\group\ApplicationGroup';
}
-?>
*/
public $className = 'wcf\data\application\group\ApplicationGroup';
}
-?>
*/
protected static $databaseTableIndexName = 'listenerID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\cleanup\listener\CleanupListenerEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
public $baseClass = 'wcf\data\cleanup\listener\CleanupListener';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\cleanup\listener\CleanupListener';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'objectID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\core\object\CoreObjectEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\core\object\CoreObject';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\core\object\CoreObject';\r
-}\r
-?>
\ No newline at end of file
+}
return (WCF::getSession()->getPermission('admin.system.cronjobs.canEnableDisableCronjob') && $this->canBeDisabled);
}
}
-?>
\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.cronjobs-*');
}
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\cronjob\Cronjob';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'cronjobLogID';
}
-?>
\ No newline at end of file
*/
protected $className = 'wcf\data\cronjob\log\CronjobLogEditor';
}
-?>
$statement->execute($packageID);
}
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\cronjob\log\CronjobLog';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'listenerID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\event\listener\EventListenerEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
public static $baseClass = 'wcf\data\event\listener\EventListener';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\event\listener\EventListener';\r
-}\r
-?>
\ No newline at end of file
+}
\r
return false;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$language->setAsDefault();
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\language\Language';\r
-}\r
-?>
\ No newline at end of file
+}
setlocale(LC_COLLATE, $this->get('wcf.global.locale.unix').'.UTF-8', $this->get('wcf.global.locale.unix'), $this->get('wcf.global.locale.win'));\r
setlocale(LC_CTYPE, $this->get('wcf.global.locale.unix').'.UTF-8', $this->get('wcf.global.locale.unix'), $this->get('wcf.global.locale.win'));\r
}\r
-}\r
-?>\r
+}
*/
protected static $databaseTableIndexName = 'languageCategoryID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.language.canEditLanguage');\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\language\category\LanguageCategory';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\language\category\LanguageCategory';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'languageItemID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.language.canEditLanguage');\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\language\item\LanguageItem';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\language\item\LanguageItem';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'languageServerID';
}
-?>
*/
protected $permissionsUpdate = array('admin.language.canEditServer');
}
-?>
*/
protected static $baseClass = 'wcf\data\language\server\LanguageServer';
}
-?>
*/
public $className = 'wcf\data\language\server\LanguageServer';
}
-?>
// create data\r
call_user_func(array($this->className, 'updateAll'), $this->parameters['data']);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
@$file->chmod(0777);
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\option\Option';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'categoryID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.system.canEditOption');\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\option\category\OptionCategory';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\option\category\OptionCategory';\r
-}\r
-?>
\ No newline at end of file
+}
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.system.package.canUpdatePackage');\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\Package';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\package\Package';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexIsIdentity = false;
}
-?>
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\package\installation\plugin\PackageInstallationPluginEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\installation\plugin\PackageInstallationPlugin';
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\package\installation\plugin\PackageInstallationPluginObj';\r
-}\r
-?>
\ No newline at end of file
+}
return intval($row['processNo']) + 1;
}
}
-?>
'queueID' => $queue->queueID\r
);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\installation\queue\PackageInstallationQueue';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\package\installation\queue\PackageInstallationQueue';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'packageUpdateID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\package\update\PackageUpdateEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\update\PackageUpdate';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\package\update\PackageUpdate';\r
-}\r
-?>
\ No newline at end of file
+}
return $authData;
}
}
-?>
$server->update(array('disabled' => ($server->disabled) ? 0 : 1));\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\update\server\PackageUpdateServer';
}
-?>
\r
parent::readObjects();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'packageUpdateVersionID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\package\update\version\PackageUpdateVersionEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\package\update\version\PackageUpdateVersion';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\package\update\version\PackageUpdateVersion';\r
-}\r
-?>
\ No newline at end of file
+}
* @return string\r
*/\r
public function get($location, $requestURI, $requestMethod, $match);\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseIndexName = 'locationID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\page\location\PageLocationEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\page\location\PageLocation';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\page\location\PageLocation';\r
-}\r
-?>
\ No newline at end of file
+}
return LinkHandler::getInstance()->getLink($this->menuItemLink);
}
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\page\menu\item\PageMenuItemEditor';\r
-}\r
-?>
\ No newline at end of file
+}
CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.pageMenu-*.php');
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\page\menu\item\PageMenuItem';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'searchID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\search\SearchEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\search\Search';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\search\Search';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'sessionID';
}
-?>
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\session\SessionEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\session\Session';
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\session\Session';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'sessionID';
}
-?>
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\session\data\SessionDataEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\session\data\SessionData';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\session\data\SessionData';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'spiderID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\spider\SpiderEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\spider\Spider';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\spider\Spider';\r
-}\r
-?>
\ No newline at end of file
+}
return RELATIVE_WCF_DIR.'icon/'.$iconName;
}
}
-?>
\ No newline at end of file
\r
return $variables;\r
}\r
-}\r
-?>\r
+}
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\style\StyleEditor';\r
-}\r
-?>
\ No newline at end of file
+}
return $match[0];\r
}\r
}\r
-}\r
-?>\r
+}
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\style\Style';\r
-}\r
-?>
\ No newline at end of file
+}
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.template.canEditTemplate');\r
-}\r
-?>
\ No newline at end of file
+}
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\template\Template';\r
-}\r
-?>
\ No newline at end of file
+}
* @see AbstractDatabaseObjectAction::$permissionsUpdate\r
*/\r
protected $permissionsUpdate = array('admin.template.canEditTemplateGroup');\r
-}\r
-?>
\ No newline at end of file
+}
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\template\group\TemplateGroup';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'listenerID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\template\listener\TemplateListenerEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\template\listener\TemplateListener';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\template\listener\TemplateListener';\r
-}\r
-?>
\ No newline at end of file
+}
return $userList->getObjects();
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\user\User';\r
-}\r
-?>
\ No newline at end of file
+}
$object->updateGroupOptions($this->parameters['options']);\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
SessionHandler::resetSessions();
}
}
-?>
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\user\group\UserGroup';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'optionID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\user\group\option\UserGroupOptionEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\data\user\group\option\UserGroupOption';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\user\group\option\UserGroupOption';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $databaseTableIndexName = 'categoryID';
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\user\group\option\category\UserGroupOptionCategoryEditor';\r
-}\r
-?>
\ No newline at end of file
+}
*/
protected static $baseClass = 'wcf\user\group\option\category\UserGroupOptionCategory';
}
-?>
\ No newline at end of file
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\user\group\option\category\UserGroupOptionCategory';\r
-}\r
-?>
\ No newline at end of file
+}
* @see DatabaseObject::$databaseTableIndexName\r
*/\r
protected static $databaseTableIndexName = 'optionID';\r
-}\r
-?>
\ No newline at end of file
+}
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\user\option\UserOptionEditor';\r
-}\r
-?>
\ No newline at end of file
+}
* @see DatabaseObjectList::$className\r
*/\r
public $className = 'wcf\data\user\option\UserOption';\r
-}\r
-?>
\ No newline at end of file
+}
* @return string\r
*/\r
public function getOutput(User $user, $optionData, $value);\r
-}\r
-?>
\ No newline at end of file
+}
return new UserOptionCategory(null, $row);
}
}
-?>
\ No newline at end of file
* @see AbstractDatabaseObjectAction::$className\r
*/\r
protected $className = 'wcf\data\user\option\category\UserOptionCategoryEditor';\r
-}\r
-?>
\ No newline at end of file
+}
\r
return parent::create($parameters);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
public $className = 'wcf\data\user\option\category\UserOptionCategory';
}
-?>
\ No newline at end of file
'errorType' => $this->errorType\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
}
}
}
-?>
\ No newline at end of file
* Reads the given form parameters.\r
*/\r
public function readFormParameters();\r
-}\r
-?>
\ No newline at end of file
+}
WCF::getTPL()->display($this->templateName);\r
}\r
}\r
-}\r
-?>\r
+}
}
}
}
-?>
\ No newline at end of file
'objects' => $this->objects\r
));\r
}\r
-}\r
-?>\r
+}
* Shows the requested page.\r
*/\r
public function show();\r
-}\r
-?>
\ No newline at end of file
+}
'sortOrder' => $this->sortOrder\r
));\r
}\r
-}\r
-?>\r
+}
'minuteOptions' => $minuteOptions\r
));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return self::$__singletonObjects[$className];
}
}
-?>
\r
return null;\r
}\r
-}\r
-?>\r
+}
}\r
}\r
}\r
-}\r
-?>\r
+}
// assign package name\r
WCF::getTPL()->assign(array('setupPackageName' => self::$setupPackageName));\r
}\r
-}\r
-?>\r
+}
return call_user_func_array(array('wcf\system\WCF', $method), $arguments);
}
}
-?>
*/
public static function __callStatic($method, array $arguments);
}
-?>
* @return User\r
*/\r
public abstract function loginAutomatically($persistent = false, $userClassname = 'wcf\data\user\User');\r
-}\r
-?>\r
+}
protected function checkCookiePassword($user, $password) {\r
return $user->checkCookiePassword($password);\r
}\r
-}\r
-?>\r
+}
return $this->url;
}
}
-?>
* @return array $data\r
*/\r
public function getData($cacheResource);\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $count;\r
}\r
-}\r
-?>\r
+}
return strcmp($listenerA['listenerClassName'], $listenerB['listenerClassName']);\r
} \r
}\r
-}\r
-?>\r
+}
return $files;
}
}
-?>
\ No newline at end of file
\r
return $data;\r
}\r
-}\r
-?>\r
+}
\r
return $data;\r
}\r
-}\r
-?>\r
+}
\r
return $packageList->getObjects();\r
}\r
-}\r
-?>\r
+}
\r
return $spiderList->getObjects();\r
}\r
-}\r
-?>\r
+}
\r
return $data;\r
}\r
-}\r
-?>\r
+}
\r
return $data;\r
}\r
-}\r
-?>\r
+}
return $templateGroupList->getObjects();
}
}
-?>
\r
return $data;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $this->typeObjects[$type];\r
}\r
-}\r
-?>\r
+}
public function getCacheSource() {\r
return $this->cacheSource;\r
}\r
-}\r
-?>\r
+}
public function rebuild($cacheResource, $forceRebuilt = false) {\r
return false;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
public function flush();
}
-?>
\ No newline at end of file
return $this->memcache;
}
}
-?>
\ No newline at end of file
// if ($this->getAdapter() !== null && $this->getAdapter()->getMemcache() !== null) $this->getAdapter()->getMemcache()->close();
}
}
-?>
* @param array $objectIDs\r
*/\r
public function execute(array $objectIDs);\r
-}\r
-?>
\ No newline at end of file
+}
));
}
}
-?>
\ No newline at end of file
));
}
}
-?>
\ No newline at end of file
public function execute(array $data) {\r
CleanupHandler::getInstance()->execute();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* field).\r
*/\r
public function execute(array $data);\r
-}\r
-?>
\ No newline at end of file
+}
CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.cronjobs-'.PACKAGE_ID.'php');
}
}
-?>
public function execute(array $data) {\r
PackageUpdate::refreshPackageDatabaseAutomatically();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
@unlink($filename);
}
}
-?>
$this->pdo->setAttribute(\PDO::ATTR_CASE, \PDO::CASE_NATURAL);\r
$this->pdo->setAttribute(\PDO::ATTR_STRINGIFY_FETCHES, false);\r
}\r
-}\r
-?>\r
+}
\r
parent::show();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$this->pdo->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
}
}
-?>
return StringStack::pushToStringStack($matches[0], 'postgresQuotes');
}
}
-?>
\ No newline at end of file
*/
public abstract function dropIndex($tableName, $indexName);
}
-?>
\ No newline at end of file
return $definition;
}
}
-?>
\ No newline at end of file
throw new DatabaseException("Unknown / unsupported data type '".$mySQLType."'", $this->dbObj);
}
}
-?>
\ No newline at end of file
return '';
}
}
-?>
\ No newline at end of file
public function __toString() {\r
return $this->conditions;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getParameters() {\r
return $this->parameters;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$statement->execute();
}
}
-?>
\ No newline at end of file
public static function generateKey($className, $eventName) {\r
return $eventName.'@'.$className;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @param string $eventName\r
*/\r
public function execute($eventObj, $className, $eventName);\r
-}\r
-?>
\ No newline at end of file
+}
));\r
exit;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
@header('HTTP/1.0 404 Not Found');\r
parent::show();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
));\r
WCF::getTPL()->display('userException');\r
}\r
-}\r
-?>
\ No newline at end of file
+}
@header('HTTP/1.0 403 Forbidden');\r
WCF::getTPL()->display('permissionDenied');\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* This method is called by WCF::handleException().\r
*/\r
public function show();\r
-}\r
-?>
\ No newline at end of file
+}
\r
<?php\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function show() {\r
echo '<pre>' . $this->getTraceAsString() . '</pre>';\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getType() {\r
return $this->type;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function __construct($message) {\r
die($message);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
}\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @return string\r
*/\r
public function getHTML($formName);\r
-}\r
-?>
\ No newline at end of file
+}
* @return string\r
*/\r
public function getHTML($formName);\r
-}\r
-?>
\ No newline at end of file
+}
}\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</fieldset>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</div>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getName() {\r
return $this->name;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</div>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getParent() {\r
return $this->parent;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getValue() {\r
return $this->value;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</div>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
<label><input type="checkbox" name="{$formName}{$this->getParent()->getName()}[]" value="{$this->getValue()}" /> {$this->getLabel()}</label>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</div>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
<label><input type="radio" name="{$formName}{$this->getParent()->getName()}" value="{$this->getValue()}" /> {$this->getLabel()}</label>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
</div>\r
HTML;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return substr($name, 0, $maxChars - 3) . '...' . $extension;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return call_user_func_array('ftp_' . $function, $arguments);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
throw new SystemException('Can not call file method ' . $function, 11003);\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$this->rewind();\r
return $eof - $correction;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getErrorDesc() {\r
return $this->errorDesc;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function isZipped() {\r
return $this->isZipped;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return true;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return pack("H*H*H*H*", $timeLeft, $timeRight, $dateLeft, $dateRight);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $languages;
}
}
-?>
"Attachments: ".print_r($mail->getAttachments(), true)."\n\n".\r
$mail->getMessage()."\n\n";\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $string;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @param Mail $mail\r
*/\r
public abstract function sendMail(Mail $mail); \r
-}\r
-?>
\ No newline at end of file
+}
if (MAIL_USE_F_PARAM) return @mb_send_mail($mail->getToString(), $mail->getSubject(), $mail->getBody(), $mail->getHeader(), '-f'.MAIL_FROM_ADDRESS);\r
else return @mb_send_mail($mail->getToString(), $mail->getSubject(), $mail->getBody(), $mail->getHeader());\r
}\r
-}\r
-?>
\ No newline at end of file
+}
protected function write($data) {\r
$this->connection->puts($data.Mail::$crlf);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
if (isset($this->menuItems[$parentMenuItem])) return $this->menuItems[$parentMenuItem];\r
return array();\r
}\r
-}\r
-?>\r
+}
* @return string\r
*/\r
public function getLink();\r
-}\r
-?>\r
+}
CacheHandler::getInstance()->addResource('menu-'.PACKAGE_ID, WCF_DIR.'cache/cache.menu-'.PACKAGE_ID.'.php', 'wcf\system\cache\CacheBuilderACPMenu');\r
$this->menuItems = CacheHandler::getInstance()->get('menu-'.PACKAGE_ID);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getNotifications() {\r
return 0;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $item->getProvider()->isVisible();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @return boolean\r
*/\r
public function getNotifications();\r
-}\r
-?>
\ No newline at end of file
+}
* @return string\r
*/\r
public function getData(Option $option, $newValue);\r
-}\r
-?>
\ No newline at end of file
+}
$conditions->add("option_value.userOption".$option->optionID." = ?", array(1));\r
return true;\r
}\r
-}\r
-?>\r
+}
}\r
return $newValue;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$conditions->add("option_value.userOption".$option->optionID." = ?", array($value));\r
return true;\r
}\r
-}\r
-?>\r
+}
return floatval($newValue);
}
}
-?>
\ No newline at end of file
public function getData(Option $option, $newValue) {\r
return intval($newValue);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$conditions->add("option_value.userOption".$option->optionID." = ?", array(implode("\n", $value)));\r
return true;\r
}\r
-}\r
-?>\r
+}
public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, $value) {\r
return false;\r
}\r
-}\r
-?>\r
+}
$conditions->add("option_value.userOption".$option->optionID." = ?", array($value));\r
return true;\r
}\r
-}\r
-?>\r
+}
'enableOptions' => $enableOptions\r
);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$conditions->add("option_value.userOption".$option->optionID." LIKE ?", array('%'.addcslashes($value, '_%').'%'));\r
return true;\r
}\r
-}\r
-?>\r
+}
));\r
return WCF::getTPL()->fetch('optionTypeTextarea');\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getData(Option $option, $newValue) {\r
return $newValue; \r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @param boolean\r
*/\r
public function getCondition(PreparedStatementConditionBuilder &$conditions, Option $option, $value);\r
-}\r
-?>\r
+}
* @return mixed $value\r
*/\r
public function merge(array $values);\r
-}\r
-?>
\ No newline at end of file
+}
\r
return false;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return implode(',', $result);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
if (in_array(-1, $values)) return -1;\r
return parent::merge($values);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
if (count($values) == 0) return -1;\r
return min($values);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function merge(array $values) {\r
return max($values);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function merge(array $values) {\r
return min($values);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $result;
}
}
-?>
\ No newline at end of file
\r
return $result;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $this->phpRequirements;
}
}
-?>
self::$packageDependencyCache = CacheHandler::getInstance()->get('packageDependencies-'.PACKAGE_ID);
}
}
-?>
\ No newline at end of file
$this->packageInstallation = $packageInstallation;
}
}
-?>
return StringUtil::substring(StringUtil::getRandomID(), 0, 8);
}
}
-?>
return $updateServer->getAuthData();
}
}
-?>
public function splitNode() {\r
return $this->splitNode;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $this->response['content'];
}
}
-?>
WCF::getSession()->register('cachedPackageUpdateDownloads', $cachedDownloads);
}
}
-?>
class TemplatesFileHandler extends ACPTemplatesFileHandler {
protected $tableName = '_template';
}
-?>
\ No newline at end of file
*/
public $tagName = 'acpmenuitem';
}
-?>
*/
protected function findExistingItem(array $data) { }
}
-?>
$statement->execute(array($this->installation->getPackageID()));
}
}
-?>
CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.coreObjects.php');
}
}
-?>
$data['nextExec'] = TIME_NOW;
}
}
-?>
CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.eventListener-*.php');
}
}
-?>
*/
protected function findExistingItem(array $data) { }
}
-?>
* Executes the uninstallation of this plugin.\r
*/\r
public function uninstall();\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $result;\r
}\r
-}\r
-?>\r
+}
*/
public function uninstall() {}
}
-?>
return $this->installation->getArchive()->getTar()->extractToString($fileindex);
}
}
-?>
$style->writeStyleFile();\r
}\r
}\r
-}\r
-?>\r
+}
}\r
}\r
}\r
-}\r
-?>\r
+}
CacheHandler::getInstance()->clear(WCF_DIR.'cache/templateListener', '*.php');
}
}
-?>
parent::uninstall();
}
}
-?>
return $application->domainName . $application->domainPath . $url . (strstr($url, '?') === false ? SID_ARG_1ST : SID_ARG_2ND_NOT_ENCODED);
}
}
-?>
public function getPageType() {\r
return $this->pageType;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function getActiveRequest() {\r
return $this->activeRequest;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
*/
abstract protected function initSession();
}
-?>
\r
parent::init();\r
}\r
-}\r
-?>\r
+}
* @param array $files\r
*/\r
public function logFiles(array $files);\r
-}\r
-?>
\ No newline at end of file
+}
}\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
// TODO: else throw SystemException ?\r
}\r
\r
-}\r
-?>\r
+}
$this->templateGroupID = 0;
}
}
-?>
protected function getCompiler() {\r
return new TemplateCompiler($this);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* Template Listener are not available during setup.\r
*/\r
protected function loadTemplateListeners() {}\r
-}\r
-?>
\ No newline at end of file
+}
public function getCurrentTemplate() {\r
return $this->getCurrentIdentifier();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
* @return boolean\r
*/\r
public function next(TemplateEngine $tplObj);\r
-}\r
-?>
\ No newline at end of file
+}
* @return string php code \r
*/\r
public function executeEnd(TemplateScriptingCompiler $tplObj);\r
-}\r
-?>
\ No newline at end of file
+}
* @return string output\r
*/\r
public function execute($tagArgs, TemplateEngine $tplObj);\r
-}\r
-?>
\ No newline at end of file
+}
* @return string output \r
*/\r
public function execute($tagArgs, TemplateEngine $tplObj);\r
-}\r
-?>
\ No newline at end of file
+}
* @return string $sourceContent\r
*/\r
public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler);\r
-}\r
-?>
\ No newline at end of file
+}
return $string;
}
}
-?>
\ No newline at end of file
\r
return false;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function executeEnd(TemplateScriptingCompiler $compiler) {\r
throw new SystemException($compiler->formatSyntaxError("unknown tag {/append}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function executeEnd(TemplateScriptingCompiler $compiler) {\r
throw new SystemException($compiler->formatSyntaxError("unknown tag {/assign}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function executeEnd(TemplateScriptingCompiler $compiler) {\r
throw new SystemException($compiler->formatSyntaxError("unknown tag {/fetch}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return "<?php \$_icon".$hash." = ob_get_contents(); ob_end_clean(); echo wcf\system\style\StyleHandler::getInstance()->getStyle()->getIconPath(\$_icon".$hash."); ?>";
}
}
-?>
\r
return $phpCode;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$hash = StringUtil::getRandomID();\r
return "<?php \$_lang".$hash." = ob_get_contents(); ob_end_clean(); echo wcf\system\WCF::getLanguage()->getDynamicVariable(\$_lang".$hash.", \$this->tagStack[count(\$this->tagStack) - 1][1]); array_pop(\$this->tagStack); ?>";\r
}\r
-}\r
-?>
\ No newline at end of file
+}
throw new SystemException($compiler->formatSyntaxError("unknown tag {/prepend}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);
}
}
-?>
\ No newline at end of file
return "<?php \$_lang".$hash." = ob_get_contents(); ob_end_clean(); echo WCF::getLanguage()->get(\$_lang".$hash."); ?>";
}
}
-?>
\ No newline at end of file
\r
return $result;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $result;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return $text;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
$value = $this->encodeHTML($value);\r
return '<option label="'.$value.'" value="'.$this->encodeHTML($key).'"'.(in_array($key, $this->selected) ? ' selected="selected"' : '').'>'.$value."</option>\n";\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return RELATIVE_WCF_DIR.'icon/'.$filename;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $html;
}
}
-?>
\ No newline at end of file
return Option::parseSelectOptions($tagArgs[0]);
}
}
-?>
\ No newline at end of file
\r
return $result; \r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function execute($tagArgs, TemplateEngine $tplObj) {\r
return DateUtil::format(DateUtil::getDateTimeByTimestamp($tagArgs[0]), (!empty($tagArgs[2]) ? $tagArgs[2] : DateUtil::DATE_FORMAT));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return DateUtil::diff($start, $end, 'string');
}
}
-?>
\ No newline at end of file
\r
return $tagArgs[0];\r
}\r
-}\r
-?>
\ No newline at end of file
+}
public function execute($tagArgs, TemplateEngine $tplObj) {\r
return FileUtil::formatFilesize($tagArgs[0]);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return FileUtil::formatFilesizeBinary($tagArgs[0]);
}
}
-?>
\ No newline at end of file
$dateTime = DateUtil::getDateTimeByTimestamp($tagArgs[0]);\r
return str_replace('%time%', DateUtil::format($dateTime, DateUtil::TIME_FORMAT), str_replace('%date%', DateUtil::format($dateTime, DateUtil::DATE_FORMAT), WCF::getLanguage()->get('wcf.global.date.dateTimeFormat')));\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return '<time datetime="'.DateUtil::format($dateTimeObject, 'c').'" class="datetime" data-timestamp="'.$timestamp.'" data-date="'.$date.'" data-time="'.$time.'" data-offset="'.$dateTimeObject->getOffset().'">'.$dateTime.'</time>';\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $string;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $sourceContent;
}
}
-?>
\ No newline at end of file
return $newContent;
}
}
-?>
return $sourceContent;
}
}
-?>
\r
return $sourceContent;\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return $array;\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
throw new SystemException('There is no access to the system temporary folder '.$reason.' and no user specific temporary folder exists in '.WCF_DIR.'! This is a misconfiguration of your webserver software! Please create a folder called '.$path.' using your favorite ftp program, make it writable and then retry this installation.', 10000);\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
}\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
return self::$availableTimezones;
}
}
-?>
\ No newline at end of file
public static function isApacheModule() {\r
return function_exists('apache_get_version');\r
}\r
-}\r
-?>
\ No newline at end of file
+}
if ($sendStatusCode) @header('HTTP/1.1 307 Temporary Redirect');\r
header('Location: '.$location);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
default: return '';\r
}\r
}\r
-}\r
-?>
\ No newline at end of file
+}
}
}
}
-?>
\ No newline at end of file
\r
return array();\r
}\r
-}\r
-?>
\ No newline at end of file
+}
\r
return str_shuffle($password);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
@chmod(WCF_DIR . 'acp/style/style-rtl.css', 0777);
}
}
-?>
\ No newline at end of file
\r
return substr(FileUtil::unifyDirSeperator($REQUEST_URI), 0, 255);\r
}\r
-}\r
-?>
\ No newline at end of file
+}
throw new SystemException($message);\r
}\r
}\r
-}\r
-?>\r
+}
\r
define('CACHE_SOURCE_TYPE', 'disk');\r
define('ENABLE_SESSION_DATA_CACHE', 0);\r
-define('MODULE_MASTER_PASSWORD', 1);\r
-?>
\ No newline at end of file
+define('MODULE_MASTER_PASSWORD', 1);