1 <? |
1 <? |
2 |
|
3 // +--------------------------------------------------------------------+ |
|
4 // | PowerAdmin | |
|
5 // +--------------------------------------------------------------------+ |
|
6 // | Copyright (c) 1997-2002 The PowerAdmin Team | |
|
7 // +--------------------------------------------------------------------+ |
|
8 // | This source file is subject to the license carried by the overal | |
|
9 // | program PowerAdmin as found on http://poweradmin.sf.net | |
|
10 // | The PowerAdmin program falls under the QPL License: | |
|
11 // | http://www.trolltech.com/developer/licensing/qpl.html | |
|
12 // +--------------------------------------------------------------------+ |
|
13 // | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl> | |
|
14 // | Sjeemz <sjeemz <AT> sjeemz <DOT> nl> | |
|
15 // +--------------------------------------------------------------------+ |
|
16 |
|
17 // Filename: dns.inc.php |
|
18 // Startdate: 26-10-2002 |
|
19 // Description: checks whether a given content is valid. |
|
20 // A lot of DNS Record features are found to be here and also are to be placed here. |
|
21 // If they are authorized this code handles that they can access stuff. |
|
22 // |
|
23 // $Id: dns.inc.php,v 1.23 2003/02/23 21:31:13 azurazu Exp $ |
|
24 // |
|
25 |
|
26 |
2 |
27 /* |
3 /* |
28 * Validates an IPv4 IP. |
4 * Validates an IPv4 IP. |
29 * returns true if valid. |
5 * returns true if valid. |
30 */ |
6 */ |
31 function validate_input($recordid, $zoneid, $type, &$content, &$name, &$prio, &$ttl) |
7 function validate_input($zoneid, $type, &$content, &$name, &$prio, &$ttl) |
32 { |
8 { |
33 global $db; |
9 global $db; |
34 |
10 |
35 // Has to validate content first then it can do the rest |
11 // Has to validate content first then it can do the rest |
36 // Since if content is invalid already it can aswell be just removed |
12 // Since if content is invalid already it can aswell be just removed |