# HG changeset patch # User rejo # Date 1176550647 0 # Node ID 9a485c41cfcf6b76441ee22c2755e624db797fb7 # Parent 58094faf794dbc2da49a939d0d8d8c9a1d193c53 [feladat @ 3] First set of changes to provide translation framework. diff -r 58094faf794d -r 9a485c41cfcf add_record.php --- a/add_record.php Tue Apr 10 22:40:43 2007 +0000 +++ b/add_record.php Sat Apr 14 11:37:27 2007 +0000 @@ -28,13 +28,13 @@ } include_once("inc/header.inc.php"); ?> -

Add record to zone ""

-
DNS Admin >> "> >> Add record

+

""

+
>> "> >>

"> - +
Name TypePriorityContentTimeToLive
 
.IN
-
+
diff -r 58094faf794d -r 9a485c41cfcf delete_domain.php --- a/delete_domain.php Tue Apr 10 22:40:43 2007 +0000 +++ b/delete_domain.php Sat Apr 14 11:37:27 2007 +0000 @@ -35,11 +35,11 @@ } include_once("inc/header.inc.php"); $info = get_domain_info_from_id($_GET["id"]); - ?>

Delete domain ""

- Owner:
- Number of records in zone:

- Are you sure?

- &confirm=1'" VALUE="Yes"> &confirm=0'" VALUE="No"> + ?>

""

+ :
+ :

+ ?

+ &confirm=1'" VALUE=""> &confirm=0'" VALUE="">

Delete record "

""

You are trying to delete a record that is needed for this zone to work.
"; + print "" . ('You are trying to delete a record that is needed for this zone to work.') . "
"; } - ?>
Are you sure?

- &confirm=1'" VALUE="Yes"> &confirm=0'" VALUE="No"> + ?>


+ &confirm=1'" VALUE=""> &confirm=0'" VALUE="">

Delete user ""

+ ?>

""

0) { - ?>This user has access to the following domain(s):
:
getOne("select count(id) from zones where owner=$id")) != 0) { - $message .= " This user has access to $numrows domain(s), by deleting him you will also delete these domains"; + $message .= " " . _('This user has access to $numrows domain(s), by deleting him you will also delete these domains'); } ?>


-
+ -

Edit domain ""

+

""

-

This domain isnt owned by anyone yet, please assign someone

+

@@ -66,7 +66,7 @@
- Add an owner: + : "> +
@@ -98,7 +98,7 @@ {?> - Current listed owners: + : "> - + @@ -129,11 +129,11 @@   - Type of this domain: + :
- Change type: + : +
@@ -157,9 +157,9 @@
-DNS Admin >> + >> -

Number of records: +

:   - Sub-Owners"; } ?> - Name - Type - Content - Priority - TTL + " . _('Sub-Owners') . ""; } ?> + + + + + - ">[ edit record ] - ">[ delete record ] + ">[ <? echo _('edit record'); ?> ] + ">[ <? echo _('delete record'); ?> ] -
No records for this domain
+
- + @@ -268,12 +268,12 @@ -'" VALUE="Add record"> +'" VALUE=""> -  '" VALUE="Delete zone">  '" VALUE=""> diff -r 58094faf794d -r 9a485c41cfcf edit_record.php --- a/edit_record.php Tue Apr 10 22:40:43 2007 +0000 +++ b/edit_record.php Sat Apr 14 11:37:27 2007 +0000 @@ -57,14 +57,14 @@ include_once("inc/header.inc.php"); ?> -

Edit record in zone ""

-
DNS Admin >> "> >> Edit record

+

""

+
>> "> >>

"> "> - +
Name TypePriorityContentTimeToLive
 
" CLASS="sinput">" CLASS="input">" CLASS="sinput">
-
   +
  
- +query("SELECT r.id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$_GET['id']."' AND u.id=r.user_id"); while ($x_r = $x_result->fetchRow()) { echo ""; + echo "\"""; } ?>
Sub-users
".$x_r["username"].""; echo ""; - echo "\"trash\"
diff -r 58094faf794d -r 9a485c41cfcf edit_user.php --- a/edit_user.php Tue Apr 10 22:40:43 2007 +0000 +++ b/edit_user.php Sat Apr 14 11:37:27 2007 +0000 @@ -51,12 +51,12 @@ } ?> -

Edit user ""

+

""

-
User Admin >> Edit User


+
>>


- - - - - - - - + + + + + + + +">
User name:">
Full name:">
Password:
E-mail:">
User level:
Description:
Active:CHECKED>
 
:">
:">
:
:">
:
:
:CHECKED>
 
diff -r 58094faf794d -r 9a485c41cfcf index.php --- a/index.php Tue Apr 10 22:40:43 2007 +0000 +++ b/index.php Sat Apr 14 11:37:27 2007 +0000 @@ -108,33 +108,33 @@ User Admin Synchronize Database - Search records +


-Welcome, . +, .
-Your userlevel is: () +: ()

Error:

:

-Current domains in DNS (click to view or edit): +:
Number of domains: ".$num_domains."
"; +echo "
: ".$num_domains."
"; if ($num_domains > ROWAMOUNT) { show_letters(LETTERSTART,$doms); @@ -148,7 +148,7 @@
- + - ">[ delete zone ]">[ <? echo _('delete zone'); ?> ]
 NameRecordsOwner
 
 No domains in this listing, sorry.
 
-You only administer some records of domains marked with an (*) +

- Create new domain:
+ :
- - - - + + + - - + +
Domain name:">
Web IP:">
Mail IP:">
Owner: +
:">
:">
:">
:
Domain type: +
:
Create zone without
applying records-template:
 

:
 

-Change your password:
+:
- - - - + + + +
Current password:
New Password:
New Password:
 
:
:
:
 
-

Oops! An error occured!

+




<< back

-

PowerAdmin has succesfully been installed.

+


-Remove this file (install.php) from your webdir.
-WARNING: PowerAdmin will not work until you delete install.php
+
+:

-You can click here to start using PowerAdmin + here You didnt fill in one of the required fields!"; + echo "
" . _('You didnt fill in one of the required fields!') . "
"; } } @@ -190,21 +190,21 @@ { ?> -

PowerAdmin for PowerDNS

+


-This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an -administrator login.
-Fields marked with a * are required. +
+ *


- - - - - - + + + + + +
Login Name: *
Password: *
Full name: *
Email: *
Description:
 
: *
: *
: *
: *
:
 
diff -r 58094faf794d -r 9a485c41cfcf search.php --- a/search.php Tue Apr 10 22:40:43 2007 +0000 +++ b/search.php Sat Apr 14 11:37:27 2007 +0000 @@ -35,26 +35,26 @@ // we will continue after the search form ... include_once('inc/header.inc.php'); ?> -

Search zones or records

+


-Type a hostname or a record in the box below and press search to see if the record exists in the system. + - + - +
Enter a hostname or IP address
 
@@ -70,14 +70,14 @@ if (count($search_result) == 2 && count($search_result['domains'])) { ?> - Domains found: + :

- - - + + + [ delete zone ]'; + echo '[ ' .  _('delete zone') . ' ]'; } else { @@ -113,16 +113,16 @@ if(count($search_result['records'])) { ?> - Records found: + :

 NameRecordsOwner
- - - - - + + + + + - [ edit record ] - [ delete record ] + [ <? echo _('edit record'); ?> ] + [ <? echo _('delete record'); ?> ] @@ -170,7 +170,7 @@
 NameTypeContentPriorityTTL
- Nothing found for query "" + ""
diff -r 58094faf794d -r 9a485c41cfcf seq_update.php --- a/seq_update.php Tue Apr 10 22:40:43 2007 +0000 +++ b/seq_update.php Sat Apr 14 11:37:27 2007 +0000 @@ -23,7 +23,7 @@ // Ok we have to synch it all. // What to do? Find the MAX(id) on each table and set it to the _seq table. -echo "

Synching databases. This is useful if you did manual insertions (in case you havent been here yet)

"; +echo "

" . _('Synching databases. This is useful if you did manual insertions (in case you havent been here yet).') . "

"; if(!level(10)) { diff -r 58094faf794d -r 9a485c41cfcf test_setup.php --- a/test_setup.php Tue Apr 10 22:40:43 2007 +0000 +++ b/test_setup.php Sat Apr 14 11:37:27 2007 +0000 @@ -55,11 +55,11 @@ if($bad) { - ?>

Not all tables are ok!

Successful!


@@ -67,16 +67,16 @@ Sorry, but there are error(s) found in the following table(s):.

Please fix these errors and run the script again.

.


diff -r 58094faf794d -r 9a485c41cfcf users.php --- a/users.php Tue Apr 10 22:40:43 2007 +0000 +++ b/users.php Sat Apr 14 11:37:27 2007 +0000 @@ -33,26 +33,26 @@ } else { - $error = "Usernames cant contain spaces"; + $error = _('Usernames cant contain spaces'); } } elseif($_POST["submit"]) { - $error = "Please fill in all fields"; + $error = _('Please fill in all fields'); } // Dirty hack, maybe revise? include_once("inc/header.inc.php"); ?> -

User Admin

+



Error:

:

Current users (click to edit):"; +echo "" . _('Current users (click to edit)') . ":"; $users = show_users(''); -echo "

Number of users: ".count($users); +echo "

" . _('Number of users') . ": ".count($users); show_pages(count($users),ROWAMOUNT); ?>

- + - +
-Create new user:
+:
 NameDomainsDomain listLevelStatus
 
">[ delete user ]">[ <? echo _('delete user'); ?> ] "> () @@ -90,7 +90,7 @@ $domains = get_domains_from_userid($c["id"]); foreach ($domains as $d) { - ?>">[ delete domain ] ">
">[ <? echo _('delete domain'); ?> ] ">
- - - - - - - - + + + + + + + +
User name:">
Full name:">
Password:">
E-mail:">
User level:
Description:
Active:
 
:">
:">
:">
:">
:
:
: