mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Merged in botanic/rc-botanic-webdev/rc-botanic-webdev (pull request #34)
fixed some more static non-static warnings
This commit is contained in:
parent
9a6f3ba85d
commit
6f97c0ade9
4 changed files with 7 additions and 7 deletions
|
@ -221,7 +221,7 @@ class Ticket_Log{
|
||||||
* get the action text(string) array.
|
* get the action text(string) array.
|
||||||
* this is being read from the language .ini files.
|
* this is being read from the language .ini files.
|
||||||
*/
|
*/
|
||||||
public function getActionTextArray(){
|
public static function getActionTextArray(){
|
||||||
$variables = Helpers::handle_language();
|
$variables = Helpers::handle_language();
|
||||||
$result = array();
|
$result = array();
|
||||||
foreach ( $variables['ticket_log'] as $key => $value ){
|
foreach ( $variables['ticket_log'] as $key => $value ){
|
||||||
|
|
|
@ -414,7 +414,7 @@ class Users{
|
||||||
* @param $pass the new password.
|
* @param $pass the new password.
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
protected function setAmsPassword($user, $pass){
|
protected static function setAmsPassword($user, $pass){
|
||||||
|
|
||||||
$values = Array('user' => $user, 'pass' => $pass);
|
$values = Array('user' => $user, 'pass' => $pass);
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ class Users{
|
||||||
* @param $mail the new email address
|
* @param $mail the new email address
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
protected function setAmsEmail($user, $mail){
|
protected static function setAmsEmail($user, $mail){
|
||||||
|
|
||||||
$values = Array('user' => $user, 'mail' => $mail);
|
$values = Array('user' => $user, 'mail' => $mail);
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ class WebUsers extends Users{
|
||||||
* @param $pass the new password.
|
* @param $pass the new password.
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
public function setPassword($user, $pass){
|
public static function setPassword($user, $pass){
|
||||||
$hashpass = crypt($pass, WebUsers::generateSALT());
|
$hashpass = crypt($pass, WebUsers::generateSALT());
|
||||||
$reply = WebUsers::setAmsPassword($user, $hashpass);
|
$reply = WebUsers::setAmsPassword($user, $hashpass);
|
||||||
$drupal_pass = user_hash_password($pass);
|
$drupal_pass = user_hash_password($pass);
|
||||||
|
@ -223,7 +223,7 @@ class WebUsers extends Users{
|
||||||
* @param $mail the new emailaddress.
|
* @param $mail the new emailaddress.
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
public function setEmail($user, $mail){
|
public static function setEmail($user, $mail){
|
||||||
$reply = WebUsers::setAmsEmail($user, $mail);
|
$reply = WebUsers::setAmsEmail($user, $mail);
|
||||||
$values = Array('user' => $user, 'mail' => $mail);
|
$values = Array('user' => $user, 'mail' => $mail);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -230,7 +230,7 @@ class WebUsers extends Users{
|
||||||
* @param $pass the new password.
|
* @param $pass the new password.
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
public function setPassword($user, $pass){
|
public static function setPassword($user, $pass){
|
||||||
|
|
||||||
$hashpass = crypt($pass, WebUsers::generateSALT());
|
$hashpass = crypt($pass, WebUsers::generateSALT());
|
||||||
$reply = WebUsers::setAmsPassword($user, $hashpass);
|
$reply = WebUsers::setAmsPassword($user, $hashpass);
|
||||||
|
@ -254,7 +254,7 @@ class WebUsers extends Users{
|
||||||
* @param $mail the new emailaddress.
|
* @param $mail the new emailaddress.
|
||||||
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
* @return ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline.
|
||||||
*/
|
*/
|
||||||
public function setEmail($user, $mail){
|
public static function setEmail($user, $mail){
|
||||||
$reply = WebUsers::setAmsEmail($user, $mail);
|
$reply = WebUsers::setAmsEmail($user, $mail);
|
||||||
$values = Array('user' => $user, 'mail' => $mail);
|
$values = Array('user' => $user, 'mail' => $mail);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue