@@ 82-88 (lines=7) @@ | ||
79 | * @param string $banreason Banreason [optional] |
|
80 | * @return array banId |
|
81 | */ |
|
82 | function banAddByIp($ip, $time = 0, $banreason = NULL) { |
|
83 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
84 | ||
85 | if(!empty($banreason)) { $msg = ' banreason='.$this->escapeText($banreason); } else { $msg = NULL; } |
|
86 | ||
87 | return $this->getData('array', 'banadd ip='.$ip.' time='.$time.$msg); |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * banAddByUid |
|
@@ 109-115 (lines=7) @@ | ||
106 | * @param string $banreason Banreason [optional] |
|
107 | * @return array banId |
|
108 | */ |
|
109 | function banAddByUid($uid, $time = 0, $banreason = NULL) { |
|
110 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
111 | ||
112 | if(!empty($banreason)) { $msg = ' banreason='.$this->escapeText($banreason); } else { $msg = NULL; } |
|
113 | ||
114 | return $this->getData('array', 'banadd uid='.$uid.' time='.$time.$msg); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * banAddByName |
|
@@ 136-142 (lines=7) @@ | ||
133 | * @param string $banreason Banreason [optional] |
|
134 | * @return array banId |
|
135 | */ |
|
136 | function banAddByName($name, $time = 0, $banreason = NULL) { |
|
137 | if(!$this->runtime['selected']) { return $this->checkSelected(); } |
|
138 | ||
139 | if(!empty($banreason)) { $msg = ' banreason='.$this->escapeText($banreason); } else { $msg = NULL; } |
|
140 | ||
141 | return $this->getData('array', 'banadd name='.$this->escapeText($name).' time='.$time.$msg); |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * banClient |