* @return void
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- /* @TODO Maybe we need to do something later here */
+ /* @todo Maybe we need to do something later here */
}
}
break;
}
- /* @TODO Add more filters */
+ /* @todo Add more filters */
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_verifier_class'));
}
}
// Add user auth filter (we don't need an update of the user here because it will be redirected)
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_auth_class'));
- /* @TODO Add some more pre/post filters to the controller */
+ /* @todo Add some more pre/post filters to the controller */
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('rules_accepted_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('account_password_class'));
* @return void
*/
public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
- /* @TODO Add some more pre/post filters to the controller */
+ /* @todo Add some more pre/post filters to the controller */
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('email_validator_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_validator_class'));
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('username_is_guest_class'));
break;
}
- /* @TODO Add more filters */
+ /* @todo Add more filters */
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('password_verifier_class'));
}
}
throw new UserPasswordMismatchException(array($this, $userInstance), User::EXCEPTION_USER_PASS_MISMATCH);
} // END - if
- /* @TODO We need to add something here which will make more than one */
- /* @TODO guest logins, users who are online but based on the same */
- /* @TODO user account. */
+ /* @todo We need to add something here which will make more than one */
+ /* @todo guest logins, users who are online but based on the same */
+ /* @todo user account. */
// Now do the real login. This can be cookie- or session-based login
// which depends on the admins setting then on the user's taste.
* @return void
*/
protected function prepareCommand () {
- /* @TODO Add some stuff here: Some personal data, app/game related data */
+ /* @todo Add some stuff here: Some personal data, app/game related data */
}
/**
// Set the command resolver
$controllerInstance->setResolverInstance($resolverInstance);
- /* @TODO Add some filters to this controller */
+ /* @todo Add some filters to this controller */
// Return the prepared instance
return $controllerInstance;
// News proccess/display-preparation
$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('news_process_class'));
- /* @TODO: Add some filters to this controller */
+ /* @todo: Add some filters to this controller */
// Return the prepared instance
return $controllerInstance;
* @return void
*/
public function connectToDatabase () {
- /* @TODO Do some checks on the database directory and files here */
+ /* @todo Do some checks on the database directory and files here */
}
/**
* @return void
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- /* @TODO Unfinished stub, add functionality here */
+ /* @todo Unfinished stub, add functionality here */
}
}
$authInstance = Registry::getRegistry()->getInstance('auth');
$authInstance->updateAuthData();
- /* @TODO Add more user updates here */
+ /* @todo Add more user updates here */
// Write all updates to the database
$userInstance->flushUpdates();
$this->addFormGroup("", "");
} // END - if
- /* @TODO Add some unique PIN here to bypass problems with some browser and/or extensions */
+ /* @todo Add some unique PIN here to bypass problems with some browser and/or extensions */
// Simply close it
$this->formOpened = false;
}
* @return $rulesUpdated Wether rules has been updated
*/
public function ifRulesHaveChanged () {
- /* @TODO Implement check if rules have been changed */
+ /* @todo Implement check if rules have been changed */
return false;
}
// Shall we encrypt the cookie?
if ($encrypted === true) {
- /* @TODO Encryption of cookie data not yet supported */
+ /* @todo Encryption of cookie data not yet supported */
} // END - if
// For slow browsers set the cookie array element first
$domain = $this->getConfigInstance()->readConfig('cookie_domain');
setcookie($cookieName, $cookieValue, $expires);
- /* @TODO Why are these parameters conflicting? */
+ /* @todo Why are these parameters conflicting? */
//, $path, $domain, (isset($_SERVER['HTTPS']))
return;
- /* @TODO This will send only one cookie out, the first one. */
+ /* @todo This will send only one cookie out, the first one. */
// Now construct the full header
$cookieString = $cookieName . "=" . $cookieValue . "; ";
$cookieString .= "expires=" . date("D, d-F-Y H:i:s", $expires) . " GMT";
- /* @TODO Why are these parameters conflicting? */
+ /* @todo Why are these parameters conflicting? */
// $cookieString .= "; path=".$path."; domain=".$domain;
// Set the cookie as a header
$this->fixedSalt = sha1($serverIp . ":" . serialize($this->getDatabaseInstance()->getConnectionData()));
// One-way data we need for "extra-salting" the random number
- /* @TODO Add site key for stronger salt! */
+ /* @todo Add site key for stronger salt! */
$this->extraSalt = sha1($this->fixedSalt . ":" . getenv('SERVER_SOFTWARE') . ":" . $this->getConfigInstance()->readConfig('date_key'));
// Get config entry for max salt length
* @return $num Pseudo-random number
*/
public function randomNumnber ($min, $max) {
- /* @TODO I had a better random number generator here but now it is somewhere lost :( */
+ /* @todo I had a better random number generator here but now it is somewhere lost :( */
return mt_rand($min, $max);
}
$this->assignVariable($var, $varMatches[3][$key]);
} elseif (!empty($varMatches[2][$key])) {
// Non-string found so we need some deeper analysis...
- /* @TODO Unfinished work or don't die here. */
+ /* @todo Unfinished work or don't die here. */
die("Deeper analysis not yet implemented!");
}
);
// This loop does remove the backslashes (\) in PHP parameters
- /* @TODO Make this some nicer... */
+ /* @todo Make this some nicer... */
while (strpos($eval, "<?") !== false) {
// Get left part before "<?"
$evalLeft = substr($eval, 0, strpos($eval, "<?"));
// If the basePath is false it is invalid
if ($basePath2 === false) {
- /* @TODO: Do not die here. */
+ /* @todo: Do not die here. */
die("Cannot read {$basePath} !");
} else {
// Set base path