Changeset 2951
- Timestamp:
- 05/31/10 05:53:46 (21 months ago)
- File:
-
- 1 edited
-
trunk/gui/admin/settings_ports.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/admin/settings_ports.php
r2950 r2951 145 145 * @param int $show 146 146 * @param boolean $on_updt True: validates for update 147 * @return TRUE if valids, FALSE otherwise 147 148 */ 148 149 function validates_service($name, $ip, $port, $proto, $show, $on_updt = false) { … … 187 188 if(isset($_POST['name_new']) && !empty($_POST['name_new'])) { 188 189 189 $name = strtoupper($_POST['name_new']);190 $ip = $_POST['ip_new'];191 190 $port = $_POST['port_new']; 192 191 $proto = $_POST['port_type_new']; 192 $name = strtoupper($_POST['name_new']); 193 193 $show = $_POST['show_val_new']; 194 $ip = $_POST['ip_new']; 194 195 195 196 if(validates_service($name, $ip, $port, $proto, $show)) { … … 215 216 foreach($_POST['name'] as $index => $name) { 216 217 217 $ip = $_POST['ip'][$index];218 218 $port = $_POST['port'][$index]; 219 219 $proto = $_POST['port_type'][$index]; 220 220 $show = $_POST['show_val'][$index]; 221 $custom = $_POST['custom'][$index]; 222 $ip = $_POST['ip'][$index]; 221 223 222 224 if(validates_service($name, $ip, $port, $proto, $show, true)) { … … 226 228 // See the {@link IspCP_ConfigHandler_Db} adapter class to learn 227 229 // how it work 228 $db_cfg->$db_sname = "$port;$proto;$name;$show; 1;$ip";230 $db_cfg->$db_sname = "$port;$proto;$name;$show;$custom;$ip"; 229 231 } else { 230 232 return; … … 286 288 // Adds a service port or updates one or more services ports 287 289 if (isset($_POST['uaction']) && $_POST['uaction'] == 'apply') { 288 290 289 291 add_update_services(); 290 292 user_goto('settings_ports.php');
Note: See TracChangeset
for help on using the changeset viewer.
