Index: trunk/wikimania/wmreg/skin/paypal_failed.php |
— | — | @@ -1,16 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | global $myself_url, $register_data, $lang_register_form ; |
8 | 8 | |
9 | 9 | /* Fix XSS */ |
10 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 10 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
11 | 11 | |
12 | 12 | ?> |
13 | 13 | <?php |
14 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 14 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
15 | 15 | { |
16 | 16 | echo '<div dir="rtl">'; |
17 | 17 | } |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | <h2><?php echo $lang_register_form['paypal_failed']?></h2> |
20 | 20 | <?php echo $lang_register_form['paypal_failed_description']?> |
21 | 21 | <?php |
22 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 22 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
23 | 23 | { |
24 | 24 | echo '</div>'; |
25 | | -}?> |
\ No newline at end of file |
| 25 | +} ?> |
\ No newline at end of file |
Index: trunk/wikimania/wmreg/skin/login_form.php |
— | — | @@ -1,24 +1,24 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $error_message, $register_data; |
9 | 9 | |
10 | 10 | /* Fix XSS */ |
11 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 11 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
12 | 12 | ?> |
13 | 13 | |
14 | 14 | <h1>Administration</h1> |
15 | | -<p id="special_pages"><a href="<?php echo $myself_url.'index.php'?>" |
| 15 | +<p id="special_pages"><a href="<?php echo $myself_url . 'index.php'?>" |
16 | 16 | title="Return to Registration form">Registration Form</a> | <a |
17 | | - href="<?php echo $myself_url.'index.php?action=query'?>" |
| 17 | + href="<?php echo $myself_url . 'index.php?action=query'?>" |
18 | 18 | title="You can query the registration status for Wikimania 2011 in here.">Query |
19 | 19 | your registration status</a></p> |
20 | 20 | |
21 | | -<?php if (!empty($error_message)) |
22 | | -echo '<div id="correction">'."\n".'<p>Wrong username or Password, can\'t login!</p>'."\n".'</div>'."\n"; |
| 21 | +<?php if ( !empty( $error_message ) ) |
| 22 | +echo '<div id="correction">' . "\n" . '<p>Wrong username or Password, can\'t login!</p>' . "\n" . '</div>' . "\n"; |
23 | 23 | ?> |
24 | 24 | <form method="post" action="<?php echo $myself_url?>index.php"> |
25 | 25 | |
— | — | @@ -30,16 +30,16 @@ |
31 | 31 | <tr> |
32 | 32 | <td><label for="user_id" class="col_title">Username</label></td> |
33 | 33 | <td><input name="user_id" type="text" id="user_id" |
34 | | - value="<?php echo $register_data['user_id'];?>" /></td> |
| 34 | + value="<?php echo $register_data['user_id']; ?>" /></td> |
35 | 35 | </tr> |
36 | 36 | <tr> |
37 | 37 | <td><label for="password" class="col_title">Password</label></td> |
38 | 38 | <td><input name="password" type="password" id="password" |
39 | | - value="<?php echo $register_data['password'];?>" /></td> |
| 39 | + value="<?php echo $register_data['password']; ?>" /></td> |
40 | 40 | </tr> |
41 | 41 | </table> |
42 | 42 | <div id="button"><input type="submit" name="Submit" value="Login" /> <input |
43 | 43 | name="reset" type="reset" id="reset" value="reset" /> <input |
44 | | - type="hidden" name="action" value="admin_login" /> <?php if(!$_COOKIE['wikimania']) echo '<input type="hidden" name="secret_id" value="'.$my_session->handle.'" />'; ?> |
| 44 | + type="hidden" name="action" value="admin_login" /> <?php if ( !$_COOKIE['wikimania'] ) echo '<input type="hidden" name="secret_id" value="' . $my_session->handle . '" />'; ?> |
45 | 45 | </div> |
46 | 46 | </form> |
Index: trunk/wikimania/wmreg/skin/coupon.php |
— | — | @@ -1,23 +1,23 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $error_message, $register_data, $lang_query, $lang_register_form, $lang_errors; |
9 | 9 | |
10 | 10 | /* Fix XSS */ |
11 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 11 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
12 | 12 | |
13 | 13 | ?> |
14 | 14 | <h1>Coupon activation</h1> |
15 | 15 | <p id="special_pages"><a |
16 | | - href="<?php echo $myself_url.'index.php?uselang='.$userLanguage?>" |
| 16 | + href="<?php echo $myself_url . 'index.php?uselang=' . $userLanguage?>" |
17 | 17 | title="Return to Registration form">Registration Form</a> | <a |
18 | | - href="<?php echo $myself_url.'index.php?action=admin'?>" |
| 18 | + href="<?php echo $myself_url . 'index.php?action=admin'?>" |
19 | 19 | title="Enter the managment System">Admin</a></p> |
20 | | -<?php if (!empty($error_message)) |
21 | | -echo '<div id="correction">'."\n".'<p>'.'Error due to wrong information or accepted registration.'.'</p>'."\n".'</div>'."\n"; |
| 20 | +<?php if ( !empty( $error_message ) ) |
| 21 | +echo '<div id="correction">' . "\n" . '<p>' . 'Error due to wrong information or accepted registration.' . '</p>' . "\n" . '</div>' . "\n"; |
22 | 22 | ?> |
23 | 23 | |
24 | 24 | <p>If you have a discount code for Wikimania 2011 registration, please |
— | — | @@ -32,29 +32,29 @@ |
33 | 33 | <tr> |
34 | 34 | <td><label for="surname" class="col_title"><?php echo $lang_register_form['surname']?></label></td> |
35 | 35 | <td><input name="surname" type="text" size="20" id="surname" |
36 | | - value="<?php echo $register_data['surname'];?>" /></td> |
| 36 | + value="<?php echo $register_data['surname']; ?>" /></td> |
37 | 37 | </tr> |
38 | 38 | <tr> |
39 | 39 | <td><label for="given_name" class="col_title"><?php echo $lang_register_form['given_name']?></label></td> |
40 | 40 | <td><input name="given_name" type="text" size="20" id="given_name" |
41 | | - value="<?php echo $register_data['given_name'];?>" /></td> |
| 41 | + value="<?php echo $register_data['given_name']; ?>" /></td> |
42 | 42 | </tr> |
43 | 43 | <tr> |
44 | 44 | <td><label for="unique_code" class="col_title"><?php echo $lang_query['unique_code'] ?></label></td> |
45 | 45 | <td><input name="unique_code" type="text" id="unique_code" size="5" |
46 | | - value="<?php echo $register_data['unique_code'];?>" /></td> |
| 46 | + value="<?php echo $register_data['unique_code']; ?>" /></td> |
47 | 47 | </tr> |
48 | 48 | <tr> |
49 | 49 | <td><label for="coupon_id" class="coupon_id">Coupon ID</label></td> |
50 | 50 | <td><input name="coupon_id" type="text" id="coupon_id" size="6" |
51 | | - value="<?php echo $register_data['coupon_id'];?>" /></td> |
| 51 | + value="<?php echo $register_data['coupon_id']; ?>" /></td> |
52 | 52 | </tr> |
53 | 53 | </table> |
54 | 54 | <div id="button"><input type="submit" name="Submit" |
55 | 55 | value="<?php echo $lang_query['submit']?>" /> <input name="reset" |
56 | 56 | type="reset" id="reset" |
57 | 57 | value="<?php echo $lang_register_form['reset']?>" /> <input |
58 | | - type="hidden" name="uselang" value="<?php echo $userLanguage;?>" /> <input |
59 | | - type="hidden" name="action" value="coupon_activate" /> <?php if(!$_COOKIE['wikimania']) echo '<input type="hidden" name="secret_id" value="'.$my_session->handle.'" />'; ?> |
| 58 | + type="hidden" name="uselang" value="<?php echo $userLanguage; ?>" /> <input |
| 59 | + type="hidden" name="action" value="coupon_activate" /> <?php if ( !$_COOKIE['wikimania'] ) echo '<input type="hidden" name="secret_id" value="' . $my_session->handle . '" />'; ?> |
60 | 60 | </div> |
61 | 61 | </form> |
Index: trunk/wikimania/wmreg/skin/form.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | { |
6 | 6 | document.getElementById(idarray[x]).disabled = true; |
7 | 7 | } |
8 | | -} |
| 8 | +} |
9 | 9 | |
10 | 10 | function enable(idarray){ |
11 | 11 | for (x in idarray) |
— | — | @@ -37,52 +37,52 @@ |
38 | 38 | |
39 | 39 | <?php |
40 | 40 | /* Prevent hacking */ |
41 | | -if(!defined('TC_STARTED')) |
| 41 | +if ( !defined( 'TC_STARTED' ) ) |
42 | 42 | { |
43 | | - die('Hacking Attempt'); |
| 43 | + die( 'Hacking Attempt' ); |
44 | 44 | } |
45 | | -global $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, $error_message, $register_data, $lang_countries, $myself_url, $_COOKIE, $my_session, |
| 45 | +global $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, $error_message, $register_data, $lang_countries, $myself_url, $_COOKIE, $my_session, |
46 | 46 | $lang_register_form, $userLanguage, $available_languages, $recaptcha_publickey, $mock; |
47 | 47 | |
48 | 48 | /* Fix XSS */ |
49 | | -//$register_data = array_map('htmlspecialchars', $register_data); |
| 49 | +// $register_data = array_map('htmlspecialchars', $register_data); |
50 | 50 | |
51 | | -$key_array = array('join_date', 'showname', 'nights'); |
52 | | -foreach ($key_array as $key) |
| 51 | +$key_array = array( 'join_date', 'showname', 'nights' ); |
| 52 | +foreach ( $key_array as $key ) |
53 | 53 | { |
54 | | - if (!is_array($register_data[$key]) || !isset($register_data[$key])) |
| 54 | + if ( !is_array( $register_data[$key] ) || !isset( $register_data[$key] ) ) |
55 | 55 | { |
56 | 56 | $register_data[$key] = array(); |
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
60 | | -function create_label($label_id, $col_title = false) { |
| 60 | +function create_label( $label_id, $col_title = false ) { |
61 | 61 | global $lang_register_form; |
62 | | - //mandatory_fields is an an array containing fields names of the fields that the user should input |
63 | | - $mandatory_fields = array("given_name", "surname", "sex", "country", |
64 | | - "langn", "email", "join_date", "showname", "size", "color", "captcha"); |
65 | | - if (!in_array($label_id, array_keys($lang_register_form))) |
| 62 | + // mandatory_fields is an an array containing fields names of the fields that the user should input |
| 63 | + $mandatory_fields = array( "given_name", "surname", "sex", "country", |
| 64 | + "langn", "email", "join_date", "showname", "size", "color", "captcha" ); |
| 65 | + if ( !in_array( $label_id, array_keys( $lang_register_form ) ) ) |
66 | 66 | { return false; } |
67 | | - if (in_array($label_id, $mandatory_fields)) |
| 67 | + if ( in_array( $label_id, $mandatory_fields ) ) |
68 | 68 | { |
69 | | - if (!$col_title) |
70 | | - echo '<label for="'.$label_id.'">'.$lang_register_form[$label_id].'*</label>'; |
71 | | - else |
72 | | - echo '<label for="'.$label_id.'" class="col_title">'.$lang_register_form[$label_id].'*</label>'; |
| 69 | + if ( !$col_title ) |
| 70 | + echo '<label for="' . $label_id . '">' . $lang_register_form[$label_id] . '*</label>'; |
| 71 | + else |
| 72 | + echo '<label for="' . $label_id . '" class="col_title">' . $lang_register_form[$label_id] . '*</label>'; |
73 | 73 | } |
74 | | - else |
| 74 | + else |
75 | 75 | { |
76 | | - if (!$col_title) |
77 | | - echo '<label for="'.$label_id.'">'.$lang_register_form[$label_id].'</label>'; |
78 | | - else |
79 | | - echo '<label for="'.$label_id.'" class="col_title">'.$lang_register_form[$label_id].'</label>'; |
| 76 | + if ( !$col_title ) |
| 77 | + echo '<label for="' . $label_id . '">' . $lang_register_form[$label_id] . '</label>'; |
| 78 | + else |
| 79 | + echo '<label for="' . $label_id . '" class="col_title">' . $lang_register_form[$label_id] . '</label>'; |
80 | 80 | } |
81 | 81 | } |
82 | | -function get_lang($lang_id) |
| 82 | +function get_lang( $lang_id ) |
83 | 83 | { |
84 | 84 | global $lang_register_form; |
85 | | - if (!in_array($lang_id, array_keys($lang_register_form))) |
86 | | - return false; |
| 85 | + if ( !in_array( $lang_id, array_keys( $lang_register_form ) ) ) |
| 86 | + return false; |
87 | 87 | echo $lang_register_form[$lang_id]; |
88 | 88 | } |
89 | 89 | ?> |
— | — | @@ -90,193 +90,193 @@ |
91 | 91 | |
92 | 92 | |
93 | 93 | <?php |
94 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 94 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
95 | 95 | { |
96 | 96 | echo '<div dir="rtl">'; |
97 | 97 | } |
98 | 98 | ?> |
99 | 99 | <p style="text-align:center;"><img src="wikimania2011reg.png" alt="Wikimania 2011 Logo" /></p> |
100 | 100 | |
101 | | -<?php if ($mock == true){?> |
| 101 | +<?php if ( $mock == true ) { ?> |
102 | 102 | <p class="notice"> |
103 | 103 | This is a mock registration site only, use it just for |
104 | 104 | testing.<br> |
105 | 105 | Please <a href="mailto:wikimania-registration@wikimedia.org">e-mail us</a> |
106 | 106 | about any problems you encounter with it.</p> |
107 | | -<?php }?> |
| 107 | +<?php } ?> |
108 | 108 | |
109 | | -<h1><?php get_lang('registration_title');?></h1> |
| 109 | +<h1><?php get_lang( 'registration_title' ); ?></h1> |
110 | 110 | <p> |
111 | | - <?php foreach ($available_languages as $name => $value) |
| 111 | + <?php foreach ( $available_languages as $name => $value ) |
112 | 112 | { |
113 | | - echo '<a href="'.$myself_url.'index.php?uselang='.$name.'" title="'.$name.' ('.$value.')">'.$value.'</a> |'."\n"; |
114 | | - }?> |
| 113 | + echo '<a href="' . $myself_url . 'index.php?uselang=' . $name . '" title="' . $name . ' (' . $value . ')">' . $value . '</a> |' . "\n"; |
| 114 | + } ?> |
115 | 115 | <br><small>Want to translate this form into another language? Write us <a href=mailto:wikimania-registration@wikimedia.org>here</a></small> |
116 | 116 | </p> |
117 | 117 | <p id="special_pages"> |
118 | 118 | <?php |
119 | | - if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 119 | + if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
120 | 120 | { |
121 | 121 | echo '<div align="left">'; |
122 | | - }?> |
123 | | - <a href="<?= $myself_url.'index.php?action=admin'?>" title="Enter the management system">Admin</a> |
124 | | - | |
125 | | - <a href="<?= $myself_url.'index.php?action=query&uselang='.$userLanguage?>" title="<?php get_lang('query_title')?>"><?php get_lang('query')?></a> |
| 122 | + } ?> |
| 123 | + <a href="<?= $myself_url . 'index.php?action=admin'?>" title="Enter the management system">Admin</a> |
| 124 | + | |
| 125 | + <a href="<?= $myself_url . 'index.php?action=query&uselang=' . $userLanguage?>" title="<?php get_lang( 'query_title' )?>"><?php get_lang( 'query' )?></a> |
126 | 126 | <?php |
127 | | - if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 127 | + if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
128 | 128 | { |
129 | 129 | echo '</div>'; |
130 | | - }?> |
| 130 | + } ?> |
131 | 131 | </p> |
132 | | -<?php if (!empty($error_message)) |
| 132 | +<?php if ( !empty( $error_message ) ) |
133 | 133 | { |
134 | 134 | echo '<div id="correction"><p>'; |
135 | | - get_lang('correction'); |
136 | | - echo '</p>'.$error_message.'</div>'; |
137 | | -}?> |
| 135 | + get_lang( 'correction' ); |
| 136 | + echo '</p>' . $error_message . '</div>'; |
| 137 | +} ?> |
138 | 138 | |
139 | | -<form method="post" action="<?= $myself_url.'index.php';?>" > |
| 139 | +<form method="post" action="<?= $myself_url . 'index.php'; ?>" > |
140 | 140 | <fieldset class="record"> |
141 | | -<legend><?php get_lang('legend1') ?></legend> |
| 141 | +<legend><?php get_lang( 'legend1' ) ?></legend> |
142 | 142 | <table class="form_table"> |
143 | 143 | <colgroup> |
144 | 144 | <col class="col_left" /> |
145 | 145 | <col class="col_right" /> |
146 | 146 | </colgroup> |
147 | 147 | <tr> |
148 | | - <th colspan="2"> <?php get_lang('title1');?></th> |
| 148 | + <th colspan="2"> <?php get_lang( 'title1' ); ?></th> |
149 | 149 | </tr> |
150 | 150 | <tr> |
151 | | - <td><?php create_label('given_name', true);?></td> |
152 | | - <td><input name="given_name" type="text" size="24" value="<?= $register_data['given_name'];?>" /></td> |
| 151 | + <td><?php create_label( 'given_name', true ); ?></td> |
| 152 | + <td><input name="given_name" type="text" size="24" value="<?= $register_data['given_name']; ?>" /></td> |
153 | 153 | </tr> |
154 | 154 | <tr> |
155 | | - <td><?php create_label('surname', true);?></td> |
156 | | - <td> |
157 | | - <input name="surname" type="text" size="24" value="<?= $register_data['surname'];?>"/> |
| 155 | + <td><?php create_label( 'surname', true ); ?></td> |
| 156 | + <td> |
| 157 | + <input name="surname" type="text" size="24" value="<?= $register_data['surname']; ?>"/> |
158 | 158 | </td> |
159 | 159 | </tr> |
160 | 160 | <tr> |
161 | | - <td><?php create_label('sex', true);?></td> |
| 161 | + <td><?php create_label( 'sex', true ); ?></td> |
162 | 162 | <td> |
163 | | - <input type="radio" name="sex" value="m" id="sex1" <?php if($register_data['sex']== 'm') echo 'checked="checked"';?> /><?php create_label('sex1'); ?> |
164 | | - <input type="radio" name="sex" value="f" id="sex2" <?php if($register_data['sex']== 'f') echo 'checked="checked"';?> /><?php create_label('sex2'); ?> |
165 | | - <input type="radio" name="sex" value="d" id="sex3" <?php if($register_data['sex']== 'd') echo 'checked="checked"';?> /><?php create_label('sex3'); ?> |
| 163 | + <input type="radio" name="sex" value="m" id="sex1" <?php if ( $register_data['sex'] == 'm' ) echo 'checked="checked"'; ?> /><?php create_label( 'sex1' ); ?> |
| 164 | + <input type="radio" name="sex" value="f" id="sex2" <?php if ( $register_data['sex'] == 'f' ) echo 'checked="checked"'; ?> /><?php create_label( 'sex2' ); ?> |
| 165 | + <input type="radio" name="sex" value="d" id="sex3" <?php if ( $register_data['sex'] == 'd' ) echo 'checked="checked"'; ?> /><?php create_label( 'sex3' ); ?> |
166 | 166 | </td> |
167 | 167 | </tr> |
168 | 168 | <tr> |
169 | | - <td><?php create_label('country', true)?></td> |
| 169 | + <td><?php create_label( 'country', true )?></td> |
170 | 170 | <td> |
171 | 171 | <select name="country" id="country"> |
172 | | - <option value=""><?php get_lang('select'); ?></option> |
173 | | - <?php foreach ($lang_countries as $lang_country => $lang_country_name) |
| 172 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 173 | + <?php foreach ( $lang_countries as $lang_country => $lang_country_name ) |
174 | 174 | { |
175 | | - if ($register_data['country'] == $lang_country) |
176 | | - echo '<option value="'. $lang_country . '" selected="selected">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
| 175 | + if ( $register_data['country'] == $lang_country ) |
| 176 | + echo '<option value="' . $lang_country . '" selected="selected">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
177 | 177 | else |
178 | | - echo '<option value="'. $lang_country . '">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
179 | | - }?> |
| 178 | + echo '<option value="' . $lang_country . '">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
| 179 | + } ?> |
180 | 180 | </select> |
181 | 181 | </td> |
182 | 182 | </tr> |
183 | 183 | <tr> |
184 | | - <th colspan="2"> <?php get_lang('title2');?></th> |
| 184 | + <th colspan="2"> <?php get_lang( 'title2' ); ?></th> |
185 | 185 | </tr> |
186 | 186 | <tr> |
187 | | - <td><?php create_label('langn', true)?></td> |
| 187 | + <td><?php create_label( 'langn', true )?></td> |
188 | 188 | <td> |
189 | 189 | <select name="langn" id="langn"> |
190 | | - <option value=""><?php get_lang('select'); ?></option> |
191 | | - <?php foreach ($WikimediaLanguages as $WikimediaLanguage => $WikimediaLanguageName) |
| 190 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 191 | + <?php foreach ( $WikimediaLanguages as $WikimediaLanguage => $WikimediaLanguageName ) |
192 | 192 | { |
193 | | - if ($register_data['langn'] == $WikimediaLanguage) |
194 | | - echo '<option value="'. $WikimediaLanguage . '" selected="selected">'. $WikimediaLanguage .' '.$WikimediaLanguageName . '</option>'."\n"; |
| 193 | + if ( $register_data['langn'] == $WikimediaLanguage ) |
| 194 | + echo '<option value="' . $WikimediaLanguage . '" selected="selected">' . $WikimediaLanguage . ' ' . $WikimediaLanguageName . '</option>' . "\n"; |
195 | 195 | else |
196 | | - echo '<option value="'. $WikimediaLanguage . '">'. $WikimediaLanguage .' '.$WikimediaLanguageName . '</option>'."\n"; |
197 | | - }?> |
| 196 | + echo '<option value="' . $WikimediaLanguage . '">' . $WikimediaLanguage . ' ' . $WikimediaLanguageName . '</option>' . "\n"; |
| 197 | + } ?> |
198 | 198 | </select> |
199 | 199 | </td> |
200 | 200 | </tr> |
201 | 201 | <tr> |
202 | | - <td><?php create_label('lang');?></td> |
| 202 | + <td><?php create_label( 'lang' ); ?></td> |
203 | 203 | <td> |
204 | | - <?php for ($i=1; $i<=3; $i++ ) |
| 204 | + <?php for ( $i = 1; $i <= 3; $i++ ) |
205 | 205 | { |
206 | | - echo '<p class="langline"><select name="lang'. $i .'">'."\n".'<option value="">'.$lang_register_form['select_lang'].'</option>'."\n"; |
207 | | - foreach ($WikimediaLanguages as $WikimediaLanguage => $WikimediaLanguageName) |
| 206 | + echo '<p class="langline"><select name="lang' . $i . '">' . "\n" . '<option value="">' . $lang_register_form['select_lang'] . '</option>' . "\n"; |
| 207 | + foreach ( $WikimediaLanguages as $WikimediaLanguage => $WikimediaLanguageName ) |
208 | 208 | { |
209 | | - if ($register_data['lang'.$i] == $WikimediaLanguage) |
210 | | - echo '<option value="'. $WikimediaLanguage . '" selected="selected">'. $WikimediaLanguage .' '.$WikimediaLanguageName . '</option>'."\n"; |
| 209 | + if ( $register_data['lang' . $i] == $WikimediaLanguage ) |
| 210 | + echo '<option value="' . $WikimediaLanguage . '" selected="selected">' . $WikimediaLanguage . ' ' . $WikimediaLanguageName . '</option>' . "\n"; |
211 | 211 | else |
212 | | - echo '<option value="'. $WikimediaLanguage . '">'. $WikimediaLanguage .' '.$WikimediaLanguageName . '</option>'."\n"; |
| 212 | + echo '<option value="' . $WikimediaLanguage . '">' . $WikimediaLanguage . ' ' . $WikimediaLanguageName . '</option>' . "\n"; |
213 | 213 | } |
214 | | - echo'</select>'."\n".'<select name="lang'. $i .'-level">'."\n".' <option value="">'.$lang_register_form['select_level'].'</option>'."\n"; |
215 | | - if ($register_data['lang'.$i.'-level']=='1') |
216 | | - echo '<option value="1" selected="selected">'.$lang_register_form['lang_level1'].'</option>'."\n"; |
| 214 | + echo'</select>' . "\n" . '<select name="lang' . $i . '-level">' . "\n" . ' <option value="">' . $lang_register_form['select_level'] . '</option>' . "\n"; |
| 215 | + if ( $register_data['lang' . $i . '-level'] == '1' ) |
| 216 | + echo '<option value="1" selected="selected">' . $lang_register_form['lang_level1'] . '</option>' . "\n"; |
217 | 217 | else |
218 | | - echo '<option value="1">'.$lang_register_form['lang_level1'].'</option>'."\n"; |
219 | | - if ($register_data['lang'.$i.'-level']=='2') |
220 | | - echo '<option value="2" selected="selected">'.$lang_register_form['lang_level2'].'</option>'."\n"; |
| 218 | + echo '<option value="1">' . $lang_register_form['lang_level1'] . '</option>' . "\n"; |
| 219 | + if ( $register_data['lang' . $i . '-level'] == '2' ) |
| 220 | + echo '<option value="2" selected="selected">' . $lang_register_form['lang_level2'] . '</option>' . "\n"; |
221 | 221 | else |
222 | | - echo '<option value="2">'.$lang_register_form['lang_level2'].'</option>'."\n"; |
223 | | - if ($register_data['lang'.$i.'-level']=='3') |
224 | | - echo '<option value="3" selected="selected">'.$lang_register_form['lang_level3'].'</option>'."\n"; |
| 222 | + echo '<option value="2">' . $lang_register_form['lang_level2'] . '</option>' . "\n"; |
| 223 | + if ( $register_data['lang' . $i . '-level'] == '3' ) |
| 224 | + echo '<option value="3" selected="selected">' . $lang_register_form['lang_level3'] . '</option>' . "\n"; |
225 | 225 | else |
226 | | - echo '<option value="3">'.$lang_register_form['lang_level3'].'</option>'."\n"; |
227 | | - if ($register_data['lang'.$i.'-level']=='4') |
228 | | - echo '<option value="4" selected="selected">'.$lang_register_form['lang_level4'].'</option>'."\n"; |
| 226 | + echo '<option value="3">' . $lang_register_form['lang_level3'] . '</option>' . "\n"; |
| 227 | + if ( $register_data['lang' . $i . '-level'] == '4' ) |
| 228 | + echo '<option value="4" selected="selected">' . $lang_register_form['lang_level4'] . '</option>' . "\n"; |
229 | 229 | else |
230 | | - echo '<option value="4">'.$lang_register_form['lang_level4'].'</option>'."\n"; |
231 | | - echo'</select>'."\n"; |
232 | | - echo'</p>'."\n"; |
233 | | - }?> |
| 230 | + echo '<option value="4">' . $lang_register_form['lang_level4'] . '</option>' . "\n"; |
| 231 | + echo'</select>' . "\n"; |
| 232 | + echo'</p>' . "\n"; |
| 233 | + } ?> |
234 | 234 | </td> |
235 | 235 | </tr> |
236 | 236 | <tr> |
237 | | - <th colspan="2"><?php get_lang('title3');?></th> |
| 237 | + <th colspan="2"><?php get_lang( 'title3' ); ?></th> |
238 | 238 | </tr> |
239 | 239 | <tr> |
240 | | - <td><?php create_label('wiki_id', true)?></td> |
| 240 | + <td><?php create_label( 'wiki_id', true )?></td> |
241 | 241 | <td> |
242 | | - <input name="wiki_id" type="text" size="15" id="wiki_id" value="<?= $register_data['wiki_id'];?>" /> |
| 242 | + <input name="wiki_id" type="text" size="15" id="wiki_id" value="<?= $register_data['wiki_id']; ?>" /> |
243 | 243 | @ |
244 | 244 | <select name="wiki_language"> |
245 | | - <option value=""><?php get_lang('select'); ?></option> |
246 | | - <?php foreach ($WikimediaLanguages as $WikimediaLanguage => $dummy) |
247 | | - if ($WikimediaLanguage == $register_data['wiki_language']) |
248 | | - echo '<option value="'. $WikimediaLanguage . '" selected="selected">'. $WikimediaLanguage . '</option>'."\n"; |
249 | | - else |
250 | | - echo '<option value="'. $WikimediaLanguage . '">'. $WikimediaLanguage . '</option>'."\n"; |
| 245 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 246 | + <?php foreach ( $WikimediaLanguages as $WikimediaLanguage => $dummy ) |
| 247 | + if ( $WikimediaLanguage == $register_data['wiki_language'] ) |
| 248 | + echo '<option value="' . $WikimediaLanguage . '" selected="selected">' . $WikimediaLanguage . '</option>' . "\n"; |
| 249 | + else |
| 250 | + echo '<option value="' . $WikimediaLanguage . '">' . $WikimediaLanguage . '</option>' . "\n"; |
251 | 251 | ?> |
252 | 252 | <option value="">----</option> |
253 | | - <?php foreach ($WikimediaOrgs as $WikimediaOrg) |
254 | | - if ($WikimediaOrg == $register_data['wiki_language']) |
255 | | - echo '<option value="'. $WikimediaOrg . '" selected="selected">'. $WikimediaOrg . '</option>'."\n"; |
256 | | - else |
257 | | - echo '<option value="'. $WikimediaOrg . '">'. $WikimediaOrg . '</option>'."\n"; |
| 253 | + <?php foreach ( $WikimediaOrgs as $WikimediaOrg ) |
| 254 | + if ( $WikimediaOrg == $register_data['wiki_language'] ) |
| 255 | + echo '<option value="' . $WikimediaOrg . '" selected="selected">' . $WikimediaOrg . '</option>' . "\n"; |
| 256 | + else |
| 257 | + echo '<option value="' . $WikimediaOrg . '">' . $WikimediaOrg . '</option>' . "\n"; |
258 | 258 | ?> |
259 | 259 | </select> |
260 | 260 | . |
261 | 261 | <select name="wiki_project"> |
262 | | - <option value=""><?php get_lang('select'); ?></option> |
263 | | - <?php foreach ($WikimediaProjects as $WikimediaProject) |
264 | | - if ($WikimediaProject == $register_data['wiki_project']) |
265 | | - echo '<option value="'. $WikimediaProject . '" selected="selected">'. $WikimediaProject . '</option>'."\n"; |
| 262 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 263 | + <?php foreach ( $WikimediaProjects as $WikimediaProject ) |
| 264 | + if ( $WikimediaProject == $register_data['wiki_project'] ) |
| 265 | + echo '<option value="' . $WikimediaProject . '" selected="selected">' . $WikimediaProject . '</option>' . "\n"; |
266 | 266 | else |
267 | | - echo '<option value="'. $WikimediaProject . '">'. $WikimediaProject . '</option>'."\n"; |
| 267 | + echo '<option value="' . $WikimediaProject . '">' . $WikimediaProject . '</option>' . "\n"; |
268 | 268 | ?> |
269 | 269 | </select> |
270 | 270 | .org |
271 | 271 | </td> |
272 | 272 | </tr> |
273 | 273 | <tr> |
274 | | - <td><?php create_label('email', true)?></td> |
275 | | - <td><input name="email" type="text" size="40" id="email" value="<?= $register_data['email'];?>" /></td> |
| 274 | + <td><?php create_label( 'email', true )?></td> |
| 275 | + <td><input name="email" type="text" size="40" id="email" value="<?= $register_data['email']; ?>" /></td> |
276 | 276 | </tr> |
277 | 277 | </table> |
278 | 278 | </fieldset> |
279 | 279 | <fieldset class="record"> |
280 | | -<legend class="title"><?php get_lang('legend2') ?></legend> |
| 280 | +<legend class="title"><?php get_lang( 'legend2' ) ?></legend> |
281 | 281 | <table class="form_table"> |
282 | 282 | <colgroup> |
283 | 283 | <col class="col_left" /> |
— | — | @@ -284,251 +284,251 @@ |
285 | 285 | <col class="col_right" /> |
286 | 286 | </colgroup> |
287 | 287 | <tr> |
288 | | - <th colspan="2"><?php get_lang('title4');?></th> |
| 288 | + <th colspan="2"><?php get_lang( 'title4' ); ?></th> |
289 | 289 | </tr> |
290 | 290 | <tr> |
291 | 291 | <td> |
292 | | - <?php create_label('join_date'); ?> |
| 292 | + <?php create_label( 'join_date' ); ?> |
293 | 293 | </td> |
294 | 294 | <td> |
295 | | - <?php get_lang('hackingdays');?>:<br> |
296 | | - <input type="checkbox" value="1" name="join_date[]" id="join1" <?php if (in_array(1, $register_data['join_date'])) echo 'checked="checked"';?>/> |
297 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Developer_meetings" onClick="return popup(this, 'join1')"><?php get_lang('join1');?></a><br> |
298 | | - <input type="checkbox" value="2" name="join_date[]" id="join2" <?php if (in_array(2, $register_data['join_date'])) echo 'checked="checked"';?>/> |
299 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Developer_meetings" onClick="return popup(this, 'join2')"><?php get_lang('join2');?></a><br> |
300 | | - <strong><?php get_lang('maindays');?>:<br> |
301 | | - <input type="checkbox" value="3" name="join_date[]" id="join3" <?php if (in_array(3, $register_data['join_date'])) echo 'checked="checked"';?>/> |
302 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Thursday.2C_August_4th" onClick="return popup(this, 'join3')"><?php get_lang('join3');?></a><br> |
303 | | - <input type="checkbox" value="4" name="join_date[]" id="join4" <?php if (in_array(4, $register_data['join_date'])) echo 'checked="checked"';?>/> |
304 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Friday.2C_August_5th" onClick="return popup(this, 'join4')"><?php get_lang('join4');?></a><br> |
305 | | - <input type="checkbox" value="5" name="join_date[]" id="join5" <?php if (in_array(5, $register_data['join_date'])) echo 'checked="checked"';?>/> |
306 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Saturday.2C_August_6th" onClick="return popup(this, 'join5')"><?php get_lang('join5');?></a><br> |
307 | | - </strong><?php get_lang('tourdays');?>:<br> |
308 | | - <input type="checkbox" value="6" name="join_date[]" id="join6" <?php if (in_array(6, $register_data['join_date'])) echo 'checked="checked"';?> onclick='flip(["tour0","tour1","tour2","tour3","tour4","tour5"])'/> |
309 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Sunday.2C_August_7th" onClick="return popup(this, 'join6')"><?php get_lang('join6');?></a><br> |
| 295 | + <?php get_lang( 'hackingdays' ); ?>:<br> |
| 296 | + <input type="checkbox" value="1" name="join_date[]" id="join1" <?php if ( in_array( 1, $register_data['join_date'] ) ) echo 'checked="checked"'; ?>/> |
| 297 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Developer_meetings" onClick="return popup(this, 'join1')"><?php get_lang( 'join1' ); ?></a><br> |
| 298 | + <input type="checkbox" value="2" name="join_date[]" id="join2" <?php if ( in_array( 2, $register_data['join_date'] ) ) echo 'checked="checked"'; ?>/> |
| 299 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Developer_meetings" onClick="return popup(this, 'join2')"><?php get_lang( 'join2' ); ?></a><br> |
| 300 | + <strong><?php get_lang( 'maindays' ); ?>:<br> |
| 301 | + <input type="checkbox" value="3" name="join_date[]" id="join3" <?php if ( in_array( 3, $register_data['join_date'] ) ) echo 'checked="checked"'; ?>/> |
| 302 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Thursday.2C_August_4th" onClick="return popup(this, 'join3')"><?php get_lang( 'join3' ); ?></a><br> |
| 303 | + <input type="checkbox" value="4" name="join_date[]" id="join4" <?php if ( in_array( 4, $register_data['join_date'] ) ) echo 'checked="checked"'; ?>/> |
| 304 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Friday.2C_August_5th" onClick="return popup(this, 'join4')"><?php get_lang( 'join4' ); ?></a><br> |
| 305 | + <input type="checkbox" value="5" name="join_date[]" id="join5" <?php if ( in_array( 5, $register_data['join_date'] ) ) echo 'checked="checked"'; ?>/> |
| 306 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Saturday.2C_August_6th" onClick="return popup(this, 'join5')"><?php get_lang( 'join5' ); ?></a><br> |
| 307 | + </strong><?php get_lang( 'tourdays' ); ?>:<br> |
| 308 | + <input type="checkbox" value="6" name="join_date[]" id="join6" <?php if ( in_array( 6, $register_data['join_date'] ) ) echo 'checked="checked"'; ?> onclick='flip(["tour0","tour1","tour2","tour3","tour4","tour5"])'/> |
| 309 | + <a href="http://wikimania2011.wikimedia.org/wiki/Schedule#Sunday.2C_August_7th" onClick="return popup(this, 'join6')"><?php get_lang( 'join6' ); ?></a><br> |
310 | 310 | </td> |
311 | 311 | </tr> |
312 | 312 | <tr> |
313 | 313 | <td> |
314 | | - <?php create_label('picktour'); ?> |
| 314 | + <?php create_label( 'picktour' ); ?> |
315 | 315 | </td> |
316 | 316 | <td> |
317 | | - <input type="radio" value="0" name="tours" id="tour0" <?php if ($register_data['tours'] == 0|| empty($register_data['tour'])) echo 'checked="checked"';?> <?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
318 | | - <?php get_lang('tour0');?><br> |
319 | | - <input type="radio" value="1" name="tours" id="tour1" <?php if ($register_data['tours'] == 1) echo 'checked="checked"';?><?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
320 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Nazareth_and_the_Galilee" onClick="return popup(this, 'tour1')"><?php get_lang('tour1');?></a><br> |
321 | | - <input type="radio" value="2" name="tours" id="tour2" <?php if ($register_data['tours'] == 2) echo 'checked="checked"';?><?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
322 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Jerusalem" onClick="return popup(this, 'tour2')"><?php get_lang('tour2');?></a><br> |
323 | | - <input type="radio" value="3" name="tours" id="tour3" <?php if ($register_data['tours'] == 3) echo 'checked="checked"';?><?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
324 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Acre_(Acco)" onClick="return popup(this, 'tour3')"><?php get_lang('tour3');?></a><br> |
325 | | - <input type="radio" value="4" name="tours" id="tour4" <?php if ($register_data['tours'] == 4) echo 'checked="checked"';?> <?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
326 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Tours/The_Baha%27i_Gardens" onClick="return popup(this, 'tour4')"><?php get_lang('tour4');?></a><br> |
327 | | - <input type="radio" value="5" name="tours" id="tour5" <?php if ($register_data['tours'] == 5) echo 'checked="checked"';?> <?php if (!in_array(6, $register_data['join_date'])) echo 'disabled=True';?>/> |
328 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Druze_villages" onClick="return popup(this, 'tour5')"><?php get_lang('tour5');?></a><br> |
| 317 | + <input type="radio" value="0" name="tours" id="tour0" <?php if ( $register_data['tours'] == 0 || empty( $register_data['tour'] ) ) echo 'checked="checked"'; ?> <?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 318 | + <?php get_lang( 'tour0' ); ?><br> |
| 319 | + <input type="radio" value="1" name="tours" id="tour1" <?php if ( $register_data['tours'] == 1 ) echo 'checked="checked"'; ?><?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 320 | + <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Nazareth_and_the_Galilee" onClick="return popup(this, 'tour1')"><?php get_lang( 'tour1' ); ?></a><br> |
| 321 | + <input type="radio" value="2" name="tours" id="tour2" <?php if ( $register_data['tours'] == 2 ) echo 'checked="checked"'; ?><?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 322 | + <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Jerusalem" onClick="return popup(this, 'tour2')"><?php get_lang( 'tour2' ); ?></a><br> |
| 323 | + <input type="radio" value="3" name="tours" id="tour3" <?php if ( $register_data['tours'] == 3 ) echo 'checked="checked"'; ?><?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 324 | + <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Acre_(Acco)" onClick="return popup(this, 'tour3')"><?php get_lang( 'tour3' ); ?></a><br> |
| 325 | + <input type="radio" value="4" name="tours" id="tour4" <?php if ( $register_data['tours'] == 4 ) echo 'checked="checked"'; ?> <?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 326 | + <a href="http://wikimania2011.wikimedia.org/wiki/Tours/The_Baha%27i_Gardens" onClick="return popup(this, 'tour4')"><?php get_lang( 'tour4' ); ?></a><br> |
| 327 | + <input type="radio" value="5" name="tours" id="tour5" <?php if ( $register_data['tours'] == 5 ) echo 'checked="checked"'; ?> <?php if ( !in_array( 6, $register_data['join_date'] ) ) echo 'disabled=True'; ?>/> |
| 328 | + <a href="http://wikimania2011.wikimedia.org/wiki/Tours/Druze_villages" onClick="return popup(this, 'tour5')"><?php get_lang( 'tour5' ); ?></a><br> |
329 | 329 | </td> |
330 | 330 | <tr> |
331 | | - <td><?php create_label('showname', true) ?></td> |
| 331 | + <td><?php create_label( 'showname', true ) ?></td> |
332 | 332 | <td> |
333 | | - <input type="checkbox" name="showname[]" value="1" id="showname1" <?php if (in_array(1, $register_data['showname']) || empty($register_data['showname'])) echo 'checked="checked"';?> /><?php create_label('showname1'); ?> |
334 | | - <input type="checkbox" name="showname[]" value="2" id="showname2" <?php if (in_array(2, $register_data['showname'])) echo 'checked="checked"';?> /><?php create_label('showname2'); ?> |
335 | | - <input type="checkbox" name="showname[]" value="3" id="showname3" <?php if (in_array(3, $register_data['showname'])) echo 'checked="checked"';?> onclick='flip(["custom_showname"])'/><?php create_label('showname3'); ?> |
336 | | - <input type="text" name="custom_showname" id ="custom_showname" size="32" value="<?= $register_data['custom_showname'];?>" <?php if (!in_array(3, $register_data['showname'])) echo 'disabled=True';?>/> |
| 333 | + <input type="checkbox" name="showname[]" value="1" id="showname1" <?php if ( in_array( 1, $register_data['showname'] ) || empty( $register_data['showname'] ) ) echo 'checked="checked"'; ?> /><?php create_label( 'showname1' ); ?> |
| 334 | + <input type="checkbox" name="showname[]" value="2" id="showname2" <?php if ( in_array( 2, $register_data['showname'] ) ) echo 'checked="checked"'; ?> /><?php create_label( 'showname2' ); ?> |
| 335 | + <input type="checkbox" name="showname[]" value="3" id="showname3" <?php if ( in_array( 3, $register_data['showname'] ) ) echo 'checked="checked"'; ?> onclick='flip(["custom_showname"])'/><?php create_label( 'showname3' ); ?> |
| 336 | + <input type="text" name="custom_showname" id ="custom_showname" size="32" value="<?= $register_data['custom_showname']; ?>" <?php if ( !in_array( 3, $register_data['showname'] ) ) echo 'disabled=True'; ?>/> |
337 | 337 | </td> |
338 | 338 | </tr> |
339 | 339 | <tr> |
340 | | - <td><?php create_label('size'); ?></td> |
341 | | - <td> |
342 | | - <input type="radio" name="size" value="XXS" id="e1" <?php if($register_data['size']=='XXS') echo 'checked="checked"';?> /><label for="e1">XXS</label> |
343 | | - <input type="radio" name="size" value="XS" id="e2" <?php if($register_data['size']=='XS') echo 'checked="checked"';?> /><label for="e2">XS</label> |
344 | | - <input type="radio" name="size" value="S" id="e3" <?php if($register_data['size']=='S') echo 'checked="checked"';?> /><label for="e3">S</label> |
345 | | - <input type="radio" name="size" value="M" id="e4" <?php if($register_data['size']=='M') echo 'checked="checked"';?> /><label for="e4">M</label> |
346 | | - <input type="radio" name="size" value="L" id="e5" <?php if($register_data['size']=='L') echo 'checked="checked"';?> /><label for="e5">L</label> |
347 | | - <input type="radio" name="size" value="XL" id="e6" <?php if($register_data['size']=='XL') echo 'checked="checked"';?> /><label for="e6">XL</label> |
348 | | - <input type="radio" name="size" value="XXL" id="e7" <?php if($register_data['size']=='XXL') echo 'checked="checked"';?> /><label for="e7">XXL</label> |
349 | | - <input type="radio" name="size" value="XXXL" id="e8" <?php if($register_data['size']=='XXXL') echo 'checked="checked"';?> /><label for="e8">XXXL</label> |
| 340 | + <td><?php create_label( 'size' ); ?></td> |
| 341 | + <td> |
| 342 | + <input type="radio" name="size" value="XXS" id="e1" <?php if ( $register_data['size'] == 'XXS' ) echo 'checked="checked"'; ?> /><label for="e1">XXS</label> |
| 343 | + <input type="radio" name="size" value="XS" id="e2" <?php if ( $register_data['size'] == 'XS' ) echo 'checked="checked"'; ?> /><label for="e2">XS</label> |
| 344 | + <input type="radio" name="size" value="S" id="e3" <?php if ( $register_data['size'] == 'S' ) echo 'checked="checked"'; ?> /><label for="e3">S</label> |
| 345 | + <input type="radio" name="size" value="M" id="e4" <?php if ( $register_data['size'] == 'M' ) echo 'checked="checked"'; ?> /><label for="e4">M</label> |
| 346 | + <input type="radio" name="size" value="L" id="e5" <?php if ( $register_data['size'] == 'L' ) echo 'checked="checked"'; ?> /><label for="e5">L</label> |
| 347 | + <input type="radio" name="size" value="XL" id="e6" <?php if ( $register_data['size'] == 'XL' ) echo 'checked="checked"'; ?> /><label for="e6">XL</label> |
| 348 | + <input type="radio" name="size" value="XXL" id="e7" <?php if ( $register_data['size'] == 'XXL' ) echo 'checked="checked"'; ?> /><label for="e7">XXL</label> |
| 349 | + <input type="radio" name="size" value="XXXL" id="e8" <?php if ( $register_data['size'] == 'XXXL' ) echo 'checked="checked"'; ?> /><label for="e8">XXXL</label> |
350 | 350 | </td> |
351 | 351 | <tr> |
352 | | - <td><?php create_label('food'); ?></td> |
| 352 | + <td><?php create_label( 'food' ); ?></td> |
353 | 353 | <td> |
354 | | - <input type="radio" value="0" name="food" id="food0" <?php if ($register_data['food'] == 0) echo 'checked="checked"';?> onclick='disable(["food_other"])'/> <?php create_label('food0');?><br> |
355 | | - <input type="radio" value="1" name="food" id="food1" <?php if ($register_data['food'] == 1) echo 'checked="checked"';?> onclick='disable(["food_other"])'/> <?php create_label('food1');?><br> |
356 | | - <input type="radio" value="2" name="food" id="food2" <?php if ($register_data['food'] == 2) echo 'checked="checked"';?> onclick='disable(["food_other"])' /> <?php create_label('food2');?><br> |
357 | | - <input type="radio" value="3" name="food" id="food3" <?php if ($register_data['food'] == 3) echo 'checked="checked"';?> onclick='enable(["food_other"])' /> <?php create_label('food_other');?> |
358 | | - <input type="text" name="food_other" id="food_other" value="<?= $register_data['food_other'];?>" <?php if (!$register_data['food'] == 3) echo 'disabled=True';?> /> |
| 354 | + <input type="radio" value="0" name="food" id="food0" <?php if ( $register_data['food'] == 0 ) echo 'checked="checked"'; ?> onclick='disable(["food_other"])'/> <?php create_label( 'food0' ); ?><br> |
| 355 | + <input type="radio" value="1" name="food" id="food1" <?php if ( $register_data['food'] == 1 ) echo 'checked="checked"'; ?> onclick='disable(["food_other"])'/> <?php create_label( 'food1' ); ?><br> |
| 356 | + <input type="radio" value="2" name="food" id="food2" <?php if ( $register_data['food'] == 2 ) echo 'checked="checked"'; ?> onclick='disable(["food_other"])' /> <?php create_label( 'food2' ); ?><br> |
| 357 | + <input type="radio" value="3" name="food" id="food3" <?php if ( $register_data['food'] == 3 ) echo 'checked="checked"'; ?> onclick='enable(["food_other"])' /> <?php create_label( 'food_other' ); ?> |
| 358 | + <input type="text" name="food_other" id="food_other" value="<?= $register_data['food_other']; ?>" <?php if ( !$register_data['food'] == 3 ) echo 'disabled=True'; ?> /> |
359 | 359 | </td> |
360 | 360 | </tr> |
361 | 361 | <tr> |
362 | | - <th colspan="2"><?php get_lang('title_visa');?></th> |
| 362 | + <th colspan="2"><?php get_lang( 'title_visa' ); ?></th> |
363 | 363 | </tr> |
364 | 364 | <tr> |
365 | | - <td><?php create_label('visa_assistance'); ?></td> |
| 365 | + <td><?php create_label( 'visa_assistance' ); ?></td> |
366 | 366 | <td> |
367 | | - <input type="checkbox" name="visa_assistance" value="1" id="need_visa_assistance" <?php if($register_data['visa_assistance'] == 1) echo 'checked="checked"';?> onclick='flip(["nationality","passport","passport_day","passport_month", "passport_year","passport_issued","day","month","year","countryofbirth","homeaddress","visa_assistance_description"])' /> |
368 | | - <?php create_label('need_visa_assistance'); ?> |
| 367 | + <input type="checkbox" name="visa_assistance" value="1" id="need_visa_assistance" <?php if ( $register_data['visa_assistance'] == 1 ) echo 'checked="checked"'; ?> onclick='flip(["nationality","passport","passport_day","passport_month", "passport_year","passport_issued","day","month","year","countryofbirth","homeaddress","visa_assistance_description"])' /> |
| 368 | + <?php create_label( 'need_visa_assistance' ); ?> |
369 | 369 | </td> |
370 | 370 | </tr> |
371 | 371 | <tr> |
372 | | - <td><?php create_label('nationality')?></td> |
| 372 | + <td><?php create_label( 'nationality' )?></td> |
373 | 373 | <td> |
374 | | - <select name="nationality" id="nationality" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>> |
375 | | - <option value=""><?php get_lang('select'); ?></option> |
376 | | - <?php foreach ($lang_countries as $lang_country => $lang_country_name) |
| 374 | + <select name="nationality" id="nationality" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>> |
| 375 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 376 | + <?php foreach ( $lang_countries as $lang_country => $lang_country_name ) |
377 | 377 | { |
378 | | - if ($register_data['nationality'] == $lang_country) |
379 | | - echo '<option value="'. $lang_country . '" selected="selected">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
| 378 | + if ( $register_data['nationality'] == $lang_country ) |
| 379 | + echo '<option value="' . $lang_country . '" selected="selected">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
380 | 380 | else |
381 | | - echo '<option value="'. $lang_country . '">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
382 | | - }?> |
| 381 | + echo '<option value="' . $lang_country . '">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
| 382 | + } ?> |
383 | 383 | </select> |
384 | 384 | </td> |
385 | 385 | <tr> |
386 | | - <td><?php create_label('passport')?></td> |
| 386 | + <td><?php create_label( 'passport' )?></td> |
387 | 387 | <td> |
388 | | - <input type="text" name="passport" id="passport" size="24" value="<?= $register_data['passport'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /> |
| 388 | + <input type="text" name="passport" id="passport" size="24" value="<?= $register_data['passport']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /> |
389 | 389 | </td> |
390 | 390 | </tr> |
391 | 391 | <tr> |
392 | 392 | <td> |
393 | | - <label for="year"><?php create_label('passport_valid')?></label> |
| 393 | + <label for="year"><?php create_label( 'passport_valid' )?></label> |
394 | 394 | </td> |
395 | 395 | <td> |
396 | | - <input name="passport_day" id="passport_day" type="text" size="2" maxlength="2" value="<?= $register_data['passport_day'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /><?php get_lang('day'); ?> |
397 | | - <select name="passport_month" id="passport_month" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>> |
398 | | - <option value=""><?php get_lang('select'); ?></option> |
399 | | - <?php for ($i = 1; $i <= 12; $i++) |
| 396 | + <input name="passport_day" id="passport_day" type="text" size="2" maxlength="2" value="<?= $register_data['passport_day']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /><?php get_lang( 'day' ); ?> |
| 397 | + <select name="passport_month" id="passport_month" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>> |
| 398 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 399 | + <?php for ( $i = 1; $i <= 12; $i++ ) |
400 | 400 | { |
401 | | - if ($register_data['passport_month'] == $i) |
402 | | - echo '<option value="'. $i . '" selected="selected">'. $lang_register_form['months'][$i] . '</option>'."\n"; |
| 401 | + if ( $register_data['passport_month'] == $i ) |
| 402 | + echo '<option value="' . $i . '" selected="selected">' . $lang_register_form['months'][$i] . '</option>' . "\n"; |
403 | 403 | else |
404 | | - echo '<option value="'. $i . '">'. $lang_register_form['months'][$i] . '</option>'."\n"; |
405 | | - }?> |
| 404 | + echo '<option value="' . $i . '">' . $lang_register_form['months'][$i] . '</option>' . "\n"; |
| 405 | + } ?> |
406 | 406 | </select> |
407 | | - <?php get_lang('year1'); ?> <input name="passport_year" id="passport_year" type="text" size="4" maxlength="4" id="year" value="<?= $register_data['passport_year'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /><?php get_lang('year'); ?> |
| 407 | + <?php get_lang( 'year1' ); ?> <input name="passport_year" id="passport_year" type="text" size="4" maxlength="4" id="year" value="<?= $register_data['passport_year']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /><?php get_lang( 'year' ); ?> |
408 | 408 | </td> |
409 | 409 | </tr> |
410 | 410 | <tr> |
411 | | - <td><?php create_label('passport_issued')?></td> |
| 411 | + <td><?php create_label( 'passport_issued' )?></td> |
412 | 412 | <td> |
413 | | - <input type="text" name="passport_issued" id="passport_issued" size="24" value="<?= $register_data['passport_issued'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /> |
| 413 | + <input type="text" name="passport_issued" id="passport_issued" size="24" value="<?= $register_data['passport_issued']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /> |
414 | 414 | </td> |
415 | 415 | </tr> |
416 | 416 | <tr> |
417 | 417 | <td> |
418 | | - <label for="year"><?php create_label('birthday')?></label> |
| 418 | + <label for="year"><?php create_label( 'birthday' )?></label> |
419 | 419 | </td> |
420 | 420 | <td> |
421 | | - <input name="day" id="day" type="text" size="2" maxlength="2" value="<?= $register_data['day'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /><?php get_lang('day'); ?> |
422 | | - <select name="month" id="month" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>> |
423 | | - <option value=""><?php get_lang('select'); ?></option> |
424 | | - <?php for ($i = 1; $i <= 12; $i++) |
| 421 | + <input name="day" id="day" type="text" size="2" maxlength="2" value="<?= $register_data['day']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /><?php get_lang( 'day' ); ?> |
| 422 | + <select name="month" id="month" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>> |
| 423 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 424 | + <?php for ( $i = 1; $i <= 12; $i++ ) |
425 | 425 | { |
426 | | - if ($register_data['month'] == $i) |
427 | | - echo '<option value="'. $i . '" selected="selected">'. $lang_register_form['months'][$i] . '</option>'."\n"; |
| 426 | + if ( $register_data['month'] == $i ) |
| 427 | + echo '<option value="' . $i . '" selected="selected">' . $lang_register_form['months'][$i] . '</option>' . "\n"; |
428 | 428 | else |
429 | | - echo '<option value="'. $i . '">'. $lang_register_form['months'][$i] . '</option>'."\n"; |
430 | | - }?> |
| 429 | + echo '<option value="' . $i . '">' . $lang_register_form['months'][$i] . '</option>' . "\n"; |
| 430 | + } ?> |
431 | 431 | </select> |
432 | | - <?php get_lang('year1'); ?> <input name="year" id="year" type="text" size="4" maxlength="4" id="year" value="<?= $register_data['year'];?>" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?> /><?php get_lang('year'); ?> |
| 432 | + <?php get_lang( 'year1' ); ?> <input name="year" id="year" type="text" size="4" maxlength="4" id="year" value="<?= $register_data['year']; ?>" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?> /><?php get_lang( 'year' ); ?> |
433 | 433 | </td> |
434 | 434 | </tr> |
435 | 435 | <tr> |
436 | | - <td><?php create_label('countryofbirth',True)?></td> |
| 436 | + <td><?php create_label( 'countryofbirth', True )?></td> |
437 | 437 | <td> |
438 | | - <select name="countryofbirth" id="countryofbirth" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>> |
439 | | - <option value=""><?php get_lang('select'); ?></option> |
440 | | - <?php foreach ($lang_countries as $lang_country => $lang_country_name) |
| 438 | + <select name="countryofbirth" id="countryofbirth" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>> |
| 439 | + <option value=""><?php get_lang( 'select' ); ?></option> |
| 440 | + <?php foreach ( $lang_countries as $lang_country => $lang_country_name ) |
441 | 441 | { |
442 | | - if ($register_data['countryofbirth'] == $lang_country) |
443 | | - echo '<option value="'. $lang_country . '" selected="selected">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
| 442 | + if ( $register_data['countryofbirth'] == $lang_country ) |
| 443 | + echo '<option value="' . $lang_country . '" selected="selected">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
444 | 444 | else |
445 | | - echo '<option value="'. $lang_country . '">'. $lang_country_name . ' (' . $lang_country . ')</option>'."\n"; |
446 | | - }?> |
| 445 | + echo '<option value="' . $lang_country . '">' . $lang_country_name . ' (' . $lang_country . ')</option>' . "\n"; |
| 446 | + } ?> |
447 | 447 | </select> |
448 | 448 | </td> |
449 | 449 | </tr> |
450 | 450 | <tr> |
451 | | - <td><?php create_label('homeaddress',True) ?></td> |
| 451 | + <td><?php create_label( 'homeaddress', True ) ?></td> |
452 | 452 | <td> |
453 | | - <textarea name="homeaddress" id="homeaddress" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>><?= $register_data['homeaddress'] ?></textarea> |
| 453 | + <textarea name="homeaddress" id="homeaddress" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>><?= $register_data['homeaddress'] ?></textarea> |
454 | 454 | </td> |
455 | 455 | </tr> |
456 | 456 | <tr> |
457 | | - <td><?php create_label('visa_assistance_description',True) ?></td> |
| 457 | + <td><?php create_label( 'visa_assistance_description', True ) ?></td> |
458 | 458 | <td> |
459 | | - <textarea name="visa_assistance_description" id="visa_assistance_description" <?php if (!$register_data['visa_assistance']) echo 'disabled=True';?>><?= $register_data['visa_assistance_description'] ?></textarea> |
| 459 | + <textarea name="visa_assistance_description" id="visa_assistance_description" <?php if ( !$register_data['visa_assistance'] ) echo 'disabled=True'; ?>><?= $register_data['visa_assistance_description'] ?></textarea> |
460 | 460 | </td> |
461 | 461 | </tr> |
462 | 462 | <tr> |
463 | | - <th colspan="2"><?php get_lang('title5');?></th> |
| 463 | + <th colspan="2"><?php get_lang( 'title5' ); ?></th> |
464 | 464 | </tr> |
465 | 465 | <tr> |
466 | | - <td><?php create_label('accommodation'); ?></td> |
467 | | - <td> |
| 466 | + <td><?php create_label( 'accommodation' ); ?></td> |
| 467 | + <td> |
468 | 468 | <?php |
469 | | - for ($i = 1; $i <=8; $i++) |
| 469 | + for ( $i = 1; $i <= 8; $i++ ) |
470 | 470 | { |
471 | | - if (in_array($i, $register_data['nights'])) |
472 | | - echo '<input type="checkbox" value="'. $i .'" name="nights[]" id="night'.$i.'" checked="checked"/>'; |
473 | | - else |
474 | | - echo '<input type="checkbox" value="'. $i .'" name="nights[]" id="night'.$i.'" />'; |
475 | | - create_label('night'. $i); |
| 471 | + if ( in_array( $i, $register_data['nights'] ) ) |
| 472 | + echo '<input type="checkbox" value="' . $i . '" name="nights[]" id="night' . $i . '" checked="checked"/>'; |
| 473 | + else |
| 474 | + echo '<input type="checkbox" value="' . $i . '" name="nights[]" id="night' . $i . '" />'; |
| 475 | + create_label( 'night' . $i ); |
476 | 476 | echo "<br>"; |
477 | | - }?> |
| 477 | + } ?> |
478 | 478 | </td> |
479 | 479 | </tr> |
480 | 480 | <tr> |
481 | | - <td><?php get_lang('room'); ?></td> |
| 481 | + <td><?php get_lang( 'room' ); ?></td> |
482 | 482 | <td> |
483 | | - <input type="radio" value="1" name="room" id="room1" <?php if ($register_data['room'] == 1) echo 'checked="checked"';?> onclick='disable(["room_partner"])'/> <?php create_label('room1');?><br> |
484 | | - <input type="radio" value="2" name="room" id="room2" <?php if ($register_data['room'] == 2) echo 'checked="checked"';?> onclick='disable(["room_partner"])' /> <?php create_label('room2');?><br> |
485 | | - <input type="radio" value="3" name="room" id="room3" <?php if ($register_data['room'] == 3) echo 'checked="checked"';?> onclick='enable(["room_partner"])' /> <?php create_label('room3');?> |
486 | | - <input name="room_partner" id="room_partner" type="text" value="<?= $register_data['room_partner'];?>" <?php if (!$register_data['room'] == 3) echo 'disabled=True';?> /> |
| 483 | + <input type="radio" value="1" name="room" id="room1" <?php if ( $register_data['room'] == 1 ) echo 'checked="checked"'; ?> onclick='disable(["room_partner"])'/> <?php create_label( 'room1' ); ?><br> |
| 484 | + <input type="radio" value="2" name="room" id="room2" <?php if ( $register_data['room'] == 2 ) echo 'checked="checked"'; ?> onclick='disable(["room_partner"])' /> <?php create_label( 'room2' ); ?><br> |
| 485 | + <input type="radio" value="3" name="room" id="room3" <?php if ( $register_data['room'] == 3 ) echo 'checked="checked"'; ?> onclick='enable(["room_partner"])' /> <?php create_label( 'room3' ); ?> |
| 486 | + <input name="room_partner" id="room_partner" type="text" value="<?= $register_data['room_partner']; ?>" <?php if ( !$register_data['room'] == 3 ) echo 'disabled=True'; ?> /> |
487 | 487 | </td> |
488 | 488 | </tr> |
489 | 489 | <tr> |
490 | | - <td><?php create_label('room_requests',True) ?></td> |
| 490 | + <td><?php create_label( 'room_requests', True ) ?></td> |
491 | 491 | <td> |
492 | 492 | <textarea name="room_requests" id="room_requests"><?= $register_data['room_requests'] ?></textarea> |
493 | 493 | </td> |
494 | 494 | </tr> |
495 | 495 | <tr> |
496 | | - <td><?php create_label('accommodation_hotel'); ?></td> |
| 496 | + <td><?php create_label( 'accommodation_hotel' ); ?></td> |
497 | 497 | <td> |
498 | | - <input type="radio" value="1" name="hotels" id="hotel1" <?php if ($register_data['hotels'] == 1) echo 'checked="checked"';?> disabled=True/> |
499 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Dorms" onClick="return popup(this, 'hotel1')"><?php create_label('hotel1');?></a><br> |
500 | | - <?php get_lang('hotel3stars');?>:<br> |
501 | | - <input type="radio" value="2" name="hotels" id="hotel2" <?php if ($register_data['hotels'] == 2) echo 'checked="checked"';?> disabled=True/> |
502 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Three_Stars_Hotels#Dan_Gardens_.28.2A.2A.2A.29" onClick="return popup(this, 'hotel2')"><?php create_label('hotel2');?></a><br> |
503 | | - <?php get_lang('hotel4stars');?>:<br> |
504 | | - <input type="radio" value="4" name="hotels" id="hotel4" <?php if ($register_data['hotels'] == 4) echo 'checked="checked"';?> disabled=True/> |
505 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Four_Stars_Hotels#Mount_Carmel_.28.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel4')"><?php create_label('hotel4');?></a><br> |
506 | | - <input type="radio" value="5" name="hotels" id="hotel5" <?php if ($register_data['hotels'] == 5) echo 'checked="checked"';?> disabled=True/> |
507 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Four_Stars_Hotels#Nof_.28.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel5')"><?php create_label('hotel5');?></a><br> |
508 | | - <?php get_lang('hotel5stars');?>:<br> |
509 | | - <input type="radio" value="6" name="hotels" id="hotel6" <?php if ($register_data['hotels'] == 6) echo 'checked="checked"';?>/> |
510 | | - <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Five_Stars_Hotels#Dan_Panorama_.28.2A.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel6')"><?php create_label('hotel6');?></a><br> |
| 498 | + <input type="radio" value="1" name="hotels" id="hotel1" <?php if ( $register_data['hotels'] == 1 ) echo 'checked="checked"'; ?> disabled=True/> |
| 499 | + <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Dorms" onClick="return popup(this, 'hotel1')"><?php create_label( 'hotel1' ); ?></a><br> |
| 500 | + <?php get_lang( 'hotel3stars' ); ?>:<br> |
| 501 | + <input type="radio" value="2" name="hotels" id="hotel2" <?php if ( $register_data['hotels'] == 2 ) echo 'checked="checked"'; ?> disabled=True/> |
| 502 | + <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Three_Stars_Hotels#Dan_Gardens_.28.2A.2A.2A.29" onClick="return popup(this, 'hotel2')"><?php create_label( 'hotel2' ); ?></a><br> |
| 503 | + <?php get_lang( 'hotel4stars' ); ?>:<br> |
| 504 | + <input type="radio" value="4" name="hotels" id="hotel4" <?php if ( $register_data['hotels'] == 4 ) echo 'checked="checked"'; ?> disabled=True/> |
| 505 | + <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Four_Stars_Hotels#Mount_Carmel_.28.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel4')"><?php create_label( 'hotel4' ); ?></a><br> |
| 506 | + <input type="radio" value="5" name="hotels" id="hotel5" <?php if ( $register_data['hotels'] == 5 ) echo 'checked="checked"'; ?> disabled=True/> |
| 507 | + <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Four_Stars_Hotels#Nof_.28.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel5')"><?php create_label( 'hotel5' ); ?></a><br> |
| 508 | + <?php get_lang( 'hotel5stars' ); ?>:<br> |
| 509 | + <input type="radio" value="6" name="hotels" id="hotel6" <?php if ( $register_data['hotels'] == 6 ) echo 'checked="checked"'; ?>/> |
| 510 | + <a href="http://wikimania2011.wikimedia.org/wiki/Accommodation/Five_Stars_Hotels#Dan_Panorama_.28.2A.2A.2A.2A.2A.29" onClick="return popup(this, 'hotel6')"><?php create_label( 'hotel6' ); ?></a><br> |
511 | 511 | <?php |
512 | 512 | ?> |
513 | 513 | </td> |
514 | 514 | </tr> |
515 | 515 | <tr> |
516 | | - <th colspan="2"><?php get_lang('title6');?></th> |
| 516 | + <th colspan="2"><?php get_lang( 'title6' ); ?></th> |
517 | 517 | </tr> |
518 | 518 | <tr> |
519 | | - <td><?php create_label('discount_code')?></td> |
| 519 | + <td><?php create_label( 'discount_code' )?></td> |
520 | 520 | <td> |
521 | | - <input type="text" name="discount_code" id="discount_code" size="24" value="<?= $register_data['discount_code'];?>"> |
| 521 | + <input type="text" name="discount_code" id="discount_code" size="24" value="<?= $register_data['discount_code']; ?>"> |
522 | 522 | </td> |
523 | 523 | </tr> |
524 | 524 | <tr> |
525 | | - <th colspan="2"><?php get_lang('title7');?></th> |
| 525 | + <th colspan="2"><?php get_lang( 'title7' ); ?></th> |
526 | 526 | </tr> |
527 | 527 | <tr> |
528 | | - <td><?php create_label('captcha')?></td> |
| 528 | + <td><?php create_label( 'captcha' )?></td> |
529 | 529 | <td> |
530 | | - <?php |
531 | | - require_once('recaptchalib.php'); |
532 | | - echo recaptcha_get_html($recaptcha_publickey); |
| 530 | + <?php |
| 531 | + require_once( 'recaptchalib.php' ); |
| 532 | + echo recaptcha_get_html( $recaptcha_publickey ); |
533 | 533 | ?> |
534 | 534 | </td> |
535 | 535 | </tr> |
— | — | @@ -537,22 +537,22 @@ |
538 | 538 | |
539 | 539 | |
540 | 540 | <ul id="submit_notice"> |
541 | | -<?php get_lang('submit_notice'); ?> |
542 | | -<?php get_lang('asterix_meaning'); ?> |
| 541 | +<?php get_lang( 'submit_notice' ); ?> |
| 542 | +<?php get_lang( 'asterix_meaning' ); ?> |
543 | 543 | </ul> |
544 | 544 | |
545 | 545 | <div id="button"> |
546 | | - <input type="submit" name="submit" value="<?php get_lang('submit'); ?>" /> |
547 | | - <input type="reset" name="reset" value="<?php get_lang('reset'); ?>" /> |
| 546 | + <input type="submit" name="submit" value="<?php get_lang( 'submit' ); ?>" /> |
| 547 | + <input type="reset" name="reset" value="<?php get_lang( 'reset' ); ?>" /> |
548 | 548 | <input type="hidden" name="uselang" value="<?= $userLanguage?>" /> |
549 | 549 | <input type="hidden" name="action" value="confirm" /> |
550 | | - <?php if(!$_COOKIE['wikimania']) |
551 | | - echo '<input type="hidden" name="secret_id" value="'.$my_session->handle.'" />'; |
| 550 | + <?php if ( !$_COOKIE['wikimania'] ) |
| 551 | + echo '<input type="hidden" name="secret_id" value="' . $my_session->handle . '" />'; |
552 | 552 | ?> |
553 | 553 | </div> |
554 | | -</form> |
| 554 | +</form> |
555 | 555 | <?php |
556 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 556 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
557 | 557 | { |
558 | 558 | echo '</div>'; |
559 | | -}?> |
| 559 | +} ?> |
Index: trunk/wikimania/wmreg/skin/query_result.php |
— | — | @@ -1,16 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $error_message, $register_data, $lang_query, $lang_register_form, $lang_errors; |
9 | 9 | |
10 | 10 | /* Fix XSS */ |
11 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 11 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
12 | 12 | ?> |
13 | 13 | <?php |
14 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 14 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
15 | 15 | { |
16 | 16 | echo '<div dir="rtl">'; |
17 | 17 | } |
— | — | @@ -18,43 +18,43 @@ |
19 | 19 | |
20 | 20 | <p id="special_pages"> |
21 | 21 | <?php |
22 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 22 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
23 | 23 | { |
24 | 24 | echo '<div align="left">'; |
25 | | -}?> |
26 | | -<a href="<?php echo $myself_url.'index.php'?>" |
| 25 | +} ?> |
| 26 | +<a href="<?php echo $myself_url . 'index.php'?>" |
27 | 27 | title="Return to Registration form">Registration Form</a> | <a |
28 | | - href="<?php echo $myself_url.'index.php?action=admin'?>" |
| 28 | + href="<?php echo $myself_url . 'index.php?action=admin'?>" |
29 | 29 | title="Enter the managment system">Admin</a><?php |
30 | | - if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 30 | + if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
31 | 31 | { |
32 | 32 | echo '</div>'; |
33 | 33 | } |
34 | 34 | ?> |
35 | 35 | </p> |
36 | | -<h1><?php echo $lang_query['query_title'];?></h1> |
| 36 | +<h1><?php echo $lang_query['query_title']; ?></h1> |
37 | 37 | <p> |
38 | | -<?php echo preg_replace('/(.+)/',$lang_query['your_status'], $register_data['given_name'] . ' ' . $register_data['surname']); ?> |
| 38 | +<?php echo preg_replace( '/(.+)/', $lang_query['your_status'], $register_data['given_name'] . ' ' . $register_data['surname'] ); ?> |
39 | 39 | </p> |
40 | 40 | <br> |
41 | 41 | <p> |
42 | | -<?php echo $lang_query['unique_code'] . ' <b>' . $register_data['unique_code'].'</b>';?> |
| 42 | +<?php echo $lang_query['unique_code'] . ' <b>' . $register_data['unique_code'] . '</b>'; ?> |
43 | 43 | </p> |
44 | 44 | <br> |
45 | 45 | <p> |
46 | | -<?php echo $lang_query['received_money'] . ' <br> <b>' . $register_data['cost_paid'].' out of '. $register_data['cost_total'] . ' ' . $register_data['currency'] . '</b>'; |
47 | | -if($register_data['cost_paid']<$register_data['cost_total']) { |
48 | | - echo ' ('.$lang_query['lack'].')'; |
| 46 | +<?php echo $lang_query['received_money'] . ' <br> <b>' . $register_data['cost_paid'] . ' out of ' . $register_data['cost_total'] . ' ' . $register_data['currency'] . '</b>'; |
| 47 | +if ( $register_data['cost_paid'] < $register_data['cost_total'] ) { |
| 48 | + echo ' (' . $lang_query['lack'] . ')'; |
49 | 49 | include 'skin/paypal.php'; |
50 | 50 | } |
51 | 51 | |
52 | | -if($register_data['cost_paid']==$register_data['cost_total']) echo ' ('.$lang_query['enough'].')'; |
53 | | -if($register_data['cost_paid']>$register_data['cost_total']) echo ' ('.$lang_query['too_much'].')'; |
| 52 | +if ( $register_data['cost_paid'] == $register_data['cost_total'] ) echo ' (' . $lang_query['enough'] . ')'; |
| 53 | +if ( $register_data['cost_paid'] > $register_data['cost_total'] ) echo ' (' . $lang_query['too_much'] . ')'; |
54 | 54 | ?> |
55 | 55 | </p> |
56 | 56 | <br><br> |
57 | 57 | <p> |
58 | | -<?php switch($register_data['status']) |
| 58 | +<?php switch( $register_data['status'] ) |
59 | 59 | { |
60 | 60 | case 0: |
61 | 61 | echo $lang_query['not_yet']; |
— | — | @@ -65,11 +65,11 @@ |
66 | 66 | case 2: |
67 | 67 | echo $lang_query['rejected']; |
68 | 68 | break; |
69 | | -}?> |
| 69 | +} ?> |
70 | 70 | </p> |
71 | 71 | <?php |
72 | 72 | |
73 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 73 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
74 | 74 | { |
75 | 75 | echo '</div>'; |
76 | | -}?> |
\ No newline at end of file |
| 76 | +} ?> |
\ No newline at end of file |
Index: trunk/wikimania/wmreg/skin/query.php |
— | — | @@ -1,36 +1,36 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $error_message, $register_data, $lang_query, $lang_register_form, $lang_errors; |
9 | 9 | |
10 | 10 | /* Fix XSS */ |
11 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 11 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
12 | 12 | |
13 | 13 | ?> |
14 | 14 | <?php |
15 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 15 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
16 | 16 | { |
17 | 17 | echo '<div dir="rtl">'; |
18 | 18 | } |
19 | 19 | ?> |
20 | | -<h1><?php echo $lang_register_form['query'];?></h1> |
| 20 | +<h1><?php echo $lang_register_form['query']; ?></h1> |
21 | 21 | <p id="special_pages"><?php |
22 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 22 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
23 | 23 | { |
24 | 24 | echo '<div align="left">'; |
25 | | -}?><a href="<?php echo $myself_url.'index.php?uselang='.$userLanguage?>" |
| 25 | +} ?><a href="<?php echo $myself_url . 'index.php?uselang=' . $userLanguage?>" |
26 | 26 | title="Return to Registration form">Registration Form</a> | <a |
27 | | - href="<?php echo $myself_url.'index.php?action=admin'?>" |
| 27 | + href="<?php echo $myself_url . 'index.php?action=admin'?>" |
28 | 28 | title="Enter the managment System">Admin</a><?php |
29 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 29 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
30 | 30 | { |
31 | 31 | echo '</div>'; |
32 | | -}?></p> |
33 | | -<?php if ($error_message != 0) |
34 | | -echo '<div id="correction">'."\n".'<p>'.$lang_errors['wrong_query'].'</p>'."\n".'</div>'."\n"; |
| 32 | +} ?></p> |
| 33 | +<?php if ( $error_message != 0 ) |
| 34 | +echo '<div id="correction">' . "\n" . '<p>' . $lang_errors['wrong_query'] . '</p>' . "\n" . '</div>' . "\n"; |
35 | 35 | ?> |
36 | 36 | <form method="post" action="<?php echo $myself_url?>index.php"> |
37 | 37 | |
— | — | @@ -42,29 +42,29 @@ |
43 | 43 | <tr> |
44 | 44 | <td><label for="given_name" class="col_title"><?php echo $lang_register_form['given_name']?></label></td> |
45 | 45 | <td><input name="given_name" type="text" size="20" id="given_name" |
46 | | - value="<?php echo $register_data['given_name'];?>" /></td> |
| 46 | + value="<?php echo $register_data['given_name']; ?>" /></td> |
47 | 47 | </tr> |
48 | 48 | <tr> |
49 | 49 | <td><label for="surname" class="col_title"><?php echo $lang_register_form['surname']?></label></td> |
50 | 50 | <td><input name="surname" type="text" size="20" id="surname" |
51 | | - value="<?php echo $register_data['surname'];?>" /></td> |
| 51 | + value="<?php echo $register_data['surname']; ?>" /></td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | 54 | <td><label for="unique_code" class="col_title"><?php echo $lang_query['unique_code'] ?></label></td> |
55 | 55 | <td><input name="unique_code" type="text" id="u_code" size="5" |
56 | | - value="<?php echo $register_data['unique_code'];?>" /></td> |
| 56 | + value="<?php echo $register_data['unique_code']; ?>" /></td> |
57 | 57 | </tr> |
58 | 58 | </table> |
59 | 59 | <div id="button"> |
60 | | -<input type="submit" name="Submit" value="<?php echo $lang_query['submit']?>" /> |
| 60 | +<input type="submit" name="Submit" value="<?php echo $lang_query['submit']?>" /> |
61 | 61 | <input type="reset" name="reset" id="reset" value="<?php echo $lang_register_form['reset']?>" /> |
62 | | -<input type="hidden" name="uselang" value="<?php echo $userLanguage;?>" /> |
63 | | -<input type="hidden" name="action" value="query_result" /> |
64 | | -<?php if(!$_COOKIE['wikimania']) echo '<input type="hidden" name="secret_id" value="'.$my_session->handle.'" />'; ?> |
| 62 | +<input type="hidden" name="uselang" value="<?php echo $userLanguage; ?>" /> |
| 63 | +<input type="hidden" name="action" value="query_result" /> |
| 64 | +<?php if ( !$_COOKIE['wikimania'] ) echo '<input type="hidden" name="secret_id" value="' . $my_session->handle . '" />'; ?> |
65 | 65 | </div> |
66 | 66 | </form> |
67 | 67 | <?php |
68 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 68 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
69 | 69 | { |
70 | 70 | echo '</div>'; |
71 | | -}?> |
\ No newline at end of file |
| 71 | +} ?> |
\ No newline at end of file |
Index: trunk/wikimania/wmreg/skin/admin_interface.php |
— | — | @@ -1,37 +1,37 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('nothing here!'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'nothing here!' ); } |
6 | 6 | |
7 | 7 | include_once 'includes/language_en.php'; |
8 | 8 | |
9 | 9 | global $myself_url, $register_data, $table_data, $lang_countries, $error_message, $lang_register_form; |
10 | 10 | |
11 | | -function get_percentage($number) { |
| 11 | +function get_percentage( $number ) { |
12 | 12 | global $register_data; |
13 | | - if ($register_data['total_people'] == 0) return '0.0%'; |
14 | | - else return number_format($number / $register_data['total_people'] * 100, 1).'%'; |
| 13 | + if ( $register_data['total_people'] == 0 ) return '0.0%'; |
| 14 | + else return number_format( $number / $register_data['total_people'] * 100, 1 ) . '%'; |
15 | 15 | } |
16 | 16 | /* Fix XSS */ |
17 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 17 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
18 | 18 | |
19 | | -$cloth_sizes = array(NULL, 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL'); |
| 19 | +$cloth_sizes = array( NULL, 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL' ); |
20 | 20 | |
21 | | -$parameters = $myself_url.'index.php?action=admin'; |
22 | | -$parameters2 = $myself_url.'index.php?action=admin'; |
| 21 | +$parameters = $myself_url . 'index.php?action=admin'; |
| 22 | +$parameters2 = $myself_url . 'index.php?action=admin'; |
23 | 23 | |
24 | | -if ($MY_REQUEST['page']) |
25 | | -{ $parameters .= '&page='.urlencode($MY_REQUEST['page']); } |
| 24 | +if ( $MY_REQUEST['page'] ) |
| 25 | +{ $parameters .= '&page=' . urlencode( $MY_REQUEST['page'] ); } |
26 | 26 | |
27 | | -if ($MY_REQUEST['keyword']) |
| 27 | +if ( $MY_REQUEST['keyword'] ) |
28 | 28 | { |
29 | | - $parameters .= '&keyword='.urlencode($MY_REQUEST['keyword']).'&filter='.urlencode($MY_REQUEST['filter']); |
30 | | - $parameters2 .= '&keyword='.urlencode($MY_REQUEST['keyword']).'&filter='.urlencode($MY_REQUEST['filter']); |
| 29 | + $parameters .= '&keyword=' . urlencode( $MY_REQUEST['keyword'] ) . '&filter=' . urlencode( $MY_REQUEST['filter'] ); |
| 30 | + $parameters2 .= '&keyword=' . urlencode( $MY_REQUEST['keyword'] ) . '&filter=' . urlencode( $MY_REQUEST['filter'] ); |
31 | 31 | } |
32 | | -$parameters2 .= '&mode='.urlencode($MY_REQUEST['mode']); |
| 32 | +$parameters2 .= '&mode=' . urlencode( $MY_REQUEST['mode'] ); |
33 | 33 | |
34 | | -$parameters .= '&real='.urlencode($MY_REQUEST['real']); |
35 | | -$parameters2 .= '&real='.urlencode($MY_REQUEST['real']); |
| 34 | +$parameters .= '&real=' . urlencode( $MY_REQUEST['real'] ); |
| 35 | +$parameters2 .= '&real=' . urlencode( $MY_REQUEST['real'] ); |
36 | 36 | ?> |
37 | 37 | |
38 | 38 | <script type="text/javascript" src="jquery-1.4.3.min.js"></script> |
— | — | @@ -74,19 +74,19 @@ |
75 | 75 | $("#u_code").val(unique_code); |
76 | 76 | |
77 | 77 | for (var i=1; i<=6; i++) |
78 | | - { |
| 78 | + { |
79 | 79 | if (join_date.indexOf(i) != -1) $("#j"+i).attr("checked", "checked"); |
80 | 80 | else $("#j"+i).removeAttr("checked"); |
81 | 81 | } |
82 | 82 | for (var i=1; i<=8; i++) |
83 | | - { |
| 83 | + { |
84 | 84 | if (nights.indexOf(i) != -1) $("#n"+i).attr("checked", "checked"); |
85 | 85 | else $("#n"+i).removeAttr("checked"); |
86 | 86 | } |
87 | | - |
| 87 | + |
88 | 88 | $("#h"+hotel).attr("checked", "checked"); |
89 | 89 | $("#room_number").val(room_number); |
90 | | - $("#vips"+coupon).attr("selected", "selected"); |
| 90 | + $("#vips"+coupon).attr("selected", "selected"); |
91 | 91 | } |
92 | 92 | |
93 | 93 | function radiocheck(num) |
— | — | @@ -114,47 +114,47 @@ |
115 | 115 | <h1>Wikimania 2011 administration interface</h1> |
116 | 116 | |
117 | 117 | <p id="special_pages">Signed in as <strong> <?php echo $_SESSION['user_id']?></strong> |
118 | | -| <a href="<?php echo $myself_url.'index.php?action=logout'?>" |
| 118 | +| <a href="<?php echo $myself_url . 'index.php?action=logout'?>" |
119 | 119 | title="Exit the admin interface and log out">Logout</a></p> |
120 | 120 | |
121 | | -<?php if (!empty($error_message)) |
| 121 | +<?php if ( !empty( $error_message ) ) |
122 | 122 | { |
123 | | - echo '<div id="correction">'."\n".$error_message."\n".'</div>'."\n"; |
| 123 | + echo '<div id="correction">' . "\n" . $error_message . "\n" . '</div>' . "\n"; |
124 | 124 | } |
125 | 125 | ?> |
126 | 126 | |
127 | 127 | <h3>List and statistics</h3> |
128 | 128 | |
129 | | -<?php if($register_data['total_keyword']) {?> |
| 129 | +<?php if ( $register_data['total_keyword'] ) { ?> |
130 | 130 | <p>Found <strong><?php echo $register_data['total_keyword']?></strong> |
131 | | -registrant(s). <a href="<?php echo $myself_url;?>?action=admin" |
| 131 | +registrant(s). <a href="<?php echo $myself_url; ?>?action=admin" |
132 | 132 | title="End search and display all of the data">Clear search result</a> |
133 | 133 | <?php |
134 | | -} |
135 | | -else {?> |
136 | | -<p><strong><?php echo $register_data['total_people'];?> |
| 134 | +} |
| 135 | +else { ?> |
| 136 | +<p><strong><?php echo $register_data['total_people']; ?> |
137 | 137 | </strong> |
138 | | -registrants (<?php echo $register_data['total_people_confirmed'];?> confirmed) |
139 | | -<?php }?> |
| 138 | +registrants (<?php echo $register_data['total_people_confirmed']; ?> confirmed) |
| 139 | +<?php } ?> |
140 | 140 | |
141 | | -<form action="<?php echo $myself_url. 'index.php';?>" method="GET"> |
| 141 | +<form action="<?php echo $myself_url . 'index.php'; ?>" method="GET"> |
142 | 142 | <div id="admin_navigation"> |
143 | 143 | |
144 | 144 | <p id="search_form"> |
145 | 145 | <select name="filter"> |
146 | 146 | <option value="name" |
147 | | - <?php if ($MY_REQUEST['filter'] == 'name') echo 'selected="selected"'; ?>>Name, Wiki username</option> |
| 147 | + <?php if ( $MY_REQUEST['filter'] == 'name' ) echo 'selected="selected"'; ?>>Name, Wiki username</option> |
148 | 148 | <option value="email" |
149 | | - <?php if ($MY_REQUEST['filter'] == 'email') echo 'selected="selected"'; ?>>Mail</option> |
| 149 | + <?php if ( $MY_REQUEST['filter'] == 'email' ) echo 'selected="selected"'; ?>>Mail</option> |
150 | 150 | <option value="unique_code" |
151 | | - <?php if ($MY_REQUEST['filter'] == 'unique_code') echo 'selected="selected"'; ?>>Registration |
| 151 | + <?php if ( $MY_REQUEST['filter'] == 'unique_code' ) echo 'selected="selected"'; ?>>Registration |
152 | 152 | number</option> |
153 | | -</select> |
| 153 | +</select> |
154 | 154 | <input type="text" name="keyword" |
155 | | - value="<?php echo stripslashes(htmlspecialchars($MY_REQUEST['keyword']));?>" /> |
| 155 | + value="<?php echo stripslashes( htmlspecialchars( $MY_REQUEST['keyword'] ) ); ?>" /> |
156 | 156 | <input type="submit" value="Search" /> <input type="hidden" |
157 | 157 | name="action" value="admin" /> <input type="hidden" name="mode" |
158 | | - value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /></p> |
| 158 | + value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /></p> |
159 | 159 | |
160 | 160 | <p><a href="<?php echo $parameters?>" |
161 | 161 | title="Info like birthday, name, and ID code">General</a> | <a |
— | — | @@ -166,48 +166,48 @@ |
167 | 167 | | <a href="<?php echo $parameters?>&mode=pay" title="Payment status">Payment</a></p> |
168 | 168 | |
169 | 169 | </div> |
170 | | -<input type="checkbox" name="real" <?php if ($MY_REQUEST['real']) echo 'checked="checked"';?>/> Approved only |
| 170 | +<input type="checkbox" name="real" <?php if ( $MY_REQUEST['real'] ) echo 'checked="checked"'; ?>/> Approved only |
171 | 171 | </form> |
172 | 172 | |
173 | 173 | <p><?php |
174 | 174 | |
175 | | -switch($MY_REQUEST['mode']) |
| 175 | +switch( $MY_REQUEST['mode'] ) |
176 | 176 | { |
177 | 177 | case NULL: |
178 | | - echo 'From <strong>'.$register_data['total_countries'].'</strong> countries / '. |
179 | | - '<strong>'.$register_data['total_male'].'</strong> male ('.get_percentage($register_data['total_male']).') '. |
180 | | - '<strong>'.$register_data['total_female'].'</strong> female ('.get_percentage($register_data['total_female']).') '. |
181 | | - '<strong>'.$register_data['total_sex_other'].'</strong> decline to state sex ('.get_percentage($register_data['total_sex_other']).') '. |
182 | | - '<strong>'.$register_data['total_wikimedians'].'</strong> are Wikimedians ('.get_percentage($register_data['total_wikimedians']).') '; |
| 178 | + echo 'From <strong>' . $register_data['total_countries'] . '</strong> countries / ' . |
| 179 | + '<strong>' . $register_data['total_male'] . '</strong> male (' . get_percentage( $register_data['total_male'] ) . ') ' . |
| 180 | + '<strong>' . $register_data['total_female'] . '</strong> female (' . get_percentage( $register_data['total_female'] ) . ') ' . |
| 181 | + '<strong>' . $register_data['total_sex_other'] . '</strong> decline to state sex (' . get_percentage( $register_data['total_sex_other'] ) . ') ' . |
| 182 | + '<strong>' . $register_data['total_wikimedians'] . '</strong> are Wikimedians (' . get_percentage( $register_data['total_wikimedians'] ) . ') '; |
183 | 183 | break; |
184 | 184 | |
185 | 185 | case 'topic': |
186 | | - for ($i = 1; $i <= 6; $i++) |
187 | | - echo 'Day '.$i.' total: <strong>'.$register_data['total_day'.$i].'</strong> people ('.get_percentage($register_data['total_day'.$i]).') | '; |
| 186 | + for ( $i = 1; $i <= 6; $i++ ) |
| 187 | + echo 'Day ' . $i . ' total: <strong>' . $register_data['total_day' . $i] . '</strong> people (' . get_percentage( $register_data['total_day' . $i] ) . ') | '; |
188 | 188 | echo '<br>'; |
189 | | - for ($i = 1; $i <= 6; $i++) |
190 | | - echo $i.' days: <strong>'.$register_data['total_'.$i.'days'].'</strong> people ('.get_percentage($register_data['total_'.$i.'days']).') | '; |
| 189 | + for ( $i = 1; $i <= 6; $i++ ) |
| 190 | + echo $i . ' days: <strong>' . $register_data['total_' . $i . 'days'] . '</strong> people (' . get_percentage( $register_data['total_' . $i . 'days'] ) . ') | '; |
191 | 191 | break; |
192 | 192 | |
193 | 193 | case 'accommodation': |
194 | | - for ($i = 1; $i <= 9; $i++) |
| 194 | + for ( $i = 1; $i <= 9; $i++ ) |
195 | 195 | { |
196 | | - echo $lang_register_form['hotel' . $i] . ': <strong>'.$register_data['total_hotel' . $i].'</strong> people ('.get_percentage($register_data['total_hotel' . $i]).') '; |
197 | | - echo 'in <strong>'.$register_data['rooms_hotel' . $i].'</strong> rooms | '; |
| 196 | + echo $lang_register_form['hotel' . $i] . ': <strong>' . $register_data['total_hotel' . $i] . '</strong> people (' . get_percentage( $register_data['total_hotel' . $i] ) . ') '; |
| 197 | + echo 'in <strong>' . $register_data['rooms_hotel' . $i] . '</strong> rooms | '; |
198 | 198 | } |
199 | 199 | echo '<br>'; |
200 | | - for ($i = 0; $i <= 8; $i++) |
201 | | - echo $i.' nights: <strong>'.$register_data['total_'.$i.'nights'].'</strong> people ('.get_percentage($register_data['total_'.$i.'nights']).') | '; |
| 200 | + for ( $i = 0; $i <= 8; $i++ ) |
| 201 | + echo $i . ' nights: <strong>' . $register_data['total_' . $i . 'nights'] . '</strong> people (' . get_percentage( $register_data['total_' . $i . 'nights'] ) . ') | '; |
202 | 202 | break; |
203 | 203 | |
204 | 204 | case 'visa': |
205 | | - echo '<strong>'.$register_data['total_assist'].'</strong> people ('.get_percentage($register_data['total_assist']).') needs visa assistance'; |
| 205 | + echo '<strong>' . $register_data['total_assist'] . '</strong> people (' . get_percentage( $register_data['total_assist'] ) . ') needs visa assistance'; |
206 | 206 | break; |
207 | 207 | } |
208 | 208 | ?></p> |
209 | 209 | |
210 | 210 | |
211 | | -<form action="<?php echo $myself_url. 'index.php';?>" method="POST" |
| 211 | +<form action="<?php echo $myself_url . 'index.php'; ?>" method="POST" |
212 | 212 | onsubmit="return confirm_warning();"> |
213 | 213 | <table id="admin_table"> |
214 | 214 | <tr> |
— | — | @@ -216,12 +216,12 @@ |
217 | 217 | <th>Signup time</th> |
218 | 218 | <th>Name</th> |
219 | 219 | <th>Sex</th> |
220 | | - <?php |
221 | | - switch($MY_REQUEST['mode']){ |
| 220 | + <?php |
| 221 | + switch( $MY_REQUEST['mode'] ) { |
222 | 222 | case NULL: |
223 | 223 | echo ' |
224 | 224 | <th>E-mail</th> |
225 | | - <th>Country</th> |
| 225 | + <th>Country</th> |
226 | 226 | <th>Native lang</th> |
227 | 227 | <th>Languages</th> |
228 | 228 | <th>Username</th> |
— | — | @@ -264,7 +264,7 @@ |
265 | 265 | <th>Birthday</th> |
266 | 266 | <th>Born in</th> |
267 | 267 | <th>Address</th> |
268 | | - <th>Detail</th>'; |
| 268 | + <th>Detail</th>'; |
269 | 269 | break; |
270 | 270 | case 'pay': |
271 | 271 | echo ' |
— | — | @@ -272,175 +272,175 @@ |
273 | 273 | <th>Hotel cost</th> |
274 | 274 | <th>VAT</th> |
275 | 275 | <th>Total cost</th> |
276 | | - <th>Currency</th> |
| 276 | + <th>Currency</th> |
277 | 277 | <th>PayPal OK</th> |
278 | 278 | <th>Received</th> |
279 | 279 | <th>Coupon</th>'; |
280 | 280 | break; |
281 | | - }?> |
| 281 | + } ?> |
282 | 282 | <th>Status</th> |
283 | 283 | <!--<th>Tag</th>--> |
284 | 284 | <th id="fill_data_col">Edit</th> |
285 | 285 | </tr> |
286 | | - <?php foreach ($table_data as $data) { |
| 286 | + <?php foreach ( $table_data as $data ) { |
287 | 287 | /* I Hate XSS */ |
288 | | - $data = array_map('htmlspecialchars', $data); |
| 288 | + $data = array_map( 'htmlspecialchars', $data ); |
289 | 289 | ?> |
290 | 290 | <tr> |
291 | 291 | <td><input type="checkbox" name="no[]" |
292 | 292 | value=<?php echo $data['unique_code']; ?> /></td> |
293 | | - <td><?php echo $data['unique_code'];?></td> |
294 | | - <td><?php echo $data['signuptime'];?></td> |
295 | | - <td><?php echo $data['given_name'].' '.$data['surname'];?></td> |
296 | | - <td><?php echo $data['sex'];?></td> |
| 293 | + <td><?php echo $data['unique_code']; ?></td> |
| 294 | + <td><?php echo $data['signuptime']; ?></td> |
| 295 | + <td><?php echo $data['given_name'] . ' ' . $data['surname']; ?></td> |
| 296 | + <td><?php echo $data['sex']; ?></td> |
297 | 297 | |
298 | | - <?php |
299 | | - |
300 | | - switch($MY_REQUEST['mode']) { |
| 298 | + <?php |
| 299 | + |
| 300 | + switch( $MY_REQUEST['mode'] ) { |
301 | 301 | case NULL: |
302 | | - echo '<td>'.$data['email'].'</td>'; |
303 | | - echo '<td>'.$lang_countries[strtolower($data['country'])].'</td> |
304 | | - <td>'.$data['langn'].'</td> |
| 302 | + echo '<td>' . $data['email'] . '</td>'; |
| 303 | + echo '<td>' . $lang_countries[strtolower( $data['country'] )] . '</td> |
| 304 | + <td>' . $data['langn'] . '</td> |
305 | 305 | <td>'; |
306 | | - if ($data['lang1']) |
307 | | - echo $data['lang1'].'-'.$data['lang1-level']. ' '; |
308 | | - if ($data['lang2']) |
309 | | - echo $data['lang2'].'-'.$data['lang2-level']. ' '; |
310 | | - if ($data['lang3']) |
311 | | - echo $data['lang3'].'-'.$data['lang3-level']. ' '; |
| 306 | + if ( $data['lang1'] ) |
| 307 | + echo $data['lang1'] . '-' . $data['lang1-level'] . ' '; |
| 308 | + if ( $data['lang2'] ) |
| 309 | + echo $data['lang2'] . '-' . $data['lang2-level'] . ' '; |
| 310 | + if ( $data['lang3'] ) |
| 311 | + echo $data['lang3'] . '-' . $data['lang3-level'] . ' '; |
312 | 312 | echo '</td><td>'; |
313 | | - if ($data['wiki_id']) |
314 | | - echo $data['wiki_id'].'@'.$data['wiki_language'].'.'.$data['wiki_project']; |
| 313 | + if ( $data['wiki_id'] ) |
| 314 | + echo $data['wiki_id'] . '@' . $data['wiki_language'] . '.' . $data['wiki_project']; |
315 | 315 | echo '</td><td>'; |
316 | | - foreach(explode(',',$data['showname']) as $key => $value) |
| 316 | + foreach ( explode( ',', $data['showname'] ) as $key => $value ) |
317 | 317 | { |
318 | | - if ($value == 1) echo 'N,'; |
319 | | - if ($value == 2) echo 'U,'; |
320 | | - if ($value == 3) echo 'A(' . $data['custom_showname'] . ')'; |
321 | | - } |
| 318 | + if ( $value == 1 ) echo 'N,'; |
| 319 | + if ( $value == 2 ) echo 'U,'; |
| 320 | + if ( $value == 3 ) echo 'A(' . $data['custom_showname'] . ')'; |
| 321 | + } |
322 | 322 | echo '</td>'; |
323 | 323 | break; |
324 | 324 | case "topic": |
325 | 325 | ?> |
326 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '1') === false)) echo 'X';?></td> |
327 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '2') === false)) echo 'X';?></td> |
328 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '3') === false)) echo 'X';?></td> |
329 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '4') === false)) echo 'X';?></td> |
330 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '5') === false)) echo 'X';?></td> |
331 | | - <td class="group1"><?php if (!(strpos($data['join_date'], '6') === false)) echo 'X';?></td> |
332 | | - <td class="group1"><?php echo $data['tours'];?></td> |
| 326 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '1' ) === false ) ) echo 'X'; ?></td> |
| 327 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '2' ) === false ) ) echo 'X'; ?></td> |
| 328 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '3' ) === false ) ) echo 'X'; ?></td> |
| 329 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '4' ) === false ) ) echo 'X'; ?></td> |
| 330 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '5' ) === false ) ) echo 'X'; ?></td> |
| 331 | + <td class="group1"><?php if ( !( strpos( $data['join_date'], '6' ) === false ) ) echo 'X'; ?></td> |
| 332 | + <td class="group1"><?php echo $data['tours']; ?></td> |
333 | 333 | <?php echo |
334 | | - '<td class="group3">'.$data['size'].'</td> |
| 334 | + '<td class="group3">' . $data['size'] . '</td> |
335 | 335 | <td class="group3">'; |
336 | | - foreach(explode(',',$data['food']) as $key => $value) |
| 336 | + foreach ( explode( ',', $data['food'] ) as $key => $value ) |
337 | 337 | { |
338 | | - if ($value == 1) echo 'V'; |
339 | | - if ($value == 2) echo 'H'; |
340 | | - if ($value == 3) echo 'O(' . $data['food_other'] . ')'; |
| 338 | + if ( $value == 1 ) echo 'V'; |
| 339 | + if ( $value == 2 ) echo 'H'; |
| 340 | + if ( $value == 3 ) echo 'O(' . $data['food_other'] . ')'; |
341 | 341 | } |
342 | 342 | break; |
343 | 343 | case "accommodation": |
344 | 344 | ?> |
345 | 345 | |
346 | | - <td class="group2"><?php if (!(strpos($data['nights'], '1') === false)) echo 'X';?></td> |
347 | | - <td class="group2"><?php if (!(strpos($data['nights'], '2') === false)) echo 'X';?></td> |
348 | | - <td class="group2"><?php if (!(strpos($data['nights'], '3') === false)) echo 'X';?></td> |
349 | | - <td class="group2"><?php if (!(strpos($data['nights'], '4') === false)) echo 'X';?></td> |
350 | | - <td class="group2"><?php if (!(strpos($data['nights'], '5') === false)) echo 'X';?></td> |
351 | | - <td class="group2"><?php if (!(strpos($data['nights'], '6') === false)) echo 'X';?></td> |
352 | | - <td class="group2"><?php if (!(strpos($data['nights'], '7') === false)) echo 'X';?></td> |
353 | | - <td class="group2"><?php if (!(strpos($data['nights'], '8') === false)) echo 'X';?></td> |
354 | | - <?php |
| 346 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '1' ) === false ) ) echo 'X'; ?></td> |
| 347 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '2' ) === false ) ) echo 'X'; ?></td> |
| 348 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '3' ) === false ) ) echo 'X'; ?></td> |
| 349 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '4' ) === false ) ) echo 'X'; ?></td> |
| 350 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '5' ) === false ) ) echo 'X'; ?></td> |
| 351 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '6' ) === false ) ) echo 'X'; ?></td> |
| 352 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '7' ) === false ) ) echo 'X'; ?></td> |
| 353 | + <td class="group2"><?php if ( !( strpos( $data['nights'], '8' ) === false ) ) echo 'X'; ?></td> |
| 354 | + <?php |
355 | 355 | echo '<td class="group3">'; |
356 | 356 | echo $lang_register_form['hotel' . $data['hotels']]; |
357 | 357 | echo '</td><td class="group3">'; |
358 | | - if ($data['room'] == 1) echo 'S'; |
359 | | - if ($data['room'] == 2) echo 'T'; |
360 | | - if ($data['room'] == 3) echo 'D'; |
| 358 | + if ( $data['room'] == 1 ) echo 'S'; |
| 359 | + if ( $data['room'] == 2 ) echo 'T'; |
| 360 | + if ( $data['room'] == 3 ) echo 'D'; |
361 | 361 | echo '</td>'; |
362 | | - echo '<td class="group3">'. $data['room_partner'].'</td>'; |
363 | | - echo '<td class="group3">'. $data['room_number'].'</td>'; |
364 | | - echo '<td class="group3">'. $data['room_requests'].'</td>'; |
| 362 | + echo '<td class="group3">' . $data['room_partner'] . '</td>'; |
| 363 | + echo '<td class="group3">' . $data['room_number'] . '</td>'; |
| 364 | + echo '<td class="group3">' . $data['room_requests'] . '</td>'; |
365 | 365 | break; |
366 | 366 | case 'visa': |
367 | 367 | echo '<td class="group3">'; |
368 | | - if ($data['visa_assistance']) echo 'X'; |
369 | | - echo '<td class="group3">'. $lang_countries[strtolower($data['nationality'])].'</td>'; |
370 | | - echo '<td class="group3">'. $data['passport'].'</td>'; |
371 | | - echo '<td class="group3">'. $data['passport_valid'].'</td>'; |
372 | | - echo '<td class="group3">'. $data['passport_issued'].'</td>'; |
373 | | - echo '<td class="group3">'. $data['birthday'].'</td>'; |
374 | | - echo '<td class="group3">'. $lang_countries[strtolower($data['countryofbirth'])].'</td>'; |
375 | | - echo '<td class="group3">'. $data['homeaddress'].'</td>'; |
376 | | - echo '<td class="group3">'. $data['visa_assistance_description'].'</td>'; |
| 368 | + if ( $data['visa_assistance'] ) echo 'X'; |
| 369 | + echo '<td class="group3">' . $lang_countries[strtolower( $data['nationality'] )] . '</td>'; |
| 370 | + echo '<td class="group3">' . $data['passport'] . '</td>'; |
| 371 | + echo '<td class="group3">' . $data['passport_valid'] . '</td>'; |
| 372 | + echo '<td class="group3">' . $data['passport_issued'] . '</td>'; |
| 373 | + echo '<td class="group3">' . $data['birthday'] . '</td>'; |
| 374 | + echo '<td class="group3">' . $lang_countries[strtolower( $data['countryofbirth'] )] . '</td>'; |
| 375 | + echo '<td class="group3">' . $data['homeaddress'] . '</td>'; |
| 376 | + echo '<td class="group3">' . $data['visa_assistance_description'] . '</td>'; |
377 | 377 | break; |
378 | 378 | case 'pay': |
379 | | - echo '<td class="group3">'. $data['attendance_cost'].'</td>'; |
380 | | - echo '<td class="group3">'. $data['accommodation_cost'].'</td>'; |
381 | | - echo '<td class="group3">'. $data['vat_cost'].'</td>'; |
382 | | - echo '<td class="group3">'. $data['cost_total'].'</td>'; |
383 | | - echo '<td class="group3">'. $data['currency'].'</td>'; |
| 379 | + echo '<td class="group3">' . $data['attendance_cost'] . '</td>'; |
| 380 | + echo '<td class="group3">' . $data['accommodation_cost'] . '</td>'; |
| 381 | + echo '<td class="group3">' . $data['vat_cost'] . '</td>'; |
| 382 | + echo '<td class="group3">' . $data['cost_total'] . '</td>'; |
| 383 | + echo '<td class="group3">' . $data['currency'] . '</td>'; |
384 | 384 | echo '<td class="group3">'; |
385 | | - if ($data['paypal'] == 1) echo 'X'; |
| 385 | + if ( $data['paypal'] == 1 ) echo 'X'; |
386 | 386 | echo '</td>'; |
387 | | - echo '<td class="group3">'. $data['cost_paid'].'</td>'; |
| 387 | + echo '<td class="group3">' . $data['cost_paid'] . '</td>'; |
388 | 388 | // @todo make this into a *type of discount_code* field |
389 | | - echo '<td class="group3">' . $data['discount_code'].'</td>'; |
| 389 | + echo '<td class="group3">' . $data['discount_code'] . '</td>'; |
390 | 390 | } // switch |
391 | 391 | echo '<td>'; |
392 | | - if ($data['status'] == 1) echo '√'; |
393 | | - if ($data['status'] == 2) echo 'X'; |
| 392 | + if ( $data['status'] == 1 ) echo '√'; |
| 393 | + if ( $data['status'] == 2 ) echo 'X'; |
394 | 394 | echo '</td>'; |
395 | | - echo '<td><a href="#" class="fill_data_link" onclick="fill_data(\''.addslashes($data['surname']).'\',\''.addslashes($data['given_name']).'\',\''.$data['unique_code'].'\',\''.$data['join_date'].'\',\''.$data['nights'].'\',\''.$data['hotels'].'\',\''.$data['room_number'].'\')">Edit</a></td>'; |
| 395 | + echo '<td><a href="#" class="fill_data_link" onclick="fill_data(\'' . addslashes( $data['surname'] ) . '\',\'' . addslashes( $data['given_name'] ) . '\',\'' . $data['unique_code'] . '\',\'' . $data['join_date'] . '\',\'' . $data['nights'] . '\',\'' . $data['hotels'] . '\',\'' . $data['room_number'] . '\')">Edit</a></td>'; |
396 | 396 | echo '</tr>'; |
397 | | - } //foreach ?> |
| 397 | + } // foreach ?> |
398 | 398 | |
399 | 399 | </table> |
400 | 400 | <p id="page"><?php |
401 | 401 | /* @todo Another dirty and quick work... */ |
402 | | - if ($MY_REQUEST['keyword']) |
403 | | - { $total_page = ceil($register_data['total_keyword'] / $register_data['per_page']); } |
| 402 | + if ( $MY_REQUEST['keyword'] ) |
| 403 | + { $total_page = ceil( $register_data['total_keyword'] / $register_data['per_page'] ); } |
404 | 404 | else |
405 | | - { $total_page = ceil($register_data['total_people'] / $register_data['per_page']); } |
406 | | - |
407 | | - if ($register_data['page'] >= 5) |
408 | | - { echo '<a href="'.$parameters2.'&page=1" title="Go to page 1">1</a> '; } |
409 | | - if ($register_data['page'] >= 6) |
| 405 | + { $total_page = ceil( $register_data['total_people'] / $register_data['per_page'] ); } |
| 406 | + |
| 407 | + if ( $register_data['page'] >= 5 ) |
| 408 | + { echo '<a href="' . $parameters2 . '&page=1" title="Go to page 1">1</a> '; } |
| 409 | + if ( $register_data['page'] >= 6 ) |
410 | 410 | { echo '... '; } |
411 | | - for ($i = max(1, $register_data['page'] - 3); ($i < $register_data['page']); $i++) |
| 411 | + for ( $i = max( 1, $register_data['page'] - 3 ); ( $i < $register_data['page'] ); $i++ ) |
412 | 412 | { |
413 | | - echo '<a href="'.$parameters2.'&page='.($i).'" title="Go to page'.($i).'">'.($i).'</a> '; |
| 413 | + echo '<a href="' . $parameters2 . '&page=' . ( $i ) . '" title="Go to page' . ( $i ) . '">' . ( $i ) . '</a> '; |
414 | 414 | } |
415 | | - echo '<strong>'.$register_data['page'].'</strong> '; |
416 | | - |
417 | | - for ($i = $register_data['page'] + 1; ($i <= $total_page && $i <= $register_data['page'] + 3); $i++) |
| 415 | + echo '<strong>' . $register_data['page'] . '</strong> '; |
| 416 | + |
| 417 | + for ( $i = $register_data['page'] + 1; ( $i <= $total_page && $i <= $register_data['page'] + 3 ); $i++ ) |
418 | 418 | { |
419 | | - echo '<a href="'.$parameters2.'&page='.($i).'" title="Go to page '.($i).'">'.($i).'</a> '; |
| 419 | + echo '<a href="' . $parameters2 . '&page=' . ( $i ) . '" title="Go to page ' . ( $i ) . '">' . ( $i ) . '</a> '; |
420 | 420 | } |
421 | | - if ($total_page - $register_data['page'] >= 5) |
422 | | - { echo '... ';} |
| 421 | + if ( $total_page - $register_data['page'] >= 5 ) |
| 422 | + { echo '... '; } |
423 | 423 | |
424 | | - if ($total_page - $register_data['page'] >= 4) |
425 | | - { echo '<a href="'.$parameters2.'&page='.$total_page.'" title="Go to page'.$total_page.'">'.$total_page.'</a> ';} |
| 424 | + if ( $total_page - $register_data['page'] >= 4 ) |
| 425 | + { echo '<a href="' . $parameters2 . '&page=' . $total_page . '" title="Go to page' . $total_page . '">' . $total_page . '</a> '; } |
426 | 426 | ?> |
427 | 427 | </p> |
428 | 428 | |
429 | 429 | <div id="admin_form1"> |
430 | | -<p>Checked registrant(s): |
431 | | -<input type="hidden" name="modification" value="change_status" /> |
432 | | -<input type="radio" name="status" value="1" id="accept" checked="checked" /><label for="accept"> Confirm</label> |
| 430 | +<p>Checked registrant(s): |
| 431 | +<input type="hidden" name="modification" value="change_status" /> |
| 432 | +<input type="radio" name="status" value="1" id="accept" checked="checked" /><label for="accept"> Confirm</label> |
433 | 433 | <input type="radio" name="status" value="2" id="reject" /><label for="reject">Reject</label> |
434 | | -<input type="hidden" name="action" value="admin" /> |
435 | | -<input type="hidden" name="mode" value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /> |
436 | | -<input type="hidden" name="keyword" value="<?php echo htmlspecialchars($MY_REQUEST['keyword']);?>" /> |
437 | | -<input type="hidden" name="page" value="<?php echo htmlspecialchars($MY_REQUEST['page']);?>" /> |
| 434 | +<input type="hidden" name="action" value="admin" /> |
| 435 | +<input type="hidden" name="mode" value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /> |
| 436 | +<input type="hidden" name="keyword" value="<?php echo htmlspecialchars( $MY_REQUEST['keyword'] ); ?>" /> |
| 437 | +<input type="hidden" name="page" value="<?php echo htmlspecialchars( $MY_REQUEST['page'] ); ?>" /> |
438 | 438 | <input type="submit" value="OK" /></p> |
439 | 439 | </div> |
440 | 440 | </form> |
441 | 441 | </div> |
442 | 442 | |
443 | 443 | |
444 | | -<form action="<?php echo $myself_url;?>index.php" method="POST" onsubmit="return warning2();"> |
| 444 | +<form action="<?php echo $myself_url; ?>index.php" method="POST" onsubmit="return warning2();"> |
445 | 445 | <div id="admin_form2"> |
446 | 446 | <h3>Edit registrant</h3> |
447 | 447 | <p> |
— | — | @@ -451,13 +451,13 @@ |
452 | 452 | <div id="item1" class="checked_item"> |
453 | 453 | <input type="radio" name="item" value="1" checked="checked" id="item1_radio" onclick="radiocheck(1);" /> |
454 | 454 | <label for="item1_radio">Payment received</label> |
455 | | -<p>Received: <input type="text" name="cost_paid" size="5" /> |
456 | | -<input type="hidden" name="modification" value="edit_user" /> |
| 455 | +<p>Received: <input type="text" name="cost_paid" size="5" /> |
| 456 | +<input type="hidden" name="modification" value="edit_user" /> |
457 | 457 | (The amount can be negative for correction convenience) |
458 | | -<input type="hidden" name="action" value="admin" /> <input type="hidden" name="mode" value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /> |
459 | | -<input type="hidden" name="keyword" value="<?php echo htmlspecialchars($MY_REQUEST['keyword']);?>" /> |
460 | | -<input type="hidden" name="filter" value="<?php echo htmlspecialchars($MY_REQUEST['filter']);?>" /> |
461 | | -<input type="hidden" name="page" value="<?php echo htmlspecialchars($MY_REQUEST['page']);?>" /> |
| 458 | +<input type="hidden" name="action" value="admin" /> <input type="hidden" name="mode" value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /> |
| 459 | +<input type="hidden" name="keyword" value="<?php echo htmlspecialchars( $MY_REQUEST['keyword'] ); ?>" /> |
| 460 | +<input type="hidden" name="filter" value="<?php echo htmlspecialchars( $MY_REQUEST['filter'] ); ?>" /> |
| 461 | +<input type="hidden" name="page" value="<?php echo htmlspecialchars( $MY_REQUEST['page'] ); ?>" /> |
462 | 462 | </p></div> |
463 | 463 | |
464 | 464 | |
— | — | @@ -465,26 +465,26 @@ |
466 | 466 | <input type="radio" name="item" value="2" id="item2_radio" onclick="radiocheck(2);" /> |
467 | 467 | <label for="item2_radio">Date and accommodation</label> |
468 | 468 | <p>Date to participate: <br> <?php |
469 | | -for ($i = 1; $i <=6; $i++) |
| 469 | +for ( $i = 1; $i <= 6; $i++ ) |
470 | 470 | { |
471 | | - echo '<input type="checkbox" value="'.$i.'" name="join_date[]" id="j'. $i .'" />'; |
472 | | - echo '<label for="j'. $i. '">'.$lang_register_form['join'.$i].'</label><br>'; |
| 471 | + echo '<input type="checkbox" value="' . $i . '" name="join_date[]" id="j' . $i . '" />'; |
| 472 | + echo '<label for="j' . $i . '">' . $lang_register_form['join' . $i] . '</label><br>'; |
473 | 473 | } |
474 | 474 | ?> |
475 | 475 | </p> |
476 | 476 | <p>Nights: <br><?php |
477 | | -for ($i = 1; $i <=8; $i++) |
| 477 | +for ( $i = 1; $i <= 8; $i++ ) |
478 | 478 | { |
479 | | - echo '<input type="checkbox" value="'.$i.'" name="nights[]" id="n'. $i .'" />'; |
480 | | - echo '<label for="n'. $i. '">'.$lang_register_form['night'.$i].'</label><br>'; |
| 479 | + echo '<input type="checkbox" value="' . $i . '" name="nights[]" id="n' . $i . '" />'; |
| 480 | + echo '<label for="n' . $i . '">' . $lang_register_form['night' . $i] . '</label><br>'; |
481 | 481 | } |
482 | 482 | ?> |
483 | 483 | </p> |
484 | 484 | <p>Accommodation: <br><?php |
485 | | -for ($i = 1; $i <=9; $i++) |
| 485 | +for ( $i = 1; $i <= 9; $i++ ) |
486 | 486 | { |
487 | | - echo '<input type="radio" value="'.$i.'" name="hotels" id="h'.$i.'" />'; |
488 | | - echo '<label for="hotels">'.$lang_register_form['hotel'.$i].'</label><br>'; |
| 487 | + echo '<input type="radio" value="' . $i . '" name="hotels" id="h' . $i . '" />'; |
| 488 | + echo '<label for="hotels">' . $lang_register_form['hotel' . $i] . '</label><br>'; |
489 | 489 | } |
490 | 490 | ?> |
491 | 491 | </p> |
— | — | @@ -513,7 +513,7 @@ |
514 | 514 | |
515 | 515 | |
516 | 516 | <div id="admin_form3"> |
517 | | -<form enctype="multipart/form-data" action="<?php echo $myself_url;?>index.php" method="POST"> |
| 517 | +<form enctype="multipart/form-data" action="<?php echo $myself_url; ?>index.php" method="POST"> |
518 | 518 | <h3>Upload</h3> |
519 | 519 | <p>Upload accommodation data: |
520 | 520 | <input type="file" name="accommodation_file"> |
— | — | @@ -523,9 +523,9 @@ |
524 | 524 | </p> |
525 | 525 | </form> |
526 | 526 | |
527 | | -<form action="<?php echo $myself_url;?>index.php" method="POST"> |
| 527 | +<form action="<?php echo $myself_url; ?>index.php" method="POST"> |
528 | 528 | <h3>Download</h3> |
529 | | -<p> |
| 529 | +<p> |
530 | 530 | <input type="hidden" name="modification" value="get_data" /> |
531 | 531 | <input type="hidden" name="action" value="admin" /> |
532 | 532 | <input type="submit" value="Download registration data" /> as tab-separated, UTF8 encoded file. |
Index: trunk/wikimania/wmreg/skin/mail_confirmed.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | $mail_confirmed_content = <<<EOM |
8 | 8 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
— | — | @@ -14,26 +14,26 @@ |
15 | 15 | <p>Dear $1,</p> |
16 | 16 | |
17 | 17 | <p>Thank you for joining Wikimania 2011, hich will be held at the Haifa Auditorium in Haifa, Israel on August 4-7, 2011.</p> |
18 | | - |
| 18 | + |
19 | 19 | <p>Your registration has been confirmed!</p> |
20 | 20 | |
21 | 21 | <h4>Further questions</h4> |
22 | 22 | |
23 | | -<p>If you have any questions about your registration, please make sure to visit our conference website at <a href="http://wikimania2011.wikimedia.org">http://wikimania2011.wikimedia.org</a>. |
24 | | -Should you have any specific requests (including accommodation, payment, cancellation or modfications), please email the Wikiminia 2011 team at <a href="mailto:wikimania-registration@wikimedia.org" title="Send mail to wikimania-registration@wikimedia.org">wikimania-registration@wikimedia.org</a>, |
| 23 | +<p>If you have any questions about your registration, please make sure to visit our conference website at <a href="http://wikimania2011.wikimedia.org">http://wikimania2011.wikimedia.org</a>. |
| 24 | +Should you have any specific requests (including accommodation, payment, cancellation or modfications), please email the Wikiminia 2011 team at <a href="mailto:wikimania-registration@wikimedia.org" title="Send mail to wikimania-registration@wikimedia.org">wikimania-registration@wikimedia.org</a>, |
25 | 25 | with the registration details listed below.</p> |
26 | 26 | |
27 | | -<ul> |
| 27 | +<ul> |
28 | 28 | <li>Confirmation Number: $2</li> |
29 | 29 | <li>Name: $1</li> |
30 | | -<li>Email: $4</li> |
| 30 | +<li>Email: $4</li> |
31 | 31 | <li>Accommodation: $5</li> |
32 | 32 | <li>Accommodation choice: $6</li> |
33 | 33 | </ul> |
34 | 34 | |
35 | 35 | <p>We look forward to welcoming you in Haifa,</p> |
36 | 36 | |
37 | | -<p>The Wikimania 2011 team</p> |
| 37 | +<p>The Wikimania 2011 team</p> |
38 | 38 | </body> |
39 | 39 | </html> |
40 | 40 | EOM; |
Index: trunk/wikimania/wmreg/skin/html_header.php |
— | — | @@ -1,22 +1,22 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $userLanguage; |
9 | 9 | ?> |
10 | 10 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
11 | 11 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
12 | 12 | <html xmlns="http://www.w3.org/1999/xhtml" <?php |
13 | | -switch ($userLanguage) |
| 13 | +switch ( $userLanguage ) |
14 | 14 | { |
15 | 15 | case 'zh-hant': |
16 | 16 | echo 'xml:lang="zh-tw" lang="zh-tw"'; break; |
17 | 17 | case 'zh-hans': |
18 | 18 | echo 'xml:lang="zh-cn" lang="zh-cn"'; break; |
19 | 19 | default: |
20 | | -echo 'xml:lang="'.$userLanguage.'" lang="'.$userLanguage.'"'; break; |
| 20 | +echo 'xml:lang="' . $userLanguage . '" lang="' . $userLanguage . '"'; break; |
21 | 21 | } |
22 | 22 | ?> |
23 | 23 | > |
Index: trunk/wikimania/wmreg/skin/mail_successful.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | $mail_successful_content = <<<EOM |
8 | 8 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
— | — | @@ -15,25 +15,25 @@ |
16 | 16 | |
17 | 17 | <p>Thank you for joining Wikimania 2011, which will be held at the Haifa Auditorium in Haifa, Israel on August 4-7, 2011. </p> |
18 | 18 | |
19 | | -<p>We have received your registration online. This mail only indicates that your registration has been processed successfully. |
| 19 | +<p>We have received your registration online. This mail only indicates that your registration has been processed successfully. |
20 | 20 | We will send you another confirmation mail after we have verified all the details and made sure everything is fine.</p> |
21 | 21 | |
22 | 22 | <p>If you have not completed paying the registration and accommodation fee online, please complete the payment through <a href="http://wmreg.wikimedia.org.il?action=query">our registration system</a>.</p> |
23 | | -<h4>Further questions</h4> |
| 23 | +<h4>Further questions</h4> |
24 | 24 | |
25 | | -<p>If you have any questions about your registration, please make sure to visit our conference website at <a href="http://wikimania2011.wikimedia.org">http://wikimania2011.wikimedia.org</a>. |
26 | | -Should you have any specific requests (including accommodation, payment, cancellation or modfications), please email the Wikiminia 2011 team at <a href="mailto:wikimania-registration@wikimedia.org" title="Send mail to wikimania-registration@wikimedia.org">wikimania-registration@wikimedia.org</a>, |
| 25 | +<p>If you have any questions about your registration, please make sure to visit our conference website at <a href="http://wikimania2011.wikimedia.org">http://wikimania2011.wikimedia.org</a>. |
| 26 | +Should you have any specific requests (including accommodation, payment, cancellation or modfications), please email the Wikiminia 2011 team at <a href="mailto:wikimania-registration@wikimedia.org" title="Send mail to wikimania-registration@wikimedia.org">wikimania-registration@wikimedia.org</a>, |
27 | 27 | with the registration details listed below.</p> |
28 | 28 | |
29 | | -<ul> |
| 29 | +<ul> |
30 | 30 | <li>Confirmation Number: $2</li> |
31 | 31 | <li>Name: $1</li> |
32 | | -<li>Email: $3</li> |
| 32 | +<li>Email: $3</li> |
33 | 33 | </ul> |
34 | 34 | |
35 | 35 | <p>We look forward to welcoming you in Haifa,</p> |
36 | 36 | |
37 | | -<p>The Wikimania 2011 team</p> |
| 37 | +<p>The Wikimania 2011 team</p> |
38 | 38 | </body> |
39 | 39 | </html> |
40 | 40 | EOM; |
Index: trunk/wikimania/wmreg/skin/html_footer.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | ?> |
9 | 9 | <div id="footer"> |
Index: trunk/wikimania/wmreg/skin/register_successful.php |
— | — | @@ -1,17 +1,17 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | global $register_data, $lang_messages; |
9 | 9 | |
10 | 10 | /* Fix XSS */ |
11 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 11 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
12 | 12 | |
13 | 13 | ?> |
14 | 14 | <?php |
15 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 15 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
16 | 16 | { |
17 | 17 | echo '<div dir="rtl">'; |
18 | 18 | } |
Index: trunk/wikimania/wmreg/skin/admin_interface.old.php |
— | — | @@ -1,33 +1,33 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | include_once 'includes/language_zh-hant.php'; |
8 | 8 | |
9 | 9 | global $myself_url, $register_data, $table_data, $lang_countries, $error_message, $lang_register_form; |
10 | 10 | |
11 | | -function get_percentage($number) { |
| 11 | +function get_percentage( $number ) { |
12 | 12 | global $register_data; |
13 | | - if ($register_data['total_people'] == 0) return '0.0%'; |
14 | | - else return number_format($number / $register_data['total_people'] * 100, 1).'%'; |
| 13 | + if ( $register_data['total_people'] == 0 ) return '0.0%'; |
| 14 | + else return number_format( $number / $register_data['total_people'] * 100, 1 ) . '%'; |
15 | 15 | } |
16 | 16 | /* Fix XSS */ |
17 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 17 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
18 | 18 | |
19 | | -$cloth_sizes = array(NULL, 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL'); |
| 19 | +$cloth_sizes = array( NULL, 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL' ); |
20 | 20 | |
21 | | -$parameters = $myself_url.'index.php?action=admin'; |
22 | | -$parameters2 = $myself_url.'index.php?action=admin'; |
23 | | -if ($MY_REQUEST['page']) |
24 | | -{ $parameters .= '&page='.urlencode($MY_REQUEST['page']); } |
| 21 | +$parameters = $myself_url . 'index.php?action=admin'; |
| 22 | +$parameters2 = $myself_url . 'index.php?action=admin'; |
| 23 | +if ( $MY_REQUEST['page'] ) |
| 24 | +{ $parameters .= '&page=' . urlencode( $MY_REQUEST['page'] ); } |
25 | 25 | |
26 | | -if ($MY_REQUEST['keyword']) |
| 26 | +if ( $MY_REQUEST['keyword'] ) |
27 | 27 | { |
28 | | - $parameters .= '&keyword='.urlencode($MY_REQUEST['keyword']).'&filter='.urlencode($MY_REQUEST['filter']); |
29 | | - $parameters2 .= '&keyword='.urlencode($MY_REQUEST['keyword']).'&filter='.urlencode($MY_REQUEST['filter']); |
| 28 | + $parameters .= '&keyword=' . urlencode( $MY_REQUEST['keyword'] ) . '&filter=' . urlencode( $MY_REQUEST['filter'] ); |
| 29 | + $parameters2 .= '&keyword=' . urlencode( $MY_REQUEST['keyword'] ) . '&filter=' . urlencode( $MY_REQUEST['filter'] ); |
30 | 30 | } |
31 | | -$parameters2 .= '&mode='.urlencode($MY_REQUEST['mode']); |
| 31 | +$parameters2 .= '&mode=' . urlencode( $MY_REQUEST['mode'] ); |
32 | 32 | |
33 | 33 | ?> |
34 | 34 | <script type="text/javascript" src="jquery-latest.pack.js"><!--//XHTML hack--></script> |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | { |
56 | 56 | if (document.getElementById("item2_radio").checked == true) |
57 | 57 | return confirm('注意:\n(1) 請確認該報名者是否有有選擇過參加8/2的議程;如果有的話請確認Hacking Days Extra與Citizen Journalism Unconference的參加有沒有勾選。若沒有勾選,可能需要確認報名者希望參與哪場活動。\n(2) 新加入的勾選住宿者將自動設定為「不在乎」房間類型;而取消住宿者也將取消喜好房間類型的設定,而再次勾選住宿並無法復原其喜好設定。\n\n請再度確定填寫的資料是否正確。是否確定執行?'); |
58 | | - else |
| 58 | + else |
59 | 59 | return confirm('請再度確定填寫的資料是否正確。是否確定執行?'); |
60 | 60 | |
61 | 61 | } |
— | — | @@ -85,12 +85,12 @@ |
86 | 86 | else $("#j"+i).removeAttr("checked"); |
87 | 87 | } |
88 | 88 | for (var i=1; i<=6; i++) |
89 | | - { if (eval("n"+i)) $("#n"+i).attr("checked", "checked"); |
| 89 | + { if (eval("n"+i)) $("#n"+i).attr("checked", "checked"); |
90 | 90 | else $("#n"+i).removeAttr("checked"); |
91 | 91 | } |
92 | | - |
| 92 | + |
93 | 93 | for (var i=0; i<=3; i++) |
94 | | - { if (vip_status == i) $("#vips"+i).attr("selected", "selected"); |
| 94 | + { if (vip_status == i) $("#vips"+i).attr("selected", "selected"); |
95 | 95 | else $("#vips"+i).removeAttr("selected"); |
96 | 96 | } |
97 | 97 | } |
— | — | @@ -118,73 +118,73 @@ |
119 | 119 | <div id="mask"> </div> |
120 | 120 | <div id="content_part"> |
121 | 121 | <h1>管理介面</h1> |
122 | | - <p id="special_pages">登入為<strong> <?php echo $_SESSION['user_id']?></strong> | <a href="<?php echo $myself_url.'index.php?action=logout'?>" title="登出並離開管理介面">登出</a></p> |
123 | | - <?php if (!empty($error_message)) |
| 122 | + <p id="special_pages">登入為<strong> <?php echo $_SESSION['user_id']?></strong> | <a href="<?php echo $myself_url . 'index.php?action=logout'?>" title="登出並離開管理介面">登出</a></p> |
| 123 | + <?php if ( !empty( $error_message ) ) |
124 | 124 | { |
125 | | - echo '<div id="correction">'."\n".$error_message."\n".'</div>'."\n"; |
| 125 | + echo '<div id="correction">' . "\n" . $error_message . "\n" . '</div>' . "\n"; |
126 | 126 | } |
127 | 127 | ?> |
128 | 128 | <h3>列表與統計資料</h3> |
129 | 129 | |
130 | | -<?php if($register_data['total_keyword']) {?> |
131 | | -<p>搜尋結果共找到 <strong><?php echo $register_data['total_keyword']?></strong> 筆資料。<a href="<?php echo $myself_url;?>?action=admin" title="結束搜尋,顯示所有資料">清除搜尋結果</a> |
132 | | -<?php } else {?> |
133 | | -<p>目前共有 <strong><?php echo $register_data['total_people'];?> 人</strong>報名,<strong><?php echo $register_data['total_accommodation'];?> 人</strong>需要安排住宿。</p> |
134 | | -<?php }?> |
135 | | -<form action="<?php echo $myself_url. 'index.php';?>" method="GET"> |
| 130 | +<?php if ( $register_data['total_keyword'] ) { ?> |
| 131 | +<p>搜尋結果共找到 <strong><?php echo $register_data['total_keyword']?></strong> 筆資料。<a href="<?php echo $myself_url; ?>?action=admin" title="結束搜尋,顯示所有資料">清除搜尋結果</a> |
| 132 | +<?php } else { ?> |
| 133 | +<p>目前共有 <strong><?php echo $register_data['total_people']; ?> 人</strong>報名,<strong><?php echo $register_data['total_accommodation']; ?> 人</strong>需要安排住宿。</p> |
| 134 | +<?php } ?> |
| 135 | +<form action="<?php echo $myself_url . 'index.php'; ?>" method="GET"> |
136 | 136 | <div id="admin_navigation"> |
137 | 137 | <p id="search_form"> |
138 | 138 | <select name="filter"> |
139 | | - <option value="name" <?php if ($MY_REQUEST['filter'] == 'name') echo 'selected="selected"'; ?>>姓名、維基帳號</option> |
140 | | - <option value="organization" <?php if ($MY_REQUEST['filter'] == 'organization') echo 'selected="selected"'; ?>>組織</option> |
141 | | - <option value="email" <?php if ($MY_REQUEST['filter'] == 'email') echo 'selected="selected"'; ?>>電子郵件</option> |
142 | | - <option value="unique_code" <?php if ($MY_REQUEST['filter'] == 'unique_code') echo 'selected="selected"'; ?>>識別碼</option> |
143 | | - <option value="tag" <?php if ($MY_REQUEST['filter'] == 'tag') echo 'selected="selected"'; ?>>標籤</option> |
| 139 | + <option value="name" <?php if ( $MY_REQUEST['filter'] == 'name' ) echo 'selected="selected"'; ?>>姓名、維基帳號</option> |
| 140 | + <option value="organization" <?php if ( $MY_REQUEST['filter'] == 'organization' ) echo 'selected="selected"'; ?>>組織</option> |
| 141 | + <option value="email" <?php if ( $MY_REQUEST['filter'] == 'email' ) echo 'selected="selected"'; ?>>電子郵件</option> |
| 142 | + <option value="unique_code" <?php if ( $MY_REQUEST['filter'] == 'unique_code' ) echo 'selected="selected"'; ?>>識別碼</option> |
| 143 | + <option value="tag" <?php if ( $MY_REQUEST['filter'] == 'tag' ) echo 'selected="selected"'; ?>>標籤</option> |
144 | 144 | </select> |
145 | | - <input type="text" name="keyword" value="<?php echo stripslashes(htmlspecialchars($MY_REQUEST['keyword']));?>" /> |
| 145 | + <input type="text" name="keyword" value="<?php echo stripslashes( htmlspecialchars( $MY_REQUEST['keyword'] ) ); ?>" /> |
146 | 146 | <input type="submit" value="查詢" /> |
147 | 147 | <input type="hidden" name="action" value="admin" /> |
148 | | - <input type="hidden" name="mode" value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /> |
| 148 | + <input type="hidden" name="mode" value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /> |
149 | 149 | </p> |
150 | 150 | <p><a href="<?php echo $parameters?>" title="諸如生日、姓名與身分證資料的資訊">基本資料</a> | <a href="<?php echo $parameters?>&mode=topic" title="參加的日期、偏好的主題、飲食習慣與衣服尺寸">日期、主題、食衣住行</a> | <a href="<?php echo $parameters?>&mode=liveinfo" title="是否須安排住宿,偏好的房間大小">住宿資訊</a> | <a href="<?php echo $parameters?>&mode=visa" title="是否要籌備團隊安排簽證協助,與需求的內容">簽證需求</a> | <a href="<?php echo $parameters?>&mode=pay" title="是否已經付款,付了多少錢">付款狀態</a></p> |
151 | 151 | </div> |
152 | 152 | </form> |
153 | 153 | <p> |
154 | 154 | <?php |
155 | | -switch($MY_REQUEST['mode']) |
| 155 | +switch( $MY_REQUEST['mode'] ) |
156 | 156 | { |
157 | 157 | case NULL: |
158 | | - echo '共來自 <strong>'.$register_data['total_countries'].'</strong> 個國家 / '. |
159 | | - '<strong>'.$register_data['total_male'].'</strong> 男 ('.get_percentage($register_data['total_male']).')/ '. |
160 | | - '<strong>'.$register_data['total_female'].'</strong> 女 ('.get_percentage($register_data['total_female']).')/ '. |
161 | | - '<strong>'.$register_data['total_sex_other'].'</strong> 其他 ('.get_percentage($register_data['total_sex_other']).')/ '. |
162 | | - '<strong>'.$register_data['total_wikimedians'].'</strong> 維基人 ('.get_percentage($register_data['total_wikimedians']).')'; |
| 158 | + echo '共來自 <strong>' . $register_data['total_countries'] . '</strong> 個國家 / ' . |
| 159 | + '<strong>' . $register_data['total_male'] . '</strong> 男 (' . get_percentage( $register_data['total_male'] ) . ')/ ' . |
| 160 | + '<strong>' . $register_data['total_female'] . '</strong> 女 (' . get_percentage( $register_data['total_female'] ) . ')/ ' . |
| 161 | + '<strong>' . $register_data['total_sex_other'] . '</strong> 其他 (' . get_percentage( $register_data['total_sex_other'] ) . ')/ ' . |
| 162 | + '<strong>' . $register_data['total_wikimedians'] . '</strong> 維基人 (' . get_percentage( $register_data['total_wikimedians'] ) . ')'; |
163 | 163 | break; |
164 | 164 | |
165 | 165 | case 'topic': |
166 | | - for ($i = 3; $i <= 5; $i++) |
167 | | - echo '8/'.$i.':<strong>'.$register_data['total_day'.$i].'</strong> 人 ('.get_percentage($register_data['total_day'.$i]).') / '; |
168 | | - for ($i = 1; $i <= 3; $i++) |
169 | | - echo ''.$i.' 天:<strong>'.$register_data['total_'.$i.'days'].'</strong> 人 ('.get_percentage($register_data['total_'.$i.'days']).') / '; |
| 166 | + for ( $i = 3; $i <= 5; $i++ ) |
| 167 | + echo '8/' . $i . ':<strong>' . $register_data['total_day' . $i] . '</strong> 人 (' . get_percentage( $register_data['total_day' . $i] ) . ') / '; |
| 168 | + for ( $i = 1; $i <= 3; $i++ ) |
| 169 | + echo '' . $i . ' 天:<strong>' . $register_data['total_' . $i . 'days'] . '</strong> 人 (' . get_percentage( $register_data['total_' . $i . 'days'] ) . ') / '; |
170 | 170 | break; |
171 | 171 | |
172 | 172 | case 'liveinfo': |
173 | | - for ($i = 1; $i <= 6; $i++) |
174 | | - echo $i.' 天:<strong>'.$register_data['total_'.$i.'nights'].'</strong> 人 ('.get_percentage($register_data['total_'.$i.'nights']).') / '; |
| 173 | + for ( $i = 1; $i <= 6; $i++ ) |
| 174 | + echo $i . ' 天:<strong>' . $register_data['total_' . $i . 'nights'] . '</strong> 人 (' . get_percentage( $register_data['total_' . $i . 'nights'] ) . ') / '; |
175 | 175 | break; |
176 | 176 | |
177 | 177 | case 'visa': |
178 | | - echo '共 <strong>'.$register_data['total_assist'].'</strong> 人 ('.get_percentage($register_data['total_assist']).') 需要簽證協助'; |
| 178 | + echo '共 <strong>' . $register_data['total_assist'] . '</strong> 人 (' . get_percentage( $register_data['total_assist'] ) . ') 需要簽證協助'; |
179 | 179 | break; |
180 | 180 | } |
181 | 181 | ?></p> |
182 | | -<form action="<?php echo $myself_url. 'index.php';?>" method="POST" onsubmit="return confirm_warning();"> |
| 182 | +<form action="<?php echo $myself_url . 'index.php'; ?>" method="POST" onsubmit="return confirm_warning();"> |
183 | 183 | <table id="admin_table"> |
184 | 184 | <tr> |
185 | 185 | <th>核取</th> |
186 | 186 | <th>編號</th><th>姓名</th><th>台籍</th> |
187 | 187 | <th>姓別</th><th>註冊時間</th> |
188 | | - <?php if($MY_REQUEST['mode']){?> |
| 188 | + <?php if ( $MY_REQUEST['mode'] ) { ?> |
189 | 189 | <th>8/1</th> |
190 | 190 | <th>8/2</th> |
191 | 191 | <th>HE</th> |
— | — | @@ -193,10 +193,10 @@ |
194 | 194 | <th>8/4</th> |
195 | 195 | <th>8/5</th> |
196 | 196 | <?php } |
197 | | - switch($MY_REQUEST['mode']){ |
| 197 | + switch( $MY_REQUEST['mode'] ) { |
198 | 198 | case NULL: |
199 | 199 | echo '<th>ID</th><th>國家</th> |
200 | | - '/*<th>城市</th>*/.'<th>生日</th><th>母語</th> |
| 200 | + '/*<th>城市</th>*/ . '<th>生日</th><th>母語</th> |
201 | 201 | <th>語言程度</th> |
202 | 202 | <th>組織</th><th>維基用戶名</th><th>名稱顯示</th>'; |
203 | 203 | break; |
— | — | @@ -227,130 +227,130 @@ |
228 | 228 | case 'pay': |
229 | 229 | echo '<th>Email</th><th>識別碼</th><th>付款方式</th><th>付款狀態</th><!--<th>PayPal OK</th>--><th>應繳金額</th><th>收到金額</th>'; |
230 | 230 | break; |
231 | | - }?> |
| 231 | + } ?> |
232 | 232 | <th>折價券</th> |
233 | 233 | <th>狀態</th> |
234 | 234 | <th>標籤</th> |
235 | 235 | <th id="fill_data_col">編輯資訊</th> |
236 | 236 | </tr> |
237 | | -<?php foreach ($table_data as $data) { |
| 237 | +<?php foreach ( $table_data as $data ) { |
238 | 238 | /* I Hate XSS */ |
239 | | -$data = array_map('htmlspecialchars', $data); |
| 239 | +$data = array_map( 'htmlspecialchars', $data ); |
240 | 240 | ?> |
241 | 241 | <tr> |
242 | 242 | <td><input type="checkbox" name="no[]" value=<?php echo $data['no']; ?> /></td> |
243 | | - <td><?php echo $data['no'];?></td> |
244 | | - <td><?php echo $data['given_name'].' '.$data['surname'];?></td> |
245 | | - <td><?php if ($data['egy']) echo '是'; else echo '否';?></td> |
| 243 | + <td><?php echo $data['no']; ?></td> |
| 244 | + <td><?php echo $data['given_name'] . ' ' . $data['surname']; ?></td> |
| 245 | + <td><?php if ( $data['egy'] ) echo '是'; else echo '否'; ?></td> |
246 | 246 | <td><?php |
247 | | - switch($data['sex']) |
| 247 | + switch( $data['sex'] ) |
248 | 248 | { |
249 | 249 | case 1: echo '男'; break; |
250 | 250 | case 2: echo '女'; break; |
251 | 251 | case 3: echo $data['custom_sex']; break; |
252 | 252 | } |
253 | | - ?></td><td><?php echo $data['signuptime'];?></td> |
254 | | - <?php if($MY_REQUEST['mode']){?> |
255 | | - <td class="group1"><?php if($data['join1']) echo '●';?></td> |
256 | | - <td class="group1"><?php if($data['join2']) echo '●';?></td> |
257 | | - <td class="group1"><?php if($data['hacking']) echo '●';?></td> |
258 | | - <td class="group1"><?php if($data['citizen']) echo '●';?></td> |
259 | | - <td class="group1"><?php if($data['join3']) echo '●';?></td> |
260 | | - <td class="group1"><?php if($data['join4']) echo '●';?></td> |
261 | | - <td class="group1"><?php if($data['join5']) echo '●';?></td> |
| 253 | + ?></td><td><?php echo $data['signuptime']; ?></td> |
| 254 | + <?php if ( $MY_REQUEST['mode'] ) { ?> |
| 255 | + <td class="group1"><?php if ( $data['join1'] ) echo '●'; ?></td> |
| 256 | + <td class="group1"><?php if ( $data['join2'] ) echo '●'; ?></td> |
| 257 | + <td class="group1"><?php if ( $data['hacking'] ) echo '●'; ?></td> |
| 258 | + <td class="group1"><?php if ( $data['citizen'] ) echo '●'; ?></td> |
| 259 | + <td class="group1"><?php if ( $data['join3'] ) echo '●'; ?></td> |
| 260 | + <td class="group1"><?php if ( $data['join4'] ) echo '●'; ?></td> |
| 261 | + <td class="group1"><?php if ( $data['join5'] ) echo '●'; ?></td> |
262 | 262 | <?php |
263 | 263 | } |
264 | | - switch($MY_REQUEST['mode']){ |
| 264 | + switch( $MY_REQUEST['mode'] ) { |
265 | 265 | case "": |
266 | | - echo '<td>'.$data['id'].'</td><td>'.$lang_countries[strtolower($data['country'])].'</td> |
267 | | - <td>'/*.$data['city'].'</td><td>'*/.$data['birthday'].'</td><td>'.$data['langn'].'</td> |
| 266 | + echo '<td>' . $data['id'] . '</td><td>' . $lang_countries[strtolower( $data['country'] )] . '</td> |
| 267 | + <td>'/*.$data['city'].'</td><td>'*/ . $data['birthday'] . '</td><td>' . $data['langn'] . '</td> |
268 | 268 | <td>'; |
269 | | - if ($data['lang1']) |
270 | | - echo $data['lang1'].'-'.$data['lang1-level']. '<br />'; |
271 | | - if ($data['lang2']) |
272 | | - echo $data['lang2'].'-'.$data['lang2-level']. '<br />'; |
273 | | - if ($data['lang3']) |
274 | | - echo $data['lang3'].'-'.$data['lang3-level']. '<br />'; |
| 269 | + if ( $data['lang1'] ) |
| 270 | + echo $data['lang1'] . '-' . $data['lang1-level'] . '<br />'; |
| 271 | + if ( $data['lang2'] ) |
| 272 | + echo $data['lang2'] . '-' . $data['lang2-level'] . '<br />'; |
| 273 | + if ( $data['lang3'] ) |
| 274 | + echo $data['lang3'] . '-' . $data['lang3-level'] . '<br />'; |
275 | 275 | echo '</td><td>'; |
276 | 276 | echo $data['organization']; |
277 | 277 | echo '</td><td>'; |
278 | | - if ($data['wiki_id']) echo $data['wiki_id'].'@'.$data['wiki_language'].'.'.$data['wiki_project']; |
| 278 | + if ( $data['wiki_id'] ) echo $data['wiki_id'] . '@' . $data['wiki_language'] . '.' . $data['wiki_project']; |
279 | 279 | echo '</td><td>'; |
280 | 280 | |
281 | | - foreach(explode(',',$data['showname']) as $key => $value) |
| 281 | + foreach ( explode( ',', $data['showname'] ) as $key => $value ) |
282 | 282 | { |
283 | | - echo $lang_register_form['showname'.$value]; |
284 | | - if ($value == 4) |
285 | | - { echo ': '.$data['custom_showname']; } |
| 283 | + echo $lang_register_form['showname' . $value]; |
| 284 | + if ( $value == 4 ) |
| 285 | + { echo ': ' . $data['custom_showname']; } |
286 | 286 | else |
287 | | - { echo ', '; } |
| 287 | + { echo ', '; } |
288 | 288 | } |
289 | 289 | echo '</td>'; |
290 | 290 | break; |
291 | 291 | case "topic":?> |
292 | | - <td class="group2"><?php if($data['topic1']) echo '●';?></td> |
293 | | - <td class="group2"><?php if($data['topic2']) echo '●';?></td> |
294 | | - <td class="group2"><?php if($data['topic3']) echo '●';?></td> |
| 292 | + <td class="group2"><?php if ( $data['topic1'] ) echo '●'; ?></td> |
| 293 | + <td class="group2"><?php if ( $data['topic2'] ) echo '●'; ?></td> |
| 294 | + <td class="group2"><?php if ( $data['topic3'] ) echo '●'; ?></td> |
295 | 295 | <?php echo |
296 | | - '<td>'.$cloth_sizes[$data['size']].'</td> |
| 296 | + '<td>' . $cloth_sizes[$data['size']] . '</td> |
297 | 297 | <td>'; |
298 | | - foreach(explode(',',$data['food']) as $key => $value) |
| 298 | + foreach ( explode( ',', $data['food'] ) as $key => $value ) |
299 | 299 | { |
300 | | - echo $lang_register_form['food'.$value]; |
301 | | - if ($value == 6) |
302 | | - { echo ': '.$data['food_other']; } |
| 300 | + echo $lang_register_form['food' . $value]; |
| 301 | + if ( $value == 6 ) |
| 302 | + { echo ': ' . $data['food_other']; } |
303 | 303 | else |
304 | | - { echo ', '; } |
| 304 | + { echo ', '; } |
305 | 305 | } |
306 | | - echo '</td><td>'.$data['allegric'].'</td>'; |
| 306 | + echo '</td><td>' . $data['allegric'] . '</td>'; |
307 | 307 | break; |
308 | 308 | case "liveinfo": |
309 | 309 | echo '<td class="group2">'; |
310 | | - if ($data['night1'] && $data['room_num1']) echo $data['room_num1']; elseif ($data['night1']) echo '●'; |
| 310 | + if ( $data['night1'] && $data['room_num1'] ) echo $data['room_num1']; elseif ( $data['night1'] ) echo '●'; |
311 | 311 | echo '</td><td class="group2">'; |
312 | | - if ($data['night2'] && $data['room_num2']) echo $data['room_num2']; elseif ($data['night2']) echo '●'; |
| 312 | + if ( $data['night2'] && $data['room_num2'] ) echo $data['room_num2']; elseif ( $data['night2'] ) echo '●'; |
313 | 313 | echo '</td><td class="group2">'; |
314 | | - if ($data['night3'] && $data['room_num3']) echo $data['room_num3']; elseif ($data['night3']) echo '●'; |
| 314 | + if ( $data['night3'] && $data['room_num3'] ) echo $data['room_num3']; elseif ( $data['night3'] ) echo '●'; |
315 | 315 | echo '</td><td class="group2">'; |
316 | | - if ($data['night4'] && $data['room_num4']) echo $data['room_num4']; elseif ($data['night4']) echo '●'; |
| 316 | + if ( $data['night4'] && $data['room_num4'] ) echo $data['room_num4']; elseif ( $data['night4'] ) echo '●'; |
317 | 317 | echo '</td><td class="group2">'; |
318 | | - if ($data['night5'] && $data['room_num5']) echo $data['room_num5']; elseif ($data['night5']) echo '●'; |
| 318 | + if ( $data['night5'] && $data['room_num5'] ) echo $data['room_num5']; elseif ( $data['night5'] ) echo '●'; |
319 | 319 | echo '</td><td class="group2">'; |
320 | | - if ($data['night6'] && $data['room_num6']) echo $data['room_num6']; elseif ($data['night6']) echo '●'; |
| 320 | + if ( $data['night6'] && $data['room_num6'] ) echo $data['room_num6']; elseif ( $data['night6'] ) echo '●'; |
321 | 321 | echo '</td><td class="group3">'; |
322 | | - if ($data['room2']) echo '●'; |
| 322 | + if ( $data['room2'] ) echo '●'; |
323 | 323 | echo '</td><td class="group3">'; |
324 | | - if ($data['room4']) echo '●'; |
| 324 | + if ( $data['room4'] ) echo '●'; |
325 | 325 | echo '</td><td class="group3">'; |
326 | | - if ($data['room6']) echo '●'; |
| 326 | + if ( $data['room6'] ) echo '●'; |
327 | 327 | echo '</td><td class="group3">'; |
328 | | - if ($data['room8']) echo '●'; |
| 328 | + if ( $data['room8'] ) echo '●'; |
329 | 329 | echo '</td>'; |
330 | | - echo '<td>'. $data['cost_total'].'</td>'; |
| 330 | + echo '<td>' . $data['cost_total'] . '</td>'; |
331 | 331 | break; |
332 | 332 | case 'visa': |
333 | 333 | echo '<td>'; |
334 | | - if ($data['visa_assistance']) echo '是'; else echo '否'; |
| 334 | + if ( $data['visa_assistance'] ) echo '是'; else echo '否'; |
335 | 335 | echo '</td> |
336 | | - <td>'.$data['visa_assistance_description'].'</td>'; |
| 336 | + <td>' . $data['visa_assistance_description'] . '</td>'; |
337 | 337 | break; |
338 | 338 | case 'pay': |
339 | | - echo '<td>'.$data['email'].'</td>'; |
340 | | - echo '<td>'.$data['unique_code'].'</td><td>'; |
341 | | - if ($data['pay_method'] == 1) echo 'PayPal'; else echo '匯款'; |
| 339 | + echo '<td>' . $data['email'] . '</td>'; |
| 340 | + echo '<td>' . $data['unique_code'] . '</td><td>'; |
| 341 | + if ( $data['pay_method'] == 1 ) echo 'PayPal'; else echo '匯款'; |
342 | 342 | echo '</td><td>'; |
343 | | - if ($data['cost_total'] > $data['cost_paid']) echo '不足'; |
344 | | - if ($data['cost_total'] == 0) echo '免費'; |
345 | | - elseif ($data['cost_total'] == $data['cost_paid']) echo '剛好付清'; |
346 | | - if ($data['cost_total'] < $data['cost_paid']) echo '超過'; |
347 | | - //echo '</td><td>'; |
348 | | - //if ($data['paypal'] == 1) echo '完成'; else echo '未完成'; |
349 | | - echo '</td><td>'. $data['cost_total']; |
350 | | - echo '</td><td>'. $data['cost_paid'].'</td>'; |
| 343 | + if ( $data['cost_total'] > $data['cost_paid'] ) echo '不足'; |
| 344 | + if ( $data['cost_total'] == 0 ) echo '免費'; |
| 345 | + elseif ( $data['cost_total'] == $data['cost_paid'] ) echo '剛好付清'; |
| 346 | + if ( $data['cost_total'] < $data['cost_paid'] ) echo '超過'; |
| 347 | + // echo '</td><td>'; |
| 348 | + // if ($data['paypal'] == 1) echo '完成'; else echo '未完成'; |
| 349 | + echo '</td><td>' . $data['cost_total']; |
| 350 | + echo '</td><td>' . $data['cost_paid'] . '</td>'; |
351 | 351 | |
352 | 352 | } |
353 | 353 | echo '<td>'; |
354 | | - switch ($data['vip_status']) |
| 354 | + switch ( $data['vip_status'] ) |
355 | 355 | { |
356 | 356 | case 1: echo '完全免費'; break; |
357 | 357 | case 2: echo '一律維基人價'; break; |
— | — | @@ -358,48 +358,48 @@ |
359 | 359 | } |
360 | 360 | echo '</td>'; |
361 | 361 | echo '<td>'; |
362 | | - switch ($data['status']) |
| 362 | + switch ( $data['status'] ) |
363 | 363 | { |
364 | 364 | case 0: echo '未受理'; break; |
365 | 365 | case 1: echo '已接受'; break; |
366 | 366 | case 2: echo '已拒絕'; break; |
367 | 367 | } |
368 | | - echo '</td><td>'.$data['tag'].'</td><td>'; |
369 | | - echo '<a href="#" class="fill_data_link" onclick="fill_data(\''.addslashes($data['surname']).'\',\''.addslashes($data['given_name']).'\',\''.$data['unique_code'].'\','.$data['join1'].','.$data['hacking'].','.$data['citizen'].','.$data['join3'].','.$data['join4'].','.$data['join5'].','.$data['night1'].','.$data['night2'].','.$data['night3'].','.$data['night4'].','.$data['night5'].','.$data['night6'].',\''.addslashes($data['tag']).'\','.$data['vip_status'].')">編輯</a>'; |
| 368 | + echo '</td><td>' . $data['tag'] . '</td><td>'; |
| 369 | + echo '<a href="#" class="fill_data_link" onclick="fill_data(\'' . addslashes( $data['surname'] ) . '\',\'' . addslashes( $data['given_name'] ) . '\',\'' . $data['unique_code'] . '\',' . $data['join1'] . ',' . $data['hacking'] . ',' . $data['citizen'] . ',' . $data['join3'] . ',' . $data['join4'] . ',' . $data['join5'] . ',' . $data['night1'] . ',' . $data['night2'] . ',' . $data['night3'] . ',' . $data['night4'] . ',' . $data['night5'] . ',' . $data['night6'] . ',\'' . addslashes( $data['tag'] ) . '\',' . $data['vip_status'] . ')">編輯</a>'; |
370 | 370 | echo '</td>'; |
371 | 371 | ?> |
372 | 372 | </tr> |
373 | | -<?php }?> |
| 373 | +<?php } ?> |
374 | 374 | </table> |
375 | 375 | <p id="page"> |
376 | 376 | <?php |
377 | | - if ($MY_REQUEST['keyword']) |
378 | | - { $total_page = ceil($register_data['total_keyword'] / $register_data['per_page']); } |
| 377 | + if ( $MY_REQUEST['keyword'] ) |
| 378 | + { $total_page = ceil( $register_data['total_keyword'] / $register_data['per_page'] ); } |
379 | 379 | else |
380 | | - { $total_page = ceil($register_data['total_people'] / $register_data['per_page']); } |
381 | | - |
382 | | - if ($register_data['page'] >= 5) |
383 | | - { echo '<a href="'.$parameters2.'&page=1" title="第 1 頁">1</a> '; } |
384 | | - if ($register_data['page'] >= 6) |
| 380 | + { $total_page = ceil( $register_data['total_people'] / $register_data['per_page'] ); } |
| 381 | + |
| 382 | + if ( $register_data['page'] >= 5 ) |
| 383 | + { echo '<a href="' . $parameters2 . '&page=1" title="第 1 頁">1</a> '; } |
| 384 | + if ( $register_data['page'] >= 6 ) |
385 | 385 | { echo '... '; } |
386 | | - for ($i = max(1, $register_data['page'] - 3); ($i < $register_data['page']); $i++) |
| 386 | + for ( $i = max( 1, $register_data['page'] - 3 ); ( $i < $register_data['page'] ); $i++ ) |
387 | 387 | { |
388 | | - echo '<a href="'.$parameters2.'&page='.($i).'" title="第 '.($i).' 頁">'.($i).'</a> '; |
| 388 | + echo '<a href="' . $parameters2 . '&page=' . ( $i ) . '" title="第 ' . ( $i ) . ' 頁">' . ( $i ) . '</a> '; |
389 | 389 | } |
390 | | - echo '<strong>'.$register_data['page'].'</strong> '; |
391 | | - |
392 | | - for ($i = $register_data['page'] + 1; ($i <= $total_page && $i <= $register_data['page'] + 3); $i++) |
| 390 | + echo '<strong>' . $register_data['page'] . '</strong> '; |
| 391 | + |
| 392 | + for ( $i = $register_data['page'] + 1; ( $i <= $total_page && $i <= $register_data['page'] + 3 ); $i++ ) |
393 | 393 | { |
394 | | - echo '<a href="'.$parameters2.'&page='.($i).'" title="第 '.($i).' 頁">'.($i).'</a> '; |
| 394 | + echo '<a href="' . $parameters2 . '&page=' . ( $i ) . '" title="第 ' . ( $i ) . ' 頁">' . ( $i ) . '</a> '; |
395 | 395 | } |
396 | | - if ($total_page - $register_data['page'] >= 5) |
397 | | - { echo '... ';} |
| 396 | + if ( $total_page - $register_data['page'] >= 5 ) |
| 397 | + { echo '... '; } |
398 | 398 | |
399 | | - if ($total_page - $register_data['page'] >= 4) |
400 | | - { echo '<a href="'.$parameters2.'&page='.$total_page.'" title="第 '.$total_page.' 頁">'.$total_page.'</a> ';} |
401 | | - ?> |
| 399 | + if ( $total_page - $register_data['page'] >= 4 ) |
| 400 | + { echo '<a href="' . $parameters2 . '&page=' . $total_page . '" title="第 ' . $total_page . ' 頁">' . $total_page . '</a> '; } |
| 401 | + ?> |
402 | 402 | </p> |
403 | | - |
| 403 | + |
404 | 404 | <div id="admin_form1"> |
405 | 405 | <p> |
406 | 406 | 所核取的報名者: |
— | — | @@ -407,14 +407,14 @@ |
408 | 408 | <input type="radio" name="status" value="1" id="accept" checked="checked" /><label for="accept"> 接受報名</label> |
409 | 409 | <input type="radio" name="status" value="2" id="reject" /><label for="reject"> 退回報名</label> |
410 | 410 | <input type="hidden" name="action" value="admin" /> |
411 | | - <input type="hidden" name="mode" value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /> |
412 | | - <input type="hidden" name="keyword" value="<?php echo htmlspecialchars($MY_REQUEST['keyword']);?>" /> |
413 | | - <input type="hidden" name="page" value="<?php echo htmlspecialchars($MY_REQUEST['page']);?>" /> |
| 411 | + <input type="hidden" name="mode" value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /> |
| 412 | + <input type="hidden" name="keyword" value="<?php echo htmlspecialchars( $MY_REQUEST['keyword'] ); ?>" /> |
| 413 | + <input type="hidden" name="page" value="<?php echo htmlspecialchars( $MY_REQUEST['page'] ); ?>" /> |
414 | 414 | <input type="submit" value="確認" /> (接受報名只對已付完全款者有效) |
415 | 415 | </p> </div> |
416 | 416 | </form> |
417 | 417 | </div> |
418 | | - <form action="<?php echo $myself_url;?>index.php" method="POST" onsubmit="return warning2();"> |
| 418 | + <form action="<?php echo $myself_url; ?>index.php" method="POST" onsubmit="return warning2();"> |
419 | 419 | <div id="admin_form2"> |
420 | 420 | <h3>調整項目</h3> |
421 | 421 | <p>名:<input type="text" name="given_name" id="given_name" /> |
— | — | @@ -423,13 +423,13 @@ |
424 | 424 | </p> |
425 | 425 | <div id="item1" class="checked_item"> |
426 | 426 | <input type="radio" name="item" value="1" checked="checked" id="item1_radio" onclick="radiocheck(1);" /><label for="item1_radio">收到付款登記</label> |
427 | | - <p>收到金額:<input type="text" name="cost_paid" value="<?php if($MY_REQUEST['cost_paid']!=0) echo htmlspecialchars($MY_REQUEST['cost_paid']);?>" size="5" /> |
| 427 | + <p>收到金額:<input type="text" name="cost_paid" value="<?php if ( $MY_REQUEST['cost_paid'] != 0 ) echo htmlspecialchars( $MY_REQUEST['cost_paid'] ); ?>" size="5" /> |
428 | 428 | <input type="hidden" name="modification" value="add_paid" /> |
429 | 429 | <input type="hidden" name="action" value="admin" /> |
430 | | - <input type="hidden" name="mode" value="<?php echo htmlspecialchars($MY_REQUEST['mode']);?>" /> |
431 | | - <input type="hidden" name="keyword" value="<?php echo htmlspecialchars($MY_REQUEST['keyword']);?>" /> |
432 | | - <input type="hidden" name="filter" value="<?php echo htmlspecialchars($MY_REQUEST['filter']);?>" /> |
433 | | - <input type="hidden" name="page" value="<?php echo htmlspecialchars($MY_REQUEST['page']);?>" /> |
| 430 | + <input type="hidden" name="mode" value="<?php echo htmlspecialchars( $MY_REQUEST['mode'] ); ?>" /> |
| 431 | + <input type="hidden" name="keyword" value="<?php echo htmlspecialchars( $MY_REQUEST['keyword'] ); ?>" /> |
| 432 | + <input type="hidden" name="filter" value="<?php echo htmlspecialchars( $MY_REQUEST['filter'] ); ?>" /> |
| 433 | + <input type="hidden" name="page" value="<?php echo htmlspecialchars( $MY_REQUEST['page'] ); ?>" /> |
434 | 434 | |
435 | 435 | (若輸入錯誤,可設定為負值以調整) |
436 | 436 | </p> |
— | — | @@ -438,24 +438,24 @@ |
439 | 439 | <input type="radio" name="item" value="2" id="item2_radio" onclick="radiocheck(2);" /><label for="item2_radio">日期與住宿資訊</label> |
440 | 440 | <p> |
441 | 441 | 參加日期: |
442 | | - <?php if($MY_REQUEST['j']) |
443 | | - { echo ' <input type="checkbox" value="1" name="j1" id="j1" checked="checked" />';} |
444 | | - else |
| 442 | + <?php if ( $MY_REQUEST['j'] ) |
| 443 | + { echo ' <input type="checkbox" value="1" name="j1" id="j1" checked="checked" />'; } |
| 444 | + else |
445 | 445 | { echo ' <input type="checkbox" value="1" name="j1" id="j1" />'; } |
446 | | - echo '<label for="j1">'.$lang_register_form['join1'].'</label>'."\n"; |
| 446 | + echo '<label for="j1">' . $lang_register_form['join1'] . '</label>' . "\n"; |
447 | 447 | |
448 | | - //echo $lang_register_form['join2']; ?> |
449 | | - <input type="checkbox" name="he" value="1" id="he"<?php if ($MY_REQUEST['he']) echo ' checked="checked"';?> /> <label for="he">Hacking Days Extra</label> |
450 | | - <input type="checkbox" name="cju" value="1" id="cju"<?php if ($MY_REQUEST['cju']) echo ' checked="checked"';?> /> <label for="cju">Citizen Journalism Unconference</label> |
| 448 | + // echo $lang_register_form['join2']; ?> |
| 449 | + <input type="checkbox" name="he" value="1" id="he"<?php if ( $MY_REQUEST['he'] ) echo ' checked="checked"'; ?> /> <label for="he">Hacking Days Extra</label> |
| 450 | + <input type="checkbox" name="cju" value="1" id="cju"<?php if ( $MY_REQUEST['cju'] ) echo ' checked="checked"'; ?> /> <label for="cju">Citizen Journalism Unconference</label> |
451 | 451 | </p><p style="margin-left: 6em;"> |
452 | 452 | <?php |
453 | | -for ($i = 3; $i <=5; $i++) |
| 453 | +for ( $i = 3; $i <= 5; $i++ ) |
454 | 454 | { |
455 | | - if($MY_REQUEST['j' . $i]) |
456 | | - { echo ' <input type="checkbox" value="1" name="j'.$i.'" id="j'. $i .'" checked="checked" />';} |
457 | | - else |
458 | | - { echo ' <input type="checkbox" value="1" name="j'.$i.'" id="j'. $i .'" />'; } |
459 | | - echo '<label for="j'. $i. '">'.$lang_register_form['join'.$i].'</label>'; |
| 455 | + if ( $MY_REQUEST['j' . $i] ) |
| 456 | + { echo ' <input type="checkbox" value="1" name="j' . $i . '" id="j' . $i . '" checked="checked" />'; } |
| 457 | + else |
| 458 | + { echo ' <input type="checkbox" value="1" name="j' . $i . '" id="j' . $i . '" />'; } |
| 459 | + echo '<label for="j' . $i . '">' . $lang_register_form['join' . $i] . '</label>'; |
460 | 460 | |
461 | 461 | echo "\n"; |
462 | 462 | |
— | — | @@ -466,13 +466,13 @@ |
467 | 467 | <p> |
468 | 468 | 住宿: |
469 | 469 | <?php |
470 | | -for ($i = 1; $i <=6; $i++) |
| 470 | +for ( $i = 1; $i <= 6; $i++ ) |
471 | 471 | { |
472 | | - if($MY_REQUEST['n' . $i]) |
473 | | - { echo ' <input type="checkbox" value="1" name="n'.$i.'" id="n'. $i .'" checked="checked" />';} |
474 | | - else |
475 | | - { echo ' <input type="checkbox" value="1" name="n'.$i.'" id="n'. $i .'" />'; } |
476 | | - echo '<label for="n'. $i. '">'.$lang_register_form['night'.$i].'</label>'; |
| 472 | + if ( $MY_REQUEST['n' . $i] ) |
| 473 | + { echo ' <input type="checkbox" value="1" name="n' . $i . '" id="n' . $i . '" checked="checked" />'; } |
| 474 | + else |
| 475 | + { echo ' <input type="checkbox" value="1" name="n' . $i . '" id="n' . $i . '" />'; } |
| 476 | + echo '<label for="n' . $i . '">' . $lang_register_form['night' . $i] . '</label>'; |
477 | 477 | |
478 | 478 | echo "\n"; |
479 | 479 | |
— | — | @@ -494,7 +494,7 @@ |
495 | 495 | <p><input type="submit" value="確認" /><input type="button" value="取消" id="cancel_button" class="hide_item" onclick="close_popup()" /></p></div> |
496 | 496 | </form> |
497 | 497 | <div id="admin_form3"> |
498 | | - <form enctype="multipart/form-data" action="<?php echo $myself_url;?>index.php" method="POST"> |
| 498 | + <form enctype="multipart/form-data" action="<?php echo $myself_url; ?>index.php" method="POST"> |
499 | 499 | <h3>資料上傳</h3> |
500 | 500 | <p>上傳住宿資料: |
501 | 501 | <input type="file" name="accommodation_file"> |
— | — | @@ -504,9 +504,9 @@ |
505 | 505 | </p> |
506 | 506 | </form> |
507 | 507 | |
508 | | - <form action="<?php echo $myself_url;?>index.php" method="POST"> |
| 508 | + <form action="<?php echo $myself_url; ?>index.php" method="POST"> |
509 | 509 | <h3>下載資料</h3> |
510 | | - <p> |
| 510 | + <p> |
511 | 511 | <input type="hidden" name="modification" value="get_data" /> |
512 | 512 | <input type="hidden" name="action" value="admin" /> |
513 | 513 | <input type="submit" value="下載住宿資料庫" /> 格式為Tab分隔,UTF16-LE編碼的檔案,可匯入Micorosft Excel處理,處理完後存成Tab分隔檔案上傳即可。 |
Index: trunk/wikimania/wmreg/skin/paypal_successful.php |
— | — | @@ -1,15 +1,15 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | global $myself_url, $register_data, $lang_register_form; |
8 | 8 | |
9 | 9 | /* Fix XSS */ |
10 | | -$register_data = array_map('htmlspecialchars', $register_data); |
| 10 | +$register_data = array_map( 'htmlspecialchars', $register_data ); |
11 | 11 | ?> |
12 | 12 | <?php |
13 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 13 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
14 | 14 | { |
15 | 15 | echo '<div dir="rtl">'; |
16 | 16 | } |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | <h2><?php echo $lang_register_form['paypal_successful']?></h2> |
19 | 19 | <?php echo $lang_register_form['paypal_successful_description']?> |
20 | 20 | <?php |
21 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 21 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
22 | 22 | { |
23 | 23 | echo '</div>'; |
24 | | -}?> |
| 24 | +} ?> |
Index: trunk/wikimania/wmreg/skin/confirm_data.php |
— | — | @@ -1,113 +1,113 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ |
6 | | - die('Hacking Attempt'); |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ |
| 6 | + die( 'Hacking Attempt' ); |
7 | 7 | } |
8 | 8 | |
9 | | -global $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, |
10 | | -$error_message, $register_data, $lang_countries, $myself_url, |
| 9 | +global $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, |
| 10 | +$error_message, $register_data, $lang_countries, $myself_url, |
11 | 11 | $_COOKIE, $my_session, $lang_register_form, $lang_messages, $userLanguage; |
12 | 12 | |
13 | 13 | /* Fix XSS */ |
14 | | -foreach ($register_data as $key => $val) |
| 14 | +foreach ( $register_data as $key => $val ) |
15 | 15 | { |
16 | | - if (!is_array($val)) |
17 | | - $val = htmlspecialchars($val); |
| 16 | + if ( !is_array( $val ) ) |
| 17 | + $val = htmlspecialchars( $val ); |
18 | 18 | } |
19 | 19 | |
20 | | -function get_lang($lang_id) { |
| 20 | +function get_lang( $lang_id ) { |
21 | 21 | global $lang_register_form; |
22 | | - if (!in_array($lang_id, array_keys($lang_register_form))) |
23 | | - { |
24 | | - return false; |
| 22 | + if ( !in_array( $lang_id, array_keys( $lang_register_form ) ) ) |
| 23 | + { |
| 24 | + return false; |
25 | 25 | } |
26 | 26 | echo $lang_register_form[$lang_id]; |
27 | 27 | } |
28 | 28 | ?> |
29 | 29 | <?php |
30 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 30 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
31 | 31 | { |
32 | 32 | echo '<div dir="rtl">'; |
33 | 33 | } |
34 | 34 | ?> |
35 | 35 | <p style="text-align:center;"><img src="wikimania2011reg.png" alt="Wikimania 2011 Logo" /></p> |
36 | | -<h1><?php get_lang('confirm');?></h1> |
37 | | -<p><?php get_lang('confirm_description');?></p> |
38 | | -<form method="post" action="<?php echo $myself_url.'index.php';?>" > |
| 36 | +<h1><?php get_lang( 'confirm' ); ?></h1> |
| 37 | +<p><?php get_lang( 'confirm_description' ); ?></p> |
| 38 | +<form method="post" action="<?php echo $myself_url . 'index.php'; ?>" > |
39 | 39 | <fieldset class="record"> |
40 | | -<legend class="title"><?php get_lang('legend1') ?></legend> |
| 40 | +<legend class="title"><?php get_lang( 'legend1' ) ?></legend> |
41 | 41 | <table class="form_table"> |
42 | 42 | <colgroup> |
43 | 43 | <col class="col_left" /> |
44 | 44 | <col class="col_right" /> |
45 | 45 | </colgroup> |
46 | 46 | <tr> |
47 | | - <th colspan="2"> <?php get_lang('title1');?></th> |
| 47 | + <th colspan="2"> <?php get_lang( 'title1' ); ?></th> |
48 | 48 | </tr> |
49 | 49 | <tr> |
50 | | - <td><?php get_lang('given_name');?></td> |
51 | | - <td><?php echo $register_data['given_name'];?></td> |
| 50 | + <td><?php get_lang( 'given_name' ); ?></td> |
| 51 | + <td><?php echo $register_data['given_name']; ?></td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | | - <td><?php get_lang('surname');?></td> |
55 | | - <td><?php echo $register_data['surname'];?></td> |
| 54 | + <td><?php get_lang( 'surname' ); ?></td> |
| 55 | + <td><?php echo $register_data['surname']; ?></td> |
56 | 56 | </tr> |
57 | 57 | <tr> |
58 | | - <td><?php get_lang('sex'); ?></td> |
| 58 | + <td><?php get_lang( 'sex' ); ?></td> |
59 | 59 | <td> |
60 | 60 | <?php |
61 | | - if($register_data['sex']== 'm') get_lang('sex1'); |
62 | | - if($register_data['sex']== 'f') get_lang('sex2'); |
63 | | - if($register_data['sex']== 'd') get_lang('sex3'); |
| 61 | + if ( $register_data['sex'] == 'm' ) get_lang( 'sex1' ); |
| 62 | + if ( $register_data['sex'] == 'f' ) get_lang( 'sex2' ); |
| 63 | + if ( $register_data['sex'] == 'd' ) get_lang( 'sex3' ); |
64 | 64 | ?> |
65 | 65 | </td> |
66 | 66 | </tr> |
67 | 67 | <tr> |
68 | | - <td><?php get_lang('country')?></td> |
| 68 | + <td><?php get_lang( 'country' )?></td> |
69 | 69 | <td> |
70 | 70 | <?php echo $lang_countries[$register_data['country']]; ?> |
71 | 71 | </td> |
72 | 72 | </tr> |
73 | 73 | <tr> |
74 | | - <th colspan="2"><?php get_lang('title2');?></th> |
| 74 | + <th colspan="2"><?php get_lang( 'title2' ); ?></th> |
75 | 75 | </tr> |
76 | 76 | <tr> |
77 | | - <td><?php get_lang('langn')?></td> |
| 77 | + <td><?php get_lang( 'langn' )?></td> |
78 | 78 | <td> |
79 | 79 | <?php echo $WikimediaLanguages[$register_data['langn']]; ?> |
80 | 80 | </td> |
81 | 81 | </tr> |
82 | 82 | <tr> |
83 | | - <td><?php get_lang('lang');?></td> |
| 83 | + <td><?php get_lang( 'lang' ); ?></td> |
84 | 84 | <td> |
85 | | - <?php for ($i=1; $i<=3; $i++ ) |
| 85 | + <?php for ( $i = 1; $i <= 3; $i++ ) |
86 | 86 | { |
87 | 87 | echo '<p class="langline">'; |
88 | | - echo $WikimediaLanguages[$register_data['lang'.$i]] . ' - '; |
89 | | - get_lang('lang_level'.$register_data['lang'. $i .'-level']); |
90 | | - echo'</p>'."\n"; |
91 | | - } |
| 88 | + echo $WikimediaLanguages[$register_data['lang' . $i]] . ' - '; |
| 89 | + get_lang( 'lang_level' . $register_data['lang' . $i . '-level'] ); |
| 90 | + echo'</p>' . "\n"; |
| 91 | + } |
92 | 92 | ?> |
93 | 93 | </td> |
94 | 94 | </tr> |
95 | 95 | <tr> |
96 | | - <th colspan="2"><?php get_lang('title3');?></th> |
| 96 | + <th colspan="2"><?php get_lang( 'title3' ); ?></th> |
97 | 97 | </tr> |
98 | 98 | <tr> |
99 | | - <td><?php get_lang('wiki_id')?></td> |
| 99 | + <td><?php get_lang( 'wiki_id' )?></td> |
100 | 100 | <td> |
101 | | - <?php if ($register_data['wiki_id']) echo $register_data['wiki_id'].'@'.$register_data['wiki_language'].'.'.$register_data['wiki_project'].'.org';?> |
| 101 | + <?php if ( $register_data['wiki_id'] ) echo $register_data['wiki_id'] . '@' . $register_data['wiki_language'] . '.' . $register_data['wiki_project'] . '.org'; ?> |
102 | 102 | </td> |
103 | 103 | </tr> |
104 | 104 | <tr> |
105 | | - <td><?php get_lang('email')?></td> |
106 | | - <td><?php echo $register_data['email'];?></td> |
| 105 | + <td><?php get_lang( 'email' )?></td> |
| 106 | + <td><?php echo $register_data['email']; ?></td> |
107 | 107 | </tr> |
108 | 108 | </table> |
109 | 109 | </fieldset> |
110 | 110 | <fieldset class="record"> |
111 | | -<legend class="title"><?php get_lang('legend2') ?></legend> |
| 111 | +<legend class="title"><?php get_lang( 'legend2' ) ?></legend> |
112 | 112 | <table class="form_table"> |
113 | 113 | <colgroup> |
114 | 114 | <col class="col_left" /> |
— | — | @@ -115,17 +115,17 @@ |
116 | 116 | <col class="col_right" /> |
117 | 117 | </colgroup> |
118 | 118 | <tr> |
119 | | - <th colspan="2"><?php get_lang('title4');?></th> |
| 119 | + <th colspan="2"><?php get_lang( 'title4' ); ?></th> |
120 | 120 | </tr> |
121 | 121 | <tr> |
122 | | - <td><?php get_lang('join_date'); ?></td> |
| 122 | + <td><?php get_lang( 'join_date' ); ?></td> |
123 | 123 | <td> |
124 | 124 | <?php |
125 | | - for ($i = 1; $i <=6; $i++) |
| 125 | + for ( $i = 1; $i <= 6; $i++ ) |
126 | 126 | { |
127 | | - if (in_array($i, $register_data['join_date'])) |
| 127 | + if ( in_array( $i, $register_data['join_date'] ) ) |
128 | 128 | { |
129 | | - get_lang('join'. $i); |
| 129 | + get_lang( 'join' . $i ); |
130 | 130 | echo '<br>'; |
131 | 131 | } |
132 | 132 | } |
— | — | @@ -133,32 +133,32 @@ |
134 | 134 | </td> |
135 | 135 | </tr> |
136 | 136 | <tr> |
137 | | - <td><?php get_lang('picktour'); ?></td> |
| 137 | + <td><?php get_lang( 'picktour' ); ?></td> |
138 | 138 | <td> |
139 | 139 | <?php |
140 | | - if ($register_data['tours'] >= 0 && $register_data['tours'] <= 5) |
| 140 | + if ( $register_data['tours'] >= 0 && $register_data['tours'] <= 5 ) |
141 | 141 | { |
142 | | - get_lang('tour'.$register_data['tours']); |
| 142 | + get_lang( 'tour' . $register_data['tours'] ); |
143 | 143 | } |
144 | 144 | ?> |
145 | 145 | </td> |
146 | 146 | </tr> |
147 | 147 | <tr> |
148 | | - <td><?php get_lang('showname'); ?></td> |
| 148 | + <td><?php get_lang( 'showname' ); ?></td> |
149 | 149 | <td> |
150 | 150 | <?php |
151 | | - for ($i = 1; $i <= 3; $i++) |
| 151 | + for ( $i = 1; $i <= 3; $i++ ) |
152 | 152 | { |
153 | | - if (in_array($i, $register_data['showname'])) |
| 153 | + if ( in_array( $i, $register_data['showname'] ) ) |
154 | 154 | { |
155 | | - get_lang('showname'.$i); |
156 | | - if ($i == 3) |
157 | | - { |
158 | | - echo ' : '.$register_data['custom_showname']; |
| 155 | + get_lang( 'showname' . $i ); |
| 156 | + if ( $i == 3 ) |
| 157 | + { |
| 158 | + echo ' : ' . $register_data['custom_showname']; |
159 | 159 | } |
160 | 160 | else |
161 | | - { |
162 | | - echo ', '; |
| 161 | + { |
| 162 | + echo ', '; |
163 | 163 | } |
164 | 164 | } |
165 | 165 | } |
— | — | @@ -166,95 +166,95 @@ |
167 | 167 | </td> |
168 | 168 | </tr> |
169 | 169 | <tr> |
170 | | - <td><?php get_lang('size'); ?></td> |
171 | | - <td> |
| 170 | + <td><?php get_lang( 'size' ); ?></td> |
| 171 | + <td> |
172 | 172 | <?php echo $register_data['size']; ?> |
173 | 173 | </td> |
174 | 174 | </tr> |
175 | 175 | <tr> |
176 | | - <td><?php get_lang('food'); ?></td> |
177 | | - <td> |
| 176 | + <td><?php get_lang( 'food' ); ?></td> |
| 177 | + <td> |
178 | 178 | <?php |
179 | | - if ($register_data['food'] >= 1 && $register_data['food'] <= 2) |
| 179 | + if ( $register_data['food'] >= 1 && $register_data['food'] <= 2 ) |
180 | 180 | { |
181 | | - get_lang('food'.$register_data['food']); |
| 181 | + get_lang( 'food' . $register_data['food'] ); |
182 | 182 | } |
183 | | - if ($register_data['food'] == 3 ) |
184 | | - { |
185 | | - get_lang('food_other'); |
186 | | - echo $register_data['food_other']; |
187 | | - }?> |
| 183 | + if ( $register_data['food'] == 3 ) |
| 184 | + { |
| 185 | + get_lang( 'food_other' ); |
| 186 | + echo $register_data['food_other']; |
| 187 | + } ?> |
188 | 188 | </td> |
189 | 189 | </tr> |
190 | 190 | <tr> |
191 | | - <th colspan="2"><?php get_lang('title_visa');?></th> |
| 191 | + <th colspan="2"><?php get_lang( 'title_visa' ); ?></th> |
192 | 192 | </tr> |
193 | 193 | <tr> |
194 | | - <td><?php get_lang('visa_assistance'); ?></td> |
195 | | - <td><?php if($register_data['visa_assistance']) get_lang('need_visa_assistance'); ?></td> |
| 194 | + <td><?php get_lang( 'visa_assistance' ); ?></td> |
| 195 | + <td><?php if ( $register_data['visa_assistance'] ) get_lang( 'need_visa_assistance' ); ?></td> |
196 | 196 | </tr> |
197 | 197 | <tr> |
198 | | - <td><?php get_lang('nationality'); ?></td> |
199 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['nationality']; ?></td> |
| 198 | + <td><?php get_lang( 'nationality' ); ?></td> |
| 199 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['nationality']; ?></td> |
200 | 200 | </tr> |
201 | 201 | <tr> |
202 | | - <td><?php get_lang('passport'); ?></td> |
203 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['passport']; ?></td> |
| 202 | + <td><?php get_lang( 'passport' ); ?></td> |
| 203 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['passport']; ?></td> |
204 | 204 | </tr> |
205 | 205 | <tr> |
206 | | - <td><?php get_lang('passport_issued'); ?></td> |
207 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['passport_issued']; ?></td> |
| 206 | + <td><?php get_lang( 'passport_issued' ); ?></td> |
| 207 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['passport_issued']; ?></td> |
208 | 208 | </tr> |
209 | 209 | <tr> |
210 | | - <td><?php get_lang('countryofbirth'); ?></td> |
211 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['countryofbirth']; ?></td> |
| 210 | + <td><?php get_lang( 'countryofbirth' ); ?></td> |
| 211 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['countryofbirth']; ?></td> |
212 | 212 | </tr> |
213 | 213 | <tr> |
214 | | - <td><?php get_lang('homeaddress'); ?></td> |
215 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['homeaddress']; ?></td> |
| 214 | + <td><?php get_lang( 'homeaddress' ); ?></td> |
| 215 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['homeaddress']; ?></td> |
216 | 216 | </tr> |
217 | 217 | <tr> |
218 | | - <td><?php get_lang('visa_assistance_description'); ?></td> |
219 | | - <td><?php if($register_data['visa_assistance']) echo $register_data['visa_assistance_description'] ?></td> |
| 218 | + <td><?php get_lang( 'visa_assistance_description' ); ?></td> |
| 219 | + <td><?php if ( $register_data['visa_assistance'] ) echo $register_data['visa_assistance_description'] ?></td> |
220 | 220 | </tr> |
221 | 221 | <tr> |
222 | | - <th colspan="2"><?php get_lang('title5');?></th> |
| 222 | + <th colspan="2"><?php get_lang( 'title5' ); ?></th> |
223 | 223 | </tr> |
224 | 224 | <tr> |
225 | | - <td><?php get_lang('accommodation'); ?></td> |
| 225 | + <td><?php get_lang( 'accommodation' ); ?></td> |
226 | 226 | <td> |
227 | 227 | <?php |
228 | | - if (is_array($register_data['nights'])) { |
229 | | - for ($i = 1; $i <= 8; $i++) |
| 228 | + if ( is_array( $register_data['nights'] ) ) { |
| 229 | + for ( $i = 1; $i <= 8; $i++ ) |
230 | 230 | { |
231 | | - if (in_array($i, $register_data['nights'])) |
| 231 | + if ( in_array( $i, $register_data['nights'] ) ) |
232 | 232 | { |
233 | | - get_lang('night'. $i); |
| 233 | + get_lang( 'night' . $i ); |
234 | 234 | echo '<br>'; |
235 | 235 | } |
236 | 236 | } |
237 | | - }?> |
| 237 | + } ?> |
238 | 238 | </td> |
239 | 239 | </tr> |
240 | 240 | <tr> |
241 | | - <td><?php get_lang('accommodation_hotel'); ?></td> |
| 241 | + <td><?php get_lang( 'accommodation_hotel' ); ?></td> |
242 | 242 | <td> |
243 | 243 | <?php |
244 | | - if ($register_data['hotels'] >= 1 && $register_data['hotels'] <= 9) |
| 244 | + if ( $register_data['hotels'] >= 1 && $register_data['hotels'] <= 9 ) |
245 | 245 | { |
246 | | - get_lang('hotel'.$register_data['hotels']); |
247 | | - }?> |
| 246 | + get_lang( 'hotel' . $register_data['hotels'] ); |
| 247 | + } ?> |
248 | 248 | </td> |
249 | 249 | </tr> |
250 | 250 | <tr> |
251 | | - <td><?php get_lang('room'); ?></td> |
| 251 | + <td><?php get_lang( 'room' ); ?></td> |
252 | 252 | <td> |
253 | 253 | <?php |
254 | | - if ($register_data['room'] >= 1 && $register_data['room'] <= 3) |
| 254 | + if ( $register_data['room'] >= 1 && $register_data['room'] <= 3 ) |
255 | 255 | { |
256 | | - get_lang('room'.$register_data['room']); |
| 256 | + get_lang( 'room' . $register_data['room'] ); |
257 | 257 | } |
258 | | - if ($register_data['room'] == 3) |
| 258 | + if ( $register_data['room'] == 3 ) |
259 | 259 | { |
260 | 260 | echo $register_data['room_partner']; |
261 | 261 | } |
— | — | @@ -262,11 +262,11 @@ |
263 | 263 | </td> |
264 | 264 | </tr> |
265 | 265 | <tr> |
266 | | - <td><?php get_lang('room_requests'); ?></td> |
| 266 | + <td><?php get_lang( 'room_requests' ); ?></td> |
267 | 267 | <td><?php echo $register_data['room_requests']; ?></td> |
268 | 268 | </tr> |
269 | 269 | <tr> |
270 | | - <th colspan="2"><?php get_lang('title6');?></th> |
| 270 | + <th colspan="2"><?php get_lang( 'title6' ); ?></th> |
271 | 271 | </tr> |
272 | 272 | <tr> |
273 | 273 | <td><?php echo $lang_messages['attendance_cost']; ?></td> |
— | — | @@ -290,49 +290,49 @@ |
291 | 291 | |
292 | 292 | |
293 | 293 | <div id="button"> |
294 | | - <?php |
295 | | - for ($i = 1; $i <= 6; $i++) |
| 294 | + <?php |
| 295 | + for ( $i = 1; $i <= 6; $i++ ) |
296 | 296 | { |
297 | | - if (in_array($i, $register_data['join_date'])) |
| 297 | + if ( in_array( $i, $register_data['join_date'] ) ) |
298 | 298 | { |
299 | | - echo '<input type="hidden" name="join_date[]" value="'.$i.'" />'."\n"; |
| 299 | + echo '<input type="hidden" name="join_date[]" value="' . $i . '" />' . "\n"; |
300 | 300 | } |
301 | 301 | } |
302 | | - unset($register_data['join_date']); |
303 | | - for ($i = 1; $i <= 3; $i++) |
| 302 | + unset( $register_data['join_date'] ); |
| 303 | + for ( $i = 1; $i <= 3; $i++ ) |
304 | 304 | { |
305 | | - if (in_array($i, $register_data['showname'])) |
| 305 | + if ( in_array( $i, $register_data['showname'] ) ) |
306 | 306 | { |
307 | | - echo '<input type="hidden" name="showname[]" value="'.$i.'" />'."\n"; |
| 307 | + echo '<input type="hidden" name="showname[]" value="' . $i . '" />' . "\n"; |
308 | 308 | } |
309 | 309 | } |
310 | | - unset($register_data['showname']); |
311 | | - if (is_array($register_data['nights'])) |
| 310 | + unset( $register_data['showname'] ); |
| 311 | + if ( is_array( $register_data['nights'] ) ) |
312 | 312 | { |
313 | | - for ($i = 1; $i <= 8; $i++) |
| 313 | + for ( $i = 1; $i <= 8; $i++ ) |
314 | 314 | { |
315 | | - if (in_array($i, $register_data['nights'])) |
| 315 | + if ( in_array( $i, $register_data['nights'] ) ) |
316 | 316 | { |
317 | | - echo '<input type="hidden" name="nights[]" value="'.$i.'" />'."\n"; |
| 317 | + echo '<input type="hidden" name="nights[]" value="' . $i . '" />' . "\n"; |
318 | 318 | } |
319 | 319 | } |
320 | 320 | } |
321 | | - unset($register_data['nights']); |
322 | | - foreach ($register_data as $name=>$value) |
| 321 | + unset( $register_data['nights'] ); |
| 322 | + foreach ( $register_data as $name => $value ) |
323 | 323 | { |
324 | | - echo '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n"; |
| 324 | + echo '<input type="hidden" name="' . $name . '" value="' . $value . '" />' . "\n"; |
325 | 325 | } |
326 | 326 | ?> |
327 | | - <input type="submit" name="submit" value="<?php get_lang('submit'); ?>" /> |
328 | | - <input type="submit" name="submit" value="<?php get_lang('reset'); ?>" /> |
| 327 | + <input type="submit" name="submit" value="<?php get_lang( 'submit' ); ?>" /> |
| 328 | + <input type="submit" name="submit" value="<?php get_lang( 'reset' ); ?>" /> |
329 | 329 | <input type="hidden" name="uselang" value="<?php echo $userLanguage?>" /> |
330 | 330 | <input type="hidden" name="action" value="submit" /> |
331 | | - <?php if(!$_COOKIE['wikimania']) echo '<input type="hidden" name="secret_id" value="'.$my_session->handle.'" />'; ?> |
332 | | - <input type="hidden" name="secert_id2" value="<?echo $_SESSION['secret'];?>" /> |
| 331 | + <?php if ( !$_COOKIE['wikimania'] ) echo '<input type="hidden" name="secret_id" value="' . $my_session->handle . '" />'; ?> |
| 332 | + <input type="hidden" name="secert_id2" value="<?echo $_SESSION['secret']; ?>" /> |
333 | 333 | </div> |
334 | | -</form> |
| 334 | +</form> |
335 | 335 | <?php |
336 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 336 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
337 | 337 | { |
338 | 338 | echo '</div>'; |
339 | | -}?> |
\ No newline at end of file |
| 339 | +} ?> |
\ No newline at end of file |
Index: trunk/wikimania/wmreg/skin/paypal.php |
— | — | @@ -1,14 +1,14 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | |
7 | 7 | global $myself_url, $register_data, $userLanguage, $lang_register_form; |
8 | 8 | |
9 | 9 | /* WARNING: check $register_data & htmlentities!! */ |
10 | 10 | ?> |
11 | 11 | <?php |
12 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 12 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
13 | 13 | { |
14 | 14 | echo '<div dir="rtl">'; |
15 | 15 | } |
— | — | @@ -20,26 +20,26 @@ |
21 | 21 | <input type="hidden" name="cmd" value="_xclick"> |
22 | 22 | <input type="hidden" name="business" value="SFPHVU7QV7VFU"> |
23 | 23 | <input type="hidden" name="lc" value="IL"> |
24 | | -<input type="hidden" name="item_name" value="Wikimania 2011 registration fee for <?php echo $register_data['given_name'].' '.$register_data['surname']?>"; /> |
25 | | -<input type="hidden" name="item_number" value="<?php echo $register_data['unique_code'];?>"/> |
26 | | -<input type="hidden" name="amount" value="<?php echo $register_data['cost_total'];?>" /> |
27 | | -<input type="hidden" name="currency_code" value="<?php echo $register_data['currency'];?>"/> |
| 24 | +<input type="hidden" name="item_name" value="Wikimania 2011 registration fee for <?php echo $register_data['given_name'] . ' ' . $register_data['surname']?>"; /> |
| 25 | +<input type="hidden" name="item_number" value="<?php echo $register_data['unique_code']; ?>"/> |
| 26 | +<input type="hidden" name="amount" value="<?php echo $register_data['cost_total']; ?>" /> |
| 27 | +<input type="hidden" name="currency_code" value="<?php echo $register_data['currency']; ?>"/> |
28 | 28 | <input type="hidden" name="button_subtype" value="services"> |
29 | 29 | <input type="hidden" name="no_note" value="1"> |
30 | 30 | <input type="hidden" name="bn" value="PP-BuyNowBF:btn_paynowCC_LG.gif:NonHosted"> |
31 | 31 | <input type="hidden" name="no_shipping" value="1" /> |
32 | 32 | <input type="hidden" name="rm" value="1"> |
33 | | -<input type="hidden" name="return" value="<?php echo $myself_url . '/index.php?action=paypal_successful&unique_code=' . $register_data['unique_code'] . '&nonce='.md5($_SESSION['secret'] . $register_data['unique_code']).'&uselang='.$userLanguage; ?>"/> |
34 | | -<input type="hidden" name="cancel_return" value="<?php echo $myself_url . '/index.php?action=paypal_failed&unique_code=' . $register_data['unique_code'] . '&uselang='.$userLanguage; ?>"/> |
| 33 | +<input type="hidden" name="return" value="<?php echo $myself_url . '/index.php?action=paypal_successful&unique_code=' . $register_data['unique_code'] . '&nonce=' . md5( $_SESSION['secret'] . $register_data['unique_code'] ) . '&uselang=' . $userLanguage; ?>"/> |
| 34 | +<input type="hidden" name="cancel_return" value="<?php echo $myself_url . '/index.php?action=paypal_failed&unique_code=' . $register_data['unique_code'] . '&uselang=' . $userLanguage; ?>"/> |
35 | 35 | <input type="hidden" name="no_note" value="1" /> |
36 | 36 | <input type="image" src="https://www.paypal.com/en_US/IL/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> |
37 | 37 | <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> |
38 | 38 | </form> |
39 | 39 | <?php |
40 | | -if ($userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he') |
| 40 | +if ( $userLanguage == 'ar' || $userLanguage == 'fa' || $userLanguage == 'he' ) |
41 | 41 | { |
42 | 42 | echo '</div>'; |
43 | | -}?> |
| 43 | +} ?> |
44 | 44 | |
45 | 45 | |
46 | 46 | |
Index: trunk/wikimania/wmreg/skin/patience.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | /* Prevent hacking */ |
4 | | -if(!defined('TC_STARTED')) |
5 | | -{ die('Hacking Attempt'); } |
| 4 | +if ( !defined( 'TC_STARTED' ) ) |
| 5 | +{ die( 'Hacking Attempt' ); } |
6 | 6 | ?> |
7 | 7 | |
8 | 8 | <script type="text/javascript"> |
— | — | @@ -74,9 +74,9 @@ |
75 | 75 | border='0' /></a> |
76 | 76 | <br> |
77 | 77 | <br> |
78 | | -<?php |
79 | | -echo 'Wikimania 2011 Registration will open on '.gmdate('Y-m-d H:i', |
80 | | -$open_time). ' (UTC). '; |
81 | | -echo '<br> <p id="countbox" align="center"></p> ';?> |
| 78 | +<?php |
| 79 | +echo 'Wikimania 2011 Registration will open on ' . gmdate( 'Y-m-d H:i', |
| 80 | +$open_time ) . ' (UTC). '; |
| 81 | +echo '<br> <p id="countbox" align="center"></p> '; ?> |
82 | 82 | </p> |
83 | 83 | |
Index: trunk/wikimania/wmreg/dbdata.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /* Prevent hacking */ |
5 | | -if(!defined('TC_STARTED')) |
6 | | -{ die('Hacking Attempt'); } |
| 5 | +if ( !defined( 'TC_STARTED' ) ) |
| 6 | +{ die( 'Hacking Attempt' ); } |
7 | 7 | |
8 | 8 | $DB_HOST = '127.0.0.1'; |
9 | 9 | |
— | — | @@ -16,17 +16,16 @@ |
17 | 17 | * The URL of the system |
18 | 18 | */ |
19 | 19 | $myself_url = 'https://secure.wikidc.org/wm/reg/'; |
20 | | -//$myself_url = 'http://wmreg11.eu5.org/wmreg/'; |
| 20 | +// $myself_url = 'http://wmreg11.eu5.org/wmreg/'; |
21 | 21 | |
22 | 22 | $recaptcha_publickey = ""; |
23 | 23 | $recaptcha_privatekey = ""; |
24 | 24 | |
25 | | -$open_time = gmmktime(0, 0, 0, /*january*/ 1, /*1st*/ 1, 2011); |
26 | | -$close_time = gmmktime(0, 0, 0, /*august*/ 8, /*1st*/ 1, 2012); |
| 25 | +$open_time = gmmktime( 0, 0, 0, /*january*/ 1, /*1st*/ 1, 2011 ); |
| 26 | +$close_time = gmmktime( 0, 0, 0, /*august*/ 8, /*1st*/ 1, 2012 ); |
27 | 27 | $mock = true; |
28 | 28 | |
29 | 29 | $coupon_vip = 'foo'; |
30 | 30 | $coupon_median = 'bar'; |
31 | 31 | $coupon_volunteer = 'baz'; |
32 | 32 | |
33 | | -?> |
Index: trunk/wikimania/wmreg/includes/language_es.php |
— | — | @@ -12,24 +12,24 @@ |
13 | 13 | '<p><strong>Datos de información personal</strong></p>', |
14 | 14 | 'surname' => 'Apellido', |
15 | 15 | 'given_name' => 'Nombre', |
16 | | -'sex' => 'Género', |
| 16 | +'sex' => 'Género', |
17 | 17 | 'sex1' => 'Masculino', |
18 | 18 | 'sex2' => 'Femenino', |
19 | 19 | 'sex3' => 'No declara', |
20 | | -'passport' => 'Número de pasaporte / Número de identificación', |
| 20 | +'passport' => 'Número de pasaporte / Número de identificación', |
21 | 21 | 'passport_valid' => 'Pasaporte válido hasta (dd/mmm/yyyy)<br><small>Tu pasaporte debe ser válido por 6 meses.</small>', |
22 | 22 | 'passport_issued' => 'Lugar en donde el pasaporte fue emitido', |
23 | | -'country' => 'País de residencia', |
| 23 | +'country' => 'País de residencia', |
24 | 24 | 'birthday' => 'Fecha de nacimiento (dd/mmm/yyyy)', |
25 | | -'year1' => '', |
26 | | -'year' => '', |
27 | | -'month' => '', |
28 | | -'months' => array(NULL, 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'), |
29 | | -'day' => '', |
| 25 | +'year1' => '', |
| 26 | +'year' => '', |
| 27 | +'month' => '', |
| 28 | +'months' => array( NULL, 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' ), |
| 29 | +'day' => '', |
30 | 30 | 'title2' => |
31 | 31 | ' <p><strong>Habilidades lingüísticas</strong></p>', |
32 | | -'langn' => 'Idioma nativo', |
33 | | -'lang' => 'Idiomas adicionales', |
| 32 | +'langn' => 'Idioma nativo', |
| 33 | +'lang' => 'Idiomas adicionales', |
34 | 34 | 'select_lang' => 'Selecciona el idioma', |
35 | 35 | 'select_level' => 'Selecciona el nivel de dominio', |
36 | 36 | |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | 'lang2_level' => 'Nivel del Idioma 2', |
48 | 48 | 'lang3_level' => 'Nivel del Idioma 3', |
49 | 49 | |
50 | | -'title3' => |
| 50 | +'title3' => |
51 | 51 | '<p><strong>Proyecto de Wikimedia y dirección/es de correo electrónico</strong></p> |
52 | 52 | <p>Tu correo electrónico sólo será utilizado para la inscripción y para notificaciones urgentes sobre Wikimanía 2011. |
53 | 53 | </p> |
54 | | -', |
55 | | -'wiki_id' => 'Nombre de la cuenta de tu proyecto Wikimedia preferido', |
56 | | -'email' => 'Tu correo electrónico', |
| 54 | +', |
| 55 | +'wiki_id' => 'Nombre de la cuenta de tu proyecto Wikimedia preferido', |
| 56 | +'email' => 'Tu correo electrónico', |
57 | 57 | |
58 | 58 | 'legend2' => 'Participación', |
59 | 59 | 'title4' => |
— | — | @@ -70,16 +70,16 @@ |
71 | 71 | 'showname1' => 'Nombre', |
72 | 72 | 'showname2' => 'Cuenta Wikimedia', |
73 | 73 | 'showname3' => 'Información adicional:', |
74 | | -'size' => 'Talla de camiseta', |
| 74 | +'size' => 'Talla de camiseta', |
75 | 75 | 'food' => 'Restricciones de dieta<br><small>Todos los alimentos que se servirán durante la conferencia serán kosher.</small>', |
76 | 76 | 'food0' => 'No', |
77 | 77 | 'food1' => 'Vegetariano', |
78 | 78 | 'food2' => 'Halal', |
79 | 79 | 'food_other' => 'Otro:', |
80 | | - |
81 | | -'title_visa' => |
| 80 | + |
| 81 | +'title_visa' => |
82 | 82 | '<p><strong>Asistencia para visa</strong></p> |
83 | | -<p>Si tu pasaporte es emitido por <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>un país para el que se requiere un visado de entrada a Israel</a>, por favor llena esta sección para que los organizadores pueden pasar sus datos al Ministerio israelí de Asuntos Exteriores.', |
| 83 | +<p>Si tu pasaporte es emitido por <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>un país para el que se requiere un visado de entrada a Israel</a>, por favor llena esta sección para que los organizadores pueden pasar sus datos al Ministerio israelí de Asuntos Exteriores.', |
84 | 84 | 'need_visa_assistance' => 'Sí, necesito un visado de entrada a Israel', |
85 | 85 | 'visa_assistance' => 'Ayuda para obtener la visa', |
86 | 86 | 'visa_assistance_description' => 'Por favor indícanos cómo puede ayudarte el equipo organizador a obtener la visa. (en <strong>Inglés</strong>)', |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | 'hotel5stars' => 'Hotel de cinco estrellas', |
105 | 105 | 'hotelboutique' => 'Hotel boutique', |
106 | 106 | |
107 | | -'accommodation' => 'Noches de alojamiento que necesitas', |
| 107 | +'accommodation' => 'Noches de alojamiento que necesitas', |
108 | 108 | 'night1' => 'Lunes 1 de agosto, 2011', |
109 | 109 | 'night2' => 'Martes 2 de agosto, 2011', |
110 | 110 | 'night3' => 'Miércoles 3 de agosto, 2011', |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | 'night6' => 'Sábado 5 de agosto, 2011', |
114 | 114 | 'night7' => 'Domingo 7 de agosto, 2011', |
115 | 115 | 'night8' => 'Lunes 8 de agosto, 2011', |
116 | | -'room' => 'Habitación preferida', |
| 116 | +'room' => 'Habitación preferida', |
117 | 117 | 'room1' => 'Ocupación individual', |
118 | 118 | 'room2' => 'Ocupación doble con pareja del mismo género seleccionada al azar por los organizadores', |
119 | 119 | 'room3' => 'Ocupación doble con un compañero (a) en específico (por favor escriba nombre completo)', |
— | — | @@ -148,8 +148,8 @@ |
149 | 149 | 'color' => 'Color de camiseta', |
150 | 150 | 'white' => 'Blanca', |
151 | 151 | 'black' => 'negra', |
152 | | -'nationality' => 'Pasaporte emitido por', |
153 | | -'countryofbirth' => 'País de nacimiento', |
| 152 | +'nationality' => 'Pasaporte emitido por', |
| 153 | +'countryofbirth' => 'País de nacimiento', |
154 | 154 | 'homeaddress' => 'Dirección', |
155 | 155 | 'picktour' => 'Destino de tour preferido', |
156 | 156 | 'tour0' => 'No tengo una preferencia', |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | |
167 | 167 | $lang_messages = array( |
168 | 168 | 'successful' => 'Registro completo', |
169 | | -'successful_description' => |
| 169 | +'successful_description' => |
170 | 170 | '<p>¡Gracias por sumarte a Wikimanía 2011! Tu formulario de inscripción fue aceptado. Por favor, ten en cuenta que necesitas completar el proceso de pago para que la inscripción pueda ser confirmada. |
171 | 171 | |
172 | 172 | Tu <strong>número de registro</strong> será mostrado debajo. Por favor, anota este número ya que será utilizado para consultar el estado de tu inscripción y para confirmar tu identidad en el futuro. |
Index: trunk/wikimania/wmreg/includes/language_fr.php |
— | — | @@ -12,24 +12,24 @@ |
13 | 13 | '<p><strong>Données sur l\'identité du participant</strong></p>', |
14 | 14 | 'surname' => 'Nom', |
15 | 15 | 'given_name' => 'Prénom', |
16 | | -'sex' => 'Sexe', |
| 16 | +'sex' => 'Sexe', |
17 | 17 | 'sex1' => 'masculin', |
18 | 18 | 'sex2' => 'féminin', |
19 | 19 | 'sex3' => 'non communiqué', |
20 | | -'passport' => 'Numéro de passeport', |
| 20 | +'passport' => 'Numéro de passeport', |
21 | 21 | 'passport_valid' => 'Passeport valide jusqu\'au (JJ/MM/AAAA)<br><small>Vôtre passeport doit impérativement être encore valide six mois après la date d\'entrée sur le territoire.</small>', |
22 | 22 | 'passport_issued' => 'Passeport délivré à', |
23 | | -'country' => 'Pays de résidence', |
| 23 | +'country' => 'Pays de résidence', |
24 | 24 | 'birthday' => 'Date de naissance (JJ/MM/AAAA)', |
25 | | -'year1' => '', |
26 | | -'year' => '', |
27 | | -'month' => '', |
28 | | -'months' => array(NULL, 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'), |
29 | | -'day' => '', |
| 25 | +'year1' => '', |
| 26 | +'year' => '', |
| 27 | +'month' => '', |
| 28 | +'months' => array( NULL, 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre' ), |
| 29 | +'day' => '', |
30 | 30 | 'title2' => |
31 | 31 | ' <p><strong>Compétences linguistiques</strong></p>', |
32 | | -'langn' => 'Langue maternelle', |
33 | | -'lang' => 'Autres langues', |
| 32 | +'langn' => 'Langue maternelle', |
| 33 | +'lang' => 'Autres langues', |
34 | 34 | 'select_lang' => 'Choisir une langue', |
35 | 35 | 'select_level' => 'Choisir un niveau', |
36 | 36 | |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | 'lang2_level' => 'Compétences linguistiques pour la langue 2', |
48 | 48 | 'lang3_level' => 'Compétences linguistiques pour la langue 3', |
49 | 49 | |
50 | | -'title3' => |
| 50 | +'title3' => |
51 | 51 | '<p><strong>Projet Wikimédia et adresse de courriel</strong></p> |
52 | 52 | <p>Vôtre adresse de courriel sera utilisée uniquement dans le cadre de Wikimania 2011. |
53 | 53 | </p> |
54 | | -', |
55 | | -'wiki_id' => 'Nom d\'utilisateur sur les projets Wikimédia', |
56 | | -'email' => 'Adresse de courriel', |
| 54 | +', |
| 55 | +'wiki_id' => 'Nom d\'utilisateur sur les projets Wikimédia', |
| 56 | +'email' => 'Adresse de courriel', |
57 | 57 | |
58 | 58 | 'legend2' => 'Participation', |
59 | 59 | 'title4' => |
— | — | @@ -70,16 +70,16 @@ |
71 | 71 | 'showname1' => 'Nom', |
72 | 72 | 'showname2' => 'Nom d\'utilisateur sur les projets Wikimédia', |
73 | 73 | 'showname3' => 'Informations supplémentaires :', |
74 | | -'size' => 'Taille du T-Shirt', |
| 74 | +'size' => 'Taille du T-Shirt', |
75 | 75 | 'food' => 'Pratique alimentaire particulière<br><small>Tous les repas durant la conférence seront casher.</small>', |
76 | 76 | 'food0' => 'aucune', |
77 | 77 | 'food1' => 'végétarien', |
78 | 78 | 'food2' => 'halal', |
79 | 79 | 'food_other' => 'autre :', |
80 | | - |
81 | | -'title_visa' => |
| 80 | + |
| 81 | +'title_visa' => |
82 | 82 | '<p><strong>Visa</strong></p> |
83 | | -<p>Si vôtre passeport a été émis d\'un <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>pays pour lequel il est exigé un visa de la part d\'Israël</a>, renseignez le formulaire suivant afin que l\'organisation soit en mesure de communiquer ces informations au ministère israélien des Affaires étrangères.', |
| 83 | +<p>Si vôtre passeport a été émis d\'un <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>pays pour lequel il est exigé un visa de la part d\'Israël</a>, renseignez le formulaire suivant afin que l\'organisation soit en mesure de communiquer ces informations au ministère israélien des Affaires étrangères.', |
84 | 84 | 'need_visa_assistance' => 'Oui, ma venue en Israël nécessite un visa.', |
85 | 85 | 'visa_assistance' => 'Nécessité d\'un visa', |
86 | 86 | 'visa_assistance_description' => 'Requête particulière relative à la demande de visa (en <strong>anglais</strong>)', |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | 'hotel5stars' => 'Hotels *****', |
105 | 105 | 'hotelboutique' => 'Boutique-Hotels', |
106 | 106 | |
107 | | -'accommodation' => 'Nuitées où un hébergement est nécessaire', |
| 107 | +'accommodation' => 'Nuitées où un hébergement est nécessaire', |
108 | 108 | 'night1' => 'Lundi, 1. août 2011', |
109 | 109 | 'night2' => 'Mardi, 2 août 2011', |
110 | 110 | 'night3' => 'Mercredi, 3 août 2011', |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | 'night6' => 'Samedi, 6 août 2011', |
114 | 114 | 'night7' => 'Dimanche, 7 août 2011', |
115 | 115 | 'night8' => 'Lundi, 8 août 2011', |
116 | | -'room' => 'Type de chambre souhaitée', |
| 116 | +'room' => 'Type de chambre souhaitée', |
117 | 117 | 'room1' => 'Individuelle', |
118 | 118 | 'room2' => 'Double avec un autre participant du même sexe choisi au hasard.', |
119 | 119 | 'room3' => 'Double avec un autre participant en particulier (prière de donner le nom et prénom complet) :', |
— | — | @@ -148,8 +148,8 @@ |
149 | 149 | 'color' => 'Couleur du T-Shirt', |
150 | 150 | 'white' => 'blanc', |
151 | 151 | 'black' => 'noir', |
152 | | -'nationality' => 'Pays d\'émission du passeport', |
153 | | -'countryofbirth' => 'Pays de naissance', |
| 152 | +'nationality' => 'Pays d\'émission du passeport', |
| 153 | +'countryofbirth' => 'Pays de naissance', |
154 | 154 | 'homeaddress' => 'Adresse de résidence', |
155 | 155 | 'picktour' => 'Souhait de visite', |
156 | 156 | 'tour0' => 'pas de souhait particulier', |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | 'tour2' => 'Jérusalem', |
159 | 159 | 'tour3' => 'Acre', |
160 | 160 | 'tour4' => 'Terrasses Baha\'i sur le Mont Carmel', |
161 | | -'tour5' => 'Villages druses', |
| 161 | +'tour5' => 'Villages druses', |
162 | 162 | 'main_date' => 'Journée principale de la conférence', |
163 | 163 | 'captcha' => 'Information du CAPTCHA' |
164 | 164 | ); |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | |
167 | 167 | $lang_messages = array( |
168 | 168 | 'successful' => 'Inscription terminée', |
169 | | -'successful_description' => |
| 169 | +'successful_description' => |
170 | 170 | '<p>Merci beaucoup pour vôtre participation à Wikimania 2011! Vôtre inscription a été transmise. Prenez en considération qu\'il vous faudra effecuté le paiement afin de que vôtre inscription puisse être confirmée. |
171 | 171 | |
172 | 172 | Vôtre <strong>numéro d\'inscription</strong> va être indiqué ci-dessous. Prenez en considération qu\'il vous faudra obligatoirement ce numéro pour interroger le système sur le statut de vôtre inscription. |
Index: trunk/wikimania/wmreg/includes/language_de.php |
— | — | @@ -12,24 +12,24 @@ |
13 | 13 | '<p><strong>Persönliche Identitätsdaten</strong></p>', |
14 | 14 | 'surname' => 'Nachname', |
15 | 15 | 'given_name' => 'Vorname', |
16 | | -'sex' => 'Geschlecht', |
| 16 | +'sex' => 'Geschlecht', |
17 | 17 | 'sex1' => 'männlich', |
18 | 18 | 'sex2' => 'weiblich', |
19 | 19 | 'sex3' => 'keine Angabe', |
20 | | -'passport' => 'Reisepass-Nummer', |
| 20 | +'passport' => 'Reisepass-Nummer', |
21 | 21 | 'passport_valid' => 'Gültigkeit des Reisepasses (TT/MM/JJJJ)<br><small>Ihr Reisepass muss noch mindestens sechs Monate gültig sein.</small>', |
22 | 22 | 'passport_issued' => 'Ausstellungsort', |
23 | | -'country' => 'Land des aktuellen Wohnorts', |
| 23 | +'country' => 'Land des aktuellen Wohnorts', |
24 | 24 | 'birthday' => 'Geburtsdatum (TT/MM/JJJJ)', |
25 | | -'year1' => '', |
26 | | -'year' => '', |
27 | | -'month' => '', |
28 | | -'months' => array(NULL, 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'), |
29 | | -'day' => '', |
| 25 | +'year1' => '', |
| 26 | +'year' => '', |
| 27 | +'month' => '', |
| 28 | +'months' => array( NULL, 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ), |
| 29 | +'day' => '', |
30 | 30 | 'title2' => |
31 | 31 | ' <p><strong>Sprachkenntnisse</strong></p>', |
32 | | -'langn' => 'Muttersprache', |
33 | | -'lang' => 'Weitere Sprachen', |
| 32 | +'langn' => 'Muttersprache', |
| 33 | +'lang' => 'Weitere Sprachen', |
34 | 34 | 'select_lang' => 'bitte Sprache auswählen', |
35 | 35 | 'select_level' => 'bitte Fähgkeit angeben', |
36 | 36 | |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | 'lang2_level' => 'Sprachkenntnis für Sprache 2', |
48 | 48 | 'lang3_level' => 'Sprachkenntnis für Sprache 3', |
49 | 49 | |
50 | | -'title3' => |
| 50 | +'title3' => |
51 | 51 | '<p><strong>Wikimedia-Projekt und E-Mail-Adresse</strong></p> |
52 | 52 | <p>Ihre E-Mail-Adresse wird ausschliesslich für die Registrierung sowie dringende Benachrichtigungen zur Wikimania 2011 verwendet. |
53 | 53 | </p> |
54 | | -', |
55 | | -'wiki_id' => 'Wikimedia-Benutzername', |
56 | | -'email' => 'E-Mail-Adresse', |
| 54 | +', |
| 55 | +'wiki_id' => 'Wikimedia-Benutzername', |
| 56 | +'email' => 'E-Mail-Adresse', |
57 | 57 | |
58 | 58 | 'legend2' => 'Teilnahme', |
59 | 59 | 'title4' => |
— | — | @@ -70,16 +70,16 @@ |
71 | 71 | 'showname1' => 'Name', |
72 | 72 | 'showname2' => 'Wikimedia-Benutzername', |
73 | 73 | 'showname3' => 'Weitere Informationen:', |
74 | | -'size' => 'T-Shirt-Grösse', |
| 74 | +'size' => 'T-Shirt-Grösse', |
75 | 75 | 'food' => 'Ernährungseinschränkungen<br><small>Alle Mahlzeiten während der Konferenz werden kosher zubereitet.</small>', |
76 | 76 | 'food0' => 'keine', |
77 | 77 | 'food1' => 'Vegetarier', |
78 | 78 | 'food2' => 'Halal', |
79 | 79 | 'food_other' => 'Andere:', |
80 | | - |
81 | | -'title_visa' => |
| 80 | + |
| 81 | +'title_visa' => |
82 | 82 | '<p><strong>Visum</strong></p> |
83 | | -<p>Wenn Ihr Reisepass von <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>einem Land ausgestellt wurde, für das ein Visum zur Einreise nach Israel benötigt wird</a>, füllen Sie bitte die folgenden Angaben aus, damit das Organisationsteam Ihre Daten an das israelische Aussenministerium weitergeben kann.', |
| 83 | +<p>Wenn Ihr Reisepass von <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>einem Land ausgestellt wurde, für das ein Visum zur Einreise nach Israel benötigt wird</a>, füllen Sie bitte die folgenden Angaben aus, damit das Organisationsteam Ihre Daten an das israelische Aussenministerium weitergeben kann.', |
84 | 84 | 'need_visa_assistance' => 'Ja, ich benötige ein Visum zur Einreise nach Israel', |
85 | 85 | 'visa_assistance' => 'Visum-Antrag', |
86 | 86 | 'visa_assistance_description' => 'Spezielle Anforderungen im Bezug auf den Visums-Antrag (auf <strong>Englisch</strong>)', |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | 'hotel5stars' => 'Fünf-Sterne Hotels', |
105 | 105 | 'hotelboutique' => 'Boutique-Hotels', |
106 | 106 | |
107 | | -'accommodation' => 'Nächte in denen Übernachtung benötigt wird', |
| 107 | +'accommodation' => 'Nächte in denen Übernachtung benötigt wird', |
108 | 108 | 'night1' => 'Montag, 1. August 2011', |
109 | 109 | 'night2' => 'Diensta, 2. August 2011', |
110 | 110 | 'night3' => 'Mittwoch, 3. August 2011', |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | 'night6' => 'Samstag, 6. August 2011', |
114 | 114 | 'night7' => 'Sonntag, 7. August 2011', |
115 | 115 | 'night8' => 'Montag, 8. August 2011', |
116 | | -'room' => 'Gewünschtes Zimmer', |
| 116 | +'room' => 'Gewünschtes Zimmer', |
117 | 117 | 'room1' => 'Einzelbelegung', |
118 | 118 | 'room2' => 'Doppelbelegung mit einem zufällig gewählten Teilnehmer gleichen Geschlechts', |
119 | 119 | 'room3' => 'Doppelbelegung mit einem bestimmten Partner (bitte vollen Namen angeben):', |
— | — | @@ -148,8 +148,8 @@ |
149 | 149 | 'color' => 'T-Shirt-Farbe', |
150 | 150 | 'white' => 'weiss', |
151 | 151 | 'black' => 'schwarz', |
152 | | -'nationality' => 'Reisepass ausgestellt durch', |
153 | | -'countryofbirth' => 'Geburtsland', |
| 152 | +'nationality' => 'Reisepass ausgestellt durch', |
| 153 | +'countryofbirth' => 'Geburtsland', |
154 | 154 | 'homeaddress' => 'Heimatadresse', |
155 | 155 | 'picktour' => 'Gewünschte Tour', |
156 | 156 | 'tour0' => 'kein bestimmter Wunsch', |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | 'tour2' => 'Jerusalem', |
159 | 159 | 'tour3' => 'Akkon (Acco)', |
160 | 160 | 'tour4' => 'die Hängenden Gärten der Bahai', |
161 | | -'tour5' => 'Drusen-Dörfer', |
| 161 | +'tour5' => 'Drusen-Dörfer', |
162 | 162 | 'main_date' => 'Haupt-Konferenztag', |
163 | 163 | 'captcha' => 'CAPTCHA-Information' |
164 | 164 | ); |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | |
167 | 167 | $lang_messages = array( |
168 | 168 | 'successful' => 'Registrierung abgeschlossen', |
169 | | -'successful_description' => |
| 169 | +'successful_description' => |
170 | 170 | '<p>Vielen Dank für Ihre Teilnahme an Wikimania 2011! Ihre Registrierun wurde übermittelt. Bitte beachten Sie, dass Sie die Zahlung vornehmen müssen, bevor die Registrierung bestätigt werden kann. |
171 | 171 | |
172 | 172 | Ihre <strong>Registrierungsnummer</strong> wird unten angezeigt. Bitte notieren Sie sich diese Nummer, da Sie sie benötigen um Ihren Registrierungsstatus abzufragen und zukünftig Ihre Identität zu prüfen. |
Index: trunk/wikimania/wmreg/includes/SqlConnect-mysql.php |
— | — | @@ -2,35 +2,35 @@ |
3 | 3 | /* ToyCastle project */ |
4 | 4 | |
5 | 5 | /* Prevent hacking */ |
6 | | -if(!defined('TC_STARTED')) |
7 | | -{ die('Hacking Attempt'); } |
| 6 | +if ( !defined( 'TC_STARTED' ) ) |
| 7 | +{ die( 'Hacking Attempt' ); } |
8 | 8 | |
9 | 9 | /* Class SqlConnect start */ |
10 | 10 | Class SqlConnect |
11 | 11 | { |
12 | 12 | var $handle; |
13 | | - var $database_name; |
| 13 | + var $database_name; |
14 | 14 | |
15 | | - function Start($sql_server,$sql_name,$sql_password,$sql_database_name,$sql_persistency=false) |
16 | | - { |
17 | | - if($this->handle) return false; |
18 | | - |
| 15 | + function Start( $sql_server, $sql_name, $sql_password, $sql_database_name, $sql_persistency = false ) |
| 16 | + { |
| 17 | + if ( $this->handle ) return false; |
| 18 | + |
19 | 19 | /* Start Connect */ |
20 | | - if($sql_persistency) |
| 20 | + if ( $sql_persistency ) |
21 | 21 | { |
22 | | - $this->handle = mysql_pconnect($sql_server,$sql_name,$sql_password); |
| 22 | + $this->handle = mysql_pconnect( $sql_server, $sql_name, $sql_password ); |
23 | 23 | } |
24 | 24 | else |
25 | 25 | { |
26 | | - $this->handle = mysql_connect($sql_server,$sql_name,$sql_password); |
| 26 | + $this->handle = mysql_connect( $sql_server, $sql_name, $sql_password ); |
27 | 27 | } |
28 | 28 | |
29 | | - if($this->handle) |
| 29 | + if ( $this->handle ) |
30 | 30 | { |
31 | 31 | /* force to use UTF-8 */ |
32 | | - @mysql_query('SET NAMES \'utf8\''); |
33 | | - |
34 | | - if(mysql_select_db($sql_database_name)) |
| 32 | + @mysql_query( 'SET NAMES \'utf8\'' ); |
| 33 | + |
| 34 | + if ( mysql_select_db( $sql_database_name ) ) |
35 | 35 | { |
36 | 36 | $this->database_name = $sql_database_name; |
37 | 37 | return true; |
— | — | @@ -46,21 +46,21 @@ |
47 | 47 | } |
48 | 48 | } |
49 | 49 | |
50 | | - function Query($query_string) |
51 | | - { |
52 | | - return mysql_query($query_string,$this->handle); |
| 50 | + function Query( $query_string ) |
| 51 | + { |
| 52 | + return mysql_query( $query_string, $this->handle ); |
53 | 53 | } |
54 | | - function fetchArray($query_result) |
| 54 | + function fetchArray( $query_result ) |
55 | 55 | { |
56 | | - return mysql_fetch_array($query_result); |
| 56 | + return mysql_fetch_array( $query_result ); |
57 | 57 | } |
58 | | - function fetchAssoc($query_result) |
| 58 | + function fetchAssoc( $query_result ) |
59 | 59 | { |
60 | | - return mysql_fetch_assoc($query_result); |
| 60 | + return mysql_fetch_assoc( $query_result ); |
61 | 61 | } |
62 | 62 | function fetchRow() |
63 | 63 | { |
64 | | - return mysql_fetch_row($query_result); |
| 64 | + return mysql_fetch_row( $query_result ); |
65 | 65 | } |
66 | 66 | /* |
67 | 67 | Function : EscapeString |
— | — | @@ -69,221 +69,221 @@ |
70 | 70 | Return values : true if success,false if failed |
71 | 71 | Last modified : 2006/04/25 littleb |
72 | 72 | */ |
73 | | - function EscapeString($unescaped_string) |
| 73 | + function EscapeString( $unescaped_string ) |
74 | 74 | { |
75 | 75 | /* No Connect, No Escape */ |
76 | | - if(!$this->handle) return false; |
| 76 | + if ( !$this->handle ) return false; |
77 | 77 | |
78 | | - if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) $unescaped_string = stripslashes($unescaped_string); |
| 78 | + if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) $unescaped_string = stripslashes( $unescaped_string ); |
79 | 79 | |
80 | 80 | /* Try Escape String by MySQL */ |
81 | | - $escape_result = @mysql_real_escape_string($unescaped_string,$this->handle); |
| 81 | + $escape_result = @mysql_real_escape_string( $unescaped_string, $this->handle ); |
82 | 82 | /* Try Escape String by php */ |
83 | | - if(!$escape_result) {$escape_result = @mysql_escape_string($unescaped_string);} |
| 83 | + if ( !$escape_result ) { $escape_result = @mysql_escape_string( $unescaped_string ); } |
84 | 84 | /* Finally, Try addslashes */ |
85 | | - if(!$escape_result) {$escape_result = @addslashes($unescaped_string);} |
| 85 | + if ( !$escape_result ) { $escape_result = @addslashes( $unescaped_string ); } |
86 | 86 | |
87 | | - |
| 87 | + |
88 | 88 | return $escape_result; |
89 | 89 | } |
90 | 90 | /*SHOW TABLES FROM db_name LIKE 'pattern'*/ |
91 | 91 | /* function isTableExist($table_name)*/ |
92 | | - //{ |
| 92 | + // { |
93 | 93 | /* No Connect, No Action */ |
94 | | - //if(!$this->handle) return false; |
95 | | - |
| 94 | + // if(!$this->handle) return false; |
| 95 | + |
96 | 96 | /*MySQL Query */ |
97 | | - //$this->query('SHOW TABLE FROM `'. $this->database_name .'` LIKE\''. preg_replace('\_','\\\_',$this->EscapeString($table_name) .'\''); |
98 | | - //} |
| 97 | + // $this->query('SHOW TABLE FROM `'. $this->database_name .'` LIKE\''. preg_replace('\_','\\\_',$this->EscapeString($table_name) .'\''); |
| 98 | + // } |
99 | 99 | |
100 | 100 | |
101 | | - function insertData($table, $data_array) |
| 101 | + function insertData( $table, $data_array ) |
102 | 102 | { |
103 | 103 | |
104 | 104 | /* No Connect, No Action */ |
105 | | - if(!$this->handle) return false; |
| 105 | + if ( !$this->handle ) return false; |
106 | 106 | |
107 | 107 | /* Must be an array */ |
108 | | - if (!is_array($data_array)) return false; |
| 108 | + if ( !is_array( $data_array ) ) return false; |
109 | 109 | |
110 | 110 | /* No special table name */ |
111 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $table)) return false; |
| 111 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $table ) ) return false; |
112 | 112 | |
113 | 113 | /* No Multi-Dimentional Array and special column name; Escape Strings */ |
114 | | - foreach ($data_array as $key => $value) |
| 114 | + foreach ( $data_array as $key => $value ) |
115 | 115 | { |
116 | | - if (empty($key)) return false; |
117 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $key)) return false; |
118 | | - if (is_array($value)) return false; |
119 | | - $data_array[$key] = $this->EscapeString($value); |
| 116 | + if ( empty( $key ) ) return false; |
| 117 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $key ) ) return false; |
| 118 | + if ( is_array( $value ) ) return false; |
| 119 | + $data_array[$key] = $this->EscapeString( $value ); |
120 | 120 | } |
121 | | - |
| 121 | + |
122 | 122 | /* Prepare Query */ |
123 | | - $queryString = 'INSERT INTO `'.$table.'` (`'.implode('`, `', array_keys($data_array)).'`)'. |
124 | | - ' VALUES (\''.implode('\', \'', /* Esacped in Foreach */array_values($data_array)).'\');'; |
125 | | - return $this->Query($queryString); |
| 123 | + $queryString = 'INSERT INTO `' . $table . '` (`' . implode( '`, `', array_keys( $data_array ) ) . '`)' . |
| 124 | + ' VALUES (\'' . implode( '\', \'', /* Esacped in Foreach */array_values( $data_array ) ) . '\');'; |
| 125 | + return $this->Query( $queryString ); |
126 | 126 | } |
127 | | - function updateData($table, $data_array, $where_parameters) |
| 127 | + function updateData( $table, $data_array, $where_parameters ) |
128 | 128 | { |
129 | 129 | /* No Connect, No Action */ |
130 | | - if(!$this->handle) |
| 130 | + if ( !$this->handle ) |
131 | 131 | { return false; } |
132 | 132 | |
133 | 133 | /* Must be an array */ |
134 | | - if (!is_array($data_array)) |
| 134 | + if ( !is_array( $data_array ) ) |
135 | 135 | { return false; } |
136 | 136 | |
137 | 137 | /* No special table name */ |
138 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $table)) |
| 138 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $table ) ) |
139 | 139 | { return false; } |
140 | | - |
| 140 | + |
141 | 141 | $data_parameters = ''; |
142 | 142 | |
143 | 143 | /* No Multi-Dimentional Array and special field name; Escape Strings */ |
144 | | - foreach ($data_array as $key => $value) |
| 144 | + foreach ( $data_array as $key => $value ) |
145 | 145 | { |
146 | | - if (empty($key)) return false; |
147 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $key)) return false; |
148 | | - if (is_array($value)) return false; |
| 146 | + if ( empty( $key ) ) return false; |
| 147 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $key ) ) return false; |
| 148 | + if ( is_array( $value ) ) return false; |
149 | 149 | |
150 | | - if (empty($data_parameters)) |
151 | | - { $data_parameters = '`' . $key . '` = \'' . $this->EscapeString($value) . '\'';} |
| 150 | + if ( empty( $data_parameters ) ) |
| 151 | + { $data_parameters = '`' . $key . '` = \'' . $this->EscapeString( $value ) . '\''; } |
152 | 152 | else |
153 | | - { $data_parameters .= ', `' . $key . '` = \'' . $this->EscapeString($value) . '\'';} |
| 153 | + { $data_parameters .= ', `' . $key . '` = \'' . $this->EscapeString( $value ) . '\''; } |
154 | 154 | } |
155 | | - |
| 155 | + |
156 | 156 | /* Prepare Query */ |
157 | | - $queryString = 'UPDATE `'.$table.'` SET '. /* Esacped in Foreach */ $data_parameters . ' WHERE ' . $where_parameters; |
| 157 | + $queryString = 'UPDATE `' . $table . '` SET ' . /* Esacped in Foreach */ $data_parameters . ' WHERE ' . $where_parameters; |
158 | 158 | |
159 | | - return $this->Query($queryString); |
| 159 | + return $this->Query( $queryString ); |
160 | 160 | } |
161 | 161 | |
162 | 162 | |
163 | | - function removeData($table, $where_parameters) |
| 163 | + function removeData( $table, $where_parameters ) |
164 | 164 | { |
165 | 165 | /* No Connect, No Action */ |
166 | | - if(!$this->handle) |
| 166 | + if ( !$this->handle ) |
167 | 167 | { return false; } |
168 | 168 | |
169 | 169 | /* No special table name */ |
170 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $table)) |
| 170 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $table ) ) |
171 | 171 | { return false; } |
172 | 172 | |
173 | 173 | /* Prepare Query */ |
174 | | - $queryString = 'DELETE FROM `'.$table.'` WHERE ' . $where_parameters; |
| 174 | + $queryString = 'DELETE FROM `' . $table . '` WHERE ' . $where_parameters; |
175 | 175 | |
176 | 176 | /* FIXME: DEVELOPEMENT USE ONLY ***/ |
177 | | - /**/echo $queryString; return 1;/**/ |
178 | | - /* END FIXME **********************/ |
179 | | - |
180 | | - return $this->Query($queryString); |
181 | | - } |
182 | | - function selectData($table, $field_array = array(), $where_parameters = '', $order_array = array(), $other_array = array()) |
| 177 | + /**/echo $queryString; return 1; /**/ |
| 178 | + /* END FIXME **********************/ |
| 179 | + |
| 180 | + return $this->Query( $queryString ); |
| 181 | + } |
| 182 | + function selectData( $table, $field_array = array(), $where_parameters = '', $order_array = array(), $other_array = array() ) |
183 | 183 | { |
184 | 184 | /* FIXME: add support of multi-table */ |
185 | | - if (empty($other_array) || ! is_array($other_array)) |
| 185 | + if ( empty( $other_array ) || ! is_array( $other_array ) ) |
186 | 186 | { $other_array = array(); } |
187 | 187 | |
188 | 188 | /* No Connect, No Action */ |
189 | | - if(!$this->handle) |
| 189 | + if ( !$this->handle ) |
190 | 190 | { return false; } |
191 | 191 | |
192 | 192 | /* Must be an array or empty */ |
193 | | - if (!is_array($field_array) && !empty($field_array)) |
| 193 | + if ( !is_array( $field_array ) && !empty( $field_array ) ) |
194 | 194 | { return false; } |
195 | 195 | |
196 | 196 | /* No special table name */ |
197 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $table)) |
| 197 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $table ) ) |
198 | 198 | { return false; } |
199 | 199 | |
200 | 200 | $field_parameters = ''; |
201 | 201 | |
202 | 202 | /* distinct process */ |
203 | | - if ($other_array['distinct']) |
| 203 | + if ( $other_array['distinct'] ) |
204 | 204 | { |
205 | 205 | |
206 | 206 | /* Only one field is ok */ |
207 | | - if (count($field_array) !=1) |
| 207 | + if ( count( $field_array ) != 1 ) |
208 | 208 | { return false; } |
209 | 209 | |
210 | 210 | /* pop the only value */ |
211 | | - $value = array_pop($field_array); |
| 211 | + $value = array_pop( $field_array ); |
212 | 212 | |
213 | 213 | /* No Multi-Dimentional Array and special field name; Escape Strings */ |
214 | | - if (empty($value)) return false; |
215 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $value)) return false; |
216 | | - if (is_array($value)) return false; |
| 214 | + if ( empty( $value ) ) return false; |
| 215 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $value ) ) return false; |
| 216 | + if ( is_array( $value ) ) return false; |
217 | 217 | |
218 | | - if ($other_array['count']) |
219 | | - { $field_parameters .= 'COUNT( DISTINCT `'. $value .'` )'; } |
| 218 | + if ( $other_array['count'] ) |
| 219 | + { $field_parameters .= 'COUNT( DISTINCT `' . $value . '` )'; } |
220 | 220 | else |
221 | | - { $field_parameters .= 'DISTINCT `' . $value . '`';} |
| 221 | + { $field_parameters .= 'DISTINCT `' . $value . '`'; } |
222 | 222 | |
223 | 223 | } |
224 | 224 | else |
225 | 225 | { |
226 | 226 | /* count? */ |
227 | | - if ($other_array['count']) |
| 227 | + if ( $other_array['count'] ) |
228 | 228 | $field_parameters .= 'COUNT('; |
229 | | - |
230 | | - /* Select All Fields */ |
231 | | - if (empty($field_array)) |
| 229 | + |
| 230 | + /* Select All Fields */ |
| 231 | + if ( empty( $field_array ) ) |
232 | 232 | { $field_parameters .= '*'; } |
233 | 233 | else |
234 | | - { |
| 234 | + { |
235 | 235 | /* No Multi-Dimentional Array and special field name; Escape Strings */ |
236 | | - foreach ($field_array as $value) |
| 236 | + foreach ( $field_array as $value ) |
237 | 237 | { |
238 | | - if (empty($value)) return false; |
239 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $value)) return false; |
240 | | - if (is_array($value)) return false; |
241 | | - } |
242 | | - $field_parameters .= '`'.implode('`, `', $field_array).'`'; |
| 238 | + if ( empty( $value ) ) return false; |
| 239 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $value ) ) return false; |
| 240 | + if ( is_array( $value ) ) return false; |
| 241 | + } |
| 242 | + $field_parameters .= '`' . implode( '`, `', $field_array ) . '`'; |
243 | 243 | } |
244 | | - |
| 244 | + |
245 | 245 | /* count? */ |
246 | | - if ($other_array['count']) |
| 246 | + if ( $other_array['count'] ) |
247 | 247 | $field_parameters .= ')'; |
248 | 248 | } |
249 | | - |
250 | | - /* Select All Fields */ |
251 | | - if (empty($order_array)) |
| 249 | + |
| 250 | + /* Select All Fields */ |
| 251 | + if ( empty( $order_array ) ) |
252 | 252 | { $order_parameters = ''; } |
253 | 253 | else |
254 | | - { |
| 254 | + { |
255 | 255 | /* No Multi-Dimentional Array and special field name; Escape Strings */ |
256 | | - foreach ($order_array as $value) |
| 256 | + foreach ( $order_array as $value ) |
257 | 257 | { |
258 | | - if (empty($value)) return false; |
259 | | - if (preg_match('/[^0-9A-Z\.\_\-]/i', $value)) return false; |
260 | | - if (is_array($value)) return false; |
261 | | - } |
262 | | - $order_parameters = ' ORDER BY `'.implode('`, `', $order_array).'`'; |
263 | | - if ($other_array['asc']) |
264 | | - {$order_parameters .= ' ASC';} |
| 258 | + if ( empty( $value ) ) return false; |
| 259 | + if ( preg_match( '/[^0-9A-Z\.\_\-]/i', $value ) ) return false; |
| 260 | + if ( is_array( $value ) ) return false; |
| 261 | + } |
| 262 | + $order_parameters = ' ORDER BY `' . implode( '`, `', $order_array ) . '`'; |
| 263 | + if ( $other_array['asc'] ) |
| 264 | + { $order_parameters .= ' ASC'; } |
265 | 265 | else |
266 | | - {$order_parameters .= 'DESC';} |
| 266 | + { $order_parameters .= 'DESC'; } |
267 | 267 | } |
268 | 268 | |
269 | 269 | /* page set */ |
270 | | - $other_array['start'] = intval($other_array['start']); |
271 | | - $other_array['total'] = intval($other_array['total']); |
| 270 | + $other_array['start'] = intval( $other_array['start'] ); |
| 271 | + $other_array['total'] = intval( $other_array['total'] ); |
272 | 272 | |
273 | | - if ($other_array['start'] >=0 && $other_array['total'] > 0 ) |
| 273 | + if ( $other_array['start'] >= 0 && $other_array['total'] > 0 ) |
274 | 274 | { |
275 | | - $order_parameters .= ' LIMIT ' . $other_array['start'] . ', '. $other_array['total'] ; |
| 275 | + $order_parameters .= ' LIMIT ' . $other_array['start'] . ', ' . $other_array['total'] ; |
276 | 276 | } |
277 | 277 | else |
278 | 278 | { |
279 | 279 | /* FIXME: unset */ |
280 | 280 | } |
281 | | - |
282 | | - if (empty($where_parameters)) |
| 281 | + |
| 282 | + if ( empty( $where_parameters ) ) |
283 | 283 | { $where_parameters = '1'; } |
284 | 284 | |
285 | 285 | /* Prepare Query */ |
286 | | - $queryString = 'SELECT ' . $field_parameters .' FROM `'.$table.'` WHERE ' . $where_parameters. $order_parameters; |
287 | | - return $this->Query($queryString); |
288 | | - } |
| 286 | + $queryString = 'SELECT ' . $field_parameters . ' FROM `' . $table . '` WHERE ' . $where_parameters . $order_parameters; |
| 287 | + return $this->Query( $queryString ); |
| 288 | + } |
289 | 289 | } |
290 | 290 | ?> |
Index: trunk/wikimania/wmreg/includes/notinuse/language_fa.php |
— | — | @@ -1,12 +1,12 @@ |
2 | 2 | <?php |
3 | | - |
| 3 | + |
4 | 4 | $lang_register_form = array( |
5 | 5 | 'registration_title' => 'ثبت نام در ویکیمانیا ۲۰۰۸', |
6 | 6 | 'select' => 'لطفاً انتخاب کنید', |
7 | 7 | 'query' => 'پیگیری وضعیت ثبت نام', |
8 | 8 | 'query_title' => 'در این قسمت میتوانید وضعیت ثبت نام در ویکیمانیا ۲۰۰۸ را پیگیری کنید.', |
9 | 9 | 'correction' => 'اطلاعات شما ثبت نشده چرا که اشتباهی در آن وجود دارد.', |
10 | | - |
| 10 | + |
11 | 11 | 'legend1' => 'اطلاعات شخصی', |
12 | 12 | 'title1' => |
13 | 13 | ' <p><div align="right"><strong>اطلاعات شخصی</strong></div></div></p> |
— | — | @@ -17,51 +17,51 @@ |
18 | 18 | 'egy0' => 'خیر، نیستم. (لطفاً شماره گذرنامه و نام خود را نظیر آن چه در گذرنامه آمده در قسمتهای زیر وارد کنید)', |
19 | 19 | 'surname' => 'نام خانوادگی', |
20 | 20 | 'given_name' => 'نام', |
21 | | -'sex' => 'جنسیت', |
| 21 | +'sex' => 'جنسیت', |
22 | 22 | 'sex1' => 'مرد', |
23 | 23 | 'sex2' => 'زن', |
24 | 24 | 'sex3' => 'نمیخواهم بگویم', |
25 | | -'id' => 'شمارهٔ شناسنامه / گذرنامه', |
26 | | -'country' => 'کشور / منطقه', |
27 | | -'city' => 'استان / شهر', |
| 25 | +'id' => 'شمارهٔ شناسنامه / گذرنامه', |
| 26 | +'country' => 'کشور / منطقه', |
| 27 | +'city' => 'استان / شهر', |
28 | 28 | 'birthday' => 'تاریخ تولد (dd/mm/yyyy)', |
29 | 29 | 'organization' => 'سازمان', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'), |
34 | | -'day' => '', |
35 | | - |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر' ), |
| 34 | +'day' => '', |
| 35 | + |
36 | 36 | 'title2' => |
37 | 37 | ' <p><div align="right"><strong>تواناییهای زبانی</strong></div></div></p>', |
38 | | -'langn' => 'زبان مادری', |
39 | | -'lang' => 'سطح مهارت', |
| 38 | +'langn' => 'زبان مادری', |
| 39 | +'lang' => 'سطح مهارت', |
40 | 40 | 'select_lang' => 'زبان را انتخاب کنید', |
41 | 41 | 'select_level' => 'سطح مهارت را انتخاب کنید', |
42 | | - |
| 42 | + |
43 | 43 | 'lang_level1' => '۱ (مقدماتی)', |
44 | 44 | 'lang_level2' => '۲ (متوسط)', |
45 | 45 | 'lang_level3' => '۳ (پیشرفته)', |
46 | 46 | 'lang_level4' => '۴ (در حد زبان مادری)', |
47 | | - |
| 47 | + |
48 | 48 | 'lang1' => 'زبان ۱', |
49 | 49 | 'lang2' => 'زبان ۲', |
50 | 50 | 'lang3' => 'زبان ۳', |
51 | | - |
| 51 | + |
52 | 52 | 'lang1_level' => 'سطح مهارت در زبان ۱', |
53 | 53 | 'lang2_level' => 'سطح مهارت در زبان ۲', |
54 | 54 | 'lang3_level' => 'سطح مهارت در زبان ۳', |
55 | | - |
56 | | -'title3' => |
| 55 | + |
| 56 | +'title3' => |
57 | 57 | ' <p><div align="right"><strong>پروژه و نشانی پست الکترونیکی در ویکیمدیا</strong> |
58 | 58 | <br> |
59 | 59 | پست الکترونیکی شما تنها برای ثبت نام و تماسهای ضروری دربارهٔ ویکیمانیا ۲۰۰۸ استفاده خواهد شد. |
60 | 60 | </div></p> |
61 | | -', |
62 | | -'wiki_id' => 'حساب کاربری در پروژه دلخواه ویکیمدیا', |
63 | | -'email' => 'پست الکترونیکی شما', |
64 | | - |
65 | | - |
| 61 | +', |
| 62 | +'wiki_id' => 'حساب کاربری در پروژه دلخواه ویکیمدیا', |
| 63 | +'email' => 'پست الکترونیکی شما', |
| 64 | + |
| 65 | + |
66 | 66 | 'legend2' => 'شرکت کردن', |
67 | 67 | 'title4' => |
68 | 68 | ' <p><div align="right"><strong>شرکت کردن، اطلاعات نشان فردی و سایر موارد</strong></div></p> |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '۱۷ ژوئیه', |
73 | 73 | 'join2' => '۱۸ ژوئیه', |
74 | 74 | 'join3' => '۱۹ ژوئیه', |
75 | | -'topic' => 'نشستهای انتخابی', |
| 75 | +'topic' => 'نشستهای انتخابی', |
76 | 76 | 'topic1' => 'جامعههای ویکیمدیا', |
77 | 77 | 'topic2' => 'محتوای آزاد', |
78 | 78 | 'topic3' => 'زیرساخت فنی', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'حساب کاربری ویکیمدیا', |
84 | 84 | 'showname3' => 'سازمان', |
85 | 85 | 'showname4' => 'سایر', |
86 | | -'size' => 'اندازه تی-شرت', |
| 86 | +'size' => 'اندازه تی-شرت', |
87 | 87 | 'food' => 'رژیم غذایی', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'بدون گوشت', |
— | — | @@ -91,54 +91,54 @@ |
92 | 92 | 'food4' => 'حلال خوار', |
93 | 93 | 'food5' => 'سایر', |
94 | 94 | 'food_other' => 'رژیم غذایی ذکر شده', |
95 | | -'allegric' => 'حساسیت (آلرژی)', |
96 | | -'transportation_assistance' =>'کمک بلیطهای پروازها', |
| 95 | +'allegric' => 'حساسیت (آلرژی)', |
| 96 | +'transportation_assistance' => 'کمک بلیطهای پروازها', |
97 | 97 | 'need_transportation_assistance' => ' بله ،من به کمک شما در رزرو بلیط پروازم نیاز دارم.', |
98 | | -'visa_assistance' => 'کمک برای روادید', |
| 98 | +'visa_assistance' => 'کمک برای روادید', |
99 | 99 | 'need_visa_assistance' => 'بله، نیاز به کمک برای دریافت روادید دارم', |
100 | 100 | 'visa_assistance_description' => 'لطفاً مشخیص کنید که تیم سازمانی چگونه میتواند به شما در اخذ روادید کمک کند. (به زبان <strong>عربی</strong> یا <strong>انگلیسی</strong> بنویسید)', |
101 | | - |
| 101 | + |
102 | 102 | 'title5' => |
103 | 103 | ' <p><div align="right"><strong>اسکان</strong></div></p> |
104 | 104 | <p><div align="right">ما دو گزینه برای اسکان پیش روی شما گذاشتهایم. شما میتوانید در یک هتل اقامت کنید، یا در خوابگاههای کالج سنت-مارک باشید. |
105 | 105 | لطفاً جزئیات بیشتر را در <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>وبگاه رسمی ویکیمانیا</a> ببینید تا پیش از ثبت نام از مکان دقیق و خصوصیات هر یک از دو گزینه آگاه شوید.</div></p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'هتل انتخابی', |
108 | | -'hotels_metropol'=> 'هتل متروپول (۶۰ دلار برای هر شب)', |
109 | | -'hotels_delta'=> 'هتل دلتا (۳۰ دلار برای هر شب)', |
| 108 | +'hotels_metropol' => 'هتل متروپول (۶۰ دلار برای هر شب)', |
| 109 | +'hotels_delta' => 'هتل دلتا (۳۰ دلار برای هر شب)', |
110 | 110 | 'hotels_dorms' => 'خوابگاه سنت-مارک (۱۰ دلار برای هر شب)', |
111 | | - |
112 | | -'accommodation' => 'تاریخ اقامت', |
| 111 | + |
| 112 | +'accommodation' => 'تاریخ اقامت', |
113 | 113 | 'night1' => '۱۶ ژوئیه', |
114 | 114 | 'night2' => '۱۷ ژوئیه', |
115 | 115 | 'night3' => '۱۸ ژوئیه', |
116 | 116 | 'night4' => '۱۹ ژوئیه', |
117 | 117 | 'night5' => '۲۰ ژوئیه', |
118 | | -'room' => 'اتاق انتخابی', |
| 118 | +'room' => 'اتاق انتخابی', |
119 | 119 | 'room2' => 'دو نفره', |
120 | 120 | 'room4' => 'چهار نفره', |
121 | 121 | 'room6' => 'فرقی نمیکند', |
122 | | - |
| 122 | + |
123 | 123 | 'title6' => |
124 | 124 | ' <p><div align="right"><strong>پرداخت</strong></div></p> |
125 | 125 | <p><div align="right">در <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">۱۰۳ منطقه / کشور</a> (شامل مصر نمیشود) شما میتوانید از حساب PayPal خود پرداخت را انجام دهید یا کارت اعتباری خود را از طریق PayPal استفاده کنید، یا میتوانید از Remittance و پرداخت مستقیم به حساب بانکی متعلق به تیم سازمانی ساکن در اسکندریه پرداخت را انجام دهید. توجه: اگر اهل مصر هستید نمیتوانید از روش PayPal استفاده کنید</div></p> |
126 | 126 | ', |
127 | | - |
128 | | -'pay_method' => 'روش پرداخت', |
| 127 | + |
| 128 | +'pay_method' => 'روش پرداخت', |
129 | 129 | 'atm' => 'پرداخت از طریق حساب بانکی', |
130 | 130 | 'receipt' => 'رسید', |
131 | | -'need_receipt' => 'بله، من یک رسید چاپی میخواهم.', |
132 | | -'receipt_title' => 'عنوان', |
133 | | -'receipt_address' => 'نشانی پستی', |
134 | | - |
| 131 | +'need_receipt' => 'بله، من یک رسید چاپی میخواهم.', |
| 132 | +'receipt_title' => 'عنوان', |
| 133 | +'receipt_address' => 'نشانی پستی', |
| 134 | + |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>بعد از این که فرم را ارسال کنید، هنوز فرصت دارید که اطلاعات را بازبینی کنید.</strong></li>', |
137 | 137 | 'submit' => 'ارسال', |
138 | 138 | 'reset' => 'از نو', |
139 | | - |
| 139 | + |
140 | 140 | 'confirm' => 'بازبینی', |
141 | 141 | 'confirm_description' => 'قبل از این که فرم را ارسال کنید، لطفاً از درستی اطلاعات زیر اطمینان حاصل کنید:', |
142 | | - |
| 142 | + |
143 | 143 | 'paypal' => 'پرداخت از طریق PayPal', |
144 | 144 | 'paypal_description' => |
145 | 145 | '<p><div align="right">لطفاً دکمهٔ «Buy Now» را بزنید تا از طریق PayPal پرداخت کنید</div></p> ', |
— | — | @@ -163,12 +163,12 @@ |
164 | 164 | <p><div align="right">همچنین لطفاً رسید پرداخت را به شکل الکترونیکی به همراه نام و شماره ثبت نام خود به نشانی regwikimania2008 AT wikimedia.org بفرستید؛ ما ظرف سه روز کاری به شما پاسخ خواهیم داد. شما همچنین میتوانید <a href="index.php?action=query" title="query the registration status">وضعیت ثبتنام خود را به صورت برخط پیگیری کنید</a>.</div></p> |
165 | 165 | ' |
166 | 166 | ); |
167 | | - |
| 167 | + |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'ثبت نام کامل شد', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p><div align="right">از این که به ویکیمانیا ۲۰۰۸ پیوستید متشکریم! فرم ثبت نام شما ارسال شدهاست. لطفاً توجه داشته باشید که برای تایید ثبت نام باید روال پرداخت هزینهها را کامل کنید. |
172 | | - |
| 172 | + |
173 | 173 | <strong>شماره ثبت</strong> شما در زیر نمایش داده میشود. لطفاً این شماره را به خاطر بسپارید تا بعداً برای پیگیری ثبت نام یا تایید هویت خودتان از آن استفاده نمایید. |
174 | 174 | ', |
175 | 175 | 'cost' => 'هزینهٔ ثبت نام', |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | 'usd' => ' دلار آمریکا', |
181 | 181 | 'egp' => ' پوند مصر', |
182 | 182 | ); |
183 | | - |
| 183 | + |
184 | 184 | $lang_errors = array( |
185 | 185 | 'repeat' => 'فرد دیگری با همین نام و شماره شناسنامه / گذرنامه ثبت نام کردهاست. امکان دارد که شما فرم را دو بار ارسال کرده باشید یا صفحه را ثبت نام را از نو کرده باشید..', |
186 | 186 | 'not_input' => '$1 خالی است.', |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | 'wrong_query' => 'نام یا شماره ثبت اشتباه.', |
195 | 195 | 'paypal_unavailable' => 'کشور / منطقهای که انتخاب کردید توسط PayPal پشتیبانی نمیشود.' |
196 | 196 | ); |
197 | | - |
| 197 | + |
198 | 198 | $lang_query = array( |
199 | 199 | 'unique_code' => 'شماره ثبت', |
200 | 200 | 'submit' => 'پیگیری', |
— | — | @@ -205,9 +205,9 @@ |
206 | 206 | 'accepted' => 'ثبت نام شما <strong>تایید شدهاست</strong>.', |
207 | 207 | 'rejected' => 'ثبت نام شما <strong>رد شدهاست</strong>.', |
208 | 208 | 'not_yet' => 'ثبت نام شما <strong>تایید نشدهاست</strong>.' |
209 | | - |
| 209 | + |
210 | 210 | ); |
211 | | - |
| 211 | + |
212 | 212 | $lang_countries = array( |
213 | 213 | 'af' => 'Afghanistan', |
214 | 214 | 'ax' => 'Aland Islands', |
Index: trunk/wikimania/wmreg/includes/notinuse/language_es.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'No. (Por favor escribe tu número de pasaporte y tu nombre tal como figura en el pasaporte en los siguientes campos)', |
19 | 19 | 'surname' => 'Apellido', |
20 | 20 | 'given_name' => 'Nombre', |
21 | | -'sex' => 'Sexo', |
| 21 | +'sex' => 'Sexo', |
22 | 22 | 'sex1' => 'Masculino', |
23 | 23 | 'sex2' => 'Femenino', |
24 | 24 | 'sex3' => 'No declara', |
25 | | -'id' => 'Número de identificación / Número de Pasaporte', |
26 | | -'country' => 'País / Región', |
27 | | -'city' => 'Estado / Ciudad', |
| 25 | +'id' => 'Número de identificación / Número de Pasaporte', |
| 26 | +'country' => 'País / Región', |
| 27 | +'city' => 'Estado / Ciudad', |
28 | 28 | 'birthday' => 'Fecha de Nacimiento (dd/mm/aaaa)', |
29 | 29 | 'organization' => 'Organización', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Habilidades lingüísticas</strong></p>', |
38 | | -'langn' => 'Idioma nativo', |
39 | | -'lang' => 'Nivel', |
| 38 | +'langn' => 'Idioma nativo', |
| 39 | +'lang' => 'Nivel', |
40 | 40 | 'select_lang' => 'Selecciona un idioma', |
41 | 41 | 'select_level' => 'Selecciona el nivel', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Nivel del idioma 2', |
54 | 54 | 'lang3_level' => 'Nivel del idioma 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Proyecto de Wikimedia y dirección/es de correo electrónico</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Tu correo electrónico sólo será utilizado para la inscripción y para notificaciones urgentes sobre Wikimania 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Nombre de la cuenta de tu proyecto Wikimedia preferido', |
63 | | -'email' => 'Tu correo electrónico', |
| 61 | +', |
| 62 | +'wiki_id' => 'Nombre de la cuenta de tu proyecto Wikimedia preferido', |
| 63 | +'email' => 'Tu correo electrónico', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Participación', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17 de julio', |
73 | 73 | 'join2' => '18 de julio', |
74 | 74 | 'join3' => '19 de julio', |
75 | | -'topic' => 'Área preferida', |
| 75 | +'topic' => 'Área preferida', |
76 | 76 | 'topic1' => 'Comunidades Wikimedia', |
77 | 77 | 'topic2' => 'Contenido libre', |
78 | 78 | 'topic3' => 'Infraestructura técnica', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Cuenta de Wikimedia', |
84 | 84 | 'showname3' => 'Organización', |
85 | 85 | 'showname4' => 'Otro', |
86 | | -'size' => 'Talla de remera', |
| 86 | +'size' => 'Talla de remera', |
87 | 87 | 'food' => 'Restricciones en la dieta', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'No como carne', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Kosher', |
93 | 93 | 'food5' => 'Otras', |
94 | 94 | 'food_other' => 'Restricciones especificadas en la dieta', |
95 | | -'allegric' => 'Alguna alergia', |
| 95 | +'allegric' => 'Alguna alergia', |
96 | 96 | 'transportation_assistance' => 'Asistencia para boletos de viaje', |
97 | 97 | 'need_transportation_assistance' => 'Sí, necesito que me ayuden con mi reservación', |
98 | | -'visa_assistance' => 'Ayuda para obtener la visa', |
| 98 | +'visa_assistance' => 'Ayuda para obtener la visa', |
99 | 99 | 'need_visa_assistance' => 'Sí, necesito ayuda para obtener la visa', |
100 | 100 | 'visa_assistance_description' => ' Por favor indícanos cómo puede ayudarte el equipo organizador a obtener la visa. (en <strong>Árabe</strong> o <strong>Inglés</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Por favor mira los detalles en el <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>sitio oficial de Wikimania</a> para conocer la localización y especificaciones exactas de cada opción antes de registrarte.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Hotel preferido.', |
108 | | -'hotels_metropol'=> 'Hotel Metropol ($60 por noche)', |
109 | | -'hotels_delta'=> 'Hotel Delta ($30 por noche)', |
| 108 | +'hotels_metropol' => 'Hotel Metropol ($60 por noche)', |
| 109 | +'hotels_delta' => 'Hotel Delta ($30 por noche)', |
110 | 110 | 'hotels_dorms' => 'Dormitorios en Saint Marc ($10 por noche)', |
111 | 111 | |
112 | | -'accommodation' => 'Fechas de estadía', |
| 112 | +'accommodation' => 'Fechas de estadía', |
113 | 113 | 'night1' => '16 de julio', |
114 | 114 | 'night2' => '17 de julio', |
115 | 115 | 'night3' => '18 de julio', |
116 | 116 | 'night4' => '19 de julio', |
117 | 117 | 'night5' => '20 de julio', |
118 | | -'room' => 'Preferencia de habitación', |
| 118 | +'room' => 'Preferencia de habitación', |
119 | 119 | 'room2' => 'doble', |
120 | 120 | 'room4' => 'cádruple', |
121 | 121 | 'room6' => 'Cualquiera', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Puedes utilizar tu cuenta Paypal o pagar utilizando tu tarjeta de crédito a través de PayPal en <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 países / regiones</a> (No incluye Egipto) o por transferencia y pago directo a la cuenta bancaria del equipo organizador en Alejandría. Nota: la opción de PayPal será descartada si eres egipcio</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Tipo de Pago', |
| 128 | +'pay_method' => 'Tipo de Pago', |
129 | 129 | 'atm' => 'Pago a través de cuenta bancaria', |
130 | 130 | 'receipt' => 'Recibo', |
131 | | -'need_receipt' => 'Sí, necesito recibo impreso.', |
132 | | -'receipt_title' => 'Título', |
133 | | -'receipt_address' => 'Dirección postal', |
| 131 | +'need_receipt' => 'Sí, necesito recibo impreso.', |
| 132 | +'receipt_title' => 'Título', |
| 133 | +'receipt_address' => 'Dirección postal', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Luego de enviar el formulario, tendrás la posibilidad de verificar su inscripción.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Inscripción completa', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>¡Gracias por sumarte a Wikimania 2008! Tu formulario de inscripción fue aceptado. Por favor, ten en cuenta que necesitas completar el proceso de pago para que la inscripción pueda ser confirmada. |
172 | 172 | |
173 | 173 | Tu <strong>número de inscripción</strong> será mostrado debajo. Por favor, anota este número ya que será utilizado para consultar el estado de tu inscripción y para confirmar tu identidad en el futuro. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_fr.php |
— | — | @@ -4,36 +4,36 @@ |
5 | 5 | 'registration_title' => 'Enregistrement Wikimania 2008!', |
6 | 6 | 'select' => 'S’il vous plaît sélectionnez', |
7 | 7 | 'query' => 'Demander votre formulaire d\'enregistrement', |
8 | | -'query_title' => 'Vous pouvez demander votre formulaire |
| 8 | +'query_title' => 'Vous pouvez demander votre formulaire |
9 | 9 | |
10 | 10 | d\'enregistrement à Wikimania 2008 ici.', |
11 | | -'correction' => 'Vos informations n\'ont pas été envoyées à |
| 11 | +'correction' => 'Vos informations n\'ont pas été envoyées à |
12 | 12 | |
13 | 13 | cause d\'erreurs dans le formulaire.', |
14 | 14 | |
15 | 15 | 'legend1' => 'Informations personnelles', |
16 | 16 | 'title1' => |
17 | | -' <p><strong>Données d\'identification |
| 17 | +' <p><strong>Données d\'identification |
18 | 18 | |
19 | 19 | personnelle</strong></p> |
20 | | - <p>S’il vous plaît remplir vos données personnelles |
| 20 | + <p>S’il vous plaît remplir vos données personnelles |
21 | 21 | |
22 | 22 | dans le formulaire correctement.</p> |
23 | 23 | ', |
24 | | -'egy' => 'Etes-vous un citoyen de la République arabe |
| 24 | +'egy' => 'Etes-vous un citoyen de la République arabe |
25 | 25 | |
26 | 26 | d\'Egypte?', |
27 | | -'egy1' => 'Oui. (S’il vous plaît taper votre numéro national |
| 27 | +'egy1' => 'Oui. (S’il vous plaît taper votre numéro national |
28 | 28 | |
29 | | -d\'identification et votre nom dans les domaines |
| 29 | +d\'identification et votre nom dans les domaines |
30 | 30 | |
31 | 31 | suivants).', |
32 | | -'egy0' => 'No. (S’il vous plaît taper votre numéro de |
| 32 | +'egy0' => 'No. (S’il vous plaît taper votre numéro de |
33 | 33 | |
34 | | -passeport et votre nom sur le passeport dans les domaines |
| 34 | +passeport et votre nom sur le passeport dans les domaines |
35 | 35 | |
36 | 36 | suivants).', |
37 | | -'local_language_name' => 'Nom arabe / Nom sur le passeport (S’il |
| 37 | +'local_language_name' => 'Nom arabe / Nom sur le passeport (S’il |
38 | 38 | |
39 | 39 | vous plaît taper en forme romanisée).', |
40 | 40 | 'surname' => 'Nom', |
— | — | @@ -50,15 +50,15 @@ |
51 | 51 | 'year1' => '', |
52 | 52 | 'year' => '', |
53 | 53 | 'month' => '', |
54 | | -'months' => array(NULL, 'janvier', 'février', 'mars', |
| 54 | +'months' => array( NULL, 'janvier', 'février', 'mars', |
55 | 55 | |
56 | | -'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', |
| 56 | +'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', |
57 | 57 | |
58 | | -'octobre', 'novembre', 'décembre'), |
| 58 | +'octobre', 'novembre', 'décembre' ), |
59 | 59 | 'day' => '', |
60 | 60 | |
61 | 61 | 'title2' => |
62 | | -' <p><strong>Connaissances |
| 62 | +' <p><strong>Connaissances |
63 | 63 | |
64 | 64 | linguistiques</strong></p>', |
65 | 65 | 'langn' => 'Langue maternelle', |
— | — | @@ -80,13 +80,13 @@ |
81 | 81 | 'lang3_level' => 'Niveau d\'apprentissage de la langue 3', |
82 | 82 | |
83 | 83 | 'title3' => |
84 | | -' <p><strong>Projets Wikimedia et courrier |
| 84 | +' <p><strong>Projets Wikimedia et courrier |
85 | 85 | |
86 | 86 | électronique(s)</strong></p> |
87 | 87 | <ul class="form_notice"> |
88 | | - <li>Ces informations seront utilisées pour |
| 88 | + <li>Ces informations seront utilisées pour |
89 | 89 | |
90 | | -enregistrement et notifications urgentes sur Wikimania 2008 |
| 90 | +enregistrement et notifications urgentes sur Wikimania 2008 |
91 | 91 | |
92 | 92 | seulement.</li> |
93 | 93 | </ul> |
— | — | @@ -97,14 +97,14 @@ |
98 | 98 | |
99 | 99 | 'legend2' => 'Participation aux conférences', |
100 | 100 | 'title4' => |
101 | | -' <p><strong>Participation, informations sur le |
| 101 | +' <p><strong>Participation, informations sur le |
102 | 102 | |
103 | 103 | badge, et divers</strong></p> |
104 | | - <p>Pour mieux organiser le logement, les pistes de |
| 104 | + <p>Pour mieux organiser le logement, les pistes de |
105 | 105 | |
106 | | -conférences et les services connexes, s\'il vous plaît |
| 106 | +conférences et les services connexes, s\'il vous plaît |
107 | 107 | |
108 | | -laissez-nous savoir vos préférences dans les domaines |
| 108 | +laissez-nous savoir vos préférences dans les domaines |
109 | 109 | |
110 | 110 | suivants.</p> |
111 | 111 | ', |
— | — | @@ -133,39 +133,39 @@ |
134 | 134 | 'food5' => 'Autres', |
135 | 135 | 'food_other' => 'Indication des restrictions alimentaires', |
136 | 136 | 'allegric' => 'Réactions allergiques', |
137 | | -'transportation_assistance' => 'Assistance avec les billets d\'avions', |
| 137 | +'transportation_assistance' => 'Assistance avec les billets d\'avions', |
138 | 138 | 'need_transportation_assistance' => 'Oui, j’ai besoin de votre aide avec mes réservations de vols.', |
139 | 139 | 'visa_assistance' => 'Aide à l\'obtention du visa', |
140 | | -'need_visa_assistance' => 'Oui, j\'ai besoin d\'aide pour |
| 140 | +'need_visa_assistance' => 'Oui, j\'ai besoin d\'aide pour |
141 | 141 | |
142 | 142 | obtenir mon visa.', |
143 | | -'visa_assistance_description' => 'Précisez comment nous |
| 143 | +'visa_assistance_description' => 'Précisez comment nous |
144 | 144 | |
145 | | -pouvons vous aider à obtenir votre visa.(en |
| 145 | +pouvons vous aider à obtenir votre visa.(en |
146 | 146 | |
147 | 147 | <strong>arabe</strong> et <strong>anglais</strong>)', |
148 | 148 | |
149 | 149 | 'title5' => |
150 | 150 | ' <p><strong>Logement</strong></p> |
151 | | - <p>Vous avez deux options disponibles pour le |
| 151 | + <p>Vous avez deux options disponibles pour le |
152 | 152 | |
153 | | -logement: vous pouvez logé dans un hôtel du centre-ville à |
| 153 | +logement: vous pouvez logé dans un hôtel du centre-ville à |
154 | 154 | |
155 | | -chambre double, ou vous pouvez rester dans les logements du |
| 155 | +chambre double, ou vous pouvez rester dans les logements du |
156 | 156 | |
157 | | -Collège Saint-Marc. S\'il vous plaît vérifier les détails |
| 157 | +Collège Saint-Marc. S\'il vous plaît vérifier les détails |
158 | 158 | |
159 | | -sur <a |
| 159 | +sur <a |
160 | 160 | |
161 | 161 | href=http://wikimania2008.wikimedia.org/wiki/Accommodation>l |
162 | 162 | |
163 | | -e site officiel de Wikimania</a> pour les localisations |
| 163 | +e site officiel de Wikimania</a> pour les localisations |
164 | 164 | |
165 | 165 | précises et les spécifications avant de vous inscrire.</p>', |
166 | 166 | 'accommodation_hotel' => 'Logement préféré ', |
167 | | -'hotels_metropol'=> 'Hôtel Metropol ($60 par nuit)', |
168 | | -'hotels_delta'=> 'Hôtel Delta ($30 par nuit)', |
169 | | -'hotels_dorms' => 'Chambres du Collège Saint Marc ($10 par |
| 167 | +'hotels_metropol' => 'Hôtel Metropol ($60 par nuit)', |
| 168 | +'hotels_delta' => 'Hôtel Delta ($30 par nuit)', |
| 169 | +'hotels_dorms' => 'Chambres du Collège Saint Marc ($10 par |
170 | 170 | |
171 | 171 | nuit)', |
172 | 172 | |
— | — | @@ -182,17 +182,17 @@ |
183 | 183 | |
184 | 184 | 'title6' => |
185 | 185 | ' <p><strong>Paiement</strong></p> |
186 | | - <p>Vous pouvez payer avec PayPal ou carte de crédit |
| 186 | + <p>Vous pouvez payer avec PayPal ou carte de crédit |
187 | 187 | |
188 | 188 | (via PayPal) en <a href="https://www.paypal.com/cgi- |
189 | 189 | |
190 | | -bin/webscr?cmd=_display-approved-signup-countries-outside" |
| 190 | +bin/webscr?cmd=_display-approved-signup-countries-outside" |
191 | 191 | |
192 | | -title="PayPal Worldwide">103 Pays et régions </a> (Egypte |
| 192 | +title="PayPal Worldwide">103 Pays et régions </a> (Egypte |
193 | 193 | |
194 | | -non-inclus) ou par virement automatique au compte de banque |
| 194 | +non-inclus) ou par virement automatique au compte de banque |
195 | 195 | |
196 | | -de l\'équipe organisatrice en Alexandrie. Note: l\'option |
| 196 | +de l\'équipe organisatrice en Alexandrie. Note: l\'option |
197 | 197 | |
198 | 198 | PayPal sera écartée si vous êtes égyptien</p> |
199 | 199 | ', |
— | — | @@ -205,41 +205,41 @@ |
206 | 206 | 'receipt_address' => 'Adresse d\'envoi', |
207 | 207 | |
208 | 208 | 'submit_notice' => |
209 | | -'<li><strong>Après avoir soumis le formulaire, vous avez |
| 209 | +'<li><strong>Après avoir soumis le formulaire, vous avez |
210 | 210 | |
211 | | -toujours une chance de confirmer votre |
| 211 | +toujours une chance de confirmer votre |
212 | 212 | |
213 | 213 | enregistrement.</strong></li>', |
214 | 214 | 'submit' => 'Valider le formulaire', |
215 | 215 | 'reset' => 'Recommencer', |
216 | 216 | |
217 | 217 | 'confirm' => 'Vérification', |
218 | | -'confirm_description' => 'Avant de valider le formulaire, |
| 218 | +'confirm_description' => 'Avant de valider le formulaire, |
219 | 219 | |
220 | 220 | vérifiez les données saisies :', |
221 | 221 | |
222 | 222 | 'paypal' => 'Paiement par PayPal', |
223 | 223 | 'paypal_description' => |
224 | | -'<p>S’il vous plaît, utiliser le bouton "Buy Now" ci-dessous |
| 224 | +'<p>S’il vous plaît, utiliser le bouton "Buy Now" ci-dessous |
225 | 225 | |
226 | 226 | pour payer avec PayPal</p> ', |
227 | 227 | 'paypal_failed' => 'Annuler le paiement par PayPal ', |
228 | | -'paypal_failed_description' => '<p>Vous pouvez réessayer en |
| 228 | +'paypal_failed_description' => '<p>Vous pouvez réessayer en |
229 | 229 | |
230 | | -remplissant à nouveau le formulaire ci-dessous, ou utiliser |
| 230 | +remplissant à nouveau le formulaire ci-dessous, ou utiliser |
231 | 231 | |
232 | 232 | un autre mode de paiement expliqué plus bas.</p>', |
233 | 233 | 'paypal_successful' => 'Paiement par PayPal réussi', |
234 | | -'paypal_successful_description' => '<p>Merci ! Nous vous |
| 234 | +'paypal_successful_description' => '<p>Merci ! Nous vous |
235 | 235 | |
236 | | -tiendrons informé du résultat après avoir reçu le paiement |
| 236 | +tiendrons informé du résultat après avoir reçu le paiement |
237 | 237 | |
238 | 238 | et relu vos informations de réservation.</p>', |
239 | 239 | 'atm' => 'Paiement par virement bancaire', |
240 | 240 | 'atm_description' => ' |
241 | | -<p>S’il vous plaît utiliser les coordonnées bancaires |
| 241 | +<p>S’il vous plaît utiliser les coordonnées bancaires |
242 | 242 | |
243 | | -suivantes en Egypte pour le transfert de vos registeration |
| 243 | +suivantes en Egypte pour le transfert de vos registeration |
244 | 244 | |
245 | 245 | frais et / ou un logement:</p> |
246 | 246 | <ul class="atm-account"> |
— | — | @@ -249,25 +249,25 @@ |
250 | 250 | <li>SWIFT BIC code: CIBEEGCX041</li> |
251 | 251 | <li>Numéro de compte Wikimania (USD): 41-8930006-6</li> |
252 | 252 | </ul> |
253 | | -<p>En raison de la restriction de PayPal en<b>Egypte</b>, |
| 253 | +<p>En raison de la restriction de PayPal en<b>Egypte</b>, |
254 | 254 | |
255 | | -vous pouvez payer à la banque, s’il vous plaît utiliser les |
| 255 | +vous pouvez payer à la banque, s’il vous plaît utiliser les |
256 | 256 | |
257 | | -coordonnées bancaires ci-dessus, à la suite de l\'EGP numéro |
| 257 | +coordonnées bancaires ci-dessus, à la suite de l\'EGP numéro |
258 | 258 | |
259 | 259 | de compte:</p> |
260 | 260 | <ul class="atm-account"> |
261 | 261 | <li>Numéro de compte Wikimania (EGP): 41-8900019-5</li> |
262 | 262 | </ul> |
263 | | -<p>Et envoyez votre reçu de virement avec votre nom et votre |
| 263 | +<p>Et envoyez votre reçu de virement avec votre nom et votre |
264 | 264 | |
265 | | -numéro de réservation à wm08registration@wikimedia.org, nous |
| 265 | +numéro de réservation à wm08registration@wikimedia.org, nous |
266 | 266 | |
267 | | -vous répondrons sous trois jours ouvrables. Vous pouvez |
| 267 | +vous répondrons sous trois jours ouvrables. Vous pouvez |
268 | 268 | |
269 | | -également <a href="index.php?action=query" title="query the |
| 269 | +également <a href="index.php?action=query" title="query the |
270 | 270 | |
271 | | -registration status">demander le statut de votre réservation |
| 271 | +registration status">demander le statut de votre réservation |
272 | 272 | |
273 | 273 | en ligne</a>.</p> |
274 | 274 | ' |
— | — | @@ -276,19 +276,19 @@ |
277 | 277 | $lang_messages = array( |
278 | 278 | 'successful' => 'Enregistrement complète', |
279 | 279 | 'successful_description' => |
280 | | -'<p>Merci de vous joindre à Wikimania 2008! Votre formulaire |
| 280 | +'<p>Merci de vous joindre à Wikimania 2008! Votre formulaire |
281 | 281 | |
282 | | -d\'enregistrement a été soumise. S’il vous plaît prendre |
| 282 | +d\'enregistrement a été soumise. S’il vous plaît prendre |
283 | 283 | |
284 | | -note que vous devez remplir le paiement de sorte que le |
| 284 | +note que vous devez remplir le paiement de sorte que le |
285 | 285 | |
286 | 286 | processus d\'inscription peut être confirmée. |
287 | 287 | |
288 | | -Votre <strong>numéro d\'enregistrement</strong> Sera affiché |
| 288 | +Votre <strong>numéro d\'enregistrement</strong> Sera affiché |
289 | 289 | |
290 | 290 | ci-dessous. S’il vous plaît prendre note du numéro de celle |
291 | 291 | |
292 | | --ci est utilisée pour interroger le statut d\'enregistrement |
| 292 | +-ci est utilisée pour interroger le statut d\'enregistrement |
293 | 293 | |
294 | 294 | et de confirmer votre identité à l\'avenir. |
295 | 295 | ', |
— | — | @@ -302,27 +302,27 @@ |
303 | 303 | ); |
304 | 304 | |
305 | 305 | $lang_errors = array( |
306 | | -'repeat' => 'Quelqu\'un s\'est enregistré avec le même nom |
| 306 | +'repeat' => 'Quelqu\'un s\'est enregistré avec le même nom |
307 | 307 | |
308 | | -et le même numéro d\'identification/passeport. Il est |
| 308 | +et le même numéro d\'identification/passeport. Il est |
309 | 309 | |
310 | | -possible que vous ayez validé le formulaire deux fois ou que |
| 310 | +possible que vous ayez validé le formulaire deux fois ou que |
311 | 311 | |
312 | 312 | vous ayez rafraîchi la page de réservation.', |
313 | 313 | 'not_input' => '$1 est vide.', |
314 | 314 | 'not_input_completely' => '$1 est incomplet.', |
315 | 315 | 'not_select' => '$1 n\'est pas vérifié.', |
316 | 316 | 'not_select_whether' => '$1 n\'a pas été précisé.', |
317 | | -'too_long' => '$1 est trop long, la longueur maximale est |
| 317 | +'too_long' => '$1 est trop long, la longueur maximale est |
318 | 318 | |
319 | 319 | $2.', |
320 | 320 | 'incorect' => '$1 est incorrect.', |
321 | 321 | 'wrong' => '$1 est faux.', |
322 | | -'visa_assistance_incomplete' => 'Aide à l\'obtention d\'un |
| 322 | +'visa_assistance_incomplete' => 'Aide à l\'obtention d\'un |
323 | 323 | |
324 | 324 | visa est vide.', |
325 | 325 | 'wrong_query' => 'Mauvais nom ou numéro d\'enregistrement.', |
326 | | -'paypal_unavailable' => 'Le pays ou la région que vous avez |
| 326 | +'paypal_unavailable' => 'Le pays ou la région que vous avez |
327 | 327 | |
328 | 328 | choisi(e) ne permet pas le paiement par PayPal.' |
329 | 329 | ); |
— | — | @@ -330,22 +330,22 @@ |
331 | 331 | $lang_query = array( |
332 | 332 | 'unique_code' => 'Numéro d\'enregistrement', |
333 | 333 | 'submit' => 'Demander', |
334 | | -'your_status' => 'Bonjour, $1, voici le statut de votre |
| 334 | +'your_status' => 'Bonjour, $1, voici le statut de votre |
335 | 335 | |
336 | 336 | réservation:', |
337 | | -'received_money' => 'Frais d\'enregistrement (reçus / |
| 337 | +'received_money' => 'Frais d\'enregistrement (reçus / |
338 | 338 | |
339 | 339 | attendus):', |
340 | 340 | 'lack' => 'Non reçu', |
341 | 341 | 'enough' => 'Déjà payé', |
342 | 342 | 'too_much' => 'Trop d\'argent versé', |
343 | | -'accepted' => 'Votre réservation est |
| 343 | +'accepted' => 'Votre réservation est |
344 | 344 | |
345 | 345 | <strong>confirmée</strong>.', |
346 | | -'rejected' => 'Votre réservation est |
| 346 | +'rejected' => 'Votre réservation est |
347 | 347 | |
348 | 348 | <strong>rejetée</strong>.', |
349 | | -'not_yet' => 'Votre réservation est <strong>non |
| 349 | +'not_yet' => 'Votre réservation est <strong>non |
350 | 350 | |
351 | 351 | confirmée</strong>.' |
352 | 352 | |
— | — | @@ -553,7 +553,7 @@ |
554 | 554 | 'sb' => 'Solomon Islands', |
555 | 555 | 'so' => 'Somalia', |
556 | 556 | 'za' => 'South Africa', |
557 | | - 'gs' => 'South Georgia and the South Sandwich |
| 557 | + 'gs' => 'South Georgia and the South Sandwich |
558 | 558 | |
559 | 559 | Islands', |
560 | 560 | 'es' => 'Spain', |
Index: trunk/wikimania/wmreg/includes/notinuse/language_de.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'Nein, bin ich nicht. (Bitte schreibe deine Reisepassnummer und deinen Namen in die folgenden Felder)', |
19 | 19 | 'surname' => 'Familienname', |
20 | 20 | 'given_name' => 'Vorname', |
21 | | -'sex' => 'Geschlecht', |
| 21 | +'sex' => 'Geschlecht', |
22 | 22 | 'sex1' => 'männlich', |
23 | 23 | 'sex2' => 'weiblich', |
24 | 24 | 'sex3' => 'anonym', |
25 | | -'id' => 'ID- / Reisepassnummer', |
26 | | -'country' => 'Staat / Region', |
27 | | -'city' => 'Bundesland/Provinz/Kanton / Stadt', |
| 25 | +'id' => 'ID- / Reisepassnummer', |
| 26 | +'country' => 'Staat / Region', |
| 27 | +'city' => 'Bundesland/Provinz/Kanton / Stadt', |
28 | 28 | 'birthday' => 'Geburtsdatum (TT/MMM/JJJJ)', |
29 | 29 | 'organization' => 'Organisation', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Sprachkenntnisse</strong></p>', |
38 | | -'langn' => 'Muttersprache', |
39 | | -'lang' => 'Kenntnisstand', |
| 38 | +'langn' => 'Muttersprache', |
| 39 | +'lang' => 'Kenntnisstand', |
40 | 40 | 'select_lang' => 'Wähle die Sprache aus', |
41 | 41 | 'select_level' => 'Wähle den Kenntnisstand aus', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Kenntnisstand in Sprache 2', |
54 | 54 | 'lang3_level' => 'Kenntnisstand in Sprache 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Wikimedia-Projekt und Account(s) mit E-Mail-Funktion</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Deine Email-Daten werden nur für die Registrierung sowie für dringende Nachrichten über die Wikimania 2008 benutzt.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Bevorzugter Benutzername auf Wikimedia-Projekten', |
63 | | -'email' => 'Deine Emailadresse', |
| 61 | +', |
| 62 | +'wiki_id' => 'Bevorzugter Benutzername auf Wikimedia-Projekten', |
| 63 | +'email' => 'Deine Emailadresse', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Teilnahme', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17. Juli', |
73 | 73 | 'join2' => '18. Juli', |
74 | 74 | 'join3' => '19. Juli', |
75 | | -'topic' => 'Bevorzugter Veranstaltungsbereich', |
| 75 | +'topic' => 'Bevorzugter Veranstaltungsbereich', |
76 | 76 | 'topic1' => 'Wikimedia-Communitys', |
77 | 77 | 'topic2' => 'Freie Inhalte', |
78 | 78 | 'topic3' => 'Technische Infrastruktur', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Wikimedia-Account', |
84 | 84 | 'showname3' => 'Organisation', |
85 | 85 | 'showname4' => 'andere', |
86 | | -'size' => 'T-Shirt-Größe', |
| 86 | +'size' => 'T-Shirt-Größe', |
87 | 87 | 'food' => 'Ernährungseinschränkungen', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Kein Rindfleisch', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Koscher', |
93 | 93 | 'food5' => 'andere', |
94 | 94 | 'food_other' => 'spezifische Ernährungseinschränkungen', |
95 | | -'allegric' => 'Allergien', |
| 95 | +'allegric' => 'Allergien', |
96 | 96 | 'transportation_assistance' => 'Flugticketunterstützung', |
97 | 97 | 'need_transportation_assistance' => 'Ja, ich brauche Hilfe bei meiner Flugreservierung', |
98 | | -'visa_assistance' => 'Hilfe mit dem Visum', |
| 98 | +'visa_assistance' => 'Hilfe mit dem Visum', |
99 | 99 | 'need_visa_assistance' => 'Ja, ich benötige Hilfe mit dem Visum', |
100 | 100 | 'visa_assistance_description' => ' Bitte erläutere, wie das Organisationsteam dir mit Visumproblemen helfen kann. (auf <strong>Arabisch</strong> oder <strong>Englisch</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Bitte lies vor der Registrierung die genauen Details zu Örtlichkeiten und Eigenschaften der Optionen auf <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>der offiziellen Webseite der Wikimania</a>.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Bevorzugtes Hotel.', |
108 | | -'hotels_metropol'=> 'Metropol Hotel (etwa $60 pro Nacht)', |
109 | | -'hotels_delta'=> 'Delta Hotel (etwa $30 pro Nacht)', |
| 108 | +'hotels_metropol' => 'Metropol Hotel (etwa $60 pro Nacht)', |
| 109 | +'hotels_delta' => 'Delta Hotel (etwa $30 pro Nacht)', |
110 | 110 | 'hotels_dorms' => 'Saint-Marc-College (etwa $10 pro Nacht)', |
111 | 111 | |
112 | | -'accommodation' => 'Wann willst du übernachten?', |
| 112 | +'accommodation' => 'Wann willst du übernachten?', |
113 | 113 | 'night1' => '16. Juli', |
114 | 114 | 'night2' => '17. Juli', |
115 | 115 | 'night3' => '18. Juli', |
116 | 116 | 'night4' => '19. Juli', |
117 | 117 | 'night5' => '20. Juli', |
118 | | -'room' => 'Bevorzugtes Zimmer', |
| 118 | +'room' => 'Bevorzugtes Zimmer', |
119 | 119 | 'room2' => 'Doppelzimmer', |
120 | 120 | 'room4' => '4-Mann-Zimmer', |
121 | 121 | 'room6' => 'Mir egal', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Du kannst deinen PayPal-Account belasten oder mit deiner Kreditkarte über PayPal bezahlen: <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 Länder / Regionen</a> (Ägypten nicht eingeschlossen) oder über eine Überweisung oder direkte Einzahlung auf das Bankkonto des Organisationsteams in Alexandria. Achtung: Die Möglichkeit der PayPal-Zahlung wird deaktiviert, wenn du Ägypter bist.</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Art der Bezahlung', |
| 128 | +'pay_method' => 'Art der Bezahlung', |
129 | 129 | 'atm' => 'Bezahlung auf das Bankkonto', |
130 | 130 | 'receipt' => 'Quittung', |
131 | | -'need_receipt' => 'Ja, ich benötige eine Quittung auf Papier.', |
132 | | -'receipt_title' => 'Titel', |
133 | | -'receipt_address' => 'Postanschrift', |
| 131 | +'need_receipt' => 'Ja, ich benötige eine Quittung auf Papier.', |
| 132 | +'receipt_title' => 'Titel', |
| 133 | +'receipt_address' => 'Postanschrift', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Nachdem du das Formular abgeschickt hast, hast du immer noch die Möglichkeit, deine Angaben zur Registrierung zu überprüfen.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Registrierung vollständig', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Vielen Dank, dass du an der Wikimania 2008 teilnimmst! Dein Registrierungsformular wurde abgeschickt. Bitte beachte, dass du den Bezahlvorgang abschließen musst, um die Registrierung zu bestätigen. |
172 | 172 | |
173 | 173 | Deine <strong>Registrierungsnummer</strong> steht unten. Bitte schreibe dir die Nummer auf, da sie benutzt wird, um den Status der Registrierung abzufragen und deine Identität zu bestätigen. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_zh-hans.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => '否(请在以下栏位填上你的护照号码和姓名。)', |
19 | 19 | 'surname' => '姓氏', |
20 | 20 | 'given_name' => '名', |
21 | | -'sex' => '性别', |
| 21 | +'sex' => '性别', |
22 | 22 | 'sex1' => '男', |
23 | 23 | 'sex2' => '女', |
24 | 24 | 'sex3' => '不愿申明', |
25 | | -'id' => '身份证明文件 / 护照号码', |
26 | | -'country' => '国家 / 地区', |
27 | | -'city' => '州/ 省 / 城市', |
| 25 | +'id' => '身份证明文件 / 护照号码', |
| 26 | +'country' => '国家 / 地区', |
| 27 | +'city' => '州/ 省 / 城市', |
28 | 28 | 'birthday' => '出生日期(dd/mm/yyyy)', |
29 | 29 | 'organization' => '所属组织', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>语言</strong></p>', |
38 | | -'langn' => '母语', |
39 | | -'lang' => '熟练程度', |
| 38 | +'langn' => '母语', |
| 39 | +'lang' => '熟练程度', |
40 | 40 | 'select_lang' => '选择语言', |
41 | 41 | 'select_level' => '选择熟练程度', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => '第二语言的熟练程度', |
54 | 54 | 'lang3_level' => '第三语言的熟练程度', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>参与的维基计划和电邮帐戶</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>年会筹备小组将只会在注册相关程序和紧急通知时使用你的电邮地址资讯。</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => '意欲使用的维基计划帐戶名称。', |
63 | | -'email' => '电邮地址', |
| 61 | +', |
| 62 | +'wiki_id' => '意欲使用的维基计划帐戶名称。', |
| 63 | +'email' => '电邮地址', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => '参与情况', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '7月17日', |
73 | 73 | 'join2' => '7月18日', |
74 | 74 | 'join3' => '7月19日', |
75 | | -'topic' => '感兴趣的议程类型', |
| 75 | +'topic' => '感兴趣的议程类型', |
76 | 76 | 'topic1' => '维基媒体社群', |
77 | 77 | 'topic2' => '自由资讯', |
78 | 78 | 'topic3' => '技术架构', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => '维基媒体计划中的帐戶名', |
84 | 84 | 'showname3' => '所属组织', |
85 | 85 | 'showname4' => '其他', |
86 | | -'size' => 'T恤的尺寸', |
| 86 | +'size' => 'T恤的尺寸', |
87 | 87 | 'food' => '饮食习惯', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => '不吃牛肉', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => '犹太饮食', |
93 | 93 | 'food5' => '其他', |
94 | 94 | 'food_other' => '请注明特别的饮食习惯', |
95 | | -'allegric' => '任何食物敏感', |
| 95 | +'allegric' => '任何食物敏感', |
96 | 96 | 'transportation_assistance' => '机票协助', |
97 | 97 | 'need_transportation_assistance' => '我需要筹备小组为我预定机票。', |
98 | | -'visa_assistance' => '签证协助', |
| 98 | +'visa_assistance' => '签证协助', |
99 | 99 | 'need_visa_assistance' => '我需要签证协助', |
100 | 100 | 'visa_assistance_description' => '请说明筹备小组可以提供什么协助(请使用<strong>阿拉伯语</strong>或<strong>英语</strong>填写)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | 请查阅<a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>该页面上的资讯</a>,取得住宿地点的实际位置和其附属设施的资料,以便报名时申明你的决定。</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => '希望入住酒店', |
108 | | -'hotels_metropol'=> '大都会酒店(Metropole Hotel,每晚60美元)', |
109 | | -'hotels_delta'=> '三角洲酒店 (Delta Hotel,每晚30美元)', |
| 108 | +'hotels_metropol' => '大都会酒店(Metropole Hotel,每晚60美元)', |
| 109 | +'hotels_delta' => '三角洲酒店 (Delta Hotel,每晚30美元)', |
110 | 110 | 'hotels_dorms' => '圣马可书院宿舍 (每晚10美元)', |
111 | 111 | |
112 | | -'accommodation' => '入住日期', |
| 112 | +'accommodation' => '入住日期', |
113 | 113 | 'night1' => '7月16日', |
114 | 114 | 'night2' => '7月17日', |
115 | 115 | 'night3' => '7月18日', |
116 | 116 | 'night4' => '7月19日', |
117 | 117 | 'night5' => '7月20日', |
118 | | -'room' => '偏好的房间类别', |
| 118 | +'room' => '偏好的房间类别', |
119 | 119 | 'room2' => '二人房', |
120 | 120 | 'room4' => '四人房', |
121 | 121 | 'room6' => '没有所谓', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>若你居住在<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">这里所列出的103个国家/地区</a> (埃及除外),你可以通过PayPal,以借帐或信用卡付款。你也可以选择汇款或将款项直接存入亚力山卓筹备小组的银行户口。请注意:来自埃及的申请人将不能使用PayPal付款。</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => '付款方法', |
| 128 | +'pay_method' => '付款方法', |
129 | 129 | 'atm' => '银行户口付款', |
130 | 130 | 'receipt' => '收据', |
131 | | -'need_receipt' => '我需要收据。', |
132 | | -'receipt_title' => '称谓', |
133 | | -'receipt_address' => '邮寄地址', |
| 131 | +'need_receipt' => '我需要收据。', |
| 132 | +'receipt_title' => '称谓', |
| 133 | +'receipt_address' => '邮寄地址', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>递交了这份表格後,你需要再一次确认你的申请。</strong></li>', |
— | — | @@ -167,10 +167,10 @@ |
168 | 168 | |
169 | 169 | $lang_messages = array( |
170 | 170 | 'successful' => '完成报名', |
171 | | -'successful_description' => |
172 | | -'<p>多谢阁下报名参加2008国际维基媒体年会!你的报名表格己经成功递交。请注意你必须完成缴费步骤,才能确认参与资格。 |
| 171 | +'successful_description' => |
| 172 | +'<p>多谢阁下报名参加2008国际维基媒体年会!你的报名表格己经成功递交。请注意你必须完成缴费步骤,才能确认参与资格。 |
173 | 173 | |
174 | | -你的<strong>注册编号</strong>已显示在下面。请记下有关编号,以便日後查询报名受理状况及确认身份。 |
| 174 | +你的<strong>注册编号</strong>已显示在下面。请记下有关编号,以便日後查询报名受理状况及确认身份。 |
175 | 175 | ', |
176 | 176 | 'cost' => '报名费用', |
177 | 177 | 'wikimania_cost' => '会议:', |
Index: trunk/wikimania/wmreg/includes/notinuse/language_ko.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => '그렇지않습니다. (다음 양식에 여권에 나와 있는 당신의 이름과 여권 번호를 기재해 주세요.)', |
19 | 19 | 'surname' => '성', |
20 | 20 | 'given_name' => '이름', |
21 | | -'sex' => '성별', |
| 21 | +'sex' => '성별', |
22 | 22 | 'sex1' => '남성', |
23 | 23 | 'sex2' => '여성', |
24 | 24 | 'sex3' => '응답 거부', |
25 | | -'id' => 'ID / 여권 번호', |
26 | | -'country' => '국가 / 지역', |
27 | | -'city' => '주 / 도시', |
| 25 | +'id' => 'ID / 여권 번호', |
| 26 | +'country' => '국가 / 지역', |
| 27 | +'city' => '주 / 도시', |
28 | 28 | 'birthday' => '생년월일(dd/mmm/yyyy)', |
29 | 29 | 'organization' => '기관', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>언어 구사 능력</strong></p>', |
38 | | -'langn' => '모국어', |
39 | | -'lang' => '언어 능력 수준', |
| 38 | +'langn' => '모국어', |
| 39 | +'lang' => '언어 능력 수준', |
40 | 40 | 'select_lang' => '언어를 선택해 주세요', |
41 | 41 | 'select_level' => '언어 구사 능력을 선택해 주세요', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => '언어 2의 구사 능력', |
54 | 54 | 'lang3_level' => '온어 3의 구사 능력', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>위키미디어 프로젝트와 이메일 계정</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>당신의 이메일 정보는 위키매니아 2008의 등록과 긴급 확인 용도로만 사용될 것입니다.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => '선호하는 위키미디어 프로젝트 계정 이름', |
63 | | -'email' => '당신의 이메일', |
| 61 | +', |
| 62 | +'wiki_id' => '선호하는 위키미디어 프로젝트 계정 이름', |
| 63 | +'email' => '당신의 이메일', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => '참가', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '7월 17일', |
73 | 73 | 'join2' => '7월 18일', |
74 | 74 | 'join3' => '7월 19일', |
75 | | -'topic' => '선호하는 세션 분야', |
| 75 | +'topic' => '선호하는 세션 분야', |
76 | 76 | 'topic1' => '위키미디어 커뮤니티', |
77 | 77 | 'topic2' => '자유 콘텐츠', |
78 | 78 | 'topic3' => '기술 기반', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => '위키미디어 계정', |
84 | 84 | 'showname3' => '기관', |
85 | 85 | 'showname4' => '기타', |
86 | | -'size' => 'T-셔츠 사이즈', |
| 86 | +'size' => 'T-셔츠 사이즈', |
87 | 87 | 'food' => '규정식', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => '소고기 불가', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => '코샤르', |
93 | 93 | 'food5' => '기타', |
94 | 94 | 'food_other' => '특별한 규정식', |
95 | | -'allegric' => '엘러지 있음', |
| 95 | +'allegric' => '엘러지 있음', |
96 | 96 | 'transportation_assistance' => '항공권 지원 요청', |
97 | 97 | 'need_transportation_assistance' => '예, 제 항공권 예약에 지원이 필요합니다.', |
98 | | -'visa_assistance' => '비자 요청', |
| 98 | +'visa_assistance' => '비자 요청', |
99 | 99 | 'need_visa_assistance' => '예, 비자 발급이 필요합니다', |
100 | 100 | 'visa_assistance_description' => ' 비자 발급을 위해 어떤 기관이 어떻게 도와주어야 하는 기재해 주세요. (<strong>아랍어</strong> 또는 <strong>영어</strong>로)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | 등록하시기 전에, 정확한 위치와 선택가능한 사양을 <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>위키매니아 공식 사이트</a>에서 상세 내용을 확인하세요.></p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => '선호하는 호텔', |
108 | | -'hotels_metropol'=> '메트로폴 호텔(1박에 $60)', |
109 | | -'hotels_delta'=> '델타 호텔(1박에 $30)', |
| 108 | +'hotels_metropol' => '메트로폴 호텔(1박에 $60)', |
| 109 | +'hotels_delta' => '델타 호텔(1박에 $30)', |
110 | 110 | 'hotels_dorms' => '성 마르크 기숙사(1박에 $10)', |
111 | 111 | |
112 | | -'accommodation' => '체류 일자', |
| 112 | +'accommodation' => '체류 일자', |
113 | 113 | 'night1' => '7월 16일', |
114 | 114 | 'night2' => '7월 17일', |
115 | 115 | 'night3' => '7월 18일', |
116 | 116 | 'night4' => '7월 19일', |
117 | 117 | 'night5' => '7월 20일', |
118 | | -'room' => '공동 숙박 가능 여부', |
| 118 | +'room' => '공동 숙박 가능 여부', |
119 | 119 | 'room2' => '2인실', |
120 | 120 | 'room4' => '4인실', |
121 | 121 | 'room6' => '상관 없음', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>당신은 당신의 Paypal 계좌에서 출금하거나 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103개 국가/지역</a>(이집트는 포함되지 않음)에서 PayPal을 통해 당신의 신용카드를 사용하거나 또는 알렉산드리아에 있는 조직위 소유의 은행 계좌에 송금과 직접 지불을 통해 지불할 수도 있습니다. 주의: 당신이 이집트인이면 PayPal 옵션은 사용 불가합니다.</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => '지불 수단', |
| 128 | +'pay_method' => '지불 수단', |
129 | 129 | 'atm' => '은행 계좌 지불', |
130 | 130 | 'receipt' => '영수증', |
131 | | -'need_receipt' => '예, 종이로 된 영수증이 필요합니다.', |
132 | | -'receipt_title' => '제목', |
133 | | -'receipt_address' => '메일 주소', |
| 131 | +'need_receipt' => '예, 종이로 된 영수증이 필요합니다.', |
| 132 | +'receipt_title' => '제목', |
| 133 | +'receipt_address' => '메일 주소', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>양식을 제출하고서, 당신은 아직 당신의 등록을 확인할 기회가 한 번 있습니다.</strong></li>', |
— | — | @@ -166,8 +166,8 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => '등록 완료', |
170 | | -'successful_description' => |
171 | | -'<p>위키매니아 2008에 함께 하여 주셔서 감사합니다! 당신의 등록 양식은 제출되었습니다. 등록을 확인하려면 납부 과정을 완료할 필요가 있음을 유의하세요. |
| 170 | +'successful_description' => |
| 171 | +'<p>위키매니아 2008에 함께 하여 주셔서 감사합니다! 당신의 등록 양식은 제출되었습니다. 등록을 확인하려면 납부 과정을 완료할 필요가 있음을 유의하세요. |
172 | 172 | 당신의 <strong>등록 번호</strong>는 아래 표시됩니다. 나중에 당신의 신원을 확인하거나 등록 현황을 조회하기 위하여 필요하오니 등록 번호를 적어 두세요', |
173 | 173 | 'cost' => '등록비', |
174 | 174 | 'wikimania_cost' => '회의: ', |
Index: trunk/wikimania/wmreg/includes/notinuse/language_zh-hant.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => '否(請在以下欄位填上你的護照號碼和姓名。)', |
19 | 19 | 'surname' => '姓氏', |
20 | 20 | 'given_name' => '名', |
21 | | -'sex' => '性別', |
| 21 | +'sex' => '性別', |
22 | 22 | 'sex1' => '男', |
23 | 23 | 'sex2' => '女', |
24 | 24 | 'sex3' => '不願申明', |
25 | | -'id' => '身份證明文件 / 護照號碼', |
26 | | -'country' => '國家 / 地區', |
27 | | -'city' => '州/ 省 / 城市', |
| 25 | +'id' => '身份證明文件 / 護照號碼', |
| 26 | +'country' => '國家 / 地區', |
| 27 | +'city' => '州/ 省 / 城市', |
28 | 28 | 'birthday' => '出生日期(dd/mm/yyyy)', |
29 | 29 | 'organization' => '所屬組織', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>語言</strong></p>', |
38 | | -'langn' => '母語', |
39 | | -'lang' => '熟練程度', |
| 38 | +'langn' => '母語', |
| 39 | +'lang' => '熟練程度', |
40 | 40 | 'select_lang' => '選擇語言', |
41 | 41 | 'select_level' => '選擇熟練程度', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => '第二語言的熟練程度', |
54 | 54 | 'lang3_level' => '第三語言的熟練程度', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>參與的維基計劃和電郵戶口</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>年會籌備小組將只會在註冊相關程序和緊急通知時使用你的電郵地址資訊。</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => '意欲使用的維基計劃戶口名稱。', |
63 | | -'email' => '電郵地址', |
| 61 | +', |
| 62 | +'wiki_id' => '意欲使用的維基計劃戶口名稱。', |
| 63 | +'email' => '電郵地址', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => '參與狀況', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '7月17日', |
73 | 73 | 'join2' => '7月18日', |
74 | 74 | 'join3' => '7月19日', |
75 | | -'topic' => '感興趣的議程類型', |
| 75 | +'topic' => '感興趣的議程類型', |
76 | 76 | 'topic1' => '維基媒體社群', |
77 | 77 | 'topic2' => '自由資訊', |
78 | 78 | 'topic3' => '技術架構', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => '維基媒體計劃中的戶口名', |
84 | 84 | 'showname3' => '所屬組織', |
85 | 85 | 'showname4' => '其他', |
86 | | -'size' => 'T恤的大小', |
| 86 | +'size' => 'T恤的大小', |
87 | 87 | 'food' => '飲食習慣', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => '不吃牛肉', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => '猶太飲食', |
93 | 93 | 'food5' => '其他', |
94 | 94 | 'food_other' => '請註明特別的飲食習慣', |
95 | | -'allegric' => '任何食物敏感', |
| 95 | +'allegric' => '任何食物敏感', |
96 | 96 | 'transportation_assistance' => '機票協助', |
97 | 97 | 'need_transportation_assistance' => '我需要籌備小組為我預訂機票。', |
98 | | -'visa_assistance' => '簽證協助', |
| 98 | +'visa_assistance' => '簽證協助', |
99 | 99 | 'need_visa_assistance' => '我需要簽證協助', |
100 | 100 | 'visa_assistance_description' => '請說明籌備小組可以如何協助(請使用<strong>阿拉伯語</strong>或<strong>英語</strong>填寫)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | 請查閱<a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>該頁面上的資訊</a>,取得住宿地點的實際位置和其附屬設施的資料,以便報名時申明你的決定。</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => '希望入住酒店', |
108 | | -'hotels_metropol'=> '大都會酒店(Metropole Hotel,每晚60美元)', |
109 | | -'hotels_delta'=> '三角洲酒店 (Delta Hotel,每晚30美元)', |
| 108 | +'hotels_metropol' => '大都會酒店(Metropole Hotel,每晚60美元)', |
| 109 | +'hotels_delta' => '三角洲酒店 (Delta Hotel,每晚30美元)', |
110 | 110 | 'hotels_dorms' => '聖馬可書院宿舍 (每晚10美元)', |
111 | 111 | |
112 | | -'accommodation' => '入住日期', |
| 112 | +'accommodation' => '入住日期', |
113 | 113 | 'night1' => '7月16日', |
114 | 114 | 'night2' => '7月17日', |
115 | 115 | 'night3' => '7月18日', |
116 | 116 | 'night4' => '7月19日', |
117 | 117 | 'night5' => '7月20日', |
118 | | -'room' => '偏好的房間類別', |
| 118 | +'room' => '偏好的房間類別', |
119 | 119 | 'room2' => '二人房', |
120 | 120 | 'room4' => '四人房', |
121 | 121 | 'room6' => '沒有所謂', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>若你居住在<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">這裡所列出的103個國家/地區</a> (埃及除外),你可以通過PayPal,以借帳或信用卡付款。你也可以選擇匯款或將款項直接存入亞力山卓籌備小組的銀行戶口。請注意:來自埃及的申請人將不能使用PayPal付款。</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => '付款方法', |
| 128 | +'pay_method' => '付款方法', |
129 | 129 | 'atm' => '銀行戶口付款', |
130 | 130 | 'receipt' => '收據', |
131 | | -'need_receipt' => '我需要收據。', |
132 | | -'receipt_title' => '抬頭', |
133 | | -'receipt_address' => '郵寄地址', |
| 131 | +'need_receipt' => '我需要收據。', |
| 132 | +'receipt_title' => '抬頭', |
| 133 | +'receipt_address' => '郵寄地址', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>遞交了這份表格後,你需要再一次確認你的申請。</strong></li>', |
— | — | @@ -167,10 +167,10 @@ |
168 | 168 | |
169 | 169 | $lang_messages = array( |
170 | 170 | 'successful' => '完成報名', |
171 | | -'successful_description' => |
172 | | -'<p>多謝閣下報名參加2008國際維基媒體年會!你的報名表格己經成功遞交。請注意你必須完成繳費步驟,才能確認參與資格。 |
| 171 | +'successful_description' => |
| 172 | +'<p>多謝閣下報名參加2008國際維基媒體年會!你的報名表格己經成功遞交。請注意你必須完成繳費步驟,才能確認參與資格。 |
173 | 173 | |
174 | | -你的<strong>註冊編號</strong>已顯示在下面。請記下有關編號,以便日後查詢報名受理狀況及確認身份。 |
| 174 | +你的<strong>註冊編號</strong>已顯示在下面。請記下有關編號,以便日後查詢報名受理狀況及確認身份。 |
175 | 175 | ', |
176 | 176 | 'cost' => '報名費用', |
177 | 177 | 'wikimania_cost' => '會議:', |
Index: trunk/wikimania/wmreg/includes/notinuse/language_ja.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'いいえ、ちがいます(あなたのパスポート番号とパスポートに記載された名前をローマ字で以下に記入してください)', |
19 | 19 | 'surname' => '姓(日本人の方はローマ字でお願いします)', |
20 | 20 | 'given_name' => '名(日本人の方はローマ字でお願いします)', |
21 | | -'sex' => '性別', |
| 21 | +'sex' => '性別', |
22 | 22 | 'sex1' => '男', |
23 | 23 | 'sex2' => '女', |
24 | 24 | 'sex3' => '記入を拒否します', |
25 | | -'id' => '身分証番号 / パスポート番号', |
26 | | -'country' => '国 / 地域', |
27 | | -'city' => '市町村', |
| 25 | +'id' => '身分証番号 / パスポート番号', |
| 26 | +'country' => '国 / 地域', |
| 27 | +'city' => '市町村', |
28 | 28 | 'birthday' => '生年月日(日(2桁)、月、年(4桁))', |
29 | 29 | 'organization' => '所属', |
30 | | -'year1' => '', |
31 | | -'year' => '年(西暦)', |
32 | | -'month' => '月', |
33 | | -'months' => array(NULL, '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'), |
34 | | -'day' => '日(2桁)', |
| 30 | +'year1' => '', |
| 31 | +'year' => '年(西暦)', |
| 32 | +'month' => '月', |
| 33 | +'months' => array( NULL, '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' ), |
| 34 | +'day' => '日(2桁)', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>言語</strong></p>', |
38 | | -'langn' => '母語', |
39 | | -'lang' => '習熟度', |
| 38 | +'langn' => '母語', |
| 39 | +'lang' => '習熟度', |
40 | 40 | 'select_lang' => '言語を選んでください。', |
41 | 41 | 'select_level' => '当該言語の習熟度', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => '言語2の習熟度', |
54 | 54 | 'lang3_level' => '言語3の習熟度', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>ウィキメディア・プロジェクトのアカウントと電子メールアドレス</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>メールアドレスはウィキマニア2008における参加受付および緊急連絡の際にのみ使われます。</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'ウィキメディア・プロジェクトのアカウント(ひとつ選択)', |
63 | | -'email' => '電子メールアドレス', |
| 61 | +', |
| 62 | +'wiki_id' => 'ウィキメディア・プロジェクトのアカウント(ひとつ選択)', |
| 63 | +'email' => '電子メールアドレス', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => '参加登録', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '7月17日', |
73 | 73 | 'join2' => '7月18日', |
74 | 74 | 'join3' => '7月19日', |
75 | | -'topic' => '興味のあるセッション', |
| 75 | +'topic' => '興味のあるセッション', |
76 | 76 | 'topic1' => 'ウィキメディア・コミュニティ', |
77 | 77 | 'topic2' => '自由なコンテンツ', |
78 | 78 | 'topic3' => '技術基盤', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'ウィキメディア・アカウント名', |
84 | 84 | 'showname3' => '所属', |
85 | 85 | 'showname4' => 'その他', |
86 | | -'size' => 'Tシャツのサイズ', |
| 86 | +'size' => 'Tシャツのサイズ', |
87 | 87 | 'food' => '飲食習慣', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => '牛肉は食べません', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'ユダヤ式', |
93 | 93 | 'food5' => 'その他', |
94 | 94 | 'food_other' => '詳細', |
95 | | -'allegric' => 'アレルギー反応を起こす食べ物', |
| 95 | +'allegric' => 'アレルギー反応を起こす食べ物', |
96 | 96 | 'transportation_assistance' => '航空券予約支援', |
97 | 97 | 'need_transportation_assistance' => 'はい、航空券予約に支援が必要です。', |
98 | | -'visa_assistance' => 'ビザ取得の支援', |
| 98 | +'visa_assistance' => 'ビザ取得の支援', |
99 | 99 | 'need_visa_assistance' => 'はい、ビザ取得に支援が必要です', |
100 | 100 | 'visa_assistance_description' => '運営チームがビザの件にどのように対応したらよいか、ご記入ください(<strong>アラビア語</strong>または<strong>英語</strong>でお願いします)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | ご登録の前に、<a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>ウィキマニア公式ウェブサイト</a>で宿泊先の所在、宿泊環境をよくお確かめください。</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => '希望する宿泊先', |
108 | | -'hotels_metropol'=> 'メトロポール・ホテル (Metropol Hotel)(1泊60ドル)', |
109 | | -'hotels_delta'=> 'デルタ・ホテル (Delta Hotel)(1泊30ドル)', |
| 108 | +'hotels_metropol' => 'メトロポール・ホテル (Metropol Hotel)(1泊60ドル)', |
| 109 | +'hotels_delta' => 'デルタ・ホテル (Delta Hotel)(1泊30ドル)', |
110 | 110 | 'hotels_dorms' => 'サン・マルク宿舎 (Saint Marc Dorms)(1泊10ドル)', |
111 | 111 | |
112 | | -'accommodation' => '宿泊日程', |
| 112 | +'accommodation' => '宿泊日程', |
113 | 113 | 'night1' => '7月16日', |
114 | 114 | 'night2' => '7月17日', |
115 | 115 | 'night3' => '7月18日', |
116 | 116 | 'night4' => '7月19日', |
117 | 117 | 'night5' => '7月20日', |
118 | | -'room' => '希望するタイプ', |
| 118 | +'room' => '希望するタイプ', |
119 | 119 | 'room2' => 'ツイン', |
120 | 120 | 'room4' => '4人部屋', |
121 | 121 | 'room6' => '指定なし', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>(エジプトは含まれない)<a href="http://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103の国・地域から</a>PayPal経由でお支払い可能です。もしくはアレクサンドリア運営チーム所有の銀行口座への振込によってもお支払いいただけます。注意: エジプト人の方はPayPalでお支払いいただけません。</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => '支払い種別', |
| 128 | +'pay_method' => '支払い種別', |
129 | 129 | 'atm' => '銀行口座への送金', |
130 | 130 | 'receipt' => '領収書', |
131 | | -'need_receipt' => 'はい、領収書が必要です。', |
132 | | -'receipt_title' => '宛名', |
133 | | -'receipt_address' => '住所', |
| 131 | +'need_receipt' => 'はい、領収書が必要です。', |
| 132 | +'receipt_title' => '宛名', |
| 133 | +'receipt_address' => '住所', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>フォーム送信後に送信内容を確認できます。</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => '登録完了', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>ウィキマニア2008へのご参加ありがとうございます! ご登録を受け付けました。登録を確定するためには送金処理を済ませる必要がありますので、ご注意ください。 |
172 | 172 | |
173 | 173 | あなたの<strong>受付番号 (registration number)<strong>は以下に記載されています。番号をお控えの上、受付状況の確認や会議の際のご自身の情報の確認などにお使いください。 |
Index: trunk/wikimania/wmreg/includes/notinuse/language_pl.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'Nie. (W poniższych polach podaj numer paszportu i nazwisko)', |
19 | 19 | 'surname' => 'Nazwisko', |
20 | 20 | 'given_name' => 'Imię', |
21 | | -'sex' => 'Płeć', |
| 21 | +'sex' => 'Płeć', |
22 | 22 | 'sex1' => 'Mężczyzna', |
23 | 23 | 'sex2' => 'Kobieta', |
24 | 24 | 'sex3' => 'Odmawiam podania', |
25 | | -'id' => 'Numer paszportu', |
26 | | -'country' => 'Kraj / Region', |
27 | | -'city' => 'Stan / miasto', |
| 25 | +'id' => 'Numer paszportu', |
| 26 | +'country' => 'Kraj / Region', |
| 27 | +'city' => 'Stan / miasto', |
28 | 28 | 'birthday' => 'Data urodzenie (dd/mmm/rrrr)', |
29 | 29 | 'organization' => 'Organizacja', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Znajomość języków</strong></p>', |
38 | | -'langn' => 'Język ojczysty', |
39 | | -'lang' => 'Poziom znajomości języka', |
| 38 | +'langn' => 'Język ojczysty', |
| 39 | +'lang' => 'Poziom znajomości języka', |
40 | 40 | 'select_lang' => 'Wybierz język', |
41 | 41 | 'select_level' => 'Wybierz poziom znajomości języka', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Poziom znajomości języka 2', |
54 | 54 | 'lang3_level' => 'Poziom znajomości języka 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Projekty Wikimedia i konto/konta e-mail</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Informacja o twoim koncie będzie wykorzystana wyłącznie do celów rejestracji i pilnych powiadomień o Wikimanii 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Nazwa głównego projektu Wikimedia', |
63 | | -'email' => 'Twój e-mail', |
| 61 | +', |
| 62 | +'wiki_id' => 'Nazwa głównego projektu Wikimedia', |
| 63 | +'email' => 'Twój e-mail', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Uczestnictwo', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17 lipca', |
73 | 73 | 'join2' => '18 lipca', |
74 | 74 | 'join3' => '19 lipca', |
75 | | -'topic' => 'Preferowany zestaw sesji', |
| 75 | +'topic' => 'Preferowany zestaw sesji', |
76 | 76 | 'topic1' => 'Społeczności Wikimedia', |
77 | 77 | 'topic2' => 'Wolne treści', |
78 | 78 | 'topic3' => 'Infrastruktura techniczna', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Konto Wikimedia', |
84 | 84 | 'showname3' => 'Organizacja', |
85 | 85 | 'showname4' => 'Inne', |
86 | | -'size' => 'Rozmiar T-shirtu', |
| 86 | +'size' => 'Rozmiar T-shirtu', |
87 | 87 | 'food' => 'Ograniczenia diety', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Bez wołowiny', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Koszerna', |
93 | 93 | 'food5' => 'Inna', |
94 | 94 | 'food_other' => 'Określone ograniczenia dietetyczne', |
95 | | -'allegric' => 'Alergie', |
| 95 | +'allegric' => 'Alergie', |
96 | 96 | 'transportation_assistance' => 'Pomoc w zorganizowaniu biletów lotniczych', |
97 | 97 | 'need_transportation_assistance' => 'Tak, potrzebuję pomocy w dziedzinie rezerwacji lotniczej', |
98 | | -'visa_assistance' => 'Pomoc w uzyskaniu wizy', |
| 98 | +'visa_assistance' => 'Pomoc w uzyskaniu wizy', |
99 | 99 | 'need_visa_assistance' => 'Tak, potrzebuję pomocy', |
100 | 100 | 'visa_assistance_description' => 'Proszę podać jak organizatorzy mogą pomóc w uzyskaniu wizy. (po <strong>arabsku</strong> lub <strong>angielsku</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Sprawdź szczegóły lokalizacji na <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>oficjalnej stronie Wikimanii</a> przed zarejestrowniem.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Preferowany hotel.', |
108 | | -'hotels_metropol'=> 'Hotel Metropol ($60 za noc)', |
109 | | -'hotels_delta'=> 'Hotel Delta ($30 za noc)', |
| 108 | +'hotels_metropol' => 'Hotel Metropol ($60 za noc)', |
| 109 | +'hotels_delta' => 'Hotel Delta ($30 za noc)', |
110 | 110 | 'hotels_dorms' => 'Akademiki Saint Marc($10 za noc)', |
111 | 111 | |
112 | | -'accommodation' => 'Noclegi', |
| 112 | +'accommodation' => 'Noclegi', |
113 | 113 | 'night1' => '16 lipca', |
114 | 114 | 'night2' => '17 lipca', |
115 | 115 | 'night3' => '18 lipca', |
116 | 116 | 'night4' => '19 lipca', |
117 | 117 | 'night5' => '20 lipca', |
118 | | -'room' => 'Preferowany pokój', |
| 118 | +'room' => 'Preferowany pokój', |
119 | 119 | 'room2' => '2-osobowy', |
120 | 120 | 'room4' => '4-osobowy', |
121 | 121 | 'room6' => 'Bez znaczenia', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Możesz skorzystać ze swojego konta PayPal lub zapłacić kartą kredytową poprzez PayPal w <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 krajach / regionach</a> (Egipt jest z tej usługi wyłączony) lub przelewem na konto bankowe organizatorów w Aleksandrii. Uwaga: płatność przez PayPal jest niedostępna jeśli jesteś Egipcjaninem.</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Rodzaj płatności', |
| 128 | +'pay_method' => 'Rodzaj płatności', |
129 | 129 | 'atm' => 'Przelew z konta bankowego', |
130 | 130 | 'receipt' => 'Rachunek', |
131 | | -'need_receipt' => 'Tak, poproszę o rachunek', |
132 | | -'receipt_title' => 'Tytuł', |
133 | | -'receipt_address' => 'Adres do korespondencji', |
| 131 | +'need_receipt' => 'Tak, poproszę o rachunek', |
| 132 | +'receipt_title' => 'Tytuł', |
| 133 | +'receipt_address' => 'Adres do korespondencji', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Po wysłaniu formularza nadal dostępna jest możliwość weryfikacji zgłoszenia.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Rejestracja zakończona', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Dziękujemy za zgłoszenie udziału w konferencji Wikimania 2008! Twój formularz rejestracyjny został wysłany. Aby rejestracja została potwierdzona musisz dokonać płatności. |
172 | 172 | |
173 | 173 | Poniżej znajduje się Twój <strong>numer rejestracji</strong>. Zanotuj go, gdyż jest on używany do sprawdzania stanu rejestracji i potwierdzenia Twojej tożsamości. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_it.php |
— | — | @@ -14,28 +14,28 @@ |
15 | 15 | ', |
16 | 16 | 'egy' => 'Sei cittadino della Repubblica Araba d\'Egitto?', |
17 | 17 | 'egy1' => 'Sì, lo sono. (Per favore, immetti il tuo numero di identificazione nazionale e il tuo nome nei campi seguenti.', |
18 | | -'egy0' => 'No, non lo sono. (Per favore, immetti il tuo numero di passaporto e il tuo nome nei campi seguenti.)', |
| 18 | +'egy0' => 'No, non lo sono. (Per favore, immetti il tuo numero di passaporto e il tuo nome nei campi seguenti.)', |
19 | 19 | 'surname' => 'Cognome', |
20 | 20 | 'given_name' => 'Nome', |
21 | | -'sex' => 'Sesso', |
| 21 | +'sex' => 'Sesso', |
22 | 22 | 'sex1' => 'Maschio', |
23 | 23 | 'sex2' => 'Femmina', |
24 | 24 | 'sex3' => 'Non dichiarato', |
25 | | -'id' => 'ID / Numero di passaporto', |
26 | | -'country' => 'Paese / Regione', |
27 | | -'city' => 'Stato / Città', |
| 25 | +'id' => 'ID / Numero di passaporto', |
| 26 | +'country' => 'Paese / Regione', |
| 27 | +'city' => 'Stato / Città', |
28 | 28 | 'birthday' => 'Data di nascita (gg/mm/aaaa)', |
29 | 29 | 'organization' => 'Organizzazione', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Lingue conosciute</strong></p>', |
38 | | -'langn' => 'Lingua madre', |
39 | | -'lang' => 'Livello di conoscenza', |
| 38 | +'langn' => 'Lingua madre', |
| 39 | +'lang' => 'Livello di conoscenza', |
40 | 40 | 'select_lang' => 'Seleziona la lingua', |
41 | 41 | 'select_level' => 'Seleziona il livello di conoscenza', |
42 | 42 | |
— | — | @@ -52,26 +52,26 @@ |
53 | 53 | 'lang2_level' => 'Livello di conoscenza della Lingua 2', |
54 | 54 | 'lang3_level' => 'Livello di conoscenza della Lingua 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Progetto Wikimedia e account e-mail</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Le informazioni relative alla tua e-mail saranno usate unicamente per la registrazione e per comunicazioni urgenti relative a Wikimania 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Account del progetto Wikimedia principale', |
63 | | -'email' => 'La tua e-mail', |
| 61 | +', |
| 62 | +'wiki_id' => 'Account del progetto Wikimedia principale', |
| 63 | +'email' => 'La tua e-mail', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Partecipazione', |
67 | 67 | 'title4' => |
68 | 68 | ' <p><strong>Partecipazione, badge e varie</strong></p> |
69 | | - <p>Per una migliore organizzazione relativa ad alloggio, conferenze e altri servizi, indicaci le tue preferenze compilando i campi seguenti.</p> |
| 69 | + <p>Per una migliore organizzazione relativa ad alloggio, conferenze e altri servizi, indicaci le tue preferenze compilando i campi seguenti.</p> |
70 | 70 | ', |
71 | 71 | 'join_date' => 'Date di partecipazione', |
72 | 72 | 'join1' => '17 luglio', |
73 | 73 | 'join2' => '18 luglio', |
74 | 74 | 'join3' => '19 luglio', |
75 | | -'topic' => 'Tema preferito', |
| 75 | +'topic' => 'Tema preferito', |
76 | 76 | 'topic1' => 'Comunità Wikimedia', |
77 | 77 | 'topic2' => 'Conoscenza libera', |
78 | 78 | 'topic3' => 'Infrastrutture tecniche', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Account Wikimedia', |
84 | 84 | 'showname3' => 'Organizazione', |
85 | 85 | 'showname4' => 'Altro', |
86 | | -'size' => 'Taglia della maglietta', |
| 86 | +'size' => 'Taglia della maglietta', |
87 | 87 | 'food' => 'Preferenze o problemi alimentari', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Non mangi carne', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Kosher', |
93 | 93 | 'food5' => 'Altro', |
94 | 94 | 'food_other' => 'Specifica preferenze o problemi alimentari', |
95 | | -'allegric' => 'Allergie', |
96 | | -'transportation_assistance' => 'Assistenza relativa ai biglietti per l\'aereo', |
| 95 | +'allegric' => 'Allergie', |
| 96 | +'transportation_assistance' => 'Assistenza relativa ai biglietti per l\'aereo', |
97 | 97 | 'need_transportation_assistance' => 'Sì, necessito di assistenza per la prenotazione del volo', |
98 | | -'visa_assistance' => 'Assistenza per il visto', |
| 98 | +'visa_assistance' => 'Assistenza per il visto', |
99 | 99 | 'need_visa_assistance' => 'Sì, necessito di assistenza per il visto', |
100 | 100 | 'visa_assistance_description' => ' Per favore, illustra come lo staff può aiutarti con questioni relative al visto. (in <strong>arabo</strong> o <strong>inglese</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Per favore, prima di registrarti, controlla i dettagli sul <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>sito ufficiale di Wikimania</a> per informazioni precise sulla posizione e le caratteristiche degli alloggi.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Alloggio scelto', |
108 | | -'hotels_metropol'=> 'Hotel Metropol (60$ a notte)', |
109 | | -'hotels_delta'=> 'Hotel Delta (30$ a notte)', |
| 108 | +'hotels_metropol' => 'Hotel Metropol (60$ a notte)', |
| 109 | +'hotels_delta' => 'Hotel Delta (30$ a notte)', |
110 | 110 | 'hotels_dorms' => 'Dormitori del College Saint Marc (10$ a notte)', |
111 | 111 | |
112 | | -'accommodation' => 'Giorni di alloggio', |
| 112 | +'accommodation' => 'Giorni di alloggio', |
113 | 113 | 'night1' => '16 luglio', |
114 | 114 | 'night2' => '17 luglio', |
115 | 115 | 'night3' => '18 luglio', |
116 | 116 | 'night4' => '19 luglio', |
117 | 117 | 'night5' => '20 luglio', |
118 | | -'room' => 'Tipologia di stanza scelta', |
| 118 | +'room' => 'Tipologia di stanza scelta', |
119 | 119 | 'room2' => 'Doppia', |
120 | 120 | 'room4' => 'Quattro persone', |
121 | 121 | 'room6' => 'Indifferente', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Puoi addebitare sul tuo conto PayPal o pagare tramite la tua carta di credito via PayPal da <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 paesi / regioni</a> (Egitto escluso) o con rimessa e pagamento diretto sul conto bancario intestato al team di organizzazione ad Alexandria. Nota: se sei egiziano, l\'opzione PayPal verrà scartata.</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Tipo di pagamento', |
| 128 | +'pay_method' => 'Tipo di pagamento', |
129 | 129 | 'atm' => 'Conto bancario', |
130 | 130 | 'receipt' => 'Ricevuta', |
131 | | -'need_receipt' => 'Sì, necessito di ricevuta cartacea.', |
132 | | -'receipt_title' => 'Titolo', |
133 | | -'receipt_address' => 'Indirizzo di spedizione', |
| 131 | +'need_receipt' => 'Sì, necessito di ricevuta cartacea.', |
| 132 | +'receipt_title' => 'Titolo', |
| 133 | +'receipt_address' => 'Indirizzo di spedizione', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Dopo l\'invio del modulo, hai ancora una possibilità di verificare i dati della tua registrazione.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Registrazione completata', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Grazie per la tua partecipazione a Wikimania 2008! La tua registrazione è stata inviata. Per favore, nota che hai bisogno di completare il processo di pagamento affinché la registrazione possa essere confermata. |
172 | 172 | |
173 | 173 | Il tuo <strong>numero di registrazione</strong> sarà mostrato in basso. Prendi nota del numero dato che sarà usato per controllare lo stato della tua registrazione e per confermare la tua identità in futuro. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_nb.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'Nei, det er jeg ikke. (Vennligst skriv inn ditt passnummer og navnet i passet i følgende felt)', |
19 | 19 | 'surname' => 'Etternavn', |
20 | 20 | 'given_name' => 'Fornavn', |
21 | | -'sex' => 'Kjønn', |
| 21 | +'sex' => 'Kjønn', |
22 | 22 | 'sex1' => 'Mann', |
23 | 23 | 'sex2' => 'Kvinne', |
24 | 24 | 'sex3' => 'Vil ikke oppgi', |
25 | | -'id' => 'ID / Passnummer', |
26 | | -'country' => 'Land / Region', |
27 | | -'city' => 'Stat / By', |
| 25 | +'id' => 'ID / Passnummer', |
| 26 | +'country' => 'Land / Region', |
| 27 | +'city' => 'Stat / By', |
28 | 28 | 'birthday' => 'Fødselsdato (dd/mm/åååå)', |
29 | 29 | 'organization' => 'Organisasjon', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Lingvistisk ferdighet</strong></p>', |
38 | | -'langn' => 'Morsmål', |
39 | | -'lang' => 'Ferdighetsnivå', |
| 38 | +'langn' => 'Morsmål', |
| 39 | +'lang' => 'Ferdighetsnivå', |
40 | 40 | 'select_lang' => 'Velg språket', |
41 | 41 | 'select_level' => 'Velg ferdighetsnivå', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Ferdighetsnivå for språk 2', |
54 | 54 | 'lang3_level' => 'Ferdighetsnivå for språk 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Wikimedia-prosjekt og e-postkontoer</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Din e-postadresse blir brukt til registrering og viktige meldinger rundt Wikimania 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Ønsket Wikimedia-prosjekt-kontonavn', |
63 | | -'email' => 'Din e-postadresse', |
| 61 | +', |
| 62 | +'wiki_id' => 'Ønsket Wikimedia-prosjekt-kontonavn', |
| 63 | +'email' => 'Din e-postadresse', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Deltagelse', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17. juli', |
73 | 73 | 'join2' => '18. juli', |
74 | 74 | 'join3' => '19. juli', |
75 | | -'topic' => 'Ønsket temalinje', |
| 75 | +'topic' => 'Ønsket temalinje', |
76 | 76 | 'topic1' => 'Wikimedia-prosjekter', |
77 | 77 | 'topic2' => 'Fritt innhold', |
78 | 78 | 'topic3' => 'Teknisk infrastruktur', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Wikimedia-konto', |
84 | 84 | 'showname3' => 'Organisasjon', |
85 | 85 | 'showname4' => 'Annet', |
86 | | -'size' => 'T-skjortestørrelse', |
| 86 | +'size' => 'T-skjortestørrelse', |
87 | 87 | 'food' => 'Kostholdsrestriksjoner', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Ikke biff', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Kosher', |
93 | 93 | 'food5' => 'Annet', |
94 | 94 | 'food_other' => 'Spesifiserte kostholdsrestriksjoner', |
95 | | -'allegric' => 'Eventuelle allergier', |
| 95 | +'allegric' => 'Eventuelle allergier', |
96 | 96 | 'transportation_assistance' => 'Flybillettassistanse', |
97 | 97 | 'need_transportation_assistance' => 'Ja, jeg trenger deres assistanse for å bestille flybillett', |
98 | | -'visa_assistance' => 'Visumsassistanse', |
| 98 | +'visa_assistance' => 'Visumsassistanse', |
99 | 99 | 'need_visa_assistance' => 'Ja, jeg trenger visumsassistanse', |
100 | 100 | 'visa_assistance_description' => ' Vennligst spesifiser hvordan organisasjonslaget kan hjelpe deg med visumproblemer. (på <strong>arabisk</strong> eller <strong>engelsk</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Vennligst se detaljer på <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>Wikimanias offisielle nettside</a> for presis plassering og spesifikasjoner for hvert valg før du registrerer.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Ønsket hotell.', |
108 | | -'hotels_metropol'=> 'Metropol Hotel ($60 per natt)', |
109 | | -'hotels_delta'=> 'Delta Hotel ($30 per natt)', |
| 108 | +'hotels_metropol' => 'Metropol Hotel ($60 per natt)', |
| 109 | +'hotels_delta' => 'Delta Hotel ($30 per natt)', |
110 | 110 | 'hotels_dorms' => 'Saint Marc Dorms ($10 per natt)', |
111 | 111 | |
112 | | -'accommodation' => 'Dag(er) du skal være', |
| 112 | +'accommodation' => 'Dag(er) du skal være', |
113 | 113 | 'night1' => '16. juli', |
114 | 114 | 'night2' => '17. juli', |
115 | 115 | 'night3' => '18. juli', |
116 | 116 | 'night4' => '19. juli', |
117 | 117 | 'night5' => '20. juli', |
118 | | -'room' => 'Ønsket rom', |
| 118 | +'room' => 'Ønsket rom', |
119 | 119 | 'room2' => 'dobbelt-', |
120 | 120 | 'room4' => 'firemanns-', |
121 | 121 | 'room6' => 'Bryr meg ikke', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Du kan belaste din PayPal-konto eller betale med kredittkort via PayPal 1 <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 land / regioner</a> (Egypt er ikke inkludert) eller via remisse og direkte betaling til bankkontoen til organisasjonslaget i Alexandria. Merk: PayPal-muligheten frafaller hvis du er egyptisk</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Betalingsmåte', |
| 128 | +'pay_method' => 'Betalingsmåte', |
129 | 129 | 'atm' => 'Bankkontobetaling', |
130 | 130 | 'receipt' => 'Kvittering', |
131 | | -'need_receipt' => 'Ja, jeg trenger papirkvittering.', |
132 | | -'receipt_title' => 'Tittel', |
133 | | -'receipt_address' => 'Postadresse', |
| 131 | +'need_receipt' => 'Ja, jeg trenger papirkvittering.', |
| 132 | +'receipt_title' => 'Tittel', |
| 133 | +'receipt_address' => 'Postadresse', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Du har fortsatt mulighet til å verifisere registreringen din etter at du har levert blanketten.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Registrering ferdig', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Takk for at du deltar på Wikimania 2008! Registreringsblanketten din har blitt sendt. Vennligst merk deg at du må fullføre betalingsprossessen for at registreringen kan bekreftes. |
172 | 172 | |
173 | 173 | <strong>Registreringsnummeret</strong> ditt vil vises nedenfor. Vennligst noter nummeret, for det vil bli brukt ved spørsmål angående registreringsstatus og for å bekrefte din indentitet fremover. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_pt.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'Não. (Por favor escreva seu número de passaporte e seu nome tal como figura no passaporte nos seguintes campos)', |
19 | 19 | 'surname' => 'Sobrenome', |
20 | 20 | 'given_name' => 'Nome', |
21 | | -'sex' => 'Gênero', |
| 21 | +'sex' => 'Gênero', |
22 | 22 | 'sex1' => 'Masculino', |
23 | 23 | 'sex2' => 'Feminino', |
24 | 24 | 'sex3' => 'Não declara', |
25 | | -'id' => 'Número de identificação / Número de Passaporte', |
26 | | -'country' => 'País / Região', |
27 | | -'city' => 'Estado / Cidade', |
| 25 | +'id' => 'Número de identificação / Número de Passaporte', |
| 26 | +'country' => 'País / Região', |
| 27 | +'city' => 'Estado / Cidade', |
28 | 28 | 'birthday' => 'Data de Nascimento (dd/mm/aaaa)', |
29 | 29 | 'organization' => 'Organização', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Habilidades lingüísticas</strong></p>', |
38 | | -'langn' => 'Língua nativa', |
39 | | -'lang' => 'Nível', |
| 38 | +'langn' => 'Língua nativa', |
| 39 | +'lang' => 'Nível', |
40 | 40 | 'select_lang' => 'Escolhe uma língua', |
41 | 41 | 'select_level' => 'Escolhe o nível', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Nível da língua 2', |
54 | 54 | 'lang3_level' => 'Nível da língua 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Projeto da Wikimedia e direções de correio eletrônico</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Teu correio eletrônico só será utilizado para a inscrição e para notificações urgentes sobre a Wikimania 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Nome da conta de seu projeto da Wikimedia preferido', |
63 | | -'email' => 'Teu correio eletrônico', |
| 61 | +', |
| 62 | +'wiki_id' => 'Nome da conta de seu projeto da Wikimedia preferido', |
| 63 | +'email' => 'Teu correio eletrônico', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Participação', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17 de julho', |
73 | 73 | 'join2' => '18 de julho', |
74 | 74 | 'join3' => '19 de julho', |
75 | | -'topic' => 'Área preferida', |
| 75 | +'topic' => 'Área preferida', |
76 | 76 | 'topic1' => 'Comunidades Wikimedia', |
77 | 77 | 'topic2' => 'Conteúdo livre', |
78 | 78 | 'topic3' => 'Infra-estrutura técnica', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Conta de Wikimedia', |
84 | 84 | 'showname3' => 'Organização', |
85 | 85 | 'showname4' => 'Outro', |
86 | | -'size' => 'Número da camiseta', |
| 86 | +'size' => 'Número da camiseta', |
87 | 87 | 'food' => 'Restrições na dieta', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Não como carne', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Kosher', |
93 | 93 | 'food5' => 'Outras', |
94 | 94 | 'food_other' => 'Restrições especificadas na dieta', |
95 | | -'allegric' => 'Alguma alergia', |
| 95 | +'allegric' => 'Alguma alergia', |
96 | 96 | 'transportation_assistance' => 'Auxílio com passagens de vôos', |
97 | 97 | 'need_transportation_assistance' => 'Sim, eu necessito de seu auxílio com minha reserva de vôo', |
98 | | -'visa_assistance' => 'Ajuda para obter a visa', |
| 98 | +'visa_assistance' => 'Ajuda para obter a visa', |
99 | 99 | 'need_visa_assistance' => 'Sim, preciso ajuda para obter a visa', |
100 | 100 | 'visa_assistance_description' => 'Por favor indica-nos como pode ajudar-te a equipe de organizadores a obter a visa. (em <strong>Árabe</strong> ou <strong>Inglês</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Por favor confira os detalhes no <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>site oficial de Wikimania</a> para conhecer a localização e especificações exatas de cada opção antes de registrar-se.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Hotel preferido.', |
108 | | -'hotels_metropol'=> 'Hotel Metropol ($60 por noite)', |
109 | | -'hotels_delta'=> 'Hotel Delta ($30 por noite)', |
| 108 | +'hotels_metropol' => 'Hotel Metropol ($60 por noite)', |
| 109 | +'hotels_delta' => 'Hotel Delta ($30 por noite)', |
110 | 110 | 'hotels_dorms' => 'Dormitórios en Saint Marc ($10 por noite)', |
111 | 111 | |
112 | | -'accommodation' => 'Datas de permanência', |
| 112 | +'accommodation' => 'Datas de permanência', |
113 | 113 | 'night1' => '16 de julho', |
114 | 114 | 'night2' => '17 de julho', |
115 | 115 | 'night3' => '18 de julho', |
116 | 116 | 'night4' => '19 de julho', |
117 | 117 | 'night5' => '20 de julho', |
118 | | -'room' => 'Preferência de habitação', |
| 118 | +'room' => 'Preferência de habitação', |
119 | 119 | 'room2' => 'Duplo', |
120 | 120 | 'room4' => 'Quádruplo', |
121 | 121 | 'room6' => 'Qualquer', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Podes utilizar tua conta Paypal ou pagar utilizando teu cartão de crédito através de PayPal em <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">103 países / regiões</a> (Não inclui Egito) ou por transferência e pagamento direto à conta bancária do equipe organizador em Alexandria. Nota: a opção de PayPal será descartada se você é egípcio</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Tipo de Pagamento', |
| 128 | +'pay_method' => 'Tipo de Pagamento', |
129 | 129 | 'atm' => 'Pago através de conta bancária', |
130 | 130 | 'receipt' => 'Recibo', |
131 | | -'need_receipt' => 'Sim, preciso recibo impresso.', |
132 | | -'receipt_title' => 'Título', |
133 | | -'receipt_address' => 'Direção postal', |
| 131 | +'need_receipt' => 'Sim, preciso recibo impresso.', |
| 132 | +'receipt_title' => 'Título', |
| 133 | +'receipt_address' => 'Direção postal', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Depois de enviar o formulário, terás a possibilidade de verificar sua inscrição.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Inscrição completa', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Obrigado por unir-se ao Wikimania 2008! Seu formulário de inscrição foi aceito. Por favor, tem em conta que precisas completar o processo de pagamento para que a inscrição possa ser confirmada. |
172 | 172 | |
173 | 173 | Teu <strong>número de inscrição</strong> será mostrado abaixo. Por favor, anote esse número já que será utilizado para conferir o estado de sua inscrição e para confirmar sua identidade no futuro. |
Index: trunk/wikimania/wmreg/includes/notinuse/language_cs.php |
— | — | @@ -17,25 +17,25 @@ |
18 | 18 | 'egy0' => 'Ne, nejsem. (Do následujících polí uveďte číslo cestovního pasu a jméno)', |
19 | 19 | 'surname' => 'Příjmení', |
20 | 20 | 'given_name' => 'Jméno', |
21 | | -'sex' => 'Pohlaví', |
| 21 | +'sex' => 'Pohlaví', |
22 | 22 | 'sex1' => 'Muž', |
23 | 23 | 'sex2' => 'Žena', |
24 | 24 | 'sex3' => 'Nechci uvést', |
25 | | -'id' => 'ID / Číslo pasu', |
26 | | -'country' => 'Země / Region', |
27 | | -'city' => 'Stát / Město', |
| 25 | +'id' => 'ID / Číslo pasu', |
| 26 | +'country' => 'Země / Region', |
| 27 | +'city' => 'Stát / Město', |
28 | 28 | 'birthday' => 'Datum narození (dd/mmm/yyyy)', |
29 | 29 | 'organization' => 'Organizace', |
30 | | -'year1' => '', |
31 | | -'year' => '', |
32 | | -'month' => '', |
33 | | -'months' => array(NULL, 'ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince'), |
34 | | -'day' => '', |
| 30 | +'year1' => '', |
| 31 | +'year' => '', |
| 32 | +'month' => '', |
| 33 | +'months' => array( NULL, 'ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince' ), |
| 34 | +'day' => '', |
35 | 35 | |
36 | 36 | 'title2' => |
37 | 37 | ' <p><strong>Jazykové schopnosti</strong></p>', |
38 | | -'langn' => 'Mateřský jazyk', |
39 | | -'lang' => 'Úroveň znalosti', |
| 38 | +'langn' => 'Mateřský jazyk', |
| 39 | +'lang' => 'Úroveň znalosti', |
40 | 40 | 'select_lang' => 'Vyberte jazyk', |
41 | 41 | 'select_level' => 'Vyberte úroveň znalosti', |
42 | 42 | |
— | — | @@ -52,14 +52,14 @@ |
53 | 53 | 'lang2_level' => 'Úroveň znalosti jazyka 2', |
54 | 54 | 'lang3_level' => 'Úroveň znalosti jazyka 3', |
55 | 55 | |
56 | | -'title3' => |
| 56 | +'title3' => |
57 | 57 | ' <p><strong>Projekt Wikimedia a e-mail účtu</strong></p> |
58 | 58 | <ul class="form_notice"> |
59 | 59 | <li>Informace o elektronické adrese budou použity pouze pro účely registrace a v případě neodkladných oznámení o Wikimanii 2008.</li> |
60 | 60 | </ul> |
61 | | -', |
62 | | -'wiki_id' => 'Přihlašovací jméno zvoleného účtu na projektu Wikimedia', |
63 | | -'email' => 'Váš e-mail', |
| 61 | +', |
| 62 | +'wiki_id' => 'Přihlašovací jméno zvoleného účtu na projektu Wikimedia', |
| 63 | +'email' => 'Váš e-mail', |
64 | 64 | |
65 | 65 | |
66 | 66 | 'legend2' => 'Účast', |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | 'join1' => '17. červenec', |
73 | 73 | 'join2' => '18. červenec', |
74 | 74 | 'join3' => '19. červenec', |
75 | | -'topic' => 'Zájmová témata', |
| 75 | +'topic' => 'Zájmová témata', |
76 | 76 | 'topic1' => 'Komunity Wikimedia', |
77 | 77 | 'topic2' => 'Svobodná tvorba', |
78 | 78 | 'topic3' => 'Technická infrastruktura', |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'showname2' => 'Účet Wikimedia', |
84 | 84 | 'showname3' => 'Organizace', |
85 | 85 | 'showname4' => 'Ostatní', |
86 | | -'size' => 'Velikost trička', |
| 86 | +'size' => 'Velikost trička', |
87 | 87 | 'food' => 'Stravovací požadavky', |
88 | 88 | 'food0' => '-', |
89 | 89 | 'food1' => 'Žádné hovězí', |
— | — | @@ -91,10 +91,10 @@ |
92 | 92 | 'food4' => 'Košer', |
93 | 93 | 'food5' => 'Jiné', |
94 | 94 | 'food_other' => 'Jiné stravovací požadavky', |
95 | | -'allegric' => 'Žádné alergie', |
| 95 | +'allegric' => 'Žádné alergie', |
96 | 96 | 'transportation_assistance' => 'Pomoc s rezervací letu', |
97 | 97 | 'need_transportation_assistance' => 'Ano, potřebuji pomoci s rezervací letu', |
98 | | -'visa_assistance' => 'Pomoc při získání víza', |
| 98 | +'visa_assistance' => 'Pomoc při získání víza', |
99 | 99 | 'need_visa_assistance' => 'Ano, potřebuji pomoc s vízem', |
100 | 100 | 'visa_assistance_description' => 'Uveďte, jak Vám může organizační tým pomoci se získáním víza. (v <strong>arabštině</strong> nebo <strong>angličtině</strong>)', |
101 | 101 | |
— | — | @@ -104,17 +104,17 @@ |
105 | 105 | Před vyplněním formuláře si prostudujte detaily jednotlivých variant na <a href=http://wikimania2008.wikimedia.org/wiki/Accommodation>oficiální stránce Wikimanie</a>.</p> |
106 | 106 | ', |
107 | 107 | 'accommodation_hotel' => 'Preferovaný hotel', |
108 | | -'hotels_metropol'=> 'Hotel Metropol ($60 za noc)', |
109 | | -'hotels_delta'=> 'Hotel Delta ($30 za noc)', |
| 108 | +'hotels_metropol' => 'Hotel Metropol ($60 za noc)', |
| 109 | +'hotels_delta' => 'Hotel Delta ($30 za noc)', |
110 | 110 | 'hotels_dorms' => 'Koleje Saint-Marc ($10 za noc)', |
111 | 111 | |
112 | | -'accommodation' => 'Dny ubytování', |
| 112 | +'accommodation' => 'Dny ubytování', |
113 | 113 | 'night1' => '16. červenec', |
114 | 114 | 'night2' => '17. červenec', |
115 | 115 | 'night3' => '18. červenec', |
116 | 116 | 'night4' => '19. červenec', |
117 | 117 | 'night5' => '20. červenec', |
118 | | -'room' => 'Preferovaný pokoj', |
| 118 | +'room' => 'Preferovaný pokoj', |
119 | 119 | 'room2' => '2-lůžkový', |
120 | 120 | 'room4' => '4-lůžkový', |
121 | 121 | 'room6' => 'Libovolný', |
— | — | @@ -124,12 +124,12 @@ |
125 | 125 | <p>Můžete využít svůj PayPal účet nebo kreditní kartu prostřednictvím PayPal účtu <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_display-approved-signup-countries-outside" title="PayPal Worldwide">ve 103 státech / regionech</a> (Egypt není obsažen) nebo bankovním převodem na účet organizačního týmu v Alexandrii. Pozor: Platbu prostřednictvím Paypal účtu nemohou využít egyptští občané.</p> |
126 | 126 | ', |
127 | 127 | |
128 | | -'pay_method' => 'Způsob platby', |
| 128 | +'pay_method' => 'Způsob platby', |
129 | 129 | 'atm' => 'Bankovní převod', |
130 | 130 | 'receipt' => 'Potvrzení', |
131 | | -'need_receipt' => 'Ano, potřebuji písemné potvrzení.', |
132 | | -'receipt_title' => 'Platební titul', |
133 | | -'receipt_address' => 'Poštovní adresa', |
| 131 | +'need_receipt' => 'Ano, potřebuji písemné potvrzení.', |
| 132 | +'receipt_title' => 'Platební titul', |
| 133 | +'receipt_address' => 'Poštovní adresa', |
134 | 134 | |
135 | 135 | 'submit_notice' => |
136 | 136 | '<li><strong>Po odeslání formuláře je možno ověřit stav registrace.</strong></li>', |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | |
168 | 168 | $lang_messages = array( |
169 | 169 | 'successful' => 'Registrace dokončena', |
170 | | -'successful_description' => |
| 170 | +'successful_description' => |
171 | 171 | '<p>Děkujeme Vám za účast na Wikimanii 2008! Vaše registrace byla odeslána. Po obdržení Vaší platby bude registrace potvrzena. |
172 | 172 | |
173 | 173 | <strong>Číslo Vaší registrace</strong> bude uvedeno níže. Toto číslo si poznamenejte, bude používáno ke kontrole stavu registrace a později k potvrzení Vaší identity. |
Index: trunk/wikimania/wmreg/includes/language_he.php |
— | — | @@ -11,24 +11,24 @@ |
12 | 12 | '<p><strong>פרטי זיהוי אישיים</strong></p>', |
13 | 13 | 'surname' => 'שם משפחה', |
14 | 14 | 'given_name' => 'שם פרטי', |
15 | | -'sex' => 'מין', |
| 15 | +'sex' => 'מין', |
16 | 16 | 'sex1' => 'זכר', |
17 | 17 | 'sex2' => 'נקבה', |
18 | 18 | 'sex3' => 'מעדיף לא לציין', |
19 | | -'passport' => 'מספר דרכון', |
| 19 | +'passport' => 'מספר דרכון', |
20 | 20 | 'passport_valid' => 'דרכון בתוקף עד (יום/חודש/שנה)', |
21 | 21 | 'passport_issued' => 'מקום הוצאת הדרכון', |
22 | | -'country' => 'ארץ מגורים', |
| 22 | +'country' => 'ארץ מגורים', |
23 | 23 | 'birthday' => 'תאריך לידה (יום/חודש/שנה/)', |
24 | | -'year1' => '', |
25 | | -'year' => '', |
26 | | -'month' => '', |
27 | | -'months' => array(NULL, 'ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'), |
28 | | -'day' => '', |
| 24 | +'year1' => '', |
| 25 | +'year' => '', |
| 26 | +'month' => '', |
| 27 | +'months' => array( NULL, 'ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר' ), |
| 28 | +'day' => '', |
29 | 29 | |
30 | 30 | 'title2' => '<p><strong>כישורי שפה</strong></p>', |
31 | | -'langn' => 'שפת אם', |
32 | | -'lang' => 'רמת השליטה', |
| 31 | +'langn' => 'שפת אם', |
| 32 | +'lang' => 'רמת השליטה', |
33 | 33 | 'select_lang' => 'בחירת השפה', |
34 | 34 | 'select_level' => 'בחירת רמת השליטה', |
35 | 35 | |
— | — | @@ -45,11 +45,11 @@ |
46 | 46 | 'lang2_level' => 'רמת שליטה לשפה 2', |
47 | 47 | 'lang3_level' => 'רמת שליטה לשפה 3', |
48 | 48 | |
49 | | -'title3' => |
| 49 | +'title3' => |
50 | 50 | '<p><strong>שם משתמש במיזמי ויקימדיה וכתובת דוא"ל</strong></p> |
51 | | -<p>המידע לגבי הדוא"ל ישמש אך ורק לצורכי הרישום ולהודעות דחופות בנוגע לוויקימניה 2011.</p>', |
52 | | -'wiki_id' => 'שם משתמש במיזם ויקימדיה ', |
53 | | -'email' => 'כתובת דוא"ל', |
| 51 | +<p>המידע לגבי הדוא"ל ישמש אך ורק לצורכי הרישום ולהודעות דחופות בנוגע לוויקימניה 2011.</p>', |
| 52 | +'wiki_id' => 'שם משתמש במיזם ויקימדיה ', |
| 53 | +'email' => 'כתובת דוא"ל', |
54 | 54 | |
55 | 55 | 'legend2' => 'השתתפות', |
56 | 56 | 'title4' => |
— | — | @@ -68,17 +68,17 @@ |
69 | 69 | 'showname1' => 'שם', |
70 | 70 | 'showname2' => 'שם משתמש בוויקימדיה', |
71 | 71 | 'showname3' => 'מידע נוסף:', |
72 | | -'size' => 'מידת החולצה', |
| 72 | +'size' => 'מידת החולצה', |
73 | 73 | 'food' => 'מגבלות תזונה<br><small>כל המזון שיוגש במהלך הכנס יהיה כשר</small>', |
74 | 74 | 'food0' => 'אין', |
75 | 75 | 'food1' => 'צמחוני', |
76 | 76 | 'food2' => 'בשר חלאל למוסלמים', |
77 | 77 | 'food_other' => 'מגבלת תזונה אחרת:', |
78 | 78 | |
79 | | -'title_visa' => |
| 79 | +'title_visa' => |
80 | 80 | '<p><strong>סיוע בהנפקת אשרת כניסה</strong></p> |
81 | | -<p>אם הינכם זקוקים לעזרה מהמארגנים בהנפקת אשרת כניסה לישראל, אנא מלאו את החלק הזה.', |
82 | | -'visa_assistance' => 'עזרה בהנפקת אשרת כניסה', |
| 81 | +<p>אם הינכם זקוקים לעזרה מהמארגנים בהנפקת אשרת כניסה לישראל, אנא מלאו את החלק הזה.', |
| 82 | +'visa_assistance' => 'עזרה בהנפקת אשרת כניסה', |
83 | 83 | 'need_visa_assistance' => 'כן, אני זקוק לעזרה מהמארגנים בהנפקת אשרת כניסה לישראל', |
84 | 84 | 'visa_assistance_description' => 'בקשות מיוחדות הנוגעות להנפקת אשרת כניסה', |
85 | 85 | 'title5' => |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | 'hotel5stars' => 'מלונות חמישה כוכבים', |
102 | 102 | 'hotelboutique' => 'מלונות בוטיק', |
103 | 103 | 'accommodation' => 'הלילות שבהם אזדקק לסידור לינה', |
104 | | -'night1' => 'יום שני, 1 באוגוסט 2011', |
| 104 | +'night1' => 'יום שני, 1 באוגוסט 2011', |
105 | 105 | 'night2' => 'יום שלישי, 2 באוגוסט 2011', |
106 | 106 | 'night3' => 'יום רביעי, 3 באוגוסט 2011', |
107 | 107 | 'night4' => 'יום חמישי, 4 באוגוסט 2011', |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | 'night6' => 'יום שבת, 6 באוגוסט 2011', |
110 | 110 | 'night7' => 'יום ראשון, 7 באוגוסט 2011', |
111 | 111 | 'night8' => 'יום שני, 8 באוגוסט 2011', |
112 | | -'room' => 'חדר מועדף', |
| 112 | +'room' => 'חדר מועדף', |
113 | 113 | 'room1' => 'חדר ליחיד', |
114 | 114 | 'room2' => 'חדר לשניים עם שותף מאותו המין שייבחר באקראי על ידי המארגנים', |
115 | 115 | 'room3' => 'חדר זוגי עם משתתף ספציפי (הכניסו את שמו המלא):', |
— | — | @@ -145,8 +145,8 @@ |
146 | 146 | 'color' => 'צבע חולצה', |
147 | 147 | 'white' => 'לבן', |
148 | 148 | 'black' => 'שחור', |
149 | | -'nationality' => 'הדרכון הונפק על ידי', |
150 | | -'countryofbirth' => 'ארץ לידה', |
| 149 | +'nationality' => 'הדרכון הונפק על ידי', |
| 150 | +'countryofbirth' => 'ארץ לידה', |
151 | 151 | 'homeaddress' => 'כתובת מגורים', |
152 | 152 | 'picktour' => 'יעד טיולים מועדף', |
153 | 153 | 'tour0' => 'אין העדפה', |
— | — | @@ -161,7 +161,7 @@ |
162 | 162 | |
163 | 163 | $lang_messages = array( |
164 | 164 | 'successful' => 'הרישום הושלם', |
165 | | -'successful_description' => |
| 165 | +'successful_description' => |
166 | 166 | '<p>תודה על ההצטרפות לוויקימניה 2011! טופס הרישום נשלח. יש להשלים את תהליך התשלום כדי שהרישום יאושר. |
167 | 167 | |
168 | 168 | <strong>מספר הרישום</strong> שלך מופיע להלן. נא לרשום את המספר לשם שימוש בו כדי לבדוק את מצב הרישום, וכדי להזדהות במערכת בעתיד. |
Index: trunk/wikimania/wmreg/includes/language_it.php |
— | — | @@ -11,26 +11,26 @@ |
12 | 12 | 'title1' => '<p><strong>Dati anagrafici</strong></p>', |
13 | 13 | 'surname' => 'Cognome', |
14 | 14 | 'given_name' => 'Nome', |
15 | | -'sex' => 'Sesso', |
| 15 | +'sex' => 'Sesso', |
16 | 16 | 'sex1' => 'Maschio', |
17 | 17 | 'sex2' => 'Femmina', |
18 | | -'sex3' => 'Non dichiarato', |
19 | | -'passport' => 'Passaporto numero', |
| 18 | +'sex3' => 'Non dichiarato', |
| 19 | +'passport' => 'Passaporto numero', |
20 | 20 | 'passport_valid' => 'Passaporto valido fino a (gg/mmm/aaaa)<br><small>Il tuo passaporto deve essere valido per 6 mesi.</small>', |
21 | 21 | 'passport_issued' => 'Luogo di rilascio del passaporto', |
22 | | -'country' => 'Stato di residenza', |
| 22 | +'country' => 'Stato di residenza', |
23 | 23 | 'birthday' => 'Data di nascita (gg/mmm/aaaa)', |
24 | 24 | 'organization' => 'Organizzazione', |
25 | | -'year1' => '', |
26 | | -'year' => '', |
27 | | -'month' => '', |
28 | | -'months' => array(NULL, 'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'), |
29 | | -'day' => '', |
| 25 | +'year1' => '', |
| 26 | +'year' => '', |
| 27 | +'month' => '', |
| 28 | +'months' => array( NULL, 'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre' ), |
| 29 | +'day' => '', |
30 | 30 | |
31 | 31 | 'title2' => |
32 | 32 | ' <p><strong>Lingue conosciute</strong></p>', |
33 | | -'langn' => 'Lingua madre', |
34 | | -'lang' => 'Livello di conoscenza', |
| 33 | +'langn' => 'Lingua madre', |
| 34 | +'lang' => 'Livello di conoscenza', |
35 | 35 | 'select_lang' => 'Seleziona la lingua', |
36 | 36 | 'select_level' => 'Seleziona il livello di conoscenza', |
37 | 37 | |
— | — | @@ -47,12 +47,12 @@ |
48 | 48 | 'lang2_level' => 'Livello di conoscenza della lingua 2', |
49 | 49 | 'lang3_level' => 'Livello di conoscenza della lingua 3', |
50 | 50 | |
51 | | -'title3' => |
| 51 | +'title3' => |
52 | 52 | '<p><strong>Progetto Wikimedia e indirizzo e-mail</strong></p> |
53 | 53 | <p>Le informazioni relative alla tua e-mail saranno usate unicamente per la registrazione e per comunicazioni urgenti relative a Wikimania 2011.</p> |
54 | | -', |
55 | | -'wiki_id' => 'Nome utente del progetto Wikimedia principale', |
56 | | -'email' => 'La tua e-mail', |
| 54 | +', |
| 55 | +'wiki_id' => 'Nome utente del progetto Wikimedia principale', |
| 56 | +'email' => 'La tua e-mail', |
57 | 57 | |
58 | 58 | |
59 | 59 | 'legend2' => 'Partecipazione', |
— | — | @@ -71,16 +71,16 @@ |
72 | 72 | 'showname1' => 'Nome', |
73 | 73 | 'showname2' => 'Nome utente', |
74 | 74 | 'showname3' => 'Altre informazioni:', |
75 | | -'size' => 'Taglia della maglietta', |
| 75 | +'size' => 'Taglia della maglietta', |
76 | 76 | 'food' => 'Preferenze o problemi alimentari', |
77 | 77 | 'food0' => 'Nessuna', |
78 | 78 | 'food1' => 'Vegetariano', |
79 | 79 | 'food2' => 'Halal', |
80 | 80 | 'food_other' => 'Altro:', |
81 | 81 | |
82 | | -'title_visa' => |
| 82 | +'title_visa' => |
83 | 83 | '<p><strong>Assistenza per il visto</strong></p> |
84 | | -<p>Se il tuo passaporto è rilasciato da <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>uno Stato per cui è richiesto un visto d\'ingresso in Israele</a>, compila questa sezione perché l\'organizzazione possa trasmettere i tuoi dati al Ministero degli esteri israeliano.', |
| 84 | +<p>Se il tuo passaporto è rilasciato da <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>uno Stato per cui è richiesto un visto d\'ingresso in Israele</a>, compila questa sezione perché l\'organizzazione possa trasmettere i tuoi dati al Ministero degli esteri israeliano.', |
85 | 85 | 'need_visa_assistance' => 'Sì, mi serve un visto d\'ingresso per Israele', |
86 | 86 | 'visa_assistance' => 'Assistenza per il visto', |
87 | 87 | 'visa_assistance_description' => 'Qualsiasi richiesta particolare di assistenza per il visto (in <strong>inglese</strong>)', |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | 'hotel5stars' => 'Alberghi a cinque stelle', |
106 | 106 | 'hotelboutique' => 'Alberghi eleganti', |
107 | 107 | |
108 | | -'accommodation' => 'Notti per cui è necessario l\'alloggio', |
| 108 | +'accommodation' => 'Notti per cui è necessario l\'alloggio', |
109 | 109 | 'night1' => 'Lunedì 1º agosto 2011', |
110 | 110 | 'night2' => 'Martedì 2 agosto 2011', |
111 | 111 | 'night3' => 'Mercoledì 3 agosto 2011', |
— | — | @@ -113,7 +113,7 @@ |
114 | 114 | 'night6' => 'Sabato 6 agosto 2011', |
115 | 115 | 'night7' => 'Domenica 7 agosto 2011', |
116 | 116 | 'night8' => 'Lunedì 8 agosto 2011', |
117 | | -'room' => 'Stanza preferita', |
| 117 | +'room' => 'Stanza preferita', |
118 | 118 | 'room1' => 'Singola', |
119 | 119 | 'room2' => 'Matrimoniale/doppia con compagno/a di stanza dello stesso sesso scelto/a a caso dall\'organizzazione', |
120 | 120 | 'room3' => 'Matrimoniale/doppia con compagno/a di stanza specificato/a (inserire nome completo):', |
— | — | @@ -151,8 +151,8 @@ |
152 | 152 | 'color' => 'Colore della maglietta', |
153 | 153 | 'white' => 'Bianca', |
154 | 154 | 'black' => 'Nera', |
155 | | -'nationality' => 'Passaporto rilasciato da', |
156 | | -'countryofbirth' => 'Stato di nascita', |
| 155 | +'nationality' => 'Passaporto rilasciato da', |
| 156 | +'countryofbirth' => 'Stato di nascita', |
157 | 157 | 'homeaddress' => 'Indirizzo di residenza', |
158 | 158 | 'picktour' => 'Destinazione turistica preferita', |
159 | 159 | 'tour0' => 'Nessuna', |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | |
169 | 169 | $lang_messages = array( |
170 | 170 | 'successful' => 'Registrazione completata', |
171 | | -'successful_description' => |
| 171 | +'successful_description' => |
172 | 172 | '<p>Grazie per la tua partecipazione a Wikimania 2011! La tua registrazione è stata inviata. Per favore, nota che hai bisogno di completare il processo di pagamento affinché la registrazione possa essere confermata. |
173 | 173 | |
174 | 174 | Il tuo <strong>numero di registrazione</strong> sarà mostrato in basso. Prendi nota del numero dato, che sarà usato per controllare lo stato della tua registrazione e per confermare la tua identità in futuro. |
Index: trunk/wikimania/wmreg/includes/UserSession.php |
— | — | @@ -2,14 +2,14 @@ |
3 | 3 | /* ToyCastle project */ |
4 | 4 | |
5 | 5 | /* Rrevent hacking */ |
6 | | -if(!defined('TC_STARTED')) |
7 | | -{ die('Hacking Attempt'); } |
| 6 | +if ( !defined( 'TC_STARTED' ) ) |
| 7 | +{ die( 'Hacking Attempt' ); } |
8 | 8 | |
9 | | -define('TC_TABLE_MEMBER','admins'); |
10 | | -define('TC_COOKIE_SESSION_NAME', 'wikimania'); |
| 9 | +define( 'TC_TABLE_MEMBER', 'admins' ); |
| 10 | +define( 'TC_COOKIE_SESSION_NAME', 'wikimania' ); |
11 | 11 | |
12 | 12 | /* Class UserSession start */ |
13 | | -Class UserSession |
| 13 | +Class UserSession |
14 | 14 | { |
15 | 15 | |
16 | 16 | var $handle; /* Session ID */ |
— | — | @@ -18,47 +18,47 @@ |
19 | 19 | { |
20 | 20 | $this->handle = ''; |
21 | 21 | } |
22 | | - |
23 | | - function Start($custom_session_id = '') |
| 22 | + |
| 23 | + function Start( $custom_session_id = '' ) |
24 | 24 | { |
25 | 25 | global $sql, $_COOKIE ; |
26 | 26 | |
27 | 27 | /* Check SQL */ |
28 | | - if (!$sql->handle) |
| 28 | + if ( !$sql->handle ) |
29 | 29 | { return false; } |
30 | 30 | |
31 | 31 | /* If there is no Session, create it */ |
32 | | - if(!$_COOKIE[TC_COOKIE_SESSION_NAME] && ! $custom_session_id) |
| 32 | + if ( !$_COOKIE[TC_COOKIE_SESSION_NAME] && ! $custom_session_id ) |
33 | 33 | { return $this->Create(); } |
34 | | - |
| 34 | + |
35 | 35 | /* Cookie Session ID as 2nd order */ |
36 | | - if (!$custom_session_id) |
| 36 | + if ( !$custom_session_id ) |
37 | 37 | { $custom_session_id = $_COOKIE[TC_COOKIE_SESSION_NAME]; } |
38 | | - |
| 38 | + |
39 | 39 | /* First, check for vaild Session ID */ |
40 | | - if(preg_match('/[^0-9A-Z]/i', $custom_session_id)) return false; |
41 | | - if(!preg_match('/^[0-9A-Z]{32}$/is', $custom_session_id)) return false; |
42 | | - |
| 40 | + if ( preg_match( '/[^0-9A-Z]/i', $custom_session_id ) ) return false; |
| 41 | + if ( !preg_match( '/^[0-9A-Z]{32}$/is', $custom_session_id ) ) return false; |
| 42 | + |
43 | 43 | /* Then, start Session */ |
44 | | - session_name(TC_COOKIE_SESSION_NAME); |
45 | | - session_id($custom_session_id); |
| 44 | + session_name( TC_COOKIE_SESSION_NAME ); |
| 45 | + session_id( $custom_session_id ); |
46 | 46 | session_start(); |
47 | 47 | |
48 | 48 | $this->handle = $custom_session_id; |
49 | 49 | |
50 | 50 | /* If a logged-in user */ |
51 | | - if (array_key_exists('logged_in', $_SESSION)) |
| 51 | + if ( array_key_exists( 'logged_in', $_SESSION ) ) |
52 | 52 | { |
53 | 53 | /* Check for vaild ID */ |
54 | | - if(preg_match('/[^0-9A-Z\_\-]/i',$_SESSION[user_id])) { |
| 54 | + if ( preg_match( '/[^0-9A-Z\_\-]/i', $_SESSION[user_id] ) ) { |
55 | 55 | $this->Destroy(); |
56 | 56 | return false; |
57 | 57 | } |
58 | | - |
| 58 | + |
59 | 59 | /* Check for vaild login data */ |
60 | | - $result = $sql->selectData(TC_TABLE_MEMBER, array(), '`user_id`=\''.$_SESSION[user_id].'\' and `password`=\''.$sql->EscapeString($_SESSION[user_password]).'\''); |
61 | | - $login_data = $sql->fetchArray($result); |
62 | | - if(!$result || !$login_data) |
| 60 | + $result = $sql->selectData( TC_TABLE_MEMBER, array(), '`user_id`=\'' . $_SESSION[user_id] . '\' and `password`=\'' . $sql->EscapeString( $_SESSION[user_password] ) . '\'' ); |
| 61 | + $login_data = $sql->fetchArray( $result ); |
| 62 | + if ( !$result || !$login_data ) |
63 | 63 | { |
64 | 64 | $this->Destroy(); |
65 | 65 | return false; |
— | — | @@ -68,17 +68,17 @@ |
69 | 69 | } |
70 | 70 | else |
71 | 71 | { |
72 | | - unset($_SESSION['user_id']); |
73 | | - unset($_SESSION['user_password']); |
| 72 | + unset( $_SESSION['user_id'] ); |
| 73 | + unset( $_SESSION['user_password'] ); |
74 | 74 | return true; |
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
78 | 78 | function Create() |
79 | 79 | { |
80 | | - $new_sessionid = md5(uniqid(mt_rand(),true)); |
81 | | - session_name(TC_COOKIE_SESSION_NAME); |
82 | | - session_id($new_sessionid); |
| 80 | + $new_sessionid = md5( uniqid( mt_rand(), true ) ); |
| 81 | + session_name( TC_COOKIE_SESSION_NAME ); |
| 82 | + session_id( $new_sessionid ); |
83 | 83 | session_start(); |
84 | 84 | $this->handle = $new_sessionid; |
85 | 85 | return true; |
— | — | @@ -87,9 +87,9 @@ |
88 | 88 | function Destroy() |
89 | 89 | { |
90 | 90 | |
91 | | - if (isset($_COOKIE[TC_COOKIE_SESSION_NAME])) |
| 91 | + if ( isset( $_COOKIE[TC_COOKIE_SESSION_NAME] ) ) |
92 | 92 | { |
93 | | - setcookie(TC_COOKIE_SESSION_NAME, '', time()-42000, '/'); |
| 93 | + setcookie( TC_COOKIE_SESSION_NAME, '', time() -42000, '/' ); |
94 | 94 | } |
95 | 95 | |
96 | 96 | session_destroy(); |
Index: trunk/wikimania/wmreg/includes/mail.php |
— | — | @@ -1,11 +1,11 @@ |
2 | 2 | <?php |
3 | | -function mail_msg($to, $subject, $body) |
| 3 | +function mail_msg( $to, $subject, $body ) |
4 | 4 | { |
5 | 5 | require_once "Mail.php"; |
6 | 6 | |
7 | 7 | // this is partly over-ridden by Gmail SMTP |
8 | 8 | $from = "Wikimania 2011 Registration <wikimania-registration@wikimedia.org>"; |
9 | | - $headers = array ('From' => $from, |
| 9 | + $headers = array ( 'From' => $from, |
10 | 10 | 'To' => $to, |
11 | 11 | 'Subject' => $subject, |
12 | 12 | 'MIME-Version' => '1.0', |
— | — | @@ -13,11 +13,11 @@ |
14 | 14 | 'Reply-To' => 'wikimania-registration@wikimedia.org', |
15 | 15 | 'X-Mailer' => 'PHP/' . phpversion() |
16 | 16 | ); |
17 | | - $smtp = Mail::factory('mail'); |
18 | | - $mail = $smtp->send($to, $headers, $body); |
| 17 | + $smtp = Mail::factory( 'mail' ); |
| 18 | + $mail = $smtp->send( $to, $headers, $body ); |
19 | 19 | |
20 | | - if (PEAR::isError($mail)) { |
21 | | - echo("<p>" . $mail->getMessage() . "</p>"); |
| 20 | + if ( PEAR::isError( $mail ) ) { |
| 21 | + echo( "<p>" . $mail->getMessage() . "</p>" ); |
22 | 22 | return false; |
23 | 23 | } else { |
24 | 24 | return true; |
Index: trunk/wikimania/wmreg/includes/language_ar.php |
— | — | @@ -11,24 +11,24 @@ |
12 | 12 | '<p><strong>بيانات التحقق من الشخصية</strong></p>', |
13 | 13 | 'surname' => 'اسم العائلة (اللقب)', |
14 | 14 | 'given_name' => 'الاسم الشخصي', |
15 | | -'sex' => 'النوع', |
| 15 | +'sex' => 'النوع', |
16 | 16 | 'sex1' => 'ذكر', |
17 | 17 | 'sex2' => 'أنثى', |
18 | 18 | 'sex3' => 'أفضّل عدم الإفصاح', |
19 | | -'passport' => 'رقم جواز السفر', |
| 19 | +'passport' => 'رقم جواز السفر', |
20 | 20 | 'passport_valid' => 'تاريخ انتهاء صلاحية جواز السفر (يوم/شهر/سنة)', |
21 | 21 | 'passport_issued' => 'مكان إصدار جواز السفر', |
22 | | -'country' => 'دولة الإقامة', |
| 22 | +'country' => 'دولة الإقامة', |
23 | 23 | 'birthday' => 'تاريخ الميلاد (يوم/شهر/سنة)', |
24 | | -'year1' => '', |
25 | | -'year' => '', |
26 | | -'month' => '', |
27 | | -'months' => array(NULL, 'كانون الثاني (يناير)', 'شباط (فبراير)', 'أذار (مارس)', 'نيسان (أبريل)', 'أيار (مايو)', 'حزيران (يونيو)', 'تموز (يوليو)', 'آب (أغسطس)', 'أيلول (سبتمبر)', 'تشرين الأول (أكتوبر)', 'تشرين الثاني (نوفمبر)', 'كانون الأول (ديسمبر)'), |
28 | | -'day' => '', |
| 24 | +'year1' => '', |
| 25 | +'year' => '', |
| 26 | +'month' => '', |
| 27 | +'months' => array( NULL, 'كانون الثاني (يناير)', 'شباط (فبراير)', 'أذار (مارس)', 'نيسان (أبريل)', 'أيار (مايو)', 'حزيران (يونيو)', 'تموز (يوليو)', 'آب (أغسطس)', 'أيلول (سبتمبر)', 'تشرين الأول (أكتوبر)', 'تشرين الثاني (نوفمبر)', 'كانون الأول (ديسمبر)' ), |
| 28 | +'day' => '', |
29 | 29 | |
30 | 30 | 'title2' => '<p><strong>إتقان اللغات</strong></p>', |
31 | | -'langn' => 'اللغة الأم', |
32 | | -'lang' => 'المستوى', |
| 31 | +'langn' => 'اللغة الأم', |
| 32 | +'lang' => 'المستوى', |
33 | 33 | 'select_lang' => 'اختيار اللغة', |
34 | 34 | 'select_level' => 'اختيار المستوى', |
35 | 35 | |
— | — | @@ -45,11 +45,11 @@ |
46 | 46 | 'lang2_level' => 'المستوى فى اللغة الثانية', |
47 | 47 | 'lang3_level' => 'المستوى فى اللغة الثالثة', |
48 | 48 | |
49 | | -'title3' => |
| 49 | +'title3' => |
50 | 50 | '<p><strong>اسم الحساب في مشاريع ويكيميديا وعنوان البريد الإلكتروني</strong></p> |
51 | | -<p>لن يتم استخدام معلومات بريدك الإلكتروني إلا من أجل التسجيل والتنبيهات العاجلة الخاصة بويكيمانيا 2011.</p>', |
52 | | -'wiki_id' => 'اسم الحساب في أحد مشاريع ويكيميديا', |
53 | | -'email' => 'عنوان البريد الإلكتروني', |
| 51 | +<p>لن يتم استخدام معلومات بريدك الإلكتروني إلا من أجل التسجيل والتنبيهات العاجلة الخاصة بويكيمانيا 2011.</p>', |
| 52 | +'wiki_id' => 'اسم الحساب في أحد مشاريع ويكيميديا', |
| 53 | +'email' => 'عنوان البريد الإلكتروني', |
54 | 54 | |
55 | 55 | 'legend2' => 'المشاركة', |
56 | 56 | 'title4' => |
— | — | @@ -68,17 +68,17 @@ |
69 | 69 | 'showname1' => 'الاسم', |
70 | 70 | 'showname2' => 'اسم الحساب في مشاريع ويكيميديا', |
71 | 71 | 'showname3' => 'معلومات إضافية : ', |
72 | | -'size' => 'مقاس القميص (التي شيرت)', |
| 72 | +'size' => 'مقاس القميص (التي شيرت)', |
73 | 73 | 'food' => 'تقييدات غذائية محددة<br><small>سيكون الطعام المقدم لحاضري المؤتمر "كاشير"، أي مطابق لتعاليم الديانة اليهودية.</small>', |
74 | 74 | 'food0' => 'لا توجد', |
75 | 75 | 'food1' => 'نباتي', |
76 | 76 | 'food2' => 'حلال', |
77 | 77 | 'food_other' => 'تقييدات غذائية أخرى : ', |
78 | 78 | |
79 | | -'title_visa' => |
| 79 | +'title_visa' => |
80 | 80 | '<p><strong>المساعدة في الحصول على التأشيرة</strong></p> |
81 | | -<p>إذا صدر جواز السفر خاصتك عن <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>دولة يجب على مواطنيها الحصول على تأشيرة دخول إلى إسرائيل</a>، يرجى منك تعبئة الجزء التالي من الاستمارة لكي يتمكن منظمو المؤتمر من تحويل تفاصيلك إلى وزارة الخارجية الإسرائيلية.', |
82 | | -'visa_assistance' => 'المساعدة في الحصول على التأشيرة', |
| 81 | +<p>إذا صدر جواز السفر خاصتك عن <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>دولة يجب على مواطنيها الحصول على تأشيرة دخول إلى إسرائيل</a>، يرجى منك تعبئة الجزء التالي من الاستمارة لكي يتمكن منظمو المؤتمر من تحويل تفاصيلك إلى وزارة الخارجية الإسرائيلية.', |
| 82 | +'visa_assistance' => 'المساعدة في الحصول على التأشيرة', |
83 | 83 | 'need_visa_assistance' => 'نعم، أنا بحاجة إلى مساعدة منظمي المؤتمر في ما يتعلق بالحصول على تأشيرة دخول لإسرائيل.', |
84 | 84 | 'visa_assistance_description' => 'طلبات خاصة متعلقة بالحصول على تأشيرة دخول', |
85 | 85 | 'title5' => |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | 'hotel5stars' => 'فنادق الخمس نجمات', |
102 | 102 | 'hotelboutique' => 'فنادق بوتيك', |
103 | 103 | 'accommodation' => 'الليالي التي أحتاج فيها إلى الإقامة في فندق', |
104 | | -'night1' => 'الاثنان، 1 آب (أغسطس) 2011', |
| 104 | +'night1' => 'الاثنان، 1 آب (أغسطس) 2011', |
105 | 105 | 'night2' => 'الثلاثاء، 2 آب (أغسطس) 2011', |
106 | 106 | 'night3' => 'الأربعاء، 3 آب (أغسطس) 2011', |
107 | 107 | 'night4' => 'الخميس، 4 آب (أغسطس) 2011', |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | 'night6' => 'السبت، 6 آب (أغسطس) 2011', |
110 | 110 | 'night7' => 'الأحد، 7 آب (أغسطس) 2011', |
111 | 111 | 'night8' => 'الاثنان، آب (أغسطس) 2011', |
112 | | -'room' => 'نوع الغرفة المفضل', |
| 112 | +'room' => 'نوع الغرفة المفضل', |
113 | 113 | 'room1' => 'غرفة فردية', |
114 | 114 | 'room2' => 'غرفة مزدوجة مشاركة مع زميل من نفس الجنس يتم اختياره من قبل منظمي المؤتمر عشوائيا', |
115 | 115 | 'room3' => 'غرفة مزدوجة مشاركة مع شخص معين (يرجى ذكر اسمه الكامل):', |
— | — | @@ -144,8 +144,8 @@ |
145 | 145 | 'color' => 'لون القميص ', |
146 | 146 | 'white' => 'أبيض', |
147 | 147 | 'black' => 'أسود', |
148 | | -'nationality' => 'جهة إصدار جواز السفر ', |
149 | | -'countryofbirth' => 'دولة الميلاد ', |
| 148 | +'nationality' => 'جهة إصدار جواز السفر ', |
| 149 | +'countryofbirth' => 'دولة الميلاد ', |
150 | 150 | 'homeaddress' => 'العنوان الحالي ', |
151 | 151 | 'picktour' => 'وجهة الرحلة السياحية المفضلة ', |
152 | 152 | 'tour0' => 'لا يهمني', |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | |
162 | 162 | $lang_messages = array( |
163 | 163 | 'successful' => 'اكتمل التسجيل', |
164 | | -'successful_description' => |
| 164 | +'successful_description' => |
165 | 165 | '<p>نشكرك على الانضمام لويكيمانيا 2011 ! تم إرسال استمارة التسجيل خاصتك. يرجى الانتباه إلى ضرورة إكمال خطوات الدفع حتى يتم تأكيد تسجيلك. |
166 | 166 | |
167 | 167 | يظهر <strong>رقم التسجيل</strong> خاصتك بالأسفل. يرجى القيام بتدوينه من أجل الاستعلام عن حالة التسجيل ولتأكيد الهوية لاحقا. |
Index: trunk/wikimania/wmreg/includes/language_en.php |
— | — | @@ -12,24 +12,24 @@ |
13 | 13 | '<p><strong>Personal identification data</strong></p>', |
14 | 14 | 'surname' => 'Last name', |
15 | 15 | 'given_name' => 'First name', |
16 | | -'sex' => 'Gender', |
| 16 | +'sex' => 'Gender', |
17 | 17 | 'sex1' => 'Male', |
18 | 18 | 'sex2' => 'Female', |
19 | 19 | 'sex3' => 'Decline to state', |
20 | | -'passport' => 'Passport number', |
| 20 | +'passport' => 'Passport number', |
21 | 21 | 'passport_valid' => 'Passport valid until (dd/mmm/yyyy)<br><small>Your passport has to be valid for 6 months</small>', |
22 | 22 | 'passport_issued' => 'Place where passport was issued', |
23 | | -'country' => 'Country of residence', |
| 23 | +'country' => 'Country of residence', |
24 | 24 | 'birthday' => 'Date of Birth (dd/mmm/yyyy)', |
25 | | -'year1' => '', |
26 | | -'year' => '', |
27 | | -'month' => '', |
28 | | -'months' => array(NULL, 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'), |
29 | | -'day' => '', |
| 25 | +'year1' => '', |
| 26 | +'year' => '', |
| 27 | +'month' => '', |
| 28 | +'months' => array( NULL, 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ), |
| 29 | +'day' => '', |
30 | 30 | 'title2' => |
31 | 31 | ' <p><strong>Linguistic abilities</strong></p>', |
32 | | -'langn' => 'Mother language', |
33 | | -'lang' => 'Additional languages', |
| 32 | +'langn' => 'Mother language', |
| 33 | +'lang' => 'Additional languages', |
34 | 34 | 'select_lang' => 'Select the language', |
35 | 35 | 'select_level' => 'Select the skill level', |
36 | 36 | |
— | — | @@ -46,13 +46,13 @@ |
47 | 47 | 'lang2_level' => 'Skill level for Language 2', |
48 | 48 | 'lang3_level' => 'Skill level for Language 3', |
49 | 49 | |
50 | | -'title3' => |
| 50 | +'title3' => |
51 | 51 | '<p><strong>Wikimedia project and e-mail account</strong></p> |
52 | 52 | <p>Your e-mail information will be used for registration and urgent notification on Wikimania 2011 only. |
53 | 53 | </p> |
54 | | -', |
55 | | -'wiki_id' => 'Wikimedia project username', |
56 | | -'email' => 'Your e-mail', |
| 54 | +', |
| 55 | +'wiki_id' => 'Wikimedia project username', |
| 56 | +'email' => 'Your e-mail', |
57 | 57 | |
58 | 58 | 'legend2' => 'Participation', |
59 | 59 | 'title4' => |
— | — | @@ -70,23 +70,23 @@ |
71 | 71 | 'showname1' => 'Name', |
72 | 72 | 'showname2' => 'Wikimedia account', |
73 | 73 | 'showname3' => 'Additional information:', |
74 | | -'size' => 'T-shirt size', |
| 74 | +'size' => 'T-shirt size', |
75 | 75 | 'food' => 'Dietary restriction<br><small>All food served during the conference will be kosher.</small>', |
76 | 76 | 'food0' => 'None', |
77 | 77 | 'food1' => 'Vegetarian', |
78 | 78 | 'food2' => 'Halal', |
79 | 79 | 'food_other' => 'Other:', |
80 | | - |
81 | | -'title_visa' => |
| 80 | + |
| 81 | +'title_visa' => |
82 | 82 | '<p><strong>Visa assistance</strong></p> |
83 | | -<p>If your passport is issued by <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>a country for which an entry visa to Israel is required</a>, please fill out this section so that the organizers can pass your details to the Israeli Ministry of Foreign Affairs.', |
| 83 | +<p>If your passport is issued by <a href=http://wikimania2011.wikimedia.org/wiki/Visas#Visa_required>a country for which an entry visa to Israel is required</a>, please fill out this section so that the organizers can pass your details to the Israeli Ministry of Foreign Affairs.', |
84 | 84 | 'need_visa_assistance' => 'Yes, I require an entry visa for Israel', |
85 | 85 | 'visa_assistance' => 'Visa assistance', |
86 | 86 | 'visa_assistance_description' => 'Any special request related to visa assistance (in <strong>English</strong>)', |
87 | 87 | |
88 | 88 | 'title5' => |
89 | 89 | '<p><strong>Accommodation</strong></p> |
90 | | -<p>You can stay in a hotel or in the dormitories. |
| 90 | +<p>You can stay in a hotel or in the dormitories. |
91 | 91 | Please refer to the <a href=http://wikimania2011.wikimedia.org/wiki/Accommodation>accommodation page</a> for exact <b>prices</b>, locations and other details.</p>', |
92 | 92 | 'accommodation_hotel' => 'Preferred accommodation<br><b><small>(<a href=http://wikimania2011.wikimedia.org/wiki/Accommodation onClick="return popup(this, \'prices\')">Prices</a>)</small></b>', |
93 | 93 | 'hotel1' => 'Dorm room', |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | 'hotel5stars' => 'Five star hotels', |
105 | 105 | 'hotelboutique' => 'Boutique hotels', |
106 | 106 | |
107 | | -'accommodation' => 'Nights for which accommodation is needed', |
| 107 | +'accommodation' => 'Nights for which accommodation is needed', |
108 | 108 | 'night1' => 'Monday, August 1st, 2011', |
109 | 109 | 'night2' => 'Tuesday, August 2nd, 2011', |
110 | 110 | 'night3' => 'Wednesday, August 3rd, 2011', |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | 'night6' => 'Saturday, August 6th, 2011', |
114 | 114 | 'night7' => 'Sunday, August 7th, 2011', |
115 | 115 | 'night8' => 'Monday, August 8th, 2011', |
116 | | -'room' => 'Preferred room', |
| 116 | +'room' => 'Preferred room', |
117 | 117 | 'room1' => 'Single occupancy', |
118 | 118 | 'room2' => 'Twin/double occupancy with same-gender partner randomly selected by organizers', |
119 | 119 | 'room3' => 'Double occupancy with specified partner (enter full name):', |
— | — | @@ -148,8 +148,8 @@ |
149 | 149 | 'color' => 'T-shirt Color', |
150 | 150 | 'white' => 'White', |
151 | 151 | 'black' => 'Black', |
152 | | -'nationality' => 'Passport issued by', |
153 | | -'countryofbirth' => 'Country of birth', |
| 152 | +'nationality' => 'Passport issued by', |
| 153 | +'countryofbirth' => 'Country of birth', |
154 | 154 | 'homeaddress' => 'Home address', |
155 | 155 | 'picktour' => 'Preferred tour destination', |
156 | 156 | 'tour0' => 'No tour preference', |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | |
167 | 167 | $lang_messages = array( |
168 | 168 | 'successful' => 'Registration complete', |
169 | | -'successful_description' => |
| 169 | +'successful_description' => |
170 | 170 | '<p>Thank you for joining Wikimania 2011! Your registration form has been submitted. Please note that you need to complete the payment process so the registration can be confirmed. |
171 | 171 | |
172 | 172 | Your <strong>registration number</strong> will be shown below. Please take a note of the number for it will be used for querying the registration status and to confirm your identity in the future. |
Index: trunk/wikimania/wmreg/includes/prices.php |
— | — | @@ -2,79 +2,79 @@ |
3 | 3 | |
4 | 4 | $attendance_costs = array( |
5 | 5 | 'wikimedia_contributor' => array( |
6 | | - 'very_early_bird' => array('day' => 20, 'all' => 45), |
7 | | - 'early_bird' => array('day' => 25, 'all' => 55), |
8 | | - 'regular' => array('day' => 35, 'all' => 75) |
| 6 | + 'very_early_bird' => array( 'day' => 20, 'all' => 45 ), |
| 7 | + 'early_bird' => array( 'day' => 25, 'all' => 55 ), |
| 8 | + 'regular' => array( 'day' => 35, 'all' => 75 ) |
9 | 9 | ), |
10 | 10 | 'regular_attendee' => array( |
11 | | - 'very_early_bird' => array('day' => 30, 'all' => 70), |
12 | | - 'early_bird' => array('day' => 40, 'all' => 90), |
13 | | - 'regular' => array('day' => 50, 'all' => 120) |
| 11 | + 'very_early_bird' => array( 'day' => 30, 'all' => 70 ), |
| 12 | + 'early_bird' => array( 'day' => 40, 'all' => 90 ), |
| 13 | + 'regular' => array( 'day' => 50, 'all' => 120 ) |
14 | 14 | ) |
15 | 15 | ); |
16 | 16 | |
17 | 17 | $accommodation_costs = array( |
18 | 18 | |
19 | 19 | 'hotel1' => array(// Dorm room |
20 | | - 'very_early_bird' => array('1' => 20, '2' => 20), |
21 | | - 'early_bird' => array('1' => 25, '2' => 25), |
22 | | - 'regular' => array('1' => 30, '2' => 30) |
| 20 | + 'very_early_bird' => array( '1' => 20, '2' => 20 ), |
| 21 | + 'early_bird' => array( '1' => 25, '2' => 25 ), |
| 22 | + 'regular' => array( '1' => 30, '2' => 30 ) |
23 | 23 | ), |
24 | 24 | 'hotel2' => array(// Ganei Dan |
25 | | - 'very_early_bird' => array('1' => 84, '2' => 50), |
26 | | - 'early_bird' => array('1' => 89, '2' => 58), |
27 | | - 'regular' => array('1' => 97, '2' => 69), |
| 25 | + 'very_early_bird' => array( '1' => 84, '2' => 50 ), |
| 26 | + 'early_bird' => array( '1' => 89, '2' => 58 ), |
| 27 | + 'regular' => array( '1' => 97, '2' => 69 ), |
28 | 28 | ), |
29 | 29 | 'hotel3' => array(// Marom |
30 | | - 'very_early_bird' => array('1' => 84, '2' => 50), |
31 | | - 'early_bird' => array('1' => 89, '2' => 58), |
32 | | - 'regular' => array('1' => 97, '2' => 69), |
| 30 | + 'very_early_bird' => array( '1' => 84, '2' => 50 ), |
| 31 | + 'early_bird' => array( '1' => 89, '2' => 58 ), |
| 32 | + 'regular' => array( '1' => 97, '2' => 69 ), |
33 | 33 | ), |
34 | 34 | 'hotel4' => array(// Har HaCarmel |
35 | | - 'very_early_bird' => array('1' => 91, '2' => 50), |
36 | | - 'early_bird' => array('1' => 96, '2' => 58), |
37 | | - 'regular' => array('1' => 101, '2' => 69), |
| 35 | + 'very_early_bird' => array( '1' => 91, '2' => 50 ), |
| 36 | + 'early_bird' => array( '1' => 96, '2' => 58 ), |
| 37 | + 'regular' => array( '1' => 101, '2' => 69 ), |
38 | 38 | ), |
39 | 39 | 'hotel5' => array(// Nof |
40 | | - 'very_early_bird' => array('1' => 100, '2' => 56), |
41 | | - 'early_bird' => array('1' => 106, '2' => 63), |
42 | | - 'regular' => array('1' => 116, '2' => 68), |
| 40 | + 'very_early_bird' => array( '1' => 100, '2' => 56 ), |
| 41 | + 'early_bird' => array( '1' => 106, '2' => 63 ), |
| 42 | + 'regular' => array( '1' => 116, '2' => 68 ), |
43 | 43 | ), |
44 | 44 | 'hotel6' => array(// Dan Panorama |
45 | | - 'very_early_bird' => array('1' => 115, '2' => 70), |
46 | | - 'early_bird' => array('1' => 125, '2' => 81), |
47 | | - 'regular' => array('1' => 136, '2' => 91), |
| 45 | + 'very_early_bird' => array( '1' => 115, '2' => 70 ), |
| 46 | + 'early_bird' => array( '1' => 125, '2' => 81 ), |
| 47 | + 'regular' => array( '1' => 136, '2' => 91 ), |
48 | 48 | ), |
49 | 49 | 'hotel7' => array(// Crown Plaza |
50 | | - 'very_early_bird' => array('1' => 162, '2' => 97), |
51 | | - 'early_bird' => array('1' => 172, '2' => 108), |
52 | | - 'regular' => array('1' => 182, '2' => 118), |
| 50 | + 'very_early_bird' => array( '1' => 162, '2' => 97 ), |
| 51 | + 'early_bird' => array( '1' => 172, '2' => 108 ), |
| 52 | + 'regular' => array( '1' => 182, '2' => 118 ), |
53 | 53 | ), |
54 | 54 | 'hotel8' => array(// Colony |
55 | | - 'very_early_bird' => array('1' => 136, '2' => 84), |
56 | | - 'early_bird' => array('1' => 146, '2' => 94), |
57 | | - 'regular' => array('1' => 156, '2' => 104), |
| 55 | + 'very_early_bird' => array( '1' => 136, '2' => 84 ), |
| 56 | + 'early_bird' => array( '1' => 146, '2' => 94 ), |
| 57 | + 'regular' => array( '1' => 156, '2' => 104 ), |
58 | 58 | ), |
59 | 59 | 'hotel9' => array(// Gallery |
60 | | - 'very_early_bird' => array('1' => 91, '2' => 58), |
61 | | - 'early_bird' => array('1' => 96, '2' => 63), |
62 | | - 'regular' => array('1' => 101, '2' => 68), |
| 60 | + 'very_early_bird' => array( '1' => 91, '2' => 58 ), |
| 61 | + 'early_bird' => array( '1' => 96, '2' => 63 ), |
| 62 | + 'regular' => array( '1' => 101, '2' => 68 ), |
63 | 63 | ) |
64 | 64 | ); |
65 | 65 | |
66 | 66 | $usd_to_nis = 3.6; |
67 | 67 | $vat_rate = 0.16; |
68 | 68 | |
69 | | -$early_registration_start = gmmktime(0, 0, 0, /*april*/ 4, /*1st*/ 1, 2011); |
70 | | -$regular_registration_start = gmmktime(0, 0, 0, /*june*/ 6, /*1st*/ 1, 2011); |
| 69 | +$early_registration_start = gmmktime( 0, 0, 0, /*april*/ 4, /*1st*/ 1, 2011 ); |
| 70 | +$regular_registration_start = gmmktime( 0, 0, 0, /*june*/ 6, /*1st*/ 1, 2011 ); |
71 | 71 | |
72 | 72 | $local_country = 'us'; /* Israel */ |
73 | 73 | $local_currency = 'USD'; /* New Israeli Shekel */ |
74 | 74 | |
75 | | -function calculate_cost($register_data) |
| 75 | +function calculate_cost( $register_data ) |
76 | 76 | { |
77 | 77 | global $attendance_costs, $accommodation_costs, $usd_to_nis, $vat_rate, $early_registration_start, |
78 | | - $regular_registration_start, $local_country, $local_currency; |
| 78 | + $regular_registration_start, $local_country, $local_currency; |
79 | 79 | $attendee_type = 'regular_attendee'; |
80 | 80 | $period = 'very_early_bird'; |
81 | 81 | $currency = 'USD'; |
— | — | @@ -84,131 +84,131 @@ |
85 | 85 | $n_main_days = 0; |
86 | 86 | $people_in_room = 0; |
87 | 87 | $hotel = ''; |
88 | | - |
89 | | - if (in_array('3', $register_data['join_date'])) |
| 88 | + |
| 89 | + if ( in_array( '3', $register_data['join_date'] ) ) |
90 | 90 | $n_main_days++; |
91 | | - if (in_array('4', $register_data['join_date'])) |
| 91 | + if ( in_array( '4', $register_data['join_date'] ) ) |
92 | 92 | $n_main_days++; |
93 | | - if (in_array('5', $register_data['join_date'])) |
| 93 | + if ( in_array( '5', $register_data['join_date'] ) ) |
94 | 94 | $n_main_days++; |
95 | | - |
96 | | - if (time() > $early_registration_start) |
| 95 | + |
| 96 | + if ( time() > $early_registration_start ) |
97 | 97 | $period = 'early_bird'; |
98 | | - if (time() > $regular_registration_start) |
| 98 | + if ( time() > $regular_registration_start ) |
99 | 99 | $period = 'regular'; |
100 | | - |
101 | | - if ($register_data['wiki_id'] && $register_data['wiki_language'] && $register_data['wiki_project']) |
| 100 | + |
| 101 | + if ( $register_data['wiki_id'] && $register_data['wiki_language'] && $register_data['wiki_project'] ) |
102 | 102 | { |
103 | 103 | $attendee_type = 'wikimedia_contributor'; |
104 | | - } |
105 | | - |
106 | | - if ($n_main_days == 3) |
| 104 | + } |
| 105 | + |
| 106 | + if ( $n_main_days == 3 ) |
107 | 107 | { |
108 | 108 | $attendance_cost = $attendance_costs[$attendee_type][$period]['all']; |
109 | 109 | } |
110 | | - else |
| 110 | + else |
111 | 111 | { |
112 | 112 | $attendance_cost = $attendance_costs[$attendee_type][$period]['day'] * $n_main_days; |
113 | 113 | } |
114 | | - |
| 114 | + |
115 | 115 | $hotel = 'hotel' . $register_data['hotels']; |
116 | | - if ($register_data['room'] == 1) |
| 116 | + if ( $register_data['room'] == 1 ) |
117 | 117 | $people_in_room = '1'; |
118 | | - else if ($register_data['room'] == 2 || $register_data['room'] == 3) |
| 118 | + else if ( $register_data['room'] == 2 || $register_data['room'] == 3 ) |
119 | 119 | $people_in_room = '2'; |
120 | | - $n_nights = count($register_data['nights']); |
121 | | - |
| 120 | + $n_nights = count( $register_data['nights'] ); |
| 121 | + |
122 | 122 | $accommodation_cost = $accommodation_costs[$hotel][$period][$people_in_room] * $n_nights; |
123 | | - |
124 | | - if ($register_data['country'] == $local_country) |
| 123 | + |
| 124 | + if ( $register_data['country'] == $local_country ) |
125 | 125 | { |
126 | 126 | $attendance_cost *= $usd_to_nis; |
127 | 127 | $accommodation_cost *= $usd_to_nis; |
128 | 128 | $vat_cost = $accommodation_cost * $vat_rate; |
129 | 129 | $currency = $local_currency; |
130 | 130 | } |
131 | | - |
132 | 131 | |
133 | | - if (substr($register_data['discount_code'],0,7) == 'WMFFULL' |
134 | | - && substr(md5('HAIFA2011' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 132 | + |
| 133 | + if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMFFULL' |
| 134 | + && substr( md5( 'HAIFA2011' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
135 | 135 | { |
136 | 136 | $attendance_cost = 0; |
137 | 137 | $accommodation_cost = 0; |
138 | 138 | $vat_cost = 0; |
139 | | - } |
140 | | - else if (substr($register_data['discount_code'],0,7) == 'WMITALY' |
141 | | - && substr(md5('HAIFA2011ITALY' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 139 | + } |
| 140 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMITALY' |
| 141 | + && substr( md5( 'HAIFA2011ITALY' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
142 | 142 | { |
143 | 143 | $attendance_cost = 0; |
144 | 144 | $accommodation_cost = 0; |
145 | 145 | $vat_cost = 0; |
146 | 146 | } |
147 | | - else if (substr($register_data['discount_code'],0,7) == 'WMGRMNY' |
148 | | - && substr(md5('HAIFA2011GERMANY' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 147 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMGRMNY' |
| 148 | + && substr( md5( 'HAIFA2011GERMANY' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
149 | 149 | { |
150 | 150 | $attendance_cost = 0; |
151 | 151 | $accommodation_cost = 0; |
152 | 152 | $vat_cost = 0; |
153 | 153 | } |
154 | | - else if (substr($register_data['discount_code'],0,7) == 'WMOESTR' |
155 | | - && substr(md5('HAIFA2011AUSTRIA' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 154 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMOESTR' |
| 155 | + && substr( md5( 'HAIFA2011AUSTRIA' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
156 | 156 | { |
157 | 157 | $attendance_cost = 0; |
158 | 158 | $accommodation_cost = 0; |
159 | 159 | $vat_cost = 0; |
160 | 160 | } |
161 | | - else if (substr($register_data['discount_code'],0,7) == 'WMSWISS' |
162 | | - && substr(md5('HAIFA2011SWITZERLAND' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 161 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMSWISS' |
| 162 | + && substr( md5( 'HAIFA2011SWITZERLAND' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
163 | 163 | { |
164 | 164 | $attendance_cost = 0; |
165 | 165 | $accommodation_cost = 0; |
166 | 166 | $vat_cost = 0; |
167 | 167 | } |
168 | | - else if (substr($register_data['discount_code'],0,7) == 'WMRUSFD' |
169 | | - && substr(md5('HAIFA2011RUSSIA' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 168 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMRUSFD' |
| 169 | + && substr( md5( 'HAIFA2011RUSSIA' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
170 | 170 | { |
171 | 171 | $attendance_cost = 0; |
172 | 172 | $accommodation_cost = 0; |
173 | 173 | $vat_cost = 0; |
174 | 174 | } |
175 | | - else if (substr($register_data['discount_code'],0,7) == 'WMFRNCE' |
176 | | - && substr(md5('HAIFA2011FRANCE' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 175 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMFRNCE' |
| 176 | + && substr( md5( 'HAIFA2011FRANCE' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
177 | 177 | { |
178 | 178 | $attendance_cost = 0; |
179 | 179 | $accommodation_cost = 0; |
180 | 180 | $vat_cost = 0; |
181 | 181 | } |
182 | | - else if (substr($register_data['discount_code'],0,7) == 'WMSTAFF' |
183 | | - && substr(md5('HAIFA2011FOUNDATION' . substr($register_data['discount_code'],8,2)), 0, 4) == substr($register_data['discount_code'],10,4)) |
| 182 | + else if ( substr( $register_data['discount_code'], 0, 7 ) == 'WMSTAFF' |
| 183 | + && substr( md5( 'HAIFA2011FOUNDATION' . substr( $register_data['discount_code'], 8, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 10, 4 ) ) |
184 | 184 | { |
185 | 185 | $attendance_cost = 0; |
186 | 186 | $accommodation_cost = 0; |
187 | 187 | $vat_cost = 0; |
188 | 188 | } |
189 | | - else if (substr($register_data['discount_code'],0,5) == 'PRESS' |
190 | | - && substr(md5('HAIFA2011PRESS' . substr($register_data['discount_code'],6,2)), 0, 4) == substr($register_data['discount_code'],8,4)) |
| 189 | + else if ( substr( $register_data['discount_code'], 0, 5 ) == 'PRESS' |
| 190 | + && substr( md5( 'HAIFA2011PRESS' . substr( $register_data['discount_code'], 6, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 8, 4 ) ) |
191 | 191 | { |
192 | 192 | $attendance_cost = 0; |
193 | 193 | $accommodation_cost = 0; |
194 | 194 | $vat_cost = 0; |
195 | 195 | } |
196 | | - else if (substr($register_data['discount_code'],0,4) == 'WMIL' |
197 | | - && substr(md5('HAIFA2011ISRAEL' . substr($register_data['discount_code'],5,2)), 0, 4) == substr($register_data['discount_code'],7,4)) |
| 196 | + else if ( substr( $register_data['discount_code'], 0, 4 ) == 'WMIL' |
| 197 | + && substr( md5( 'HAIFA2011ISRAEL' . substr( $register_data['discount_code'], 5, 2 ) ), 0, 4 ) == substr( $register_data['discount_code'], 7, 4 ) ) |
198 | 198 | { |
199 | 199 | $attendance_cost = 0; |
200 | 200 | $accommodation_cost = 0; |
201 | 201 | $vat_cost = 0; |
202 | 202 | } |
203 | | - |
204 | | - $attendance_cost = round($attendance_cost, 2); |
205 | | - $accommodation_cost = round($accommodation_cost, 2); |
206 | | - $vat_cost = round($vat_cost, 2); |
207 | | - |
| 203 | + |
| 204 | + $attendance_cost = round( $attendance_cost, 2 ); |
| 205 | + $accommodation_cost = round( $accommodation_cost, 2 ); |
| 206 | + $vat_cost = round( $vat_cost, 2 ); |
| 207 | + |
208 | 208 | $cost_total = $attendance_cost + $accommodation_cost + $vat_cost; |
209 | | - $cost_total = round($cost_total, 2); |
| 209 | + $cost_total = round( $cost_total, 2 ); |
210 | 210 | |
211 | | - return array('attendance_cost' => $attendance_cost, 'accommodation_cost' => $accommodation_cost, 'vat_cost' => $vat_cost, |
212 | | - 'cost_total' => $cost_total, 'currency' => $currency); |
| 211 | + return array( 'attendance_cost' => $attendance_cost, 'accommodation_cost' => $accommodation_cost, 'vat_cost' => $vat_cost, |
| 212 | + 'cost_total' => $cost_total, 'currency' => $currency ); |
213 | 213 | |
214 | 214 | } |
215 | 215 | |
Index: trunk/wikimania/wmreg/includes/languages.php |
— | — | @@ -3,17 +3,17 @@ |
4 | 4 | /** |
5 | 5 | * A list of Wikimedia Projects |
6 | 6 | */ |
7 | | -$WikimediaProjects = array( 'wikipedia', 'wiktionary', 'wikiquote', 'wikibooks', 'wikisource', 'wikinews', 'wikiversity', 'wikimedia', 'hamakor' /*WMIL partner organization*/); |
| 7 | +$WikimediaProjects = array( 'wikipedia', 'wiktionary', 'wikiquote', 'wikibooks', 'wikisource', 'wikinews', 'wikiversity', 'wikimedia', 'hamakor' /*WMIL partner organization*/ ); |
8 | 8 | |
9 | 9 | /** |
10 | 10 | * URLs of some wikis are (blah).wikimedia.org, this is a list of them. |
11 | 11 | */ |
12 | | -$WikimediaOrgs = array('commons', 'incubator', 'mediawiki', 'meta', 'species'); |
| 12 | +$WikimediaOrgs = array( 'commons', 'incubator', 'mediawiki', 'meta', 'species' ); |
13 | 13 | |
14 | 14 | /** |
15 | 15 | * A list of available language files |
16 | 16 | */ |
17 | | -$available_languages = array('en' => 'English', 'he' => 'עברית', 'ar' => 'العربية', 'de' => 'Deutsch', 'es' => 'Español', 'fr' => 'Français', 'it' => 'Italiano',); |
| 17 | +$available_languages = array( 'en' => 'English', 'he' => 'עברית', 'ar' => 'العربية', 'de' => 'Deutsch', 'es' => 'Español', 'fr' => 'Français', 'it' => 'Italiano', ); |
18 | 18 | |
19 | 19 | /** |
20 | 20 | * A list of Wikimedia website languages |
Index: trunk/wikimania/wmreg/recaptchalib.php |
— | — | @@ -35,22 +35,22 @@ |
36 | 36 | /** |
37 | 37 | * The reCAPTCHA server URL's |
38 | 38 | */ |
39 | | -define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api"); |
40 | | -define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api"); |
41 | | -define("RECAPTCHA_VERIFY_SERVER", "www.google.com"); |
| 39 | +define( "RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api" ); |
| 40 | +define( "RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api" ); |
| 41 | +define( "RECAPTCHA_VERIFY_SERVER", "www.google.com" ); |
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Encodes the given data into a query string format |
45 | 45 | * @param $data - array of string elements to be encoded |
46 | 46 | * @return string - encoded request |
47 | 47 | */ |
48 | | -function _recaptcha_qsencode ($data) { |
| 48 | +function _recaptcha_qsencode ( $data ) { |
49 | 49 | $req = ""; |
50 | 50 | foreach ( $data as $key => $value ) |
51 | | - $req .= $key . '=' . urlencode( stripslashes($value) ) . '&'; |
| 51 | + $req .= $key . '=' . urlencode( stripslashes( $value ) ) . '&'; |
52 | 52 | |
53 | 53 | // Cut the last '&' |
54 | | - $req=substr($req,0,strlen($req)-1); |
| 54 | + $req = substr( $req, 0, strlen( $req ) -1 ); |
55 | 55 | return $req; |
56 | 56 | } |
57 | 57 | |
— | — | @@ -64,29 +64,29 @@ |
65 | 65 | * @param int port |
66 | 66 | * @return array response |
67 | 67 | */ |
68 | | -function _recaptcha_http_post($host, $path, $data, $port = 80) { |
| 68 | +function _recaptcha_http_post( $host, $path, $data, $port = 80 ) { |
69 | 69 | |
70 | | - $req = _recaptcha_qsencode ($data); |
| 70 | + $req = _recaptcha_qsencode ( $data ); |
71 | 71 | |
72 | 72 | $http_request = "POST $path HTTP/1.0\r\n"; |
73 | 73 | $http_request .= "Host: $host\r\n"; |
74 | 74 | $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; |
75 | | - $http_request .= "Content-Length: " . strlen($req) . "\r\n"; |
| 75 | + $http_request .= "Content-Length: " . strlen( $req ) . "\r\n"; |
76 | 76 | $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; |
77 | 77 | $http_request .= "\r\n"; |
78 | 78 | $http_request .= $req; |
79 | 79 | |
80 | 80 | $response = ''; |
81 | | - if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 40) ) ) { |
82 | | - die ('Could not open socket'); |
| 81 | + if ( false == ( $fs = @fsockopen( $host, $port, $errno, $errstr, 40 ) ) ) { |
| 82 | + die ( 'Could not open socket' ); |
83 | 83 | } |
84 | 84 | |
85 | | - fwrite($fs, $http_request); |
| 85 | + fwrite( $fs, $http_request ); |
86 | 86 | |
87 | | - while ( !feof($fs) ) |
88 | | - $response .= fgets($fs, 1160); // One TCP-IP packet |
89 | | - fclose($fs); |
90 | | - $response = explode("\r\n\r\n", $response, 2); |
| 87 | + while ( !feof( $fs ) ) |
| 88 | + $response .= fgets( $fs, 1160 ); // One TCP-IP packet |
| 89 | + fclose( $fs ); |
| 90 | + $response = explode( "\r\n\r\n", $response, 2 ); |
91 | 91 | |
92 | 92 | return $response; |
93 | 93 | } |
— | — | @@ -103,26 +103,26 @@ |
104 | 104 | |
105 | 105 | * @return string - The HTML to be embedded in the user's form. |
106 | 106 | */ |
107 | | -function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false) |
| 107 | +function recaptcha_get_html ( $pubkey, $error = null, $use_ssl = false ) |
108 | 108 | { |
109 | | - if ($pubkey == null || $pubkey == '') { |
110 | | - 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>"); |
| 109 | + if ( $pubkey == null || $pubkey == '' ) { |
| 110 | + 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>" ); |
111 | 111 | } |
112 | | - |
113 | | - if ($use_ssl) { |
| 112 | + |
| 113 | + if ( $use_ssl ) { |
114 | 114 | $server = RECAPTCHA_API_SECURE_SERVER; |
115 | 115 | } else { |
116 | 116 | $server = RECAPTCHA_API_SERVER; |
117 | 117 | } |
118 | 118 | |
119 | 119 | $errorpart = ""; |
120 | | - if ($error) { |
| 120 | + if ( $error ) { |
121 | 121 | $errorpart = "&error=" . $error; |
122 | 122 | } |
123 | | - return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script> |
| 123 | + return '<script type="text/javascript" src="' . $server . '/challenge?k=' . $pubkey . $errorpart . '"></script> |
124 | 124 | |
125 | 125 | <noscript> |
126 | | - <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/> |
| 126 | + <iframe src="' . $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/> |
127 | 127 | <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> |
128 | 128 | <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/> |
129 | 129 | </noscript>'; |
— | — | @@ -149,27 +149,27 @@ |
150 | 150 | * @param array $extra_params an array of extra variables to post to the server |
151 | 151 | * @return ReCaptchaResponse |
152 | 152 | */ |
153 | | -function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array()) |
| 153 | +function recaptcha_check_answer ( $privkey, $remoteip, $challenge, $response, $extra_params = array() ) |
154 | 154 | { |
155 | | - if ($privkey == null || $privkey == '') { |
156 | | - 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>"); |
| 155 | + if ( $privkey == null || $privkey == '' ) { |
| 156 | + 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>" ); |
157 | 157 | } |
158 | 158 | |
159 | | - if ($remoteip == null || $remoteip == '') { |
160 | | - die ("For security reasons, you must pass the remote ip to reCAPTCHA"); |
| 159 | + if ( $remoteip == null || $remoteip == '' ) { |
| 160 | + die ( "For security reasons, you must pass the remote ip to reCAPTCHA" ); |
161 | 161 | } |
162 | 162 | |
163 | | - |
164 | | - |
165 | | - //discard spam submissions |
166 | | - if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) { |
| 163 | + |
| 164 | + |
| 165 | + // discard spam submissions |
| 166 | + if ( $challenge == null || strlen( $challenge ) == 0 || $response == null || strlen( $response ) == 0 ) { |
167 | 167 | $recaptcha_response = new ReCaptchaResponse(); |
168 | 168 | $recaptcha_response->is_valid = false; |
169 | 169 | $recaptcha_response->error = 'incorrect-captcha-sol'; |
170 | 170 | return $recaptcha_response; |
171 | 171 | } |
172 | 172 | |
173 | | - $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify", |
| 173 | + $response = _recaptcha_http_post ( RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify", |
174 | 174 | array ( |
175 | 175 | 'privatekey' => $privkey, |
176 | 176 | 'remoteip' => $remoteip, |
— | — | @@ -178,10 +178,10 @@ |
179 | 179 | ) + $extra_params |
180 | 180 | ); |
181 | 181 | |
182 | | - $answers = explode ("\n", $response [1]); |
| 182 | + $answers = explode ( "\n", $response [1] ); |
183 | 183 | $recaptcha_response = new ReCaptchaResponse(); |
184 | 184 | |
185 | | - if (trim ($answers [0]) == 'true') { |
| 185 | + if ( trim ( $answers [0] ) == 'true' ) { |
186 | 186 | $recaptcha_response->is_valid = true; |
187 | 187 | } |
188 | 188 | else { |
— | — | @@ -199,45 +199,45 @@ |
200 | 200 | * @param string $domain The domain where the page is hosted |
201 | 201 | * @param string $appname The name of your application |
202 | 202 | */ |
203 | | -function recaptcha_get_signup_url ($domain = null, $appname = null) { |
204 | | - return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname)); |
| 203 | +function recaptcha_get_signup_url ( $domain = null, $appname = null ) { |
| 204 | + return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode ( array ( 'domains' => $domain, 'app' => $appname ) ); |
205 | 205 | } |
206 | 206 | |
207 | | -function _recaptcha_aes_pad($val) { |
| 207 | +function _recaptcha_aes_pad( $val ) { |
208 | 208 | $block_size = 16; |
209 | | - $numpad = $block_size - (strlen ($val) % $block_size); |
210 | | - return str_pad($val, strlen ($val) + $numpad, chr($numpad)); |
| 209 | + $numpad = $block_size - ( strlen ( $val ) % $block_size ); |
| 210 | + return str_pad( $val, strlen ( $val ) + $numpad, chr( $numpad ) ); |
211 | 211 | } |
212 | 212 | |
213 | 213 | /* Mailhide related code */ |
214 | 214 | |
215 | | -function _recaptcha_aes_encrypt($val,$ky) { |
216 | | - if (! function_exists ("mcrypt_encrypt")) { |
217 | | - die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
| 215 | +function _recaptcha_aes_encrypt( $val, $ky ) { |
| 216 | + if ( ! function_exists ( "mcrypt_encrypt" ) ) { |
| 217 | + die ( "To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed." ); |
218 | 218 | } |
219 | | - $mode=MCRYPT_MODE_CBC; |
220 | | - $enc=MCRYPT_RIJNDAEL_128; |
221 | | - $val=_recaptcha_aes_pad($val); |
222 | | - return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); |
| 219 | + $mode = MCRYPT_MODE_CBC; |
| 220 | + $enc = MCRYPT_RIJNDAEL_128; |
| 221 | + $val = _recaptcha_aes_pad( $val ); |
| 222 | + return mcrypt_encrypt( $enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" ); |
223 | 223 | } |
224 | 224 | |
225 | 225 | |
226 | | -function _recaptcha_mailhide_urlbase64 ($x) { |
227 | | - return strtr(base64_encode ($x), '+/', '-_'); |
| 226 | +function _recaptcha_mailhide_urlbase64 ( $x ) { |
| 227 | + return strtr( base64_encode ( $x ), '+/', '-_' ); |
228 | 228 | } |
229 | 229 | |
230 | 230 | /* gets the reCAPTCHA Mailhide url for a given email, public key and private key */ |
231 | | -function recaptcha_mailhide_url($pubkey, $privkey, $email) { |
232 | | - if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) { |
233 | | - die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . |
234 | | - "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>"); |
| 231 | +function recaptcha_mailhide_url( $pubkey, $privkey, $email ) { |
| 232 | + if ( $pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null ) { |
| 233 | + die ( "To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . |
| 234 | + "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>" ); |
235 | 235 | } |
236 | | - |
237 | 236 | |
238 | | - $ky = pack('H*', $privkey); |
239 | | - $cryptmail = _recaptcha_aes_encrypt ($email, $ky); |
240 | | - |
241 | | - return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail); |
| 237 | + |
| 238 | + $ky = pack( 'H*', $privkey ); |
| 239 | + $cryptmail = _recaptcha_aes_encrypt ( $email, $ky ); |
| 240 | + |
| 241 | + return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ( $cryptmail ); |
242 | 242 | } |
243 | 243 | |
244 | 244 | /** |
— | — | @@ -245,15 +245,15 @@ |
246 | 246 | * eg, given johndoe@example,com return ["john", "example.com"]. |
247 | 247 | * the email is then displayed as john...@example.com |
248 | 248 | */ |
249 | | -function _recaptcha_mailhide_email_parts ($email) { |
250 | | - $arr = preg_split("/@/", $email ); |
| 249 | +function _recaptcha_mailhide_email_parts ( $email ) { |
| 250 | + $arr = preg_split( "/@/", $email ); |
251 | 251 | |
252 | | - if (strlen ($arr[0]) <= 4) { |
253 | | - $arr[0] = substr ($arr[0], 0, 1); |
254 | | - } else if (strlen ($arr[0]) <= 6) { |
255 | | - $arr[0] = substr ($arr[0], 0, 3); |
| 252 | + if ( strlen ( $arr[0] ) <= 4 ) { |
| 253 | + $arr[0] = substr ( $arr[0], 0, 1 ); |
| 254 | + } else if ( strlen ( $arr[0] ) <= 6 ) { |
| 255 | + $arr[0] = substr ( $arr[0], 0, 3 ); |
256 | 256 | } else { |
257 | | - $arr[0] = substr ($arr[0], 0, 4); |
| 257 | + $arr[0] = substr ( $arr[0], 0, 4 ); |
258 | 258 | } |
259 | 259 | return $arr; |
260 | 260 | } |
— | — | @@ -264,14 +264,11 @@ |
265 | 265 | * |
266 | 266 | * http://www.google.com/recaptcha/mailhide/apikey |
267 | 267 | */ |
268 | | -function recaptcha_mailhide_html($pubkey, $privkey, $email) { |
269 | | - $emailparts = _recaptcha_mailhide_email_parts ($email); |
270 | | - $url = recaptcha_mailhide_url ($pubkey, $privkey, $email); |
271 | | - |
272 | | - return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) . |
273 | | - "' 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]); |
| 268 | +function recaptcha_mailhide_html( $pubkey, $privkey, $email ) { |
| 269 | + $emailparts = _recaptcha_mailhide_email_parts ( $email ); |
| 270 | + $url = recaptcha_mailhide_url ( $pubkey, $privkey, $email ); |
274 | 271 | |
275 | | -} |
| 272 | + return htmlentities( $emailparts[0] ) . "<a href='" . htmlentities ( $url ) . |
| 273 | + "' 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] ); |
276 | 274 | |
277 | | - |
278 | | -?> |
| 275 | +} |
Index: trunk/wikimania/wmreg/index.php |
— | — | @@ -1,5 +1,5 @@ |
2 | | -<?php |
3 | | -/** |
| 2 | +<?php |
| 3 | +/** |
4 | 4 | * Wikimania 2008 Registration system |
5 | 5 | * Copyright (C) 2008 Littlebtc ([[zh:User:B]]), alexsh ([[zh:User:Alexsh]]), Tim ([[wm07:User:Foxkaworus]]), and others |
6 | 6 | * |
— | — | @@ -16,48 +16,48 @@ |
17 | 17 | * You should have received a copy of the GNU General Public License along |
18 | 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
19 | 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 | | - * |
| 20 | + * |
21 | 21 | * Made originally for Wikimania 2007 and modified specifically for Wikimania 2008 needs by local Alexandria team. |
22 | 22 | * @copyright (C) 2008 Littlebtc ([[zh:User:B]]), alexsh ([[zh:User:Alexsh]]), Tim ([[wm07:User:Foxkaworus]]), and others |
23 | 23 | * @license GNU General Public License version 2 |
24 | 24 | */ |
25 | 25 | |
26 | 26 | /* prevent hacking */ |
27 | | -define('TC_STARTED',1); |
| 27 | +define( 'TC_STARTED', 1 ); |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * An array merging information from GET & POST. |
31 | 31 | */ |
32 | | -$MY_REQUEST = array_merge($_GET , $_POST); |
| 32 | +$MY_REQUEST = array_merge( $_GET , $_POST ); |
33 | 33 | |
34 | 34 | /* unregister globals */ |
35 | | -if (@ini_get('register_globals')) |
| 35 | +if ( @ini_get( 'register_globals' ) ) |
36 | 36 | { |
37 | 37 | /** |
38 | 38 | * Variables that should not be removed |
39 | 39 | */ |
40 | | - $chk_unset= array('_GET','_POST','_COOKIE','_REQUEST','_ENV','_FILES','_SERVER','GLOBALS'); |
41 | | - $unset_vars = array_keys(array_merge($_COOKIE , $_REQUEST , $_ENV , $_FILES , $_SERVER)); |
42 | | - |
| 40 | + $chk_unset = array( '_GET', '_POST', '_COOKIE', '_REQUEST', '_ENV', '_FILES', '_SERVER', 'GLOBALS' ); |
| 41 | + $unset_vars = array_keys( array_merge( $_COOKIE , $_REQUEST , $_ENV , $_FILES , $_SERVER ) ); |
| 42 | + |
43 | 43 | /* avoid GLOBALS hijacking in PHP4*/ |
44 | | - if (in_array('GLOBALS',$unset_vars)) |
| 44 | + if ( in_array( 'GLOBALS', $unset_vars ) ) |
45 | 45 | { |
46 | 46 | echo 'Error: GLOBALS overwrite attempt'; |
47 | 47 | exit; |
48 | 48 | } |
49 | | - |
50 | | - foreach ($unset_vars as $key) |
| 49 | + |
| 50 | + foreach ( $unset_vars as $key ) |
51 | 51 | { |
52 | | - if (!in_array($key,$chk_unset) && isset($$key)) |
53 | | - { unset($$key); } |
| 52 | + if ( !in_array( $key, $chk_unset ) && isset( $$key ) ) |
| 53 | + { unset( $$key ); } |
54 | 54 | } |
55 | | - unset($unset_vars); |
56 | | - unset($chk_unset); |
| 55 | + unset( $unset_vars ); |
| 56 | + unset( $chk_unset ); |
57 | 57 | } |
58 | 58 | |
59 | 59 | include 'includes/SqlConnect-mysql.php'; |
60 | 60 | include 'includes/UserSession.php'; |
61 | | -include 'includes/languages.php'; |
| 61 | +include 'includes/languages.php'; |
62 | 62 | include 'includes/prices.php'; |
63 | 63 | include 'includes/mail.php'; |
64 | 64 | include 'dbdata.php'; |
— | — | @@ -102,16 +102,16 @@ |
103 | 103 | /** |
104 | 104 | * If no uselang is assigned in POST/GET, we try HTTP_ACCEPT_LANGUAGE |
105 | 105 | */ |
106 | | -if (!array_key_exists('uselang', $MY_REQUEST) ) |
| 106 | +if ( !array_key_exists( 'uselang', $MY_REQUEST ) ) |
107 | 107 | { |
108 | | - $acceptLanguages = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); |
109 | | - |
| 108 | + $acceptLanguages = explode( ',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); |
| 109 | + |
110 | 110 | $acceptLanguage = $acceptLanguages[0]; |
111 | | - |
| 111 | + |
112 | 112 | /* zh-languages */ |
113 | | - if (preg_match('/^zh/', $acceptLanguage)) |
| 113 | + if ( preg_match( '/^zh/', $acceptLanguage ) ) |
114 | 114 | { |
115 | | - if (preg_match('/^zh-(tw|hk)/', $acceptLanguage)) |
| 115 | + if ( preg_match( '/^zh-(tw|hk)/', $acceptLanguage ) ) |
116 | 116 | $userLanguage = 'zh-hant'; |
117 | 117 | else |
118 | 118 | $userLanguage = 'zh-hans'; |
— | — | @@ -119,43 +119,43 @@ |
120 | 120 | /* Others */ |
121 | 121 | else |
122 | 122 | { |
123 | | - $acceptLanguage = preg_replace('/([^-;]+)[-|;]?(.+)?/','\\1',$acceptLanguage); |
124 | | - if (file_exists('includes/language_'. $acceptLanguage . '.php')) |
| 123 | + $acceptLanguage = preg_replace( '/([^-;]+)[-|;]?(.+)?/', '\\1', $acceptLanguage ); |
| 124 | + if ( file_exists( 'includes/language_' . $acceptLanguage . '.php' ) ) |
125 | 125 | $userLanguage = $acceptLanguage; |
126 | 126 | |
127 | 127 | } |
128 | 128 | |
129 | | - unset($acceptLanguage); |
130 | | - unset($acceptLanguages); |
| 129 | + unset( $acceptLanguage ); |
| 130 | + unset( $acceptLanguages ); |
131 | 131 | |
132 | 132 | } |
133 | 133 | |
134 | | -elseif (!preg_match('/[^0-9A-Z\-]/i', $MY_REQUEST['uselang'])) |
| 134 | +elseif ( !preg_match( '/[^0-9A-Z\-]/i', $MY_REQUEST['uselang'] ) ) |
135 | 135 | { |
136 | | - if (file_exists('includes/language_'. $MY_REQUEST['uselang'] . '.php')) |
| 136 | + if ( file_exists( 'includes/language_' . $MY_REQUEST['uselang'] . '.php' ) ) |
137 | 137 | $userLanguage = $MY_REQUEST['uselang']; |
138 | 138 | } |
139 | 139 | |
140 | | -include 'includes/language_'.$userLanguage.'.php'; |
| 140 | +include 'includes/language_' . $userLanguage . '.php'; |
141 | 141 | |
142 | | -if (!$DB_HOST) exit; |
| 142 | +if ( !$DB_HOST ) exit; |
143 | 143 | |
144 | 144 | $sql = new SqlConnect(); |
145 | | -if (!$sql->Start($DB_HOST, $DB_ID, $DB_PASS, $DB_NAME)) exit; |
| 145 | +if ( !$sql->Start( $DB_HOST, $DB_ID, $DB_PASS, $DB_NAME ) ) exit; |
146 | 146 | |
147 | 147 | /* Start Session */ |
148 | 148 | $my_session = new UserSession(); |
149 | 149 | |
150 | | -if (!$_COOKIE['wikimania'] && $_POST['secret_id']) |
151 | | -{ |
152 | | - if (!$my_session->Start($_POST['secret_id'])) exit; |
| 150 | +if ( !$_COOKIE['wikimania'] && $_POST['secret_id'] ) |
| 151 | +{ |
| 152 | + if ( !$my_session->Start( $_POST['secret_id'] ) ) exit; |
153 | 153 | } |
154 | | -else |
155 | | -{ |
156 | | - if (!$my_session->Start()) exit; |
| 154 | +else |
| 155 | +{ |
| 156 | + if ( !$my_session->Start() ) exit; |
157 | 157 | } |
158 | 158 | |
159 | | -switch($MY_REQUEST['action']) |
| 159 | +switch( $MY_REQUEST['action'] ) |
160 | 160 | { |
161 | 161 | case 'submit': |
162 | 162 | submission(); |
— | — | @@ -225,25 +225,25 @@ |
226 | 226 | * Transfer an error code to actual message |
227 | 227 | * @todo: This should be moved to the view/skin part |
228 | 228 | */ |
229 | | -function create_error($errormsg, $form1, $form2 = NULL) |
| 229 | +function create_error( $errormsg, $form1, $form2 = NULL ) |
230 | 230 | { |
231 | | - global $lang_register_form, $lang_errors; |
| 231 | + global $lang_register_form, $lang_errors; |
232 | 232 | |
233 | | - if ($form2) |
234 | | - { |
235 | | - return preg_replace('/(.+)\t\n\t(.+)/' ,$lang_errors[$errormsg] ,$lang_register_form[$form1]."\t\n\t".$form2); |
| 233 | + if ( $form2 ) |
| 234 | + { |
| 235 | + return preg_replace( '/(.+)\t\n\t(.+)/' , $lang_errors[$errormsg] , $lang_register_form[$form1] . "\t\n\t" . $form2 ); |
236 | 236 | } |
237 | 237 | else |
238 | 238 | { |
239 | | - return preg_replace('/(.+)/' ,$lang_errors[$errormsg] ,$lang_register_form[$form1]); |
| 239 | + return preg_replace( '/(.+)/' , $lang_errors[$errormsg] , $lang_register_form[$form1] ); |
240 | 240 | } |
241 | 241 | } |
242 | 242 | |
243 | | -function isValidEmail($email) |
| 243 | +function isValidEmail( $email ) |
244 | 244 | { |
245 | 245 | $qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]'; |
246 | 246 | $dtext = '[^\\x0d\\x5b-\\x5d\\x80-\\xff]'; |
247 | | - $atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c'. |
| 247 | + $atom = '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c' . |
248 | 248 | '\\x3e\\x40\\x5b-\\x5d\\x7f-\\xff]+'; |
249 | 249 | $quoted_pair = '\\x5c[\\x00-\\x7f]'; |
250 | 250 | $domain_literal = "\\x5b($dtext|$quoted_pair)*\\x5d"; |
— | — | @@ -254,14 +254,14 @@ |
255 | 255 | $domain = "$sub_domain(\\x2e$sub_domain)*"; |
256 | 256 | $local_part = "$word(\\x2e$word)*"; |
257 | 257 | $addr_spec = "$local_part\\x40$domain"; |
258 | | - |
259 | | - return preg_match("!^$addr_spec$!", $email) ? true : false; |
| 258 | + |
| 259 | + return preg_match( "!^$addr_spec$!", $email ) ? true : false; |
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
263 | 263 | * Check the sent data |
264 | 264 | */ |
265 | | -function check_register_data($check_captcha) |
| 265 | +function check_register_data( $check_captcha ) |
266 | 266 | { |
267 | 267 | global $MY_REQUEST, $sql, $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, $error_array, |
268 | 268 | $error_message, $register_data, $lang_countries, $recaptcha_privatekey; |
— | — | @@ -270,158 +270,158 @@ |
271 | 271 | * All fields needs to retrived from $MY_REQUEST |
272 | 272 | * @todo This should be in a better way, like a "fields info" containing the data type in the MySQL table and output form type |
273 | 273 | */ |
274 | | - $register_data_keys = array('given_name', 'surname', 'sex', 'country', 'langn', 'lang1', 'lang1-level', 'lang2', 'lang2-level', 'lang3', 'lang3-level', 'wiki_id', |
| 274 | + $register_data_keys = array( 'given_name', 'surname', 'sex', 'country', 'langn', 'lang1', 'lang1-level', 'lang2', 'lang2-level', 'lang3', 'lang3-level', 'wiki_id', |
275 | 275 | 'wiki_language', 'wiki_project', 'email', 'join_date', 'tours', 'showname', 'custom_showname', 'size', 'food', 'food_other', 'visa_assistance', 'nationality', 'passport_day', |
276 | 276 | 'passport_month', 'passport_year', 'passport_issued', 'passport', 'day', 'month', 'year', 'countryofbirth', 'homeaddress', 'visa_assistance_description', 'nights', 'room', 'room_partner', 'room_requests', 'hotels', 'discount_code' ); |
277 | 277 | |
278 | | - foreach($register_data_keys as $key) |
| 278 | + foreach ( $register_data_keys as $key ) |
279 | 279 | { |
280 | | - if (isset($MY_REQUEST[$key])) |
281 | | - { |
282 | | - $register_data[$key] = $MY_REQUEST[$key]; |
| 280 | + if ( isset( $MY_REQUEST[$key] ) ) |
| 281 | + { |
| 282 | + $register_data[$key] = $MY_REQUEST[$key]; |
283 | 283 | } |
284 | 284 | } |
285 | | - unset($register_data_keys); |
| 285 | + unset( $register_data_keys ); |
286 | 286 | |
287 | 287 | $error_array = array(); |
288 | | - |
289 | | - if ($check_captcha) |
| 288 | + |
| 289 | + if ( $check_captcha ) |
290 | 290 | { |
291 | | - require_once('recaptchalib.php'); |
292 | | - $resp = recaptcha_check_answer ($recaptcha_privatekey, |
| 291 | + require_once( 'recaptchalib.php' ); |
| 292 | + $resp = recaptcha_check_answer ( $recaptcha_privatekey, |
293 | 293 | $_SERVER["REMOTE_ADDR"], |
294 | 294 | $_POST["recaptcha_challenge_field"], |
295 | | - $_POST["recaptcha_response_field"]); |
296 | | - |
297 | | - if (!$resp->is_valid) { |
298 | | - $error_array[] = create_error('wrong', 'captcha'); |
| 295 | + $_POST["recaptcha_response_field"] ); |
| 296 | + |
| 297 | + if ( !$resp->is_valid ) { |
| 298 | + $error_array[] = create_error( 'wrong', 'captcha' ); |
299 | 299 | } |
300 | 300 | } |
301 | | - |
| 301 | + |
302 | 302 | /* Record UTC / GMT Date */ |
303 | 303 | $register_data['signuptime'] = time(); |
304 | 304 | |
305 | 305 | /* Check input */ |
306 | | - if (!$register_data['given_name']) |
| 306 | + if ( !$register_data['given_name'] ) |
307 | 307 | { |
308 | | - $error_array[] = create_error('not_input', 'given_name'); |
| 308 | + $error_array[] = create_error( 'not_input', 'given_name' ); |
309 | 309 | } |
310 | 310 | |
311 | | - if (mb_strlen($register_data['given_name'], 'UTF-8') > 24) |
312 | | - { |
313 | | - $error_array[] = create_error('too_long', 'given_name', '24'); |
| 311 | + if ( mb_strlen( $register_data['given_name'], 'UTF-8' ) > 24 ) |
| 312 | + { |
| 313 | + $error_array[] = create_error( 'too_long', 'given_name', '24' ); |
314 | 314 | } |
315 | | - |
316 | | - if (!$register_data['surname']) |
317 | | - { |
318 | | - $error_array[] = create_error('not_input', 'surname'); |
| 315 | + |
| 316 | + if ( !$register_data['surname'] ) |
| 317 | + { |
| 318 | + $error_array[] = create_error( 'not_input', 'surname' ); |
319 | 319 | } |
320 | 320 | |
321 | | - if (mb_strlen($register_data['surname'], 'UTF-8') > 24) |
322 | | - { |
323 | | - $error_array[] = create_error('too_long', 'surname', '24'); |
| 321 | + if ( mb_strlen( $register_data['surname'], 'UTF-8' ) > 24 ) |
| 322 | + { |
| 323 | + $error_array[] = create_error( 'too_long', 'surname', '24' ); |
324 | 324 | } |
325 | 325 | |
326 | | - if (!$register_data['sex']) |
327 | | - { |
328 | | - $error_array[] = create_error('not_select', 'sex'); |
| 326 | + if ( !$register_data['sex'] ) |
| 327 | + { |
| 328 | + $error_array[] = create_error( 'not_select', 'sex' ); |
329 | 329 | } |
330 | | - elseif(!in_array($register_data['sex'], array('m', 'f', 'd'))) |
| 330 | + elseif ( !in_array( $register_data['sex'], array( 'm', 'f', 'd' ) ) ) |
331 | 331 | { |
332 | | - $error_array[] = create_error('wrong', 'sex'); |
| 332 | + $error_array[] = create_error( 'wrong', 'sex' ); |
333 | 333 | } |
334 | 334 | |
335 | | - if (!$register_data['country']) |
336 | | - { |
337 | | - $error_array[] = create_error('not_select', 'country'); |
| 335 | + if ( !$register_data['country'] ) |
| 336 | + { |
| 337 | + $error_array[] = create_error( 'not_select', 'country' ); |
338 | 338 | } |
339 | | - elseif (!in_array($register_data['country'], array_keys($lang_countries))) |
340 | | - { |
341 | | - $error_array[] = create_error('wrong', 'country'); |
| 339 | + elseif ( !in_array( $register_data['country'], array_keys( $lang_countries ) ) ) |
| 340 | + { |
| 341 | + $error_array[] = create_error( 'wrong', 'country' ); |
342 | 342 | } |
343 | | - |
344 | | - if (!$register_data['langn']) |
345 | | - { |
346 | | - $error_array[] = create_error('not_select', 'langn'); } |
347 | | - elseif (!in_array($register_data['langn'], array_keys($WikimediaLanguages))) |
348 | | - { |
349 | | - $error_array[] = create_error('wrong', 'langn'); |
| 343 | + |
| 344 | + if ( !$register_data['langn'] ) |
| 345 | + { |
| 346 | + $error_array[] = create_error( 'not_select', 'langn' ); } |
| 347 | + elseif ( !in_array( $register_data['langn'], array_keys( $WikimediaLanguages ) ) ) |
| 348 | + { |
| 349 | + $error_array[] = create_error( 'wrong', 'langn' ); |
350 | 350 | } |
351 | | - |
352 | | - for ($i = 1; $i <= 3; $i++) |
| 351 | + |
| 352 | + for ( $i = 1; $i <= 3; $i++ ) |
353 | 353 | { |
354 | | - if ($register_data['lang'.$i]) |
| 354 | + if ( $register_data['lang' . $i] ) |
355 | 355 | { |
356 | | - if (!in_array($register_data['lang'.$i], array_keys($WikimediaLanguages))) |
357 | | - { |
358 | | - $error_array[] = create_error('wrong', 'lang'.$i); |
| 356 | + if ( !in_array( $register_data['lang' . $i], array_keys( $WikimediaLanguages ) ) ) |
| 357 | + { |
| 358 | + $error_array[] = create_error( 'wrong', 'lang' . $i ); |
359 | 359 | } |
360 | | - elseif(!$register_data['lang'.$i.'-level']) |
361 | | - { |
362 | | - $error_array[] = create_error('not_select', 'lang'.$i.'_level'); |
| 360 | + elseif ( !$register_data['lang' . $i . '-level'] ) |
| 361 | + { |
| 362 | + $error_array[] = create_error( 'not_select', 'lang' . $i . '_level' ); |
363 | 363 | } |
364 | | - elseif(!in_array($register_data['lang'.$i.'-level'], array('1', '2', '3', '4'))) |
365 | | - { |
366 | | - $error_array[] = create_error('wrong', 'lang'.$i.'_level'); |
| 364 | + elseif ( !in_array( $register_data['lang' . $i . '-level'], array( '1', '2', '3', '4' ) ) ) |
| 365 | + { |
| 366 | + $error_array[] = create_error( 'wrong', 'lang' . $i . '_level' ); |
367 | 367 | } |
368 | 368 | } |
369 | 369 | } |
370 | | - |
371 | | - if ($register_data['wiki_id'] || $register_data['wiki_language'] || $register_data['wiki_project']) |
| 370 | + |
| 371 | + if ( $register_data['wiki_id'] || $register_data['wiki_language'] || $register_data['wiki_project'] ) |
372 | 372 | { |
373 | | - if (!$register_data['wiki_id'] || !$register_data['wiki_language'] || !$register_data['wiki_project']) |
374 | | - { |
375 | | - $error_array[] = create_error('not_input_completely', 'wiki_id'); |
| 373 | + if ( !$register_data['wiki_id'] || !$register_data['wiki_language'] || !$register_data['wiki_project'] ) |
| 374 | + { |
| 375 | + $error_array[] = create_error( 'not_input_completely', 'wiki_id' ); |
376 | 376 | } |
377 | 377 | else |
378 | 378 | { |
379 | | - if (!in_array($register_data['wiki_language'],array_keys($WikimediaLanguages)) && !in_array($register_data['wiki_language'],$WikimediaOrgs)) |
380 | | - { |
381 | | - $error_array[] = create_error('wrong', 'wiki_id'); |
| 379 | + if ( !in_array( $register_data['wiki_language'], array_keys( $WikimediaLanguages ) ) && !in_array( $register_data['wiki_language'], $WikimediaOrgs ) ) |
| 380 | + { |
| 381 | + $error_array[] = create_error( 'wrong', 'wiki_id' ); |
382 | 382 | } |
383 | | - elseif (!in_array($register_data['wiki_project'],$WikimediaProjects)) |
| 383 | + elseif ( !in_array( $register_data['wiki_project'], $WikimediaProjects ) ) |
384 | 384 | { |
385 | | - $error_array[] = create_error('wrong', 'wiki_id'); |
| 385 | + $error_array[] = create_error( 'wrong', 'wiki_id' ); |
386 | 386 | } |
387 | | - elseif (in_array($register_data['wiki_language'],$WikimediaOrgs) && $register_data['wiki_project'] != 'wikimedia') |
388 | | - { |
389 | | - $error_array[] = create_error('wrong', 'wiki_id'); |
| 387 | + elseif ( in_array( $register_data['wiki_language'], $WikimediaOrgs ) && $register_data['wiki_project'] != 'wikimedia' ) |
| 388 | + { |
| 389 | + $error_array[] = create_error( 'wrong', 'wiki_id' ); |
390 | 390 | } |
391 | | - elseif (!in_array($register_data['wiki_language'],$WikimediaOrgs) && $register_data['wiki_project'] == 'wikimedia') |
392 | | - { |
393 | | - $error_array[] = create_error('wrong', 'wiki_id'); |
| 391 | + elseif ( !in_array( $register_data['wiki_language'], $WikimediaOrgs ) && $register_data['wiki_project'] == 'wikimedia' ) |
| 392 | + { |
| 393 | + $error_array[] = create_error( 'wrong', 'wiki_id' ); |
394 | 394 | } |
395 | | - if (mb_strlen($register_data['wiki_id'], 'UTF-8') > 100) |
396 | | - { |
397 | | - $error_array[] = create_error('too_long', 'wiki_id', 100); |
| 395 | + if ( mb_strlen( $register_data['wiki_id'], 'UTF-8' ) > 100 ) |
| 396 | + { |
| 397 | + $error_array[] = create_error( 'too_long', 'wiki_id', 100 ); |
398 | 398 | } |
399 | 399 | } |
400 | 400 | } |
401 | 401 | |
402 | | - if (!$register_data['email']) |
403 | | - { |
404 | | - $error_array[] = create_error('not_input', 'email'); |
| 402 | + if ( !$register_data['email'] ) |
| 403 | + { |
| 404 | + $error_array[] = create_error( 'not_input', 'email' ); |
405 | 405 | } |
406 | | - elseif (!isValidEmail($register_data['email'])) |
407 | | - { |
408 | | - $error_array[] = create_error('wrong','email'); |
| 406 | + elseif ( !isValidEmail( $register_data['email'] ) ) |
| 407 | + { |
| 408 | + $error_array[] = create_error( 'wrong', 'email' ); |
409 | 409 | } |
410 | | - elseif (mb_strlen($register_data['email'], 'UTF-8') > 48) |
411 | | - { |
412 | | - $error_array[] = create_error('too_long', 'email', 48); |
| 410 | + elseif ( mb_strlen( $register_data['email'], 'UTF-8' ) > 48 ) |
| 411 | + { |
| 412 | + $error_array[] = create_error( 'too_long', 'email', 48 ); |
413 | 413 | } |
414 | 414 | |
415 | 415 | $join_date_selected = 0; |
416 | 416 | $main_date_selected = 0; |
417 | 417 | |
418 | | - if (is_array($register_data['join_date'])) |
| 418 | + if ( is_array( $register_data['join_date'] ) ) |
419 | 419 | { |
420 | | - for ($i = 1; $i <= 6; $i++) |
| 420 | + for ( $i = 1; $i <= 6; $i++ ) |
421 | 421 | { |
422 | | - if (in_array($i, $register_data['join_date'])) |
| 422 | + if ( in_array( $i, $register_data['join_date'] ) ) |
423 | 423 | { |
424 | 424 | $join_date_selected++; |
425 | | - if (3 <= $i && $i <= 5) |
| 425 | + if ( 3 <= $i && $i <= 5 ) |
426 | 426 | { |
427 | 427 | $main_date_selected++; |
428 | 428 | } |
— | — | @@ -429,237 +429,237 @@ |
430 | 430 | } |
431 | 431 | } |
432 | 432 | |
433 | | - if ($join_date_selected == 0) |
434 | | - { |
435 | | - $error_array[] = create_error('not_select', 'join_date'); |
| 433 | + if ( $join_date_selected == 0 ) |
| 434 | + { |
| 435 | + $error_array[] = create_error( 'not_select', 'join_date' ); |
436 | 436 | } |
437 | 437 | // if ($main_date_selected == 0) |
438 | 438 | // { |
439 | 439 | // $error_array[] = create_error('not_select', 'main_date'); |
440 | 440 | // } |
441 | 441 | |
442 | | - unset($join_date_selected); |
443 | | - unset($main_date_selected); |
| 442 | + unset( $join_date_selected ); |
| 443 | + unset( $main_date_selected ); |
444 | 444 | |
445 | 445 | $showname_entered = false; |
446 | | - if (is_array($register_data['showname'])) |
| 446 | + if ( is_array( $register_data['showname'] ) ) |
447 | 447 | { |
448 | | - for ($i = 1; $i <= 3; $i++) |
| 448 | + for ( $i = 1; $i <= 3; $i++ ) |
449 | 449 | { |
450 | | - if (in_array($i, $register_data['showname'])) |
| 450 | + if ( in_array( $i, $register_data['showname'] ) ) |
451 | 451 | { |
452 | 452 | $showname_entered = true; |
453 | | - |
454 | | - if ($i == 3 && empty($register_data['custom_showname'])) |
| 453 | + |
| 454 | + if ( $i == 3 && empty( $register_data['custom_showname'] ) ) |
455 | 455 | { |
456 | | - $error_array[] = create_error('not_input', 'custom_showname'); |
| 456 | + $error_array[] = create_error( 'not_input', 'custom_showname' ); |
457 | 457 | } |
458 | 458 | } |
459 | 459 | } |
460 | 460 | } |
461 | 461 | |
462 | | - if (!$showname_entered) |
| 462 | + if ( !$showname_entered ) |
463 | 463 | { |
464 | | - $error_array[] = create_error('not_input', 'showname'); |
| 464 | + $error_array[] = create_error( 'not_input', 'showname' ); |
465 | 465 | } |
466 | 466 | |
467 | | - if (mb_strlen($register_data['custom_showname'], 'UTF-8') > 30) |
468 | | - { |
469 | | - $error_array[] = create_error('too_long', 'custom_showname', 30); |
| 467 | + if ( mb_strlen( $register_data['custom_showname'], 'UTF-8' ) > 30 ) |
| 468 | + { |
| 469 | + $error_array[] = create_error( 'too_long', 'custom_showname', 30 ); |
470 | 470 | } |
471 | | - |
472 | | - if (!$register_data['size']) |
473 | | - { |
474 | | - $error_array[] = create_error('not_select', 'size'); |
| 471 | + |
| 472 | + if ( !$register_data['size'] ) |
| 473 | + { |
| 474 | + $error_array[] = create_error( 'not_select', 'size' ); |
475 | 475 | } |
476 | | - elseif (!in_array($register_data['size'], array('XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL'))) |
477 | | - { |
478 | | - $error_array[] = create_error('wrong', 'size'); |
| 476 | + elseif ( !in_array( $register_data['size'], array( 'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL' ) ) ) |
| 477 | + { |
| 478 | + $error_array[] = create_error( 'wrong', 'size' ); |
479 | 479 | } |
480 | | - |
481 | | - if ($register_data['food'] == 3 && empty($register_data['food_other'])) |
| 480 | + |
| 481 | + if ( $register_data['food'] == 3 && empty( $register_data['food_other'] ) ) |
482 | 482 | { |
483 | | - $error_array[] = create_error('not_input', 'food_other'); |
| 483 | + $error_array[] = create_error( 'not_input', 'food_other' ); |
484 | 484 | } |
485 | | - if (mb_strlen($register_data['food_other'], 'UTF-8') > 64) |
486 | | - { |
487 | | - $error_array[] = create_error('too_long', 'food_other', 64); |
| 485 | + if ( mb_strlen( $register_data['food_other'], 'UTF-8' ) > 64 ) |
| 486 | + { |
| 487 | + $error_array[] = create_error( 'too_long', 'food_other', 64 ); |
488 | 488 | } |
489 | | - |
490 | | - if (!$register_data['visa_assistance']) |
491 | | - { |
492 | | - $register_data['visa_assistance'] = 0; |
| 489 | + |
| 490 | + if ( !$register_data['visa_assistance'] ) |
| 491 | + { |
| 492 | + $register_data['visa_assistance'] = 0; |
493 | 493 | } |
494 | 494 | else |
495 | 495 | { |
496 | | - if (!$register_data['nationality']) |
497 | | - { |
498 | | - $error_array[] = create_error('not_select', 'nationality'); |
| 496 | + if ( !$register_data['nationality'] ) |
| 497 | + { |
| 498 | + $error_array[] = create_error( 'not_select', 'nationality' ); |
499 | 499 | } |
500 | | - elseif (!in_array($register_data['nationality'], array_keys($lang_countries))) |
501 | | - { |
502 | | - $error_array[] = create_error('wrong', 'nationality'); |
| 500 | + elseif ( !in_array( $register_data['nationality'], array_keys( $lang_countries ) ) ) |
| 501 | + { |
| 502 | + $error_array[] = create_error( 'wrong', 'nationality' ); |
503 | 503 | } |
504 | | - if (!$register_data['passport']) |
505 | | - { |
506 | | - $error_array[] = create_error('not_input', 'passport'); |
| 504 | + if ( !$register_data['passport'] ) |
| 505 | + { |
| 506 | + $error_array[] = create_error( 'not_input', 'passport' ); |
507 | 507 | } |
508 | 508 | |
509 | | - if (mb_strlen($register_data['passport'], 'UTF-8') > 30) |
510 | | - { |
511 | | - $error_array[] = create_error('too_long', 'passport', 30); |
| 509 | + if ( mb_strlen( $register_data['passport'], 'UTF-8' ) > 30 ) |
| 510 | + { |
| 511 | + $error_array[] = create_error( 'too_long', 'passport', 30 ); |
512 | 512 | } |
513 | | - |
514 | | - if (!$register_data['passport_year'] || !$register_data['passport_month'] || !$register_data['passport_day']) |
515 | | - { |
516 | | - $error_array[] = create_error('not_input_completely', 'passport_valid'); |
| 513 | + |
| 514 | + if ( !$register_data['passport_year'] || !$register_data['passport_month'] || !$register_data['passport_day'] ) |
| 515 | + { |
| 516 | + $error_array[] = create_error( 'not_input_completely', 'passport_valid' ); |
517 | 517 | } |
518 | 518 | |
519 | | - elseif ($register_data['passport_month'] < 1 || $register_data['passport_day'] < 1 || $register_data['passport_year'] < 2011 || $register_data['year'] > 2050) |
520 | | - { |
521 | | - $error_array[] = create_error('incorrect', 'passport_valid'); |
| 519 | + elseif ( $register_data['passport_month'] < 1 || $register_data['passport_day'] < 1 || $register_data['passport_year'] < 2011 || $register_data['year'] > 2050 ) |
| 520 | + { |
| 521 | + $error_array[] = create_error( 'incorrect', 'passport_valid' ); |
522 | 522 | } |
523 | 523 | else |
524 | 524 | { |
525 | | - $register_data['passport_year'] = intval($register_data['passport_year']); |
526 | | - $register_data['passport_month'] = intval($register_data['passport_month']); |
527 | | - $register_data['passport_day'] = intval($register_data['passport_day']); |
528 | | - if (!checkdate($register_data['passport_month'] , $register_data['passport_day'] , $register_data['passport_year'])) |
529 | | - { |
530 | | - $error_array[] = create_error('incorrect', 'passport_valid'); |
| 525 | + $register_data['passport_year'] = intval( $register_data['passport_year'] ); |
| 526 | + $register_data['passport_month'] = intval( $register_data['passport_month'] ); |
| 527 | + $register_data['passport_day'] = intval( $register_data['passport_day'] ); |
| 528 | + if ( !checkdate( $register_data['passport_month'] , $register_data['passport_day'] , $register_data['passport_year'] ) ) |
| 529 | + { |
| 530 | + $error_array[] = create_error( 'incorrect', 'passport_valid' ); |
531 | 531 | } |
532 | 532 | } |
533 | | - |
534 | | - $register_data['passport_valid'] = $register_data['passport_year'].'-'.$register_data['passport_month'].'-'.$register_data['passport_day']; |
535 | 533 | |
536 | | - if (!$register_data['passport_issued']) |
537 | | - { |
538 | | - $error_array[] = create_error('not_input', 'passport_issued'); |
| 534 | + $register_data['passport_valid'] = $register_data['passport_year'] . '-' . $register_data['passport_month'] . '-' . $register_data['passport_day']; |
| 535 | + |
| 536 | + if ( !$register_data['passport_issued'] ) |
| 537 | + { |
| 538 | + $error_array[] = create_error( 'not_input', 'passport_issued' ); |
539 | 539 | } |
540 | 540 | |
541 | | - if (mb_strlen($register_data['passport_issued'], 'UTF-8') > 30) |
542 | | - { |
543 | | - $error_array[] = create_error('too_long', 'passport_issued', 30); |
| 541 | + if ( mb_strlen( $register_data['passport_issued'], 'UTF-8' ) > 30 ) |
| 542 | + { |
| 543 | + $error_array[] = create_error( 'too_long', 'passport_issued', 30 ); |
544 | 544 | } |
545 | | - |
546 | | - if (!$register_data['year'] || !$register_data['month'] || !$register_data['day']) |
547 | | - { |
548 | | - $error_array[] = create_error('not_input_completely', 'birthday'); |
| 545 | + |
| 546 | + if ( !$register_data['year'] || !$register_data['month'] || !$register_data['day'] ) |
| 547 | + { |
| 548 | + $error_array[] = create_error( 'not_input_completely', 'birthday' ); |
549 | 549 | } |
550 | 550 | |
551 | | - elseif ($register_data['month'] < 1 || $register_data['day'] < 1 || $register_data['year'] < 1900 || $register_data['year'] > 2011) |
552 | | - { |
553 | | - $error_array[] = create_error('incorrect', 'birthday'); |
| 551 | + elseif ( $register_data['month'] < 1 || $register_data['day'] < 1 || $register_data['year'] < 1900 || $register_data['year'] > 2011 ) |
| 552 | + { |
| 553 | + $error_array[] = create_error( 'incorrect', 'birthday' ); |
554 | 554 | } |
555 | 555 | else |
556 | 556 | { |
557 | | - $register_data['year'] = intval($register_data['year']); |
558 | | - $register_data['month'] = intval($register_data['month']); |
559 | | - $register_data['day'] = intval($register_data['day']); |
560 | | - if (!checkdate($register_data['month'] , $register_data['day'] , $register_data['year'])) |
561 | | - { |
562 | | - $error_array[] = create_error('incorrect', 'birthday'); |
| 557 | + $register_data['year'] = intval( $register_data['year'] ); |
| 558 | + $register_data['month'] = intval( $register_data['month'] ); |
| 559 | + $register_data['day'] = intval( $register_data['day'] ); |
| 560 | + if ( !checkdate( $register_data['month'] , $register_data['day'] , $register_data['year'] ) ) |
| 561 | + { |
| 562 | + $error_array[] = create_error( 'incorrect', 'birthday' ); |
563 | 563 | } |
564 | 564 | } |
565 | | - |
566 | | - $register_data['birthday'] = $register_data['year'].'-'.$register_data['month'].'-'.$register_data['day']; |
567 | 565 | |
568 | | - if (!$register_data['countryofbirth']) |
569 | | - { |
570 | | - $error_array[] = create_error('not_select', 'countryofbirth'); |
| 566 | + $register_data['birthday'] = $register_data['year'] . '-' . $register_data['month'] . '-' . $register_data['day']; |
| 567 | + |
| 568 | + if ( !$register_data['countryofbirth'] ) |
| 569 | + { |
| 570 | + $error_array[] = create_error( 'not_select', 'countryofbirth' ); |
571 | 571 | } |
572 | | - elseif (!in_array($register_data['countryofbirth'], array_keys($lang_countries))) |
573 | | - { |
574 | | - $error_array[] = create_error('wrong', 'countryofbirth'); |
| 572 | + elseif ( !in_array( $register_data['countryofbirth'], array_keys( $lang_countries ) ) ) |
| 573 | + { |
| 574 | + $error_array[] = create_error( 'wrong', 'countryofbirth' ); |
575 | 575 | } |
576 | | - if (!$register_data['homeaddress']) |
| 576 | + if ( !$register_data['homeaddress'] ) |
577 | 577 | { |
578 | | - $error_array[] = create_error('not_input', 'homeaddress'); |
| 578 | + $error_array[] = create_error( 'not_input', 'homeaddress' ); |
579 | 579 | } |
580 | | - elseif (mb_strlen($register_data['homeaddress'], 'UTF-8') > 500) |
581 | | - { |
582 | | - $error_array[] = create_error('too_long', 'homeaddress', 500); |
| 580 | + elseif ( mb_strlen( $register_data['homeaddress'], 'UTF-8' ) > 500 ) |
| 581 | + { |
| 582 | + $error_array[] = create_error( 'too_long', 'homeaddress', 500 ); |
583 | 583 | } |
584 | | - if (mb_strlen($register_data['visa_assistance_description'], 'UTF-8') > 500) |
585 | | - { |
586 | | - $error_array[] = create_error('too_long', 'visa_assistance_description', 500); |
| 584 | + if ( mb_strlen( $register_data['visa_assistance_description'], 'UTF-8' ) > 500 ) |
| 585 | + { |
| 586 | + $error_array[] = create_error( 'too_long', 'visa_assistance_description', 500 ); |
587 | 587 | } |
588 | 588 | } |
589 | | - |
| 589 | + |
590 | 590 | $nights_selected = 0; |
591 | | - if (is_array($register_data['nights'])) |
| 591 | + if ( is_array( $register_data['nights'] ) ) |
592 | 592 | { |
593 | | - for ($i = 1; $i <= 8; $i++) |
| 593 | + for ( $i = 1; $i <= 8; $i++ ) |
594 | 594 | { |
595 | | - if (in_array($i, $register_data['nights'])) |
| 595 | + if ( in_array( $i, $register_data['nights'] ) ) |
596 | 596 | { |
597 | 597 | $nights_selected++; |
598 | 598 | } |
599 | 599 | } |
600 | 600 | } |
601 | 601 | $room_selected = false; |
602 | | - for ($i = 1; $i <= 3; $i++) |
| 602 | + for ( $i = 1; $i <= 3; $i++ ) |
603 | 603 | { |
604 | | - if ($register_data['room'] == $i) |
| 604 | + if ( $register_data['room'] == $i ) |
605 | 605 | { |
606 | 606 | $room_selected = true; |
607 | 607 | } |
608 | 608 | } |
609 | | - if ($room_selected == false && $nights_selected > 0) |
610 | | - { |
611 | | - $error_array[] = create_error('not_select', 'room'); |
| 609 | + if ( $room_selected == false && $nights_selected > 0 ) |
| 610 | + { |
| 611 | + $error_array[] = create_error( 'not_select', 'room' ); |
612 | 612 | } |
613 | | - if ($register_data['room'] == 3 && empty($register_data['room_partner'])) |
| 613 | + if ( $register_data['room'] == 3 && empty( $register_data['room_partner'] ) ) |
614 | 614 | { |
615 | | - $error_array[] = create_error('not_input', 'room_partner'); |
| 615 | + $error_array[] = create_error( 'not_input', 'room_partner' ); |
616 | 616 | } |
617 | | - if (mb_strlen($register_data['room_partner'], 'UTF-8') > 64) |
618 | | - { |
619 | | - $error_array[] = create_error('too_long', 'room_partner', 64); |
| 617 | + if ( mb_strlen( $register_data['room_partner'], 'UTF-8' ) > 64 ) |
| 618 | + { |
| 619 | + $error_array[] = create_error( 'too_long', 'room_partner', 64 ); |
620 | 620 | } |
621 | 621 | |
622 | | - if (mb_strlen($register_data['room_requests'], 'UTF-8') > 500) |
623 | | - { |
624 | | - $error_array[] = create_error('too_long', 'room_requests', 500); |
| 622 | + if ( mb_strlen( $register_data['room_requests'], 'UTF-8' ) > 500 ) |
| 623 | + { |
| 624 | + $error_array[] = create_error( 'too_long', 'room_requests', 500 ); |
625 | 625 | } |
626 | | - |
| 626 | + |
627 | 627 | $hotel_selected = false; |
628 | | - for ($i = 1; $i <= 9; $i++) |
| 628 | + for ( $i = 1; $i <= 9; $i++ ) |
629 | 629 | { |
630 | | - if ($register_data['hotels'] == $i) |
| 630 | + if ( $register_data['hotels'] == $i ) |
631 | 631 | { |
632 | 632 | $hotel_selected = true; |
633 | 633 | } |
634 | 634 | } |
635 | | - if ($hotel_selected == false && $nights_selected > 0) |
636 | | - { |
637 | | - $error_array[] = create_error('not_select', 'accommodation_hotel'); |
| 635 | + if ( $hotel_selected == false && $nights_selected > 0 ) |
| 636 | + { |
| 637 | + $error_array[] = create_error( 'not_select', 'accommodation_hotel' ); |
638 | 638 | } |
639 | | - |
640 | | - unset($room_selected); |
641 | | - unset($nights_selected); |
642 | | - unset($hotel_selected); |
643 | 639 | |
644 | | - |
645 | | - |
646 | | - if (mb_strlen($register_data['discount_code'], 'UTF-8') > 18) |
647 | | - { |
648 | | - $error_array[] = create_error('too_long', 'discount_code', 18); |
| 640 | + unset( $room_selected ); |
| 641 | + unset( $nights_selected ); |
| 642 | + unset( $hotel_selected ); |
| 643 | + |
| 644 | + |
| 645 | + |
| 646 | + if ( mb_strlen( $register_data['discount_code'], 'UTF-8' ) > 18 ) |
| 647 | + { |
| 648 | + $error_array[] = create_error( 'too_long', 'discount_code', 18 ); |
649 | 649 | } |
650 | | - |
651 | | - if (!empty($error_array)) |
| 650 | + |
| 651 | + if ( !empty( $error_array ) ) |
652 | 652 | { |
653 | | - $error_message = '<ul>'."\n".'<li>' . implode('</li>'."\n".'<li>', $error_array) . '</li>'."\n".'</ul>'; |
| 653 | + $error_message = '<ul>' . "\n" . '<li>' . implode( '</li>' . "\n" . '<li>', $error_array ) . '</li>' . "\n" . '</ul>'; |
654 | 654 | regform(); |
655 | | - unset($error_array); |
| 655 | + unset( $error_array ); |
656 | 656 | return 0; |
657 | 657 | } |
658 | 658 | |
659 | 659 | /* calculate all costs! |
660 | 660 | * seems like a weird place to do it, but as it is required by both the confirmation and submission phase |
661 | 661 | * it actually makes some sense */ |
662 | | - $cost = calculate_cost($register_data); |
663 | | - $register_data = array_merge($register_data, $cost); |
| 662 | + $cost = calculate_cost( $register_data ); |
| 663 | + $register_data = array_merge( $register_data, $cost ); |
664 | 664 | return 1; |
665 | 665 | } |
666 | 666 | |
— | — | @@ -670,14 +670,14 @@ |
671 | 671 | { |
672 | 672 | global $register_data; |
673 | 673 | |
674 | | - if (!$_SESSION['register_form']) exit; // Avoid something bad :( |
| 674 | + if ( !$_SESSION['register_form'] ) exit; // Avoid something bad :( |
675 | 675 | |
676 | 676 | /* Get data checked!! */ |
677 | | - if (!check_register_data(true)) return; |
| 677 | + if ( !check_register_data( true ) ) return; |
678 | 678 | |
679 | 679 | /* Create Secret ID2 */ |
680 | | - $_SESSION['secret'] = md5($register_data['signuptime']); |
681 | | - |
| 680 | + $_SESSION['secret'] = md5( $register_data['signuptime'] ); |
| 681 | + |
682 | 682 | /* Show result */ |
683 | 683 | include 'skin/html_header.php'; |
684 | 684 | include 'skin/confirm_data.php'; |
— | — | @@ -692,114 +692,114 @@ |
693 | 693 | { |
694 | 694 | global $sql, $WikimediaLanguages, $WikimediaOrgs, $WikimediaProjects, $error_array, $error_message, $register_data, $wikimania_cost, $accommodation_cost, $other_cost, $user_cost, $lang_errors, $lang_register_form; |
695 | 695 | |
696 | | - if (!$_SESSION['register_form']) exit; // Avoid something bad :( |
| 696 | + if ( !$_SESSION['register_form'] ) exit; // Avoid something bad :( |
697 | 697 | |
698 | 698 | /* Get data checked!! */ |
699 | | - if (!check_register_data(false)) { |
700 | | - die('Problem with data.'); |
| 699 | + if ( !check_register_data( false ) ) { |
| 700 | + die( 'Problem with data.' ); |
701 | 701 | } |
702 | 702 | |
703 | 703 | /* Reset? */ |
704 | | - if ($_POST['submit']==$lang_register_form['reset']) |
| 704 | + if ( $_POST['submit'] == $lang_register_form['reset'] ) |
705 | 705 | { |
706 | 706 | regform(); |
707 | 707 | return; |
708 | 708 | } |
709 | 709 | |
710 | 710 | /* Hacking attempt? */ |
711 | | - if ($_SESSION['secret'] != $_POST['secret_id2'] && (!empty($_POST['secret_id2']))) |
| 711 | + if ( $_SESSION['secret'] != $_POST['secret_id2'] && ( !empty( $_POST['secret_id2'] ) ) ) |
712 | 712 | { |
713 | | - die( 'Hacking attempt or session recording error. Try turning on cookies and try again.'); |
| 713 | + die( 'Hacking attempt or session recording error. Try turning on cookies and try again.' ); |
714 | 714 | } |
715 | 715 | /* No Repeat */ |
716 | | - $test_code_result = $sql->selectData('registration', array(), '`surname`=\''.$sql->EscapeString($register_data['surname']).'\''. |
717 | | - ' AND `given_name`=\''.$sql->EscapeString($register_data['given_name']).'\''. |
718 | | - ' AND `email`=\''.$sql->EscapeString($register_data['email']).'\''); |
719 | | - if (is_array($sql->fetchArray($test_code_result))) |
| 716 | + $test_code_result = $sql->selectData( 'registration', array(), '`surname`=\'' . $sql->EscapeString( $register_data['surname'] ) . '\'' . |
| 717 | + ' AND `given_name`=\'' . $sql->EscapeString( $register_data['given_name'] ) . '\'' . |
| 718 | + ' AND `email`=\'' . $sql->EscapeString( $register_data['email'] ) . '\'' ); |
| 719 | + if ( is_array( $sql->fetchArray( $test_code_result ) ) ) |
720 | 720 | { |
721 | 721 | echo $lang_errors['repeat']; |
722 | 722 | return; |
723 | 723 | } |
724 | | - mysql_free_result($test_code_result); |
725 | | - |
| 724 | + mysql_free_result( $test_code_result ); |
| 725 | + |
726 | 726 | /* format sign-up time */ |
727 | | - $register_data['signuptime'] = gmdate('Y-m-d H:i:s', $register_data['signuptime'] ); |
| 727 | + $register_data['signuptime'] = gmdate( 'Y-m-d H:i:s', $register_data['signuptime'] ); |
728 | 728 | |
729 | 729 | /* Unset input data that is covered by other fields (birthday, passport_valid) */ |
730 | | - unset($register_data['year']); |
731 | | - unset($register_data['month']); |
732 | | - unset($register_data['day']); |
733 | | - unset($register_data['passport_year']); |
734 | | - unset($register_data['passport_month']); |
735 | | - unset($register_data['passport_day']); |
736 | | - |
| 730 | + unset( $register_data['year'] ); |
| 731 | + unset( $register_data['month'] ); |
| 732 | + unset( $register_data['day'] ); |
| 733 | + unset( $register_data['passport_year'] ); |
| 734 | + unset( $register_data['passport_month'] ); |
| 735 | + unset( $register_data['passport_day'] ); |
| 736 | + |
737 | 737 | /* Transform arrays into comma-delimited strings for use with SET type fields */ |
738 | | - if (array_key_exists('join_date', $register_data)) |
739 | | - $register_data['join_date'] = implode(',', $register_data['join_date']); |
740 | | - if (array_key_exists('showname', $register_data)) |
741 | | - $register_data['showname'] = implode(',', $register_data['showname']); |
742 | | - if (array_key_exists('nights', $register_data)) |
743 | | - $register_data['nights'] = implode(',', $register_data['nights']); |
744 | | - |
| 738 | + if ( array_key_exists( 'join_date', $register_data ) ) |
| 739 | + $register_data['join_date'] = implode( ',', $register_data['join_date'] ); |
| 740 | + if ( array_key_exists( 'showname', $register_data ) ) |
| 741 | + $register_data['showname'] = implode( ',', $register_data['showname'] ); |
| 742 | + if ( array_key_exists( 'nights', $register_data ) ) |
| 743 | + $register_data['nights'] = implode( ',', $register_data['nights'] ); |
| 744 | + |
745 | 745 | /* Create Unique Data, avoid repeat */ |
746 | | - for ($i=1; $i<=100; $i++) /* 100 times are too much... */ |
| 746 | + for ( $i = 1; $i <= 100; $i++ ) /* 100 times are too much... */ |
747 | 747 | { |
748 | | - $register_data['unique_code'] = substr(md5(uniqid(mt_rand(),true)), 3, 5); |
749 | | - $test_code_result = $sql->selectData('registration', array(), '`unique_code`=\''.$register_data['unique_code'].'\''); |
750 | | - if (!is_array($sql->fetchArray($test_code_result))) |
| 748 | + $register_data['unique_code'] = substr( md5( uniqid( mt_rand(), true ) ), 3, 5 ); |
| 749 | + $test_code_result = $sql->selectData( 'registration', array(), '`unique_code`=\'' . $register_data['unique_code'] . '\'' ); |
| 750 | + if ( !is_array( $sql->fetchArray( $test_code_result ) ) ) |
751 | 751 | break; /* successfully found the code that is not same */ |
752 | 752 | } |
753 | 753 | |
754 | 754 | /* Write into database */ |
755 | | - $result = $sql->insertData('registration', $register_data); |
756 | | - if (!$result) |
| 755 | + $result = $sql->insertData( 'registration', $register_data ); |
| 756 | + if ( !$result ) |
757 | 757 | { |
758 | | - die('Registration system error, please contact the Wikimania team.'); |
| 758 | + die( 'Registration system error, please contact the Wikimania team.' ); |
759 | 759 | } |
760 | 760 | |
761 | 761 | /* Send mail */ |
762 | 762 | include 'skin/mail_successful.php'; |
763 | | - $mail_successful_content = preg_replace('/\$1/',$register_data['given_name'].' '.$register_data['surname'], $mail_successful_content); |
764 | | - $mail_successful_content = preg_replace('/\$2/',$register_data['unique_code'], $mail_successful_content); |
765 | | - $mail_successful_content = preg_replace('/\$3/',$register_data['email'], $mail_successful_content); |
766 | | - |
767 | | - $to = $register_data['given_name'].' '.$register_data['surname'].' <'.$register_data['email'].'>'; |
768 | | - if (!mail_msg($to, 'Wikimania 2011 - Registration Received', $mail_successful_content)) |
| 763 | + $mail_successful_content = preg_replace( '/\$1/', $register_data['given_name'] . ' ' . $register_data['surname'], $mail_successful_content ); |
| 764 | + $mail_successful_content = preg_replace( '/\$2/', $register_data['unique_code'], $mail_successful_content ); |
| 765 | + $mail_successful_content = preg_replace( '/\$3/', $register_data['email'], $mail_successful_content ); |
| 766 | + |
| 767 | + $to = $register_data['given_name'] . ' ' . $register_data['surname'] . ' <' . $register_data['email'] . '>'; |
| 768 | + if ( !mail_msg( $to, 'Wikimania 2011 - Registration Received', $mail_successful_content ) ) |
769 | 769 | { |
770 | 770 | echo 'Notice: Mail delivery error. Contact Wikimania team.'; |
771 | 771 | } |
772 | | - |
| 772 | + |
773 | 773 | /* Show result */ |
774 | 774 | include 'skin/html_header.php'; |
775 | 775 | include 'skin/register_successful.php'; |
776 | | - include 'skin/paypal.php'; |
| 776 | + include 'skin/paypal.php'; |
777 | 777 | include 'skin/html_footer.php'; |
778 | 778 | } |
779 | 779 | |
780 | 780 | /** |
781 | | - * After PayPal transmission successful, display a message |
| 781 | + * After PayPal transmission successful, display a message |
782 | 782 | */ |
783 | 783 | function paypal_successful() |
784 | 784 | { |
785 | 785 | global $MY_REQUEST, $sql; |
786 | | - if (!$MY_REQUEST['unique_code'] || empty($MY_REQUEST['unique_code']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['unique_code'])) |
| 786 | + if ( !$MY_REQUEST['unique_code'] || empty( $MY_REQUEST['unique_code'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['unique_code'] ) ) |
787 | 787 | { |
788 | 788 | exit; /* invaild information? bye bye :) */ |
789 | 789 | } |
790 | 790 | /* Hacking attempt? */ |
791 | | - if ((md5($_SESSION['secret'] . $MY_REQUEST['unique_code']) != $MY_REQUEST['nonce']) || (empty($MY_REQUEST['nonce']))) |
| 791 | + if ( ( md5( $_SESSION['secret'] . $MY_REQUEST['unique_code'] ) != $MY_REQUEST['nonce'] ) || ( empty( $MY_REQUEST['nonce'] ) ) ) |
792 | 792 | { |
793 | | - die( 'Hacking attempt or session recording error. Please contact the Wikimania team.'); |
| 793 | + die( 'Hacking attempt or session recording error. Please contact the Wikimania team.' ); |
794 | 794 | } |
795 | 795 | |
796 | | - $test_code_result = $sql->selectData('registration', array(), '`unique_code`=\''.$MY_REQUEST['unique_code'].'\''); |
797 | | - $test_code_array = $sql->fetchArray($test_code_result); |
798 | | - if (!is_array($test_code_array)) {exit;} /* didn't find vaild unique id */ |
| 796 | + $test_code_result = $sql->selectData( 'registration', array(), '`unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ); |
| 797 | + $test_code_array = $sql->fetchArray( $test_code_result ); |
| 798 | + if ( !is_array( $test_code_array ) ) { exit; } /* didn't find vaild unique id */ |
799 | 799 | |
800 | | - if ($test_code_array['paypal']) exit; |
| 800 | + if ( $test_code_array['paypal'] ) exit; |
801 | 801 | |
802 | 802 | /* OK, now write paypal ok :) */ |
803 | | - if (!$sql->updateData('registration', array('paypal' => '1'), '`unique_code`=\''.$MY_REQUEST['unique_code'].'\'')) |
| 803 | + if ( !$sql->updateData( 'registration', array( 'paypal' => '1' ), '`unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ) ) |
804 | 804 | { echo 'SYSTEM ERROR'; return; } |
805 | 805 | |
806 | 806 | include 'skin/html_header.php'; |
— | — | @@ -808,21 +808,21 @@ |
809 | 809 | } |
810 | 810 | |
811 | 811 | /** |
812 | | - * After PayPal transmission failed, display a message |
| 812 | + * After PayPal transmission failed, display a message |
813 | 813 | */ |
814 | 814 | function paypal_failed() |
815 | 815 | { |
816 | 816 | global $MY_REQUEST, $sql; |
817 | | - if (!$MY_REQUEST['unique_code'] || empty($MY_REQUEST['unique_code']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['unique_code'])) |
| 817 | + if ( !$MY_REQUEST['unique_code'] || empty( $MY_REQUEST['unique_code'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['unique_code'] ) ) |
818 | 818 | { |
819 | 819 | exit; /* invaild information? bye bye :) */ |
820 | 820 | } |
821 | 821 | |
822 | | - $test_code_result = $sql->selectData('registration', array(), '`unique_code`=\''.$MY_REQUEST['unique_code'].'\''); |
823 | | - $test_code_array = $sql->fetchArray($test_code_result); |
824 | | - if (!is_array($test_code_array)) {exit;} /* found vaild unique id */ |
| 822 | + $test_code_result = $sql->selectData( 'registration', array(), '`unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ); |
| 823 | + $test_code_array = $sql->fetchArray( $test_code_result ); |
| 824 | + if ( !is_array( $test_code_array ) ) { exit; } /* found vaild unique id */ |
825 | 825 | |
826 | | - if ($test_code_array['paypal']) exit; |
| 826 | + if ( $test_code_array['paypal'] ) exit; |
827 | 827 | |
828 | 828 | $register_data = $test_code_array; |
829 | 829 | include 'skin/html_header.php'; |
— | — | @@ -834,190 +834,190 @@ |
835 | 835 | |
836 | 836 | function administration() |
837 | 837 | { |
838 | | - global $_SESSION, $sql, $register_data, $MY_REQUEST, $table_data, $error_array, |
839 | | - $error_message, $lang_countries, $lang_register_form; |
| 838 | + global $_SESSION, $sql, $register_data, $MY_REQUEST, $table_data, $error_array, |
| 839 | + $error_message, $lang_countries, $lang_register_form; |
840 | 840 | |
841 | 841 | /* check for login. If not, show login form */ |
842 | | - if (!$_SESSION['logged_in']) |
| 842 | + if ( !$_SESSION['logged_in'] ) |
843 | 843 | { |
844 | | - header('Location:'.$myself_url.'index.php?action=login'); |
| 844 | + header( 'Location:' . $myself_url . 'index.php?action=login' ); |
845 | 845 | return; |
846 | 846 | } |
847 | 847 | |
848 | 848 | /* No strange mode */ |
849 | | - if (!in_array($MY_REQUEST['mode'], array(NULL, 'topic', 'accommodation', 'visa', 'pay'))) |
| 849 | + if ( !in_array( $MY_REQUEST['mode'], array( NULL, 'topic', 'accommodation', 'visa', 'pay' ) ) ) |
850 | 850 | return; |
851 | 851 | |
852 | 852 | /* Admin options first */ |
853 | | - switch ($MY_REQUEST['modification']) |
| 853 | + switch ( $MY_REQUEST['modification'] ) |
854 | 854 | { |
855 | 855 | case 'edit_user': |
856 | 856 | |
857 | | - if (!$MY_REQUEST['unique_code'] || empty($MY_REQUEST['unique_code']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['unique_code'])) |
| 857 | + if ( !$MY_REQUEST['unique_code'] || empty( $MY_REQUEST['unique_code'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['unique_code'] ) ) |
858 | 858 | { |
859 | 859 | $error_array[] = 'filled out the wrong code'; /* invaild information */ |
860 | 860 | break; |
861 | 861 | } |
862 | | - |
| 862 | + |
863 | 863 | /* Get Data */ |
864 | | - $result = $sql->selectData('registration', array(), '`surname`=\''.$sql->EscapeString($MY_REQUEST['surname']).'\' AND `given_name` = \''.$sql->EscapeString($MY_REQUEST['given_name']).'\' AND `unique_code`=\''.$MY_REQUEST['unique_code'].'\''); |
865 | | - if (!$data = $sql->fetchAssoc($result)) |
| 864 | + $result = $sql->selectData( 'registration', array(), '`surname`=\'' . $sql->EscapeString( $MY_REQUEST['surname'] ) . '\' AND `given_name` = \'' . $sql->EscapeString( $MY_REQUEST['given_name'] ) . '\' AND `unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ); |
| 865 | + if ( !$data = $sql->fetchAssoc( $result ) ) |
866 | 866 | { |
867 | | - $error_array[] = ''; |
| 867 | + $error_array[] = ''; |
868 | 868 | break; |
869 | 869 | } |
870 | | - mysql_free_result($result); |
| 870 | + mysql_free_result( $result ); |
871 | 871 | |
872 | | - if ($MY_REQUEST['item'] == 1) |
| 872 | + if ( $MY_REQUEST['item'] == 1 ) |
873 | 873 | { |
874 | | - $MY_REQUEST['cost_paid'] = round($MY_REQUEST['cost_paid'], 2); |
875 | | - if ($MY_REQUEST['cost_paid'] == 0) |
| 874 | + $MY_REQUEST['cost_paid'] = round( $MY_REQUEST['cost_paid'], 2 ); |
| 875 | + if ( $MY_REQUEST['cost_paid'] == 0 ) |
876 | 876 | { |
877 | 877 | $error_array[] = 'Received a wrong amount or zero.'; /* invaild information */ |
878 | 878 | break; |
879 | | - } |
880 | | - |
| 879 | + } |
| 880 | + |
881 | 881 | /* Send data */ |
882 | 882 | // add or substract the input sum |
883 | | - if(!$sql->updateData('registration', array('cost_paid'=>($data['cost_paid']+$MY_REQUEST['cost_paid'])), '`unique_code`=\''.$MY_REQUEST['unique_code'].'\'')) |
884 | | - {echo 'SYSTEM ERROR'; return;} |
| 883 | + if ( !$sql->updateData( 'registration', array( 'cost_paid' => ( $data['cost_paid'] + $MY_REQUEST['cost_paid'] ) ), '`unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ) ) |
| 884 | + { echo 'SYSTEM ERROR'; return; } |
885 | 885 | |
886 | | - $error_array[] = $MY_REQUEST['given_name'].' '. $MY_REQUEST['surname'] .': Payment adjustment has been completed'; |
| 886 | + $error_array[] = $MY_REQUEST['given_name'] . ' ' . $MY_REQUEST['surname'] . ': Payment adjustment has been completed'; |
887 | 887 | $MY_REQUEST['cost_paid'] = 0; |
888 | 888 | $MY_REQUEST['unique_code'] = ''; |
889 | 889 | $MY_REQUEST['surname'] = ''; |
890 | 890 | $MY_REQUEST['given_name'] = ''; |
891 | 891 | } |
892 | 892 | // @todo finish this |
893 | | - elseif ($MY_REQUEST['item'] == 2) |
| 893 | + elseif ( $MY_REQUEST['item'] == 2 ) |
894 | 894 | { |
895 | 895 | $register_data = array( |
896 | | - 'join_date' => implode(',', $MY_REQUEST['join_date']), |
897 | | - 'nights' => implode(',', $MY_REQUEST['nights']), |
| 896 | + 'join_date' => implode( ',', $MY_REQUEST['join_date'] ), |
| 897 | + 'nights' => implode( ',', $MY_REQUEST['nights'] ), |
898 | 898 | 'hotels' => $MY_REQUEST['hotels'], |
899 | 899 | 'room_number' => $MY_REQUEST['room_number'] |
900 | 900 | ); |
901 | 901 | } |
902 | | - elseif ($MY_REQUEST['item'] == 3) |
| 902 | + elseif ( $MY_REQUEST['item'] == 3 ) |
903 | 903 | { |
904 | | - var_dump($MY_REQUEST); |
| 904 | + var_dump( $MY_REQUEST ); |
905 | 905 | $register_data = array( |
906 | 906 | ); |
907 | 907 | } |
908 | 908 | |
909 | | - if ($MY_REQUEST['item'] == 2 || $MY_REQUEST['item'] == 3) |
| 909 | + if ( $MY_REQUEST['item'] == 2 || $MY_REQUEST['item'] == 3 ) |
910 | 910 | { |
911 | 911 | /* Send data */ |
912 | | - if(!$sql->updateData('registration', $register_data, '`unique_code`=\''.$MY_REQUEST['unique_code'].'\'')) |
913 | | - {echo 'SYSTEM ERROR'; return;} |
914 | | - if ($MY_REQUEST['item'] == 2) |
915 | | - { $error_array[] = $MY_REQUEST['given_name'].' '. $MY_REQUEST['surname'] .': Accommodation modification has been completed successfully';} |
916 | | - elseif ($MY_REQUEST['item'] == 3) |
917 | | - { $error_array[] = $MY_REQUEST['given_name'].' '. $MY_REQUEST['surname'] .': Tag and identity modification has been completed successfully';} |
| 912 | + if ( !$sql->updateData( 'registration', $register_data, '`unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ) ) |
| 913 | + { echo 'SYSTEM ERROR'; return; } |
| 914 | + if ( $MY_REQUEST['item'] == 2 ) |
| 915 | + { $error_array[] = $MY_REQUEST['given_name'] . ' ' . $MY_REQUEST['surname'] . ': Accommodation modification has been completed successfully'; } |
| 916 | + elseif ( $MY_REQUEST['item'] == 3 ) |
| 917 | + { $error_array[] = $MY_REQUEST['given_name'] . ' ' . $MY_REQUEST['surname'] . ': Tag and identity modification has been completed successfully'; } |
918 | 918 | } |
919 | 919 | break; |
920 | | - |
| 920 | + |
921 | 921 | case 'change_status': |
922 | | - |
923 | | - $MY_REQUEST['status'] = intval($MY_REQUEST['status']); |
924 | | - if ($MY_REQUEST['status'] != 1 && $MY_REQUEST['status'] != 2 ) |
| 922 | + |
| 923 | + $MY_REQUEST['status'] = intval( $MY_REQUEST['status'] ); |
| 924 | + if ( $MY_REQUEST['status'] != 1 && $MY_REQUEST['status'] != 2 ) |
925 | 925 | { break; } |
926 | | - |
927 | | - if (!is_array($MY_REQUEST['no'])) |
| 926 | + |
| 927 | + if ( !is_array( $MY_REQUEST['no'] ) ) |
928 | 928 | { break; } |
929 | | - |
930 | | - foreach ($MY_REQUEST['no'] as $no) |
| 929 | + |
| 930 | + foreach ( $MY_REQUEST['no'] as $no ) |
931 | 931 | { |
932 | 932 | /* Accepted, rejected, or even not exist? */ |
933 | | - $result = $sql->selectData('registration',NULL,'`unique_code`=\''.$no.'\''); |
934 | | - if (!($data = $sql->fetchArray($result))) |
| 933 | + $result = $sql->selectData( 'registration', NULL, '`unique_code`=\'' . $no . '\'' ); |
| 934 | + if ( !( $data = $sql->fetchArray( $result ) ) ) |
935 | 935 | { |
936 | | - $error_array[] = 'Couldn\'t find the registration of information of #'.$no ; |
| 936 | + $error_array[] = 'Couldn\'t find the registration of information of #' . $no ; |
937 | 937 | continue; |
938 | 938 | } |
939 | | - |
940 | | - if($data['status'] != 0) |
| 939 | + |
| 940 | + if ( $data['status'] != 0 ) |
941 | 941 | { |
942 | | - $error_array[] = $data['given_name'].' '. $data['surname'].'(No. '.$no.') has been accepted or rejected, so the change couldn\'t be done.'; |
| 942 | + $error_array[] = $data['given_name'] . ' ' . $data['surname'] . '(No. ' . $no . ') has been accepted or rejected, so the change couldn\'t be done.'; |
943 | 943 | continue; |
944 | 944 | } |
945 | | - |
946 | | - if ($MY_REQUEST['status'] == 1 && $data['cost_total'] > $data['cost_paid']) |
| 945 | + |
| 946 | + if ( $MY_REQUEST['status'] == 1 && $data['cost_total'] > $data['cost_paid'] ) |
947 | 947 | { |
948 | | - $error_array[] = $data['given_name'].' '. $data['surname'].' ('.$no.') hasn\'t completed payment, so registration couldn\'t be confirmed.'; |
| 948 | + $error_array[] = $data['given_name'] . ' ' . $data['surname'] . ' (' . $no . ') hasn\'t completed payment, so registration couldn\'t be confirmed.'; |
949 | 949 | continue; |
950 | 950 | } |
951 | | - |
952 | | - if ($MY_REQUEST['status'] == 1) |
| 951 | + |
| 952 | + if ( $MY_REQUEST['status'] == 1 ) |
953 | 953 | { |
954 | | - if ($sql->updateData('registration', array('status'=>$MY_REQUEST['status']), '`unique_code`=\''.$no.'\'')) |
955 | | - { $error_array[] =$data['given_name'].' '. $data['surname'].'('.$no.') has been confirmed successfully.'; } |
| 954 | + if ( $sql->updateData( 'registration', array( 'status' => $MY_REQUEST['status'] ), '`unique_code`=\'' . $no . '\'' ) ) |
| 955 | + { $error_array[] = $data['given_name'] . ' ' . $data['surname'] . '(' . $no . ') has been confirmed successfully.'; } |
956 | 956 | else |
957 | | - { $error_array[] =$data['given_name'].' '. $data['surname'].'('.$no.') is not confirmed due to databse error.'; } |
| 957 | + { $error_array[] = $data['given_name'] . ' ' . $data['surname'] . '(' . $no . ') is not confirmed due to databse error.'; } |
958 | 958 | } |
959 | | - else if ($MY_REQUEST['status'] == 2) |
| 959 | + else if ( $MY_REQUEST['status'] == 2 ) |
960 | 960 | { |
961 | | - if ($sql->updateData('registration', array('status'=>$MY_REQUEST['status']), '`unique_code`=\''.$no.'\'')) |
962 | | - { $error_array[] =$data['given_name'].' '. $data['surname'].'('.$no.') has been rejected successfully.'; } |
| 961 | + if ( $sql->updateData( 'registration', array( 'status' => $MY_REQUEST['status'] ), '`unique_code`=\'' . $no . '\'' ) ) |
| 962 | + { $error_array[] = $data['given_name'] . ' ' . $data['surname'] . '(' . $no . ') has been rejected successfully.'; } |
963 | 963 | else |
964 | | - { $error_array[] =$data['given_name'].' '. $data['surname'].'('.$no.') is not rejected due to database error.'; } |
965 | | - } |
966 | | - |
967 | | - if ($MY_REQUEST['status'] == 1) |
| 964 | + { $error_array[] = $data['given_name'] . ' ' . $data['surname'] . '(' . $no . ') is not rejected due to database error.'; } |
| 965 | + } |
| 966 | + |
| 967 | + if ( $MY_REQUEST['status'] == 1 ) |
968 | 968 | { |
969 | 969 | /* Send mail */ |
970 | 970 | // $temp_accommodation = ''; |
971 | 971 | // $temp_nights = array(NULL, 'July 16', 'July 17', 'July 18', 'July 19'); |
972 | | -// |
| 972 | +// |
973 | 973 | // for ($i = 1; $i <= 4; $i++) |
974 | 974 | // { |
975 | 975 | // if ($data['night'.$i]) |
976 | 976 | // { $temp_accommodation = $temp_accommodation . $temp_nights[$i].', '; } |
977 | 977 | // } |
978 | 978 | // unset($temp_nights); |
979 | | -// |
| 979 | +// |
980 | 980 | // if (!empty($temp_accommodation)) |
981 | 981 | // {$temp_accommodation = substr($temp_accommodation, 0, -2);} |
982 | | -// |
| 982 | +// |
983 | 983 | // include 'skin/mail_confirmed.php'; |
984 | 984 | // $mail_confirmed_content = preg_replace('/\$1/',$data['given_name'].' '.$data['surname'], $mail_confirmed_content); |
985 | 985 | // $mail_confirmed_content = preg_replace('/\$2/',$data['unique_code'], $mail_confirmed_content); |
986 | 986 | // $mail_confirmed_content = preg_replace('/\$4/',$data['email'], $mail_confirmed_content); |
987 | 987 | // //$mail_confirmed_content = preg_replace('/\$5/',$temp_accommodation, $mail_confirmed_content); |
988 | 988 | // //$mail_successful_content = preg_replace('/\$6/',$register_data['hotelname'], $mail_confirmed_content); |
989 | | -// |
| 989 | +// |
990 | 990 | // $to = $data['given_name'].' '.$data['surname'].' <'.$data['email'].'>'; |
991 | 991 | // mail_msg($to, 'Wikimania 2011 - Registration Confirmed', $mail_confirmed_content); |
992 | | -// |
| 992 | +// |
993 | 993 | // unset($temp_accommodation); |
994 | 994 | } |
995 | | - |
| 995 | + |
996 | 996 | } |
997 | 997 | break; |
998 | | - |
999 | | - |
| 998 | + |
| 999 | + |
1000 | 1000 | case 'get_data': |
1001 | | - header('Content-type: text/download; charset=utf-8'); |
1002 | | - header('Content-Disposition: attachment; filename="registration_data_' . gmdate('ymd_Hi', time() ) . '.txt"'); |
1003 | | - $result = $sql->selectData('registration', NULL, '', array('signuptime'), array('asc' => true)); |
1004 | | - |
| 1001 | + header( 'Content-type: text/download; charset=utf-8' ); |
| 1002 | + header( 'Content-Disposition: attachment; filename="registration_data_' . gmdate( 'ymd_Hi', time() ) . '.txt"' ); |
| 1003 | + $result = $sql->selectData( 'registration', NULL, '', array( 'signuptime' ), array( 'asc' => true ) ); |
| 1004 | + |
1005 | 1005 | $fields = array( |
1006 | 1006 | 'unique_code' => 'Code', |
1007 | 1007 | 'signuptime' => 'Sign-up', |
1008 | 1008 | 'given_name' => 'Given name', |
1009 | 1009 | 'surname' => 'Surname', |
1010 | 1010 | 'sex' => 'Sex', |
1011 | | - 'country'=>'Country', |
1012 | | - 'langn'=>'LangN', |
1013 | | - 'lang1'=>'Lang1', |
1014 | | - 'lang1-level'=>'Lang1lv', |
1015 | | - 'lang2'=>'Lang2', |
1016 | | - 'lang2-level'=>'Lang2lv', |
1017 | | - 'lang3'=>'Lang3', |
1018 | | - 'lang3-level'=>'Lang3lv', |
1019 | | - 'wiki_id'=>'Wiki ID', |
1020 | | - 'wiki_language'=>'Wiki Lang', |
1021 | | - 'wiki_project'=>'Wiki project', |
| 1011 | + 'country' => 'Country', |
| 1012 | + 'langn' => 'LangN', |
| 1013 | + 'lang1' => 'Lang1', |
| 1014 | + 'lang1-level' => 'Lang1lv', |
| 1015 | + 'lang2' => 'Lang2', |
| 1016 | + 'lang2-level' => 'Lang2lv', |
| 1017 | + 'lang3' => 'Lang3', |
| 1018 | + 'lang3-level' => 'Lang3lv', |
| 1019 | + 'wiki_id' => 'Wiki ID', |
| 1020 | + 'wiki_language' => 'Wiki Lang', |
| 1021 | + 'wiki_project' => 'Wiki project', |
1022 | 1022 | 'email' => 'E-mail', |
1023 | 1023 | 'j1' => 'Aug 2', |
1024 | 1024 | 'j2' => 'Aug 3', |
— | — | @@ -1064,115 +1064,115 @@ |
1065 | 1065 | 'paypal' => 'Paypal', |
1066 | 1066 | 'cost_paid' => 'Cost paid', |
1067 | 1067 | 'status' => 'Status' |
1068 | | - ); |
1069 | | - |
1070 | | - echo implode("\t",$fields)."\r\n"; |
1071 | | - |
1072 | | - while($data = $sql->fetchAssoc($result)) |
| 1068 | + ); |
| 1069 | + |
| 1070 | + echo implode( "\t", $fields ) . "\r\n"; |
| 1071 | + |
| 1072 | + while ( $data = $sql->fetchAssoc( $result ) ) |
1073 | 1073 | { |
1074 | | - for ($i = 1; $i <= 3; $i++) |
| 1074 | + for ( $i = 1; $i <= 3; $i++ ) |
1075 | 1075 | { |
1076 | | - if (!(strpos($data['showname'], (string)$i) === false)) $data['s'.$i] = 'X'; |
| 1076 | + if ( !( strpos( $data['showname'], (string)$i ) === false ) ) $data['s' . $i] = 'X'; |
1077 | 1077 | } |
1078 | | - for ($i = 1; $i <= 6; $i++) |
| 1078 | + for ( $i = 1; $i <= 6; $i++ ) |
1079 | 1079 | { |
1080 | | - if (!(strpos($data['join_date'], (string)$i) === false)) $data['j'.$i] = 'X'; |
| 1080 | + if ( !( strpos( $data['join_date'], (string)$i ) === false ) ) $data['j' . $i] = 'X'; |
1081 | 1081 | } |
1082 | | - for ($i = 1; $i <= 8; $i++) |
| 1082 | + for ( $i = 1; $i <= 8; $i++ ) |
1083 | 1083 | { |
1084 | | - if (!(strpos($data['nights'], (string)$i) === false)) $data['n'.$i] = 'X'; |
| 1084 | + if ( !( strpos( $data['nights'], (string)$i ) === false ) ) $data['n' . $i] = 'X'; |
1085 | 1085 | } |
1086 | 1086 | $data['hotelname'] = $lang_register_form['hotel' . $data['hotels']]; |
1087 | | - $data['country'] = $lang_countries[strtolower($data['country'])]; |
1088 | | - $data['nationality'] = $lang_countries[strtolower($data['nationality'])]; |
1089 | | - $data['countryofbirth'] = $lang_countries[strtolower($data['countryofbirth'])]; |
1090 | | - foreach($fields as $field => $field_alias) |
| 1087 | + $data['country'] = $lang_countries[strtolower( $data['country'] )]; |
| 1088 | + $data['nationality'] = $lang_countries[strtolower( $data['nationality'] )]; |
| 1089 | + $data['countryofbirth'] = $lang_countries[strtolower( $data['countryofbirth'] )]; |
| 1090 | + foreach ( $fields as $field => $field_alias ) |
1091 | 1091 | { |
1092 | | - $data[$field] = preg_replace('/\t/',' ',$data[$field]); |
1093 | | - $data[$field] = preg_replace('/\n/','.',$data[$field]); |
1094 | | - $data[$field] = preg_replace('/\r/',' ',$data[$field]); |
| 1092 | + $data[$field] = preg_replace( '/\t/', ' ', $data[$field] ); |
| 1093 | + $data[$field] = preg_replace( '/\n/', '.', $data[$field] ); |
| 1094 | + $data[$field] = preg_replace( '/\r/', ' ', $data[$field] ); |
1095 | 1095 | echo $data[$field]; |
1096 | | - if ($field!=$fields[(count($fields)-1)]) echo "\t"; |
| 1096 | + if ( $field != $fields[( count( $fields ) -1 )] ) echo "\t"; |
1097 | 1097 | } |
1098 | 1098 | echo "\r\n"; |
1099 | 1099 | } |
1100 | 1100 | return; |
1101 | 1101 | break; |
1102 | | - |
| 1102 | + |
1103 | 1103 | case 'set_data': |
1104 | | - |
1105 | | - if (!move_uploaded_file($_FILES['accommodation_file']['tmp_name'], 'upload/tmp_accomodation.txt')) |
| 1104 | + |
| 1105 | + if ( !move_uploaded_file( $_FILES['accommodation_file']['tmp_name'], 'upload/tmp_accomodation.txt' ) ) |
1106 | 1106 | { return; } |
1107 | | - |
1108 | | - $file_handle = @fopen("upload/tmp_accomodation.txt", "r"); |
1109 | | - if (!$file_handle || @feof($file_handle)) |
| 1107 | + |
| 1108 | + $file_handle = @fopen( "upload/tmp_accomodation.txt", "r" ); |
| 1109 | + if ( !$file_handle || @feof( $file_handle ) ) |
1110 | 1110 | { return; } |
1111 | | - $firstline = trim(fgets($file_handle, 4096)); |
1112 | | - $fields = explode("\t", $firstline); |
1113 | | - |
1114 | | - while (!feof($file_handle)) |
| 1111 | + $firstline = trim( fgets( $file_handle, 4096 ) ); |
| 1112 | + $fields = explode( "\t", $firstline ); |
| 1113 | + |
| 1114 | + while ( !feof( $file_handle ) ) |
1115 | 1115 | { |
1116 | | - $buffer = trim(fgets($file_handle, 4096)); |
1117 | | - if (!$buffer) |
| 1116 | + $buffer = trim( fgets( $file_handle, 4096 ) ); |
| 1117 | + if ( !$buffer ) |
1118 | 1118 | { continue; } |
1119 | 1119 | $data = array(); |
1120 | | - |
1121 | | - $values = explode("\t", $buffer); |
1122 | | - $data = array_combine($fields, $values); |
1123 | | - |
| 1120 | + |
| 1121 | + $values = explode( "\t", $buffer ); |
| 1122 | + $data = array_combine( $fields, $values ); |
| 1123 | + |
1124 | 1124 | /* Get Data */ |
1125 | | - $result = $sql->selectData('registration', array(), '`no`=\''.$sql->EscapeString($data['no']).'\''. |
1126 | | - ' AND `unique_code`=\''.$sql->EscapeString($data['unique_code']).'\''); |
1127 | | - if (!$sql_data = $sql->fetchAssoc($result)) |
| 1125 | + $result = $sql->selectData( 'registration', array(), '`no`=\'' . $sql->EscapeString( $data['no'] ) . '\'' . |
| 1126 | + ' AND `unique_code`=\'' . $sql->EscapeString( $data['unique_code'] ) . '\'' ); |
| 1127 | + if ( !$sql_data = $sql->fetchAssoc( $result ) ) |
1128 | 1128 | { |
1129 | | - $error_array[] = 'Find #'.$data['no'].' Text file may be corrupted, please re-confirm '; |
| 1129 | + $error_array[] = 'Find #' . $data['no'] . ' Text file may be corrupted, please re-confirm '; |
1130 | 1130 | continue; |
1131 | | - } |
1132 | | - if ($data['room_num1']+$data['room_num2']+$data['room_num3']+ |
1133 | | - $data['room_num4']+$data['room_num5'] == 0) |
1134 | | - {echo 'Skip No.'.$data['no'].' '; continue; } |
1135 | | - |
1136 | | - echo '<p>Preparing to write No.'.$data['no'].'Accommodation info '.$data['room_num1'].'/'.$data['room_num2'].'/'.$data['room_num3'].'/'.$data['room_num4'].'/'.$data['room_num5'].'...'; |
1137 | | - |
| 1131 | + } |
| 1132 | + if ( $data['room_num1'] + $data['room_num2'] + $data['room_num3'] + |
| 1133 | + $data['room_num4'] + $data['room_num5'] == 0 ) |
| 1134 | + { echo 'Skip No.' . $data['no'] . ' '; continue; } |
| 1135 | + |
| 1136 | + echo '<p>Preparing to write No.' . $data['no'] . 'Accommodation info ' . $data['room_num1'] . '/' . $data['room_num2'] . '/' . $data['room_num3'] . '/' . $data['room_num4'] . '/' . $data['room_num5'] . '...'; |
| 1137 | + |
1138 | 1138 | /* Write Data */ |
1139 | | - if(!$sql->updateData('registration',array( |
1140 | | - 'room_num1'=>$data['room_num1'], |
1141 | | - 'room_num2'=>$data['room_num2'], |
1142 | | - 'room_num3'=>$data['room_num3'], |
1143 | | - 'room_num4'=>$data['room_num4'], |
1144 | | - 'room_num5'=>$data['room_num5'], |
1145 | | - ), '`no`=\''.$sql->EscapeString($data['no']).'\''. |
1146 | | - ' AND `unique_code`=\''.$sql->EscapeString($data['unique_code']).'\'')) |
1147 | | - {echo 'SYSTEM ERROR</p>'; continue;} |
| 1139 | + if ( !$sql->updateData( 'registration', array( |
| 1140 | + 'room_num1' => $data['room_num1'], |
| 1141 | + 'room_num2' => $data['room_num2'], |
| 1142 | + 'room_num3' => $data['room_num3'], |
| 1143 | + 'room_num4' => $data['room_num4'], |
| 1144 | + 'room_num5' => $data['room_num5'], |
| 1145 | + ), '`no`=\'' . $sql->EscapeString( $data['no'] ) . '\'' . |
| 1146 | + ' AND `unique_code`=\'' . $sql->EscapeString( $data['unique_code'] ) . '\'' ) ) |
| 1147 | + { echo 'SYSTEM ERROR</p>'; continue; } |
1148 | 1148 | echo 'OK! </p>'; |
1149 | 1149 | $buffer = ''; |
1150 | 1150 | } |
1151 | | - fclose($file_handle); |
| 1151 | + fclose( $file_handle ); |
1152 | 1152 | $error_array[] = 'Registration has been completed.'; |
1153 | | - unlink('upload/tmp_accomodation.txt'); |
1154 | | - break; |
| 1153 | + unlink( 'upload/tmp_accomodation.txt' ); |
| 1154 | + break; |
1155 | 1155 | } |
1156 | | - if (!empty($error_array)) |
| 1156 | + if ( !empty( $error_array ) ) |
1157 | 1157 | { |
1158 | | - $error_message = '<ul>'."\n".'<li>' . implode('</li>'."\n".'<li>', $error_array) . '</li>'."\n".'</ul>'; |
| 1158 | + $error_message = '<ul>' . "\n" . '<li>' . implode( '</li>' . "\n" . '<li>', $error_array ) . '</li>' . "\n" . '</ul>'; |
1159 | 1159 | } |
1160 | 1160 | |
1161 | | - |
| 1161 | + |
1162 | 1162 | /////////////////////// /////////////////////// /////////////////////// |
1163 | 1163 | // END OF ADMIN OPTIONS |
1164 | 1164 | /////////////////////// /////////////////////// /////////////////////// |
1165 | | - |
| 1165 | + |
1166 | 1166 | /* How many people joined? */ |
1167 | | - $result = $sql->selectData('registration',NULL,'',NULL,array('count' => 1)); |
1168 | | - $data = $sql->fetchArray($result); |
| 1167 | + $result = $sql->selectData( 'registration', NULL, '', NULL, array( 'count' => 1 ) ); |
| 1168 | + $data = $sql->fetchArray( $result ); |
1169 | 1169 | $register_data['total_people'] = $data['COUNT(*)']; |
1170 | | - mysql_free_result($result); |
| 1170 | + mysql_free_result( $result ); |
1171 | 1171 | |
1172 | 1172 | /* How many people joined and confirmed? */ |
1173 | | - $result = $sql->selectData('registration',NULL,'`status` = 1',NULL,array('count' => 1)); |
1174 | | - $data = $sql->fetchArray($result); |
| 1173 | + $result = $sql->selectData( 'registration', NULL, '`status` = 1', NULL, array( 'count' => 1 ) ); |
| 1174 | + $data = $sql->fetchArray( $result ); |
1175 | 1175 | $register_data['total_people_confirmed'] = $data['COUNT(*)']; |
1176 | | - mysql_free_result($result); |
| 1176 | + mysql_free_result( $result ); |
1177 | 1177 | // |
1178 | 1178 | // /* How many people accommodation? */ |
1179 | 1179 | // $result = $sql->selectData('registration',NULL,' `night1` + `night2` + `night3` + `night4` > 0 AND `status` = 1',NULL,array('count' => 1)); |
— | — | @@ -1180,158 +1180,158 @@ |
1181 | 1181 | // $register_data['total_accommodation'] = $data['COUNT(*)']; |
1182 | 1182 | // mysql_free_result($result); |
1183 | 1183 | // |
1184 | | - |
1185 | | - switch ($MY_REQUEST['mode']) |
| 1184 | + |
| 1185 | + switch ( $MY_REQUEST['mode'] ) |
1186 | 1186 | { |
1187 | 1187 | case NULL: |
1188 | 1188 | /* How many countries? */ |
1189 | | - $result = $sql->selectData('registration',array('country'),'',NULL,array('count' => 1, 'distinct' => 1)); |
1190 | | - $data = $sql->fetchArray($result); |
| 1189 | + $result = $sql->selectData( 'registration', array( 'country' ), '', NULL, array( 'count' => 1, 'distinct' => 1 ) ); |
| 1190 | + $data = $sql->fetchArray( $result ); |
1191 | 1191 | $register_data['total_countries'] = $data[0]; |
1192 | | - mysql_free_result($result); |
| 1192 | + mysql_free_result( $result ); |
1193 | 1193 | |
1194 | 1194 | /* How about sex? */ |
1195 | | - $result = $sql->selectData('registration',NULL,'`sex` = \'m\'',NULL,array('count' => 1)); |
1196 | | - $data = $sql->fetchArray($result); |
| 1195 | + $result = $sql->selectData( 'registration', NULL, '`sex` = \'m\'', NULL, array( 'count' => 1 ) ); |
| 1196 | + $data = $sql->fetchArray( $result ); |
1197 | 1197 | $register_data['total_male'] = $data[0]; |
1198 | | - mysql_free_result($result); |
| 1198 | + mysql_free_result( $result ); |
1199 | 1199 | |
1200 | | - $result = $sql->selectData('registration',NULL,'`sex` = \'f\'',NULL,array('count' => 1)); |
1201 | | - $data = $sql->fetchArray($result); |
| 1200 | + $result = $sql->selectData( 'registration', NULL, '`sex` = \'f\'', NULL, array( 'count' => 1 ) ); |
| 1201 | + $data = $sql->fetchArray( $result ); |
1202 | 1202 | $register_data['total_female'] = $data[0]; |
1203 | | - mysql_free_result($result); |
1204 | | - |
1205 | | - $result = $sql->selectData('registration',NULL,'`sex` = \'d\'',NULL,array('count' => 1)); |
1206 | | - $data = $sql->fetchArray($result); |
| 1203 | + mysql_free_result( $result ); |
| 1204 | + |
| 1205 | + $result = $sql->selectData( 'registration', NULL, '`sex` = \'d\'', NULL, array( 'count' => 1 ) ); |
| 1206 | + $data = $sql->fetchArray( $result ); |
1207 | 1207 | $register_data['total_sex_other'] = $data[0]; |
1208 | | - mysql_free_result($result); |
1209 | | - |
1210 | | - $result = $sql->selectData('registration',NULL,'`wiki_id` != \'\'',NULL,array('count' => 1)); |
1211 | | - $data = $sql->fetchArray($result); |
| 1208 | + mysql_free_result( $result ); |
| 1209 | + |
| 1210 | + $result = $sql->selectData( 'registration', NULL, '`wiki_id` != \'\'', NULL, array( 'count' => 1 ) ); |
| 1211 | + $data = $sql->fetchArray( $result ); |
1212 | 1212 | $register_data['total_wikimedians'] = $data['COUNT(*)']; |
1213 | | - mysql_free_result($result); |
| 1213 | + mysql_free_result( $result ); |
1214 | 1214 | |
1215 | 1215 | case 'topic': |
1216 | | - |
1217 | | - /* How many people join for 1 day, for 2 days etc. */ |
1218 | | - for ($i = 1; $i <= 6; $i++) { |
1219 | | - $result = $sql->Query('SELECT COUNT(*) FROM `registration` WHERE BIT_COUNT(`join_date`) = ' . $i); |
1220 | | - $data = $sql->fetchArray($result); |
1221 | | - $register_data['total_'.$i.'days'] = $data[0]; |
1222 | | - unset($data); |
1223 | | - mysql_free_result($result); |
1224 | | - } |
1225 | 1216 | |
| 1217 | + /* How many people join for 1 day, for 2 days etc. */ |
| 1218 | + for ( $i = 1; $i <= 6; $i++ ) { |
| 1219 | + $result = $sql->Query( 'SELECT COUNT(*) FROM `registration` WHERE BIT_COUNT(`join_date`) = ' . $i ); |
| 1220 | + $data = $sql->fetchArray( $result ); |
| 1221 | + $register_data['total_' . $i . 'days'] = $data[0]; |
| 1222 | + unset( $data ); |
| 1223 | + mysql_free_result( $result ); |
| 1224 | + } |
| 1225 | + |
1226 | 1226 | /* People per day */ |
1227 | | - for ($i = 1; $i <= 6; $i++) |
| 1227 | + for ( $i = 1; $i <= 6; $i++ ) |
1228 | 1228 | { |
1229 | | - $result = $sql->Query('SELECT COUNT(*) FROM `registration` WHERE `join_date` LIKE \'%' . $i .'%\''); |
1230 | | - $data = $sql->fetchArray($result); |
1231 | | - $register_data['total_day'.$i] = $data[0]; |
1232 | | - mysql_free_result($result); |
| 1229 | + $result = $sql->Query( 'SELECT COUNT(*) FROM `registration` WHERE `join_date` LIKE \'%' . $i . '%\'' ); |
| 1230 | + $data = $sql->fetchArray( $result ); |
| 1231 | + $register_data['total_day' . $i] = $data[0]; |
| 1232 | + mysql_free_result( $result ); |
1233 | 1233 | } |
1234 | 1234 | |
1235 | 1235 | case 'accommodation': |
1236 | 1236 | /* How many people stay 0 night, 1 night etc. */ |
1237 | | - for ($i = 0; $i <= 8; $i++) { |
1238 | | - $result = $sql->Query('SELECT COUNT(*) FROM `registration` WHERE BIT_COUNT(`nights`) = ' . $i); |
1239 | | - $data = $sql->fetchArray($result); |
1240 | | - $register_data['total_'.$i.'nights'] = $data[0]; |
1241 | | - unset($data); |
1242 | | - mysql_free_result($result); |
| 1237 | + for ( $i = 0; $i <= 8; $i++ ) { |
| 1238 | + $result = $sql->Query( 'SELECT COUNT(*) FROM `registration` WHERE BIT_COUNT(`nights`) = ' . $i ); |
| 1239 | + $data = $sql->fetchArray( $result ); |
| 1240 | + $register_data['total_' . $i . 'nights'] = $data[0]; |
| 1241 | + unset( $data ); |
| 1242 | + mysql_free_result( $result ); |
1243 | 1243 | } |
1244 | | - |
1245 | | - for ($i = 1; $i <= 9; $i++) { |
1246 | | - $result = $sql->Query('SELECT COUNT(*) FROM `registration` WHERE `hotels` = \'' . $i . '\''); |
1247 | | - $data = $sql->fetchArray($result); |
| 1244 | + |
| 1245 | + for ( $i = 1; $i <= 9; $i++ ) { |
| 1246 | + $result = $sql->Query( 'SELECT COUNT(*) FROM `registration` WHERE `hotels` = \'' . $i . '\'' ); |
| 1247 | + $data = $sql->fetchArray( $result ); |
1248 | 1248 | $register_data['total_hotel' . $i] = $data[0]; |
1249 | | - unset($data); |
1250 | | - mysql_free_result($result); |
| 1249 | + unset( $data ); |
| 1250 | + mysql_free_result( $result ); |
1251 | 1251 | } |
1252 | | - |
1253 | | - for ($i = 1; $i <= 9; $i++) { |
1254 | | - $result = $sql->Query('SELECT COUNT(DISTINCT(`room_number`)) FROM `registration` WHERE `hotels` = \'' . $i . '\' AND `room_number` is not NULL AND `room_number` != \'\''); |
1255 | | - $data = $sql->fetchArray($result); |
| 1252 | + |
| 1253 | + for ( $i = 1; $i <= 9; $i++ ) { |
| 1254 | + $result = $sql->Query( 'SELECT COUNT(DISTINCT(`room_number`)) FROM `registration` WHERE `hotels` = \'' . $i . '\' AND `room_number` is not NULL AND `room_number` != \'\'' ); |
| 1255 | + $data = $sql->fetchArray( $result ); |
1256 | 1256 | $register_data['rooms_hotel' . $i] = $data[0]; |
1257 | | - mysql_free_result($result); |
| 1257 | + mysql_free_result( $result ); |
1258 | 1258 | } |
1259 | | - |
| 1259 | + |
1260 | 1260 | case 'visa': |
1261 | | - $result = $sql->selectData('registration',NULL,'`visa_assistance` = \'1\'' ,NULL,array('count' => 1)); |
1262 | | - $data = $sql->fetchArray($result); |
| 1261 | + $result = $sql->selectData( 'registration', NULL, '`visa_assistance` = \'1\'' , NULL, array( 'count' => 1 ) ); |
| 1262 | + $data = $sql->fetchArray( $result ); |
1263 | 1263 | $register_data['total_assist'] = $data[0]; |
1264 | | - unset($data); |
1265 | | - mysql_free_result($result); |
| 1264 | + unset( $data ); |
| 1265 | + mysql_free_result( $result ); |
1266 | 1266 | |
1267 | 1267 | } |
1268 | 1268 | /* page process */ |
1269 | | - $register_data['per_page'] = intval($MY_REQUEST['per_page']); |
1270 | | - if ($register_data['per_page'] <= 0) |
| 1269 | + $register_data['per_page'] = intval( $MY_REQUEST['per_page'] ); |
| 1270 | + if ( $register_data['per_page'] <= 0 ) |
1271 | 1271 | { $register_data['per_page'] = 20; } |
1272 | 1272 | |
1273 | | - $register_data['page'] = intval($MY_REQUEST['page']); |
1274 | | - if ($register_data['page'] <= 0) |
| 1273 | + $register_data['page'] = intval( $MY_REQUEST['page'] ); |
| 1274 | + if ( $register_data['page'] <= 0 ) |
1275 | 1275 | { $register_data['page'] = 1; } |
1276 | 1276 | |
1277 | | - $select_start = ($register_data['page'] - 1) * $register_data['per_page']; |
1278 | | - if ($select_start + 1 > $register_data['total_people']) |
1279 | | - {$select_start = 0; $register_data['page'] = 1;} |
| 1277 | + $select_start = ( $register_data['page'] - 1 ) * $register_data['per_page']; |
| 1278 | + if ( $select_start + 1 > $register_data['total_people'] ) |
| 1279 | + { $select_start = 0; $register_data['page'] = 1; } |
1280 | 1280 | |
1281 | | - if ($MY_REQUEST['keyword'] && is_string($MY_REQUEST['keyword'])) |
| 1281 | + if ( $MY_REQUEST['keyword'] && is_string( $MY_REQUEST['keyword'] ) ) |
1282 | 1282 | { |
1283 | | - $keyword_temp = $sql->EscapeString($MY_REQUEST['keyword']); |
1284 | | - $keyword_temp = preg_replace('/\_/', '\\\_', $keyword_temp); |
1285 | | - $keyword_temp = preg_replace('/\%/', '\\\%', $keyword_temp); |
1286 | | - |
| 1283 | + $keyword_temp = $sql->EscapeString( $MY_REQUEST['keyword'] ); |
| 1284 | + $keyword_temp = preg_replace( '/\_/', '\\\_', $keyword_temp ); |
| 1285 | + $keyword_temp = preg_replace( '/\%/', '\\\%', $keyword_temp ); |
| 1286 | + |
1287 | 1287 | $query = ''; |
1288 | 1288 | |
1289 | | - switch ($MY_REQUEST['filter']) |
| 1289 | + switch ( $MY_REQUEST['filter'] ) |
1290 | 1290 | { |
1291 | 1291 | case 'name': |
1292 | | - $query = '`surname` LIKE \'%'. $keyword_temp .'%\' '. |
1293 | | - 'OR `given_name` LIKE \'%'. $keyword_temp .'%\' '. |
1294 | | - 'OR `wiki_id` LIKE \'%'. $keyword_temp .'%\' '. |
1295 | | - 'OR `custom_showname` LIKE \'%'. $keyword_temp .'%\' '; |
| 1292 | + $query = '`surname` LIKE \'%' . $keyword_temp . '%\' ' . |
| 1293 | + 'OR `given_name` LIKE \'%' . $keyword_temp . '%\' ' . |
| 1294 | + 'OR `wiki_id` LIKE \'%' . $keyword_temp . '%\' ' . |
| 1295 | + 'OR `custom_showname` LIKE \'%' . $keyword_temp . '%\' '; |
1296 | 1296 | break; |
1297 | 1297 | |
1298 | 1298 | case 'email': |
1299 | | - $query = '`email` LIKE \'%'. $keyword_temp .'%\' '; |
| 1299 | + $query = '`email` LIKE \'%' . $keyword_temp . '%\' '; |
1300 | 1300 | break; |
1301 | 1301 | |
1302 | 1302 | case 'unique_code': |
1303 | | - $query = '`unique_code` LIKE \'%'. $keyword_temp .'%\' '; |
| 1303 | + $query = '`unique_code` LIKE \'%' . $keyword_temp . '%\' '; |
1304 | 1304 | break; |
1305 | 1305 | |
1306 | 1306 | default: |
1307 | 1307 | } |
1308 | | - if ($MY_REQUEST['real']) |
| 1308 | + if ( $MY_REQUEST['real'] ) |
1309 | 1309 | $query = $query . ' AND `status`=1'; |
1310 | | - |
1311 | | - $result = $sql->selectData('registration',NULL,$query, array('signuptime'), array('asc'=>false)); |
1312 | | - $data = $sql->fetchArray($result); |
1313 | | - $register_data['total_keyword'] = mysql_num_rows($result); |
1314 | | - mysql_free_result($result); |
1315 | | - $result = $sql->selectData('registration',NULL,$query,array('signuptime'), array('asc'=>false, 'start' => $select_start, 'total' => $register_data['per_page'])); |
| 1310 | + |
| 1311 | + $result = $sql->selectData( 'registration', NULL, $query, array( 'signuptime' ), array( 'asc' => false ) ); |
| 1312 | + $data = $sql->fetchArray( $result ); |
| 1313 | + $register_data['total_keyword'] = mysql_num_rows( $result ); |
| 1314 | + mysql_free_result( $result ); |
| 1315 | + $result = $sql->selectData( 'registration', NULL, $query, array( 'signuptime' ), array( 'asc' => false, 'start' => $select_start, 'total' => $register_data['per_page'] ) ); |
1316 | 1316 | } |
1317 | 1317 | else |
1318 | 1318 | { |
1319 | 1319 | $MY_REQUEST['keyword'] = NULL; |
1320 | | - if ($MY_REQUEST['real']) |
1321 | | - $result = $sql->selectData('registration',NULL,'`status`=1',array('signuptime'), array('asc'=>false,'start' => $select_start, 'total' => $register_data['per_page'])); |
| 1320 | + if ( $MY_REQUEST['real'] ) |
| 1321 | + $result = $sql->selectData( 'registration', NULL, '`status`=1', array( 'signuptime' ), array( 'asc' => false, 'start' => $select_start, 'total' => $register_data['per_page'] ) ); |
1322 | 1322 | else |
1323 | | - $result = $sql->selectData('registration',NULL,'',array('signuptime'), array('asc'=>false,'start' => $select_start, 'total' => $register_data['per_page'])); |
| 1323 | + $result = $sql->selectData( 'registration', NULL, '', array( 'signuptime' ), array( 'asc' => false, 'start' => $select_start, 'total' => $register_data['per_page'] ) ); |
1324 | 1324 | } |
1325 | 1325 | |
1326 | | - while ($data = $sql->fetchAssoc($result)) |
| 1326 | + while ( $data = $sql->fetchAssoc( $result ) ) |
1327 | 1327 | { |
1328 | 1328 | /* Write Data */ |
1329 | 1329 | $table_data[] = $data; |
1330 | 1330 | } |
1331 | | - mysql_free_result($result); |
| 1331 | + mysql_free_result( $result ); |
1332 | 1332 | |
1333 | 1333 | include 'skin/html_header.php'; |
1334 | 1334 | include 'skin/admin_interface.php'; |
1335 | | - include 'skin/html_footer.php'; |
| 1335 | + include 'skin/html_footer.php'; |
1336 | 1336 | |
1337 | 1337 | } |
1338 | 1338 | |
— | — | @@ -1344,51 +1344,51 @@ |
1345 | 1345 | |
1346 | 1346 | function process_login() |
1347 | 1347 | { |
1348 | | - global $_POST, $sql, $error_message, $register_data; |
1349 | | - |
| 1348 | + global $_POST, $sql, $error_message, $register_data; |
| 1349 | + |
1350 | 1350 | $error_message = ''; |
1351 | 1351 | |
1352 | 1352 | /* Check for vaild ID */ |
1353 | | - if(preg_match('/[^0-9A-Z\_\-]/i',$_POST['user_id'])) { |
| 1353 | + if ( preg_match( '/[^0-9A-Z\_\-]/i', $_POST['user_id'] ) ) { |
1354 | 1354 | $error_message = 1; |
1355 | | - $register_data = array('user_id' => $_POST['user_id'], 'password' => $_POST['password']); |
| 1355 | + $register_data = array( 'user_id' => $_POST['user_id'], 'password' => $_POST['password'] ); |
1356 | 1356 | include 'skin/html_header.php'; |
1357 | 1357 | include 'skin/login_form.php'; |
1358 | | - include 'skin/html_footer.php'; |
| 1358 | + include 'skin/html_footer.php'; |
1359 | 1359 | return; |
1360 | 1360 | } |
1361 | 1361 | |
1362 | 1362 | /* Check for vaild login data */ |
1363 | | - $result = $sql->selectData('admins', array(), '`user_id`=\''./* Filtered */ $_POST['user_id'].'\' and `password`=\''./* no need to escape */md5($_POST['password']).'\''); |
1364 | | - $login_data = $sql->fetchArray($result); |
1365 | | - if(!$result || !$login_data) |
| 1363 | + $result = $sql->selectData( 'admins', array(), '`user_id`=\'' . /* Filtered */ $_POST['user_id'] . '\' and `password`=\'' . /* no need to escape */md5( $_POST['password'] ) . '\'' ); |
| 1364 | + $login_data = $sql->fetchArray( $result ); |
| 1365 | + if ( !$result || !$login_data ) |
1366 | 1366 | { |
1367 | 1367 | $error_message = 1; |
1368 | | - $register_data = array('user_id' => $_POST['user_id'], 'password' => $_POST['password']); |
| 1368 | + $register_data = array( 'user_id' => $_POST['user_id'], 'password' => $_POST['password'] ); |
1369 | 1369 | include 'skin/html_header.php'; |
1370 | 1370 | include 'skin/login_form.php'; |
1371 | | - include 'skin/html_footer.php'; |
| 1371 | + include 'skin/html_footer.php'; |
1372 | 1372 | return; |
1373 | 1373 | } |
1374 | 1374 | |
1375 | 1375 | $_SESSION['logged_in'] = 1; |
1376 | 1376 | $_SESSION['user_id'] = $_POST['user_id']; |
1377 | | - $_SESSION['user_password'] = md5($_POST['password']); |
| 1377 | + $_SESSION['user_password'] = md5( $_POST['password'] ); |
1378 | 1378 | |
1379 | | - header('Location:'.$myself_url.'index.php?action=admin'); |
| 1379 | + header( 'Location:' . $myself_url . 'index.php?action=admin' ); |
1380 | 1380 | } |
1381 | 1381 | |
1382 | 1382 | function logout() |
1383 | 1383 | { |
1384 | 1384 | /* login user only */ |
1385 | | - if (!$_SESSION['logged_in']) |
| 1385 | + if ( !$_SESSION['logged_in'] ) |
1386 | 1386 | { return; } |
1387 | 1387 | |
1388 | | - unset($_SESSION['logged_in']); |
1389 | | - unset($_SESSION['user_id']); |
1390 | | - unset($_SESSION['user_password']); |
| 1388 | + unset( $_SESSION['logged_in'] ); |
| 1389 | + unset( $_SESSION['user_id'] ); |
| 1390 | + unset( $_SESSION['user_password'] ); |
1391 | 1391 | |
1392 | | - header('Location:'.$myself_url.'index.php'); |
| 1392 | + header( 'Location:' . $myself_url . 'index.php' ); |
1393 | 1393 | |
1394 | 1394 | } |
1395 | 1395 | |
— | — | @@ -1397,36 +1397,35 @@ |
1398 | 1398 | include 'skin/html_header.php'; |
1399 | 1399 | include 'skin/query.php'; |
1400 | 1400 | include 'skin/html_footer.php'; |
1401 | | - |
1402 | 1401 | } |
1403 | 1402 | |
1404 | 1403 | function query_result() |
1405 | 1404 | { |
1406 | 1405 | global $MY_REQUEST, $sql, $error_message, $register_data; |
1407 | | - if (!$MY_REQUEST['unique_code'] || empty($MY_REQUEST['unique_code']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['unique_code'])) |
| 1406 | + if ( !$MY_REQUEST['unique_code'] || empty( $MY_REQUEST['unique_code'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['unique_code'] ) ) |
1408 | 1407 | { |
1409 | 1408 | /* Wrong? */ |
1410 | 1409 | $error_message = 1; |
1411 | | - $register_data = array('surname'=>$MY_REQUEST['surname'], 'given_name'=>$MY_REQUEST['given_name'], 'unique_code'=>$MY_REQUEST['unique_code']); |
| 1410 | + $register_data = array( 'surname' => $MY_REQUEST['surname'], 'given_name' => $MY_REQUEST['given_name'], 'unique_code' => $MY_REQUEST['unique_code'] ); |
1412 | 1411 | include 'skin/html_header.php'; |
1413 | 1412 | include 'skin/query.php'; |
1414 | 1413 | include 'skin/html_footer.php'; |
1415 | | - return; |
| 1414 | + return; |
1416 | 1415 | } |
1417 | 1416 | |
1418 | | - $test_code_result = $sql->selectData('registration', array(), '`surname`=\''.$sql->EscapeString($MY_REQUEST['surname']).'\' AND `given_name` = \''.$sql->EscapeString($MY_REQUEST['given_name']).'\' AND `unique_code`=\''.$MY_REQUEST['unique_code'].'\''); |
1419 | | - $test_code_array = $sql->fetchArray($test_code_result); |
1420 | | - |
1421 | | - if (!is_array($test_code_array)) { |
| 1417 | + $test_code_result = $sql->selectData( 'registration', array(), '`surname`=\'' . $sql->EscapeString( $MY_REQUEST['surname'] ) . '\' AND `given_name` = \'' . $sql->EscapeString( $MY_REQUEST['given_name'] ) . '\' AND `unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ); |
| 1418 | + $test_code_array = $sql->fetchArray( $test_code_result ); |
| 1419 | + |
| 1420 | + if ( !is_array( $test_code_array ) ) { |
1422 | 1421 | /* Wrong? */ |
1423 | 1422 | $error_message = 2; |
1424 | | - $register_data = array('surname'=>$MY_REQUEST['surname'], 'given_name'=>$MY_REQUEST['given_name'], 'unique_code'=>$MY_REQUEST['unique_code']); |
| 1423 | + $register_data = array( 'surname' => $MY_REQUEST['surname'], 'given_name' => $MY_REQUEST['given_name'], 'unique_code' => $MY_REQUEST['unique_code'] ); |
1425 | 1424 | include 'skin/html_header.php'; |
1426 | 1425 | include 'skin/query.php'; |
1427 | 1426 | include 'skin/html_footer.php'; |
1428 | | - return; |
| 1427 | + return; |
1429 | 1428 | |
1430 | | - } |
| 1429 | + } |
1431 | 1430 | $register_data = $test_code_array; |
1432 | 1431 | include 'skin/html_header.php'; |
1433 | 1432 | include 'skin/query_result.php'; |
— | — | @@ -1445,91 +1444,91 @@ |
1446 | 1445 | { |
1447 | 1446 | global $MY_REQUEST, $sql, $error_message, $register_data, $coupon_vip, $coupon_median, |
1448 | 1447 | $coupon_volunteer, $wikimania_cost_wikimedian, $accommodation_limit_people_Metropol, |
1449 | | - $accommodation_limit_people_Delta, $accommodation_limit_people_Dorms, $accommodation_cost_metropol, |
| 1448 | + $accommodation_limit_people_Delta, $accommodation_limit_people_Dorms, $accommodation_cost_metropol, |
1450 | 1449 | $accommodation_cost_delta, $accommodation_cost_dorms; |
1451 | | - |
1452 | | - if (!$MY_REQUEST['unique_code'] || empty($MY_REQUEST['unique_code']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['unique_code']) |
1453 | | - || !$MY_REQUEST['coupon_id'] || empty($MY_REQUEST['coupon_id']) || preg_match('/[^0-9A-Z]/i', $MY_REQUEST['coupon_id'])) |
| 1450 | + |
| 1451 | + if ( !$MY_REQUEST['unique_code'] || empty( $MY_REQUEST['unique_code'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['unique_code'] ) |
| 1452 | + || !$MY_REQUEST['coupon_id'] || empty( $MY_REQUEST['coupon_id'] ) || preg_match( '/[^0-9A-Z]/i', $MY_REQUEST['coupon_id'] ) ) |
1454 | 1453 | { |
1455 | 1454 | /* Wrong? */ |
1456 | 1455 | $error_message = 1; |
1457 | | - $register_data = array('surname'=>$MY_REQUEST['surname'], 'given_name'=>$MY_REQUEST['given_name'], 'unique_code'=>$MY_REQUEST['unique_code'], 'coupon_id'=>$MY_REQUEST['coupon_id']); |
| 1456 | + $register_data = array( 'surname' => $MY_REQUEST['surname'], 'given_name' => $MY_REQUEST['given_name'], 'unique_code' => $MY_REQUEST['unique_code'], 'coupon_id' => $MY_REQUEST['coupon_id'] ); |
1458 | 1457 | include 'skin/html_header.php'; |
1459 | 1458 | include 'skin/coupon.php'; |
1460 | 1459 | include 'skin/html_footer.php'; |
1461 | | - return; |
| 1460 | + return; |
1462 | 1461 | } |
1463 | 1462 | |
1464 | 1463 | |
1465 | 1464 | /* Find who is the coupon activator */ |
1466 | | - $test_code_result = $sql->selectData(registration, array(), '`surname`=\''.$sql->EscapeString($MY_REQUEST['surname']).'\' AND `given_name` = \''.$sql->EscapeString($MY_REQUEST['given_name']).'\' AND `unique_code`=\''.$MY_REQUEST['unique_code'].'\''); |
1467 | | - $test_code_array = $sql->fetchArray($test_code_result); |
1468 | | - if (!is_array($test_code_array)||$test_code_array['status']) { |
| 1465 | + $test_code_result = $sql->selectData( registration, array(), '`surname`=\'' . $sql->EscapeString( $MY_REQUEST['surname'] ) . '\' AND `given_name` = \'' . $sql->EscapeString( $MY_REQUEST['given_name'] ) . '\' AND `unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ); |
| 1466 | + $test_code_array = $sql->fetchArray( $test_code_result ); |
| 1467 | + if ( !is_array( $test_code_array ) || $test_code_array['status'] ) { |
1469 | 1468 | /* Wrong? */ |
1470 | 1469 | $error_message = 1; |
1471 | | - $register_data = array('surname'=>$MY_REQUEST['surname'], 'given_name'=>$MY_REQUEST['given_name'], 'unique_code'=>$MY_REQUEST['unique_code']); |
| 1470 | + $register_data = array( 'surname' => $MY_REQUEST['surname'], 'given_name' => $MY_REQUEST['given_name'], 'unique_code' => $MY_REQUEST['unique_code'] ); |
1472 | 1471 | include 'skin/html_header.php'; |
1473 | 1472 | include 'skin/coupon.php'; |
1474 | 1473 | include 'skin/html_footer.php'; |
1475 | | - return; |
| 1474 | + return; |
1476 | 1475 | |
1477 | | - } |
1478 | | - |
| 1476 | + } |
| 1477 | + |
1479 | 1478 | $register_data = $test_code_array; |
1480 | 1479 | |
1481 | 1480 | /* Activate coupon */ |
1482 | | - if($MY_REQUEST['coupon_id'] == $coupon_vip) |
| 1481 | + if ( $MY_REQUEST['coupon_id'] == $coupon_vip ) |
1483 | 1482 | { |
1484 | 1483 | $register_data['vip_status'] = 1; |
1485 | 1484 | $register_data['cost_total'] = 0; |
1486 | 1485 | } |
1487 | | - elseif ($MY_REQUEST['coupon_id'] == $coupon_median) |
| 1486 | + elseif ( $MY_REQUEST['coupon_id'] == $coupon_median ) |
1488 | 1487 | { |
1489 | 1488 | $register_data['vip_status'] = 2; |
1490 | 1489 | $register_data['cost_total'] = 0; |
1491 | | - $register_data['cost_total'] += $wikimania_cost_wikimedian[$register_data['join1']+$register_data['join2']+$register_data['join3']]; |
1492 | | - |
| 1490 | + $register_data['cost_total'] += $wikimania_cost_wikimedian[$register_data['join1'] + $register_data['join2'] + $register_data['join3']]; |
| 1491 | + |
1493 | 1492 | $night_selected = $register_data['night1'] + $register_data['night2'] + $register_data['night3'] + $register_data['night4']; |
1494 | 1493 | |
1495 | | - if ($register_data['hotelname'] == 'metropol' ) |
| 1494 | + if ( $register_data['hotelname'] == 'metropol' ) |
1496 | 1495 | { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; } |
1497 | | - elseif ($register_data['hotelname'] == 'delta' ) |
| 1496 | + elseif ( $register_data['hotelname'] == 'delta' ) |
1498 | 1497 | { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; } |
1499 | | - elseif ($register_data['hotelname'] == 'dorms' ) |
| 1498 | + elseif ( $register_data['hotelname'] == 'dorms' ) |
1500 | 1499 | { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; } |
1501 | | - else |
| 1500 | + else |
1502 | 1501 | { $register_data['cost_total'] += 0; } |
1503 | 1502 | |
1504 | 1503 | } |
1505 | | - elseif ($MY_REQUEST['coupon_id'] == $coupon_volunteer) |
| 1504 | + elseif ( $MY_REQUEST['coupon_id'] == $coupon_volunteer ) |
1506 | 1505 | { |
1507 | 1506 | $register_data['vip_status'] = 3; |
1508 | 1507 | $register_data['cost_total'] = 0; |
1509 | 1508 | |
1510 | 1509 | $night_selected = $register_data['night1'] + $register_data['night2'] + $register_data['night3'] + $register_data['night4']; |
1511 | 1510 | |
1512 | | - if ($register_data['hotelname'] == 'metropol' ) |
| 1511 | + if ( $register_data['hotelname'] == 'metropol' ) |
1513 | 1512 | { $register_data['cost_total'] += $accommodation_cost_metropol * $night_selected; } |
1514 | | - elseif ($register_data['hotelname'] == 'delta' ) |
| 1513 | + elseif ( $register_data['hotelname'] == 'delta' ) |
1515 | 1514 | { $register_data['cost_total'] += $accommodation_cost_delta * $night_selected; } |
1516 | | - elseif ($register_data['hotelname'] == 'dorms' ) |
| 1515 | + elseif ( $register_data['hotelname'] == 'dorms' ) |
1517 | 1516 | { $register_data['cost_total'] += $accommodation_cost_dorms * $night_selected; } |
1518 | | - else |
| 1517 | + else |
1519 | 1518 | { $register_data['cost_total'] += 0; } |
1520 | 1519 | } |
1521 | 1520 | else |
1522 | 1521 | { |
1523 | 1522 | /* Wrong? */ |
1524 | 1523 | $error_message = 1; |
1525 | | - $register_data = array('surname'=>$MY_REQUEST['surname'], 'given_name'=>$MY_REQUEST['given_name'], 'unique_code'=>$MY_REQUEST['unique_code']); |
| 1524 | + $register_data = array( 'surname' => $MY_REQUEST['surname'], 'given_name' => $MY_REQUEST['given_name'], 'unique_code' => $MY_REQUEST['unique_code'] ); |
1526 | 1525 | include 'skin/html_header.php'; |
1527 | 1526 | include 'skin/coupon.php'; |
1528 | 1527 | include 'skin/html_footer.php'; |
1529 | | - return; |
| 1528 | + return; |
1530 | 1529 | } |
1531 | 1530 | |
1532 | 1531 | /* Write data */ |
1533 | | - if (!$sql->updateData('registration', array('vip_status' => $register_data['vip_status'], 'cost_total' => $register_data['cost_total']), '`surname`=\''.$sql->EscapeString($MY_REQUEST['surname']).'\' AND `given_name` = \''.$sql->EscapeString($MY_REQUEST['given_name']).'\' AND `unique_code`=\''.$MY_REQUEST['unique_code'].'\'')) |
| 1532 | + if ( !$sql->updateData( 'registration', array( 'vip_status' => $register_data['vip_status'], 'cost_total' => $register_data['cost_total'] ), '`surname`=\'' . $sql->EscapeString( $MY_REQUEST['surname'] ) . '\' AND `given_name` = \'' . $sql->EscapeString( $MY_REQUEST['given_name'] ) . '\' AND `unique_code`=\'' . $MY_REQUEST['unique_code'] . '\'' ) ) |
1534 | 1533 | { echo 'SYSTEM ERROR'; return; } |
1535 | 1534 | $error_message = 'Coupon activated.'; |
1536 | 1535 | include 'skin/html_header.php'; |