Commit c3aa122f348aed93d19155f7281782f7e46488c9
0 parents
First public release
Showing
86 changed files
with
6864 additions
and
0 deletions
INSTALL.md
0 → 100644
1 | +++ a/INSTALL.md | |
1 | +# SMBind-ng Installation Guide | |
2 | + | |
3 | +## Requirements | |
4 | + * Any kind of webserver with php usage abilities (tested on apache2, lighttpd, | |
5 | + nginx) | |
6 | + * php interpreter (5.3 or greater - tested on 5.3) | |
7 | + * php modules | |
8 | + * one of mysql, pgsql | |
9 | + * mdb2 | |
10 | + * mdb2 sql drivers (tested on mysql) | |
11 | + * cgi | |
12 | + * smarty (version 2 or newer - tested on v2 and v3) | |
13 | + * bind (9.3 or newer for dnssec abilities) | |
14 | + * dnssec-tools (optional for securing dns zones) | |
15 | + * acl (optional for securing dns zones) | |
16 | + * SQL server (tested on MySQL) | |
17 | + | |
18 | +## Installation | |
19 | + | |
20 | +### Bind | |
21 | +Set up your bind, and configure it to access other masters and enable zone | |
22 | +transfer for its slaves. | |
23 | + | |
24 | +### SMBind-ng PHP code | |
25 | +Unpack contents to somewhere on your server (eg. /var/www/html/smbind-ng) and | |
26 | +setup your virtual server to access by default the *index.php*. | |
27 | + | |
28 | +Create the following directories beside the *index.php* and make it writable by | |
29 | +current webserver user: | |
30 | + *tmp* | |
31 | + *templates_c* | |
32 | + | |
33 | +All other directories and files can be write protected. | |
34 | + | |
35 | +### Configuration directories and files | |
36 | +1. Create a subdirectory with full permission to user of your webserver for | |
37 | +keeping your zones. You need to make it readable for bind. eg. | |
38 | + */etc/smbind-ng* | |
39 | + Recommended solution: owner of directory let the root user and bind group, | |
40 | +webserver user let the member of the bind group, and the directory let writable | |
41 | +by owned group. | |
42 | +2. Create a file with same permissions in this directory for saving zone | |
43 | +definitions - eg. | |
44 | + *touch smbind-ng.conf.* | |
45 | +3. Create a subdirectory for keeping zone files with same permissions at the | |
46 | +step 1. | |
47 | + | |
48 | +### Modify bind configuration | |
49 | +On your bind options set this folder to use with *directory* option and | |
50 | +*managed-keys* option (folder created at the step 3 above). | |
51 | +Include the master and slave configuration files into your bind config - what | |
52 | +created at the step 2. | |
53 | + | |
54 | +Restart your bind daemon. | |
55 | + | |
56 | +### Database | |
57 | +Create a database user with full permission to access a non existing database | |
58 | +with any name. | |
59 | +Log in your database server with that user, and create an empty database. | |
60 | +Take the initial database dump, and load it to this schema with this newly | |
61 | +created user. | |
62 | +*mysql.sql* is for MySQL, *pgsql.sql* is for PostrgeSQL eg. for MySQL: | |
63 | + *mysql -h yourserver -u youruser -pYourP@ssW0rd yourdb <mysql.sql* | |
64 | + | |
65 | +### Setup the PHP app | |
66 | +See configuration parameters below | |
67 | + | |
68 | +### DNSSEC related options | |
69 | + | |
70 | +#### Bind options | |
71 | +In your bind configuration set the following options: | |
72 | + | |
73 | +*dnssec-enable yes;* | |
74 | +*dnssec-validation auto;* | |
75 | +*dnssec-lookaside auto;* | |
76 | + | |
77 | +And then restart your bind daemon. | |
78 | + | |
79 | +#### Roller daemon | |
80 | +Create a directory for keeping file of roller daemon, and add write permissions | |
81 | +for the webserver user group. eg. | |
82 | + | |
83 | +*setfacl -b /etc/rollrecdir* | |
84 | +*setfacl -m 'www-data:rwx' /etc/rollrecdir* | |
85 | + | |
86 | +Set up this directory for roller daemon to use this directory for rolling zones. | |
87 | +eg. in your /etc/default/rollerd file use similar option with this: | |
88 | + | |
89 | +*DAEMON_OPTS="-rrfile /etc/smbind-ng/rollrec/zones.rollrec"* | |
90 | + | |
91 | +And then reload your roller daemon. | |
92 | + | |
93 | +## Configuration parameters | |
94 | +The application has a *config.php* file in the *config* directory of the root | |
95 | +of your SMBind-ng webapp directory. | |
96 | + | |
97 | +Format: $_CONF['variablename'] = value; | |
98 | + | |
99 | +Variables (mark **bold** for the required parameters): | |
100 | + | |
101 | +**db_type** - Type of the database (eg. 'mysql') | |
102 | +**db_user** - Name of the owner of database schema (eg. 'smbind') | |
103 | +**db_pass** - Password of the user above | |
104 | +db_host - Resolvable name or IP address of the database host (default: | |
105 | +'localhost') | |
106 | +db_port - Port number of the database server (default: 3306 or 5432 depends on | |
107 | +db_type) | |
108 | +**db_db** - Name of the database schema | |
109 | +**smarty_path** - Place of the smarty installation | |
110 | +**peardb_path** - place of your PEAR db | |
111 | +tmp_path - Path of your tmp directory (default: install path/tmp) | |
112 | +roller_conf - Path of your roller daemon config (configured in DAEMON_OPTS). | |
113 | +Required for DNSSEC abilities. | |
114 | +isdnssec - enable or disable DNSSEC abilities (true/false) | |
115 | +recaptcha - enable or disable recaptcha at login screen (true/false) | |
116 | +rc_pubkey - Your public recaptha key (required for recaptcha) | |
117 | +rc_privkey - Your private recaptcha key (required for recaptcha) | |
118 | +nocaptcha - Array of your recaptcha whitelist. If you do not want to recaptcha | |
119 | +when you access the webapp from specified hosts, you need to set up their IP | |
120 | +addresses as followings: | |
121 | +*array( | |
122 | +'1.2.3.4', | |
123 | +'2.3.4.5', | |
124 | +);* | |
125 | +title - Title string at the top of your SMBind-ng screen (eg. 'My DNS zones') | |
126 | +footer - Footer string at the bottom of your SMBind-ng screen (eg. 'Company | |
127 | +Name') | |
128 | +staticdomain - If you want to access your static files (.css and .js) through | |
129 | +other virtual host, then you need to configure it in your webserver, and just | |
130 | +set it (eg. 'static.mydnsservice.local'). There are only two static files in | |
131 | +your SMBind-ng installation, so I think you don't really need this - but who | |
132 | +knows? | |
133 | +template - .css and .js name in static directory. The default values is | |
134 | +*default* | |
135 | +path - Where you store your zonefiles. Default: */etc/smbind-ng/zones/* | |
136 | +conf - Your included config file. Default: */etc/smbind-ng/smbind-ng.conf* | |
137 | +namedcheckconf - Place of your binary. Default if found: */usr/sbin/named- | |
138 | +checkconf* | |
139 | +namedcheckzone - Place of your binary. Default if found: */usr/sbin/named- | |
140 | +checkzone* | |
141 | +rndc - Place of your binary. Default if found: */usr/sbin/rndc* | |
142 | +zonesigner - Place of your binary. Default if found: */usr/sbin/zonesigner* | |
143 | +rollinit - Place of your binary. Default if found: */usr/sbin/rollinit* | |
144 | +dig - Place of your binary. Default if found: */usr/bin/dig* | |
145 | + | |
146 | +## Access your admin application | |
147 | + | |
148 | +http(s)://your.virtualhost.here/path | |
149 | + | |
150 | +Global admin username: **admin** | |
151 | +Initial password: **SMBind-ng2016** | ... | ... |
LICENSE.md
0 → 100644
1 | +++ a/LICENSE.md | |
1 | +# GNU GENERAL PUBLIC LICENSE | |
2 | + | |
3 | +Version 3, 29 June 2007 | |
4 | + | |
5 | +Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
6 | + | |
7 | +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. | |
8 | + | |
9 | +## Preamble | |
10 | + | |
11 | +The GNU General Public License is a free, copyleft license for software and other kinds of works. | |
12 | + | |
13 | +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. | |
14 | + | |
15 | +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. | |
16 | + | |
17 | +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. | |
18 | + | |
19 | +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. | |
20 | + | |
21 | +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. | |
22 | + | |
23 | +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. | |
24 | + | |
25 | +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. | |
26 | + | |
27 | +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. | |
28 | + | |
29 | +The precise terms and conditions for copying, distribution and modification follow. | |
30 | + | |
31 | +# TERMS AND CONDITIONS | |
32 | + | |
33 | +## 0. Definitions. | |
34 | + | |
35 | +“This License” refers to version 3 of the GNU General Public License. | |
36 | + | |
37 | +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. | |
38 | + | |
39 | +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. | |
40 | + | |
41 | +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. | |
42 | + | |
43 | +A “covered work” means either the unmodified Program or a work based on the Program. | |
44 | + | |
45 | +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. | |
46 | + | |
47 | +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. | |
48 | + | |
49 | +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. | |
50 | + | |
51 | +## 1. Source Code. | |
52 | + | |
53 | +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. | |
54 | + | |
55 | +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. | |
56 | + | |
57 | +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. | |
58 | + | |
59 | +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. | |
60 | + | |
61 | +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. | |
62 | + | |
63 | +The Corresponding Source for a work in source code form is that same work. | |
64 | + | |
65 | +## 2. Basic Permissions. | |
66 | + | |
67 | +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. | |
68 | + | |
69 | +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. | |
70 | + | |
71 | +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. | |
72 | + | |
73 | +## 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | |
74 | + | |
75 | +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. | |
76 | + | |
77 | +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. | |
78 | + | |
79 | +## 4. Conveying Verbatim Copies. | |
80 | + | |
81 | +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. | |
82 | + | |
83 | +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. | |
84 | + | |
85 | +## 5. Conveying Modified Source Versions. | |
86 | + | |
87 | +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: | |
88 | + | |
89 | + * a. The work must carry prominent notices stating that you modified it, and giving a relevant date. | |
90 | + * b. The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. | |
91 | + * c. You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. | |
92 | + * d. If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. | |
93 | + | |
94 | +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. | |
95 | + | |
96 | +## 6. Conveying Non-Source Forms. | |
97 | + | |
98 | +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: | |
99 | + | |
100 | + * a. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. | |
101 | + * b. Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. | |
102 | + * c. Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. | |
103 | + * d. Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. | |
104 | + * e. Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. | |
105 | + | |
106 | +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. | |
107 | + | |
108 | +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. | |
109 | + | |
110 | +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. | |
111 | + | |
112 | +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). | |
113 | + | |
114 | +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. | |
115 | + | |
116 | +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. | |
117 | + | |
118 | +## 7. Additional Terms. | |
119 | + | |
120 | +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. | |
121 | + | |
122 | +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. | |
123 | + | |
124 | +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: | |
125 | + | |
126 | + * a. Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or | |
127 | + * b. Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or | |
128 | + * c. Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or | |
129 | + * d. Limiting the use for publicity purposes of names of licensors or authors of the material; or | |
130 | + * e. Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or | |
131 | + * f. Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. | |
132 | + | |
133 | +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. | |
134 | + | |
135 | +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. | |
136 | + | |
137 | +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. | |
138 | + | |
139 | +## 8. Termination. | |
140 | + | |
141 | +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). | |
142 | + | |
143 | +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. | |
144 | + | |
145 | +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. | |
146 | + | |
147 | +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. | |
148 | + | |
149 | +## 9. Acceptance Not Required for Having Copies. | |
150 | + | |
151 | +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. | |
152 | + | |
153 | +## 10. Automatic Licensing of Downstream Recipients. | |
154 | + | |
155 | +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. | |
156 | + | |
157 | +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. | |
158 | + | |
159 | +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. | |
160 | + | |
161 | +## 11. Patents. | |
162 | + | |
163 | +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. | |
164 | + | |
165 | +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. | |
166 | + | |
167 | +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. | |
168 | + | |
169 | +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. | |
170 | + | |
171 | +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. | |
172 | + | |
173 | +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. | |
174 | + | |
175 | +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. | |
176 | + | |
177 | +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. | |
178 | + | |
179 | +## 12. No Surrender of Others' Freedom. | |
180 | + | |
181 | +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. | |
182 | + | |
183 | +## 13. Use with the GNU Affero General Public License. | |
184 | + | |
185 | +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. | |
186 | + | |
187 | +## 14. Revised Versions of this License. | |
188 | + | |
189 | +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. | |
190 | + | |
191 | +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. | |
192 | + | |
193 | +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. | |
194 | + | |
195 | +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. | |
196 | + | |
197 | +## 15. Disclaimer of Warranty. | |
198 | + | |
199 | +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | |
200 | + | |
201 | +## 16. Limitation of Liability. | |
202 | + | |
203 | +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
204 | + | |
205 | +## 17. Interpretation of Sections 15 and 16. | |
206 | + | |
207 | +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. | |
0 | 208 | \ No newline at end of file | ... | ... |
README.md
0 → 100644
1 | +++ a/README.md | |
1 | +# SMBind-ng | |
2 | +This is a forked project from [smbind](http://sourceforge.net/projects/smbind/). | |
3 | + | |
4 | +This fork has many improvements, security changes and new features | |
5 | + | |
6 | +## Improvements | |
7 | + * New design (css based, customizable) | |
8 | + * New .js library | |
9 | + * Fully separated parts (one .js, one .css and the HTML part) | |
10 | + * No inline CSS and JS (except the login captcha) | |
11 | + * Key bindings | |
12 | + * CSS based inline graphical elements | |
13 | + | |
14 | +## Security changes | |
15 | + * Login with Google ReCaptcha validation | |
16 | + * Password policy (JS based checking) | |
17 | + * No password traffic in HTTP channel (JS based encryption) | |
18 | + * Strict login and session checking | |
19 | + | |
20 | +## New features | |
21 | + * Master and slave zones handling in one application | |
22 | + * Zone preview | |
23 | + * Zone checking before commit | |
24 | + * Users can commit only their checked zones, no others | |
25 | + * Admins can commit all checked zones (except deleted zones) | |
26 | + * DNSSEC capabilities - it generetes automatically | |
27 | + * Roller daemon handling | |
28 | + * viewing zones with/without DNSSEC encryption | |
29 | + * Import master zones from many bind sources | |
30 | + * Check slave zones with zonetransfer | |
31 | + * IDN capabilities - you just use UTF-8 characters | |
0 | 32 | \ No newline at end of file | ... | ... |
config/config.php
0 → 100644
index.php
0 → 100644
1 | +++ a/index.php | |
1 | +<?php | |
2 | +require_once "src/include.php"; | |
3 | + | |
4 | +$smarty->assign("pagetitle", "Main"); | |
5 | +$smarty->assign("user", $user->getFullName()); | |
6 | +$smarty->assign("zones", sizeof($user->getMasters('live'))); | |
7 | +$smarty->assign("slave_zones", sizeof($user->getSlaves('live'))); | |
8 | +$smarty->assign("status", rndc_status()); | |
9 | +$smarty->assign("bad", $user->getUnvalidatedZones('master')); | |
10 | +$smarty->assign("bad_slaves", $user->getUnvalidatedZones('slave')); | |
11 | +$smarty->assign("comm", $user->getCommitableZones('master')); | |
12 | +$smarty->assign("comm_slaves", $user->getCommitableZones('slave')); | |
13 | +$smarty->assign("del", $user->getDeletedZones('master')); | |
14 | +$smarty->assign("del_slaves", $user->getDeletedZones('slave')); | |
15 | +$smarty->assign("template", "mainpage.tpl"); | |
16 | +$smarty->assign("help", help("mainpage")); | |
17 | +$smarty->assign("menu_button", menu_buttons()); | |
18 | +$smarty->display("main.tpl"); | |
19 | +?> | ... | ... |
lib/punycode.class.php
0 → 100644
1 | +++ a/lib/punycode.class.php | |
1 | +<?php | |
2 | +/** | |
3 | + * The MIT License (MIT) | |
4 | + * | |
5 | + * Copyright (c) 2013 mk-j, zedwood.com | |
6 | + * | |
7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy | |
8 | + * of this software and associated documentation files (the "Software"), to deal | |
9 | + * in the Software without restriction, including without limitation the rights | |
10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
11 | + * copies of the Software, and to permit persons to whom the Software is | |
12 | + * furnished to do so, subject to the following conditions: | |
13 | + * | |
14 | + * The above copyright notice and this permission notice shall be included in all | |
15 | + * copies or substantial portions of the Software. | |
16 | + * | |
17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
23 | + * SOFTWARE. | |
24 | + */ | |
25 | +function_exists('mb_internal_encoding') or die('unsupported dependency, mbstring'); | |
26 | +class Punycode | |
27 | +{ | |
28 | + const TMIN = 1; | |
29 | + const TMAX = 26; | |
30 | + const BASE = 36; | |
31 | + const INITIAL_N = 128; | |
32 | + const INITIAL_BIAS = 72; | |
33 | + const DAMP = 700; | |
34 | + const SKEW = 38; | |
35 | + const DELIMITER = '-'; | |
36 | + //Punycode::::encodeHostName() corresponds to idna_toASCII('xärg.örg'); | |
37 | + public static function encodeHostName($hostname) | |
38 | + { | |
39 | + if (!self::is_valid_utf8($hostname)) | |
40 | + { | |
41 | + return $hostname;//invalid | |
42 | + } | |
43 | + if (function_exists('idn_to_ascii') && 0) | |
44 | + { | |
45 | + return idn_to_ascii($hostname);//php 5.3+ | |
46 | + } | |
47 | + $old_encoding = mb_internal_encoding(); | |
48 | + mb_internal_encoding("UTF-8"); | |
49 | + $pieces = explode(".", self::mb_strtolower($hostname) ); | |
50 | + $punycode_pieces = array(); | |
51 | + foreach($pieces as $piece) | |
52 | + { | |
53 | + if (preg_match("/[\x{80}-\x{FFFF}]/u", $piece))//is multi byte utf8 | |
54 | + { | |
55 | + $punycode_pieces[] = "xn--".self::encode($piece); | |
56 | + } | |
57 | + else if (preg_match('/^[a-z\d][a-z\d-]{0,62}$/i', $piece) && !preg_match('/-$/', $piece) )//is valid ascii hostname | |
58 | + { | |
59 | + $punycode_pieces[] = $piece; | |
60 | + } | |
61 | + else | |
62 | + { | |
63 | + mb_internal_encoding($old_encoding); | |
64 | + return $hostname;//invalid domain | |
65 | + } | |
66 | + } | |
67 | + mb_internal_encoding($old_encoding); | |
68 | + return implode(".", $punycode_pieces); | |
69 | + } | |
70 | + //Punycode::::decodeHostName() corresponds to idna_toUnicode('xn--xrg-9ka.xn--rg-eka'); | |
71 | + public static function decodeHostName($encoded_hostname) | |
72 | + { | |
73 | + if (!preg_match('/[a-z\d.-]{1,255}/', $encoded_hostname)) | |
74 | + { | |
75 | + return false; | |
76 | + } | |
77 | + if (function_exists('idn_to_utf8') && 0) | |
78 | + { | |
79 | + return idn_to_utf8($encoded_hostname); | |
80 | + } | |
81 | + $old_encoding = mb_internal_encoding(); | |
82 | + mb_internal_encoding("UTF-8"); | |
83 | + $pieces = explode(".", strtolower($encoded_hostname)); | |
84 | + foreach($pieces as $piece) | |
85 | + { | |
86 | + if (!preg_match('/^[a-z\d][a-z\d-]{0,62}$/i', $piece) || preg_match('/-$/', $piece) ) | |
87 | + { | |
88 | + mb_internal_encoding($old_encoding); | |
89 | + return $encoded_hostname;//invalid | |
90 | + } | |
91 | + $punycode_pieces[] = strpos($piece, "xn--")===0 ? self::decode(substr($piece,4)) : $piece; | |
92 | + } | |
93 | + mb_internal_encoding($old_encoding); | |
94 | + return implode(".", $punycode_pieces); | |
95 | + } | |
96 | + protected static function encode($input) | |
97 | + { | |
98 | + try | |
99 | + { | |
100 | + $n = self::INITIAL_N; | |
101 | + $delta = 0; | |
102 | + $bias = self::INITIAL_BIAS; | |
103 | + $output=''; | |
104 | + $input_length = self::mb_strlen($input); | |
105 | + $b=0; | |
106 | + for($i=0; $i<$input_length; $i++) | |
107 | + { | |
108 | + $chr = self::mb_substr($input,$i,1); | |
109 | + $c = self::uniord( $chr );//autoloaded class | |
110 | + if ($c < self::INITIAL_N) | |
111 | + { | |
112 | + $output.= $chr; | |
113 | + $b++; | |
114 | + } | |
115 | + } | |
116 | + | |
117 | + if ($b==$input_length)//no international chars to convert to punycode here | |
118 | + { | |
119 | + throw new Exception("PunycodeException.BAD_INPUT"); | |
120 | + } | |
121 | + else if ($b>0) | |
122 | + { | |
123 | + $output.= self::DELIMITER; | |
124 | + } | |
125 | + $h = $b; | |
126 | + while($h < $input_length) | |
127 | + { | |
128 | + $m = PHP_INT_MAX; | |
129 | + // Find the minimum code point >= n | |
130 | + for($i=0; $i<$input_length; $i++) | |
131 | + { | |
132 | + $chr = self::mb_substr($input,$i,1); | |
133 | + $c = self::uniord( $chr ); | |
134 | + if ($c >= $n && $c < $m) | |
135 | + { | |
136 | + $m = $c; | |
137 | + } | |
138 | + } | |
139 | + | |
140 | + | |
141 | + if (($m - $n) > (PHP_INT_MAX - $delta) / ($h+1)) | |
142 | + { | |
143 | + throw new Exception("PunycodeException.OVERFLOW"); | |
144 | + } | |
145 | + $delta = $delta + ($m - $n) * ($h + 1); | |
146 | + $n = $m; | |
147 | + | |
148 | + for($j=0; $j<$input_length; $j++) | |
149 | + { | |
150 | + $chr = self::mb_substr($input,$j,1); | |
151 | + $c = self::uniord( $chr ); | |
152 | + if ($c < $n) | |
153 | + { | |
154 | + $delta++; | |
155 | + if (0==$delta) | |
156 | + { | |
157 | + throw new Exception("PunycodeException.OVERFLOW"); | |
158 | + } | |
159 | + } | |
160 | + | |
161 | + if ($c == $n) | |
162 | + { | |
163 | + $q = $delta; | |
164 | + for($k= self::BASE;; $k+=self::BASE) | |
165 | + { | |
166 | + $t=0; | |
167 | + if ($k <= $bias) | |
168 | + { | |
169 | + $t= self::TMIN; | |
170 | + } else if ($k >= $bias + self::TMAX) { | |
171 | + $t= self::TMAX; | |
172 | + } else { | |
173 | + $t = $k - $bias; | |
174 | + } | |
175 | + if ($q < $t) | |
176 | + { | |
177 | + break; | |
178 | + } | |
179 | + $output.= chr( self::digit2codepoint($t + ($q - $t) % (self::BASE - $t)) ); | |
180 | + $q = floor( ($q-$t) / (self::BASE - $t) );//integer division | |
181 | + } | |
182 | + $output.= chr( self::digit2codepoint($q) ); | |
183 | + $bias = self::adapt($delta, $h+1, $h==$b); | |
184 | + $delta=0; | |
185 | + $h++; | |
186 | + } | |
187 | + } | |
188 | + $delta++; | |
189 | + $n++; | |
190 | + } | |
191 | + } | |
192 | + catch (Exception $e) | |
193 | + { | |
194 | + error_log("[PUNYCODE] error ".$e->getMessage()); | |
195 | + return $input; | |
196 | + } | |
197 | + return $output; | |
198 | + } | |
199 | + protected static function decode($input) | |
200 | + { | |
201 | + try | |
202 | + { | |
203 | + $n = self::INITIAL_N; | |
204 | + $i = 0; | |
205 | + $bias = self::INITIAL_BIAS; | |
206 | + $output = ''; | |
207 | + $d = self::rstrpos($input, self::DELIMITER); | |
208 | + if ($d>0) { | |
209 | + for($j=0; $j<$d; $j++) { | |
210 | + $chr = self::mb_substr($input,$j,1); | |
211 | + $c = self::uniord( $chr ); | |
212 | + if ($c>=self::INITIAL_N) { | |
213 | + throw new Exception("PunycodeException.BAD_INPUT"); | |
214 | + } | |
215 | + $output.=$chr; | |
216 | + } | |
217 | + $d++; | |
218 | + } else { | |
219 | + $d = 0; | |
220 | + } | |
221 | + $input_length = self::mb_strlen($input); | |
222 | + while ($d < $input_length) { | |
223 | + $oldi = $i; | |
224 | + $w = 1; | |
225 | + for($k= self::BASE;; $k += self::BASE) { | |
226 | + if ($d == $input_length) { | |
227 | + throw new Exception("PunycodeException.BAD_INPUT"); | |
228 | + } | |
229 | + $chr = self::mb_substr($input,$d++,1); | |
230 | + $c = self::uniord( $chr ); | |
231 | + $digit = self::codepoint2digit($c); | |
232 | + if ($digit > (PHP_INT_MAX - $i) / $w) { | |
233 | + throw new Exception("PunycodeException.OVERFLOW"); | |
234 | + } | |
235 | + $i = $i + $digit * $w; | |
236 | + $t=0; | |
237 | + if ($k <= $bias) { | |
238 | + $t = self::TMIN; | |
239 | + } else if ($k >= $bias + self::TMAX) { | |
240 | + $t = self::TMAX; | |
241 | + } else { | |
242 | + $t = $k - $bias; | |
243 | + } | |
244 | + if ($digit < $t) { | |
245 | + break; | |
246 | + } | |
247 | + $w = $w * (self::BASE - $t); | |
248 | + } | |
249 | + $output_length = self::mb_strlen($output); | |
250 | + $bias = self::adapt($i - $oldi, $output_length + 1, $oldi == 0); | |
251 | + if ($i / ($output_length + 1) > PHP_INT_MAX - $n) { | |
252 | + throw new Exception("PunycodeException.OVERFLOW"); | |
253 | + } | |
254 | + $n = floor($n + $i / ($output_length + 1)); | |
255 | + $i = $i % ($output_length + 1); | |
256 | + $output = self::mb_strinsert($output, self::utf8($n), $i); | |
257 | + $i++; | |
258 | + } | |
259 | + } | |
260 | + catch(Exception $e) | |
261 | + { | |
262 | + error_log("[PUNYCODE] error ".$e->getMessage()); | |
263 | + return $input; | |
264 | + } | |
265 | + return $output; | |
266 | + } | |
267 | +//adapt patched from: | |
268 | +//https://github.com/takezoh/php-PunycodeEncoder/blob/master/punycode.php | |
269 | + protected static function adapt($delta, $numpoints, $firsttime) | |
270 | + { | |
271 | + $delta = (int)($firsttime ? $delta / self::DAMP : $delta / 2); | |
272 | + $delta += (int)($delta / $numpoints); | |
273 | + $k = 0; | |
274 | + while ($delta > (((self::BASE - self::TMIN) * self::TMAX) / 2)) { | |
275 | + $delta = (int)($delta / (self::BASE - self::TMIN)); | |
276 | + $k += self::BASE; | |
277 | + } | |
278 | + return $k + (int)((self::BASE - self::TMIN + 1) * $delta / ($delta + self::SKEW)); | |
279 | + } | |
280 | + protected static function digit2codepoint($d) | |
281 | + { | |
282 | + if ($d < 26) { | |
283 | + // 0..25 : 'a'..'z' | |
284 | + return $d + ord('a'); | |
285 | + } else if ($d < 36) { | |
286 | + // 26..35 : '0'..'9'; | |
287 | + return $d - 26 + ord('0'); | |
288 | + } else { | |
289 | + throw new Exception("PunycodeException.BAD_INPUT"); | |
290 | + } | |
291 | + } | |
292 | + protected static function codepoint2digit($c) | |
293 | + { | |
294 | + if ($c - ord('0') < 10) { | |
295 | + // '0'..'9' : 26..35 | |
296 | + return $c - ord('0') + 26; | |
297 | + } else if ($c - ord('a') < 26) { | |
298 | + // 'a'..'z' : 0..25 | |
299 | + return $c - ord('a'); | |
300 | + } else { | |
301 | + throw new Exception("PunycodeException.BAD_INPUT"); | |
302 | + } | |
303 | + } | |
304 | + protected static function rstrpos($haystack, $needle) | |
305 | + { | |
306 | + $pos = strpos (strrev($haystack), $needle); | |
307 | + if ($pos === false) | |
308 | + return false; | |
309 | + return strlen ($haystack)-1 - $pos; | |
310 | + } | |
311 | + protected static function mb_strinsert($haystack, $needle, $position) | |
312 | + { | |
313 | + $old_encoding = mb_internal_encoding(); | |
314 | + mb_internal_encoding("UTF-8"); | |
315 | + $r = mb_substr($haystack,0,$position).$needle.mb_substr($haystack,$position); | |
316 | + mb_internal_encoding($old_encoding); | |
317 | + return $r; | |
318 | + } | |
319 | + | |
320 | + protected static function mb_substr($str,$start,$length) | |
321 | + { | |
322 | + $old_encoding = mb_internal_encoding(); | |
323 | + mb_internal_encoding("UTF-8"); | |
324 | + $r = mb_substr($str,$start,$length); | |
325 | + mb_internal_encoding($old_encoding); | |
326 | + return $r; | |
327 | + } | |
328 | + protected static function mb_strlen($str) | |
329 | + { | |
330 | + $old_encoding = mb_internal_encoding(); | |
331 | + mb_internal_encoding("UTF-8"); | |
332 | + $r = mb_strlen($str); | |
333 | + mb_internal_encoding($old_encoding); | |
334 | + return $r; | |
335 | + } | |
336 | + protected static function mb_strtolower($str) | |
337 | + { | |
338 | + $old_encoding = mb_internal_encoding(); | |
339 | + mb_internal_encoding("UTF-8"); | |
340 | + $r = mb_strtolower($str); | |
341 | + mb_internal_encoding($old_encoding); | |
342 | + return $r; | |
343 | + } | |
344 | + | |
345 | + public static function uniord($c)//cousin of ord() but for unicode | |
346 | + { | |
347 | + $ord0 = ord($c{0}); if ($ord0>=0 && $ord0<=127) return $ord0; | |
348 | + $ord1 = ord($c{1}); if ($ord0>=192 && $ord0<=223) return ($ord0-192)*64 + ($ord1-128); | |
349 | + if ($ord0==0xed && ($ord1 & 0xa0) == 0xa0) return false; //code points, 0xd800 to 0xdfff | |
350 | + $ord2 = ord($c{2}); if ($ord0>=224 && $ord0<=239) return ($ord0-224)*4096 + ($ord1-128)*64 + ($ord2-128); | |
351 | + $ord3 = ord($c{3}); if ($ord0>=240 && $ord0<=247) return ($ord0-240)*262144 + ($ord1-128)*4096 + ($ord2-128)*64 + ($ord3-128); | |
352 | + return false; | |
353 | + } | |
354 | + public static function utf8($num)//cousin of ascii() but for utf8 | |
355 | + { | |
356 | + if($num<=0x7F) return chr($num); | |
357 | + if($num<=0x7FF) return chr(($num>>6)+192).chr(($num&63)+128); | |
358 | + if(0xd800<=$num && $num<=0xdfff) return '';//invalid block of utf8 | |
359 | + if($num<=0xFFFF) return chr(($num>>12)+224).chr((($num>>6)&63)+128).chr(($num&63)+128); | |
360 | + if($num<=0x10FFFF) return chr(($num>>18)+240).chr((($num>>12)&63)+128).chr((($num>>6)&63)+128).chr(($num&63)+128); | |
361 | + return ''; | |
362 | + } | |
363 | + | |
364 | + public static function is_valid_utf8($string) | |
365 | + { | |
366 | + for ($i=0, $ix=strlen($string); $i < $ix; $i++) | |
367 | + { | |
368 | + $c = ord($string{$i}); | |
369 | + if ($c==0x09 || $c==0x0a || $c==0x0d || (0x20 <= $c && $c < 0x7e) ) $n = 0; # 0bbbbbbb | |
370 | + else if (($c & 0xE0) == 0xC0) $n=1; # 110bbbbb | |
371 | + else if ($c==0xed && (ord($string{$i+1}) & 0xa0)==0xa0) return false; //code points, 0xd800 to 0xdfff | |
372 | + else if (($c & 0xF0) == 0xE0) $n=2; # 1110bbbb | |
373 | + else if (($c & 0xF8) == 0xF0) $n=3; # 11110bbb | |
374 | + //else if (($c & 0xFC) == 0xF8) $n=4; # 111110bb //byte 5, unnecessary in 4 byte UTF-8 | |
375 | + //else if (($c & 0xFE) == 0xFC) $n=5; # 1111110b //byte 6, unnecessary in 4 byte UTF-8 | |
376 | + else return false; | |
377 | + for ($j=0; $j<$n; $j++) { // n bytes matching 10bbbbbb follow ? | |
378 | + if ((++$i == $ix) || ((ord($string{$i}) & 0xC0) != 0x80)) | |
379 | + return false; | |
380 | + } | |
381 | + } | |
382 | + return true; | |
383 | + } | |
384 | +} | |
385 | + | ... | ... |
lib/recaptchalib.php
0 → 100644
1 | +++ a/lib/recaptchalib.php | |
1 | +<?php | |
2 | +/* | |
3 | + * This is a PHP library that handles calling reCAPTCHA. | |
4 | + * - Documentation and latest version | |
5 | + * http://recaptcha.net/plugins/php/ | |
6 | + * - Get a reCAPTCHA API Key | |
7 | + * https://www.google.com/recaptcha/admin/create | |
8 | + * - Discussion group | |
9 | + * http://groups.google.com/group/recaptcha | |
10 | + * | |
11 | + * Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net | |
12 | + * AUTHORS: | |
13 | + * Mike Crawford | |
14 | + * Ben Maurer | |
15 | + * | |
16 | + * Permission is hereby granted, free of charge, to any person obtaining a copy | |
17 | + * of this software and associated documentation files (the "Software"), to deal | |
18 | + * in the Software without restriction, including without limitation the rights | |
19 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
20 | + * copies of the Software, and to permit persons to whom the Software is | |
21 | + * furnished to do so, subject to the following conditions: | |
22 | + * | |
23 | + * The above copyright notice and this permission notice shall be included in | |
24 | + * all copies or substantial portions of the Software. | |
25 | + * | |
26 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
27 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
28 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
29 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
30 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
31 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
32 | + * THE SOFTWARE. | |
33 | + */ | |
34 | + | |
35 | +/** | |
36 | + * The reCAPTCHA server URL's | |
37 | + */ | |
38 | +define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api"); | |
39 | +define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api"); | |
40 | +define("RECAPTCHA_VERIFY_SERVER", "www.google.com"); | |
41 | + | |
42 | +/** | |
43 | + * Encodes the given data into a query string format | |
44 | + * @param $data - array of string elements to be encoded | |
45 | + * @return string - encoded request | |
46 | + */ | |
47 | +function _recaptcha_qsencode ($data) { | |
48 | + $req = ""; | |
49 | + foreach ( $data as $key => $value ) | |
50 | + $req .= $key . '=' . urlencode( stripslashes($value) ) . '&'; | |
51 | + | |
52 | + // Cut the last '&' | |
53 | + $req=substr($req,0,strlen($req)-1); | |
54 | + return $req; | |
55 | +} | |
56 | + | |
57 | + | |
58 | + | |
59 | +/** | |
60 | + * Submits an HTTP POST to a reCAPTCHA server | |
61 | + * @param string $host | |
62 | + * @param string $path | |
63 | + * @param array $data | |
64 | + * @param int port | |
65 | + * @return array response | |
66 | + */ | |
67 | +function _recaptcha_http_post($host, $path, $data, $port = 80) { | |
68 | + | |
69 | + $req = _recaptcha_qsencode ($data); | |
70 | + | |
71 | + $http_request = "POST $path HTTP/1.0\r\n"; | |
72 | + $http_request .= "Host: $host\r\n"; | |
73 | + $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; | |
74 | + $http_request .= "Content-Length: " . strlen($req) . "\r\n"; | |
75 | + $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; | |
76 | + $http_request .= "\r\n"; | |
77 | + $http_request .= $req; | |
78 | + | |
79 | + $response = ''; | |
80 | + if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) { | |
81 | + die ('Could not open socket'); | |
82 | + } | |
83 | + | |
84 | + fwrite($fs, $http_request); | |
85 | + | |
86 | + while ( !feof($fs) ) | |
87 | + $response .= fgets($fs, 1160); // One TCP-IP packet | |
88 | + fclose($fs); | |
89 | + $response = explode("\r\n\r\n", $response, 2); | |
90 | + | |
91 | + return $response; | |
92 | +} | |
93 | + | |
94 | + | |
95 | + | |
96 | +/** | |
97 | + * Gets the challenge HTML (javascript and non-javascript version). | |
98 | + * This is called from the browser, and the resulting reCAPTCHA HTML widget | |
99 | + * is embedded within the HTML form it was called from. | |
100 | + * @param string $pubkey A public key for reCAPTCHA | |
101 | + * @param string $error The error given by reCAPTCHA (optional, default is null) | |
102 | + * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false) | |
103 | + | |
104 | + * @return string - The HTML to be embedded in the user's form. | |
105 | + */ | |
106 | +function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) | |
107 | +{ | |
108 | + if ($pubkey == null || $pubkey == '') { | |
109 | + die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>"); | |
110 | + } | |
111 | + | |
112 | + if ($use_ssl) { | |
113 | + $server = RECAPTCHA_API_SECURE_SERVER; | |
114 | + } else { | |
115 | + $server = RECAPTCHA_API_SERVER; | |
116 | + } | |
117 | + | |
118 | + $errorpart = ""; | |
119 | + if ($error) { | |
120 | + $errorpart = "&error=" . $error; | |
121 | + } | |
122 | + return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script> | |
123 | + | |
124 | + <noscript> | |
125 | + <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/> | |
126 | + <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> | |
127 | + <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/> | |
128 | + </noscript>'; | |
129 | +} | |
130 | + | |
131 | + | |
132 | + | |
133 | + | |
134 | +/** | |
135 | + * A ReCaptchaResponse is returned from recaptcha_check_answer() | |
136 | + */ | |
137 | +class ReCaptchaResponse { | |
138 | + var $is_valid; | |
139 | + var $error; | |
140 | +} | |
141 | + | |
142 | + | |
143 | +/** | |
144 | + * Calls an HTTP POST function to verify if the user's guess was correct | |
145 | + * @param string $privkey | |
146 | + * @param string $remoteip | |
147 | + * @param string $challenge | |
148 | + * @param string $response | |
149 | + * @param array $extra_params an array of extra variables to post to the server | |
150 | + * @return ReCaptchaResponse | |
151 | + */ | |
152 | +function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array()) | |
153 | +{ | |
154 | + if ($privkey == null || $privkey == '') { | |
155 | + die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>"); | |
156 | + } | |
157 | + | |
158 | + if ($remoteip == null || $remoteip == '') { | |
159 | + die ("For security reasons, you must pass the remote ip to reCAPTCHA"); | |
160 | + } | |
161 | + | |
162 | + | |
163 | + | |
164 | + //discard spam submissions | |
165 | + if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) { | |
166 | + $recaptcha_response = new ReCaptchaResponse(); | |
167 | + $recaptcha_response->is_valid = false; | |
168 | + $recaptcha_response->error = 'incorrect-captcha-sol'; | |
169 | + return $recaptcha_response; | |
170 | + } | |
171 | + | |
172 | + $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify", | |
173 | + array ( | |
174 | + 'privatekey' => $privkey, | |
175 | + 'remoteip' => $remoteip, | |
176 | + 'challenge' => $challenge, | |
177 | + 'response' => $response | |
178 | + ) + $extra_params | |
179 | + ); | |
180 | + | |
181 | + $answers = explode ("\n", $response [1]); | |
182 | + $recaptcha_response = new ReCaptchaResponse(); | |
183 | + | |
184 | + if (trim ($answers [0]) == 'true') { | |
185 | + $recaptcha_response->is_valid = true; | |
186 | + } | |
187 | + else { | |
188 | + $recaptcha_response->is_valid = false; | |
189 | + $recaptcha_response->error = $answers [1]; | |
190 | + } | |
191 | + return $recaptcha_response; | |
192 | + | |
193 | +} | |
194 | + | |
195 | +/** | |
196 | + * gets a URL where the user can sign up for reCAPTCHA. If your application | |
197 | + * has a configuration page where you enter a key, you should provide a link | |
198 | + * using this function. | |
199 | + * @param string $domain The domain where the page is hosted | |
200 | + * @param string $appname The name of your application | |
201 | + */ | |
202 | +function recaptcha_get_signup_url ($domain = null, $appname = null) { | |
203 | + return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname)); | |
204 | +} | |
205 | + | |
206 | +function _recaptcha_aes_pad($val) { | |
207 | + $block_size = 16; | |
208 | + $numpad = $block_size - (strlen ($val) % $block_size); | |
209 | + return str_pad($val, strlen ($val) + $numpad, chr($numpad)); | |
210 | +} | |
211 | + | |
212 | +/* Mailhide related code */ | |
213 | + | |
214 | +function _recaptcha_aes_encrypt($val,$ky) { | |
215 | + if (! function_exists ("mcrypt_encrypt")) { | |
216 | + die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); | |
217 | + } | |
218 | + $mode=MCRYPT_MODE_CBC; | |
219 | + $enc=MCRYPT_RIJNDAEL_128; | |
220 | + $val=_recaptcha_aes_pad($val); | |
221 | + return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); | |
222 | +} | |
223 | + | |
224 | + | |
225 | +function _recaptcha_mailhide_urlbase64 ($x) { | |
226 | + return strtr(base64_encode ($x), '+/', '-_'); | |
227 | +} | |
228 | + | |
229 | +/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */ | |
230 | +function recaptcha_mailhide_url($pubkey, $privkey, $email) { | |
231 | + if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) { | |
232 | + die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . | |
233 | + "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>"); | |
234 | + } | |
235 | + | |
236 | + | |
237 | + $ky = pack('H*', $privkey); | |
238 | + $cryptmail = _recaptcha_aes_encrypt ($email, $ky); | |
239 | + | |
240 | + return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail); | |
241 | +} | |
242 | + | |
243 | +/** | |
244 | + * gets the parts of the email to expose to the user. | |
245 | + * eg, given johndoe@example,com return ["john", "example.com"]. | |
246 | + * the email is then displayed as john...@example.com | |
247 | + */ | |
248 | +function _recaptcha_mailhide_email_parts ($email) { | |
249 | + $arr = preg_split("/@/", $email ); | |
250 | + | |
251 | + if (strlen ($arr[0]) <= 4) { | |
252 | + $arr[0] = substr ($arr[0], 0, 1); | |
253 | + } else if (strlen ($arr[0]) <= 6) { | |
254 | + $arr[0] = substr ($arr[0], 0, 3); | |
255 | + } else { | |
256 | + $arr[0] = substr ($arr[0], 0, 4); | |
257 | + } | |
258 | + return $arr; | |
259 | +} | |
260 | + | |
261 | +/** | |
262 | + * Gets html to display an email address given a public an private key. | |
263 | + * to get a key, go to: | |
264 | + * | |
265 | + * http://www.google.com/recaptcha/mailhide/apikey | |
266 | + */ | |
267 | +function recaptcha_mailhide_html($pubkey, $privkey, $email) { | |
268 | + $emailparts = _recaptcha_mailhide_email_parts ($email); | |
269 | + $url = recaptcha_mailhide_url ($pubkey, $privkey, $email); | |
270 | + | |
271 | + return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) . | |
272 | + "' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]); | |
273 | + | |
274 | +} | |
275 | + | |
276 | + | |
277 | +?> | ... | ... |
lib/smbind.class.php
0 → 100644
1 | +++ a/lib/smbind.class.php | |
1 | +<?php | |
2 | + | |
3 | + require_once 'MDB2.php'; | |
4 | + require_once 'punycode.class.php'; | |
5 | + | |
6 | + $db = array(); | |
7 | + | |
8 | + define('COMMENT_PATTERN', '/(\s+;|^;)[^\n]*/i'); | |
9 | + define('ORIGIN_PATTERN', '/^\$ORIGIN\s+(.+)\.\s*/msi'); | |
10 | + define('SOA_BEGINS_PATTERN', '/^([^\s]+)?(\s+[\d\w]+)?\s+IN\s+SOA\s+/msi'); | |
11 | + define('FULL_SOA_PATTERN', '/^([^\s]+)?(\s+[\d\w]+)?\s+IN\s+SOA\s+([-\w\d.]*)\.\s+([-\w\d.]*)\s+\((.*)\)/msi'); | |
12 | + define('TIMES_PATTERN', '/\s*(\d+\w?)\s+(\d+\w?)\s+(\d+\w?)\s+(\d+\w?)\s+(\d+\w?)/msi'); | |
13 | + define('TXT_PATTERN', '/^\"(.*)\"/msi'); | |
14 | + define('MX_PATTERN', '/^(\d+)\s+([^\s]*)/msi'); | |
15 | + define('TYPE_PATTERN', '(A|A6|AAAA|AFSDB|APL|ATMA|AXFR|CERT|CNAME|DNAME|DNSKEY|DS|EID|GPOS|HINFO|ISDN|IXFR|KEY|KX|LOC|MAILB|MINFO|MX|NAPTR|NIMLOC|NS|NSAP|NSAP-PTR|NSEC|NXT|OPT|PTR|PX|RP|RRSIG|RT|SIG|SINK|SRV|SSHFP|TKEY|TSIG|TXT|WKS|X25)'); | |
16 | + define('RECORD_PATTERN', '/^([^\s]+)?(\s+[\d][\d\w]*)?(\s+IN)?\s+'.TYPE_PATTERN.'\s+([^\s].*$)/msi'); | |
17 | + define('BIND_TIME_PATTERN', '/^(\d+)([smhdw])/'); | |
18 | + define('IDN_PUNY_PATTERN', '/[^a-z0-9-]/i'); | |
19 | + define('IDN_UTF_PATTERN', '/[^a-z0-9\x80-\xFF-]/i'); | |
20 | + define('BIND_ZONENAME_PATTERN', '/zone\s+"([^"]+)".*$/msi'); | |
21 | + define('BIND_ZONEDATA_PATTERN', '/^([^\s]+)\s+"?([^"]+)"?$/'); | |
22 | + define('BIND_SLAVEMASTER_PATTERN', '/^\{([^\};]+);}$/'); | |
23 | + | |
24 | + function idnToHost($idn) { | |
25 | + preg_match(IDN_UTF_PATTERN, $idn, $match); | |
26 | + if (count($match) == 0) { | |
27 | + $out = ($idn > '') ? Punycode::encodeHostName($idn) : ''; | |
28 | + return ((strlen($out) > 4) && (substr($out, 0, 4) == 'xn--')) ? $out : $idn; | |
29 | + } | |
30 | + $tags = explode($match[0], $idn); | |
31 | + $ret = array(); | |
32 | + foreach ($tags as $tag) { | |
33 | + $ret[] = ($tag == '') ? '' : idnToHost($tag); | |
34 | + } | |
35 | + return implode($match[0], $ret); | |
36 | + } | |
37 | + | |
38 | + function hostToIdn($host) { | |
39 | + preg_match(IDN_PUNY_PATTERN, $host, $match); | |
40 | + if (count($match) == 0) { | |
41 | + return ((strlen($host) > 4) && (substr($host, 0, 4) == 'xn--')) ? Punycode::decodeHostName($host) : $host; | |
42 | + } | |
43 | + $tags = explode($match[0], $host); | |
44 | + $ret = array(); | |
45 | + foreach ($tags as $tag) { | |
46 | + $ret[] = ($tag == '') ? '' : hostToIdn($tag, $match[0]); | |
47 | + } | |
48 | + return implode($match[0], $ret); | |
49 | + } | |
50 | + | |
51 | + class bindConfig { | |
52 | + | |
53 | + private $zonedef = array(); | |
54 | + private $err = ''; | |
55 | + | |
56 | + public function __debugInfo() { | |
57 | + return array( | |
58 | + 'zonedef' => $this->zonedef, | |
59 | + 'err' => $this->err, | |
60 | + ); | |
61 | + } | |
62 | + | |
63 | + public function __construct($file = NULL) { | |
64 | + if (!is_null($file)) { | |
65 | + return $this->loadConfig($file); | |
66 | + } else { | |
67 | + $this->zonedef = array(); | |
68 | + return true; | |
69 | + } | |
70 | + } | |
71 | + | |
72 | + public function getErr() { | |
73 | + return $this->err; | |
74 | + } | |
75 | + | |
76 | + public function loadConfig($fpath) { | |
77 | + if (!is_string($fpath)) { | |
78 | + $this->err .= "Only string parameter accepted\n"; | |
79 | + error_log($this->err); | |
80 | + return false; | |
81 | + } | |
82 | + if ($fpath == '') { | |
83 | + $this->err .= "Given string is empty\n"; | |
84 | + error_log($this->err); | |
85 | + return false; | |
86 | + } | |
87 | + if (!file_exists($fpath)) { | |
88 | + $this->err .= "File doesn't exist: '" . $fpath . "'\n"; | |
89 | + error_log($this->err); | |
90 | + return false; | |
91 | + } | |
92 | + $conf = file($fpath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); | |
93 | + $one = array(); | |
94 | + $name = ''; | |
95 | + foreach ($conf as $line) { | |
96 | + $line = preg_replace('/(\/\/.*|;)$/', '', trim($line)); | |
97 | + if ($line == '') { | |
98 | + continue; | |
99 | + } | |
100 | + if ($name == '') { | |
101 | + preg_match(BIND_ZONENAME_PATTERN, $line, $match); | |
102 | + if (!isset($match[1])) { | |
103 | + $this->err .= "Read config error\n"; | |
104 | + error_log($this->err); | |
105 | + return false; | |
106 | + } | |
107 | + $name = $match[1]; | |
108 | + } else { | |
109 | + if ($line == '}') { | |
110 | + $this->zonedef[$name] = $one; | |
111 | + $one = array(); | |
112 | + $name = ''; | |
113 | + } else { | |
114 | + preg_match(BIND_ZONEDATA_PATTERN, $line, $match); | |
115 | + if ((!isset($match[1])) || | |
116 | + (!isset($match[2]))) { | |
117 | + $this->err .= "Read config error\n"; | |
118 | + error_log($this->err); | |
119 | + return false; | |
120 | + } | |
121 | + $key = $match[1]; | |
122 | + $data = $match[2]; | |
123 | + if ($key == 'masters') { | |
124 | + preg_match(BIND_SLAVEMASTER_PATTERN, $data, $match); | |
125 | + if (!isset($match[1])) { | |
126 | + $this->err .= "Read config error\n"; | |
127 | + error_log($this->err); | |
128 | + return false; | |
129 | + } | |
130 | + $data = $match[1]; | |
131 | + } | |
132 | + $one[$key] = $data; | |
133 | + } | |
134 | + } | |
135 | + } | |
136 | + return true; | |
137 | + } | |
138 | + | |
139 | + public function addConfig($name, $data) { | |
140 | + $name = strval($name); | |
141 | + if (($name == '') || | |
142 | + (!is_array($data))) { | |
143 | + $this->err .= "Cannot set configset\n"; | |
144 | + error_log($this->err); | |
145 | + return false; | |
146 | + } | |
147 | + $this->zonedef[$name] = $data; | |
148 | + return true; | |
149 | + } | |
150 | + | |
151 | + public function eraseConfig($name) { | |
152 | + $name = strval($name); | |
153 | + if ($name == '') { | |
154 | + $this->err .= "Cannot set configset\n"; | |
155 | + error_log($this->err); | |
156 | + return false; | |
157 | + } | |
158 | + $this->zonedef[$name] = array(); | |
159 | + return true; | |
160 | + } | |
161 | + | |
162 | + public function saveConfig($fname) { | |
163 | + if (!is_string($fname)) { | |
164 | + $this->err .= "Only string parameter accepted\n"; | |
165 | + error_log($this->err); | |
166 | + return false; | |
167 | + } | |
168 | + if ($fname == '') { | |
169 | + $this->err .= "Given string is empty\n"; | |
170 | + error_log($this->err); | |
171 | + return false; | |
172 | + } | |
173 | + $fh = fopen($fname,'w'); | |
174 | + fwrite($fh, "// SMbind-ng configuration\n\n"); | |
175 | + foreach($this->zonedef as $zone => $def) { | |
176 | + if (count($def) == 0) { | |
177 | + continue; | |
178 | + } | |
179 | + fwrite($fh, "// Zone " . hostToIdn($zone) . " (" . $def['type'] . ")\n"); | |
180 | + fwrite($fh, "zone \"" . $zone . "\" {\n"); | |
181 | + foreach ($def as $key => $param) { | |
182 | + switch ($key) { | |
183 | + case 'file': | |
184 | + $data = "\"" . $param . "\""; | |
185 | + break; | |
186 | + case 'masters': | |
187 | + $data = "{" . $param . ";}"; | |
188 | + break; | |
189 | + default: | |
190 | + $data = $param; | |
191 | + } | |
192 | + fwrite($fh, str_pad($key, 10, " ", STR_PAD_LEFT) . " " . $data . ";\n"); | |
193 | + } | |
194 | + fwrite($fh,"};\n\n"); | |
195 | + } | |
196 | + fclose($fh); | |
197 | + return true; | |
198 | + } | |
199 | + } | |
200 | + | |
201 | + class Configuration { | |
202 | + | |
203 | + private $info = array(); | |
204 | + | |
205 | + public function __debugInfo() { | |
206 | + return $this->info; | |
207 | + } | |
208 | + | |
209 | + public function __construct($path) { | |
210 | + global $db; | |
211 | + if (is_string($path)) { | |
212 | + $_CONF['smbind_ng'] = $path; | |
213 | + $_CONF['title'] = "SMBind-ng"; | |
214 | + $_CONF['footer'] = $_CONF['title'] . " v0.91b"; | |
215 | + $_CONF['marker'] = "Forked by PtY 2015(GPL)"; | |
216 | + $_CONF['template'] = "default"; | |
217 | + $_CONF['recaptcha'] = false; | |
218 | + $_CONF['tmp_path'] = $path . "tmp"; | |
219 | + $_CONF['nocaptcha'] = array(); | |
220 | + $_CONF['path'] = "/etc/smbind-ng/zones/"; | |
221 | + $_CONF['conf'] = "/etc/smbind-ng/smbind-ng.conf"; | |
222 | + $_CONF['namedcheckconf'] = (is_executable("/usr/sbin/named-checkconf")) ? "/usr/sbin/named-checkconf" : ""; | |
223 | + $_CONF['namedcheckzone'] = (is_executable("/usr/sbin/named-checkzone")) ? "/usr/sbin/named-checkzone" : ""; | |
224 | + $_CONF['rndc'] = (is_executable("/usr/sbin/rndc")) ? "/usr/sbin/rndc" : ""; | |
225 | + $_CONF['zonesigner'] = "/usr/sbin/zonesigner"; | |
226 | + $_CONF['rollinit'] = "/usr/sbin/rollinit"; | |
227 | + $_CONF['isdnssec'] = false; | |
228 | + $_CONF['dig'] = (is_executable("/usr/bin/dig")) ? "/usr/bin/dig" : ""; | |
229 | + include $path . 'config/config.php'; | |
230 | + $_CONF['zonesigner'] = (is_executable($_CONF['zonesigner'])) ? $_CONF['zonesigner'] : ""; | |
231 | + $_CONF['rollinit'] = (is_executable($_CONF['rollinit'])) ? $_CONF['rollinit'] : ""; | |
232 | + $_CONF['isdnssec'] = (($_CONF['isdnssec'] === true) && ($_CONF['zonesigner'] != "") && ($_CONF['rollinit'] != "")) ? true : false; | |
233 | + $_CONF['recaptcha'] = (($_CONF['recaptcha'] === true) && (strlen($_CONF['rc_pubkey']) > 0) && (strlen($_CONF['rc_privkey']) > 0)) ? true : false; | |
234 | + if(!isset($_CONF['db_host'])) { | |
235 | + $_CONF['db_host'] = 'localhost'; | |
236 | + } | |
237 | + if(!isset($_CONF['db_port'])) { | |
238 | + switch ($_CONF['db_type']) { | |
239 | + case 'mysql': | |
240 | + case 'mysqli': | |
241 | + $_CONF['db_port'] = '3306'; | |
242 | + break; | |
243 | + case 'pgsql': | |
244 | + $_CONF['db_port'] = '5432'; | |
245 | + break; | |
246 | + } | |
247 | + } | |
248 | + $dsn = array ( | |
249 | + 'phptype' => $_CONF['db_type'], | |
250 | + 'username' => $_CONF['db_user'], | |
251 | + 'password' => $_CONF['db_pass'], | |
252 | + 'database' => $_CONF['db_db'], | |
253 | + 'hostspec' => $_CONF['db_host'], | |
254 | + 'port' => $_CONF['db_port'], | |
255 | + 'charset' => 'utf8', | |
256 | + ); | |
257 | + $dbopt = array('persistent' => true,); | |
258 | + $db = MDB2::factory($dsn, $dbopt); | |
259 | + if (MDB2::isError($db)) { | |
260 | + die("Database error: " . MDB2::errorMessage($dbconnect)); | |
261 | + } else { | |
262 | + $db->setFetchMode(MDB2_FETCHMODE_ASSOC); | |
263 | + } | |
264 | + $query = $db->query("SELECT prefkey, prefval FROM options WHERE preftype = 'normal'"); | |
265 | + if (MDB2::isError($query)) { | |
266 | + $err = $query->getMessage() . "\n" . $query->getDebugInfo(); | |
267 | + error_log($err); | |
268 | + die($err); | |
269 | + } | |
270 | + while ($res = $query->fetchRow()) { | |
271 | + $key = $res['prefkey']; | |
272 | + switch ($key) { | |
273 | + case 'prins': | |
274 | + case 'secns': | |
275 | + $keyparam = substr($key, 0, 3) . '_d' . substr($key, -2); | |
276 | + break; | |
277 | + default: | |
278 | + $keyparam = $key; | |
279 | + } | |
280 | + $_CONF[$keyparam] = $res['prefval']; | |
281 | + } | |
282 | + $query = $db->query("SELECT prefkey FROM options WHERE prefval = 'on' AND preftype = 'record' ORDER BY prefkey"); | |
283 | + $_CONF['parameters'] = array(); | |
284 | + while ($res = $query->fetchRow()) { | |
285 | + $_CONF['parameters'][] = $res['prefkey']; | |
286 | + } | |
287 | + $query = $db->query("SELECT DISTINCT type FROM records"); | |
288 | + while ($res = $query->fetchRow()) { | |
289 | + $_CONF['parameters'][] = $res['type']; | |
290 | + } | |
291 | + $_CONF['parameters'] = array_unique($_CONF['parameters']); | |
292 | + $_CONF['dsn'] = $dsn; | |
293 | + $this->info = $_CONF; | |
294 | + } | |
295 | + } | |
296 | + | |
297 | + public function __call($method, $args) { | |
298 | + if (is_string($method)) { | |
299 | + $m = $this->from_CC(substr($method, 3, strlen($method) - 3)); | |
300 | + return array_key_exists($m, $this->info) ? $this->info[$m] : false; | |
301 | + } | |
302 | + } | |
303 | + | |
304 | + public function __set($param, $arg) { | |
305 | + return true; | |
306 | + } | |
307 | + | |
308 | + public function __get($param) { | |
309 | + $name = strtolower($param); | |
310 | + $return = (array_key_exists($name, $this->info)) ? $this->info[$name] : NULL; | |
311 | + if (is_null($return)) { | |
312 | + switch ($name) { | |
313 | + case 'range': | |
314 | + $return = 10; | |
315 | + break; | |
316 | + default: | |
317 | + $return = ''; | |
318 | + } | |
319 | + } | |
320 | + return $return; | |
321 | + } | |
322 | + | |
323 | + private function from_CC($str) { | |
324 | + $str = strtolower($str); | |
325 | + $func = create_function('$c', 'return "_" . strtolower($c[1]);'); | |
326 | + return preg_replace_callback('/([A-Z])/', $func, $str); | |
327 | + } | |
328 | + | |
329 | + public function isExists($id) { | |
330 | + return isset($this->info[strtolower($id)]); | |
331 | + } | |
332 | + | |
333 | + } | |
334 | + | |
335 | + class Session { | |
336 | + | |
337 | + private $usr = ''; | |
338 | + private $psw = ''; | |
339 | + private $inc = NULL; | |
340 | + | |
341 | + public function __debugInfo() { | |
342 | + return array( | |
343 | + 'usr' => $this->usr, | |
344 | + 'psw' => $this->psw, | |
345 | + 'inc' => $this->inc, | |
346 | + ); | |
347 | + } | |
348 | + | |
349 | + public function __construct() { | |
350 | + session_start(); | |
351 | + if ((isset($_SESSION['i'])) && (is_numeric($_SESSION['i'])) && ($_SESSION['i'] > 0)) { | |
352 | + $this->inc = $_SESSION['i']; | |
353 | + $this->inc++; | |
354 | + if ((isset($_SESSION['p'])) && (is_string($_SESSION['p']))) { | |
355 | + $this->psw = $_SESSION['p']; | |
356 | + if ((isset($_SESSION['u'])) && (is_string($_SESSION['u']))) { | |
357 | + $this->usr = $_SESSION['u']; | |
358 | + } else { | |
359 | + $this->psw = ''; | |
360 | + } | |
361 | + } | |
362 | + } else { | |
363 | + $this->inc = 1; | |
364 | + } | |
365 | + $_SESSION['i'] = $this->inc; | |
366 | + } | |
367 | + | |
368 | + public function login($user, $pass) { | |
369 | + $_SESSION['u'] = $user; | |
370 | + $_SESSION['p'] = $pass; | |
371 | + $usr = $user; | |
372 | + $psw = $pass; | |
373 | + } | |
374 | + | |
375 | + public function destroy() { | |
376 | + $this->usr = ''; | |
377 | + $this->psw = ''; | |
378 | + $this->inc = 0; | |
379 | + $_SESSION = array(); | |
380 | + session_destroy(); | |
381 | + } | |
382 | + | |
383 | + public function isEnoughOld() { | |
384 | + return $this->inc > 3; | |
385 | + } | |
386 | + } | |
387 | + | |
388 | + class User { | |
389 | + private $data = array( | |
390 | + 'id' => 0, | |
391 | + 'username' => '', | |
392 | + 'realname' => '', | |
393 | + 'password' => '', | |
394 | + 'admin' => false, | |
395 | + ); | |
396 | + private $mzones = array(); | |
397 | + private $szones = array(); | |
398 | + private $err = ''; | |
399 | + private $db = array(); | |
400 | + | |
401 | + public function __debugInfo() { | |
402 | + return array( | |
403 | + 'data' => $this->data, | |
404 | + 'mzones' => $this->mzones, | |
405 | + 'szones' => $this->szones, | |
406 | + 'err' => $this->err, | |
407 | + 'db' => NULL, | |
408 | + ); | |
409 | + } | |
410 | + | |
411 | + public function __construct($uid = NULL) { | |
412 | + global $db; | |
413 | + $this->db = &$db; | |
414 | + if ((is_null($uid)) && | |
415 | + (isset($_SESSION['i'])) && | |
416 | + ($_SESSION['i'] > 1) && | |
417 | + (isset($_SESSION['u'])) && | |
418 | + ($_SESSION['p'])) { | |
419 | + $user = $_SESSION['u']; | |
420 | + $pass = $_SESSION['p']; | |
421 | + if (is_object($db)) { | |
422 | + if ((is_string($user)) && (is_string($pass))) { | |
423 | + $res = $this->db->query("SELECT * FROM users WHERE username ='" . $user . "' AND password = '" . $pass . "'"); | |
424 | + if (MDB2::isError($res)) { | |
425 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
426 | + error_log($this->err); | |
427 | + return false; | |
428 | + } elseif ($res->numRows() == 0) { | |
429 | + $this->err .= "Username or password does not match"; | |
430 | + error_log($this->err); | |
431 | + return false; | |
432 | + } else { | |
433 | + $row = $res->fetchRow(); | |
434 | + foreach ($row as $key => $value) { | |
435 | + switch ($key) { | |
436 | + case 'id': | |
437 | + $this->data[$key] = intval($value); | |
438 | + break; | |
439 | + case 'admin': | |
440 | + $this->data[$key] = ($value == 'yes'); | |
441 | + break; | |
442 | + default: | |
443 | + $this->data[$key] = strval($value); | |
444 | + } | |
445 | + } | |
446 | + $this->loadUserZones(); | |
447 | + return true; | |
448 | + } | |
449 | + } | |
450 | + } | |
451 | + } elseif (((is_array($uid)) && | |
452 | + (is_numeric($uid['id']))) || | |
453 | + (is_numeric($uid))) { | |
454 | + $aid = (is_array($uid)) ? $uid : array('id' => $uid); | |
455 | + if ($aid['id'] == 0) { | |
456 | + foreach ($aid as $key => $value) { | |
457 | + $this->data[$key] = $value; | |
458 | + } | |
459 | + $this->data['username'] = ((isset($aid['username'])) && ($aid['username'] > '')) ? $aid['username'] : 'NONE'; | |
460 | + $this->data['realname'] = ((isset($aid['realname'])) && ($aid['realname'] > '')) ? $aid['realname'] : $this->data['username']; | |
461 | + $this->data['password'] = ((isset($aid['password'])) && ($aid['password'] > '')) ? $aid['password'] : 'NONE'; | |
462 | + $this->data['admin'] = ((isset($aid['admin'])) && ($aid['admin'] > '') && (($aid['admin'] == 'yes') || ($aid['admin'] == 'no'))) ? $aid['admin'] : 'no'; | |
463 | + $res = $this->db->query("SELECT * FROM users WHERE username='" . $this->data['username'] . "'"); | |
464 | + if (MDB2::isError($res)) { | |
465 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
466 | + error_log($this->err); | |
467 | + return false; | |
468 | + } | |
469 | + if ($res->numRows() > 0) { | |
470 | + $this->err .= ($this->data['username'] == 'NONE') ? "Previous error cause a problem\n" : "User already exists\n"; | |
471 | + error_log($this->err); | |
472 | + return false; | |
473 | + } | |
474 | + $res = $this->db->query("INSERT INTO users (username, realname, admin, password) VALUES ('" . | |
475 | + $this->data['username'] . "', '" . | |
476 | + $this->data['realname'] . "', '" . | |
477 | + $this->data['admin'] . "', '" . | |
478 | + $this->data['password'] . "')"); | |
479 | + if (MDB2::isError($res)) { | |
480 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
481 | + error_log($this->err); | |
482 | + return false; | |
483 | + } | |
484 | + $res = $this->db->query("SELECT id FROM users WHERE username='" . | |
485 | + $this->data['username'] . "' AND realname='" . | |
486 | + $this->data['realname'] . "' AND password='" . | |
487 | + $this->data['password'] . "'"); | |
488 | + if (MDB2::isError($res)) { | |
489 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
490 | + error_log($this->err); | |
491 | + return false; | |
492 | + } | |
493 | + $ret = $res->fetchRow(); | |
494 | + $this->data['id'] = $ret['id']; | |
495 | + return true; | |
496 | + } else { | |
497 | + $self->data['id'] = $aid['id']; | |
498 | + $res = $this->db->query("SELECT * FROM users WHERE id = '" . $self->data['id'] . "'"); | |
499 | + if (MDB2::isError($res)) { | |
500 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
501 | + error_log($this->err); | |
502 | + return false; | |
503 | + } elseif ($res->numRows() == 0) { | |
504 | + $this->err .= "User not found with this id = " . $self->data['id']; | |
505 | + error_log($this->err); | |
506 | + return false; | |
507 | + } else { | |
508 | + $row = $res->fetchRow(); | |
509 | + foreach ($row as $key => $value) { | |
510 | + switch ($key) { | |
511 | + case 'id': | |
512 | + $this->data[$key] = intval($value); | |
513 | + break; | |
514 | + case 'admin': | |
515 | + $this->data[$key] = ($value == 'yes'); | |
516 | + break; | |
517 | + default: | |
518 | + $this->data[$key] = strval($value); | |
519 | + } | |
520 | + } | |
521 | + } | |
522 | + } | |
523 | + } | |
524 | + } | |
525 | + | |
526 | + public function loadUserZones() { | |
527 | + $WHERE = ''; | |
528 | + if (!$this->isAdmin()) { | |
529 | + $WHERE .= "WHERE owner = '" . $this->getId() . "' "; | |
530 | + } | |
531 | + $res = $this->db->query("SELECT id FROM zones " . $WHERE . "ORDER BY name"); | |
532 | + if (MDB2::isError($res)) { | |
533 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
534 | + error_log($this->err); | |
535 | + return false; | |
536 | + } else { | |
537 | + $this->mzones = array(); | |
538 | + while ($rec = $res->fetchRow()) { | |
539 | + $this->mzones[] = $rec['id']; | |
540 | + } | |
541 | + $res = $this->db->query("SELECT id FROM slave_zones " . $WHERE . "ORDER BY name"); | |
542 | + if (MDB2::isError($res)) { | |
543 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
544 | + error_log($this->err); | |
545 | + return false; | |
546 | + } else { | |
547 | + $this->szones = array(); | |
548 | + while ($rec = $res->fetchRow()) { | |
549 | + $this->szones[] = $rec['id']; | |
550 | + } | |
551 | + } | |
552 | + } | |
553 | + return true; | |
554 | + } | |
555 | + | |
556 | + public function getUnvalidatedZones($zonetype = NULL) { | |
557 | + $ret = array(); | |
558 | + if (is_string($zonetype)) { | |
559 | + $tag = ''; | |
560 | + $db = NULL; | |
561 | + switch ($zonetype) { | |
562 | + case 'slave': | |
563 | + $tag = 'slave_'; | |
564 | + $cnt = sizeof($this->szones); | |
565 | + $lst = implode(',', $this->szones); | |
566 | + break; | |
567 | + case 'master': | |
568 | + $cnt = sizeof($this->mzones); | |
569 | + $lst = implode(',', $this->mzones); | |
570 | + break; | |
571 | + } | |
572 | + if ($cnt > 0) { | |
573 | + $res = $this->db->query("SELECT id, name FROM " . $tag . "zones WHERE id IN (" . $lst . ") AND valid <> 'yes' and updated <> 'del'"); | |
574 | + if (MDB2::isError($res)) { | |
575 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
576 | + error_log($this->err); | |
577 | + return false; | |
578 | + } else { | |
579 | + while ($recd = $res->fetchRow()) { | |
580 | + $recd['name'] = hostToIdn($recd['name']); | |
581 | + $ret[] = $recd; | |
582 | + } | |
583 | + } | |
584 | + } | |
585 | + } | |
586 | + return $ret; | |
587 | + } | |
588 | + public function getDeletedZones($zonetype = NULL) { | |
589 | + $ret = array(); | |
590 | + if (is_string($zonetype)) { | |
591 | + $tag = ''; | |
592 | + $db = NULL; | |
593 | + switch ($zonetype) { | |
594 | + case 'slave': | |
595 | + $tag = 'slave_'; | |
596 | + $cnt = sizeof($this->szones); | |
597 | + $lst = implode(',', $this->szones); | |
598 | + break; | |
599 | + case 'master': | |
600 | + $cnt = sizeof($this->mzones); | |
601 | + $lst = implode(',', $this->mzones); | |
602 | + break; | |
603 | + } | |
604 | + if ($cnt > 0) { | |
605 | + $res = $this->db->query("SELECT id, name FROM " . $tag . "zones WHERE owner = " . $this->data['id'] . " AND updated = 'del'"); | |
606 | + if (MDB2::isError($res)) { | |
607 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
608 | + error_log($this->err); | |
609 | + return false; | |
610 | + } else { | |
611 | + while ($recd = $res->fetchRow()) { | |
612 | + $recd['name'] = hostToIdn($recd['name']); | |
613 | + $ret[] = $recd; | |
614 | + } | |
615 | + } | |
616 | + } | |
617 | + } | |
618 | + return $ret; | |
619 | + } | |
620 | + | |
621 | + public function getCommitableZones($zonetype = NULL) { | |
622 | + $ret = array(); | |
623 | + if (is_string($zonetype)) { | |
624 | + $tag = ''; | |
625 | + $db = NULL; | |
626 | + switch ($zonetype) { | |
627 | + case 'slave': | |
628 | + $tag = 'slave_'; | |
629 | + $cnt = sizeof($this->szones); | |
630 | + $lst = implode(',', $this->szones); | |
631 | + break; | |
632 | + case 'master': | |
633 | + $cnt = sizeof($this->mzones); | |
634 | + $lst = implode(',', $this->mzones); | |
635 | + break; | |
636 | + } | |
637 | + if ($cnt > 0) { | |
638 | + $res = $this->db->query("SELECT id, name FROM " . $tag . "zones WHERE id IN (" . $lst . ") AND valid = 'yes' AND updated = 'yes'"); | |
639 | + if (MDB2::isError($res)) { | |
640 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
641 | + error_log($this->err); | |
642 | + return false; | |
643 | + } else { | |
644 | + while ($recd = $res->fetchRow()) { | |
645 | + $recd['name'] = hostToIdn($recd['name']); | |
646 | + $ret[] = $recd; | |
647 | + } | |
648 | + } | |
649 | + } | |
650 | + } | |
651 | + return $ret; | |
652 | + } | |
653 | + | |
654 | + public function eraseUser() { | |
655 | + $this->loadUserZones(); | |
656 | + $mz =array(); | |
657 | + foreach ($this->mzones as $master) { | |
658 | + $mz = new masterRecord($master); | |
659 | + $mz->loadZoneHead(); | |
660 | + $mzh = $mz->getZoneHead(); | |
661 | + $mzh['owner'] = 1; | |
662 | + $mz->setZoneHead($mzh); | |
663 | + $mz->saveZoneHead(); | |
664 | + } | |
665 | + $mz =array(); | |
666 | + $sz =array(); | |
667 | + foreach ($this->szones as $slave) { | |
668 | + $sz = new slaveRecord($slave); | |
669 | + $sz->loadZoneHead(); | |
670 | + $szh = $sz->getZoneHead(); | |
671 | + $szh['owner'] = 1; | |
672 | + $sz->setZoneHead($szh); | |
673 | + $sz->saveZoneHead(); | |
674 | + } | |
675 | + $sz =array(); | |
676 | + $res = $this->db->query("DELETE FROM users WHERE id = " . $this->data['id']); | |
677 | + if (MDB2::isError($res)) { | |
678 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
679 | + error_log($this->err); | |
680 | + return false; | |
681 | + } | |
682 | + return true; | |
683 | + } | |
684 | + | |
685 | + public function getMasters($type = 'all') { | |
686 | + $out = array(); | |
687 | + if ($type == 'live') { | |
688 | + foreach ($this->mzones as $zoneid) { | |
689 | + $zone = new masterZone(array('id' => intval($zoneid))); | |
690 | + $zone->loadZoneHead(); | |
691 | + $head = $zone->getZoneHeadRaw(); | |
692 | + if ($head['updated'] != 'del') { | |
693 | + $out[] = intval($zoneid); | |
694 | + } | |
695 | + } | |
696 | + } else { | |
697 | + $out = $this->mzones; | |
698 | + } | |
699 | + return $out; | |
700 | + } | |
701 | + | |
702 | + public function getSlaves($type = 'all') { | |
703 | + $out = array(); | |
704 | + if ($type == 'live') { | |
705 | + foreach ($this->szones as $zoneid) { | |
706 | + $zone = new slaveZone(array('id' => intval($zoneid))); | |
707 | + $zone->loadZoneHead(); | |
708 | + $head = $zone->getZoneHeadRaw(); | |
709 | + if ($head['updated'] != 'del') { | |
710 | + $out[] = intval($zoneid); | |
711 | + } | |
712 | + } | |
713 | + } else { | |
714 | + $out = $this->szones; | |
715 | + } | |
716 | + return $out; | |
717 | + } | |
718 | + | |
719 | + public function isOwned($id, $type, $state = 'all') { | |
720 | + $zarr = array(); | |
721 | + switch ($type) { | |
722 | + case 'master': | |
723 | + $zarr = $this->getMasters($state); | |
724 | + break; | |
725 | + case 'slave': | |
726 | + $zarr = $this->getSlaves($state); | |
727 | + break; | |
728 | + } | |
729 | + foreach ($zarr as $zid) { | |
730 | + if ($zid == $id) { | |
731 | + return true; | |
732 | + } | |
733 | + } | |
734 | + return false; | |
735 | + } | |
736 | + | |
737 | + public function getName() { | |
738 | + return $this->data['username']; | |
739 | + } | |
740 | + | |
741 | + public function getErr() { | |
742 | + return $this->err; | |
743 | + } | |
744 | + | |
745 | + public function getFullName() { | |
746 | + return $this->data['realname']; | |
747 | + } | |
748 | + | |
749 | + public function isAdmin() { | |
750 | + return $this->data['admin']; | |
751 | + } | |
752 | + | |
753 | + public function getId() { | |
754 | + return $this->data['id']; | |
755 | + } | |
756 | + | |
757 | + public function getPasswordHash() { | |
758 | + return $this->data['password']; | |
759 | + } | |
760 | + | |
761 | + public function getUser() { | |
762 | + $arr = array(); | |
763 | + foreach (array('id', 'username', 'realname', 'admin') as $key) { | |
764 | + $arr[$key] = $this->data[$key]; | |
765 | + } | |
766 | + return $arr; | |
767 | + } | |
768 | + | |
769 | + public function getAllusers() { | |
770 | + $out = array(); | |
771 | + $res = $this->db->query("SELECT id, username, realname, admin FROM users ORDER BY realname"); | |
772 | + if (MDB2::isError($res)) { | |
773 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
774 | + error_log($this->err); | |
775 | + } else { | |
776 | + while ($row = $res->fetchRow()) { | |
777 | + $out[] = $row; | |
778 | + } | |
779 | + } | |
780 | + return $out; | |
781 | + } | |
782 | + | |
783 | + public function loadUserById() { | |
784 | + $res = $this->db->query("SELECT * FROM users WHERE id = " . $this->data['id']); | |
785 | + if (MDB2::isError($res)) { | |
786 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
787 | + error_log($this->err); | |
788 | + return false; | |
789 | + } elseif ($res->numRows() == 0) { | |
790 | + $this->err .= "User not found"; | |
791 | + error_log($this->err); | |
792 | + return false; | |
793 | + } else { | |
794 | + $row = $res->fetchRow(); | |
795 | + foreach ($row as $key => $value) { | |
796 | + switch ($key) { | |
797 | + case 'id': | |
798 | + $this->data[$key] = intval($value); | |
799 | + break; | |
800 | + case 'admin': | |
801 | + $this->data[$key] = ($value == 'yes'); | |
802 | + break; | |
803 | + default: | |
804 | + $this->data[$key] = strval($value); | |
805 | + } | |
806 | + } | |
807 | + return true; | |
808 | + } | |
809 | + } | |
810 | + | |
811 | + public function set($rname = NULL, $pass = NULL, $adm = NULL) { | |
812 | + if ((isset($pass)) || (isset($adm)) || (isset($rname))) { | |
813 | + $pstr = ((is_null($pass)) || (strlen($pass) != 32)) ? "" : "password = '" . $pass . "'"; | |
814 | + $astr = ((is_null($adm)) || (($adm != 'yes') && ($adm != 'no'))) ? "" : "admin = '" . $adm . "'"; | |
815 | + $rnstr = ((is_null($rname)) || ($rname == '')) ? "" : "realname = '" . $rname . "'"; | |
816 | + $setstr = $pstr; | |
817 | + if ($astr > '') { | |
818 | + $setstr .= ($setstr != "") ? ", " . $astr : $astr; | |
819 | + } | |
820 | + if ($rnstr > '') { | |
821 | + $setstr .= ($setstr != "") ? ", " . $rnstr : $rnstr; | |
822 | + } | |
823 | + if ($setstr > "") { | |
824 | + $res = $this->db->query("UPDATE users SET " . $setstr . " WHERE id = " . $this->data['id']); | |
825 | + if (MDB2::isError($res)) { | |
826 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
827 | + error_log($this->err); | |
828 | + return false; | |
829 | + } | |
830 | + return $this->loadUserById(); | |
831 | + } else { | |
832 | + return true; | |
833 | + } | |
834 | + } else { | |
835 | + return false; | |
836 | + } | |
837 | + } | |
838 | + } | |
839 | + | |
840 | + class masterRecord { | |
841 | + | |
842 | + private $record = array( | |
843 | + 'id' => NULL, | |
844 | + 'zone' => NULL, | |
845 | + 'host' => '', | |
846 | + 'type' => '', | |
847 | + 'pri' => 0, | |
848 | + 'destination' => '', | |
849 | + 'ttl' => 0, | |
850 | + ); | |
851 | + private $db = NULL; | |
852 | + private $err = ''; | |
853 | + | |
854 | + public function __debugInfo() { | |
855 | + return array( | |
856 | + 'record' => $this->record, | |
857 | + 'err' => $this->err, | |
858 | + 'db' => NULL, | |
859 | + ); | |
860 | + } | |
861 | + | |
862 | + public function __construct($param = NULL) { | |
863 | + global $db; | |
864 | + if (is_object($db)) { | |
865 | + $this->db = &$db; | |
866 | + } | |
867 | + if (!is_null($param)) { | |
868 | + return $this->setRecord($param); | |
869 | + } | |
870 | + return true; | |
871 | + } | |
872 | + | |
873 | + public function getId() { | |
874 | + return $this->record['id']; | |
875 | + } | |
876 | + | |
877 | + private function fill_record($param) { | |
878 | + foreach ($param as $key => $value) { | |
879 | + switch ($key) { | |
880 | + case 'id': | |
881 | + case 'pri': | |
882 | + case 'ttl': | |
883 | + case 'zone': | |
884 | + $this->record[$key] = intval($value); | |
885 | + break; | |
886 | + case 'host': | |
887 | + $this->record[$key] = idnToHost($value); | |
888 | + break; | |
889 | + case 'type': | |
890 | + $this->record[$key] = strtoupper($value); | |
891 | + break; | |
892 | + case 'destination': | |
893 | + switch ($this->record['type']) { | |
894 | + case 'MX': | |
895 | + case 'CNAME': | |
896 | + case 'SRV': | |
897 | + case 'PTR': | |
898 | + case 'NS': | |
899 | + $this->record[$key] = idnToHost($value); | |
900 | + break; | |
901 | + default: | |
902 | + $this->record[$key] = strval($value); | |
903 | + } | |
904 | + break; | |
905 | + default: | |
906 | + $this->record[$key] = $value; | |
907 | + } | |
908 | + } | |
909 | + } | |
910 | + | |
911 | + public function setRecord($param) { | |
912 | + if (is_string($param)) { | |
913 | + if (!$this->parseRecord($param)) { | |
914 | + return false; | |
915 | + } | |
916 | + } elseif (is_numeric($param)) { | |
917 | + $this->record['id'] = $param; | |
918 | + } elseif (is_array($param)) { | |
919 | + $this->fill_record($param); | |
920 | + } else { | |
921 | + ob_start(); | |
922 | + var_dump($param); | |
923 | + $this->err .= "Unidentified parameter" . "\n" . ob_get_clean(); | |
924 | + error_log($this->err); | |
925 | + return false; | |
926 | + } | |
927 | + return true; | |
928 | + } | |
929 | + | |
930 | + private function bind_time_format($value) { | |
931 | + if (preg_match(BIND_TIME_PATTERN, strtolower($value), $match)) { | |
932 | + $value = $match[1]; | |
933 | + switch ($match[2]) { | |
934 | + case "s": | |
935 | + $multiplier = 1; | |
936 | + break; | |
937 | + case "m": | |
938 | + $multiplier = 60; | |
939 | + break; | |
940 | + case "h": | |
941 | + $multiplier = 3600; | |
942 | + break; | |
943 | + case "d": | |
944 | + $multiplier = 86400; | |
945 | + break; | |
946 | + case "w": | |
947 | + $multiplier = 604800; | |
948 | + break; | |
949 | + } | |
950 | + $value = $value*$multiplier; | |
951 | + } | |
952 | + return $value; | |
953 | + } | |
954 | + | |
955 | + private function parseRecord($buffer) { | |
956 | + if (preg_match(RECORD_PATTERN, $buffer, $match)) { | |
957 | + $this->record['host'] = $match[1]; | |
958 | + if ($this->record['host'] == '') { | |
959 | + $this->record['host'] = '@'; | |
960 | + } | |
961 | + $this->record['type'] = strtoupper($match[4]); | |
962 | + if (isset($match[2])) { | |
963 | + $this->record['ttl'] = intval($this->bind_time_format($match[2])); | |
964 | + } else { | |
965 | + $this->record['ttl'] = 0; | |
966 | + } | |
967 | + switch ($this->record['type']) { | |
968 | + case 'MX': | |
969 | + if (preg_match(MX_PATTERN, $match[5], $match)) { | |
970 | + $this->record['pri'] = intval($match[1]); | |
971 | + $this->record['destination'] = idnToHost($match[2]); | |
972 | + } else { | |
973 | + ob_start(); | |
974 | + var_dump($buffer); | |
975 | + $this->err .= "MX cannot be parsed" . "\n" . ob_get_clean(); | |
976 | + error_log($this->err); | |
977 | + return NULL; | |
978 | + } | |
979 | + break; | |
980 | + case 'SRV': | |
981 | + case 'CNAME': | |
982 | + case 'NS': | |
983 | + case 'PTR': | |
984 | + $this->record['destination'] = idnToHost($match[5]); | |
985 | + break; | |
986 | + case 'TXT': | |
987 | + $this->record['destination'] = idnToHost(preg_replace('/(^"+|"+$|"+\s*"+)/msi', '', trim($match[5]))); | |
988 | + break; | |
989 | + default: | |
990 | + $this->record['destination'] = $match[5]; | |
991 | + } | |
992 | + return true; | |
993 | + } else { | |
994 | + ob_start(); | |
995 | + var_dump($buffer); | |
996 | + $this->err .= "Record cannot be parsed" . "\n" . ob_get_clean(); | |
997 | + error_log($this->err); | |
998 | + return false; | |
999 | + } | |
1000 | + } | |
1001 | + | |
1002 | + public function getRecordRaw() { | |
1003 | + return $this->record; | |
1004 | + } | |
1005 | + | |
1006 | + public function getRecord() { | |
1007 | + $out = $this->record; | |
1008 | + $out['host'] = hostToIdn($out['host']); | |
1009 | + switch ($out['type']) { | |
1010 | + case 'MX': | |
1011 | + case 'SRV': | |
1012 | + case 'NS': | |
1013 | + case 'CNAME': | |
1014 | + case 'PTR': | |
1015 | + $out['destination'] = hostToIdn($out['destination']); | |
1016 | + } | |
1017 | + return $out; | |
1018 | + } | |
1019 | + | |
1020 | + private function is_identified() { | |
1021 | + return (is_numeric($this->record['id']) && ($this->record['id'] > 0)); | |
1022 | + } | |
1023 | + | |
1024 | + public function loadRecord() { | |
1025 | + if ($this->is_identified()) { | |
1026 | + $res = $this->db->query('SELECT * FROM records WHERE id =' . $this->record['id']); | |
1027 | + if (MDB2::isError($res)) { | |
1028 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1029 | + error_log($this->err); | |
1030 | + return false; | |
1031 | + } else { | |
1032 | + $row = $res->fetchRow(); | |
1033 | + if (is_array($row)) { | |
1034 | + $this->fill_record($row); | |
1035 | + return true; | |
1036 | + } else { | |
1037 | + return NULL; | |
1038 | + } | |
1039 | + } | |
1040 | + } else { | |
1041 | + ob_start(); | |
1042 | + var_dump($this-record); | |
1043 | + $this->err .= "Record is not identified" . "\n" . ob_get_clean(); | |
1044 | + error_log($this->err); | |
1045 | + return false; | |
1046 | + } | |
1047 | + } | |
1048 | + | |
1049 | + public function getErr() { | |
1050 | + return $this->err; | |
1051 | + } | |
1052 | + | |
1053 | + private function is_complete() { | |
1054 | + return (($this->record['zone'] > 0) && | |
1055 | + ($this->record['type'] > '') && | |
1056 | + ( | |
1057 | + ($this->record['host'] > '') || | |
1058 | + ($this->record['destination'] > '') | |
1059 | + )); | |
1060 | + } | |
1061 | + | |
1062 | + private function find_record() { | |
1063 | + $res = $this->db->query("SELECT id FROM records WHERE " . | |
1064 | + "zone = " . $this->record['zone'] . " AND " . | |
1065 | + "host = '" . $this->record['host'] . "' AND " . | |
1066 | + "ttl = " . $this->record['ttl'] . " AND " . | |
1067 | + "type = '" . $this->record['type'] . "' AND " . | |
1068 | + "pri = " . $this->record['pri'] . " AND " . | |
1069 | + "destination = '" . $this->record['destination'] . "'" | |
1070 | + ); | |
1071 | + if (MDB2::isError($res)) { | |
1072 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1073 | + error_log($this->err); | |
1074 | + return 0; | |
1075 | + } else { | |
1076 | + $value = $res->fetchRow(); | |
1077 | + return $value['id']; | |
1078 | + } | |
1079 | + } | |
1080 | + | |
1081 | + public function saveRecord() { | |
1082 | + if ($this->is_complete()) { | |
1083 | + if ($this->record['host'] == '') { | |
1084 | + $this->record['host'] = '@'; | |
1085 | + } elseif ($this->record['destination'] == '') { | |
1086 | + $this->record['destination'] = '@'; | |
1087 | + } | |
1088 | + if ($this->record['type'] == 'MX') { | |
1089 | + $this->record['pri'] = ($this->record['pri'] == 0) ? 10 : $this->record['pri']; | |
1090 | + } else { | |
1091 | + $this->record['pri'] = 0; | |
1092 | + } | |
1093 | + if ((is_numeric($this->record['id'])) && ($this->record['id'] > 0)) { | |
1094 | + $res = $this->db->query("UPDATE records SET " . | |
1095 | + "zone = " . $this->record['zone'] . ", " . | |
1096 | + "host = '" . $this->record['host'] . "', " . | |
1097 | + "ttl = " . $this->record['ttl'] . ", " . | |
1098 | + "type = '" . $this->record['type'] . "', " . | |
1099 | + "pri = " . $this->record['pri'] . ", " . | |
1100 | + "destination = '" . $this->record['destination'] . | |
1101 | + "' WHERE id = " . $this->record['id'] | |
1102 | + ); | |
1103 | + if (MDB2::isError($res)) { | |
1104 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1105 | + error_log($this->err); | |
1106 | + return false; | |
1107 | + } else { | |
1108 | + return $this->loadRecord(); | |
1109 | + } | |
1110 | + } else { | |
1111 | + $id = $this->find_record(); | |
1112 | + if ($id > 0) { | |
1113 | + $this->record['id'] = $id; | |
1114 | + return true; | |
1115 | + } else { | |
1116 | + $res = $this->db->query("INSERT INTO records (zone, host, ttl, type, pri, destination) VALUES (" . | |
1117 | + $this->record['zone'] . ", '" . | |
1118 | + $this->record['host'] . "', " . | |
1119 | + $this->record['ttl'] . ", '" . | |
1120 | + $this->record['type'] . "', " . | |
1121 | + $this->record['pri'] . ", '" . | |
1122 | + $this->record['destination'] . "')" | |
1123 | + ); | |
1124 | + if (MDB2::isError($res)) { | |
1125 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1126 | + error_log($this->err); | |
1127 | + return false; | |
1128 | + } else { | |
1129 | + $id = $this->find_record(); | |
1130 | + if ($id > 0) { | |
1131 | + $this->record['id'] = $id; | |
1132 | + return true; | |
1133 | + } else { | |
1134 | + if ($this->err == '') { | |
1135 | + ob_start(); | |
1136 | + var_dump($this->record); | |
1137 | + $this->err .= "Unknown write error" . "\n" . ob_get_clean(); | |
1138 | + error_log($this->err); | |
1139 | + } | |
1140 | + return false; | |
1141 | + } | |
1142 | + } | |
1143 | + } | |
1144 | + } | |
1145 | + } else { | |
1146 | + ob_start(); | |
1147 | + var_dump($this->record); | |
1148 | + $this->err .= "Record is not complete" . "\n" . ob_get_clean(); | |
1149 | + error_log($this->err); | |
1150 | + return false; | |
1151 | + } | |
1152 | + } | |
1153 | + | |
1154 | + public function eraseRecord() { | |
1155 | + if ($this->is_identified()) { | |
1156 | + $res = $this->db->query("DELETE FROM records WHERE id = " . $this->record['id']); | |
1157 | + if (MDB2::isError($res)) { | |
1158 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1159 | + error_log($this->err); | |
1160 | + return false; | |
1161 | + } else { | |
1162 | + return true; | |
1163 | + } | |
1164 | + } else { | |
1165 | + ob_start(); | |
1166 | + var_dump($this->record); | |
1167 | + $this->err .= "Record is not set" . "\n" . ob_get_clean(); | |
1168 | + error_log($this->err); | |
1169 | + return false; | |
1170 | + } | |
1171 | + } | |
1172 | + } | |
1173 | + | |
1174 | + class slaveZone { | |
1175 | + private $head = array( | |
1176 | + 'id' => NULL, | |
1177 | + 'name' => '', | |
1178 | + 'master' => '', | |
1179 | + 'owner' => 0, | |
1180 | + 'updated' => 'no', | |
1181 | + 'valid' => 'may', | |
1182 | + ); | |
1183 | + private $db = NULL; | |
1184 | + private $err = ''; | |
1185 | + | |
1186 | + public function __debugInfo() { | |
1187 | + return array( | |
1188 | + 'head' => $this->head, | |
1189 | + 'err' => $this->err, | |
1190 | + 'db' => NULL, | |
1191 | + ); | |
1192 | + } | |
1193 | + | |
1194 | + public function __construct($param = NULL) { | |
1195 | + global $db; | |
1196 | + if (is_object($db)) { | |
1197 | + $this->db = &$db; | |
1198 | + } | |
1199 | + if (!is_null($param)) { | |
1200 | + return $this->setZoneHead($param); | |
1201 | + } | |
1202 | + return true; | |
1203 | + } | |
1204 | + | |
1205 | + public function setZoneHead($param) { | |
1206 | + if (is_string($param)) { | |
1207 | + $this->head['name'] = idnToHost($param); | |
1208 | + } elseif (is_numeric($param)) { | |
1209 | + $this->head['id'] = $param; | |
1210 | + } elseif (is_array($param)) { | |
1211 | + $this->fill_head($param); | |
1212 | + } else { | |
1213 | + ob_start(); | |
1214 | + var_dump($param); | |
1215 | + $this->err .= "Unidentified parameter" . "\n" . ob_get_clean(); | |
1216 | + error_log($this->err); | |
1217 | + return false; | |
1218 | + } | |
1219 | + return true; | |
1220 | + } | |
1221 | + | |
1222 | + private function fill_head($param) { | |
1223 | + foreach ($param as $key => $value) { | |
1224 | + switch ($key) { | |
1225 | + case 'id': | |
1226 | + case 'owner': | |
1227 | + $this->head[$key] = intval($value); | |
1228 | + break; | |
1229 | + case 'master': | |
1230 | + case 'name': | |
1231 | + $this->head[$key] = idnToHost($value); | |
1232 | + break; | |
1233 | + default: | |
1234 | + $this->head[$key] = $value; | |
1235 | + } | |
1236 | + } | |
1237 | + } | |
1238 | + | |
1239 | + private function is_identified() { | |
1240 | + return ((isset($this->head['id'])) || ($this->head['name'] > '')); | |
1241 | + } | |
1242 | + | |
1243 | + private function notIdent($complete = false) { | |
1244 | + ob_start(); | |
1245 | + var_dump($this->head); | |
1246 | + $head = ob_get_clean(); | |
1247 | + if ($complete) { | |
1248 | + $this->err .= "Zone is not complete" . "\n" . $head; | |
1249 | + error_log($this->err); | |
1250 | + } else { | |
1251 | + $this->err .= "Unidentified zone" . "\n" . $head; | |
1252 | + error_log($this->err); | |
1253 | + } | |
1254 | + } | |
1255 | + | |
1256 | + public function loadZoneHead() { | |
1257 | + if ($this->is_identified()) { | |
1258 | + $where = ' WHERE '; | |
1259 | + if (isset($this->head['id'])) { | |
1260 | + $where .= "id = " . $this->head['id']; | |
1261 | + } else { | |
1262 | + $where .= "name = '" . $this->head['name'] . "'"; | |
1263 | + } | |
1264 | + $res = $this->db->query("SELECT * FROM slave_zones" . $where); | |
1265 | + if (MDB2::isError($res)) { | |
1266 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1267 | + error_log($this->err); | |
1268 | + return false; | |
1269 | + } else { | |
1270 | + $row = $res->fetchRow(); | |
1271 | + if (is_array($row)) { | |
1272 | + $this->fill_head($row); | |
1273 | + return true; | |
1274 | + } else { | |
1275 | + return NULL; | |
1276 | + } | |
1277 | + } | |
1278 | + } else { | |
1279 | + notIdent(); | |
1280 | + return false; | |
1281 | + } | |
1282 | + } | |
1283 | + | |
1284 | + public function eraseZone() { | |
1285 | + if (!$this->is_identified()) { | |
1286 | + ob_start(); | |
1287 | + var_dump($this->head); | |
1288 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
1289 | + error_log($this->err); | |
1290 | + return false; | |
1291 | + } else { | |
1292 | + $where = ' WHERE '; | |
1293 | + if ($this->head['id'] >>= 0) { | |
1294 | + $where .= "id = " . $this->head['id']; | |
1295 | + } else { | |
1296 | + $where .= "name = '" . $this->head['name'] . "'"; | |
1297 | + } | |
1298 | + $res = $this->db->query("DELETE FROM slave_zones " . $where); | |
1299 | + if (MDB2::isError($res)) { | |
1300 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1301 | + error_log($this->err); | |
1302 | + return false; | |
1303 | + } | |
1304 | + $this->clearZone(); | |
1305 | + return true; | |
1306 | + } | |
1307 | + } | |
1308 | + | |
1309 | + public function clearZone() { | |
1310 | + | |
1311 | + $hd = array( | |
1312 | + 'id' => NULL, | |
1313 | + 'name' => '', | |
1314 | + 'master' => '', | |
1315 | + 'owner' => 0, | |
1316 | + 'updated' => 'no', | |
1317 | + 'valid' => 'may', | |
1318 | + ); | |
1319 | + } | |
1320 | + | |
1321 | + public function dumpZone($dig) { | |
1322 | + if ($this->is_identified()) { | |
1323 | + if (!$this->is_complete()) { | |
1324 | + $this->loadZoneHead(); | |
1325 | + } | |
1326 | + $cmd = $dig . " axfr @" . $this->head['master'] . " " . $this->head['name'] . ". +time=2 +tries=2 +retry=1 2>/dev/null"; | |
1327 | + unset($coutput); | |
1328 | + exec($cmd, $coutput, $exit); | |
1329 | + $out = ''; | |
1330 | + foreach ($coutput as $line) { | |
1331 | + $val = preg_replace('/(^;.*$|\r|\n)/', '', $line); | |
1332 | + $out .= ($val > '') ? $val . "\n" : ''; | |
1333 | + } | |
1334 | + return $out; | |
1335 | + } else { | |
1336 | + $this->err .= "Zone identification failed\n"; | |
1337 | + error_log($this->err); | |
1338 | + return false; | |
1339 | + } | |
1340 | + } | |
1341 | + | |
1342 | + public function validateZone($dig) { | |
1343 | + $out = $this->dumpZone($dig); | |
1344 | + if ((isset($out)) && ($out > '')) { | |
1345 | + return true; | |
1346 | + } elseif (isset($out)) { | |
1347 | + $err = "Zone transfer failed\n"; | |
1348 | + error_log($err); | |
1349 | + $this->err .= $err; | |
1350 | + } | |
1351 | + return false; | |
1352 | + } | |
1353 | + | |
1354 | + public function getZoneHeadRaw() { | |
1355 | + return $this->head; | |
1356 | + } | |
1357 | + | |
1358 | + public function getZoneHead() { | |
1359 | + $out = array(); | |
1360 | + foreach ($this->head as $key => $value) { | |
1361 | + switch ($key) { | |
1362 | + case 'master': | |
1363 | + case 'name': | |
1364 | + $out[$key] = hostToIdn($value); | |
1365 | + break; | |
1366 | + default: | |
1367 | + $out[$key] = $value; | |
1368 | + } | |
1369 | + } | |
1370 | + return $out; | |
1371 | + } | |
1372 | + | |
1373 | + public function getErr() { | |
1374 | + return $this->err; | |
1375 | + } | |
1376 | + | |
1377 | + private function is_complete() { | |
1378 | + return (($this->head['name'] > '') && ($this->head['master'] > '') && ($this->head['owner'] >0)); | |
1379 | + } | |
1380 | + | |
1381 | + public function doCommit() { | |
1382 | + if (!$this->is_complete()) { | |
1383 | + ob_start(); | |
1384 | + var_dump($this->head); | |
1385 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
1386 | + error_log($this->err); | |
1387 | + return false; | |
1388 | + } | |
1389 | + $res = $this->db->query("UPDATE slave_zones SET " . | |
1390 | + "updated = 'no' " . | |
1391 | + "WHERE id = " . $this->head['id']); | |
1392 | + if (MDB2::isError($res)) { | |
1393 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1394 | + error_log($this->err); | |
1395 | + return false; | |
1396 | + } | |
1397 | + return $this->loadZoneHead(); | |
1398 | + } | |
1399 | + | |
1400 | + public function saveZoneHead() { | |
1401 | + if (!$this->is_complete()) { | |
1402 | + ob_start(); | |
1403 | + var_dump($this->head); | |
1404 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
1405 | + error_log($this->err); | |
1406 | + return false; | |
1407 | + } | |
1408 | + if (!isset($this->head['id'])) { | |
1409 | + $vld = (isset($this->head['valid'])) ? $this->head['valid'] : 'may'; | |
1410 | + $upd = 'yes'; | |
1411 | + $res = $this->db->query("INSERT INTO slave_zones " . | |
1412 | + "(name, master, valid, owner, updated) " . | |
1413 | + "VALUES ('" . $this->head['name'] . | |
1414 | + "', '" . $this->head['master'] . | |
1415 | + "', '" . $vld . | |
1416 | + "', " . $this->head['owner'] . | |
1417 | + ", '" . $upd . | |
1418 | + "')"); | |
1419 | + if (MDB2::isError($res)) { | |
1420 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1421 | + error_log($this->err); | |
1422 | + return false; | |
1423 | + } | |
1424 | + return $this->loadZoneHead(); | |
1425 | + } else { | |
1426 | + $vld = (($this->head['valid'] == 'yes') || ($this->head['valid'] == 'no')) ? $this->head['valid'] : 'may'; | |
1427 | + $upd = ((isset($this->head['updated'])) && ($this->head['updated'] != 'del')) ? 'yes' : $this->head['updated']; | |
1428 | + $res = $this->db->query("UPDATE slave_zones SET " . | |
1429 | + "name = '" . $this->head['name'] . "', " . | |
1430 | + "master = '" . $this->head['master'] . "', " . | |
1431 | + "valid = '" . $vld . "', " . | |
1432 | + "owner = " . $this->head['owner'] . ", " . | |
1433 | + "updated = '" . $upd . "' " . | |
1434 | + "WHERE id = " . $this->head['id']); | |
1435 | + if (MDB2::isError($res)) { | |
1436 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1437 | + error_log($this->err); | |
1438 | + return false; | |
1439 | + } | |
1440 | + return $this->loadZoneHead(); | |
1441 | + } | |
1442 | + } | |
1443 | + | |
1444 | + } | |
1445 | + | |
1446 | + class masterZone { | |
1447 | + | |
1448 | + private $head = array( | |
1449 | + 'id' => NULL, | |
1450 | + 'name' => '', | |
1451 | + 'pri_dns' => '', | |
1452 | + 'sec_dns' => '', | |
1453 | + 'serial' => 0, | |
1454 | + 'refresh' => 0, | |
1455 | + 'retry' => 0, | |
1456 | + 'expire' => 0, | |
1457 | + 'ttl' => 0, | |
1458 | + 'valid' => 'may', | |
1459 | + 'owner' => 0, | |
1460 | + 'updated' => 'no', | |
1461 | + 'secured' => 'no', | |
1462 | + ); | |
1463 | + private $db = NULL; | |
1464 | + private $records = array(); | |
1465 | + private $err = ''; | |
1466 | + private $isloaded = FALSE; | |
1467 | + private $msg = ''; | |
1468 | + | |
1469 | + public function __debugInfo() { | |
1470 | + return array( | |
1471 | + 'head' => $this->head, | |
1472 | + 'records' => $this->records, | |
1473 | + 'err' => $this->err, | |
1474 | + 'isloaded' => $this->isloaded, | |
1475 | + 'msg' => $this->msg, | |
1476 | + 'db' => NULL, | |
1477 | + ); | |
1478 | + } | |
1479 | + | |
1480 | + public function __construct($param = NULL) { | |
1481 | + global $db; | |
1482 | + if (is_object($db)) { | |
1483 | + $this->db = &$db; | |
1484 | + } | |
1485 | + if (!is_null($param)) { | |
1486 | + return $this->setZoneHead($param); | |
1487 | + } | |
1488 | + return true; | |
1489 | + } | |
1490 | + | |
1491 | + public function getZoneHeadRaw() { | |
1492 | + return $this->head; | |
1493 | + } | |
1494 | + | |
1495 | + private function tab_to_space($line, $tab = 8, $nbsp = FALSE) { | |
1496 | + while (($t = mb_strpos($line,"\t")) !== FALSE) { | |
1497 | + $preTab = $t ? mb_substr($line, 0, $t) : ''; | |
1498 | + $line = $preTab . str_repeat($nbsp?chr(7):' ', $tab-(mb_strlen($preTab)%$tab)) . mb_substr($line, $t+1); | |
1499 | + } | |
1500 | + return $nbsp ? str_replace($nbsp?chr(7):' ', ' ', $line) : $line; | |
1501 | + } | |
1502 | + | |
1503 | + private function split_text_record($line, $length = 76) { | |
1504 | + $line = $this->tab_to_space($line); | |
1505 | + $slices = $line; | |
1506 | + if(strlen($line) > $length) { | |
1507 | + $pos = stripos($line, "\""); | |
1508 | + if ($pos !== false) { | |
1509 | + if($pos>$length-2) { | |
1510 | + $slices = substr($line, 0, $pos) . "(\n"; | |
1511 | + $line = $this->tab_to_space("\t\t\t\t\t" . substr($line,$pos) . " )"); | |
1512 | + } else { | |
1513 | + $allline = substr($line,0,$pos) . "( " . substr($line,$pos) . " )"; | |
1514 | + $slices = substr($allline,0,$length-1) . "\"\n"; | |
1515 | + $line = $this->tab_to_space("\t\t\t\t\t\t \"" . substr($allline,$length-1)); | |
1516 | + } | |
1517 | + while (strlen($line) > $length) { | |
1518 | + $slices .= substr($line, 0, $length-1) . "\"\n"; | |
1519 | + $line = $this->tab_to_space("\t\t\t\t\t\t \"" . substr($line,$length-1)); | |
1520 | + } | |
1521 | + if(strlen($line) > 0) { $slices .= $line; } | |
1522 | + } | |
1523 | + } | |
1524 | + return $slices; | |
1525 | + } | |
1526 | + | |
1527 | + private function prettyer($name,$ttl,$type,$pri,$target) { | |
1528 | + $line = str_pad($name, 31) . " " . $ttl . "\t" . "IN " . "$type"; | |
1529 | + if (strlen($type)<5) { | |
1530 | + $line .= "\t"; | |
1531 | + } | |
1532 | + $line .= " " . $pri; | |
1533 | + if (strlen($pri) > 0){ | |
1534 | + $line .= " "; | |
1535 | + } | |
1536 | + if ($type == "TXT"){ | |
1537 | + $target = "\"" . $target . "\""; | |
1538 | + } | |
1539 | + return $this->split_text_record($line . $target, 116); | |
1540 | + } | |
1541 | + | |
1542 | + | |
1543 | + public function getConf($hostmaster) { | |
1544 | + $out = "\$TTL " . $this->head['ttl'] . "\n"; | |
1545 | + $out .= $this->prettyer("@", "", "SOA", "", $this->head['pri_dns'] . ". " . $hostmaster . ".") . " (\n"; | |
1546 | + $out .= $this->tab_to_space("\t\t\t\t\t" . $this->head['serial'] . "\t; Serial\n") . | |
1547 | + $this->tab_to_space("\t\t\t\t\t" . $this->head['refresh'] . "\t\t; Refresh\n") . | |
1548 | + $this->tab_to_space("\t\t\t\t\t" . $this->head['retry'] . "\t\t; Retry\n") . | |
1549 | + $this->tab_to_space("\t\t\t\t\t" . $this->head['expire'] . "\t\t; Expire\n") . | |
1550 | + $this->tab_to_space("\t\t\t\t\t" . $this->head['ttl'] . ")\t\t; Negative Cache TTL\n;\n"); | |
1551 | + foreach (array('pri_dns', 'sec_dns') as $ns) { | |
1552 | + $out .= ($this->head[$ns] != '') ? $this->prettyer("@",'','NS','',$this->head[$ns] . ".") . "\n" : ""; | |
1553 | + } | |
1554 | + foreach ($this->getRecordsRaw() as $record) { | |
1555 | + $row = $record->getRecordRaw(); | |
1556 | + $pri = ($row['type'] == 'MX') ? $row['pri'] : ''; | |
1557 | + $ttl = ($row['ttl'] > 0) ? $row['ttl'] : ''; | |
1558 | + $out .= $this->prettyer($row['host'],$ttl,$row['type'],$pri,$row['destination']) . "\n"; | |
1559 | + } | |
1560 | + return $out; | |
1561 | + } | |
1562 | + | |
1563 | + public function getMsg() { | |
1564 | + return $this->msg; | |
1565 | + } | |
1566 | + | |
1567 | + public function writeZone($file, $hostmaster) { | |
1568 | + if (!$this->isloaded) { | |
1569 | + if (!$this->loadZone()) { | |
1570 | + $this->err .= "Unable to load zone\n"; | |
1571 | + error_log ($this->err); | |
1572 | + return false; | |
1573 | + } | |
1574 | + } | |
1575 | + $zonedata = $this->getConf($hostmaster); | |
1576 | + $fh = fopen($file, "w"); | |
1577 | + fwrite($fh, $zonedata . "\n"); | |
1578 | + fclose($fh); | |
1579 | + return true; | |
1580 | + } | |
1581 | + | |
1582 | + public function validateZone($file, $hostmaster, $checkzonecmd) { | |
1583 | + if ($this->writeZone($file, $hostmaster)) { | |
1584 | + $cmd = $checkzonecmd . " -i local " . $this->head['name'] . " " . $file . " 2>/dev/stdout"; | |
1585 | + unset($coutput); | |
1586 | + exec($cmd, $coutput, $exit); | |
1587 | + $rows = sizeof($coutput); | |
1588 | + $return[0] = ($coutput[$rows-1] == 'OK'); | |
1589 | + if (($return[0]) && ($exit == 0)) { | |
1590 | + $rows--; | |
1591 | + $return[1] = ''; | |
1592 | + } else { | |
1593 | + $return[1] = 'Exitcode: ' . $exit . "\n"; | |
1594 | + } | |
1595 | + $return[1] .= implode("<br />", $coutput); | |
1596 | + if (!$return[0]) { | |
1597 | + $this->err = $return[1]; | |
1598 | + error_log("ERROR\nCMD: " . $cmd . "\nExit: " . $exit . "\n" . implode("\n", $coutput)); | |
1599 | + $this->head['valid'] = 'no'; | |
1600 | + } else { | |
1601 | + $this->head['valid'] = 'yes'; | |
1602 | + } | |
1603 | + $this->saveZoneHead(); | |
1604 | + return $return; | |
1605 | + } | |
1606 | + $log = "Zone cannot be validate\n"; | |
1607 | + $this->err .= $log; | |
1608 | + error_log($log); | |
1609 | + return array(false,"Problem in prerequisites\n"); | |
1610 | + } | |
1611 | + | |
1612 | + public function getZoneHead() { | |
1613 | + $out = array(); | |
1614 | + foreach ($this->head as $key => $value) { | |
1615 | + switch ($key) { | |
1616 | + case 'pri_dns': | |
1617 | + case 'sec_dns': | |
1618 | + case 'name': | |
1619 | + $out[$key] = hostToIdn($value); | |
1620 | + break; | |
1621 | + default: | |
1622 | + $out[$key] = $value; | |
1623 | + } | |
1624 | + } | |
1625 | + return $out; | |
1626 | + } | |
1627 | + | |
1628 | + public function getErr() { | |
1629 | + return $this->err; | |
1630 | + } | |
1631 | + | |
1632 | + public function getId() { | |
1633 | + return $this->head['id']; | |
1634 | + } | |
1635 | + | |
1636 | + private function fill_head($param) { | |
1637 | + foreach ($param as $key => $value) { | |
1638 | + switch ($key) { | |
1639 | + case 'id': | |
1640 | + case 'serial': | |
1641 | + case 'retry': | |
1642 | + case 'refresh': | |
1643 | + case 'expire': | |
1644 | + case 'ttl': | |
1645 | + case 'owner': | |
1646 | + $this->head[$key] = intval($value); | |
1647 | + break; | |
1648 | + case 'pri_dns': | |
1649 | + case 'sec_dns': | |
1650 | + case 'name': | |
1651 | + $this->head[$key] = idnToHost($value); | |
1652 | + break; | |
1653 | + default: | |
1654 | + $this->head[$key] = $value; | |
1655 | + } | |
1656 | + } | |
1657 | + } | |
1658 | + | |
1659 | + public function setZoneHead($param) { | |
1660 | + if (is_string($param)) { | |
1661 | + $this->head['name'] = idnToHost($param); | |
1662 | + } elseif (is_numeric($param)) { | |
1663 | + $this->head['id'] = $param; | |
1664 | + } elseif (is_array($param)) { | |
1665 | + $this->fill_head($param); | |
1666 | + } else { | |
1667 | + ob_start(); | |
1668 | + var_dump($param); | |
1669 | + $this->err .= "Unidentified parameter" . "\n" . ob_get_clean(); | |
1670 | + error_log($this->err); | |
1671 | + return false; | |
1672 | + } | |
1673 | + return true; | |
1674 | + } | |
1675 | + | |
1676 | + private function is_identified() { | |
1677 | + return ((isset($this->head['id'])) || ($this->head['name'] > '')); | |
1678 | + } | |
1679 | + | |
1680 | + private function notIdent($complete = false) { | |
1681 | + ob_start(); | |
1682 | + var_dump($this->head); | |
1683 | + $head = ob_get_clean(); | |
1684 | + if ($complete) { | |
1685 | + $this->err .= "Zone is not complete" . "\n" . $head; | |
1686 | + error_log($this->err); | |
1687 | + } else { | |
1688 | + $this->err .= "Unidentified zone" . "\n" . $head; | |
1689 | + error_log($this->err); | |
1690 | + } | |
1691 | + } | |
1692 | + | |
1693 | + public function loadZoneHead() { | |
1694 | + if ($this->is_identified()) { | |
1695 | + $where = ' WHERE '; | |
1696 | + if (isset($this->head['id'])) { | |
1697 | + $where .= "id = " . $this->head['id']; | |
1698 | + } else { | |
1699 | + $where .= "name = '" . $this->head['name'] . "'"; | |
1700 | + } | |
1701 | + $res = $this->db->query("SELECT * FROM zones" . $where); | |
1702 | + if (MDB2::isError($res)) { | |
1703 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1704 | + error_log($this->err); | |
1705 | + return false; | |
1706 | + } else { | |
1707 | + $row = $res->fetchRow(); | |
1708 | + if (is_array($row)) { | |
1709 | + $this->fill_head($row); | |
1710 | + return true; | |
1711 | + } else { | |
1712 | + return NULL; | |
1713 | + } | |
1714 | + } | |
1715 | + } else { | |
1716 | + $this->notIdent(); | |
1717 | + return false; | |
1718 | + } | |
1719 | + } | |
1720 | + | |
1721 | + public function loadZoneRecords() { | |
1722 | + if ($this->is_complete()) { | |
1723 | + $res = $this->db->query("SELECT id FROM records WHERE zone = " . $this->head['id']); | |
1724 | + if (MDB2::isError($res)) { | |
1725 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
1726 | + error_log($this->err); | |
1727 | + return false; | |
1728 | + } else { | |
1729 | + while ($row = $res->fetchRow()) { | |
1730 | + $id = intval($row['id']); | |
1731 | + $this->records[$id] = new masterRecord($row); | |
1732 | + if (!$this->records[$id]->loadRecord()) { | |
1733 | + $this->err .= $this->records[$id]->getErr(); | |
1734 | + error_log($this->err); | |
1735 | + return false; | |
1736 | + } | |
1737 | + } | |
1738 | + return true; | |
1739 | + } | |
1740 | + } else { | |
1741 | + notIdent(true); | |
1742 | + return false; | |
1743 | + } | |
1744 | + } | |
1745 | + | |
1746 | + public function eraseRecord($id) { | |
1747 | + $found = false; | |
1748 | + foreach ($this->records as $key => $entry) { | |
1749 | + if ($key == $id) { | |
1750 | + $found = true; | |
1751 | + if (!$entry->eraseRecord()) { | |
1752 | + $this->err .= $entry->getErr(); | |
1753 | + error_log($this->err); | |
1754 | + return false; | |
1755 | + } | |
1756 | + } | |
1757 | + } | |
1758 | + if ($found) { | |
1759 | + $this->head['valid'] = 'may'; | |
1760 | + $this->saveZoneHead(); | |
1761 | + $this->records = array(); | |
1762 | + $this->loadZoneRecords(); | |
1763 | + return true; | |
1764 | + } | |
1765 | + $this->err .= "Record id not found" . "\n" . $id; | |
1766 | + error_log($this->err); | |
1767 | + return false; | |
1768 | + } | |
1769 | + | |
1770 | + public function addRecord($param = NULL) { | |
1771 | + if ((is_numeric($this->head['id'])) && ($this->head['id'] > 0)) { | |
1772 | + $nrec = new masterRecord($param); | |
1773 | + $nrec->setRecord(array( 'zone' => $this->head['id'])); | |
1774 | + $urec = $nrec->getRecord(); | |
1775 | + if (( | |
1776 | + ($urec['host'] > '') || | |
1777 | + ($urec['destination'] > '') | |
1778 | + ) && | |
1779 | + ($urec['host'] != $urec['destination']) && | |
1780 | + ($urec['type'] > '')) { | |
1781 | + $this->records[] = $nrec; | |
1782 | + $this->head['valid'] = 'may'; | |
1783 | + return true; | |
1784 | + } else { | |
1785 | + ob_start(); | |
1786 | + var_dump($param); | |
1787 | + $this->err .= "Record is empty" . "\n" . ob_get_clean(); | |
1788 | + error_log($this->err); | |
1789 | + return false; | |
1790 | + } | |
1791 | + } else { | |
1792 | + ob_start(); | |
1793 | + var_dump($this->head); | |
1794 | + $this->err .= "Zone has not defined yet" . "\n" . ob_get_clean(); | |
1795 | + error_log($this->err); | |
1796 | + return false; | |
1797 | + } | |
1798 | + } | |
1799 | + | |
1800 | + private function bind_time_format($value) { | |
1801 | + if (preg_match(BIND_TIME_PATTERN, strtolower($value), $match)) { | |
1802 | + $value = $match[1]; | |
1803 | + switch ($match[2]) { | |
1804 | + case "s": | |
1805 | + $multiplier = 1; | |
1806 | + break; | |
1807 | + case "m": | |
1808 | + $multiplier = 60; | |
1809 | + break; | |
1810 | + case "h": | |
1811 | + $multiplier = 3600; | |
1812 | + break; | |
1813 | + case "d": | |
1814 | + $multiplier = 86400; | |
1815 | + break; | |
1816 | + case "w": | |
1817 | + $multiplier = 604800; | |
1818 | + break; | |
1819 | + } | |
1820 | + $value = $value*$multiplier; | |
1821 | + } | |
1822 | + return $value; | |
1823 | + } | |
1824 | + | |
1825 | + | |
1826 | + public function parseZone($rows, $zonename, $owner = 1) { | |
1827 | + if (!is_array($rows)) { | |
1828 | + ob_start(); | |
1829 | + var_dump($rows); | |
1830 | + $this->err .= "Zone can be parsed from an array only" . "\n" . ob_get_clean(); | |
1831 | + error_log($this->err); | |
1832 | + return false; | |
1833 | + } else { | |
1834 | + $this->clearZone(); | |
1835 | + $this->head['name'] = idnToHost($zonename); | |
1836 | + $soafound = false; | |
1837 | + $soabegins = false; | |
1838 | + $soadata = ''; | |
1839 | + $recrow = ''; | |
1840 | + foreach ($rows as $row) { | |
1841 | + $row = preg_replace(COMMENT_PATTERN, ' ', trim($row)); | |
1842 | + $row = ($row == " ") ? '' : $row; | |
1843 | + if ($soafound === false) { | |
1844 | + if (preg_match(ORIGIN_PATTERN, $row, $match)) { | |
1845 | + $zone = strtolower($match[1]); | |
1846 | + if ($zone != $expectedname) { | |
1847 | + $this->clearZone(); | |
1848 | + $this->err .= "Given zone not matches with the expected (" . $zone . "<=>" . $expectedzone . ")"; | |
1849 | + error_log($this->err); | |
1850 | + return false; | |
1851 | + } | |
1852 | + } | |
1853 | + if (preg_match(SOA_BEGINS_PATTERN, $row, $match)) { | |
1854 | + $soabegins = true; | |
1855 | + } | |
1856 | + if ($soabegins) { | |
1857 | + $soadata .= $row; | |
1858 | + } | |
1859 | + if (preg_match(FULL_SOA_PATTERN, $soadata, $match)) { | |
1860 | + $prins = $match[3]; | |
1861 | + if(preg_match(TIMES_PATTERN, $match[5], $match2)) { | |
1862 | + $soafound = true; | |
1863 | + $serial = $match2[1]; | |
1864 | + $refresh = $this->bind_time_format($match2[2]); | |
1865 | + $retry = $this->bind_time_format($match2[3]); | |
1866 | + $expire = $this->bind_time_format($match2[4]); | |
1867 | + $ttl = $this->bind_time_format($match2[5]); | |
1868 | + if (($this->setZoneHead( | |
1869 | + array( | |
1870 | + 'serial' => intval($serial), | |
1871 | + 'refresh' => intval($refresh), | |
1872 | + 'retry' => intval($retry), | |
1873 | + 'expire' => intval($expire), | |
1874 | + 'ttl' => intval($ttl), | |
1875 | + 'owner' => intval($owner), | |
1876 | + 'pri_dns' => strval($prins), | |
1877 | + 'sec_dns' => '##EMPTY##', | |
1878 | + ))) && ($this->saveZoneHead())) { | |
1879 | + $soafound = true; | |
1880 | + } else { | |
1881 | + $this->err .= "Head cannot be set" . "\n" . $soadata; | |
1882 | + $this->clearZone(); | |
1883 | + return false; | |
1884 | + } | |
1885 | + } else { | |
1886 | + $this->err .= "SOA record cannot be parsed" . "\n" . $soadata; | |
1887 | + error_log($this->err); | |
1888 | + return false; | |
1889 | + } | |
1890 | + } | |
1891 | + } else { | |
1892 | + if ($recrow != '') { | |
1893 | + $rowpart = trim($row); | |
1894 | + $recrow .= $rowpart; | |
1895 | + $end = strpos($recrow, ')'); | |
1896 | + if ($end > 0) { | |
1897 | + $recrow = substr($recrow, 0, $end); | |
1898 | + $recd = new masterRecord(array('zone' => $this->head['id'])); | |
1899 | + if ($recd->setRecord($recrow)) { | |
1900 | + $parsed = $recd->getRecordRaw(); | |
1901 | + if ( | |
1902 | + ($this->head['sec_dns'] == '##EMPTY##') && | |
1903 | + ($parsed['type'] == 'NS') && | |
1904 | + ($parsed['destination'] != $self->head['pri_dns']) && | |
1905 | + ( | |
1906 | + ($parsed['host'] == '@') || | |
1907 | + ($parsed['host'] == '') | |
1908 | + ) | |
1909 | + ) { | |
1910 | + $self->head['sec_dns'] == $parsed['destination']; | |
1911 | + } | |
1912 | + $this->records[] = $recd; | |
1913 | + $recrow = ''; | |
1914 | + } else { | |
1915 | + $this->err .= $recd->getErr(); | |
1916 | + return false; | |
1917 | + } | |
1918 | + } | |
1919 | + } elseif ($row > '') { | |
1920 | + $end = strpos($row, '('); | |
1921 | + if ($end > 0) { | |
1922 | + $row = preg_replace('/\(/', '', $row); | |
1923 | + $recrow = $row; | |
1924 | + } | |
1925 | + $end = strpos($recrow, ')'); | |
1926 | + if ($end > 0) { | |
1927 | + $recrow = substr($recrow, 0, $end); | |
1928 | + $recd = new masterRecord(array('zone' => $this->head['id'])); | |
1929 | + if ($recd->setRecord($recrow, $this->head['name'])) { | |
1930 | + $this->records[] = $recd; | |
1931 | + $recrow = ''; | |
1932 | + } else { | |
1933 | + $this->err .= $recd->getErr(); | |
1934 | + return false; | |
1935 | + } | |
1936 | + } elseif ($recrow == '') { | |
1937 | + $recd = new masterRecord(array('zone' => $this->head['id'])); | |
1938 | + if ($recd->setRecord($row, $this->head['name'])) { | |
1939 | + $this->records[] = $recd; | |
1940 | + } else { | |
1941 | + $this->err .= $recd->getErr(); | |
1942 | + return false; | |
1943 | + } | |
1944 | + } | |
1945 | + } | |
1946 | + } | |
1947 | + } | |
1948 | + $recs = array(); | |
1949 | + foreach ($this->records as $each) { | |
1950 | + $rhd = $each->getRecordRaw(); | |
1951 | + if (($rhd['type'] == 'NS')) { | |
1952 | + if (($rhd['host'] == '@') && ($rhd['destination'] == $this->head['pri_dns'] . '.')) { | |
1953 | + continue; | |
1954 | + } elseif ($rhd['host'] == '@') { | |
1955 | + $this->head['sec_dns'] = ($this->head['sec_dns'] == '##EMPTY##') ? preg_replace('/\.$/', '', $rhd['destination']) : $this->head['sec_dns']; | |
1956 | + continue; | |
1957 | + } | |
1958 | + } | |
1959 | + $recs[] = $each; | |
1960 | + } | |
1961 | + $this->records = $recs; | |
1962 | + $this->saveZone(); | |
1963 | + } | |
1964 | + return true; | |
1965 | + } | |
1966 | + | |
1967 | + public function loadZone() { | |
1968 | + $ret = $this->loadZoneHead(); | |
1969 | + if (($ret) && (!is_null($this->head['id']))) { | |
1970 | + $this->isloaded = $this->loadZoneRecords(); | |
1971 | + return $this->isloaded; | |
1972 | + } elseif (is_null($ret)) { | |
1973 | + return NULL; | |
1974 | + } else { | |
1975 | + return false; | |
1976 | + } | |
1977 | + } | |
1978 | + | |
1979 | + public function getRecordsRaw() { | |
1980 | + return $this->records; | |
1981 | + } | |
1982 | + | |
1983 | + public function getRecords($ordered = false) { | |
1984 | + $out = array(); | |
1985 | + foreach ($this->records as $key => $each) { | |
1986 | + if ($ordered) { | |
1987 | + $out[] = $each->getRecord(); | |
1988 | + } else { | |
1989 | + $out[$key] = $each->getRecord(); | |
1990 | + } | |
1991 | + } | |
1992 | + return $out; | |
1993 | + } | |
1994 | + | |
1995 | + public function getZoneRaw() { | |
1996 | + $out = array(); | |
1997 | + $out[] = $this->getZoneHeadRaw(); | |
1998 | + $out[] = $this->getRecordsRaw(); | |
1999 | + } | |
2000 | + | |
2001 | + public function getZone() { | |
2002 | + $out = array(); | |
2003 | + $out[] = $this->getZoneHead(); | |
2004 | + $out[] = $this->getRecords(); | |
2005 | + return $out; | |
2006 | + } | |
2007 | + | |
2008 | + public function refresh_secure($zonedir) { | |
2009 | + | |
2010 | + $files = glob($zonedir . "{K,dsset-,}" . $this->head['name'] . ".{*private,*key,krf,}", GLOB_BRACE); | |
2011 | + $hit = 0; | |
2012 | + $names = array(); | |
2013 | + foreach ($files as $key => $file) { | |
2014 | + $name = basename($file); | |
2015 | + switch ($name) { | |
2016 | + case $this->head['name'] . '.krf': | |
2017 | + case 'dsset-' . $this->head['name'] . '.': | |
2018 | + $hit++; | |
2019 | + break; | |
2020 | + default: | |
2021 | + $pattern = '/^K' . $this->head['name'] . '\.\+\d+\+\d+\.(private|key)/'; | |
2022 | + preg_match($pattern, $name, $match); | |
2023 | + $hit += ($match[0] == $name) ? 1 : 0; | |
2024 | + } | |
2025 | + $names[$key] = $name; | |
2026 | + } | |
2027 | + $filesok = ($hit >= 8); | |
2028 | + $res = $this->db->query("SELECT id, dsset, krf FROM dnssec_zones WHERE zone = " . $this->head['id']); | |
2029 | + if (MDB2::isError($res)) { | |
2030 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2031 | + error_log($this->err); | |
2032 | + return false; | |
2033 | + } | |
2034 | + $dbok = ($res->numRows() == 1); | |
2035 | + if ($dbok) { | |
2036 | + $sel = $res->fetchRow(); | |
2037 | + $id = $sel['id']; | |
2038 | + $dsset = $sel['dsset']; | |
2039 | + $krf = $sel['krf']; | |
2040 | + if ($filesok) { | |
2041 | + $dssetf = file_get_contents($zonedir . "dsset-" . $this->head['name'] . '.'); | |
2042 | + $krff = file_get_contents($zonedir . $this->head['name'] . '.krf'); | |
2043 | + if (($dsset != $dssetf) || ($krf != $krff)) { | |
2044 | + $res = $this->db->query("UPDATE dnssec_zones SET " . | |
2045 | + "dsset = '" . $dssetf . "', " . | |
2046 | + "krf = '" . $krff . "' WHERE id = " . $id | |
2047 | + ); | |
2048 | + if (MDB2::isError($res)) { | |
2049 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2050 | + error_log($this->err); | |
2051 | + return false; | |
2052 | + } | |
2053 | + } | |
2054 | + $skeys = array(); | |
2055 | + $keys = array(); | |
2056 | + foreach ($names as $name) { | |
2057 | + $bn = basename($name, '.key'); | |
2058 | + if ($bn . '.key' == $name) { | |
2059 | + $keys[] = $bn; | |
2060 | + $skeys[] = "'" . $bn . "'"; | |
2061 | + } | |
2062 | + } | |
2063 | + $res = $this->db->query("UPDATE dnssec_keys SET archive = 'yes' WHERE " . | |
2064 | + "dszone = " . $id . " AND " . | |
2065 | + "archive = 'no'"); | |
2066 | + if (MDB2::isError($res)) { | |
2067 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2068 | + error_log($this->err); | |
2069 | + return false; | |
2070 | + } | |
2071 | + $res = $this->db->query("UPDATE dnssec_keys SET archive = 'no' WHERE " . | |
2072 | + "dszone = " . $id . " AND " . | |
2073 | + "filename IN (" . implode(",", $skeys) . ")"); | |
2074 | + if (MDB2::isError($res)) { | |
2075 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2076 | + error_log($this->err); | |
2077 | + return false; | |
2078 | + } | |
2079 | + foreach ($keys as $keyf) { | |
2080 | + $res = $this->db->query("SELECT id, fkey, fprivate FROM dnssec_keys WHERE filename = '" . $keyf . "' AND dszone = " . $id . " AND archive = 'no'"); | |
2081 | + if (MDB2::isError($res)) { | |
2082 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2083 | + error_log($this->err); | |
2084 | + return false; | |
2085 | + } | |
2086 | + $kfile = file_get_contents($zonedir . $keyf . '.key'); | |
2087 | + $pfile = file_get_contents($zonedir . $keyf . '.private'); | |
2088 | + if ($res->numRows() == 0) { | |
2089 | + $this->db->query("INSERT INTO dnssec_keys (dszone, filename, fkey, fprivate, archive) VALUES ('" . $id . "','" . | |
2090 | + $keyf . "', '" . $kfile . "', '" . | |
2091 | + $pfile . "', 'no');" | |
2092 | + ); | |
2093 | + if (MDB2::isError($res)) { | |
2094 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2095 | + error_log($this->err); | |
2096 | + return false; | |
2097 | + } | |
2098 | + } else { | |
2099 | + $row = $res->fetchRow(); | |
2100 | + if (($kfile != $row['fkey']) || ($pfile != $row['fprivate'])) { | |
2101 | + $res = $this->db->query("UPDATE dnssec_keys SET " . | |
2102 | + "fkey = '" . $kfile . "', " . | |
2103 | + "fprivate = '" . $pfile . | |
2104 | + "' WHERE dszone = " . $id . | |
2105 | + " AND filename = '" . $keyf . | |
2106 | + "' AND archive = 'no'" | |
2107 | + ); | |
2108 | + if (MDB2::isError($res)) { | |
2109 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2110 | + error_log($this->err); | |
2111 | + return false; | |
2112 | + } | |
2113 | + } | |
2114 | + } | |
2115 | + } | |
2116 | + } else { | |
2117 | + $fh = fopen($zonedir . "dsset-" . $this->head['name'] . ".", 'w'); | |
2118 | + fwrite($fh, $sel['dsset']); | |
2119 | + fclose($fh); | |
2120 | + $fh = fopen($zonedir . $this->head['name'] . ".krf", 'w'); | |
2121 | + fwrite($fh, $sel['krf'] . "\n\n"); | |
2122 | + fclose($fh); | |
2123 | + $id = $sel['id']; | |
2124 | + $res = $this->db->query("SELECT * FROM dnssec_keys WHERE " . | |
2125 | + " dszone = " . $id . " AND " . | |
2126 | + " archive = 'no'" | |
2127 | + ); | |
2128 | + if (MDB2::isError($res)) { | |
2129 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2130 | + error_log($this->err); | |
2131 | + return false; | |
2132 | + } | |
2133 | + if ($res->numRows() < 3) { | |
2134 | + $this->err .= "Missing key records\n"; | |
2135 | + error_log($this->err); | |
2136 | + return false; | |
2137 | + } | |
2138 | + while ($rec = $res->fetchRow()) { | |
2139 | + foreach (array('private', 'key') as $ext) { | |
2140 | + $fh = fopen($zonedir . $rec['filename'] . "." . $ext, 'w'); | |
2141 | + fwrite($fh, $rec['f' . $ext] . "\n"); | |
2142 | + fclose($fh); | |
2143 | + } | |
2144 | + } | |
2145 | + } | |
2146 | + } elseif ($filesok) { | |
2147 | + $dsset = ''; | |
2148 | + $krf = ''; | |
2149 | + $keyset = array(); | |
2150 | + foreach ($names as $name) { | |
2151 | + switch ($name) { | |
2152 | + case 'dsset-' . $this->head['name'] . '.': | |
2153 | + $dsset = file_get_contents($zonedir . $name); | |
2154 | + break; | |
2155 | + case $this->head['name'] . '.krf': | |
2156 | + $krf = file_get_contents($zonedir . $name); | |
2157 | + break; | |
2158 | + default: | |
2159 | + $ext = (basename($name, '.key') == $name) ? 'private' : 'key'; | |
2160 | + $base = basename($name, '.' . $ext); | |
2161 | + $keyset[$base][$ext] = file_get_contents($zonedir . $name); | |
2162 | + } | |
2163 | + } | |
2164 | + if (($krf == '') || ($dsset == '')) { | |
2165 | + $this->err .= "Incomplete DSSET\n"; | |
2166 | + error_log($this->err); | |
2167 | + return false; | |
2168 | + } else { | |
2169 | + $res = $this->db->query("INSERT INTO dnssec_zones (zone, krf, dsset) VALUES ('" . | |
2170 | + $this->head['id'] . "', '" . | |
2171 | + $krf . "', '" . | |
2172 | + $dsset . "')" | |
2173 | + ); | |
2174 | + if (MDB2::isError($res)) { | |
2175 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2176 | + error_log($this->err); | |
2177 | + return false; | |
2178 | + } | |
2179 | + $res = $this->db->query("SELECT id FROM dnssec_zones WHERE zone = " . $this->head['id']); | |
2180 | + if (MDB2::isError($res)) { | |
2181 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2182 | + error_log($this->err); | |
2183 | + return false; | |
2184 | + } | |
2185 | + $rec = $res->fetchRow(); | |
2186 | + $id = $rec['id']; | |
2187 | + $ok = 0; | |
2188 | + foreach ($keyset as $name => $arr) { | |
2189 | + $key = $arr['key']; | |
2190 | + $private = $arr['private']; | |
2191 | + if (($key == '') || ($private == '')) { | |
2192 | + $this->err .= "Incomplete KEYSET\n"; | |
2193 | + error_log($this->err); | |
2194 | + return false; | |
2195 | + } | |
2196 | + $res = $this->db->query("INSERT INTO dnssec_keys (dszone, filename, fkey, fprivate, archive) VALUES (" . | |
2197 | + $id . ", '" . | |
2198 | + $name . "', '" . | |
2199 | + $key . "', '" . | |
2200 | + $private . "', 'no')" | |
2201 | + ); | |
2202 | + if (MDB2::isError($res)) { | |
2203 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2204 | + error_log($this->err); | |
2205 | + return false; | |
2206 | + } | |
2207 | + $ok++; | |
2208 | + } | |
2209 | + if ($ok < 3) { | |
2210 | + $this->err .= "Not enough KEYSET\n"; | |
2211 | + error_log($this->err); | |
2212 | + return false; | |
2213 | + } | |
2214 | + } | |
2215 | + } else { | |
2216 | + return false; | |
2217 | + } | |
2218 | + return true; | |
2219 | + } | |
2220 | + | |
2221 | + public function doSecure($zonedir, $zonesigner, $rollinit, $rollerconf) { | |
2222 | + if (!$this->is_complete()) { | |
2223 | + ob_start(); | |
2224 | + var_dump($this->head); | |
2225 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
2226 | + error_log($this->err); | |
2227 | + return false; | |
2228 | + } | |
2229 | + $err = $this->err; | |
2230 | + $param = (($this->refresh_secure($zonedir)) && ($err == $this->err)) ? '' : ' -genkeys -usensec3'; | |
2231 | + if ($err != $this->err) return false; | |
2232 | + $cmd = $zonesigner . $param . " -zone " . $this->head['name'] . " " . $zonedir . $this->head['name'] . " 2>/dev/stdout"; | |
2233 | + unset($coutput); | |
2234 | + $currpath = getcwd(); | |
2235 | + chdir($zonedir); | |
2236 | + exec($cmd, $coutput, $signexit); | |
2237 | + chdir($currpath); | |
2238 | + if ($signexit != 0) { | |
2239 | + $this->err .= "Zonesigner error (" . $signexit . "):\n" . implode("\n",$coutput); | |
2240 | + error_log($this->err); | |
2241 | + return false; | |
2242 | + } else { | |
2243 | + $this->msg .= "Zonesigner output (" . $signexit . "):\n " . implode("\n ",$coutput) . "\n"; | |
2244 | + } | |
2245 | + if (!$this->refresh_secure($zonedir)) return false; | |
2246 | + $rollf = file($rollerconf, FILE_IGNORE_NEW_LINES ); | |
2247 | + $noroll = false; | |
2248 | + foreach ($rollf as $row) { | |
2249 | + preg_match('/^\s*roll\s+"' . $this->head['name'] . '"\s*/', $row, $match); | |
2250 | + $noroll = (isset($match[0]) && ($row == $match[0])); | |
2251 | + if ($noroll) break; | |
2252 | + } | |
2253 | + if (!$noroll) { | |
2254 | + $cmd = $rollinit . " " . $this->head['name'] . | |
2255 | + " -zone " . $zonedir . $this->head['name'] . '.signed' . | |
2256 | + " -keyrec " . $zonedir . $this->head['name'] . ".krf " . | |
2257 | + " -directory " . $zonedir . " 2>/dev/stdout"; | |
2258 | + unset($coutput); | |
2259 | + exec($cmd, $coutput, $exit); | |
2260 | + if ($exit != 0) { | |
2261 | + $this->err .= "Rollerd error(" . $exit . "):\n" . implode("\n ",$coutput) . "\n"; | |
2262 | + error_log($this->err); | |
2263 | + return false; | |
2264 | + } else { | |
2265 | + $fh = fopen($rollerconf, "a+"); | |
2266 | + fwrite($fh, "\n# rollinit config for zone " . hostToIdn($this->head['name']) . ":\n" . implode("\n", $coutput) . "\n"); | |
2267 | + fclose($fh); | |
2268 | + $this->msg .= "\n Rollerd for zone " . hostToIdn($this->head['name']) . " is configured now\n"; | |
2269 | + } | |
2270 | + } else { | |
2271 | + $this->msg .= "\n Rollerd for zone " . hostToIdn($this->head['name']) . " has already set\n"; | |
2272 | + } | |
2273 | + return true; | |
2274 | + } | |
2275 | + | |
2276 | + private function is_complete() { | |
2277 | + return (($this->head['name'] > '') && | |
2278 | + ($this->head['pri_dns'] > '') && | |
2279 | + ($this->head['sec_dns'] > '') && | |
2280 | + ($this->head['refresh'] > 0) && | |
2281 | + ($this->head['retry'] > 0) && | |
2282 | + ($this->head['expire'] > 0) && | |
2283 | + ($this->head['ttl'] > 0) && | |
2284 | + ($this->head['owner'] > 0)); | |
2285 | + } | |
2286 | + | |
2287 | + public function doCommit() { | |
2288 | + if (!$this->is_complete()) { | |
2289 | + ob_start(); | |
2290 | + var_dump($this->head); | |
2291 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
2292 | + error_log($this->err); | |
2293 | + return false; | |
2294 | + } | |
2295 | + $res = $this->db->query("UPDATE zones SET " . | |
2296 | + "updated = 'no' " . | |
2297 | + "WHERE id = " . $this->head['id']); | |
2298 | + if (MDB2::isError($res)) { | |
2299 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2300 | + error_log($this->err); | |
2301 | + return false; | |
2302 | + } | |
2303 | + return $this->loadZoneHead(); | |
2304 | + } | |
2305 | + | |
2306 | + public function saveZoneHead() { | |
2307 | + if (!$this->is_complete()) { | |
2308 | + ob_start(); | |
2309 | + var_dump($this->head); | |
2310 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
2311 | + error_log($this->err); | |
2312 | + return false; | |
2313 | + } | |
2314 | + if (!isset($this->head['id'])) { | |
2315 | + $srl =intval(date('Ymd') . '01'); | |
2316 | + $vld = (isset($this->head['valid'])) ? $this->head['valid'] : 'may'; | |
2317 | + $upd = 'yes'; | |
2318 | + $res = $this->db->query("INSERT INTO zones " . | |
2319 | + "(name, pri_dns, sec_dns, serial, refresh, retry, expire, ttl, valid, owner, updated, secured) " . | |
2320 | + "VALUES ('" . $this->head['name'] . | |
2321 | + "', '" . $this->head['pri_dns'] . | |
2322 | + "', '" . $this->head['sec_dns'] . | |
2323 | + "', " . $srl . | |
2324 | + ", " . $this->head['refresh'] . | |
2325 | + ", " . $this->head['retry'] . | |
2326 | + ", " . $this->head['expire'] . | |
2327 | + ", " . $this->head['ttl'] . | |
2328 | + ", '" . $vld . | |
2329 | + "', " . $this->head['owner'] . | |
2330 | + ", '" . $upd . | |
2331 | + "', '" . $this->head['secured'] . "')"); | |
2332 | + if (MDB2::isError($res)) { | |
2333 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2334 | + error_log($this->err); | |
2335 | + return false; | |
2336 | + } | |
2337 | + return $this->loadZone(); | |
2338 | + } else { | |
2339 | + $srl = ($this->head['updated'] == 'no') ? intval(date('Ymd') . '01') : $this->head['serial']; | |
2340 | + if ($srl <= $this->head['serial']) { | |
2341 | + $srl = ($this->head['updated'] == 'no') ? $this->head['serial'] + 1 : $this->head['serial']; | |
2342 | + } | |
2343 | + $vld = (($this->head['valid'] == 'yes') || ($this->head['valid'] == 'no')) ? $this->head['valid'] : 'may'; | |
2344 | + $upd = ((isset($this->head['updated'])) && ($this->head['updated'] != 'del')) ? 'yes' : $this->head['updated']; | |
2345 | + $res = $this->db->query("UPDATE zones SET " . | |
2346 | + "name = '" . $this->head['name'] . "', " . | |
2347 | + "pri_dns = '" . $this->head['pri_dns'] . "', " . | |
2348 | + "sec_dns = '" . $this->head['sec_dns'] . "', " . | |
2349 | + "serial = " . $srl . ", " . | |
2350 | + "refresh = " . $this->head['refresh'] . ", " . | |
2351 | + "retry = " . $this->head['retry'] . ", " . | |
2352 | + "expire = " . $this->head['expire'] . ", " . | |
2353 | + "ttl = " . $this->head['ttl'] . ", " . | |
2354 | + "valid = '" . $vld . "', " . | |
2355 | + "owner = " . $this->head['owner'] . ", " . | |
2356 | + "updated = '" . $upd . "', " . | |
2357 | + "secured = '" . $this->head['secured'] . "' " . | |
2358 | + "WHERE id = " . $this->head['id']); | |
2359 | + if (MDB2::isError($res)) { | |
2360 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2361 | + error_log($this->err); | |
2362 | + return false; | |
2363 | + } | |
2364 | + return $this->loadZoneHead(); | |
2365 | + } | |
2366 | + } | |
2367 | + | |
2368 | + public function saveZone() { | |
2369 | + if ($this->saveZoneHead()) { | |
2370 | + foreach ($this->records as $each) { | |
2371 | + if (!$each->saveRecord()) { | |
2372 | + $this->err = $each->getErr(); | |
2373 | + return false; | |
2374 | + } | |
2375 | + } | |
2376 | + return true; | |
2377 | + } else { | |
2378 | + return false; | |
2379 | + } | |
2380 | + } | |
2381 | + | |
2382 | + public function eraseZone() { | |
2383 | + if (!$this->is_identified()) { | |
2384 | + ob_start(); | |
2385 | + var_dump($this->head); | |
2386 | + $this->err .= "Zone head is not complete" . "\n" . ob_get_clean(); | |
2387 | + error_log($this->err); | |
2388 | + return false; | |
2389 | + } else { | |
2390 | + $where = ' WHERE '; | |
2391 | + if ($this->head['id'] >>= 0) { | |
2392 | + $where .= "id = " . $this->head['id']; | |
2393 | + } else { | |
2394 | + $where .= "name = '" . $this->head['name'] . "'"; | |
2395 | + } | |
2396 | + $res = $this->db->query("DELETE FROM zones " . $where); | |
2397 | + if (MDB2::isError($res)) { | |
2398 | + $this->err .= $res->getMessage() . "\n" . $res->getDebugInfo(); | |
2399 | + error_log($this->err); | |
2400 | + return false; | |
2401 | + } | |
2402 | + $this->clearZone(); | |
2403 | + return true; | |
2404 | + } | |
2405 | + } | |
2406 | + | |
2407 | + public function clearZone() { | |
2408 | + $id = $this->head['id']; | |
2409 | + $head = array( | |
2410 | + 'id' => $id, | |
2411 | + 'name' => '', | |
2412 | + 'pri_dns' => '', | |
2413 | + 'sec_dns' => '', | |
2414 | + 'serial' => 0, | |
2415 | + 'refresh' => 0, | |
2416 | + 'retry' => 0, | |
2417 | + 'expire' => 0, | |
2418 | + 'ttl' => 0, | |
2419 | + 'valid' => 'may', | |
2420 | + 'owner' => 0, | |
2421 | + 'updated' => 'no', | |
2422 | + 'secured' => 'no', | |
2423 | + ); | |
2424 | + $this->head = $head; | |
2425 | + $this->records = array(); | |
2426 | + $this->isloaded = FALSE; | |
2427 | + } | |
2428 | + } | ... | ... |
mysql.sql
0 → 100644
1 | +++ a/mysql.sql | |
1 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
2 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
3 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
4 | +/*!40101 SET NAMES utf8 */; | |
5 | +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
6 | +/*!40103 SET TIME_ZONE='+00:00' */; | |
7 | +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
8 | +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
9 | +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
10 | +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
11 | + | |
12 | +-- | |
13 | +-- Table structure for table `dnssec_keys` | |
14 | +-- | |
15 | + | |
16 | +DROP TABLE IF EXISTS `dnssec_keys`; | |
17 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
18 | +/*!40101 SET character_set_client = utf8 */; | |
19 | +CREATE TABLE `dnssec_keys` ( | |
20 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
21 | + `dszone` int(11) NOT NULL, | |
22 | + `filename` varchar(50) NOT NULL, | |
23 | + `fkey` text, | |
24 | + `fprivate` text, | |
25 | + `archive` varchar(3) DEFAULT NULL, | |
26 | + `refresh` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
27 | + UNIQUE KEY `id` (`id`), | |
28 | + KEY `keyzon` (`dszone`), | |
29 | + KEY `arch` (`archive`), | |
30 | + KEY `filen` (`filename`), | |
31 | + CONSTRAINT `fkdskeys` FOREIGN KEY (`dszone`) REFERENCES `dnssec_zones` (`id`) ON DELETE CASCADE | |
32 | +) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8; | |
33 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
34 | + | |
35 | +-- | |
36 | +-- Dumping data for table `dnssec_keys` | |
37 | +-- | |
38 | + | |
39 | +LOCK TABLES `dnssec_keys` WRITE; | |
40 | +/*!40000 ALTER TABLE `dnssec_keys` DISABLE KEYS */; | |
41 | +/*!40000 ALTER TABLE `dnssec_keys` ENABLE KEYS */; | |
42 | +UNLOCK TABLES; | |
43 | + | |
44 | +-- | |
45 | +-- Table structure for table `dnssec_zones` | |
46 | +-- | |
47 | + | |
48 | +DROP TABLE IF EXISTS `dnssec_zones`; | |
49 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
50 | +/*!40101 SET character_set_client = utf8 */; | |
51 | +CREATE TABLE `dnssec_zones` ( | |
52 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
53 | + `zone` int(11) NOT NULL, | |
54 | + `krf` text NOT NULL, | |
55 | + `dsset` text NOT NULL, | |
56 | + UNIQUE KEY `id` (`id`), | |
57 | + KEY `dsnam` (`zone`), | |
58 | + CONSTRAINT `fkdszones` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE | |
59 | +) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8; | |
60 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
61 | + | |
62 | +-- | |
63 | +-- Dumping data for table `dnssec_zones` | |
64 | +-- | |
65 | + | |
66 | +LOCK TABLES `dnssec_zones` WRITE; | |
67 | +/*!40000 ALTER TABLE `dnssec_zones` DISABLE KEYS */; | |
68 | +/*!40000 ALTER TABLE `dnssec_zones` ENABLE KEYS */; | |
69 | +UNLOCK TABLES; | |
70 | + | |
71 | +-- | |
72 | +-- Table structure for table `options` | |
73 | +-- | |
74 | + | |
75 | +DROP TABLE IF EXISTS `options`; | |
76 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
77 | +/*!40101 SET character_set_client = utf8 */; | |
78 | +CREATE TABLE `options` ( | |
79 | + `prefkey` varchar(20) NOT NULL, | |
80 | + `preftype` varchar(6) NOT NULL DEFAULT '', | |
81 | + `prefval` varchar(255) DEFAULT NULL, | |
82 | + UNIQUE KEY `prefkey` (`prefkey`), | |
83 | + KEY `ptype` (`preftype`), | |
84 | + KEY `pval` (`prefval`) | |
85 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
86 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
87 | + | |
88 | +-- | |
89 | +-- Dumping data for table `options` | |
90 | +-- | |
91 | + | |
92 | +LOCK TABLES `options` WRITE; | |
93 | +/*!40000 ALTER TABLE `options` DISABLE KEYS */; | |
94 | +INSERT INTO `options` VALUES ('A','record','on'),('A6','record','off'),('AAAA','record','off'),('AFSDB','record','off'),('APL','record','off'),('ATMA','record','off'),('AXFR','record','off'),('CERT','record','off'),('CNAME','record','on'),('DNAME','record','off'),('DNSKEY','record','off'),('DS','record','off'),('EID','record','off'),('GPOS','record','off'),('HINFO','record','off'),('hostmaster','normal','postmaster.your.ns'),('ISDN','record','off'),('IXFR','record','off'),('KEY','record','off'),('KX','record','off'),('LOC','record','off'),('MAILB','record','off'),('master','normal','0.0.0.0'),('MINFO','record','off'),('MX','record','on'),('NAPTR','record','off'),('NIMLOC','record','off'),('NS','record','on'),('NSAP','record','off'),('NSAP-PTR','record','off'),('NSEC','record','off'),('NXT','record','off'),('OPT','record','off'),('prins','normal','your.master.ns'),('PTR','record','off'),('PX','record','off'),('range','normal','10'),('RP','record','off'),('RRSIG','record','off'),('RT','record','off'),('secns','normal','your.sec.ns'),('SIG','record','off'),('SINK','record','off'),('SRV','record','on'),('SSHFP','record','off'),('TKEY','record','off'),('TSIG','record','off'),('TXT','record','on'),('WKS','record','off'),('X25','record','off'); | |
95 | +/*!40000 ALTER TABLE `options` ENABLE KEYS */; | |
96 | +UNLOCK TABLES; | |
97 | + | |
98 | +-- | |
99 | +-- Table structure for table `records` | |
100 | +-- | |
101 | + | |
102 | +DROP TABLE IF EXISTS `records`; | |
103 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
104 | +/*!40101 SET character_set_client = utf8 */; | |
105 | +CREATE TABLE `records` ( | |
106 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
107 | + `zone` int(11) NOT NULL DEFAULT '0', | |
108 | + `host` varchar(128) NOT NULL, | |
109 | + `ttl` int(11) DEFAULT NULL, | |
110 | + `type` varchar(8) NOT NULL, | |
111 | + `pri` int(11) NOT NULL DEFAULT '0', | |
112 | + `destination` varchar(4096) DEFAULT NULL, | |
113 | + UNIQUE KEY `id` (`id`), | |
114 | + KEY `reczone` (`zone`), | |
115 | + KEY `rech` (`host`), | |
116 | + CONSTRAINT `fkrecords` FOREIGN KEY (`zone`) REFERENCES `zones` (`id`) ON DELETE CASCADE | |
117 | +) ENGINE=InnoDB AUTO_INCREMENT=765 DEFAULT CHARSET=utf8; | |
118 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
119 | + | |
120 | +-- | |
121 | +-- Dumping data for table `records` | |
122 | +-- | |
123 | + | |
124 | +LOCK TABLES `records` WRITE; | |
125 | +/*!40000 ALTER TABLE `records` DISABLE KEYS */; | |
126 | +/*!40000 ALTER TABLE `records` ENABLE KEYS */; | |
127 | +UNLOCK TABLES; | |
128 | + | |
129 | +-- | |
130 | +-- Table structure for table `slave_zones` | |
131 | +-- | |
132 | + | |
133 | +DROP TABLE IF EXISTS `slave_zones`; | |
134 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
135 | +/*!40101 SET character_set_client = utf8 */; | |
136 | +CREATE TABLE `slave_zones` ( | |
137 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
138 | + `name` varchar(128) NOT NULL, | |
139 | + `master` varchar(128) DEFAULT NULL, | |
140 | + `owner` int(11) NOT NULL DEFAULT '0', | |
141 | + `updated` varchar(3) NOT NULL DEFAULT 'yes', | |
142 | + `valid` varchar(3) NOT NULL DEFAULT 'may', | |
143 | + UNIQUE KEY `id` (`id`), | |
144 | + UNIQUE KEY `sznam` (`name`), | |
145 | + KEY `szupd` (`updated`), | |
146 | + KEY `szow` (`owner`) | |
147 | +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; | |
148 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
149 | + | |
150 | +-- | |
151 | +-- Dumping data for table `slave_zones` | |
152 | +-- | |
153 | + | |
154 | +LOCK TABLES `slave_zones` WRITE; | |
155 | +/*!40000 ALTER TABLE `slave_zones` DISABLE KEYS */; | |
156 | +/*!40000 ALTER TABLE `slave_zones` ENABLE KEYS */; | |
157 | +UNLOCK TABLES; | |
158 | + | |
159 | +-- | |
160 | +-- Table structure for table `users` | |
161 | +-- | |
162 | + | |
163 | +DROP TABLE IF EXISTS `users`; | |
164 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
165 | +/*!40101 SET character_set_client = utf8 */; | |
166 | +CREATE TABLE `users` ( | |
167 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
168 | + `username` varchar(32) NOT NULL, | |
169 | + `realname` varchar(50) DEFAULT NULL, | |
170 | + `password` varchar(32) NOT NULL, | |
171 | + `admin` varchar(3) NOT NULL DEFAULT 'no', | |
172 | + UNIQUE KEY `id` (`id`), | |
173 | + UNIQUE KEY `usnam` (`username`), | |
174 | + KEY `uspass` (`password`), | |
175 | + KEY `admin` (`admin`) | |
176 | +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; | |
177 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
178 | + | |
179 | +-- | |
180 | +-- Dumping data for table `users` | |
181 | +-- | |
182 | + | |
183 | +LOCK TABLES `users` WRITE; | |
184 | +/*!40000 ALTER TABLE `users` DISABLE KEYS */; | |
185 | +INSERT INTO `users` VALUES (1,'admin','Administrator','3c99cbdb5c15684e4fc190f4f17e443c','yes'); | |
186 | +/*!40000 ALTER TABLE `users` ENABLE KEYS */; | |
187 | +UNLOCK TABLES; | |
188 | + | |
189 | +-- | |
190 | +-- Table structure for table `zones` | |
191 | +-- | |
192 | + | |
193 | +DROP TABLE IF EXISTS `zones`; | |
194 | +/*!40101 SET @saved_cs_client = @@character_set_client */; | |
195 | +/*!40101 SET character_set_client = utf8 */; | |
196 | +CREATE TABLE `zones` ( | |
197 | + `id` int(11) NOT NULL AUTO_INCREMENT, | |
198 | + `name` varchar(64) NOT NULL, | |
199 | + `pri_dns` varchar(128) DEFAULT NULL, | |
200 | + `sec_dns` varchar(128) DEFAULT NULL, | |
201 | + `serial` int(11) NOT NULL DEFAULT '0', | |
202 | + `refresh` int(11) NOT NULL DEFAULT '604800', | |
203 | + `retry` int(11) NOT NULL DEFAULT '86400', | |
204 | + `expire` int(11) NOT NULL DEFAULT '2419200', | |
205 | + `ttl` int(11) NOT NULL DEFAULT '604800', | |
206 | + `owner` int(11) NOT NULL DEFAULT '1', | |
207 | + `valid` varchar(3) NOT NULL DEFAULT 'may', | |
208 | + `updated` varchar(3) NOT NULL DEFAULT 'yes', | |
209 | + `secured` varchar(3) NOT NULL DEFAULT 'no', | |
210 | + UNIQUE KEY `id` (`id`), | |
211 | + UNIQUE KEY `zonnam` (`name`), | |
212 | + KEY `zonval` (`valid`), | |
213 | + KEY `zonow` (`owner`), | |
214 | + KEY `zonupd` (`updated`) | |
215 | +) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8; | |
216 | +/*!40101 SET character_set_client = @saved_cs_client */; | |
217 | + | |
218 | +-- | |
219 | +-- Dumping data for table `zones` | |
220 | +-- | |
221 | + | |
222 | +LOCK TABLES `zones` WRITE; | |
223 | +/*!40000 ALTER TABLE `zones` DISABLE KEYS */; | |
224 | +/*!40000 ALTER TABLE `zones` ENABLE KEYS */; | |
225 | +UNLOCK TABLES; | |
226 | +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | |
227 | + | |
228 | +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | |
229 | +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | |
230 | +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | |
231 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
232 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
233 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | |
234 | +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
235 | + | |
236 | +-- Dump completed on 2015-12-26 22:28:06 | ... | ... |
pgsql.sql
0 → 100644
1 | +++ a/pgsql.sql | |
1 | +START TRANSACTION; | |
2 | +SET standard_conforming_strings=off; | |
3 | +SET escape_string_warning=off; | |
4 | +SET CONSTRAINTS ALL DEFERRED; | |
5 | + | |
6 | +CREATE TABLE "dnssec_keys" ( | |
7 | + "id" integer NOT NULL, | |
8 | + "dszone" integer NOT NULL, | |
9 | + "filename" varchar(100) NOT NULL, | |
10 | + "fkey" text , | |
11 | + "fprivate" text , | |
12 | + "archive" varchar(6) DEFAULT NULL, | |
13 | + "refresh" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
14 | + UNIQUE ("id") | |
15 | +); | |
16 | + | |
17 | +CREATE TABLE "dnssec_zones" ( | |
18 | + "id" integer NOT NULL, | |
19 | + "zone" integer NOT NULL, | |
20 | + "krf" text NOT NULL, | |
21 | + "dsset" text NOT NULL, | |
22 | + UNIQUE ("id") | |
23 | +); | |
24 | + | |
25 | +CREATE TABLE "options" ( | |
26 | + "prefkey" varchar(40) NOT NULL, | |
27 | + "preftype" varchar(12) NOT NULL DEFAULT '', | |
28 | + "prefval" varchar(510) DEFAULT NULL, | |
29 | + UNIQUE ("prefkey") | |
30 | +); | |
31 | + | |
32 | +INSERT INTO "options" VALUES ('A','record','on'),('A6','record','off'),('AAAA','record','off'),('AFSDB','record','off'),('APL','record','off'),('ATMA','record','off'),('AXFR','record','off'),('CERT','record','off'),('CNAME','record','on'),('DNAME','record','off'),('DNSKEY','record','off'),('DS','record','off'),('EID','record','off'),('GPOS','record','off'),('HINFO','record','off'),('hostmaster','normal','postmaster.your.ns'),('ISDN','record','off'),('IXFR','record','off'),('KEY','record','off'),('KX','record','off'),('LOC','record','off'),('MAILB','record','off'),('master','normal','0.0.0.0'),('MINFO','record','off'),('MX','record','on'),('NAPTR','record','off'),('NIMLOC','record','off'),('NS','record','on'),('NSAP','record','off'),('NSAP-PTR','record','off'),('NSEC','record','off'),('NXT','record','off'),('OPT','record','off'),('prins','normal','your.master.ns'),('PTR','record','off'),('PX','record','off'),('range','normal','10'),('RP','record','off'),('RRSIG','record','off'),('RT','record','off'),('secns','normal','your.sec.ns'),('SIG','record','off'),('SINK','record','off'),('SRV','record','on'),('SSHFP','record','off'),('TKEY','record','off'),('TSIG','record','off'),('TXT','record','on'),('WKS','record','off'),('X25','record','off'); | |
33 | +CREATE TABLE "records" ( | |
34 | + "id" integer NOT NULL, | |
35 | + "zone" integer NOT NULL DEFAULT '0', | |
36 | + "host" varchar(256) NOT NULL, | |
37 | + "ttl" integer DEFAULT NULL, | |
38 | + "type" varchar(16) NOT NULL, | |
39 | + "pri" integer NOT NULL DEFAULT '0', | |
40 | + "destination" varchar(8192) DEFAULT NULL, | |
41 | + UNIQUE ("id") | |
42 | +); | |
43 | + | |
44 | +CREATE TABLE "slave_zones" ( | |
45 | + "id" integer NOT NULL, | |
46 | + "name" varchar(256) NOT NULL, | |
47 | + "master" varchar(256) DEFAULT NULL, | |
48 | + "owner" integer NOT NULL DEFAULT '0', | |
49 | + "updated" varchar(6) NOT NULL DEFAULT 'yes', | |
50 | + "valid" varchar(6) NOT NULL DEFAULT 'may', | |
51 | + UNIQUE ("id"), | |
52 | + UNIQUE ("name") | |
53 | +); | |
54 | + | |
55 | +CREATE TABLE "users" ( | |
56 | + "id" integer NOT NULL, | |
57 | + "username" varchar(64) NOT NULL, | |
58 | + "realname" varchar(100) DEFAULT NULL, | |
59 | + "password" varchar(64) NOT NULL, | |
60 | + "admin" varchar(6) NOT NULL DEFAULT 'no', | |
61 | + UNIQUE ("id"), | |
62 | + UNIQUE ("username") | |
63 | +); | |
64 | + | |
65 | +INSERT INTO "users" VALUES (1,'admin','Administrator','3c99cbdb5c15684e4fc190f4f17e443c','yes'); | |
66 | +CREATE TABLE "zones" ( | |
67 | + "id" integer NOT NULL, | |
68 | + "name" varchar(128) NOT NULL, | |
69 | + "pri_dns" varchar(256) DEFAULT NULL, | |
70 | + "sec_dns" varchar(256) DEFAULT NULL, | |
71 | + "serial" integer NOT NULL DEFAULT '0', | |
72 | + "refresh" integer NOT NULL DEFAULT '604800', | |
73 | + "retry" integer NOT NULL DEFAULT '86400', | |
74 | + "expire" integer NOT NULL DEFAULT '2419200', | |
75 | + "ttl" integer NOT NULL DEFAULT '604800', | |
76 | + "owner" integer NOT NULL DEFAULT '1', | |
77 | + "valid" varchar(6) NOT NULL DEFAULT 'may', | |
78 | + "updated" varchar(6) NOT NULL DEFAULT 'yes', | |
79 | + "secured" varchar(6) NOT NULL DEFAULT 'no', | |
80 | + UNIQUE ("id"), | |
81 | + UNIQUE ("name") | |
82 | +); | |
83 | + | |
84 | + | |
85 | +-- Post-data save -- | |
86 | +COMMIT; | |
87 | +START TRANSACTION; | |
88 | + | |
89 | +-- Typecasts -- | |
90 | + | |
91 | +-- Foreign keys -- | |
92 | +ALTER TABLE "dnssec_keys" ADD CONSTRAINT "fkdskeys" FOREIGN KEY ("dszone") REFERENCES "dnssec_zones" ("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; | |
93 | +CREATE INDEX ON "dnssec_keys" ("dszone"); | |
94 | +ALTER TABLE "dnssec_zones" ADD CONSTRAINT "fkdszones" FOREIGN KEY ("zone") REFERENCES "zones" ("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; | |
95 | +CREATE INDEX ON "dnssec_zones" ("zone"); | |
96 | +ALTER TABLE "records" ADD CONSTRAINT "fkrecords" FOREIGN KEY ("zone") REFERENCES "zones" ("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; | |
97 | +CREATE INDEX ON "records" ("zone"); | |
98 | + | |
99 | +-- Sequences -- | |
100 | +CREATE SEQUENCE dnssec_keys_id_seq; | |
101 | +SELECT setval('dnssec_keys_id_seq', max(id)) FROM dnssec_keys; | |
102 | +ALTER TABLE "dnssec_keys" ALTER COLUMN "id" SET DEFAULT nextval('dnssec_keys_id_seq'); | |
103 | +CREATE SEQUENCE dnssec_zones_id_seq; | |
104 | +SELECT setval('dnssec_zones_id_seq', max(id)) FROM dnssec_zones; | |
105 | +ALTER TABLE "dnssec_zones" ALTER COLUMN "id" SET DEFAULT nextval('dnssec_zones_id_seq'); | |
106 | +CREATE SEQUENCE records_id_seq; | |
107 | +SELECT setval('records_id_seq', max(id)) FROM records; | |
108 | +ALTER TABLE "records" ALTER COLUMN "id" SET DEFAULT nextval('records_id_seq'); | |
109 | +CREATE SEQUENCE slave_zones_id_seq; | |
110 | +SELECT setval('slave_zones_id_seq', max(id)) FROM slave_zones; | |
111 | +ALTER TABLE "slave_zones" ALTER COLUMN "id" SET DEFAULT nextval('slave_zones_id_seq'); | |
112 | +CREATE SEQUENCE users_id_seq; | |
113 | +SELECT setval('users_id_seq', max(id)) FROM users; | |
114 | +ALTER TABLE "users" ALTER COLUMN "id" SET DEFAULT nextval('users_id_seq'); | |
115 | +CREATE SEQUENCE zones_id_seq; | |
116 | +SELECT setval('zones_id_seq', max(id)) FROM zones; | |
117 | +ALTER TABLE "zones" ALTER COLUMN "id" SET DEFAULT nextval('zones_id_seq'); | |
118 | + | |
119 | +-- Full Text keys -- | |
120 | + | |
121 | +COMMIT; | ... | ... |
src/chpass.php
0 → 100644
1 | +++ a/src/chpass.php | |
1 | +<?php | |
2 | +/* | |
3 | + * chpass.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************* | |
23 | + * | |
24 | + * Provides the ligin form | |
25 | + * | |
26 | + * | |
27 | + */ | |
28 | + | |
29 | +require_once "include.php"; | |
30 | + | |
31 | +$smarty->assign("pagetitle", "Change password"); | |
32 | +$smarty->assign("template", "chpass.tpl"); | |
33 | +$smarty->assign("help", help("chpass")); | |
34 | +$smarty->assign("menu_button", menu_buttons()); | |
35 | +$smarty->display("main.tpl"); | |
36 | +?> | ... | ... |
src/commit.php
0 → 100644
1 | +++ a/src/commit.php | |
1 | +<?php | |
2 | +/* | |
3 | + * commit.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Applies the zone/record changes to the system | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +$dslave = array(); | |
31 | +$dmaster = array(); | |
32 | + | |
33 | +$dslave = $user->getDeletedZones('slave'); | |
34 | +$dmaster = $user->getDeletedZones('master'); | |
35 | +$cslave = $user->getCommitableZones('slave'); | |
36 | +$cmaster = $user->getCommitableZones('master'); | |
37 | +$allz = count($dmaster) + count($dslave) + count($cmaster) + count($cslave); | |
38 | +$done = 0; | |
39 | + | |
40 | +if (isset($_SERVER['HTTP_REFERER']) && | |
41 | + (preg_replace('/https?:\/\/[^\/]+/', '', $_SERVER['HTTP_REFERER']) != $_SERVER['PHP_SELF']) && | |
42 | + (!isset($_GET['commit'])) && | |
43 | + ($allz >0)) { | |
44 | + $smarty->assign("pagetitle", "Commit changes"); | |
45 | + $smarty->assign("template", "commit.tpl"); | |
46 | + $smarty->assign("help", help("precommit")); | |
47 | + $smarty->assign("menu_button", menu_buttons()); | |
48 | + $smarty->display("main.tpl"); | |
49 | + die(); | |
50 | +} elseif ((isset($_GET['commit'])) && ($_GET['commit'] != 'y')) { | |
51 | + problem(); | |
52 | +} elseif (count($dmaster) + | |
53 | + count($dslave) + | |
54 | + count($cmaster) + | |
55 | + count($cslave) == 0) { | |
56 | + problem("nocommit"); | |
57 | +} | |
58 | + | |
59 | +$bind = new bindConfig($conf->conf); | |
60 | + | |
61 | +$deleted = ''; | |
62 | +$commited = ''; | |
63 | +$error = ''; | |
64 | + | |
65 | +$delm = (count($dmaster) > 0) ? "<strong>" . "Deleting master records" . "</strong>\n\n" : ''; | |
66 | + | |
67 | +foreach ($dmaster as $master) { | |
68 | + $dmz = new masterZone(intval($master['id'])); | |
69 | + $dmz->loadZoneHead(); | |
70 | + $hd = $dmz->getZoneHead(); | |
71 | + $hdr = $dmz->getZoneHeadRaw(); | |
72 | + $dmz->eraseZone(); | |
73 | + $err = $dmz->getErr(); | |
74 | + if ($err > '') { | |
75 | + $error .= "<u>" . $hd['name'] . ":</u> " . "Error in deleting" . "\n" . $err . '\n\n'; | |
76 | + } else { | |
77 | + $deleted .= "<u>" . $hd['name'] . ":</u> Deleting success.\n\n"; | |
78 | + $bind->eraseConfig($hdr['name']); | |
79 | + $done++; | |
80 | + } | |
81 | +} | |
82 | + | |
83 | +$error = ($error > '') ? $delm . $error : ''; | |
84 | +$deleted = ($deleted > '') ? $delm . $deleted : ''; | |
85 | + | |
86 | +$errors = ''; | |
87 | +$deleteds = ''; | |
88 | +$delm .= (count($dslave) > 0) ? "<strong>" . "Deleting slave records" . "</strong>\n\n" : ''; | |
89 | +$delm = ($deleted > '') ? "\n" . $delm : $delm; | |
90 | + | |
91 | +foreach ($dslave as $slave) { | |
92 | + $dsz = new slaveZone(intval($slave['id'])); | |
93 | + $dsz->loadZoneHead(); | |
94 | + $hd = $dsz->getZoneHead(); | |
95 | + $hdr = $dsz->getZoneHeadRaw(); | |
96 | + $dsz->eraseZone(); | |
97 | + $err = $dsz->getErr(); | |
98 | + if ($err > '') { | |
99 | + $errors .= "<u>" . $hd['name'] . ":</u> Error in deleting\n" . $err . '\n\n'; | |
100 | + } else { | |
101 | + $deleteds .= "<u>" . $hd['name'] . "</u>: Deleting success.\n\n"; | |
102 | + $bind->eraseConfig($hdr['name']); | |
103 | + $done++; | |
104 | + } | |
105 | +} | |
106 | + | |
107 | +$error .= ($errors > '') ? $delm . $errors : ''; | |
108 | +$deleted .= ($deleteds > '') ? $delm . $deleteds : ''; | |
109 | +$errors = ''; | |
110 | + | |
111 | +$comm = (count($cmaster) > 0) ? "<strong>" . "Committing master records" . "</strong>\n\n" : ''; | |
112 | +$mcomm = ''; | |
113 | + | |
114 | +foreach ($cmaster as $master) { | |
115 | + $cmz = new masterZone(intval($master['id'])); | |
116 | + $cmz->loadZoneHead(); | |
117 | + $hd = $cmz->getZoneHead(); | |
118 | + $hdr = $cmz->getZoneHeadRaw(); | |
119 | + $cmz->writeZone($conf->path . $hdr['name'], $conf->hostMaster); | |
120 | + $zarray = array( | |
121 | + 'type' => 'master', | |
122 | + 'file' => $hdr['name'], | |
123 | + ); | |
124 | + $zarray['file'] .= (($hd['secured'] == 'yes') && ($cmz->doSecure($conf->path, $conf->zoneSigner, $conf->rollInit, $conf->rollerConf))) ? ".signed" : ""; | |
125 | + $cmz->doCommit(); | |
126 | + $err = $cmz->getErr(); | |
127 | + if ($err > '') { | |
128 | + $errors .= "<u>" . $hd['name'] . ":</u> Error in committing\n" . $err . '\n\n'; | |
129 | + } else { | |
130 | + $mcomm .= "<u>" . $hd['name'] . "</u>: Committing success.\n" . $cmz->getMsg() . "\n"; | |
131 | + $bind->addConfig($hdr['name'], $zarray); | |
132 | + $done++; | |
133 | + } | |
134 | +} | |
135 | + | |
136 | +$error .= ($errors > '') ? $comm . $errors : ''; | |
137 | +$commited .= ($mcomm > '') ? $comm . $mcomm: ''; | |
138 | +$errors = ''; | |
139 | + | |
140 | +$comm = (count($cslave) > 0) ? "<strong>" . "Committing slave records" . "</strong>\n\n" : ''; | |
141 | +$commited .= ($comm > '') ? "\n" : ''; | |
142 | +$scomm = ''; | |
143 | + | |
144 | +foreach ($cslave as $slave) { | |
145 | + $csz = new slaveZone(intval($slave['id'])); | |
146 | + $csz->loadZoneHead(); | |
147 | + $hd = $csz->getZoneHead(); | |
148 | + $hdr = $csz->getZoneHeadRaw(); | |
149 | + $err = $csz->getErr(); | |
150 | + if ($err > '') { | |
151 | + $errors .= "<u>" . $hd['name'] . ":</u> Error in committing\n" . $err . '\n\n'; | |
152 | + } else { | |
153 | + $csz->doCommit(); | |
154 | + $scomm .= "<u>" . $hd['name'] . "</u>: Committing success.\n\n"; | |
155 | + $bind->addConfig($hdr['name'], array ( | |
156 | + 'type' => 'slave', | |
157 | + 'masters' => $hdr['master'], | |
158 | + 'file' => $hdr['name'], | |
159 | + )); | |
160 | + $done++; | |
161 | + } | |
162 | +} | |
163 | + | |
164 | +$error .= ($errors > '') ? $comm . $errors : ''; | |
165 | +$commited .= ($scomm > '') ? $comm . $scomm : ''; | |
166 | +$bind->saveConfig($conf->conf); | |
167 | + | |
168 | +if ($done > 0) { | |
169 | + $cmd = $conf->rndc . " reload 2> /dev/stdout"; | |
170 | + unset($coutput); | |
171 | + exec($cmd, $coutput, $exit); | |
172 | + if ($exit != 0) { | |
173 | + $error .= "Rndc error(" . $exit . "):\n" . implode("\n", $coutput); | |
174 | + } else { | |
175 | + $multi = ($done > 1) ? "zones" : "zone"; | |
176 | + $commited .= "<b>" . $done . " " . $multi . " has been commited and reloaded:" . "</b>\n " . implode("\n ", $coutput) . "\n"; | |
177 | + } | |
178 | +} else { | |
179 | + $commited .= "<b>" . "There wasn't commited zone" . "</b>"; | |
180 | +} | |
181 | + | |
182 | +$error = implode("<br />", explode("\n", $error)); | |
183 | + | |
184 | +$smarty->assign("popuperror", $error); | |
185 | +$smarty->assign("success", $deleted . $commited); | |
186 | +$smarty->assign("pagetitle", "Commit changes"); | |
187 | +$smarty->assign("template", "commitdone.tpl"); | |
188 | +$smarty->assign("help", help("commit")); | |
189 | +$smarty->assign("menu_button", menu_buttons()); | |
190 | +$smarty->display("main.tpl"); | |
191 | +?> | ... | ... |
src/convert.php
0 → 100644
1 | +++ a/src/convert.php | |
1 | +<?php | |
2 | +/* | |
3 | + * convert.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************* | |
23 | + * | |
24 | + * Processes the inport form and do the import. | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +$out = array(); | |
31 | + | |
32 | +if($user->isAdmin()) { | |
33 | + if(($_SERVER['REQUEST_METHOD'] == 'POST') && (isset($_POST['method']))) { | |
34 | + $method = $_POST['method']; | |
35 | + $valid = true; | |
36 | + $problem = ''; | |
37 | + $zone = ''; | |
38 | + $content = array(); | |
39 | + $temp = ''; | |
40 | + switch ($method) { | |
41 | + case "file": | |
42 | + $zone = ((isset($_POST['fil_domain'])) && (isset($_FILES['fil']['tmp_name']))) ? $zone = $_POST['fil_domain'] : ''; | |
43 | + $content = ($zone > '') ? file($_FILES['fil']['tmp_name']) :array(); | |
44 | + $smarty->assign("method", "Upload from file"); | |
45 | + break; | |
46 | + case "list": | |
47 | + $zone = ((isset($_POST['sel_domain'])) && ($_POST['sel'] != '- select file -')) ? $_POST['sel_domain'] : ''; | |
48 | + $content = ($zone > '') ? file($conf->path . idnToHost($_POST['sel'])) : array(); | |
49 | + $smarty->assign("method", "Select orphan file from list"); | |
50 | + break; | |
51 | + case "text": | |
52 | + $zone = ((isset($_POST['txt_domain'])) && (isset($_POST['txt']))) ? $_POST['txt_domain'] : ''; | |
53 | + $content = ($zone > '') ? explode("\n", $_POST['txt']) : array(); | |
54 | + $smarty->assign("method", "Write zone manually or pasted from clipboard"); | |
55 | + break; | |
56 | + default: | |
57 | + problem(); | |
58 | + } | |
59 | + if (count($content) < 4) { | |
60 | + problem("nocontent"); | |
61 | + } | |
62 | + $gzone = $zone; | |
63 | + $zone = hostToIdn($zone); | |
64 | + if ($method != 'list') { | |
65 | + $temp = tempnam($conf->tmp_path, "$zone"); | |
66 | + $fh = fopen($temp, "w"); | |
67 | + fwrite($fh, implode("\n", $content)); | |
68 | + fclose($fh); | |
69 | + $check = checkZoneFile($temp, $zone); | |
70 | + unlink($temp); | |
71 | + if (!$check) { | |
72 | + problem("nocontent"); | |
73 | + } | |
74 | + } | |
75 | + $mz = new masterZone($gzone); | |
76 | + $sz = new slaveZone($gzone); | |
77 | + if (($mz->loadZoneHead()) || ($sz->loadZoneHead())) { | |
78 | + $mz = array(); | |
79 | + $sz = array(); | |
80 | + problem("existzone"); | |
81 | + } | |
82 | + $smarty->assign("zone", $gzone); | |
83 | + $nz = new masterZone(); | |
84 | + if (($nz->parseZone($content, $zone, $user->getId())) && ($nz->getId() > 0)) { | |
85 | + $smarty->assign("pagetitle", "Review imported records"); | |
86 | + $smarty->assign("template", "uploadreview.tpl"); | |
87 | + $smarty->assign("output", explode("\n", $nz->getConf($conf->hostMaster))); | |
88 | + $smarty->assign("help", help("uploadreview")); | |
89 | + $smarty->assign("menu_button", menu_buttons()); | |
90 | + } else { | |
91 | + $smarty->assign("problem", explode("\n", $nz->getErr())); | |
92 | + $smarty->assign("pagetitle", "Import error"); | |
93 | + $smarty->assign("template", "uploadproblem.tpl"); | |
94 | + $smarty->assign("help", help("uploadproblem")); | |
95 | + $smarty->assign("menu_button", menu_buttons()); | |
96 | + } | |
97 | + $smarty->display("main.tpl"); | |
98 | + } else { | |
99 | + problem(); | |
100 | + } | |
101 | +} else { | |
102 | + access_denied(); | |
103 | +} | |
104 | +?> | ... | ... |
src/deleteuser.php
0 → 100644
1 | +++ a/src/deleteuser.php | |
1 | +<?php | |
2 | +/* | |
3 | + * deleteuser.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************* | |
23 | + * | |
24 | + * Check what need to delete and provides info for confirmation | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +if($user->isAdmin()) { | |
31 | + $num = intval($_GET['i']); | |
32 | + switch ($num) { | |
33 | + case 0: | |
34 | + case 1: | |
35 | + problem("deleteadmin"); | |
36 | + break; | |
37 | + case $user->getId(); | |
38 | + problem("deleteys"); | |
39 | + break; | |
40 | + default: | |
41 | + $smarty->assign("pagetitle", "Delete user"); | |
42 | + $duser = new User($num); | |
43 | + $smarty->assign("user", $duser->getUser()); | |
44 | + $smarty->assign("template", "deleteuser.tpl"); | |
45 | + $smarty->assign("help", help("deleteuser")); | |
46 | + $smarty->assign("menu_button", menu_buttons()); | |
47 | + $smarty->display("main.tpl"); | |
48 | + } | |
49 | +} else { | |
50 | + access_denied(); | |
51 | +} | |
52 | +?> | ... | ... |
src/deletezone.php
0 → 100644
1 | +++ a/src/deletezone.php | |
1 | +<?php | |
2 | +/* | |
3 | + * deletezone.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + * | |
23 | + ********************************************************************** | |
24 | + * | |
25 | + * Check what need to delete and provides info for confirmation | |
26 | + * | |
27 | + */ | |
28 | + | |
29 | +require_once "include.php"; | |
30 | + | |
31 | +$zoneid = intval($_GET['i']); | |
32 | + | |
33 | +if ($zoneid > 0) { | |
34 | + if ($user->isOwned($zoneid, 'master')) { | |
35 | + $smarty->assign("pagetitle", "Delete master zone"); | |
36 | + $zone = new masterZone($zoneid); | |
37 | + $zone->loadZoneHead(); | |
38 | + $res = $zone->getZoneHead(); | |
39 | + $smarty->assign("zone", $res['name']); | |
40 | + $smarty->assign("zoneid", $zoneid); | |
41 | + $smarty->assign("template", "deletezone.tpl"); | |
42 | + $smarty->assign("help", help("deletezone")); | |
43 | + $smarty->assign("menu_button", menu_buttons()); | |
44 | + $smarty->display("main.tpl"); | |
45 | + } else { | |
46 | + problem('notown'); | |
47 | + } | |
48 | +} else { | |
49 | + problem(); | |
50 | +} | |
51 | + | |
52 | +?> | ... | ... |
src/end.php
0 → 100644
1 | +++ a/src/end.php | |
1 | +<?php | |
2 | +/* | |
3 | + * end.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Destroy the session | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +$session->destroy(); | |
31 | +die(); | |
32 | + | |
33 | +?> | ... | ... |
src/include.php
0 → 100644
1 | +++ a/src/include.php | |
1 | +<?php | |
2 | +/* | |
3 | + * include.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Contains the main definitions, functions and elements | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +define('PATH_PATTERN','#(src/|)[^\./]+\.php$#'); | |
29 | + | |
30 | +$docroot = preg_replace(PATH_PATTERN, '', $_SERVER['SCRIPT_FILENAME']); | |
31 | +$base = preg_replace(PATH_PATTERN, '', $_SERVER['PHP_SELF']); | |
32 | +$src = $base . 'src/'; | |
33 | + | |
34 | +set_include_path(get_include_path() . ":" . $docroot . 'lib/'); | |
35 | +require_once("smbind.class.php"); | |
36 | +$conf = new Configuration($docroot); | |
37 | +$session = new Session(); | |
38 | + | |
39 | +if ($conf->ReCaptcha) { | |
40 | + require_once("recaptchalib.php"); | |
41 | +} | |
42 | + | |
43 | +set_include_path(get_include_path() . ":" . $conf->Smarty_Path); | |
44 | + | |
45 | +header("Content-Type: text/html; charset=UTF-8"); | |
46 | +header("X-Content-Security-Policy: default-src 'self'; script-src 'self' self www.gstatic.com www.google.com google.com; img-src 'self' data: www.gstatic.com www.google.com google.com; style-src 'self'; font-src 'self'; frame-src 'self'; connect-src 'self' apis.google.com; object-src 'self'"); | |
47 | + | |
48 | +require_once("Smarty.class.php"); | |
49 | +$smarty = new Smarty; | |
50 | +$smarty->assign('TITLE',$var = $conf->Title); | |
51 | +$smarty->assign('footerleft',$conf->Footer); | |
52 | +$smarty->assign('footerright',$conf->Marker); | |
53 | +$smarty->assign('sdomain',$conf->StaticDomain); | |
54 | +$smarty->assign('skin',$conf->Template); | |
55 | +$smarty->template_dir = $conf->Smbind_Ng . "templates"; | |
56 | +$smarty->compile_dir = $conf->Smbind_Ng . "templates_c"; | |
57 | +$smarty->assign("base", $base); | |
58 | +$smarty->assign("static", $base . "static/"); | |
59 | +$smarty->assign("src", $src); | |
60 | +$smarty->assign("captcha","no"); | |
61 | +$smarty->assign("recaptcha",""); | |
62 | +$smarty->assign("menu_button",""); | |
63 | +$smarty->assign("donotcommit","no"); | |
64 | +$smarty->assign('sec', ($conf->IsDNSSec) ? "yes" : "no"); | |
65 | +$smarty->assign('popuperror',NULL); | |
66 | + | |
67 | +$cap_rsp = NULL; | |
68 | +if(isset($_POST["recaptcha_response_field"])){ | |
69 | + if ($_POST["recaptcha_response_field"]!=''){ | |
70 | + $rsp = recaptcha_check_answer ( | |
71 | + $conf->RC_PrivKey, | |
72 | + $_SERVER["REMOTE_ADDR"], | |
73 | + $_POST["recaptcha_challenge_field"], | |
74 | + $_POST["recaptcha_response_field"] | |
75 | + ); | |
76 | + if(!$rsp->is_valid) { | |
77 | + $cap_rsp = $rsp->error; | |
78 | + } | |
79 | + } else { | |
80 | + $cap_rsp = 'incorrect-captcha-sol'; | |
81 | + } | |
82 | +} | |
83 | + | |
84 | +if (isset($_POST['username']) && isset($_POST['password']) && ($cap_rsp == NULL)) { | |
85 | + $session->login($_POST['username'], $_POST['password']); | |
86 | +} | |
87 | + | |
88 | +$user = new User(); | |
89 | +$smarty->assign("loggedinuser",$user->getFullName()); | |
90 | + | |
91 | +if ($user->getId() == 0) { | |
92 | + login_page($smarty); | |
93 | +} | |
94 | + | |
95 | +if ((isset($_SERVER['PHP_SELF'])) && (basename($_SERVER['PHP_SELF']) != 'index.php')) { | |
96 | + $smarty->assign("menu_current", $src . basename($_SERVER['PHP_SELF'])); | |
97 | +} else { | |
98 | + $smarty->assign("menu_current", $base); | |
99 | +} | |
100 | + | |
101 | +if($user->isAdmin()) { | |
102 | + $smarty->assign("admin", "yes"); | |
103 | +} else { | |
104 | + $smarty->assign("admin", "no"); | |
105 | +} | |
106 | + | |
107 | +/* | |
108 | + * | |
109 | + * name: debug | |
110 | + * @param variable type a count of parameters for dumping it to the | |
111 | + * error_log | |
112 | + * | |
113 | + * @return <empty> | |
114 | + * | |
115 | + */ | |
116 | +function debug() { | |
117 | + for($i = 0 ; $i < func_num_args(); $i++) { | |
118 | + $param = func_get_arg($i); | |
119 | + $dump = ''; | |
120 | + if ((is_array($param)) || (is_object($param))) { | |
121 | + ob_start(); | |
122 | + if (is_object($param)) { | |
123 | + $phpv = explode('.', phpversion()); | |
124 | + if (intval($phpv[0] . $phpv[1]) < 56) { | |
125 | + var_dump($param->__debugInfo()); | |
126 | + } else { | |
127 | + var_dump($param); | |
128 | + } | |
129 | + } else { | |
130 | + var_dump($param); | |
131 | + } | |
132 | + $dump .= ob_get_clean(); | |
133 | + } else { | |
134 | + $dump .= $param; | |
135 | + } | |
136 | + $bt = debug_backtrace(); | |
137 | + error_log($bt[0]['file'] . "(" . $bt[0]['line'] . "):\n" . $dump); | |
138 | + } | |
139 | +} | |
140 | + | |
141 | +/* | |
142 | + * | |
143 | + * name: makePart | |
144 | + * | |
145 | + * Creates paging feature | |
146 | + * | |
147 | + * @param | |
148 | + * $all -> lentgt of the listed elements | |
149 | + * $page -> actual page count | |
150 | + * | |
151 | + * @return range for this page | |
152 | + * | |
153 | + */ | |
154 | +function makePart($all, $page) { | |
155 | + global $smarty; | |
156 | + global $conf; | |
157 | + $from = 0; | |
158 | + $to = $all; | |
159 | + $pages = 0; | |
160 | + $max = 0; | |
161 | + if ($conf->isExists('range')) { | |
162 | + $max = $conf->Range; | |
163 | + } | |
164 | + if ($max > 0) { | |
165 | + $pages = (int)($all/$max); | |
166 | + $mod = $all % $max; | |
167 | + if ($mod > 0) { | |
168 | + $pages++; | |
169 | + } | |
170 | + if ($pages < $page) { | |
171 | + $page = $pages; | |
172 | + } | |
173 | + $from = ($page-1) * $max; | |
174 | + $to = $from; | |
175 | + if (($page == $pages) && ($mod > 0)) { | |
176 | + $to += $mod; | |
177 | + } else { | |
178 | + $to += $max; | |
179 | + } | |
180 | + $from = ($from < 0) ? 0 : $from; | |
181 | + } | |
182 | + $pagelist = array(); | |
183 | + for ($i=1;$i<=$pages;$i++) { | |
184 | + $pagelist[] = $i; | |
185 | + } | |
186 | + $pagelist = (sizeof($pagelist) > 1) ? $pagelist : NULL; | |
187 | + $smarty->assign("current_page", $page); | |
188 | + $smarty->assign("pages", $pagelist); | |
189 | + return array($from, $to); | |
190 | +} | |
191 | + | |
192 | +/* | |
193 | + * | |
194 | + * name: rndc_status | |
195 | + * @param no | |
196 | + * @return the status of rndc command | |
197 | + * | |
198 | + */ | |
199 | +function rndc_status() { | |
200 | + global $conf; | |
201 | + $cmd = $conf->Rndc . " status > /dev/null"; | |
202 | + system($cmd, $exit); | |
203 | + return $exit; | |
204 | +} | |
205 | + | |
206 | +/* | |
207 | + * | |
208 | + * name: logout | |
209 | + * @param no | |
210 | + * @return no | |
211 | + * | |
212 | + * Displays the logout page and destroy the http session | |
213 | + * | |
214 | + */ | |
215 | +function logout() { | |
216 | + global $smarty; | |
217 | + global $session; | |
218 | + $session->destroy(); | |
219 | + $smarty->assign("menu_button", array()); | |
220 | + $smarty->assign("pagetitle", "Logout"); | |
221 | + $smarty->assign("template", "logout.tpl"); | |
222 | + $smarty->assign("help", help("logout")); | |
223 | + $smarty->display("main.tpl"); | |
224 | +} | |
225 | + | |
226 | +/* | |
227 | + * | |
228 | + * name: login_page | |
229 | + * @param Smarty object | |
230 | + * @return no | |
231 | + * | |
232 | + * Checks the captcha requirements and provides the login page | |
233 | + * | |
234 | + */ | |
235 | +function login_page($smarty) { | |
236 | + global $cap_rsp; | |
237 | + global $base; | |
238 | + global $conf; | |
239 | + | |
240 | + if($conf->ReCaptcha) { | |
241 | + $nocap = false; | |
242 | + foreach ($conf->NoCaptcha as $ip) { | |
243 | + $nocap = ($nocap or ($ip == $_SERVER['REMOTE_ADDR'])); | |
244 | + } | |
245 | + if(!$nocap) { | |
246 | + $smarty->assign("captcha","yes"); | |
247 | + $smarty->assign("recaptcha",recaptcha_get_html($conf->Rc_Pubkey,$cap_rsp,true)); | |
248 | + } | |
249 | + } | |
250 | + $smarty->assign("action", $base); | |
251 | + $smarty->assign("pagetitle", "Login"); | |
252 | + $smarty->assign("template", "login.tpl"); | |
253 | + $smarty->assign("help", help("login")); | |
254 | + $smarty->display("main.tpl"); | |
255 | + die(); | |
256 | +} | |
257 | + | |
258 | +/* | |
259 | + * | |
260 | + * name: problem | |
261 | + * @param | |
262 | + * $reason -> short tag for the problem | |
263 | + * $title -> header title | |
264 | + * | |
265 | + * @return no | |
266 | + * | |
267 | + * Provides a kind of error page | |
268 | + * | |
269 | + */ | |
270 | +function problem($reason = NULL, $title = NULL) { | |
271 | + global $smarty; | |
272 | + $tit = (isset($title)) ? $title : title($reason); | |
273 | + $smarty->assign("pagetitle", $tit); | |
274 | + $smarty->assign("template", "accessdenied.tpl"); | |
275 | + $smarty->assign("reason", reason($reason)); | |
276 | + $smarty->assign("help", help("accessdenied")); | |
277 | + $smarty->assign("menu_button", menu_buttons()); | |
278 | + $smarty->display("main.tpl"); | |
279 | + die(); | |
280 | +} | |
281 | + | |
282 | +/* | |
283 | + * | |
284 | + * name: access_denied | |
285 | + * @param no | |
286 | + * @return no | |
287 | + * | |
288 | + * Generates the access denied problem | |
289 | + * | |
290 | + */ | |
291 | +function access_denied() { | |
292 | + problem("notadmin"); | |
293 | +} | |
294 | + | |
295 | +/* | |
296 | + * | |
297 | + * name: reason | |
298 | + * @param optional | |
299 | + * $reason -> short tag of the problem | |
300 | + * | |
301 | + * @return description string | |
302 | + * | |
303 | + * Generates description string for the known reason | |
304 | + * | |
305 | + */ | |
306 | +function reason($reason = '') { | |
307 | + switch ($reason) { | |
308 | + case "notown": | |
309 | + return "You don't own this zone."; | |
310 | + case "unauth": | |
311 | + return "You are not authorized for this procedure"; | |
312 | + case "notadmin": | |
313 | + return "You are not an administrator."; | |
314 | + case "noslave": | |
315 | + return "The slave zone hasn't replicated yet. Try again later."; | |
316 | + case "existzone": | |
317 | + return "The zone already exists in the database."; | |
318 | + case "existfile": | |
319 | + return "The zonefile already exists on the system."; | |
320 | + case "existuser": | |
321 | + return "The user already exists in the database."; | |
322 | + case "nozonename": | |
323 | + return "That's not much of a zone name."; | |
324 | + case "deleteadmin": | |
325 | + return "You may not delete the default admin user."; | |
326 | + case "deleteys": | |
327 | + return "You may not delete yourself."; | |
328 | + case "nocontent": | |
329 | + return "The given content empty or invalid."; | |
330 | + case "nocommit": | |
331 | + return "There is no commitable content."; | |
332 | + default: | |
333 | + return "Unknown error. Please it report to your administrator"; | |
334 | + } | |
335 | +} | |
336 | + | |
337 | +/* | |
338 | + * | |
339 | + * name: title | |
340 | + * @param optional | |
341 | + * $reason -> short tag of the problem | |
342 | + * | |
343 | + * @return title string | |
344 | + * | |
345 | + * Generates title string for the known reason | |
346 | + * | |
347 | + */ | |
348 | + function title($reason = '') { | |
349 | + switch ($reason) { | |
350 | + case "notown": | |
351 | + case "notadmin": | |
352 | + case "deleteadmin": | |
353 | + case "deleteys": | |
354 | + case "unauth": | |
355 | + return "Access denied"; | |
356 | + case "noslave": | |
357 | + case "nocontent": | |
358 | + return "No data"; | |
359 | + case "nocommit": | |
360 | + case "existzone": | |
361 | + case "existfile": | |
362 | + case "existuser": | |
363 | + case "nozonename": | |
364 | + return "Error in process"; | |
365 | + default: | |
366 | + return "Something wrong happened"; | |
367 | + } | |
368 | +} | |
369 | + | |
370 | +/* | |
371 | + * | |
372 | + * name: help | |
373 | + * @param | |
374 | + * $help tag for the info footer | |
375 | + * | |
376 | + * @return the info footer | |
377 | + * | |
378 | + * Generates the info footer | |
379 | + * | |
380 | + */ | |
381 | +function help($help) { | |
382 | + switch ($help) { | |
383 | + case "login": | |
384 | + return "Please log in."; | |
385 | + case "mainpage": | |
386 | + return "User status and Server status are displayed, along with any zone informations."; | |
387 | + case "zoneview": | |
388 | + return "Your zone is dumped. Here you can view the zone in bind syntax.<small><br />" . | |
389 | + "<span class=attention>You cannot edit the zonefile directly!</span></small>"; | |
390 | + case "zonepview": | |
391 | + return "Your zone will look like as above. You can view it in bind syntax.<small><br />" . | |
392 | + "<span class=attention>This zone hasn't commited yet!</span></small>"; | |
393 | + case "zoneread": | |
394 | + return "Your zones are displayed. Here you can create a zone, edit a zone, view a zone, or delete a zone."; | |
395 | + case "newzone": | |
396 | + return "Enter your new zone's domain name, name servers and smbind-ng owner. " . | |
397 | + "This will create a new zone with a SOA and NS record.<small><br />" . | |
398 | + "The Web/Mail/FTP fields will create these A, CNAME, and MX template records for you. " . | |
399 | + "Otherwise, leave them blank.<br />In these fields you can use IP addresses or hostnames too. In this case you need to take care of the trailing dots.</small>"; | |
400 | + case "newslavezone": | |
401 | + return "Enter your new slave zone's domain name, address of the master server and smbind-ng owner."; | |
402 | + case "recordread": | |
403 | + return "Here you can modify your zone's SOA record, or add, edit, or delete resource records."; | |
404 | + case "userlistread": | |
405 | + return "Here you can add, edit, or delete smbind-ng users."; | |
406 | + case "commit": | |
407 | + return "Your zone files are commited to disk, error checked, and reloaded."; | |
408 | + case "precommit": | |
409 | + return "Your modifications will be applied to the system, and the related services will notified about the changes."; | |
410 | + case "optionsread": | |
411 | + return "Here you can change options that define how smbind-ng works."; | |
412 | + case "deletezone": | |
413 | + return "Please confirm."; | |
414 | + case "uploadreview": | |
415 | + return "Please confirm your uploaded data. Some records may be missig basad on your handled record-type options"; | |
416 | + case "uploadproblem": | |
417 | + return "Please fix the errors. The file output of namedcheckzone has errors."; | |
418 | + case "upload": | |
419 | + return "Here you can import a zone what is in legal bind zonefile format. Choose import method!" . | |
420 | + " Available methods:<small><br /><strong>Orphan files:</strong>(maybe disabled) Some file in" . | |
421 | + " your config directory without database records. <strong>Browse:</strong> Zone file upload" . | |
422 | + " from your computer. <strong>Edit:</strong> Paste contents into the box from your clipboard.</small>"; | |
423 | + case "deleteuser": | |
424 | + return "Please confirm."; | |
425 | + case "newuser": | |
426 | + return "Here can you add a new user.<br />" . | |
427 | + "<span class=attention>Password requirements:</span> You must use letters (both upper- and lowercase), numbers and symols. Minimum length is 8 characters. " . | |
428 | + "10 charachers length, and using more uppercase letters and numbers is recommended."; | |
429 | + case "userread": | |
430 | + return "Here can you change the user's properties. If you don't want to change the password, leave it empty." . | |
431 | + "<br /><span class=attention>Password requirements:</span> You must use letters (both upper- and lowercase), numbers and symols. Minimum length is 8 characters. " . | |
432 | + "10 charachers length, and using more uppercase letters and numbers is recommended."; | |
433 | + case "chpass": | |
434 | + return "Here can you change your password. <small>You need to give your current password before the new!</small><br />" . | |
435 | + "<span class=attention>Password requirements:</span> You must use letters (both upper- and lowercase), numbers and symols. Minimum length is 8 characters. " . | |
436 | + "10 charachers length, and using more uppercase letters and numbers is recommended."; | |
437 | + case "savepass": | |
438 | + return "Login using your new password." . | |
439 | + "<small><br />This page automatically open it within 10 seconds</small>"; | |
440 | + case "accessdenied": | |
441 | + return "<span class=attention>Access denied.</span><br />This procedure not allowed with your privileges."; | |
442 | + case "problem": | |
443 | + return "A problem has occurred."; | |
444 | + case "logout": | |
445 | + return "You have been successfully logged out. Click <a class=attention id=reload href=\"../\">here</a> if you wish to log in again." . | |
446 | + "<small><br />This page automatically open it within <span id=counter>10</span> seconds</small>"; | |
447 | + default: | |
448 | + return ""; | |
449 | + } | |
450 | +} | |
451 | + | |
452 | +/* | |
453 | + * | |
454 | + * name: getorphan | |
455 | + * @param no | |
456 | + * @return an array with found filenames | |
457 | + * | |
458 | + * Find and check local files for importing | |
459 | + * | |
460 | + */ | |
461 | +function getorphan() { | |
462 | + global $conf; | |
463 | + global $user; | |
464 | + | |
465 | + $files = ' ' . implode(' ', scandir($conf->Path)) . ' '; | |
466 | + $mzones = $user->getMasters(); | |
467 | + $szones = $user->getSlaves(); | |
468 | + foreach ($mzones as $id) { | |
469 | + $z = new masterZone(intval($id)); | |
470 | + $z->loadZoneHead(); | |
471 | + $zone = $z->getZoneHeadRaw(); | |
472 | + $files = str_replace(' ' . $zone['name'] . ' ', ' ', $files); | |
473 | + } | |
474 | + foreach ($szones as $id) { | |
475 | + $z = new slaveZone(intval($id)); | |
476 | + $z->loadZoneHead(); | |
477 | + $zone = $z->getZoneHeadRaw(); | |
478 | + $files = str_replace(' ' . $zone['name'] . ' ', ' ', $files); | |
479 | + } | |
480 | + $vzf = array(); | |
481 | + foreach (explode(' ', trim($files)) as $entry) { | |
482 | + if ((is_file($conf->Path . $entry)) && (preg_replace('/\.(signed|private|key|krf|jnl|bind)$/', '', $entry) == $entry)) { | |
483 | + if (checkZoneFile($conf->Path . $entry, $entry)) { | |
484 | + $vzf[] = hostToIdn($entry); | |
485 | + } | |
486 | + } | |
487 | + } | |
488 | + | |
489 | + return $vzf; | |
490 | +} | |
491 | + | |
492 | +/* | |
493 | + * | |
494 | + * name: checkZoneFile | |
495 | + * @param | |
496 | + * $file -> path the file | |
497 | + * $zone -> zonename | |
498 | + * | |
499 | + * @return true/false (aftert chacking the zoneile) | |
500 | + * | |
501 | + */ | |
502 | +function checkZoneFile($file, $zone) { | |
503 | + global $conf; | |
504 | + | |
505 | + $cmd = $conf->namedCheckZone . " -i local " . $zone. " " . $file . " 2>/dev/stdout"; | |
506 | + unset($coutput); | |
507 | + exec($cmd, $coutput, $exit); | |
508 | + return ($coutput[sizeof($coutput)-1] == 'OK'); | |
509 | +} | |
510 | + | |
511 | +/* | |
512 | + * | |
513 | + * name: menu_buttons | |
514 | + * @param no | |
515 | + * @return no | |
516 | + * | |
517 | + * Generates the menu entries | |
518 | + * | |
519 | + */ | |
520 | +function menu_buttons() { | |
521 | + global $user; | |
522 | + global $smarty; | |
523 | + global $src; | |
524 | + global $base; | |
525 | + | |
526 | + $cmasters = $user->getCommitableZones('master'); | |
527 | + $cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0; | |
528 | + $cslaves = intval($user->getCommitableZones('slave')); | |
529 | + $csc = (is_array($cslaves)) ? sizeof($cslaves) : 0; | |
530 | + $commitables = $cmc + $csc; | |
531 | + if($commitables == 0) { | |
532 | + $committext = ""; | |
533 | + $smarty->assign("donotcommit","yes"); | |
534 | + } | |
535 | + else { | |
536 | + $committext = "\" id=\"commitable\" class=\"attention"; | |
537 | + } | |
538 | + | |
539 | + if (sizeof($user->getUnvalidatedZones('master')) + | |
540 | + sizeof($user->getUnvalidatedZones('slave')) + | |
541 | + sizeof($user->getDeletedZones('slave')) + | |
542 | + sizeof($user->getDeletedZones('master')) > 0) { | |
543 | + $maintext = "\" class=\"attention"; | |
544 | + } | |
545 | + else { | |
546 | + $maintext = ""; | |
547 | + } | |
548 | + | |
549 | + return array( | |
550 | + array("title" => "Main", "link" => $base . $maintext), | |
551 | + array("title" => "Master zones", "link" => $src . "zonelist.php"), | |
552 | + array("title" => "Slave zones", "link" => $src . "slave_zonelist.php"), | |
553 | + array("title" => "Import zones", "link" => $src . "upload.php"), | |
554 | + array("title" => "Users", "link" => $src . "userlist.php"), | |
555 | + array("title" => "Change password", "link" => $src . "chpass.php"), | |
556 | + array("title" => "Commit changes", "link" => $src . "commit.php" . $committext), | |
557 | + array("title" => "Options", "link" => $src . "options.php"), | |
558 | + array("title" => "Log out", "link" => $src . "logout.php") | |
559 | + ); | |
560 | +} | |
561 | + | |
562 | +?> | ... | ... |
src/logout.php
0 → 100644
1 | +++ a/src/logout.php | |
1 | +<?php | |
2 | +/* | |
3 | + * logout.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Call the logout | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +logout(); | |
31 | + | |
32 | +?> | ... | ... |
src/newuser.php
0 → 100644
1 | +++ a/src/newuser.php | |
1 | +<?php | |
2 | +/* | |
3 | + * newuser.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Provides info for the user creation page. | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +if($user->isAdmin()) { | |
31 | + $smarty->assign("pagetitle", "New user"); | |
32 | + $smarty->assign("admin_array", array("yes", "no")); | |
33 | + $smarty->assign("template", "newuser.tpl"); | |
34 | + $smarty->assign("help", help("newuser")); | |
35 | + $smarty->assign("menu_button", menu_buttons()); | |
36 | + $smarty->display("main.tpl"); | |
37 | +} | |
38 | +else { | |
39 | + access_denied(); | |
40 | +} | |
41 | + | |
42 | +?> | ... | ... |
src/newzone.php
0 → 100644
1 | +++ a/src/newzone.php | |
1 | +<?php | |
2 | +/* | |
3 | + * newzone.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Gathering data for the new master zone form | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +if($user->isAdmin()) { | |
31 | + $smarty->assign("pagetitle", "New master zone"); | |
32 | + $smarty->assign("userlist", $user->getAllusers()); | |
33 | + $smarty->assign("current_user", $user->getId()); | |
34 | + $smarty->assign("pri_dns", $conf->pri_dns); | |
35 | + $smarty->assign("sec_dns", $conf->sec_dns); | |
36 | + $smarty->assign("template", "newzone.tpl"); | |
37 | + $smarty->assign("help", help("newzone")); | |
38 | + $smarty->assign("menu_button", menu_buttons()); | |
39 | + $smarty->display("main.tpl"); | |
40 | +} | |
41 | +else { | |
42 | + access_denied(); | |
43 | +} | |
44 | +?> | ... | ... |
src/options.php
0 → 100644
1 | +++ a/src/options.php | |
1 | +<?php | |
2 | +/* | |
3 | + * options.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Options entry page | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +if($_SERVER['REQUEST_METHOD'] == 'POST') { | |
29 | + include("optionswrite.php"); | |
30 | +} | |
31 | +include("optionsread.php"); | |
32 | + | |
33 | +?> | ... | ... |
src/optionsread.php
0 → 100644
1 | +++ a/src/optionsread.php | |
1 | +<?php | |
2 | +/* | |
3 | + * optionsread.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Reads and provides informations for the options page | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +if($user->isAdmin()) { | |
31 | + $res = $db->query("SELECT prefkey, prefval FROM options " . | |
32 | + "WHERE preftype = 'record' ORDER by prefkey" | |
33 | + ); | |
34 | + if (MDB2::isError($res)) { | |
35 | + $smarty->assign("popuperror", $res->getMessage() . "<br />" . $res->getDebugInfo()); | |
36 | + problem(); | |
37 | + } | |
38 | + $recordarray = array(); | |
39 | + $rows = $res->numRows(); | |
40 | + for($x=0, $y=0, $i=0; $i<$rows; $y++, $i++) { | |
41 | + if($y == 4) { | |
42 | + $x++; | |
43 | + $y = 0; | |
44 | + } | |
45 | + $recordarray[$x][$y] = $res->fetchRow(); | |
46 | + } | |
47 | + $options = array(); | |
48 | + $res = $db->query("SELECT prefkey, prefval FROM options " . | |
49 | + "WHERE preftype = 'normal' ORDER by prefkey" | |
50 | + ); | |
51 | + if (MDB2::isError($res)) { | |
52 | + $smarty->assign("popuperror", $res->getMessage() . "<br />" . $res->getDebugInfo()); | |
53 | + problem(); | |
54 | + } | |
55 | + while ($rec = $res->fetchRow()) { | |
56 | + switch ($rec['prefkey']) { | |
57 | + case 'hostmaster': | |
58 | + $key = 0; | |
59 | + break; | |
60 | + case 'prins': | |
61 | + $key = 1; | |
62 | + $rec['prefval'] = idnToHost($rec['prefval']); | |
63 | + break; | |
64 | + case 'secns': | |
65 | + $key = 2; | |
66 | + $rec['prefval'] = idnToHost($rec['prefval']); | |
67 | + break; | |
68 | + case 'master': | |
69 | + $key = 3; | |
70 | + $rec['prefval'] = idnToHost($rec['prefval']); | |
71 | + break; | |
72 | + default: | |
73 | + $key = 4; | |
74 | + } | |
75 | + $options[$key] = $rec; | |
76 | + } | |
77 | + $smarty->assign("records", $recordarray); | |
78 | + $smarty->assign("options", $options); | |
79 | + $smarty->assign("pagetitle", "Options"); | |
80 | + $smarty->assign("template", "optionsread.tpl"); | |
81 | + $smarty->assign("help", help("optionsread")); | |
82 | + $smarty->assign("menu_button", menu_buttons()); | |
83 | + $smarty->display("main.tpl"); | |
84 | +} else { | |
85 | + access_denied(); | |
86 | +} | |
87 | + | |
88 | +?> | ... | ... |
src/optionswrite.php
0 → 100644
1 | +++ a/src/optionswrite.php | |
1 | +<?php | |
2 | +/* | |
3 | + * optionswrite.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + ********************************************************************** | |
23 | + * | |
24 | + * Process the options form and save the changes | |
25 | + * | |
26 | + */ | |
27 | + | |
28 | +require_once "include.php"; | |
29 | + | |
30 | +if($user->isAdmin()) { | |
31 | + $allrec = array(); | |
32 | + foreach($_POST as $key => $value) { | |
33 | + $val = $value; | |
34 | + switch ($key) { | |
35 | + case 'master': | |
36 | + case 'prins': | |
37 | + case 'secns': | |
38 | + $val = hostToIdn(preg_replace('/([\s\r\n]+|\.$)/', '', $value)); | |
39 | + break; | |
40 | + case 'range': | |
41 | + $val = (intval($value) > 0) ? intval($value) : 10; | |
42 | + break; | |
43 | + case 'hostmaster': | |
44 | + $val = preg_replace('/([\s\r\n]+|\.$)/', '', $value); | |
45 | + break; | |
46 | + default: | |
47 | + $val = ((strtolower($value) == 'on') || (strtolower($value) == 'off')) ? strtolower($value) : 'off'; | |
48 | + } | |
49 | + $allrec[$key] = $val; | |
50 | + } | |
51 | + foreach($allrec as $key => $value) { | |
52 | + $res = $db->query("UPDATE options SET prefval = '" . $value . "' " . | |
53 | + "WHERE prefkey = '" . $key . "'" | |
54 | + ); | |
55 | + } | |
56 | +} | |
57 | +else { | |
58 | + access_denied(); | |
59 | +} | |
60 | + | |
61 | +?> | ... | ... |
src/record.php
0 → 100644
src/recordread.php
0 → 100644
1 | +++ a/src/recordread.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$znum = (intval($_GET['i']) > 0) ? intval($_GET['i']) : NULL; | |
5 | + | |
6 | +if ($znum) { | |
7 | + if ($user->isOwned($znum, 'master', 'live')) { | |
8 | + $zone = new masterZone(array('id' => $znum)); | |
9 | + $zone->loadZone(); | |
10 | + $zonerec = $zone->getZoneHead(); | |
11 | + $currpage = ((isset($_GET['page'])) && (intval($_GET['page']) > 0)) ? $currpage = intval($_GET['page']) : 1; | |
12 | + $allrec = $zone->getRecords(true); | |
13 | + $count = sizeof($allrec); | |
14 | + $fromto = makePart($count, $currpage); | |
15 | + $rec = array(); | |
16 | + | |
17 | + for ($i=$fromto[0];$i<$fromto[1];$i++) { | |
18 | + $allrec[$i]['ttl'] = ($allrec[$i]['ttl'] > 0) ? $allrec[$i]['ttl'] : ''; | |
19 | + $rec[] = $allrec[$i]; | |
20 | + } | |
21 | + | |
22 | + $users = $user->getAllusers(); | |
23 | + $types = $conf->parameters; | |
24 | + $err = ''; | |
25 | + $err .= ((!is_array($zonerec)) || (!is_array($rec))) ? $zone->getErr() : ''; | |
26 | + $err .= (!is_array($users)) ? $user->getErr() : ''; | |
27 | + $err .= (!is_array($types)) ? "Record types not foud\n" : ''; | |
28 | + if ($err > '') { | |
29 | + $smarty->assign("popuperror",implode("<br />", explode("\n", $err))); | |
30 | + } | |
31 | + $smarty->assign("zone", $zonerec); | |
32 | + $smarty->assign("pagetitle", "Editing master zone"); | |
33 | + $smarty->assign("rcount", sizeof($rec)); | |
34 | + $smarty->assign("record",$rec); | |
35 | + $smarty->assign("types", $types); | |
36 | + $smarty->assign("userlist", $users); | |
37 | + $smarty->assign("template", "recordread.tpl"); | |
38 | + $smarty->assign("help", help("recordread")); | |
39 | + $smarty->assign("menu_button", menu_buttons()); | |
40 | + $smarty->assign("page_root", $src . "record.php?i=" . $_GET['i'] . "&"); | |
41 | + $smarty->display("main.tpl"); | |
42 | + } else { | |
43 | + problem("notown"); | |
44 | + } | |
45 | +} else { | |
46 | + access_denied(); | |
47 | +} | |
48 | + | |
49 | +?> | ... | ... |
src/recordwrite.php
0 → 100644
1 | +++ a/src/recordwrite.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$znum = (intval($_GET['i']) > 0) ? intval($_GET['i']) : NULL; | |
5 | + | |
6 | +if ($znum) { | |
7 | + if ($user->isOwned($znum, 'master', 'live')) { | |
8 | + $zone = new masterZone(array('id' => $znum)); | |
9 | + $zone->loadZone(); | |
10 | + $zonerec = $zone->getZoneHead(); | |
11 | + $zrec = array(); | |
12 | + foreach (array('refresh', 'expire', 'retry', 'ttl', 'secured', 'pri_dns', 'sec_dns', 'owner') as $key) { | |
13 | + $zrec[$key] = ((isset($_POST[$key])) and ($_POST[$key] > '')) ? $_POST[$key] : $zonerec[$key]; | |
14 | + } | |
15 | + $zrec['valid'] = 'may'; | |
16 | + $zone->setZoneHead($zrec); | |
17 | + $zone->saveZoneHead(); | |
18 | + $total = ((isset($_POST['total'])) && ($_POST['total'] > 0)) ? $_POST['total'] : 0; | |
19 | + for ($x = 0; $x < $total; $x++) { | |
20 | + if (isset($_POST['delete'][$x])) { | |
21 | + $zone->eraseRecord(intval($_POST['host_id'][$x])); | |
22 | + } else { | |
23 | + $nrec=array(); | |
24 | + foreach (array('host', 'ttl', 'type', 'pri', 'destination') as $key) { | |
25 | + $pkey = ($key == 'ttl') ? 'rttl' : $key; | |
26 | + $nrec[$key] = (isset($_POST[$pkey][$x])) ? $_POST[$pkey][$x] : ''; | |
27 | + $nrec[$key] = (($key == 'ttl') && ($nrec[$key] == '')) ? 0 :$nrec[$key]; | |
28 | + $nrec[$key] = (($key == 'pri') && ($nrec[$key] == '')) ? 10 :$nrec[$key]; | |
29 | + $nrec[$key] = (($key == 'host') && ($nrec[$key] == '')) ? '@' :$nrec[$key]; | |
30 | + $nrec[$key] = (($key == 'destination') && ($nrec[$key] == '')) ? '@' :$nrec[$key]; | |
31 | + } | |
32 | + if ($nrec['host'] != $nrec['destination']) { | |
33 | + $urec = new masterRecord(intval($_POST['host_id'][$x])); | |
34 | + $urec->loadRecord(); | |
35 | + $urec->setRecord($nrec); | |
36 | + $xrec = $urec->getRecordRaw(); | |
37 | + $urec->saveRecord(); | |
38 | + } | |
39 | + } | |
40 | + } | |
41 | + $zone->clearZone(); | |
42 | + $zone->loadZone(); | |
43 | + $nrec = array(); | |
44 | + foreach (array('host', 'ttl', 'type', 'pri', 'destination') as $key) { | |
45 | + $nrec[$key] = ((isset($_POST['new' . $key])) && ($_POST['new' . $key] > '')) ? $_POST['new' . $key] : NULL; | |
46 | + } | |
47 | + if ($nrec['host'] != $nrec['destination']) { | |
48 | + $nrec['pri'] = ($nrec['type'] == 'MX') ? 10 : 0; | |
49 | + $nrec['ttl'] = intval($nrec['ttl']); | |
50 | + $nrec['zone'] = $znum; | |
51 | + $zone->addRecord($nrec); | |
52 | + } | |
53 | + $zone->saveZone(); | |
54 | + } else { | |
55 | + problem("notown"); | |
56 | + } | |
57 | +} else { | |
58 | + access_denied(); | |
59 | +} | |
60 | + | |
61 | +?> | ... | ... |
src/savepass.php
0 → 100644
1 | +++ a/src/savepass.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if ($user->getPasswordHash() == $_POST['password_old']) { | |
5 | + if ((strlen($_POST['password_one']) == 32) && ($session->isEnoughOld())) { | |
6 | + $user->set(NULL, $_POST['password_one']); | |
7 | + $_SESSION['p'] = $user->getPasswordHash(); | |
8 | + $smarty->assign("pagetitle", "Change password"); | |
9 | + $smarty->assign("template", "savepass.tpl"); | |
10 | + $smarty->assign("help", help("savepass")); | |
11 | + $smarty->assign("menu_button", menu_buttons()); | |
12 | + $smarty->display("main.tpl"); | |
13 | + } else { | |
14 | + problem(); | |
15 | + } | |
16 | +} else { | |
17 | + problem("unauth"); | |
18 | +} | |
19 | + | |
20 | +?> | ... | ... |
src/slave_deletezone.php
0 → 100644
1 | +++ a/src/slave_deletezone.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$zoneid = intval($_GET['i']); | |
5 | + | |
6 | +if ($zoneid > 0) { | |
7 | + if ($user->isOwned($zoneid, 'slave')) { | |
8 | + $smarty->assign("pagetitle", "Delete slave zone"); | |
9 | + $zone = new slaveZone($zoneid); | |
10 | + $zone->loadZoneHead(); | |
11 | + $res = $zone->getZoneHead(); | |
12 | + $smarty->assign("zone", $res['name']); | |
13 | + $smarty->assign("zoneid", $zoneid); | |
14 | + $smarty->assign("template", "slave_deletezone.tpl"); | |
15 | + $smarty->assign("help", help("deletezone")); | |
16 | + $smarty->assign("menu_button", menu_buttons()); | |
17 | + $smarty->display("main.tpl"); | |
18 | + } else { | |
19 | + problem('notown'); | |
20 | + } | |
21 | +} else { | |
22 | + problem(); | |
23 | +} | |
24 | + | |
25 | +?> | ... | ... |
src/slave_newzone.php
0 → 100644
1 | +++ a/src/slave_newzone.php | |
1 | +<?php | |
2 | +/* | |
3 | + * slave_newzone.php | |
4 | + * | |
5 | + * Copyright 2015 Péter Szládovics <peti@szladovics.hu> | |
6 | + * | |
7 | + * This program is free software; you can redistribute it and/or modify | |
8 | + * it under the terms of the GNU General Public License as published by | |
9 | + * the Free Software Foundation; either version 2 of the License, or | |
10 | + * (at your option) any later version. | |
11 | + * | |
12 | + * This program is distributed in the hope that it will be useful, | |
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | + * GNU General Public License for more details. | |
16 | + * | |
17 | + * You should have received a copy of the GNU General Public License | |
18 | + * along with this program; if not, write to the Free Software | |
19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
20 | + * MA 02110-1301, USA. | |
21 | + * | |
22 | + * Gathers data from config and the db to present informations to the | |
23 | + * template. | |
24 | + * | |
25 | + */ | |
26 | + | |
27 | +require_once "include.php"; | |
28 | + | |
29 | +if($user->isAdmin()) { | |
30 | + $smarty->assign("pagetitle", "New slave zone"); | |
31 | + $smarty->assign("userlist", $user->getAllusers()); | |
32 | + $smarty->assign("current_user", $user->getId()); | |
33 | + $smarty->assign("master", $conf->master); | |
34 | + $smarty->assign("template", "slave_newzone.tpl"); | |
35 | + $smarty->assign("help", help("newslavezone")); | |
36 | + $smarty->assign("menu_button", menu_buttons()); | |
37 | + $smarty->display("main.tpl"); | |
38 | +} | |
39 | +else { | |
40 | + access_denied(); | |
41 | +} | |
42 | + | |
43 | +?> | ... | ... |
src/slave_record.php
0 → 100644
1 | +++ a/src/slave_record.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$i = intval($_GET['i']); | |
5 | + | |
6 | +if ($i > 0) { | |
7 | + if ($user->isOwned($i, 'slave', 'live')) { | |
8 | + $sz = new slaveZone($i); | |
9 | + $sz->loadZoneHead(); | |
10 | + $zone = $sz->getZoneHead(); | |
11 | + $smarty->assign("zone", $zone); | |
12 | + $smarty->assign("pagetitle", "Editing slave zone"); | |
13 | + $smarty->assign("userlist", $user->getAllusers()); | |
14 | + $smarty->assign("template", "slave_recordread.tpl"); | |
15 | + $smarty->assign("help", help("recordread")); | |
16 | + $smarty->assign("menu_button", menu_buttons()); | |
17 | + $smarty->assign("page_root", $src . "slave_record.php?i=" . $_GET['i'] . "&"); | |
18 | + $smarty->display("main.tpl"); | |
19 | + } else { | |
20 | + problem('notown'); | |
21 | + } | |
22 | +} else { | |
23 | + problem(); | |
24 | +} | |
25 | + | |
26 | +?> | ... | ... |
src/slave_zoneadd.php
0 → 100644
1 | +++ a/src/slave_zoneadd.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $arr = array(); | |
6 | + foreach (array('name', 'master', 'owner') as $key) { | |
7 | + $arr[$key] = $_POST[$key]; | |
8 | + } | |
9 | + $nz = new slaveZone($arr); | |
10 | + if (!$nz->loadZoneHead()) { | |
11 | + $nz->setZoneHead($arr); | |
12 | + $nz->saveZoneHead(); | |
13 | + $user->loadUserZones(); | |
14 | + } else { | |
15 | + problem("existzone"); | |
16 | + } | |
17 | +} else { | |
18 | + access_denied(); | |
19 | +} | |
20 | + | |
21 | +?> | ... | ... |
src/slave_zonedelete.php
0 → 100644
1 | +++ a/src/slave_zonedelete.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$zoneid = intval($_GET['i']); | |
5 | + | |
6 | +if($user->isOwned($zoneid, 'slave')) { | |
7 | + if($zoneid > 0) { | |
8 | + $zone = new slaveZone($zoneid); | |
9 | + $zone->loadZoneHead(); | |
10 | + $zone->setZoneHead(array('updated' => 'del')); | |
11 | + $zone->saveZoneHead(); | |
12 | + } | |
13 | + else { | |
14 | + problem(); | |
15 | + } | |
16 | +} | |
17 | +else { | |
18 | + problem("notown"); | |
19 | +} | |
20 | + | |
21 | +?> | ... | ... |
src/slave_zonelist.php
0 → 100644
1 | +++ a/src/slave_zonelist.php | |
1 | +<?php | |
2 | +if($_SERVER['REQUEST_METHOD'] == 'POST') { | |
3 | + if($_POST['Submit'] == 'Add zone') { | |
4 | + include("slave_zoneadd.php"); | |
5 | + } | |
6 | + if($_POST['Submit'] == 'Save') { | |
7 | + include("slave_zonewrite.php"); | |
8 | + } | |
9 | +} | |
10 | +if(isset($_GET['delete']) && $_GET['delete'] == 'y') { | |
11 | + include("slave_zonedelete.php"); | |
12 | +} | |
13 | + | |
14 | +include("slave_zoneread.php"); | |
15 | + | |
16 | +?> | ... | ... |
src/slave_zoneread.php
0 → 100644
1 | +++ a/src/slave_zoneread.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$zones = $user->getSlaves('live'); | |
5 | +$count = sizeof($zones); | |
6 | +$maxitems = intval($conf->range); | |
7 | +$currpage = ((isset($_GET['page'])) && (intval($_GET['page']) > 0)) ? $currpage = intval($_GET['page']) : 1; | |
8 | +$fromto = makePart($count, $currpage); | |
9 | +$buffer = array(); | |
10 | + | |
11 | +$i = (isset($_GET['i'])) ? intval($_GET['i']) : NULL; | |
12 | + | |
13 | +if ((isset($i)) && (isset($_GET['check'])) && ($_GET['check'] = 'y') ) { | |
14 | + if ($i > 0) { | |
15 | + if ($user->isOwned($i, 'slave', 'live')) { | |
16 | + $sz = new slaveZone($i); | |
17 | + if ($sz->validateZone($conf->dig)) { | |
18 | + $arr = $sz->getZoneHead($i); | |
19 | + $arr['updated'] = 'yes'; | |
20 | + $arr['valid'] = 'yes'; | |
21 | + $sz->setZoneHead($arr); | |
22 | + $sz->saveZoneHead(); | |
23 | + } else { | |
24 | + $smarty->assign("popuperror", $sz->getErr()); | |
25 | + } | |
26 | + } else { | |
27 | + problem('notown'); | |
28 | + } | |
29 | + } else { | |
30 | + problem(); | |
31 | + } | |
32 | +} | |
33 | + | |
34 | +for ($i=$fromto[0];$i<$fromto[1];$i++) { | |
35 | + $zone = new slaveZone(array('id' => $zones[$i])); | |
36 | + $zone->loadZoneHead(); | |
37 | + $buffer[] = $zone->getZoneHead(); | |
38 | + unset($zone); | |
39 | +} | |
40 | + | |
41 | +$smarty->assign("zonelist", $buffer); | |
42 | +$smarty->assign("pagetitle", "Slave zones"); | |
43 | +$smarty->assign("template", "slave_zoneread.tpl"); | |
44 | +$smarty->assign("help", help("zoneread")); | |
45 | +$smarty->assign("menu_button", menu_buttons()); | |
46 | +$smarty->assign("page_root", $src . "zonelist.php?"); | |
47 | +$smarty->display("main.tpl"); | |
48 | + | |
49 | +?> | ... | ... |
src/slave_zoneview.php
0 → 100644
1 | +++ a/src/slave_zoneview.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$param = intval($_GET['i']); | |
5 | + | |
6 | +if ($param > 0) { | |
7 | + if ($user->isOwned($param, 'slave')) { | |
8 | + $smarty->assign("pagetitle", "Dump slave zone"); | |
9 | + $zone = new slaveZone(array('id' => $_GET['i'])); | |
10 | + $zone->loadZoneHead(); | |
11 | + $zonedef = ''; | |
12 | + $head = $zone->getZoneHead(); | |
13 | + $headraw = $zone->getZoneHeadRaw(); | |
14 | + $name = $head['name']; | |
15 | + $zonetype = "slave zone "; | |
16 | + $ownerid = $head['owner']; | |
17 | + $ouser = new User(array('id' => $ownerid)); | |
18 | + $owner = $ouser->getFullName(); | |
19 | + if ((isset($_GET['pre'])) && ($_GET['pre'] == 'y')) { | |
20 | + $zonedef = $zone->dumpZone($conf->dig); | |
21 | + $zonetype .= "(AXFR dump from it's master)"; | |
22 | + } else { | |
23 | + $zonetype .= "(locally mirrored)"; | |
24 | + $lines = file($conf->path . $headraw['name']); | |
25 | + $zonedef = ''; | |
26 | + foreach ($lines as $line) { | |
27 | + $zonedef .= $line; | |
28 | + } | |
29 | + } | |
30 | + $smarty->assign("zonename", $name); | |
31 | + $smarty->assign("zonetype", $zonetype); | |
32 | + $smarty->assign("owner", $owner); | |
33 | + $smarty->assign("zonedef", $zonedef); | |
34 | + $smarty->assign("template", "zoneview.tpl"); | |
35 | + $smarty->assign("help", help("zoneview")); | |
36 | + $smarty->assign("menu_button", menu_buttons()); | |
37 | + $smarty->display("main.tpl"); | |
38 | + } else { | |
39 | + problem('notown'); | |
40 | + } | |
41 | +} else { | |
42 | + problem(); | |
43 | +} | |
44 | + | |
45 | +?> | ... | ... |
src/slave_zonewrite.php
0 → 100644
1 | +++ a/src/slave_zonewrite.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$i = intval($_GET['i']); | |
5 | +$name = (isset($_POST['name']) && (trim($_POST['name']) > '')) ? trim($_POST['name']) : ''; | |
6 | +$owner = intval($_POST['owner']); | |
7 | +$master = (isset($_POST['master']) && (trim($_POST['master']) > '')) ? trim($_POST['master']) : ''; | |
8 | + | |
9 | +if ((($i * $owner) > 0) && ($name > '') && ($master > '')) { | |
10 | + if ($user->isOwned($i, 'master', 'live')) { | |
11 | + $sz = new slaveZone(array( | |
12 | + 'id' => $i, | |
13 | + 'name' => $name, | |
14 | + 'master' => $master, | |
15 | + 'owner' => $owner, | |
16 | + 'updated' => 'yes', | |
17 | + 'valid' => 'may', | |
18 | + )); | |
19 | + $sz->saveZoneHead(); | |
20 | + } else { | |
21 | + problem('notown'); | |
22 | + } | |
23 | +} else { | |
24 | + problem(); | |
25 | +} | |
26 | +?> | ... | ... |
src/upload.php
0 → 100644
1 | +++ a/src/upload.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $files = getorphan(); | |
6 | + $smarty->assign("pagetitle", "Import master zones"); | |
7 | + $smarty->assign("count",sizeof($files)); | |
8 | + $smarty->assign("files",$files); | |
9 | + $smarty->assign("template", "upload.tpl"); | |
10 | + $smarty->assign("help", help("upload")); | |
11 | + $smarty->assign("menu_button", menu_buttons()); | |
12 | + $smarty->display("main.tpl"); | |
13 | +} | |
14 | +else { | |
15 | + access_denied(); | |
16 | +} | |
17 | +?> | ... | ... |
src/user.php
0 → 100644
src/useradd.php
0 → 100644
1 | +++ a/src/useradd.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if ($user->isAdmin()) { | |
5 | + if ((strlen($_POST['password_']) == 32) && | |
6 | + (isset($_POST['username_'])) && | |
7 | + (strlen($_POST['username_']) > 2)) { | |
8 | + $real = ((isset($_POST['realname'])) && ($_POST['realname'] >= '')) ? $_POST['realname'] : $_POST['username_']; | |
9 | + $urec = array( | |
10 | + 'id' => 0, | |
11 | + 'username' => $_POST['username_'], | |
12 | + 'realname' => $real, | |
13 | + 'admin' => $_POST['admin'], | |
14 | + 'password' => $_POST['password_'], | |
15 | + ); | |
16 | + $nuser = new User($urec); | |
17 | + if ($nuser->getId() == 0) { | |
18 | + problem(); | |
19 | + } | |
20 | + } else { | |
21 | + problem(); | |
22 | + } | |
23 | +} else { | |
24 | + access_denied(); | |
25 | +} | |
26 | + | |
27 | +?> | ... | ... |
src/userdelete.php
0 → 100644
1 | +++ a/src/userdelete.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $i = intval($_GET['i']); | |
6 | + if (($i > 1) && ($session->isEnoughOld())) { | |
7 | + $us = new User($i); | |
8 | + $us->eraseUser(); | |
9 | + } else { | |
10 | + problem(); | |
11 | + } | |
12 | +} else { | |
13 | + access_denied(); | |
14 | +} | |
15 | +?> | ... | ... |
src/userlist.php
0 → 100644
src/userlistread.php
0 → 100644
1 | +++ a/src/userlistread.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $smarty->assign("pagetitle", "Users"); | |
6 | + $usermap = $user->getAllusers(); | |
7 | + $currpage = ((isset($_GET['page'])) && (intval($_GET['page']) > 0)) ? $currpage = intval($_GET['page']) : 1; | |
8 | + $count = sizeof($usermap); | |
9 | + $fromto = makePart($count, $currpage); | |
10 | + $listed = array(); | |
11 | + for ($i=$fromto[0];$i<$fromto[1];$i++) { | |
12 | + $listed[] = $usermap[$i]; | |
13 | + } | |
14 | + $smarty->assign("userlist", $listed); | |
15 | + $smarty->assign("template", "userlistread.tpl"); | |
16 | + $smarty->assign("help", help("userlistread")); | |
17 | + $smarty->assign("menu_button", menu_buttons()); | |
18 | + $smarty->assign("page_root", $src . "userlist.php?"); | |
19 | + $smarty->display("main.tpl"); | |
20 | +} | |
21 | +else { | |
22 | + access_denied(); | |
23 | +} | |
24 | + | |
25 | +?> | ... | ... |
src/userread.php
0 → 100644
1 | +++ a/src/userread.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $i = (isset($_GET['i'])) ? intval($_GET['i']) : 0; | |
6 | + if ($i > 1) { | |
7 | + $smarty->assign("pagetitle", "Viewing user"); | |
8 | + $smarty->assign("admin_array", array("yes", "no")); | |
9 | + $xuser = new User($i); | |
10 | + $data = $xuser->getUser(); | |
11 | + $smarty->assign("user", $data); | |
12 | + $xuser->loadUserZones(); | |
13 | + $masters = $xuser->getMasters('live'); | |
14 | + $masterlist = array(); | |
15 | + foreach ($masters as $id) { | |
16 | + $temp = new masterZone(intval($id)); | |
17 | + $temp->loadZoneHead(); | |
18 | + $head = $temp->getZoneHead(); | |
19 | + $temp = array(); | |
20 | + foreach (array('id', 'name', 'serial') as $key) { | |
21 | + $temp[$key] = $head[$key]; | |
22 | + } | |
23 | + $masterlist[] = $temp; | |
24 | + } | |
25 | + $slaves = $xuser->getSlaves('live'); | |
26 | + $slavelist = array(); | |
27 | + foreach ($slaves as $id) { | |
28 | + $temp = new slaveZone(intval($id)); | |
29 | + $temp->loadZoneHead(); | |
30 | + $head = $temp->getZoneHead(); | |
31 | + $temp = array(); | |
32 | + foreach (array('id', 'name', 'master') as $key) { | |
33 | + $temp[$key] = $head[$key]; | |
34 | + } | |
35 | + $slavelist[] = $temp; | |
36 | + $temp = array(); | |
37 | + } | |
38 | + $smarty->assign("zonelist", $masterlist); | |
39 | + $smarty->assign("szonelist", $slavelist); | |
40 | + $smarty->assign("template", "userread.tpl"); | |
41 | + $smarty->assign("help", help("userread")); | |
42 | + $smarty->assign("menu_button", menu_buttons()); | |
43 | + $smarty->display("main.tpl"); | |
44 | + } else { | |
45 | + problem(); | |
46 | + } | |
47 | +} else { | |
48 | + access_denied(); | |
49 | +} | |
50 | + | |
51 | +?> | ... | ... |
src/userwrite.php
0 → 100644
1 | +++ a/src/userwrite.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $adm = (isset($_POST['admin'])) ? $_POST['admin'] : ''; | |
6 | + $pass = (isset($_POST['password'])) ? $_POST['password'] : ''; | |
7 | + $rnam = (isset($_POST['realname'])) ? $_POST['realname'] : ''; | |
8 | + $i = (isset($_GET['i'])) ? intval($_GET['i']) : 0; | |
9 | + if (($i > 1) && ($session->isEnoughOld())) { | |
10 | + $smarty->assign("pagetitle", "Viewing user"); | |
11 | + $newu = new User($i); | |
12 | + $newu->set($rnam, $pass, $adm); | |
13 | + if ($i == $user->getId() && ( | |
14 | + ($newu->isAdmin() xor $user->isAdmin()) || | |
15 | + ($newu->getPasswordHash() <> $user->getPasswordHash()) | |
16 | + )) { | |
17 | + logout(); | |
18 | + die(); | |
19 | + } | |
20 | + $smarty->assign("success","The user properties has been modified"); | |
21 | + } else { | |
22 | + problem(); | |
23 | + } | |
24 | +} else { | |
25 | + access_denied(); | |
26 | +} | |
27 | + | |
28 | +?> | ... | ... |
src/zoneadd.php
0 → 100644
1 | +++ a/src/zoneadd.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +if($user->isAdmin()) { | |
5 | + $arr = array( | |
6 | + 'name' => $_POST['name'], | |
7 | + 'pri_dns' => $_POST['pri_dns'], | |
8 | + 'sec_dns' => $_POST['sec_dns'], | |
9 | + 'refresh' => $_POST['refresh'], | |
10 | + 'retry' => $_POST['retry'], | |
11 | + 'expire' => $_POST['expire'], | |
12 | + 'ttl' => $_POST['ttl'], | |
13 | + 'owner' => $_POST['owner'], | |
14 | + ); | |
15 | + $nz = new masterZone($arr); | |
16 | + if (!$nz->loadZoneHead()) { | |
17 | + $nz->setZoneHead($arr); | |
18 | + $nz->saveZoneHead(); | |
19 | + $www = ((isset($_POST['www'])) && ($_POST['www'] >'')) ? $_POST['www'] : NULL; | |
20 | + if ($www){ | |
21 | + $type = (filter_var($www, FILTER_VALIDATE_IP)) ? 'A' : 'CNAME'; | |
22 | + if ($type == 'A') { | |
23 | + $nz->addRecord(array( | |
24 | + 'host' => '@', | |
25 | + 'type' => 'A', | |
26 | + 'destination' => $www, | |
27 | + )); | |
28 | + $nz->addRecord(array( | |
29 | + 'host' => 'www', | |
30 | + 'type' => 'CNAME', | |
31 | + 'destination' => '@', | |
32 | + )); | |
33 | + } else { | |
34 | + $nz->addRecord(array( | |
35 | + 'host' => 'www', | |
36 | + 'type' => 'CNAME', | |
37 | + 'destination' => $www, | |
38 | + )); | |
39 | + } | |
40 | + } | |
41 | + $ftp = ((isset($_POST['ftp'])) && ($_POST['ftp'] >'')) ? $_POST['ftp'] : NULL; | |
42 | + if ($ftp) { | |
43 | + $type = (filter_var($ftp, FILTER_VALIDATE_IP)) ? 'A' : 'CNAME'; | |
44 | + $nz->addRecord(array( | |
45 | + 'host' => 'ftp', | |
46 | + 'type' => $type, | |
47 | + 'destination' => $ftp, | |
48 | + )); | |
49 | + } | |
50 | + $mail = ((isset($_POST['mail'])) && ($_POST['mail'] >'')) ? $_POST['mail'] : NULL; | |
51 | + if ($mail) { | |
52 | + $type = (filter_var($mail, FILTER_VALIDATE_IP)) ? 'A' : 'MX'; | |
53 | + $destination = ($type == 'A') ? 'mail' : $mail; | |
54 | + if ($type == 'A') { | |
55 | + $nz->addRecord(array( | |
56 | + 'host' => 'mail', | |
57 | + 'type' => $type, | |
58 | + 'destination' => $mail, | |
59 | + )); | |
60 | + $type = 'MX'; | |
61 | + } | |
62 | + $nz->addRecord(array( | |
63 | + 'host' => '@', | |
64 | + 'type' => $type, | |
65 | + 'destination' => $destination, | |
66 | + 'pri' => 10, | |
67 | + )); | |
68 | + } | |
69 | + $nz->saveZone(); | |
70 | + $user->loadUserZones(); | |
71 | + } else { | |
72 | + problem("existzone"); | |
73 | + } | |
74 | +} | |
75 | + | |
76 | +?> | ... | ... |
src/zonecheck.php
0 → 100644
1 | +++ a/src/zonecheck.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$param = (isset($_GET['i'])) ? intval($_GET['i']) : 0; | |
5 | + | |
6 | +if($user->isOwned($param, 'master')) { | |
7 | + $zone = new masterZone(array('id' => $_GET['i'])); | |
8 | + $file = tempnam($conf->Tmp_Path,"zone_"); | |
9 | + $check = $zone->validateZone($file, $conf->HostMaster, $conf->NamedCheckZone); | |
10 | + if (!$check[0]) { | |
11 | + $smarty->assign("popuperror",$check[1]); | |
12 | + } | |
13 | + if (file_exists($file)) { | |
14 | + unlink($file); | |
15 | + } | |
16 | +} else { | |
17 | + problem('notown'); | |
18 | +} | |
19 | + | |
20 | +?> | ... | ... |
src/zonedelete.php
0 → 100644
1 | +++ a/src/zonedelete.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$zoneid = intval($_GET['i']); | |
5 | + | |
6 | +if($user->isOwned($zoneid, 'master')) { | |
7 | + if($zoneid > 0) { | |
8 | + $zone = new masterZone($zoneid); | |
9 | + $zone->loadZoneHead(); | |
10 | + $zone->setZoneHead(array('updated' => 'del')); | |
11 | + $zone->saveZoneHead(); | |
12 | + } | |
13 | + else { | |
14 | + problem(); | |
15 | + } | |
16 | +} | |
17 | +else { | |
18 | + problem("notown"); | |
19 | +} | |
20 | + | |
21 | +?> | ... | ... |
src/zonelist.php
0 → 100644
1 | +++ a/src/zonelist.php | |
1 | +<?php | |
2 | +if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
3 | + include("zoneadd.php"); | |
4 | +} | |
5 | +if ((isset($_GET['delete'])) && | |
6 | + ($_GET['delete'] == 'y') && | |
7 | + (isset($_GET['i'])) && | |
8 | + (is_numeric($_GET['i']))) { | |
9 | + include("zonedelete.php"); | |
10 | +} | |
11 | +if ((isset($_GET['check'])) && | |
12 | + ($_GET['check'] == 'y') && | |
13 | + (isset($_GET['i'])) && | |
14 | + (is_numeric($_GET['i']))) { | |
15 | + include "zonecheck.php"; | |
16 | +} | |
17 | + | |
18 | +include("zoneread.php"); | |
19 | + | |
20 | +?> | ... | ... |
src/zonepview.php
0 → 100644
1 | +++ a/src/zonepview.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$param = (isset($_GET['i'])) ? intval($_GET['i']) : 0; | |
5 | + | |
6 | +if ($param > 0) { | |
7 | + if($user->isOwned($param, 'master')) { | |
8 | + $smarty->assign("pagetitle", "Preview master zone"); | |
9 | + $zone = new masterZone(array('id' => $_GET['i'])); | |
10 | + $fname = tempnam($conf->Tmp_Path,"zone_"); | |
11 | + $zone->writeZone($fname, $conf->HostMaster); | |
12 | + $head = $zone->getZoneHead(); | |
13 | + $name = $head['name']; | |
14 | + $issec = ($head['secured'] == "yes"); | |
15 | + $sec = (($_GET['s'] == "1") && ($issec)); | |
16 | + $zonetype = "master zone"; | |
17 | + $zonetype .= (!$issec) ? " not" : ""; | |
18 | + $zonetype .= " secured, displayed as plain"; | |
19 | + $ownerid = $head['owner']; | |
20 | + $ouser = new User(array('id' => $ownerid)); | |
21 | + $owner = $ouser->getFullName(); | |
22 | + if (file_exists($fname)) { | |
23 | + $lines = file($fname); | |
24 | + $zonedef = implode("", $lines); | |
25 | + unlink($fname); | |
26 | + } else { | |
27 | + $zonedef = NULL; | |
28 | + $smarty->assign("popuperror", "There is a problem with this zone!"); | |
29 | + } | |
30 | + $smarty->assign("zonename", $name); | |
31 | + $smarty->assign("zonetype", $zonetype); | |
32 | + $smarty->assign("owner", $owner); | |
33 | + $smarty->assign("zonedef", $zonedef); | |
34 | + $smarty->assign("template", "zoneview.tpl"); | |
35 | + $smarty->assign("help", help("zonepview")); | |
36 | + $smarty->assign("menu_button", menu_buttons()); | |
37 | + $smarty->display("main.tpl"); | |
38 | + } else { | |
39 | + problem('notown'); | |
40 | + } | |
41 | +} else { | |
42 | + problem(); | |
43 | +} | |
44 | +?> | ... | ... |
src/zoneread.php
0 → 100644
1 | +++ a/src/zoneread.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$zones = $user->getMasters('live'); | |
5 | +$count = sizeof($zones); | |
6 | +$maxitems = intval($conf->range); | |
7 | +$currpage = ((isset($_GET['page'])) && (intval($_GET['page']) > 0)) ? $currpage = intval($_GET['page']) : 1; | |
8 | +$fromto = makePart($count, $currpage); | |
9 | +$buffer = array(); | |
10 | + | |
11 | +for ($i=$fromto[0];$i<$fromto[1];$i++) { | |
12 | + $zone = new masterZone(array('id' => $zones[$i])); | |
13 | + $zone->loadZoneHead(); | |
14 | + $buffer[] = $zone->getZoneHead(); | |
15 | + unset($zone); | |
16 | +} | |
17 | + | |
18 | +$smarty->assign("zonelist", $buffer); | |
19 | +$smarty->assign("pagetitle", "Master zones"); | |
20 | +$smarty->assign("template", "zoneread.tpl"); | |
21 | +$smarty->assign("help", help("zoneread")); | |
22 | +$smarty->assign("menu_button", menu_buttons()); | |
23 | +$smarty->assign("page_root", $src . "zonelist.php?"); | |
24 | +$smarty->display("main.tpl"); | |
25 | + | |
26 | +?> | ... | ... |
src/zoneview.php
0 → 100644
1 | +++ a/src/zoneview.php | |
1 | +<?php | |
2 | +require_once "include.php"; | |
3 | + | |
4 | +$param = (isset($_GET['i'])) ? intval($_GET['i']) : 0; | |
5 | + | |
6 | +if ($param > 0) { | |
7 | + if($user->isOwned($param, 'master')) { | |
8 | + $smarty->assign("pagetitle", "Dump master zone"); | |
9 | + $zone = new masterZone(array('id' => $_GET['i'])); | |
10 | + $zone->loadZoneHead(); | |
11 | + $head = $zone->getZoneHead(); | |
12 | + $headraw = $zone->getZoneHeadRaw(); | |
13 | + $name = $head['name']; | |
14 | + $fname = $headraw['name']; | |
15 | + $issec = ($head['secured'] == "yes"); | |
16 | + $sec = (($_GET['s'] == "1") && ($issec)); | |
17 | + $zonetype = "master zone"; | |
18 | + $zonetype .= (!$issec) ? " not" : ""; | |
19 | + $zonetype .= " secured, displayed as "; | |
20 | + $zonetype .= ($sec) ? "secured" : "plain"; | |
21 | + $fname .= ($issec) ? '.signed' : ""; | |
22 | + $ownerid = $head['owner']; | |
23 | + $ouser = new User(array('id' => $ownerid)); | |
24 | + $owner = $ouser->getFullName(); | |
25 | + $filename = $conf->path . $fname; | |
26 | + if (file_exists($filename)) { | |
27 | + $lines = file($conf->path . $fname); | |
28 | + $zonedef = ''; | |
29 | + foreach ($lines as $line) { | |
30 | + $zonedef .= $line; | |
31 | + } | |
32 | + } else { | |
33 | + $zonedef = NULL; | |
34 | + $smarty->assign("popuperror", "There is no saved zonefile in the system!"); | |
35 | + } | |
36 | + $smarty->assign("zonename", $name); | |
37 | + $smarty->assign("zonetype", $zonetype); | |
38 | + $smarty->assign("owner", $owner); | |
39 | + $smarty->assign("zonedef", $zonedef); | |
40 | + $smarty->assign("template", "zoneview.tpl"); | |
41 | + $smarty->assign("help", help("zoneview")); | |
42 | + $smarty->assign("menu_button", menu_buttons()); | |
43 | + $smarty->display("main.tpl"); | |
44 | + } else { | |
45 | + problem('notown'); | |
46 | + } | |
47 | +} else { | |
48 | + problem(); | |
49 | +} | |
50 | +?> | ... | ... |
static/default.css
0 → 100644
1 | +++ a/static/default.css | |
1 | +body,div.hint,div.main,td.almost,td.bad,td.check,td.del,td.ed,td.enough,td.first,td.firstno,td.last,td.lastno,td.next,td.nextno,td.no,td.nocap,td.nok,td.notenough,td.ok,td.perfect,td.prev,td.preview,td.prevno,td.view{background-repeat:no-repeat}.form-field,.submit-button,div.loginform,div.menu,div.title,textarea{border-radius:5px}div.loginform,div.title{box-shadow:3px 3px 10px #000}body,div.main{background-position:top-left}.disablestamp,div.section,pre,textarea{display:block}.submit-button,td,td.cb,td.close,td.pages,td.pages a{vertical-align:middle}body{margin:0;padding:0;background-color:#e0f0ff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAAJyCAMAAACsd52BAAADAFBMVEUAAAAANJAASYwAQJAAR5cARJcAQ5AARJgARJcARZUARpcARJkAP5YARpoARJcARZkARZkAR5cAQJUARJcAR5YARJgAPZYAQ5cAQ5cAR5gARZkARJkAQZYARJgAOZQAP5YAP5UAQJYAKowAPJQAP5YAPpUAQZgAQpcAPpUAPpYAPJYAPZcAOZUAQJUAPpQAO5MAOJMAQZcAQpYAPZYAO5YAOZMAQ5gAJooARJkAPJYAQpYAO5QAOJQAOpYAJokANJIAPJYAPpcAOZUAN5QAOZQAKo0AOJQAJYkAN5IAN5MAKIoAOJMAL5AAMpEAN5IAN5MAMJEALI4AMZAAL5AARZsALpAAK44AKIoAMZAAMpAANZMAOpMAMZEAL5EAM5AAM5AAKY0AM5IAMpAALI8ALY8AK4wAMo8ALI0ANZIAMI8AL48AJIgAIYYAIIUAH4NcBQeHBAZyCQxEcKuFsdxNerVcjchygoKSwOddcpPA2uoeSp1oe54mCh4rYqqyyd0zYqUwY6xnlaMdRIljAwkmSYcSFj4OHkxYiL5FAgcmV6AbQYlzqLgvChUycLmXtNUPJV8oBQ4aLl5dksM/ZnMoRhsOMG/PAAAHGEsSOHsJIVgjQnkLKGMEDDcEEEIEBSkaLV04Vosva7pNWE5JCAoXQIcqS4UfN2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AAAGOnDmgAAEAABvn+pa3hJoQAAAAAAAAAAAAAzqkG4KMECHwlQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABg24NDAgAAAABB/197wggAAAAAAACwCqEIro41sMHxAAAAAElFTkSuQmCC);background-attachment:fixed;font-family:Verdana;font-size:12px}div.title{position:fixed;opacity:.7;top:15;left:170;right:15;background-color:#000820;padding:10px 15px;color:#fff;text-shadow:3px 3px 8px #000;font-size:18px;font-weight:700;text-align:left}.copy,.desc{font-weight:400}div.loggeduser{position:fixed;top:28;right:40;color:#ff0;text-shadow:2 2 3 #000;font-size:12px;text-align:right}.copy,.desc{font-size:11px}.desc{margin:5px 0}.copy{margin:5px 0;float:right;color:orange}.disablestamp,.highlight,.submit-button,.tag,a.new,div.section,td.close,td.pages{font-weight:700}div.menu{position:fixed;opacity:.8;top:142;left:10;width:130;background-color:#fff;padding:3px 5px 30px;color:back;text-shadow:3px 3px 8px #000;font-size:12px;text-align:left;border-style:inset;border-color:#80a0ff;line-height:200%}div.loginend,div.loginform,div.main{text-shadow:3px 3px 8px grey;position:absolute}.tag{font-size:18px;margin:5px;text-align:center;color:#000}div.footer,div.hint,div.loginend,div.loginform,div.main{text-align:left}.currmenu{float:right;color:#006400}a,a:active,a:visited{text-decoration:none;color:#00008b}.deleted{color:#000;text-decoration:line-through}.attention,a.attention:active,a.attention:visited,a:hover{color:red}a:hover{text-decoration:underline}.submit-button,a.new,td.pages a{text-decoration:none}div.main{top:0;left:0;min-height:300px;min-width:350px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUgAAAD4BAMAAAB8h2LBAAAAHlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3KG9qAAAACnRSTlMABCUgCQ0XGxMRWRrLZAAAAoFJREFUeNrt3b1q21AchvFz7sAHzgX0g5K1REPWGqS9hQiqrZOVsWCI1k6qu3VJkO62kuXUVmRoA7Lz/vHzoFXw4z1HsxxdYD68Ti8xhq4YTlVchv/pn8b01XpOXSyOG31nzM/bxLocQf2RIWOWt+3mRP1q2+4Zl+cPD0e8o0EnQxZNvTpLe/ugfaIeWdT7ETJmzaqsztF9WT5x7/bUwTlhukNlN2RdJWfopqq6Z9uh9O+ge+X0xEPWlOvkfI2hw60d1rzdGtPljukOlDF7rJLrd6ft/THnRJkOyjAoF6MrWa9PbhxBb5Jkr7w7OPFnX7k/QBY/T4icekdz3vfM/Za3O+V0yaJMupevvjjdnpCfnHA75FunnI9fy0R8yB3yykk3ID846bZI8Su5Q75x0oEEqRZIkGqBBKkWSJBqgQSpFkiQaoEEqRZIkGqBBKkWSJBqgQSpFkiQaoEEqRZIkGqBBKkWSJBqgQSpFkiQaoEEqRZIkGqBBKkWSJBqgQSplo8FSJBS2UCmFpAmlgQJUiw7yGuQIHUCCVKtHrlOQILUyQqyBglSKZAg1RqQH510PbICCVIoI8jcCHINcg5kVpcmkBXIWZCPFpANSJBK9chV9d1JB3JWZAlyJuTKALJWRzojyNYCstBHhh75zWnXITcgLweZFpvaALLZgJwFmYOcC9lufjjtzCAbA8iiBTkLMjOC/O20CzHLTSALC8hcH5mCnA/52WnnjSAzkJeETPWRIU0zC8gU5FxI7b8Qm0FGkJeDdDaQASRIrUKIFpAhyiN9p5RHdsalPLJfcuHEAwlSLpAXhfQWkM4CcmEB6bw+0nvn5JFbpnwGiEaWJCIiIpqzPzRW7lFKbYgjAAAAAElFTkSuQmCC);padding:20px 35px;color:#000}div.loginform{top:10;width:90%;height:350px;background:linear-gradient(to bottom,rgba(255,255,255,.2) 0,rgba(255,255,255,.5) 100%);padding:10px 15px;color:#000}div.loginend{width:100%;bottom:20;color:#000}div.footer{position:fixed;bottom:0;left:0;right:0;height:18px;background-color:#00008b;padding:5px 15px;color:#d3d3d3;text-shadow:3px 3px 8px #000}.disabled{color:#a9a9a9}.submit-button{border-stile:outset;background-color:#6080ff;border-color:#6080ff;text-shadow:2px 2px 5px #fff;color:#000838;padding:3px 10px;font-size:14px;min-width:100px}.form-field,.submit-button:active,.submit-button:hover{text-shadow:2px 2px 5px #000}.submit-button:active,.submit-button:hover{background-color:#4058df;border-color:#4058df}.submit-button:hover{border-stile:outset;color:#fff}.submit-button:active{border-stile:inset;color:#fff}.form-field,textarea{border-color:#6080ff}#cancel.submit-button{color:#682830}#cancel.submit-button:active,#cancel.submit-button:hover{color:red}.form-field{border-style:inset;background-color:#6080ff;color:#fff;min-width:20px;padding:3px}.form-field:focus{background-color:#fff;color:#000;text-shadow:2px 2px 5px #6080ff}textarea{margin-top:8px;border-style:inset;background-color:#6080ff;text-shadow:2px 2px 5px #000;color:#fff;padding:3px 10px;font-family:"Courier new";font-size:11px}textarea.ro,textarea:focus{background-color:#fff;color:#000;text-shadow:2px 2px 5px #6080ff}div.section{position:absolute;opacity:.9;top:70px;left:170px;right:15px;height:60px;font-size:18px;background-color:#101850;color:#fff;text-shadow:2px 2px 5px #000810;border-radius:15px;padding:0 15px}pre,td,th{font-size:12px}div.clear,div.hint,div.login{position:fixed}div.hint{border-style:inset;border-color:#a0d0ff;border-radius:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC91BMVEUAAAA8DADNjTHp6em2trWJiYkAAADNzMyVlZXl5eXZ2dnS0tHOiCLOjC3VoVFGRELBdhk/Pz9KSkqUMgCvr6/f39/BwcGOjo5tbW3x1pfvz47jpkTGxsW7u7v11onwsT57e3t3d3f0vlWDg4P97r7yskWAgIB0dHT65q/03abqpjjqpCzy1ZfstkqhoaHlpjlycnLhnS7kqT3ry4nfsWFaWlrbpEnQhRpvb2/PiB7bqlfLijDQkz7NgBe7awfTn03LiSm4ZQNGRka0YwPdsGqVPADHx8f3xlHzpit6enqsqqeqqKTxskbuoCfx2Zr03qDpqD3klCCKioqIiIjoxXunp6ekpKTnvXREREQ9PT3kojrekB/KoWDGlU1ycnJwcHDekSfgli3fkyrht2vgsmXpxn/gmjDekh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I6R2vPKyMLywMBy3054XF6dnZNwGMs6LX3ckercOXV+9vIWT9uzZ5eL09IwHpaVisbik5LZY3dWBIJh878b9y4gXL9Lv3X9Q+rqislKtVleK1dklkwmCQxcMr64gwL5QVl6RmfUuWyKprlZLJOLDBMFYw9u3FxBlZeXlmZlZ2dmSHKFQmCMRSt6NJQgOuLu7G27gGAyZWVkB0g8fauvqtFqNRpNTfZAgsJcajUb3RowBUtndWtc6l4/19R91WmGOPdGH90MqlQYYAwCpSXb3pOupYJdjvOM8Xr1W2LMF0RyGmGQymclkkoF90jXylIvXseMsFis6VyccQiWa9MhaEE/ChfRg5J8+fTpartOMJPxZ7ee5NhKJdOSfPYsHPe0xIijDIk8hgoNd4PY83GezY6NytcMsnAYzuoEJeHkhnXWWHRrHjo3W9ZmBWWDCL69jOKDjtw8N5XBCYuU/J2CWcB7B44ELNr4a0CGIlo9wxiwyaxCPBTLsFVajVCrxBwychTXB1D+/YaNgc5Tx8fEKTkhUt6lYk4xjs+M4HKUy/iKgCIptGIc1jdOgOCRfBfiKkKiBTiQBZZ9CAbbZLDKb+UExDXtJD+Qp86+aRR6AKAEe0GcKRsacJQkijzOAKCEoRr54Dvlpv4LvcYbL5Z4R8YOidMutOO838T24XB8UNGg3YuRsh8AHDxQxck0nK4Kd/wLYQq5VwQ4U+KBAaE2wpaam5v3779+qqqrevNlM7jsuore1aW5Ly6O1setMX+hIXmzr0b0Xox2TyWT06t5jK7nfcm3rLnPtmtvatrGzaUtf05I0oAxv375fX0a7doy+C/q1H04hn/RQfA9taDTb5naduwxtRr6kVQzm09TWdHrr1KdMxsqWGCmtxqfa0PIePsyj2aSOb4VZAWXMncDAO3AFjqFg1nF0Ax6sP4JZTSvHmTMdiZfzF9ok8qPnDPwYAAAAAElFTkSuQmCC);background-position:0 5;bottom:33;left:5;right:5;min-height:70px;background-color:#a0d0ff;padding:0 0 2px 55px;color:#00008b;text-shadow:1px 1px 8px #000}td.close,td.nocap,td.pages,th{text-align:center}td.almost,td.bad,td.check,td.del,td.ed,td.enough,td.first,td.firstno,td.last,td.lastno,td.next,td.nextno,td.no,td.nocap,td.nok,td.notenough,td.ok,td.perfect,td.prev,td.prevno,td.some{background-position:center}div.clear{top:130;left:155;right:0;bottom:115;overflow:auto}div.login{top:142;left:30%;right:30%;min-width:500;bottom:105;overflow:auto}pre{font-family:"Courier New"}td.cb{font-size:10px;height:14px}td.ok{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAB41BMVEUAAAAAgABXynkAdhdatmFPr1MFfwAAewtZu2ZZu2ZWumRAxGggliEGgwAAlRQApS0AlRMArTIIewAAnBoAoScApTAAZgAAVQBZvm9WslxWsltOtVlMtltJwGpJsVRItVpIrEs5oDYlsUolmykgr0QArjQAoCoAjAQAnSIAjwD///8ClxUDlhMmozM7x0EMmh38/PxKy0wzvjsCnCICmRoEmBcDkg/y8vIFrzcBpCmm3LQxq0MusDkAqC8Apy0KoCkCnygCoSQKnCIYoCAOnCAAnB4Hmx0DlBHs7Ox1oH0urzkHqjMjrCwAoiocnSgHnCYXlyYPlh/3+vfG5su/w7+s37mb1KB5on8oqEAppjo3uTgOpzIlojEJqDAlsCoQoCUOnCQhoSMHmB0IkRT3+/f29vb19fXp9uri8+Tj4+Pb7+DZ2dnP69XIyMi64sS84b+y37u3ubew1rSf06yqqqqfrqCJ0JuXr5qJ0JmSoJR2y4yIp4xwt3hnv3JnxWxPu2thnmhhlWhYumZcm2Nao2JNomJVsVlQnldMnlVJjlJGuksprUhAkEg8qkU+ykQ6t0IsqD8zlT81wD4YqD4xsz0tsDgYqjctvTYCrjUPqjIjmDIUmiINnR8SoBwSlxgIlBgLkBd8M8BNAAAAKnRSTlMAAugG/M1IEfbz5qyGbWldVlBBKyASCgPx5OTIw76+u7udioqGa0M+PBmTh5YkAAABkElEQVQoz4XRVVfjQACG4dBtyy6yLL64W2ZKQ2OkpU7dcXd3d3d395/KJOUEDjc8F7n43jOZi8F+EhIfHS6RhEfHf5vjJM1Wc3u72dooif2y/4q6NzeUCBqeb/JCxD3b0nJSjBzsoE9La1rix3+iKPeFCjmtrVq5VancrbnBEKd/uSpDro+n2Rq30+k0n+ULB/4zXoVgd7iixtvUpPDCMP6aUBOjLEeeHubtvctAidg0hSj8gzaGsUE6sD6IjwY63zoZyCj/opABAIAQvh5VEV0TW5tre34bhKko/AE0HfD7z6dYHCdYO9u/BGjwmw801bG/ODtux4P6NgAlhHTKanKwBIF/qKyjrCCFv5wmfY5utIjBQpr4y4uUPp+j5zOMkaRFU4AhUou+lhD3ijnSQIUl8CH20bA9qVaPDAh16NBAKuSYIKKD83g8l6sz6upq9UKjoS0HC0qUmTiXS6vT6VzNOi3XlhkqPkhWvVFbyrvTGusj0C6SJ2v0Ro4z6jVJ8uADiodiImVSqSwyJgH7wTvKvGKP1m610QAAAABJRU5ErkJggg==)}td.almost,td.check,td.enough,td.perfect{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAACVVBMVEUAAAAe5i4AziEApSwVnUF4/XwGkitf+2UChyZ4+4Bo924KgyoEfSQAlARc/2EKmzmh/qlX/m6g/qIJsD8KnzwM/hAAsicA3R47/UEA1R0A3i6A/YN+/YMA1S6U/Zab/aEo/ElM/GEPtkEElikAoiYAliYA8BYA9hJd/GIAsSEA5ix3/H0FzjRG+15s+3le+2MAqSMAvR8dqkcI+hkA6BocnkYA6iwK+RgIvjgA3hlN+lUAwhww+VAgsUoAnCUgmUYn+TEA1RsD6ioNsjsTqz////+o/qyR/5gC/xK9/795/34AnzIAsSsA8SYA1yGR/5V6/4Z5/4Jd/3Ba/2I3/1Az/0AApTEA4jAAqS4AyCYA4iEA3SEA+h8A8BsA/Rr8/v3r+u6p/q+S/5xc/2tc/2c2/0gBxzgv/zcAzzYAtTYDoDYA1zUAuTQAsDQAvC0A5ywArCwA7ykAvCkA2iYA0iYAxSYE/yAA5R8A7B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BQJtmacsYtu2GyyCapMK42wStLjl3PXDxhhAKyjZZgdTTzr7HSnFLst8kLUmRBEFmMiRBklZPV3HuA/uqCGIBsn9UyOGdho5KBQRhBwTdSiSPiqsYYLP7FdwppIA/M91t59KIatsAAAAASUVORK5CYII=)}td.ed{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAACRlBMVEUAAAAPGCQAAAADBAYqChEOFiAxNUUBAAAFAAAHDAyPHx+dRVtUQzPKQESdssyWrc1YHiI3MzDefX1VDBGpMjEAAADbdXgOFyETHCcCAwQQGSYAAAEAAgEAAAArCQkBAQEAAAAmNkoBAQFHV2shBAaYJDD///+gttPU4O7j6vXc5vLY4vDO2+zM2evM1eG8ydr9/f7f5/L8/f35+v3v8/jR3ezE0+X1+Pzz9vrr8Pfn7fX1lhb8rRXS3uz8ryTn5+a2xtutvdGUq8q8v7+Lor96kbCIio3vjzf5qx77rR3Zcwr5/Pzg6fPk6fDj6fDL2evAzuCetNKpuc2Zr83g3Mlzi6rQyKmem5WMkpX5y42Qj4t4fYf4xYN3eXxydHZ3dXVbWlprRir8sSjniCjhgiggHhrWbgbv9fzo7vbs7fPd5vLw8PDr7O3N2uzh4eTa3eTI1OTQ2ePw6968y97H0dzW19rR09auwNbMz9Kbss/Nzc23wMumtsvy58qNpsqltsno4sjFx8ePpsT+w8OstbyGnbuDmrnVzbf3t7eAl7axsbKdprCPnbCnqKhwhqdthaWfoKGOlZ/60p5ifJ3MuZuampvkuYjuh4f2hYWBgIHAgICAf374wnrnrHi9dnW2pG+kmW5QWmekTV2UhVdcWVPVq1LeUVF0a01tY0dfTkJuYkGPQkHqkEDEQkBFRD+3iz7YiDu1OztCQTrBOjjoqDNlSDDxiy7opCkvLijmhydtRifigCHHdCBmPSCTHSD2lhb/rxPDaQ7I9twOAAAAJnRSTlMAoxaUBKVPNigc/vr5+PTv6+jn3NrPsrCmpZyakIp1dGhVTT0sF3ISilYAAAF3SURBVCjPYsAN6tQRIJBfmQUuEehXEKAPBSbGfGxwicosf38zMAhw8FUzcGJThWoKNtSFglyghJoRN68YJ0TCRwcGHPwMvBetndEsxAHS5KRpamoLhECyuLw+wnlWx/RlIipgCQ04sHVrdI6bt3EzlxxQoilDGwby12zoip8ZsXqfsAJQwsVSCwa2JcdsiZ7QGy8gywGSMDEEA58895Q5dge2h88WlGEHWd5qogkB7skxSTYe+/fwSIPFGQBrs7ACAXv3lEg7G09rr72iShAfdppbAkHm3J2RQPXWaYkLJTkhPnc1NjExSZ+2exJY/a64HmYmqISRhYWFfdgUO7D62ApHuISaubl5SHvIUqD6rbFlFnCJUDVjY+OGorAF6w+udCs1N0aSMFKL2lQ7f/GqJVPtvY2MgmASfWoGajtSVyxPcHPOMQACuES/mlp46rqEqKpsIzUQqIFJTC7Ua5kY3V1dogcBLjAJRSlxVlZWRjiQkAdK4AEA+il2ExPxslwAAAAASUVORK5CYII=)}td.some{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAABDlBMVEUAAABSUmZPT2xSUmpLS19ZWXdQUGtQUGlbW3VOTm5NTWxOTm1eXoNUVHVOTmxdXYFgYIRPT2tQUGxZWXRRUWU/P1BUVGg3N0RUVGZfX4ZsbJdkZItubplbW31mZoxfX4BQUGxbW3pRUWxXV3FSUmpMTGJUVGv///+dnd6Li8RgYImBgbZlZY5PT3CFhb1qapZaWn9WVnpUVHeZmdmUlNJ+frNoaJRcXIKIiMF6eq2Xl9Z8fLCTk8+Pj8yCgrheXoWjo+eenuCbm9uOjspubpxSUnT6+vqamtqWltSHh7+EhLt5eax3d6lzc6NsbJpmZpGNjcd0dKRxcZ/29vapqe+mpuvW1vK4uPChoeRYWHweFNUfAAAAJ3RSTlMAGuZ+M8nIlnD79vLx8e7r493OoicdFBQK+fX17+nm0dHDw5aJiWtudu4FAAABd0lEQVQoz4WR51qDMBRAa7XDvbXuLZAQCIRQNqWF7j0c7/8iXmqt+qvn5zlf7neTZFaxVsztyPL+Q3Htnz49vsROBXDw9dP5r9/Yt5i4gEkHG0tPDYexRhVoMMfxbk8Wc258w3CcahRFIms2DcO6+w7Hbs33jKaQMhE9z/ftwnyfq5aUFmFO3fBrknSRLlCMFUsa1moRa3xAYUPJUjovEHKdAAowbHl1QTDAYzcHYdfmgdKyLAk34MBUUdqB2z2AoHU7HLcVBTPwM9xuY7cz2oGwafZsl+MggDlNO8DctXvmLoQ9Hakjm3OlLkwx59zuqaGehfCYUDRQ47E7EWbd0ThWB4gmeQiv5DOUTbVvjrux2u+rphxqZD294J5OEZSe+B7FqUdU3yplgALRykiWW7CUbYIvzw8AZ4cJFKRW3sTBYO6Pfp49SzQahmWZIhRSjRwuf/HknugaLQNU08kR+CWFTZLoQEK2YP5fzp7z2e3tbH69lFnBF01/TOuZl9vyAAAAAElFTkSuQmCC);background-repeat:no-repeat}td.del{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAACGVBMVEUAAAAAVbYAS9ILKTcAUKAASqsATp0ATacATaMAUrMACiEAYcIAEyUAWcMAFSsAQ6MACgoAIkoAXLY4xgAAKFI0wwAAK1UarwAAeesAKUwAK1kAIkUAdeYAdegAIkgAUqYAHzsABggAWbwAHUAAfnQAS8UARY4AEyQ3xgA5xgA2wwAAGzUAIEAAIkIAMGQwvQAANm8AOncAee4AUaMAU6Y3xgAAVaoAUKIAHDQAT58AR5EAceIAKE4ANmkAMF8AGjkASq4AQYIALVgAJ1AAN3AAIT0AMGIAijsAVa8uwgAAd/QACxUASpMAeeoAjCgowQAAa+YAJEQAemwAGDAAcvwAYrcALF8AJUsAb4wAiTIAhf8AJEkABw0AHDUAFDsAWU44xgA4xAA2xgAAGCwANWgAFSo0wgAuvAAAJUcAQ4AvwAAAT50ADRkARIgAM2YANmkAVq0AQIIAKVQAIkcAGzsAXrgqtwAAducAXrkAChYpwAAATJgAR40AI0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:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAABgFBMVEUAAACybgQ9erjEfwwMV6TBgBE4erwWX6cyc7RMh8K0cgS5dQhUicCvbwKuyOg8eriscg14SzURW6XSjh4qb7LUjhfShgZIgrzjjgJqc2Vpb1/Mihslaq00dLTQkSgpbLA9ercmaa47ebk0d7gATJxCf77BfAq6dgi6dgVCYW68dwi9egpMhL06eLW4dgceZaq6eApOhr4+fbm6eAtdkMRCfbi6eQ24dgxVi8FFf7uDqdJynsu4dge3eApLhr+00ueqbAA3drpkl8Xo8v7C3fu62fqp0Pjc7P7P5f2y1frJ4vvZ6vzu9/8kaa33/f/m8f33uVLlqUXq9P/Y5/fP4fRwo9Z3pNE9e7oeZq35v131tEf0sEDzrjryqC3toSLtmxD0+v/x+P/e7v673P7K4/vT5vnB2fK/1u2jxeiSvOaqx+SRtdmKsdd/qdJsntBfl9ByoM1hlcpPisWCpMRckMQ4eLkwcbLxtVD4t0vlpj3jojb0rTXlnyrXlSjuoBzgkxJ4t3KIAAAAQ3RSTlMAGPTu6NfFvWZfXEg6LhoSCwT+/vz6+vn59/Xz8vDu7efk4N7XwcG3rqqpnZeWkY51cm5ta1JNTEpCJycnIRgODgwGy8ozJgAAAPpJREFUKM99zmVvQlEMgOFiY0MGzN3d3f3A7uQq7szdBZe/TgghPeEQno9907RQl2VOLQjC0PpJ1Xy5/919JUovf/pmoK21uEmJk7xq6WIZdjlJmfi1CGjFe8NV3PtsGEaeztB3E4Y2hx15xjH4b8+RpwGDcEr5pMLoswP9UDcaP+4uKuz/xxgOBh+4yzLOO20FaiX+yEuESIT/7e6aMgPa8r+JPH/t8vV0xGIaA6AdvVbd2Tc2DzOFfLR9VgVo17RtOgQ4mohGIlmdERhmTSYcDvUu2JhiaA0Fg8ncHjCW0rIsp4xssE4mAgFlA1gqnaIM7EOtsrqJD7OKPBJCztYjIqEAAAAASUVORK5CYII=);background-position:center}td.no{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAG1BMVEUAAACNAAB5AQB3AQByAACGAAB/AABrAQFqAAFgNiydAAAACXRSTlMA8/T19fPys7EGJ6HTAAAAIklEQVQY02MYDMBUEAyCwRy3QBBbNAXMKTFSAgJlD4bBBgBrrgPcZyYWLAAAAABJRU5ErkJggg==)}td.bad,td.enough{opacity:.5}td.almost,td.notenough{opacity:.1}td.first,td.firstno{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAABxVBMVEUAAAASEhJzr90SEhISEhIrRVqFyulcndZnptRYlMRnpM5KfKiK0euEyOiL0uuFyukgLzyIz+p6uuQbJS0SEhIbJi4SEhKCxucSEhJeoNiIz+qFy+lprNx7u+OIzuphoteFy+lbm9RopNRdndJoo9BhodJendBalslWk8h2tN9ppNFno9Bmo8xQh7Z1s95qp9NTiK+CxOeL0utFc5xtqNVfmbyIz+pZj7J+wOVHcpJzsttOfZsfLjwxTWCL0uv///9mns+DwOaKyel6teP8/v+Oz+uMzOp/veXt9/2IzeqIxehxrt9tptfY7vmT1+2Jx+iFw+eBwud+uuR4suBuqNpxqdmp1/CKzOp8veV1seB0rt9nqt1zrNtdoNppodPx+v3X6/m42fKj1e6S1OyQ0euDwud9uON4t+Jvq95lp9xipNtwrNpoo9j6/P6/4fWb2u+m1e+V2e6i0+6i0e2g0e2NzuqQyuqFy+mKv+eCv+V+v+V2ueNxtOF3s+Fwq99rptlspNRro9RnoNDm8fvO5vfB5PXI4/Ws1/CW2u6R0uyL0OuXzuuRzeuNzeqSyeqEveWGu+R5ueOEuOJ1tuJzteFqrd5inc234DQrAAAAP3RSTlMABf5CC1gR9N7Hu52cb2ZOR0Y6OTIpIBwY+/n59vTw8O3t6OXl4N7R0c/JwrSwn52dnJCPjo2KgX5zXU9OLAaavyVQAAABoklEQVQoz32PRVvrQBRAmz6K60Ofu+DuEiaBhgjE6y1SF9zd3fX3cqdFN5zFLM65881cwyNdedl1mdk5yYbXJDd9ZVn2iGU/Zha/9Hnf5wcmB4DJg/lPWc8+y896fb1xDr0+ufbR5yxZe81mM0VRcM76vHJLwhd/8WMpHk+JokhZTk6ttvfxUBWkRI7jRkZJC8f1k30UxZTGP2SUJD9C06MkuS8NkWTfrMTZ8ZW2KEKLizM9JDmGwA+OWxEyNkCojjKMMg1+9/zBM8xqGYT0aEBZwPPMHvg5xASUgPobQrlAK2cQhukdeGCBxhh/QqjYUmnZgovSD+VCVVW7ngqh8c5lpOUJXBAuVw6XqzsdQrtT112rSyNQJiQo2w5djzVDSEqNCYJmt0GZssmwoF1Y/9xpAFqd2saGwF/OzQQdQZsFOQRnDYFDSVpY83g8Gs+HNjfX+DUt/KcQNJD/N8J7uh/YCoW/mYhEIHL/RVb4daxjoevIL1MSyETJz0hxO1eWl29u3R8qc8E/UdRRn/bD7U75n2EqJAwvIUoK3gEFRTD+NvetwnhfPecH4gAAAABJRU5ErkJggg==)}td.last,td.lastno{height:24px;width:25px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAABuVBMVEUAAAASEhISEhJdn9krRVofLzwSEhKFyukSEhJzst+HzepcndZcnNNopNJfn9FnptRYlclnpM5KfKiEyOiL0uuIz+ofLDcTFhiCxueCxOdprNx7u+OIzuphoteFy+l2tN9ppNFUkMNcmMVno9Bmo8xQh7aIz+p1s95qp9NTiK+CxOeL0uuL0utFc5xtqNVfmbyIz+pZj7J+wOVHcpJzsttOfZuL0ut/weZ7u+R4ueMxTWAkN0USEhISEhISEhKL0uv///9nntB6teKLy+l3suH7/f+Oz+uJyelxrt/a7vmMzOqIxeiGw+eCwOZ/vOV9ueRzrdxuptdrpNSGy+mJx+hvq99xqdprpdiU1+2S1e2Q0eyJzup/veV7vOR3uONys+Foq96o2fC11/Cn1O+V2u6l0+6CxOeDweZ/weZlp9xoodLu+P3r9fz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Iw9SZKbQPxKgKXckkSXQ5h91HUPcEs8WnV7dF0/mYCwWHKCsSxnyAe1oEeWMQ7//m4CprKy1+tN3axFkimMYcTZATMJC1052ecLBfeDIa8PCOfaYIFQ354P+WiDTO5ftbkQzLWl+XQoTJ+e0uFMKt9S/RVkodRXFB9l0wcH6Ycja08t8UYpmhvpbLJai0srZubJO+9TwxegoQiuf84zATd21V0d5SoAAAAASUVORK5CYII=)}td.firstno,td.lastno,td.nextno,td.prevno{opacity:.5}td.preview{opacity:.3}td.empty{height:24px;width:25px}td.check a,td.del a,td.ed a,td.first a,td.last a,td.next a,td.nok a,td.ok a,td.prev a,td.preview a,td.some a,td.view a{height:24px;min-width:24px;display:block;width:100%;text-decoration:none}td.pages,td.pages a{height:24px;min-width:12px}td.nocap{height:130px;width:320px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT8AAACCCAMAAAAHWz+GAAAAeFBMVEVpWVn////a2trh4eHd3d3s7OyuFQCysrKlpaWAgICXl5fn8/3r6+vo6Oj49/fl5eXs9v+/v7+cnJzT09OgoKC1Lx3He3G7RzfMlY3e6fTQpqDLhn3ay8nEb2S9UUKyJRHTsq25Pi3Vvbq/XVDHx8fHY1bZ5O/iq6SQMajXAAAAKHRSTlNVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVY1Bi1gAABYFJREFUeNrs0FEKgkAURuGxGEbI0axe3ED7X2K3KEuEml8CL3jO23n9wnV4d503fOlAhzAM7aKqttp8D792hBD0wHsChmoaTlJPv9ynmoRSnz/8zuncxRgbpbjpOiMb/XL61ACpqCbll1+/iyS3619+dY4kl+vR776BhKL19musQEKNhR9+heHnLPzwE8LPWfj9x++IH36/w89Z+OEnhJ+z8MNPCD9nTf2yFUgoW/jhVxh+zsIPv5Wa+13wW+J3wQ+/svBzFn74CeHnLPzwE8LPWfjht1Zzv84KJNRZ+OFXGH7Owg8/IfychR9+Qvg5Cz/8hPBzFn74CeHnrIn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rrGt7b67y9f/f0VWrowgzl5De/l9xVia/KDoYvjD6YMo76mhPM4xYKCN/X1//cDRcdEBbNqR8dk9pv9/Vp3WPADTUNNddKzno5ZyH5DI5Je8ANOY6zTUmoraMxC9hs6EB22Bx9fF/xA02IWst/4uSO75QUn6pb8QDFKYhKy3+THKATb+7FFPzDc01neGsh+Mz/yxYFSv1NGCzoVeA2Q/ebzlxhnNJ+/abXkjWs6K3u87Pdi/XCFo3T9WC77pfsX7zyRLv6h34rOf0x+7fbS/vnW1alfu6LzRzBUPi7fL+HW8dQP13P+DWEIL5x/Q7h5iV9sLecv4RQunb/8IL7UD9dx/hdhDpic/705X+r3s4Tc1ZU/J79NC7mrazeT3+4Jclf3tJv8ivKpzVP4qsr2qSxGv9hu8/w1d0XPm10x+uX+vuj3o8j9PV/0y4Bv4PvxC0JPavSuS0YUAAAAAElFTkSuQmCC);text-shadow:0 0 7px #000}.disablestamp{color:red;font-size:28px;opacity:.5;transform:rotate(330deg);text-transform:uppercase;letter-spacing:3px;word-spacing:15px}.whitelist{opacity:.5}[type=checkbox]:checked,[type=checkbox]:not(:checked),[type=radio]:checked,[type=radio]:not(:checked){position:absolute;left:-9999px}[type=checkbox]:checked+label,[type=checkbox]:not(:checked)+label,[type=radio]:checked+label,[type=radio]:not(:checked)+label{position:relative;padding-left:25px;cursor:pointer}[type=checkbox]:checked+label:before,[type=checkbox]:not(:checked)+label:before,[type=radio]:checked+label:before,[type=radio]:not(:checked)+label:before{content:'';position:absolute;left:0;top:2px;width:12px;height:12px;border:1px inset #6080ff;background:#6080ff;border-radius:3px;box-shadow:inset 0 1px 3px rgba(0,0,0,.3)}[type=checkbox]:checked+label:after,[type=checkbox]:not(:checked)+label:after,[type=radio]:checked+label:after,[type=radio]:not(:checked)+label:after{content:'✔';position:absolute;top:1;left:3px;font-size:10px;color:#fff;transition:all .4s}div.pages,div.submit{position:fixed;top:132}[type=checkbox]:not(:checked)+label:after,[type=radio]:not(:checked)+label:after{opacity:0;transform:scale(0)}[type=checkbox]:checked+label:after,[type=radio]:checked+label:after{opacity:1;transform:scale(1)}[type=checkbox]:disabled:checked+label:before,[type=checkbox]:disabled:not(:checked)+label:before,[type=radio]:disabled:checked+label:before,[type=radio]:disabled:not(:checked)+label:before{box-shadow:none;border-color:#6080ff;background-color:#6080ff;opacity:.5}[type=checkbox]:disabled:checked+label:after,[type=radio]:disabled:checked+label:after{color:#fff}[type=checkbox]:disabled+label,[type=radio]:disabled+label{color:#000;opacity:.5}[type=checkbox]:checked:focus+label:before,[type=checkbox]:not(:checked):focus+label:before,[type=radio]:checked:focus+label:before,[type=radio]:not(:checked):focus+label:before{border:1px dotted #00f}label:hover:before{border:1px solid #4778d9!important}hr{size:100%;border:0;height:2px;background-image:linear-gradient(to right,rgba(0,0,0,0),rgba(16,32,175,1),rgba(0,0,0,0))}.highlight{color:red;text-transform:uppercase}div.pages{right:15;height:30;padding:0 5px;background-color:#fff;border:1px solid #80a0e0;border-radius:30px}td.pages{color:#00008b}td.actualpage{color:#fff;text-shadow:0 0 4px #000}td.pages a{width:100%}div.submit{left:165;height:30;padding:0 20px}a.new{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAABX1BMVEUAAAAMNBgAnzEBAAAAky8AuzIBAAAAvjEAdjIAsTEApzIArDAAqjAAty4AhSoAcTQAai4AqzAAyCoAvS8Amy8AaC0AwDEAnDEAhzIAwi4Ady8AuzMAxyoAYS8AUBUAZR4AxS4AhzUAtzMAajAAjTcAYS8AlS4BAAAAZTIDBgEAAAAAoTMAvi0ApjEAtTMAxi0AyCoAjywAvSwAszQAcS4Aci4AmjAAnjEAky0AnjMAqjQApi0AuTAAli4AqTIAgzEAgzAArTEAnjAAmDMArDQAlzMAqzUAZRkAaxoAbhoAYx4BSxYBTBgAsDMAxysAxisArjQBAAAAky4BAAABAAAAdzQBAAAAfDYAnTAAjSsAySoAvDEAwTAAkCwAojEAmi8AlC4AsjIAujMAqTMAxS4AxywAvjEAnzAAly4AtzMAwy8ArTMAmC8AwSsAiioAtTMApTEAky0AhCwAfiwAiSp827BQAAAAWHRSTlMABN1F8RIyMBIN/vLy8Eoy+Pfj397X0tLCwsHAsKWhgnd2dnVdWkUwFxEJ+Pj39fX19PHw8O/u5+fj4uLe3dbT0tG/sK+lpJSSkIF8amFgYFpKQjs1MCAXHLGCHQAAAV5JREFUKM+FklVzwzAQhNNAw9wwM5SZmZnbpHYVO7bjxHYb/P/Tk+Nxk5f2e9m7XWlO0kjzDxPmu6iH4zzRe/PEqG9ILnwozCcNv74xxHLc0OdYIWRUfT8pQPIFsKxAkn4lMUQaJMmyM/HLi/Ml8BtExCDPTdeJRoMU7M/lcslLkgRRb6XxCcxzrToBkX0SFnkJ7LeX8ZZbmm7jSA526mDTNP0AwYlI026b1bpdgODQarO5aVE8g2CLES3xR51OV4LmBfSaYZg9qC0MgxKgKvkOY5kFRajDJ0bfwYE6aBp0E6HK1VjAIxQAPeZ5fk2r1QbeoDmCYp2vVE6hzlaG6PFxp5Qmiy+orwFqUMPoTfhJUpTUbEqSvgDNrtQEqJQ80xTsUsDizVPesUFRXaobfNfIvB5UPzFVRfadGgVnuFdV6YWxr1DMrPQH38Cgv5opjn0GUy7mc7l8sZwJ5v7JD9pHX8JdXH+sAAAAAElFTkSuQmCC)center left no-repeat;display:table;padding:0 10px 5px 30px;line-height:25px;height:25px;color:#8b0000}input[disabled],select[disabled],textarea[disabled]{opacity:.5}div.shadow{display:none;position:absolute;top:0;background-color:#fff;background-image:url(data:image/gif;base64,R0lGODlhVgAiAOfEAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQsLCwwMDA0NDQ4ODhAQEBERERISEhMTExQUFBUVFRYWFhcXFxoaGhsbGxwcHB4eHh8fHyAgICEhISIiIiMjIyQkJCUlJSYmJigoKCkpKS4uLi8vLzExMTY2Njg4ODk5OTs7Oz09PUBAQEFBQUJCQkNDQ0REREVFRUZGRkdHR0hISEpKSktLS0xMTE1NTU5OTlBQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVtbW11dXV9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2lpaWpqamtra2xsbG1tbW9vb3BwcHFxcXJycnNzc3R0dHZ2dnd3d3h4eHl5eXx8fH19fX5+fn9/f4CAgIODg4SEhIWFhYaGhoqKipCQkJOTk5SUlJWVlZaWlpiYmJmZmZqampubm56enp+fn6CgoKGhoaOjo6SkpKampqenp6mpqaqqqqurq6ysrK2tra6urq+vr7GxsbKysrS0tLW1tbe3t7m5ubq6uru7u7y8vL6+vr+/v8DAwMLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy83Nzc7Ozs/Pz9HR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb293d3d7e3t/f3+Hh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCAD/ACwAAAAAVgAiAAAI/gCJCRxIsOBAJ1QSKlzIsKHDhxAVOjFIsaJFgwAyatzIsaPHjyA5XhxJciCABSgZoFzJUiXLli9jyowJoKTNkoNMVcxZUdCpioF+Ugx6s2hJPpsqIq24p1PFPE4pQjVK1eJSilcNNn0a1eDUqmAJZi04luBWqV0Lfg0btuxAtwLPek1LcC3bqnCJ5ZWrlu5Au3eN5t3rVyDgv4UDH02KlbHWxIcNJ1Y8crDjgnzrQp5M2eplsZ8HZkbMtbPg0AIJl0ZruqhlpptXt16sFDWx0ZJlz65sWzXr37t514atW3Nwkq8p4iYWmTnn43p7217evDn01NKJA+973fNw5bG3/ncXy6lin8R9PlXUo145qPEFhfmQUMFIwV0zIlDoUVBXDP0/FIQLDBBQEERBrqTw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yBZaBFIaUhGAUhlgNSAniAJVtEWHhXQ2QsfIdAISEsgCtIgI7nQUSidBfIRFsQkECgxCHhkADEFeIRASX2UAIADWdRCWw4dYSAQIx4hQowiPB4tQgwiHjHyH0lkbFSEMANVUoFGEEgy0CQTaCTBJANFIoFGE1Bya02WSOILRaMsAqlB1YpCkSiLaKtcQAA7);background-repeat:no-repeat;background-attachment:fixed;background-position:center;opacity:.6;width:100%;height:100%}div.errorbox{position:fixed;top:30%;left:30%;right:30%;max-height:40%;padding:5px 10px;background-color:#8b0000;color:#fff;box-shadow:3px 3px 10px #000;border-radius:5px;overflow:auto}div.errshadow{position:fixed;top:0;left:0;background-color:#000;opacity:.7;width:100%;height:100%}td.close{height:24px;width:40px;background-color:#fff;color:#000;font-size:14px;cursor:pointer}div.pwc{position:relative;font-weight:400;top:10;font-size:10px;color:red} | ... | ... |
static/default.js
0 → 100644
1 | +++ a/static/default.js | |
1 | +function passwordMD5(e,t){document.getElementById(e).value.length>0?document.getElementById(t).value=md5(document.getElementById(e).value):document.getElementById(t).value="#"}function passwordChanged(e,t){var n=document.getElementById("pwmeter"),d=new RegExp(/^(?=.{10,})(?=.*[A-Z].*[A-Z])(?=.*[a-z])(?=.*[0-9].*[0-9])(?=.*\W).*$/g),a=new RegExp(/^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\W).*$/g),o=new RegExp(/^(?=.{6,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$/g),l=new RegExp(/(?=.{4,}).*/g),i=document.getElementById(e),c=document.getElementById(t);0==i.value.length?(n.className="nok",c.disabled=!0):0==l.test(i.value)?(n.className="bad",c.disabled=!0):d.test(i.value)?(n.className="perfect",c.disabled=!1):a.test(i.value)?(n.className="enough",c.disabled=!1):o.test(i.value)?(n.className="almost",c.disabled=!0):(n.className="notenough",c.disabled=!0),n.setAttribute("tag",document.getElementById(n.className).value),n.setAttribute("title",document.getElementById(n.className).value),document.getElementById("pwc").innerHTML=document.getElementById(n.className).value}var link=document.createElement("link");link.type="image/png",link.rel="shortcut icon",link.href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAC+lBMVEUAAACKyO6Yw9MeGC5glcltBAY/aaSCmLs4XZhloc9OAQE0Tn5EVX8hBQ0mUZREbqo6YZaBpdJcBgpxAAAlOmgyUIRqmb07AAA3AwRQZZ3b8vtqAgMzX5UsbbcrW6M/XV+EAACfAAFQfrZGAAA2BwtkodM5WpqJAQJuocqOweDa6e9rkKIaP4BTe7Xr+f1xlK09WZbn9/iz0eQ8XoDT5uR5pqoyUZI6VHF6t+i12e5zr9aQn8FdgYcuYqdkZmo/GhiavLcnQHKlscpamM0PIVcFFEYLG0tRXVQFCzMfS5MPMnM9fMgfP3ckSIQPL2sYKFYtX6YcMWK7AQItWJsqUI81VYguSHp5CAuhAgMsZrUZRIwwUYAlOWYJKGURKV/i5ckJHlNKV051hqolWKU/aKFAXI4YQYM9THNBUUQDCz0qSByZBAZums6Rp8fG2cBYgbA4aKtTYogsSoYSN3cZN20CBCkwSyYlRBisAwRBbrAKI1tNVUcyFyqQAwXIAADx89jl69fT48g4dcAhUp1zhIUSOHwvO1giJEY9KkMLEzphFxtNCQl+qtttlMJUhL1OfbdLdKxObp5FaJUzV5BGZDY0VCNOFyCS2Pjm9PdDerg6bbfO2629y6tkfKUqPW09UzKEBgjR6PNfrO309ufm8OdWmeFUjMvU2r2xw5sxRjg/DxwrThqo2feDy/bI5e6ryeZEhNNjhbi80rVljK640I+WtIJkd3csSHGLqWvPAAC42+WFuOSy1dOtyKuhwZhkd5ZcbZJMSmNpb19+q1xbY0BpMT1SJzQgEy4+XCnN8f254/RwufFzruSa099intsvbsBTd6J3ipBwf1WAIShxHiEcCSCKERX2/f6WxemlvNmCwM3d4bjB1p+ElZqouotdfYqsyYl2nnNValtNbTxSMyHU6NpvotCX0r13sbyUnZWhxG5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1ORksAZIK1y9LEfW/L8grFambUKHEsMzNJ0aT4HBhAbhg8HKVFop18rpww1Lfz0pN51gbTZaibEs5qLTNKbX3q35py5n5DI5hm9dvuR3s/rpDcIk5zApq5iSNtG0i52qBB+8EuJymVIhbv79tA7KOLY1yaXTyl6lKZ1KmYRTlZfjdlwmR8XNX8L/FtGwi8vQgMDSptT1yeD1QiHBnWxevrbuj7V2X8NRsYOlaVpoW3Grr/7Mgb3gtPJ3WrZ23/KGpqbm5oaNe1eC49J//UN9BEKHcc0j8sAbAAAAAElFTkSuQmCC",document.getElementsByTagName("head")[0].appendChild(link);var actual=document.URL,previous="";actual.search("/record.php")>0||actual.search("/newzone.php")>0?previous="zonelist.php":actual.search("/slave_record.php")>0||actual.search("/slave_newzone.php")>0?previous="slave_zonelist.php":actual.search("/upload.php")>0||actual.search("/chpass.php")>0||actual.search("/options.php")>0?previous="../":actual.search("/convert.php")>0?previous="upload.php":(actual.search("/user.php")>0||actual.search("/newuser.php")>0)&&(previous="userlist.php");var md5=function(e){function t(e,t){return e<<t|e>>>32-t}function n(e,t){var n,d,a,o,l;return a=2147483648&e,o=2147483648&t,n=1073741824&e,d=1073741824&t,l=(1073741823&e)+(1073741823&t),n&d?2147483648^l^a^o:n|d?1073741824&l?3221225472^l^a^o:1073741824^l^a^o:l^a^o}function d(e,t,n){return e&t|~e&n}function a(e,t,n){return e&n|t&~n}function o(e,t,n){return e^t^n}function l(e,t,n){return t^(e|~n)}function i(e,a,o,l,i,c,u){return e=n(e,n(n(d(a,o,l),i),u)),n(t(e,c),a)}function c(e,d,o,l,i,c,u){return e=n(e,n(n(a(d,o,l),i),u)),n(t(e,c),d)}function u(e,d,a,l,i,c,u){return e=n(e,n(n(o(d,a,l),i),u)),n(t(e,c),d)}function s(e,d,a,o,i,c,u){return e=n(e,n(n(l(d,a,o),i),u)),n(t(e,c),d)}function m(e){for(var t,n=e.length,d=n+8,a=(d-d%64)/64,o=16*(a+1),l=Array(o-1),i=0,c=0;n>c;)t=(c-c%4)/4,i=c%4*8,l[t]=l[t]|e.charCodeAt(c)<<i,c++;return t=(c-c%4)/4,i=c%4*8,l[t]=l[t]|128<<i,l[o-2]=n<<3,l[o-1]=n>>>29,l}function r(e){var t,n,d="",a="";for(n=0;3>=n;n++)t=e>>>8*n&255,a="0"+t.toString(16),d+=a.substr(a.length-2,2);return d}function y(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var d=e.charCodeAt(n);128>d?t+=String.fromCharCode(d):d>127&&2048>d?(t+=String.fromCharCode(d>>6|192),t+=String.fromCharCode(63&d|128)):(t+=String.fromCharCode(d>>12|224),t+=String.fromCharCode(d>>6&63|128),t+=String.fromCharCode(63&d|128))}return t}var A,g,p,v,E,f,h,k,B,w=Array(),I=7,C=12,b=17,S=22,L=5,F=9,R=14,U=20,M=4,O=11,q=16,K=23,J=6,N=10,x=15,D=21;for(e=y(e),w=m(e),f=1732584193,h=4023233417,k=2562383102,B=271733878,A=0;A<w.length;A+=16)g=f,p=h,v=k,E=B,f=i(f,h,k,B,w[A+0],I,3614090360),B=i(B,f,h,k,w[A+1],C,3905402710),k=i(k,B,f,h,w[A+2],b,606105819),h=i(h,k,B,f,w[A+3],S,3250441966),f=i(f,h,k,B,w[A+4],I,4118548399),B=i(B,f,h,k,w[A+5],C,1200080426),k=i(k,B,f,h,w[A+6],b,2821735955),h=i(h,k,B,f,w[A+7],S,4249261313),f=i(f,h,k,B,w[A+8],I,1770035416),B=i(B,f,h,k,w[A+9],C,2336552879),k=i(k,B,f,h,w[A+10],b,4294925233),h=i(h,k,B,f,w[A+11],S,2304563134),f=i(f,h,k,B,w[A+12],I,1804603682),B=i(B,f,h,k,w[A+13],C,4254626195),k=i(k,B,f,h,w[A+14],b,2792965006),h=i(h,k,B,f,w[A+15],S,1236535329),f=c(f,h,k,B,w[A+1],L,4129170786),B=c(B,f,h,k,w[A+6],F,3225465664),k=c(k,B,f,h,w[A+11],R,643717713),h=c(h,k,B,f,w[A+0],U,3921069994),f=c(f,h,k,B,w[A+5],L,3593408605),B=c(B,f,h,k,w[A+10],F,38016083),k=c(k,B,f,h,w[A+15],R,3634488961),h=c(h,k,B,f,w[A+4],U,3889429448),f=c(f,h,k,B,w[A+9],L,568446438),B=c(B,f,h,k,w[A+14],F,3275163606),k=c(k,B,f,h,w[A+3],R,4107603335),h=c(h,k,B,f,w[A+8],U,1163531501),f=c(f,h,k,B,w[A+13],L,2850285829),B=c(B,f,h,k,w[A+2],F,4243563512),k=c(k,B,f,h,w[A+7],R,1735328473),h=c(h,k,B,f,w[A+12],U,2368359562),f=u(f,h,k,B,w[A+5],M,4294588738),B=u(B,f,h,k,w[A+8],O,2272392833),k=u(k,B,f,h,w[A+11],q,1839030562),h=u(h,k,B,f,w[A+14],K,4259657740),f=u(f,h,k,B,w[A+1],M,2763975236),B=u(B,f,h,k,w[A+4],O,1272893353),k=u(k,B,f,h,w[A+7],q,4139469664),h=u(h,k,B,f,w[A+10],K,3200236656),f=u(f,h,k,B,w[A+13],M,681279174),B=u(B,f,h,k,w[A+0],O,3936430074),k=u(k,B,f,h,w[A+3],q,3572445317),h=u(h,k,B,f,w[A+6],K,76029189),f=u(f,h,k,B,w[A+9],M,3654602809),B=u(B,f,h,k,w[A+12],O,3873151461),k=u(k,B,f,h,w[A+15],q,530742520),h=u(h,k,B,f,w[A+2],K,3299628645),f=s(f,h,k,B,w[A+0],J,4096336452),B=s(B,f,h,k,w[A+7],N,1126891415),k=s(k,B,f,h,w[A+14],x,2878612391),h=s(h,k,B,f,w[A+5],D,4237533241),f=s(f,h,k,B,w[A+12],J,1700485571),B=s(B,f,h,k,w[A+3],N,2399980690),k=s(k,B,f,h,w[A+10],x,4293915773),h=s(h,k,B,f,w[A+1],D,2240044497),f=s(f,h,k,B,w[A+8],J,1873313359),B=s(B,f,h,k,w[A+15],N,4264355552),k=s(k,B,f,h,w[A+6],x,2734768916),h=s(h,k,B,f,w[A+13],D,1309151649),f=s(f,h,k,B,w[A+4],J,4149444226),B=s(B,f,h,k,w[A+11],N,3174756917),k=s(k,B,f,h,w[A+2],x,718787259),h=s(h,k,B,f,w[A+9],D,3951481745),f=n(f,g),h=n(h,p),k=n(k,v),B=n(B,E);var Q=r(f)+r(h)+r(k)+r(B);return Q.toLowerCase()};window.addEventListener("load",function(){function e(e){document.getElementById(e).disabled=!0,document.getElementById(e+"_domain").disabled=!0}function t(e){document.getElementById(e).disabled=!1,document.getElementById(e+"_domain").disabled=!1,"sel"==e?document.getElementById(e).focus():document.getElementById(e+"_domain").focus()}for(var n=document.body.getElementsByTagName("*"),d=0;d<n.length;d++){var a=n[d];if("reload"==a.id)!function l(e){setTimeout(function(){--e,document.getElementById("counter").className="attention",document.getElementById("counter").innerHTML=e,e?l(e):location.href="../"},1e3)}(10);else if("commitlink"==a.id)document.getElementById("commitlink").addEventListener("click",function(){document.getElementById("wait").style.display="block"});else if("commitable"==a.id){var o=document.createElement("link");o.type="image/png",o.rel="shortcut icon",o.href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAC+lBMVEUAAAADnE0EkEcOYTAFpVLomKOCLiUGg0HDY2qQRj54Oy89JRnWhIGCQz8gKRiFWFCjSUHInJiXZVqVS0GETUSqaGe4h3/MX167TUfYo6/lp6yJYGn53OEAUSjouMOWMycBhUGOQD7MdXnJQkJaPlGmcXUCajRsKyPOgo6GNikIKhUAbjaaMCgARSKoNCubZ2MARCKbQTpsVE6vLyjKV1fw2t8pNR0AMxkCRCDme4HEWFWnfYXGaWr+5+z96e7LqaO3TE+WVkP+6e7DNTIYTDP4x82xSkX05vP1s73nv86lp8dXIA92HA9FFgVMFQZtGw4Fdjo0FQQAzGUiGkoNTylUTVk8M0xdJBUBvV6gVU55KR09FgQiGkOzSD6GOjCkOCxKIRHg5fEpIlWyWFSbOi9qJhkqFQOFc3ssJEq5QDiKNilfLiCWKBxmGAlVFwixTkh7MSqOJRh+IBObncDMdnS7cG3La2hcT1uXTkWKQjfENTGRP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ooIc1+q3c2BgFiAr5OmZTxQAStBUqhgKldZcvJCeSBcnFUqwWBwOa7Q9fGyqlUxu9QPa5neLzqPwhGufPCrZvMKttLa2zqoONmnoaFwinZckwaILMQR//f3DJ8jkOPMA/HYuoeOwGDoYwZPaiNBxVFmMyiyaKQoNRsArlOBwGPAq1t+/ciIujrwTFLBEFiLGYiUIEOAp+oauk1afzWdxOdyQEDBFcSI9ybyjin44PNDaGtcaR34UbBJLCnEhPk8/61ktR3CrudXV1Vw7NQL9RwpZJEVy6/6OrZmZmQMDcTITPTEkOGjts056Nss1LUoOR8oVMmk0JkImC82zzBNRPO7v2DGLuC5Vo3RB2jee5QezfP26s9rOTqNB0BEoGu306dOhkfp2D2AHylQLeZF5VSyz/zkEJ0t1SxVTRkeEhjJpp2lMnj7vodmfaYuSifQi5ufrn+cHKVZaMls4TFlkHpOeGKoOjSzUO5j9Hk46nlEUiXjt5X86K1s5Lkdx7JgoS1mkLBTFDOUxPTK3PrzORYgoMuGitXPm/6wYPq9Jq9Rqy0hLlJpGQ2k8Mj1orCiKKHHRG47m5V8E8fKHdhomIOQxUbTT72w9LWBI7V5Z6wjSv6jmu/m8tojJBI2s4rg4Z7u+vX6xG1j9X8lqvpujz8qVK9euX/yyG/jL9b/+Q/0OIu1J/FMCULgAAAAASUVORK5CYII=",document.getElementsByTagName("head")[0].appendChild(o)}else a.id.search("doitlink")>0?document.getElementById(a.id).addEventListener("click",function(){document.getElementById("wait").style.display="block"}):"choose"==a.id?(document.getElementById("file").addEventListener("click",function(){e("txt"),e("sel"),t("fil")}),document.getElementById("text").addEventListener("click",function(){e("fil"),e("sel"),t("txt")}),document.getElementById("sel").addEventListener("change",function(){var e=document.getElementById("sel").value;"- select file -"==e&&(e=""),document.getElementById("sel_domain").value=e}),document.getElementById("list").addEventListener("click",function(){e("fil"),e("txt"),t("sel")}),e("fil"),e("txt"),e("sel")):"password"==a.id?(document.getElementById("normal").addEventListener("submit",function(){passwordMD5("password","pwmd5")}),window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;13==t&&document.getElementById("submit").click()})):"pass1"==a.id?(document.getElementById("new").addEventListener("submit",function(){passwordMD5("pass1","pwmd5n")}),window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;13==t&&document.getElementById("submit").click(),passwordChanged("pass1","pass2")})):"pass_o"==a.id?(document.getElementById("chg").addEventListener("submit",function(){passwordMD5("pass_n1","pwmd5n"),passwordMD5("pass_o","pwmd5")}),window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;13==t&&document.getElementById("submit").click(),passwordChanged("pass_n1","pass_n2")})):"pass2"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;13==t&&document.getElementById("submit").click(),alfa=document.getElementById("pass1").value,beta=document.getElementById("pass2").value,need=document.getElementById("notempty").value,alfa==beta&&("0"==need||beta.length>0)?document.getElementById("submit").disabled=!1:document.getElementById("submit").disabled=!0}):"pass_n2"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;13==t&&document.getElementById("submit").click(),alfa=document.getElementById("pass_n1").value,beta=document.getElementById("pass_n2").value,alfa==beta&&beta.length>0?document.getElementById("submit").disabled=!1:document.getElementById("submit").disabled=!0}):"nofile"==a.id?document.getElementById("list").disabled=!0:"close"==a.id?document.getElementById("close").addEventListener("click",function(){document.getElementById("errorbox").style.display="none",document.getElementById("errshadow").style.display="none"}):"cancel"==a.id?(window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;27==t&&document.getElementById("cancel").click()}),document.getElementById("cancel").addEventListener("click",function(){location.href=previous})):"prev"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;37==t&e.ctrlKey&&document.getElementById("prev").click()}):"next"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;39==t&e.ctrlKey&&document.getElementById("next").click()}):"first"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;38==t&e.ctrlKey&&document.getElementById("first").click()}):"last"==a.id?window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;40==t&e.ctrlKey&&document.getElementById("last").click()}):"new"==a.id&&window.addEventListener("keyup",function(e){e||(e=event);var t=e.keyCode;45==t&&document.getElementById("new").click()})}});var RecaptchaOptions={theme:"white"}; | ... | ... |
templates/accessdenied.tpl
0 → 100644
1 | +++ a/templates/accessdenied.tpl | |
1 | +<div class=clear><div class=main><p> | |
2 | +<h4>A general error has occurred.</h4> | |
3 | +<strong>Reason:</strong> | |
4 | +{if $reason}{$reason} | |
5 | +{else}Perhaps you are trying to view a page that you are not allowed to view, or that one of the filters has detected an injection attack. If you are seeing this message, there's a good chance we haven't written a decent error message yet. | |
6 | +{/if} | |
7 | +</p></div></div> | ... | ... |
templates/chpass.tpl
0 → 100644
1 | +++ a/templates/chpass.tpl | |
1 | +<div class=clear><div class=main><h4>Edit your password:</h4> | |
2 | +<table width=580> | |
3 | +<tr> | |
4 | +<td width=120 align=right>Old password:</td> | |
5 | +<td> | |
6 | +<input class=form-field type=password name=password_oldx id=pass_o tabindex=1 autofocus></td> | |
7 | +<th width=180>Password quality meter<div class=pwc id=pwc>Cannot be empty!</div></th> | |
8 | +</tr> | |
9 | +<tr> | |
10 | +<td width=120 align=right>New password:</td> | |
11 | +<td><input class=form-field type=password name=pass1 id=pass_n1 tabindex=2 ></td> | |
12 | +<td rowspan=2 id=pwmeter class=nok width=180 title="Cannot be empty!" alt="Cannot be empty!"></tr> | |
13 | +<tr> | |
14 | +<td width=120 align=right>Confirm it:</td> | |
15 | +<td><input class=form-field type=password name=pass2 id=pass_n2 tabindex=3 disabled></td> | |
16 | +</tr> | |
17 | +</table> | |
18 | +<form name=chg id=chg method="post" action="{$src}savepass.php"><input type=hidden id=pwmd5 name=password_old><input type=hidden id=pwmd5n name=password_one> | |
19 | +<div class=submit><input class=submit-button type=submit name=Submit value="Save" id=submit tabindex=4 disabled> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
20 | +</form> | |
21 | +<input type=hidden name=bad id=bad value="The password is too short"> | |
22 | +<input type=hidden name=nok id=nok value="Cannot be empty!"> | |
23 | +<input type=hidden name=notenough id=notenough value="Need to be longer!"> | |
24 | +<input type=hidden name=almost id=almost value="Need to be complex and/or longer!"> | |
25 | +<input type=hidden name=enough id=enough value="Complexity is fair"> | |
26 | +<input type=hidden name=perfect id=perfect value="Complexity is perfect"> | |
27 | +</div></div> | ... | ... |
templates/commit.tpl
0 → 100644
templates/commitdone.tpl
0 → 100644
templates/deleteuser.tpl
0 → 100644
1 | +++ a/templates/deleteuser.tpl | |
1 | +<div class=clear><div class=main><p>Please confirm that you wish to delete the user <strong>{$user.realname} ({$user.username}).</strong></p> | |
2 | +<p> | |
3 | +Any current zone ownership will reset to the main admin user. | |
4 | +</p> | |
5 | +<p> | |
6 | +<a class=attention href="{$src}userlist.php?i={$user.id}&delete=y">Yes</a> - <a href="{$src}userlist.php">No</a>. | |
7 | +</p></div></div> | ... | ... |
templates/deletezone.tpl
0 → 100644
1 | +++ a/templates/deletezone.tpl | |
1 | +<div class=clear><div class=main><p>Please confirm that you wish to delete the master zone <strong>{$zone}.</strong></p> | |
2 | +<p><br /> | |
3 | +All resource records associated with this zone will be deleted. | |
4 | +</p><p><a class=attention href="{$src}zonelist.php?i={$zoneid}&delete=y">Yes</a> - <a href="{$src}zonelist.php">No</a>. | |
5 | +</p></div></div> | ... | ... |
templates/footer.tpl
0 → 100644
1 | +++ a/templates/footer.tpl | |
1 | +<div class=footer>{$footerleft}<span class=copy>{$footerright}</span></div> | |
2 | +<div class=shadow id=wait></div>{if $popuperror}<div class=errshadow id=errshadow></div><div class=errorbox id=errorbox><p><strong>Error:</strong></p><p>{$popuperror}</p><table align=center><tr><td class=close id=close>Ok</td></tr></table><p></p></div>{/if} | |
3 | +</body> | |
4 | +</html> | ... | ... |
templates/header.tpl
0 → 100644
1 | +++ a/templates/header.tpl | |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> | |
2 | +<html> | |
3 | +<head> | |
4 | +<title>{$TITLE} - {$pagetitle}</title> | |
5 | +<meta http-equiv="Content-Language" content="en"> | |
6 | +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
7 | +<link rel="stylesheet" type=text/css href="{if $sdomain}//{$sdomain}{/if}{$static}{$skin}.css" /> | |
8 | +<script src="{if $sdomain}//{$sdomain}{/if}{$static}{$skin}.js"></script> | |
9 | +</head> | |
0 | 10 | \ No newline at end of file | ... | ... |
templates/login.tpl
0 → 100644
1 | +++ a/templates/login.tpl | |
1 | +<div class=login><div class=loginform> | |
2 | +<h4>Enter your credentials:</h4> | |
3 | +<form method="post" name=login action="{if $action}{$action}{/if}" id=normal> | |
4 | +<table align=center width=400> | |
5 | +<tr> | |
6 | +<td align=right>Username:</td> | |
7 | +<td align=right><input class=form-field type=text name=username autofocus tabindex=1></td> | |
8 | +</tr> | |
9 | +</table> | |
10 | +<div class=loginend> | |
11 | +<table align=center width=400> | |
12 | +{if $recaptcha != "" } | |
13 | +<tr> | |
14 | +<td colspan=2><label for="recaptcha">Fill the captcha:</label></td> | |
15 | +</tr> | |
16 | +<tr> | |
17 | +<td align=center colspan=2 id=captchaload>{nocache}{$recaptcha}{/nocache}</td> | |
18 | +</tr> | |
19 | +{else} | |
20 | +<tr> | |
21 | +<td colspan=2><span class=whitelist>You're allowed without captcha:</span></td> | |
22 | +</tr> | |
23 | +<tr> | |
24 | +<td colspan=2 class=nocap><span class=disablestamp>don't need</span></td> | |
25 | +</tr> | |
26 | +{/if} | |
27 | +<tr> | |
28 | +<td colspan=2><hr /></td> | |
29 | +</tr> | |
30 | +<tr> | |
31 | +<td colspan=2 align=center><input type=hidden name=password id=pwmd5><input class=submit-button type=submit name=Submit value="Login" id=submit tabindex=3></td> | |
32 | +</tr> | |
33 | +</table></div></form> | |
34 | +<table align=center width=400> | |
35 | +<tr> | |
36 | +<td align=right>Password:</td> | |
37 | +<td align=right><input class=form-field type=password name=password_local id=password tabindex=2></td> | |
38 | +</tr> | |
39 | +</table> | |
40 | +</div> | |
41 | +</div> | ... | ... |
templates/logout.tpl
0 → 100644
1 | +++ a/templates/logout.tpl | ... | ... |
templates/main.tpl
0 → 100644
1 | +++ a/templates/main.tpl | |
1 | +{include file="header.tpl"}<body> | |
2 | +<div class=title>{$TITLE}</div> | |
3 | +<div class=section><p>{$pagetitle}</p></div>{include file="menu.tpl"}{include file=$template} | |
4 | +<div class=hint><p>{$help}</p></div> | |
5 | +{if $loggedinuser}<div class=loggeduser>Logged in as: <strong>{$loggedinuser}</strong></div>{/if}{include file="footer.tpl"} | ... | ... |
templates/mainpage.tpl
0 → 100644
1 | +++ a/templates/mainpage.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +<p><strong>Welcome, {$user}.</strong> | |
3 | +{if $admin == "yes"} (You have administrator privileges){/if}</p> | |
4 | +{if $status == 0}DNS Service is <b>running</b>.{/if} | |
5 | +{if $status == 1}DNS Service is <b><span class=attention>stopped</span></b>.{/if} | |
6 | +<p>You maintain <strong>{$zones}</strong> master zone{if $zones > 1}s{/if} and <strong>{$slave_zones}</strong> slave zone{if $slave_zones > 1}s{/if}.</p> | |
7 | +{if $bad || $bad_slaves}<h4>Zones need to be check or modify</h4><p>{if $bad}Master: {section name=i loop=$bad}<a class=attention href="{$src}record.php?i={$bad[i].id}"><b>{$bad[i].name}</b></a> {/section}<br />{/if} | |
8 | +{if $bad_slaves}Slave: {section name=i loop=$bad_slaves}<a class=attention href="{$src}slave_record.php?i={$bad_slaves[i].id}"><b>{$bad_slaves[i].name}</b></a> {/section}{/if}</p>{/if} | |
9 | +{if $comm || $comm_slaves}<h4>Zones need to be commit</h4><p>{if $comm}Master: {section name=i loop=$comm}<a class=attention href="{$src}record.php?i={$comm[i].id}"><b>{$comm[i].name}</b></a> {/section}<br />{/if} | |
10 | +{if $comm_slaves}Slave: {section name=i loop=$comm_slaves}<a class=attention href="{$src}slave_record.php?i={$comm_slaves[i].id}"><b>{$comm_slaves[i].name}</b></a> {/section}{/if}</p>{/if} | |
11 | +{if $del || $del_slaves}<h4>Zones mark as deleted</h4><p>{if $del}Master: {section name=i loop=$del}<span class=deleted><span class=attention><b>{$del[i].name}</b></span></span> {/section}<br />{/if} | |
12 | +{if $del_slaves}Slave: {section name=i loop=$del_slaves}<span class=deleted><span class=attention><b>{$del_slaves[i].name}</b></span></span> {/section}{/if}</p>{/if} | |
13 | +</div></div> | ... | ... |
templates/menu.tpl
0 → 100644
1 | +++ a/templates/menu.tpl | |
1 | +{if $menu_button}<div class=menu> | |
2 | +<p class=tag>Menu</p> | |
3 | +{section name=i loop=$menu_button} | |
4 | +{if $menu_button[i].title == "Commit changes"} | |
5 | +{if $donotcommit == "yes"}<span class=disabled>{$menu_button[i].title}<br /></span> | |
6 | +{else}<a href="{$menu_button[i].link}">{$menu_button[i].title}</a><br /> | |
7 | +{/if} | |
8 | +{elseif $menu_button[i].link != $menu_current}<a href="{$menu_button[i].link}">{$menu_button[i].title}</a><br /> | |
9 | +{else}<span class=currmenu>{$menu_button[i].title}</span><br /> | |
10 | +{/if} | |
11 | +{/section} | |
12 | +</div> | |
13 | +{/if} | |
0 | 14 | \ No newline at end of file | ... | ... |
templates/newuser.tpl
0 → 100644
1 | +++ a/templates/newuser.tpl | |
1 | +<div class=clear><div class=main><form name=form1 method="post" action="{$src}userlist.php" id=new> | |
2 | +<h4>Properties of the new user:</h4><div class=submit> | |
3 | +<input class=submit-button type=submit name=Submit value="Save" disabled id=submit tabindex=6> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel" tabindex=8></div> | |
4 | +<table width=580> | |
5 | +<tr> | |
6 | +<td align=right width=120><strong>Username:</strong></td> | |
7 | +<td><input type=text name=username_ class=form-field autofocus tabindex=1></td> | |
8 | +</tr> | |
9 | +<tr> | |
10 | +<td align=right width=120><strong>Full name:</strong></td> | |
11 | +<td><input type=text name=realname class=form-field tabindex=2></td> | |
12 | +</tr> | |
13 | +<tr> | |
14 | +<td align=right width=120><strong>Admin rights:</strong></td> | |
15 | +<td height="30"> | |
16 | +<input type=radio name=admin id=adminy value="yes" tabindex=3 /><label for="adminy">yes</label> | |
17 | +<input type=radio name=admin id=adminn value="no" checked="checked" tabindex=3 /><label for="adminn">no</label> | |
18 | +<input type=hidden name=password_ id=pwmd5n> | |
19 | +</td> | |
20 | +</tr> | |
21 | +</table></form> | |
22 | +<table width=580> | |
23 | +<tr> | |
24 | +<td align=right width=120><strong>Password:</strong></td> | |
25 | +<td><input type=password name=password_one class=form-field id=pass1 tabindex=4></td> | |
26 | +<th width=180>Password quality meter<div class=pwc id=pwc>Cannot be empty!</div></th> | |
27 | +</tr> | |
28 | +<tr> | |
29 | +<td align=right width=120><strong>Confirm it:</strong></td> | |
30 | +<td><input type=password name=confirm_password class=form-field id=pass2 disabled tabindex=5></td> | |
31 | +<td rowspan=2 id=pwmeter class=nok width=180 title="Cannot be empty!" alt="Cannot be empty!"> | |
32 | +<input type=hidden name=bad id=bad value="The password is too short"> | |
33 | +<input type=hidden name=nok id=nok value="Cannot be empty!"> | |
34 | +<input type=hidden name=notenough id=notenough value="Need to be longer!"> | |
35 | +<input type=hidden name=almost id=almost value="Need to be complex and/or longer!"> | |
36 | +<input type=hidden name=enough id=enough value="Complexity is fair"> | |
37 | +<input type=hidden name=perfect id=perfect value="Complexity is perfect"> | |
38 | +<input type=hidden name=notempty id=notempty value=1> | |
39 | +</td> | |
40 | +</tr> | |
41 | +<tr> | |
42 | +<td colspan=2 height=30></td> | |
43 | +</tr> | |
44 | +</table> | |
45 | +</div></div> | ... | ... |
templates/newzone.tpl
0 → 100644
1 | +++ a/templates/newzone.tpl | |
1 | +<form name=form1 method="post" action="{$src}zonelist.php"> | |
2 | +<div class=clear><div class=main><h4>Properties of the new master zone:</h4> | |
3 | +<table> | |
4 | +<tr> | |
5 | +<td align=right><strong>Zone:</strong></td> | |
6 | +<td><input type=text name=name class=form-field autofocus></td> | |
7 | +</tr> | |
8 | +<tr> | |
9 | +<td align=right><strong>Refresh:</strong></td> | |
10 | +<td><input type=text name=refresh class=form-field value="86400"></td> | |
11 | +</tr> | |
12 | +<tr> | |
13 | +<td align=right><strong>Retry:</strong></td> | |
14 | +<td><input type=text name=retry class=form-field value="7200"></td> | |
15 | +</tr> | |
16 | +<tr> | |
17 | +<td align=right><strong>Expire:</strong></td> | |
18 | +<td><input type=text name=expire class=form-field value="3600000"></td> | |
19 | +</tr> | |
20 | +<tr> | |
21 | +<td align=right><strong>Time To Live:</strong></td> | |
22 | +<td><input type=text name=ttl class=form-field value="300"></td> | |
23 | +</tr> | |
24 | +<tr> | |
25 | +<td align=right><strong>Primary NS:</strong></td> | |
26 | +<td><input type=text name=pri_dns class=form-field value="{$pri_dns}"></td> | |
27 | +</tr> | |
28 | +<tr> | |
29 | +<td align=right><strong>Secondary NS:</strong></td> | |
30 | +<td><input type=text name=sec_dns class=form-field value="{$sec_dns}"></td> | |
31 | +</tr> | |
32 | +<tr> | |
33 | +<td align=right><strong>Web Server:</strong></td> | |
34 | +<td><input type=text name=www class=form-field value=""></td> | |
35 | +</tr> | |
36 | +<tr> | |
37 | +<td align=right><strong>Mail Server:</strong></td> | |
38 | +<td><input type=text name=mail class=form-field value=""></td> | |
39 | +</tr> | |
40 | +<tr> | |
41 | +<td align=right><strong>FTP Server:</strong></td> | |
42 | +<td><input type=text name=ftp class=form-field value=""></td> | |
43 | +</tr> | |
44 | +<tr> | |
45 | +<td colspan=2><hr /></td> | |
46 | +</tr> | |
47 | +<tr> | |
48 | +<td align=right><strong>Owner: </strong></td> | |
49 | +<td><select name=owner class=form-field> | |
50 | +{section name=i loop=$userlist} | |
51 | +<option value="{$userlist[i].id}" {if $current_user == $userlist[i].id}selected{/if}>{$userlist[i].realname}</option> | |
52 | +{/section} | |
53 | +</select> | |
54 | +</td> | |
55 | +</tr> | |
56 | +</table></div></div> | |
57 | +<div class=submit><input class=submit-button type=submit name=Submit value="Add zone"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
58 | +</form> | ... | ... |
templates/optionsread.tpl
0 → 100644
1 | +++ a/templates/optionsread.tpl | |
1 | +<form name=form1 method="post" action="{$src}options.php"> | |
2 | +<div class=clear><div class=main> | |
3 | +<h4>Record Types</h4> | |
4 | +<table style="min-width:600"> | |
5 | +{section name=x loop=$records} | |
6 | +<tr> | |
7 | +{section name=y loop=$records[x]} | |
8 | +<td> | |
9 | +<input type=checkbox id={$records[x][y].prefkey} name={$records[x][y].prefkey} {if $records[x][y].prefval == "on"}checked{/if} /> | |
10 | +<label for="{$records[x][y].prefkey}" name={$records[x][y].prefkey}_lbl>{$records[x][y].prefkey}</label> | |
11 | +</td> | |
12 | +{/section} | |
13 | +</tr> | |
14 | +{/section} | |
15 | +</table> | |
16 | +<table> | |
17 | +<tr><td colspan=2><hr /></td></tr> | |
18 | +{section name=prefkey loop=$options} | |
19 | +<tr> | |
20 | +<td align=right> | |
21 | +{if $options[prefkey].prefkey == "hostmaster"}Site Hostmaster Address:{/if} | |
22 | +{if $options[prefkey].prefkey == "range"}Items Per Page:{/if} | |
23 | +{if $options[prefkey].prefkey == "prins"}Default Primary NS:{/if} | |
24 | +{if $options[prefkey].prefkey == "secns"}Default Secondary NS:{/if} | |
25 | +{if $options[prefkey].prefkey == "master"}Default master for slaves:{/if} | |
26 | +</td> | |
27 | +<td><input class=form-field type=text size="35" name={$options[prefkey].prefkey} value="{$options[prefkey].prefval}" {if $options[prefkey].prefkey == "hostmaster"}autofocus{/if}></td> | |
28 | +</tr> | |
29 | +{/section} | |
30 | +</table> | |
31 | +</div></div> | |
32 | +<div class=submit><input class=submit-button type=submit name=Submit value="Save"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
33 | +</form> | ... | ... |
templates/pages.tpl
0 → 100644
1 | +++ a/templates/pages.tpl | |
1 | +{if $pages} | |
2 | +<div class=pages> | |
3 | +<table> | |
4 | +<tr> | |
5 | +<td class=pages>Paging:</td> | |
6 | +{foreach name=pages from=$pages item=page} | |
7 | +{if $smarty.foreach.pages.first} | |
8 | +{if $current_page == $page} | |
9 | +<td class=firstno> </td> | |
10 | +<td class=prevno> </td> | |
11 | +{else} | |
12 | +<td class=first><a class=first id=first href="{$page_root}page={$page}" alt="First page" title="First page"> </a></td> | |
13 | +<td class=prev><a class=prev id=prev href="{$page_root}page={math equation="$current_page - 1"}" alt="Previous page" title="Previous page"> </a></td> | |
14 | +{/if} | |
15 | +{/if} | |
16 | +{if $current_page == $page} | |
17 | +<td class="pages actualpage">{$page}</td> | |
18 | +{else} | |
19 | +<td class=pages><a href="{$page_root}page={$page}" alt="Go to {$page} page" title="Go to {$page}. page">{$page}</a></td> | |
20 | +{/if} | |
21 | +{if $smarty.foreach.pages.last} | |
22 | +{if $current_page == $page} | |
23 | +<td class=nextno> </td> | |
24 | +<td class=lastno> </td> | |
25 | +{else} | |
26 | +<td class=next><a class=next id=next href="{$page_root}page={math equation="$current_page + 1"}" alt="Next page" title="Next page"> </a></td> | |
27 | +<td class=last><a class=last id=last href="{$page_root}page={$page}" alt="Last page" title="Last page"> </a></td> | |
28 | +{/if} | |
29 | +{/if} | |
30 | +{/foreach} | |
31 | +</tr> | |
32 | +</table> | |
33 | +</div> | |
34 | +{/if} | ... | ... |
templates/recordread.tpl
0 → 100644
1 | +++ a/templates/recordread.tpl | |
1 | +<form name=form1 method="post" action="{$src}record.php?i={$zone.id}"> | |
2 | +<div class=clear><div class=main> | |
3 | +<h4>Edit zone records</h4> | |
4 | +<table style="min-width:820"> | |
5 | +<tr> | |
6 | +<td><strong>New:</strong></td> | |
7 | +<td><input type=text name=newhost class=form-field size="16" autofocus></td> | |
8 | +<td><input type=text name=newttl class=form-field size="1"></td> | |
9 | +<td><select name=newtype class=form-field> | |
10 | +{html_options values=$types output=$types} | |
11 | +</select></td> | |
12 | +<td><input type=text name=newdestination class=form-field size="32"></td> | |
13 | +</tr> | |
14 | +<tr> | |
15 | +<td colspan=5><hr /></td> | |
16 | +</tr> | |
17 | +</table> | |
18 | +<table style="min-width:820"> | |
19 | +<tr> | |
20 | +<td align=right><strong>Zone:</strong></td> | |
21 | +<td class=highlight>{$zone.name}</td> | |
22 | +<td align=right><strong>Serial:</strong></td> | |
23 | +<td>{$zone.serial}</td> | |
24 | +</tr> | |
25 | +<tr> | |
26 | +<td align=right><strong>Refresh:</strong></td> | |
27 | +<td><input type=text name=refresh size="28" class=form-field value="{$zone.refresh}"></td> | |
28 | +<td align=right><strong>Retry:</strong></td> | |
29 | +<td><input type=text name=retry size="28" class=form-field value="{$zone.retry}"></td> | |
30 | +</tr> | |
31 | +<tr> | |
32 | +<td align=right><strong>Expire:</strong></td> | |
33 | +<td><input type=text name=expire size="28" class=form-field value="{$zone.expire}"></td> | |
34 | +<td align=right><strong>TTL:</strong></td> | |
35 | +<td><input type=text name=ttl size="28" class=form-field value="{$zone.ttl}"></td> | |
36 | +</tr> | |
37 | +<tr> | |
38 | +<td align=right><strong>NS1:</strong></td> | |
39 | +<td><input type=text name=pri_dns size="28" class=form-field value="{$zone.pri_dns}"></td> | |
40 | +<td align=right><strong>NS2:</strong></td> | |
41 | +<td><input type=text name=sec_dns size="28" class=form-field value="{$zone.sec_dns}"></td> | |
42 | +</tr> | |
43 | +{if $admin == "yes"} | |
44 | +<tr> | |
45 | +<td align=right><strong>Owner:</strong></td> | |
46 | +<td align=left><select name=owner class=form-field> | |
47 | +{section name=i loop=$userlist} | |
48 | +<option value="{$userlist[i].id}"{if $userlist[i].id == $zone.owner} selected{/if}>{$userlist[i].realname}</option> | |
49 | +{/section} | |
50 | +</select> | |
51 | +</td> | |
52 | +<td align=right><strong>Secure:</strong></td> | |
53 | +<td align=left>{if $sec == "yes"}<select name=secured class=form-field> | |
54 | +<option value="yes"{if $zone.secured == "yes"} selected{/if}>yes</option> | |
55 | +<option value="no"{if $zone.secured == "no"} selected{/if}>no</option> | |
56 | +</select>{else}{$zone.secured}{/if} | |
57 | +</td> | |
58 | +</tr> | |
59 | +{/if} | |
60 | +</table> | |
61 | +<input type=hidden name=zone value="{$zone.name}"> | |
62 | +<input type=hidden name=zoneid value="{$zone.id}"> | |
63 | +{if $rcount > 0} | |
64 | +<table style="min-width:780"> | |
65 | +<tr> | |
66 | +<th>Host</th> | |
67 | +<th>TTL</th> | |
68 | +<th>Type</th> | |
69 | +<th colspan=2>Destination</th> | |
70 | +<th>Delete</th> | |
71 | +</tr> | |
72 | +{section name=i loop=$record} | |
73 | +<tr> | |
74 | +<td> | |
75 | +<input type=text name=host[{$smarty.section.i.index}] class=form-field value="{$record[i].host}" size="16"> | |
76 | +<input type=hidden name=host_id[{$smarty.section.i.index}] value="{$record[i].id}"> | |
77 | +</td> | |
78 | +<td> | |
79 | +<input type=text name=rttl[{$smarty.section.i.index}] class=form-field value="{$record[i].ttl}" size="1"> | |
80 | +</td> | |
81 | +<td><select name=type[{$smarty.section.i.index}] class=form-field> | |
82 | +{html_options values=$types selected=$record[i].type output=$types} | |
83 | +</select></td> | |
84 | +{if $record[i].type == "MX"} | |
85 | +<td> | |
86 | +<input type=text name=pri[{$smarty.section.i.index}] class=form-field size="1" maxlength="3" value="{$record[i].pri}"> | |
87 | +</td><td> | |
88 | +<input type=text name=destination[{$smarty.section.i.index}] class=form-field size="25" value="{$record[i].destination}"> | |
89 | +</td> | |
90 | +{else} | |
91 | +<td colspan=2> | |
92 | +<input type=text name=destination[{$smarty.section.i.index}] class=form-field size="33" value="{$record[i].destination}"> | |
93 | +</td> | |
94 | +{/if} | |
95 | +<td align=center><input type=checkbox name=delete[{$smarty.section.i.index}] id=delete[{$smarty.section.i.index}]><label for="delete[{$smarty.section.i.index}]" name=delete[{$smarty.section.i.index}]_lbl> </label></td> | |
96 | +</tr> | |
97 | +{/section} | |
98 | +</table>{else}<p>There are no other records in this zone at the moment.</p>{/if} | |
99 | +<input type=hidden name=total value="{$smarty.section.i.total}"> | |
100 | +</div></div> | |
101 | +<div class=submit><input class=submit-button type=submit name=Submit value="Save"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
102 | +</form> | |
103 | +{include file="pages.tpl"} | ... | ... |
templates/savepass.tpl
0 → 100644
templates/slave_deletezone.tpl
0 → 100644
1 | +++ a/templates/slave_deletezone.tpl | |
1 | +<div class=clear><div class=main><p>Please confirm that you wish to delete the slave zone <strong>{$zone}.</strong></p> | |
2 | +<p><br /> | |
3 | +All resource records associated with this zone will be deleted. | |
4 | +</p> | |
5 | +<p> | |
6 | +<a class=attention href="{$src}slave_zonelist.php?i={$zoneid}&delete=y">Yes</a> - <a href="{$src}slave_zonelist.php">No</a>. | |
7 | +</p></div></div> | ... | ... |
templates/slave_newzone.tpl
0 → 100644
1 | +++ a/templates/slave_newzone.tpl | |
1 | +<form name=form1 method="post" action="{$src}slave_zonelist.php"> | |
2 | +<div class=clear><div class=main><h4>Properties of the new slave zone:</h4> | |
3 | +<table> | |
4 | +<tr> | |
5 | +<td align=right><strong>Zone:</strong></td> | |
6 | +<td><input type=text name=name class=form-field autofocus></td> | |
7 | +</tr> | |
8 | +<tr> | |
9 | +<td align=right><strong>Master:</strong></td> | |
10 | +<td><input type=text name=master class=form-field value="{$master}"></td> | |
11 | +</tr> | |
12 | +<tr> | |
13 | +<td colspan=2><hr /></td> | |
14 | +</tr> | |
15 | +<tr> | |
16 | +<td align=right><strong>Owner: </strong></td> | |
17 | +<td><select name=owner class=form-field> | |
18 | +{section name=i loop=$userlist} | |
19 | +<option value="{$userlist[i].id}" {if $current_user == $userlist[i].id}selected{/if}>{$userlist[i].realname}</option> | |
20 | +{/section} | |
21 | +</select> | |
22 | +</td> | |
23 | +</tr> | |
24 | +</table></div></div> | |
25 | +<div class=submit><input class=submit-button type=submit name=Submit value="Add zone"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
26 | +</form> | ... | ... |
templates/slave_recordread.tpl
0 → 100644
1 | +++ a/templates/slave_recordread.tpl | |
1 | +<form name=form1 method="post" action="{$src}slave_zonelist.php?i={$zone.id}"> | |
2 | +<div class=clear><div class=main><h4>Edit properties of the slave zone:</h4> | |
3 | +<table> | |
4 | +<tr> | |
5 | +<td align=right><strong>Zone:</strong></td> | |
6 | +<td class=highlight>{$zone.name}</td> | |
7 | +</tr> | |
8 | +<tr> | |
9 | +<td align=right><strong>Master:</strong></td> | |
10 | +<td><input type=text name=master size="25" class=form-field value="{$zone.master}"></td> | |
11 | +</tr> | |
12 | +{if $admin == "yes"} | |
13 | +<tr> | |
14 | +<td align=right><strong>Owner:</strong></td> | |
15 | +<td align=left><select name=owner class=form-field> | |
16 | +{section name=i loop=$userlist} | |
17 | +<option value="{$userlist[i].id}"{if $userlist[i].id == $zone.owner} selected{/if}>{$userlist[i].realname}</option> | |
18 | +{/section} | |
19 | +</select> | |
20 | +</td> | |
21 | +</tr> | |
22 | +{/if} | |
23 | +</table> | |
24 | +<input type=hidden name=name value="{$zone.name}"> | |
25 | +</div></div> | |
26 | +<div class=submit><input class=submit-button type=submit name=Submit value="Save"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
27 | +</form> | ... | ... |
templates/slave_zoneread.tpl
0 → 100644
1 | +++ a/templates/slave_zoneread.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +{if $admin == 'yes'}<p><a class=new id=new href="{$src}slave_newzone.php">Create a new slave zone</a></p>{else}<h4>List of your slave zones</h4>{/if} | |
3 | +{if $zonelist}<table style="min-width:500"> | |
4 | +<tr> | |
5 | +<th>Name</th> | |
6 | +<th>Master</th> | |
7 | +<th>Changed</th> | |
8 | +<th> </th> | |
9 | +<th colspan=2>Valid</th> | |
10 | +<th> </th> | |
11 | +<th colspan=2>Action</th> | |
12 | +</tr> | |
13 | +{section name=i loop=$zonelist} | |
14 | +<tr> | |
15 | +<td>{$zonelist[i].name}</td> | |
16 | +<td>{$zonelist[i].master}</td> | |
17 | + | |
18 | +{if $zonelist[i].updated == "yes"}<td class=ok title=Yes alt=Yes> </td> | |
19 | +{elseif $zonelist[i].updated == "no"}<td class=no title=No alt=No> </td> | |
20 | +{else}<td class=some title=Unknown alt=Unknown></td> | |
21 | +{/if} | |
22 | +<td class=empty> </td> | |
23 | +{if $zonelist[i].valid == "yes"}{if $zonelist[i].updated == "no"}<td class=ok title=Yes alt=Yes> </td><td class=view><a alt="View slave zone" title="View slave zone" href="{$src}slave_zoneview.php?i={$zonelist[i].id}"> </a></td>{else}<td class=ok title=Yes alt=Yes> </td><td class=preview><a alt="preview zone" title="Preview zone" href="{$src}slave_zoneview.php?i={$zonelist[i].id}&pre=y"> </a></td>{/if} | |
24 | +{elseif $zonelist[i].valid == "no"}<td class=nok title=No alt=No></td><td class=empty></td> | |
25 | +{else}<td class=some title=Maybe alt=Maybe></td><td class=check><a id=_doitlink_{$zonelist[i].id} alt="Check zone" title="Check zone" href="{$src}slave_zonelist.php?i={$zonelist[i].id}&check=y{if $pages}&page={$current_page}{/if}"> </a></td> | |
26 | +{/if} | |
27 | +<td class=empty> </td> | |
28 | +<td class=ed><a title="Edit zone" alt="Edit zone" href="{$src}slave_record.php?i={$zonelist[i].id}"> </a></td> | |
29 | +<td class=del><a alt="Remove zone" title="Remove zone" href="{$src}slave_deletezone.php?i={$zonelist[i].id}"> </a></td> | |
30 | +</tr> | |
31 | +{/section} | |
32 | +</table>{else}<p>You don't have slave zones.</p>{/if} | |
33 | +</div></div> | |
34 | +{include file="pages.tpl"} | ... | ... |
templates/upload.tpl
0 → 100644
1 | +++ a/templates/upload.tpl | |
1 | +<form name=upl enctype=multipart/form-data action="{$src}convert.php" method="post"> | |
2 | +<div class=clear><div class=main> | |
3 | +<h4 id=choose>Import a zone file</h4> | |
4 | +<p{if $count == 0} id=nofile{/if}>Choose an import method, a file/zone (don't forget to fill the domain part).</p> | |
5 | +<table> | |
6 | +<tr> | |
7 | +<td><input type=radio name=method id=list value="list"><label for="list">Orphan files</label></td> | |
8 | +<td class=empty> | |
9 | +<td><select class=form-field id=sel name=sel> | |
10 | +{if $count == 0}<option> NOT FOUND </option>{else}<option>- select file -</option>{/if} | |
11 | +{section name=i loop=$files} | |
12 | +<option>{$files[i]}</option> | |
13 | +{/section} | |
14 | +</select> <strong>Domain: </strong><input class=form-field id=sel_domain value="" name=sel_domain></td> | |
15 | +</tr> | |
16 | +<tr> | |
17 | +<td><input type=radio name=method id=file value="file"><label for="file">Browse</label></td> | |
18 | +<td class=empty> | |
19 | +<td><strong>Domain: </strong><input class=form-field id=fil_domain value="" name=fil_domain> <input type=file class=form-field id=fil name=fil></td> | |
20 | +</tr> | |
21 | +<tr> | |
22 | +<td style="vertical-align:top;padding-top:7px;"><input type=radio name=method id=text value="text"><label for="text">Edit</label></td> | |
23 | +<td class=empty> | |
24 | +<td><strong>Domain: </strong><input class=form-field id=txt_domain value="" name=txt_domain><br /><textarea id=txt name=txt cols="100" rows="18"></textarea></td> | |
25 | +</tr> | |
26 | +</table> | |
27 | +</div></div> | |
28 | +<div class=submit><input class=submit-button type=submit name=Submit value="Upload"> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel"></div> | |
29 | +</form> | |
0 | 30 | \ No newline at end of file | ... | ... |
templates/uploadproblem.tpl
0 → 100644
1 | +++ a/templates/uploadproblem.tpl | |
1 | +<form name=rew target="{$src}--recordwrite.php" method="POST"> | |
2 | +<div class=clear><div class=main> | |
3 | +<h4>Committed zone has errors</h4> | |
4 | +<p><strong>Zone:</strong> <span class=highlight>{$zone}</span><br /> | |
5 | +<strong>Chosen method:</strong> {$method}</p><p>The zonefile is OK, but the import procedure has errors.<br />Please check it, fix it, and try again.</p> | |
6 | +<p><strong>Output:</strong></p> | |
7 | +<pre>{section name=i loop=$problem} | |
8 | +{$problem[i]} | |
9 | +{/section}</pre> | |
10 | +</div></div> | |
11 | +</form> | ... | ... |
templates/uploadreview.tpl
0 → 100644
1 | +++ a/templates/uploadreview.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +<h4>Review the imported zone</h4> | |
3 | +<p><strong>Zone:</strong> <span class=highlight>{$zone}</span><br /> | |
4 | +<strong>Chosen method:</strong> {$method}</p> | |
5 | +<p><strong>Preview your imported zone:</strong></p> | |
6 | +<textarea readonly autofocus wrap="off" cols="116" rows="30" class=ro>{section name=i loop=$output} | |
7 | +{$output[i]} | |
8 | +{/section}</textarea> | |
9 | +<p>Check and edit your imported zone between your <a href="zonelist.php" class=attention>master zones</a></p> | |
10 | +</div></div> | ... | ... |
templates/userlistread.tpl
0 → 100644
1 | +++ a/templates/userlistread.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +{if $admin == 'yes'}<p><a class=new id=new href="{$src}newuser.php">Create a new user</a></p>{/if} | |
3 | +<table style="min-width:420;"> | |
4 | +<tr> | |
5 | +<th>Username</th> | |
6 | +<th>Full name</th> | |
7 | +<th>Admin</th> | |
8 | +<th></th> | |
9 | +<th colspan=2>Action</th> | |
10 | +</tr> | |
11 | +{section name=i loop=$userlist} | |
12 | +<tr> | |
13 | +<td align=center>{$userlist[i].username}</td> | |
14 | +<td align=center>{$userlist[i].realname}</td> | |
15 | +{if $userlist[i].admin == "yes"}<td class=ok title=Yes alt=Yes> </td> | |
16 | +{elseif $userlist[i].admin == "no"}<td class=no title=No alt=No> </td> | |
17 | +{/if} | |
18 | +<td class=empty></td> | |
19 | +{if $userlist[i].username != "admin"} | |
20 | +<td class=ed><a href="{$src}user.php?i={$userlist[i].id}" title="Edit user" alt="Edit user"> </a></td> | |
21 | +<td class=del><a href="{$src}deleteuser.php?i={$userlist[i].id}" title="Delete user" alt="Delete user"> </a></td> | |
22 | +{else} | |
23 | +<td class=no title="Cannot edit" alt="Cannot edit"> </td> | |
24 | +<td class=no title="Cannot delete" alt="Cannot delete"> </td> | |
25 | +{/if} | |
26 | +</tr> | |
27 | +{/section} | |
28 | +</table> | |
29 | +</div></div> | |
30 | +{include file="pages.tpl"} | ... | ... |
templates/userread.tpl
0 → 100644
1 | +++ a/templates/userread.tpl | |
1 | +<div class=clear><div class=main><h4>Edit user's credentials:</h4> | |
2 | +<form name=form1 method="post" action="{$src}user.php?i={$user.id}" id=new> | |
3 | +<table width=580> | |
4 | +<tr> | |
5 | +<td align=right width=120><strong>Username:</strong></td> | |
6 | +<td colspan=2 class=highlight>{$user.username}</td> | |
7 | +<th width=180>Password quality meter<div class=pwc id=pwc>Won't modified!</div></th> | |
8 | +</tr> | |
9 | +<tr> | |
10 | +<td align=right width=120><strong>Full name:</strong></td> | |
11 | +<td colspan=2><input type=text name=realname class=form-field value="{$user.realname}" autofocus tabindex=1</td> | |
12 | +<td rowspan=2 id=pwmeter class=nok width=180 title="Won't modified!" alt="Won't modified!"></td> | |
13 | +</tr> | |
14 | +<tr> | |
15 | +<td align=right width=120><strong>Admin rights:</strong></td> | |
16 | +<td colspan=2 height=32 valign=bottom> | |
17 | +<input type=radio name=admin id=adminy value="yes"{if $user.admin} checked="checked" tabindex=2{/if} /><label for="adminy">yes</label> | |
18 | +<input type=radio name=admin id=adminn value="no"{if !$user.admin} checked="checked" tabindex=2{/if} /><label for="adminn">no</label><input type=hidden name=password id=pwmd5n> | |
19 | +</td> | |
20 | +</tr> | |
21 | +</table> | |
22 | +<div class=submit><input class=submit-button type=submit name=Submit value="Save" id=submit tabindex=5> <input type=button class=submit-button id=cancel value="Cancel" name ="cancel" tabindex=6></div> | |
23 | +</form> | |
24 | +<table width=580> | |
25 | +<tr> | |
26 | +<td align=right width=120><strong>New password:</strong></td> | |
27 | +<td><input type=password name=password_one class=form-field id=pass1 autofocus tabindex=3></td> | |
28 | +<td width=180></td> | |
29 | +</tr> | |
30 | +<tr> | |
31 | +<td align=right width=120><strong>Confirm it:</strong></td> | |
32 | +<td><input type=password name=confirm_password class=form-field disabled id=pass2 tabindex=4></td> | |
33 | +<td width=180></td> | |
34 | +</tr> | |
35 | +{if $success}<tr><td colspan=3><hr /></td></tr><tr><td colspan=3 align=center><span class=attention>{$success}</span></td></tr>{/if} | |
36 | +</table> | |
37 | +{if $zonelist}<table width=580><tr> | |
38 | +<td colspan=3><hr /></td> | |
39 | +</tr> | |
40 | +<tr> | |
41 | +<th colspan=3><p>Master zones owned by this user:</p></th> | |
42 | +</tr> | |
43 | +<tr> | |
44 | +<th>Name</th> | |
45 | +<th>Serial</th> | |
46 | +<th>Action</th> | |
47 | +</tr> | |
48 | +{section name=i loop=$zonelist} | |
49 | +<tr> | |
50 | +<td align=center>{$zonelist[i].name}</td> | |
51 | +<td align=center>{$zonelist[i].serial}</td> | |
52 | +<td class=ed><a href="{$src}record.php?i={$zonelist[i].id}"> </a></td> | |
53 | +</tr>{/section}</table>{/if} | |
54 | +{if $szonelist}<table width=580><tr> | |
55 | +<td colspan=3><hr /></td> | |
56 | +</tr> | |
57 | +<tr> | |
58 | +<th colspan=3><p>Slave zones owned by this user:</p></th> | |
59 | +</tr> | |
60 | +<tr> | |
61 | +<th>Name</th> | |
62 | +<th>Master</th> | |
63 | +<th>Action</th> | |
64 | +</tr> | |
65 | +{section name=i loop=$szonelist} | |
66 | +<tr> | |
67 | +<td align=center>{$szonelist[i].name}</td> | |
68 | +<td align=center>{$szonelist[i].master}</td> | |
69 | +<td class=ed><a href="{$src}slave_record.php?i={$szonelist[i].id}"> </a></td> | |
70 | +</tr>{/section}</table>{/if} | |
71 | +<input type=hidden name=bad id=bad value="The password is too short"> | |
72 | +<input type=hidden name=nok id=nok value="Won't modified!"> | |
73 | +<input type=hidden name=notenough id=notenough value="Need to be longer!"> | |
74 | +<input type=hidden name=almost id=almost value="Need to be complex and/or longer!"> | |
75 | +<input type=hidden name=enough id=enough value="Complexity is fair"> | |
76 | +<input type=hidden name=perfect id=perfect value="Complexity is perfect"> | |
77 | +<input type=hidden name=notempty id=notempty value=0> | |
78 | +</div></div> | ... | ... |
templates/zonepview.tpl
0 → 100644
1 | +++ a/templates/zonepview.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +<p><strong>Zone: <span class=highlight>{$zonename}</span></strong></p> | |
3 | +<p><strong>Type: </strong>{$zonetype}<br /><strong>Owner: </strong>{$owner}</p> | |
4 | +<textarea readonly autofocus wrap="off" cols="116" rows="30" class=ro>{if $zonedef}{$zonedef}{else}Zone cannot load{/if}</textarea> | |
5 | +</div></div> | ... | ... |
templates/zoneread.tpl
0 → 100644
1 | +++ a/templates/zoneread.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +{if $admin == 'yes'}<p><a class=new id=new href="{$src}newzone.php">Create a new master zone</a></p>{else}<h4>List of your master zones</h4>{/if} | |
3 | +{if $zonelist}<table style="min-width:600"> | |
4 | +<tr> | |
5 | +<th>Name</th> | |
6 | +<th>Serial</th> | |
7 | +<th>Changed</th> | |
8 | +<th> </th> | |
9 | +<th colspan=2>Secure</th> | |
10 | +<th> </th> | |
11 | +<th colspan=2>Valid</th> | |
12 | +<th> </th> | |
13 | +<th colspan=2>Action</th> | |
14 | +</tr> | |
15 | +{section name=i loop=$zonelist} | |
16 | +<tr> | |
17 | +<td>{$zonelist[i].name}</td> | |
18 | +<td>{$zonelist[i].serial}</td> | |
19 | + | |
20 | +{if $zonelist[i].updated == "yes"}<td class=ok title=Yes alt=Yes> </td> | |
21 | +{elseif $zonelist[i].updated == "no"}<td class=no title=No alt=No> </td> | |
22 | +{else}<td class=some title=Unknown alt=Unknown></td> | |
23 | +{/if} | |
24 | +<td class=empty> </td> | |
25 | +{if $zonelist[i].secured == "yes"}<td class=ok title=Yes alt=Yes> </td> | |
26 | +{if $zonelist[i].valid == "yes" and $zonelist[i].updated == "no"}<td class=view><a alt="View zone as secured" title="View zone as secured" href="{$src}zoneview.php?i={$zonelist[i].id}&s=1"> </a></td> | |
27 | +{else}<td class=empty></td> | |
28 | +{/if} | |
29 | +{elseif $zonelist[i].secured == "no"}<td colspan=2 class=no title=No alt=No></td> | |
30 | +{/if} | |
31 | +<td class=empty> </td> | |
32 | +{if $zonelist[i].valid == "yes"}<td class=ok title=Yes alt=Yes> </td>{if $zonelist[i].updated == "no"}<td class=view><a alt="View zone as plain" title="View zone as plain" href="{$src}zoneview.php?i={$zonelist[i].id}&s=0"> </a></td>{else}<td class=preview><a alt="Preview zone" title="Preview zone" href="{$src}zonepview.php?i={$zonelist[i].id}&s=0"> </a></td>{/if} | |
33 | +{elseif $zonelist[i].valid == "no"}<td class=nok title=Problem alt=Problem></td><td class=empty></td> | |
34 | +{else}<td class=some title=Maybe alt=Maybe></td><td class=check><a alt="Check zone" title="Check zone" href="{$src}zonelist.php?i={$zonelist[i].id}&check=y{if $pages}&page={$current_page}{/if}"> </a></td> | |
35 | +{/if} | |
36 | +<td class=empty> </td> | |
37 | +<td class=ed><a title="Edit zone" alt="Edit zone" href="{$src}record.php?i={$zonelist[i].id}"> </a></td> | |
38 | +<td class=del><a alt="Remove zone" title="Remove zone" href="{$src}deletezone.php?i={$zonelist[i].id}{if $pages}&page={$current_page}{/if}"> </a></td> | |
39 | +</tr> | |
40 | +{/section} | |
41 | +</table>{else}<p>You don't have master zones.</p>{/if} | |
42 | +</div></div> | |
43 | +{include file="pages.tpl"} | ... | ... |
templates/zoneview.tpl
0 → 100644
1 | +++ a/templates/zoneview.tpl | |
1 | +<div class=clear><div class=main> | |
2 | +<p><strong>Zone: <span class=highlight>{$zonename}</span></strong></p> | |
3 | +<p><strong>Type: </strong>{$zonetype}<br /><strong>Owner: </strong>{$owner}</p> | |
4 | +<textarea readonly autofocus wrap="off" cols="116" rows="30" class=ro>{if $zonedef}{$zonedef}{else}Zone cannot load{/if}</textarea> | |
5 | +</div></div> | ... | ... |
templates_c/.gitignore
0 → 100644