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