Добро пожаловать, Гость!
исправте ошыбки
Заработок | исправте ошыбки
Machete :
<?
2 include_once 'sys/inc/start.php' ;
3 include_once 'sys/inc/
compress.php' ;
4 include_once 'sys/inc/sess.php' ;
5 include_once 'sys/inc/home.php' ;
6 include_once 'sys/inc/
settings.php' ;
7 include_once 'sys/inc/
db_connect.php' ;
8 include_once 'sys/inc/ipua.php' ;
9 include_once 'sys/inc/fnc.php' ;
10 include_once 'sys/inc/user.php' ;
11 only_reg ();
12 $set [ 'title' ]='Моя анкета' ;
13 include_once 'sys/inc/
thead.php' ;
14 title();
15 if (isset( $_POST ['save' ])){
16 if (isset( $_POST ['inf' ]))
17 {
18 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'inf' ]))$err
[]='В поле "И.Ф.О" используются запрещённые символы.' ;
19 else {
20 $user ['inf' ]=$_POST ['inf' ];
21 mysql_query
("UPDATE `user` SET `inf` = '" .my_esc
($user [ 'inf' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
22 }
23 }
24 if (isset( $_POST
['ank_d_r' ]) && ( is_numeric ($_POST
['ank_d_r' ]) && $_POST
['ank_d_r' ]>0 && $_POST
['ank_d_r' ]<= 31 || $_POST
['ank_d_r' ]== NULL ))
25 {
26 $user ['ank_d_r' ]= (int) $_POST
['ank_d_r' ];
27 if ( $user ['ank_d_r' ]== null)$user
['ank_d_r' ]='null' ;
28 mysql_query
("UPDATE `user` SET `ank_d_r` = $user
[ank_d_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
29 if ( $user ['ank_d_r' ]== 'null' )$user
['ank_d_r' ]=NULL ;
30 }
31 else $err
[]='Неверный формат дня рождения.' ;
32 if (isset( $_POST
['ank_m_r' ]) && ( is_numeric ( $_POST
['ank_m_r' ]) && $_POST
['ank_m_r' ]>0 && $_POST
['ank_m_r' ]<=12 || $_POST
['ank_m_r' ]==NULL ))
33 {
34 $user ['ank_m_r' ]= (int) $_POST
['ank_m_r' ];
35 if ( $user ['ank_m_r' ]== null) $user
['ank_m_r' ]='null';
36 mysql_query
("UPDATE `user` SET `ank_m_r` = $user
[ank_m_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
37 if ( $user
['ank_m_r' ]=='null' ) $user
['ank_m_r' ]=NULL ;
38 }
39 else $err
[]='Неверный формат месяца рождения.' ;
40 if (isset( $_POST
['ank_g_r' ]) && ( is_numeric ($_POST
['ank_g_r' ]) && $_POST
['ank_g_r' ]>0 && $_POST
['ank_g_r' ]<= date( 'Y' ) || $_POST
['ank_g_r' ]== NULL ))
41 {
42 $user ['ank_g_r' ]= (int) $_POST
['ank_g_r' ];
43 if ( $user ['ank_g_r' ]== null)$user
['ank_g_r' ]='null' ;
44 mysql_query
("UPDATE `user` SET `ank_g_r` = $user
[ank_g_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
45 if ( $user ['ank_g_r' ]== 'null' )$user
['ank_g_r' ]=NULL ;
46 }
47 else $err
[]='Неверный формат года рождения.' ;
48 if (isset( $_POST ['wmr' ]))
49 {
50 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmr' ]))$err
[]='В поле "WMR" используются запрещённые символы.' ;
51 else {
52 $user ['wmr' ]=$_POST ['wmr' ];
53 mysql_query
("UPDATE `user` SET `wmr` = '" . my_esc
($user [ 'wmr' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
54 }
55 }
56 if (isset( $_POST ['wmu' ]))
57 {
58 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmu' ]))$err
[]='В поле "WMU" используются запрещённые символы.' ;
59 else {
60 $user ['wmu' ]=$_POST ['wmu' ];
61 mysql_query
("UPDATE `user` SET `wmu` = '" .my_esc
($user [ 'wmu' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
62 }
63 }
64 if (isset( $_POST ['wmid' ]))
65 {
66 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmid' ])) $err
[]='В поле "WMID" используются запрещённые символы.' ;
67 else {
68 $user ['wmid' ]=$_POST [ 'wmid' ];
69 mysql_query
("UPDATE `user` SET `wmid` = '" .my_esc
($user
['wmid' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
70 }
71 }
72 if (isset( $_POST ['sait' ]))
73 {
74 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'sait'])) $err
[]='В поле "Сайт" используются запрещённые символы.' ;
75 else {
76 $user ['sait' ]=$_POST ['sait' ];
77 mysql_query
("UPDATE `user` SET `sait` = '" . my_esc
($user [ 'sait' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
78 }
79 }
80 if (isset( $_POST ['mail' ]))
81 {
82 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'mail' ]))$err
[]='В поле "Email" используются запрещённые символы.' ;
83 else {
84 $user ['mail' ]=$_POST ['mail' ];
85 mysql_query
("UPDATE `user` SET `mail` = '" .my_esc
($user [ 'mail' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
86 }
87 }
88 if (isset( $_POST ['best' ]))
89 {
90 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'best' ]))$err
[]='В поле "Умения" используются запрещённые символы.' ;
91 else {
92 $user ['best' ]=$_POST ['best' ];
93 mysql_query
("UPDATE `user` SET `best` = '" .my_esc
($user [ 'best' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
94 }
95 }
96 if (!isset( $err )) msg
('Изменения успешно приняты.' );
97 }
98 err();
99 aut();
100
echo "<form class='menu' method='post' action='?
$passgen '>" ;
101
echo "И.Ф.О:<br><input type='text' name='inf' value=' $user
[inf ]' /><br>" ;
102 echo 'Дата рождения:<br />
103 <select name="ank_d_r">
104 <option selected="' .$user
['ank_d_r' ]. '" value="' .$user
['ank_d_r' ]. '" >' . $user
['ank_d_r' ]. '<option>
105 <option value="1">1</option>
106 <option value="2">2</option>
107 <option value="3">3</option>
108 <option value="4">4</option>
109 <option value="5">5</option>
110 <option value="6">6</option>
111 <option value="7">7</option>
112 <option value="8">8</option>
113 <option value="9">9</option>
114 <option value="10">10</option>
115 <option value="11">11</option>
116 <option value="12">12</option>
117 <option value="13">13</option>
118 <option value="14">14</option>
119 <option value="15">15</option>
120 <option value="16">16</option>
121 <option value="17">17</option>
122 <option value="18">18</option>
123 <option value="19">19</option>
124 <option value="20">20</option>
125 <option value="21">21</option>
126 <option value="22">22</option>
127 <option value="23">23</option>
128 <option value="24">24</option>
129 <option value="25">25</option>
130 <option value="26">26</option>
131 <option value="27">27</option>
132 <option value="28">28</option>
133 <option value="29">29</option>
134 <option value="30">30</option>
135 <option value="31">31</option>
136 </select>' ;
137 echo '<select name="ank_m_r">
138 <option selected="' .$user
['ank_m_r' ].'" value="' . $user
['ank_m_r' ].'" >' .$user
['ank_m_r' ].'<option>
139 <option value="1">1</option>
140 <option value="2">2</option>
141 <option value="3">3</option>
142 <option value="4">4</option>
143 <option value="5">5</option>
144 <option value="6">6</option>
145 <option value="7">7</option>
146 <option value="8">8</option>
147 <option value="9">9</option>
148 <option value="10">10</option>
149 <option value="11">11</option>
150 <option value="12">12</option>
151 </select>' ;
152 echo '<select name="ank_g_r">
153 <option selected="' .$user
['ank_g_r' ]. '" value="' .$user
['ank_g_r' ]. '" >' . $user
['ank_g_r' ]. '<option><option value="1996">1996</
option><option value="1995">1995</
option><option value="1994">1994</
option><option value="1993">1993</
option><option value="1992">1992</
option><option value="1991">1991</
option><option value="1990">1990</
option><option value="1989">1989</
option><option value="1988">1988</
option><option value="1987">1987</
option><option value="1986">1986</
option><option value="1985">1985</
option><option value="1984">1984</
option><option value="1983">1983</
option><option value="1982">1982</
option><option value="1981">1981</
option><option value="1980">1980</
option><option value="1979">1979</
option><option value="1978">1978</
option><option value="1977">1977</
option><option value="1976">1976</
option><option value="1975">1975</
option><option value="1974">1974</
option><option value="1973">1973</
option><option value="1972">1972</
option><option value="1971">1971</
option><option value="1970">1970</
option><option value="1969">1969</
option><option value="1968">1968</
option><option value="1967">1967</
option><option value="1966">1966</
option><option value="1965">1965</
option><option value="1964">1964</
option><option value="1963">1963</
option><option value="1962">1962</
option><option value="1961">1961</
option><option value="1960">1960</
option><option value="1959">1959</
option><option value="1958">1958</
option><option value="1957">1957</
option><option value="1956">1956</
option><option value="1955">1955</
option><option value="1954">1954</
option><option value="1953">1953</
option><option value="1952">1952</
option><option value="1951">1951</
option><option value="1950">1950</
option><option value="1949">1949</
option><option value="1948">1948</
option><option value="1947">1947</
option><option value="1946">1946</
option><option value="1945">1945</
option><option value="1944">1944</
option><option value="1943">1943</
option><option value="1942">1942</
option><option value="1941">1941</
option><option value="1940">1940</
option><option value="1939">1939</
option><option value="1938">1938</
option><option value="1937">1937</
option><option value="1936">1936</
option><option value="1935">1935</
option><option value="1934">1934</
option><option value="1933">1933</
option><option value="1932">1932</
option><option value="1931">1931</
option><option value="1930">1930</
option><option value="1929">1929</
исправте ошыбки
12 Янв 2014<?
2 include_once 'sys/inc/start.php' ;
3 include_once 'sys/inc/
compress.php' ;
4 include_once 'sys/inc/sess.php' ;
5 include_once 'sys/inc/home.php' ;
6 include_once 'sys/inc/
settings.php' ;
7 include_once 'sys/inc/
db_connect.php' ;
8 include_once 'sys/inc/ipua.php' ;
9 include_once 'sys/inc/fnc.php' ;
10 include_once 'sys/inc/user.php' ;
11 only_reg ();
12 $set [ 'title' ]='Моя анкета' ;
13 include_once 'sys/inc/
thead.php' ;
14 title();
15 if (isset( $_POST ['save' ])){
16 if (isset( $_POST ['inf' ]))
17 {
18 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'inf' ]))$err
[]='В поле "И.Ф.О" используются запрещённые символы.' ;
19 else {
20 $user ['inf' ]=$_POST ['inf' ];
21 mysql_query
("UPDATE `user` SET `inf` = '" .my_esc
($user [ 'inf' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
22 }
23 }
24 if (isset( $_POST
['ank_d_r' ]) && ( is_numeric ($_POST
['ank_d_r' ]) && $_POST
['ank_d_r' ]>0 && $_POST
['ank_d_r' ]<= 31 || $_POST
['ank_d_r' ]== NULL ))
25 {
26 $user ['ank_d_r' ]= (int) $_POST
['ank_d_r' ];
27 if ( $user ['ank_d_r' ]== null)$user
['ank_d_r' ]='null' ;
28 mysql_query
("UPDATE `user` SET `ank_d_r` = $user
[ank_d_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
29 if ( $user ['ank_d_r' ]== 'null' )$user
['ank_d_r' ]=NULL ;
30 }
31 else $err
[]='Неверный формат дня рождения.' ;
32 if (isset( $_POST
['ank_m_r' ]) && ( is_numeric ( $_POST
['ank_m_r' ]) && $_POST
['ank_m_r' ]>0 && $_POST
['ank_m_r' ]<=12 || $_POST
['ank_m_r' ]==NULL ))
33 {
34 $user ['ank_m_r' ]= (int) $_POST
['ank_m_r' ];
35 if ( $user ['ank_m_r' ]== null) $user
['ank_m_r' ]='null';
36 mysql_query
("UPDATE `user` SET `ank_m_r` = $user
[ank_m_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
37 if ( $user
['ank_m_r' ]=='null' ) $user
['ank_m_r' ]=NULL ;
38 }
39 else $err
[]='Неверный формат месяца рождения.' ;
40 if (isset( $_POST
['ank_g_r' ]) && ( is_numeric ($_POST
['ank_g_r' ]) && $_POST
['ank_g_r' ]>0 && $_POST
['ank_g_r' ]<= date( 'Y' ) || $_POST
['ank_g_r' ]== NULL ))
41 {
42 $user ['ank_g_r' ]= (int) $_POST
['ank_g_r' ];
43 if ( $user ['ank_g_r' ]== null)$user
['ank_g_r' ]='null' ;
44 mysql_query
("UPDATE `user` SET `ank_g_r` = $user
[ank_g_r ] WHERE `id` = ' $user
[id] ' LIMIT 1" );
45 if ( $user ['ank_g_r' ]== 'null' )$user
['ank_g_r' ]=NULL ;
46 }
47 else $err
[]='Неверный формат года рождения.' ;
48 if (isset( $_POST ['wmr' ]))
49 {
50 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmr' ]))$err
[]='В поле "WMR" используются запрещённые символы.' ;
51 else {
52 $user ['wmr' ]=$_POST ['wmr' ];
53 mysql_query
("UPDATE `user` SET `wmr` = '" . my_esc
($user [ 'wmr' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
54 }
55 }
56 if (isset( $_POST ['wmu' ]))
57 {
58 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmu' ]))$err
[]='В поле "WMU" используются запрещённые символы.' ;
59 else {
60 $user ['wmu' ]=$_POST ['wmu' ];
61 mysql_query
("UPDATE `user` SET `wmu` = '" .my_esc
($user [ 'wmu' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
62 }
63 }
64 if (isset( $_POST ['wmid' ]))
65 {
66 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'wmid' ])) $err
[]='В поле "WMID" используются запрещённые символы.' ;
67 else {
68 $user ['wmid' ]=$_POST [ 'wmid' ];
69 mysql_query
("UPDATE `user` SET `wmid` = '" .my_esc
($user
['wmid' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
70 }
71 }
72 if (isset( $_POST ['sait' ]))
73 {
74 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'sait'])) $err
[]='В поле "Сайт" используются запрещённые символы.' ;
75 else {
76 $user ['sait' ]=$_POST ['sait' ];
77 mysql_query
("UPDATE `user` SET `sait` = '" . my_esc
($user [ 'sait' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
78 }
79 }
80 if (isset( $_POST ['mail' ]))
81 {
82 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'mail' ]))$err
[]='В поле "Email" используются запрещённые символы.' ;
83 else {
84 $user ['mail' ]=$_POST ['mail' ];
85 mysql_query
("UPDATE `user` SET `mail` = '" .my_esc
($user [ 'mail' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
86 }
87 }
88 if (isset( $_POST ['best' ]))
89 {
90 if ( preg_match ('#[^A-zА-
яЁё0-9 _-=+()*?.,]#ui' ,
$_POST [ 'best' ]))$err
[]='В поле "Умения" используются запрещённые символы.' ;
91 else {
92 $user ['best' ]=$_POST ['best' ];
93 mysql_query
("UPDATE `user` SET `best` = '" .my_esc
($user [ 'best' ]). "' WHERE `id` = ' $user
[id] ' LIMIT 1" );
94 }
95 }
96 if (!isset( $err )) msg
('Изменения успешно приняты.' );
97 }
98 err();
99 aut();
100
echo "<form class='menu' method='post' action='?
$passgen '>" ;
101
echo "И.Ф.О:<br><input type='text' name='inf' value=' $user
[inf ]' /><br>" ;
102 echo 'Дата рождения:<br />
103 <select name="ank_d_r">
104 <option selected="' .$user
['ank_d_r' ]. '" value="' .$user
['ank_d_r' ]. '" >' . $user
['ank_d_r' ]. '<option>
105 <option value="1">1</option>
106 <option value="2">2</option>
107 <option value="3">3</option>
108 <option value="4">4</option>
109 <option value="5">5</option>
110 <option value="6">6</option>
111 <option value="7">7</option>
112 <option value="8">8</option>
113 <option value="9">9</option>
114 <option value="10">10</option>
115 <option value="11">11</option>
116 <option value="12">12</option>
117 <option value="13">13</option>
118 <option value="14">14</option>
119 <option value="15">15</option>
120 <option value="16">16</option>
121 <option value="17">17</option>
122 <option value="18">18</option>
123 <option value="19">19</option>
124 <option value="20">20</option>
125 <option value="21">21</option>
126 <option value="22">22</option>
127 <option value="23">23</option>
128 <option value="24">24</option>
129 <option value="25">25</option>
130 <option value="26">26</option>
131 <option value="27">27</option>
132 <option value="28">28</option>
133 <option value="29">29</option>
134 <option value="30">30</option>
135 <option value="31">31</option>
136 </select>' ;
137 echo '<select name="ank_m_r">
138 <option selected="' .$user
['ank_m_r' ].'" value="' . $user
['ank_m_r' ].'" >' .$user
['ank_m_r' ].'<option>
139 <option value="1">1</option>
140 <option value="2">2</option>
141 <option value="3">3</option>
142 <option value="4">4</option>
143 <option value="5">5</option>
144 <option value="6">6</option>
145 <option value="7">7</option>
146 <option value="8">8</option>
147 <option value="9">9</option>
148 <option value="10">10</option>
149 <option value="11">11</option>
150 <option value="12">12</option>
151 </select>' ;
152 echo '<select name="ank_g_r">
153 <option selected="' .$user
['ank_g_r' ]. '" value="' .$user
['ank_g_r' ]. '" >' . $user
['ank_g_r' ]. '<option><option value="1996">1996</
option><option value="1995">1995</
option><option value="1994">1994</
option><option value="1993">1993</
option><option value="1992">1992</
option><option value="1991">1991</
option><option value="1990">1990</
option><option value="1989">1989</
option><option value="1988">1988</
option><option value="1987">1987</
option><option value="1986">1986</
option><option value="1985">1985</
option><option value="1984">1984</
option><option value="1983">1983</
option><option value="1982">1982</
option><option value="1981">1981</
option><option value="1980">1980</
option><option value="1979">1979</
option><option value="1978">1978</
option><option value="1977">1977</
option><option value="1976">1976</
option><option value="1975">1975</
option><option value="1974">1974</
option><option value="1973">1973</
option><option value="1972">1972</
option><option value="1971">1971</
option><option value="1970">1970</
option><option value="1969">1969</
option><option value="1968">1968</
option><option value="1967">1967</
option><option value="1966">1966</
option><option value="1965">1965</
option><option value="1964">1964</
option><option value="1963">1963</
option><option value="1962">1962</
option><option value="1961">1961</
option><option value="1960">1960</
option><option value="1959">1959</
option><option value="1958">1958</
option><option value="1957">1957</
option><option value="1956">1956</
option><option value="1955">1955</
option><option value="1954">1954</
option><option value="1953">1953</
option><option value="1952">1952</
option><option value="1951">1951</
option><option value="1950">1950</
option><option value="1949">1949</
option><option value="1948">1948</
option><option value="1947">1947</
option><option value="1946">1946</
option><option value="1945">1945</
option><option value="1944">1944</
option><option value="1943">1943</
option><option value="1942">1942</
option><option value="1941">1941</
option><option value="1940">1940</
option><option value="1939">1939</
option><option value="1938">1938</
option><option value="1937">1937</
option><option value="1936">1936</
option><option value="1935">1935</
option><option value="1934">1934</
option><option value="1933">1933</
option><option value="1932">1932</
option><option value="1931">1931</
option><option value="1930">1930</
option><option value="1929">1929</
Комментарии:
Machete 12 Янв 2014
Автор темы
Киборг, аты можеш етат файл пасматреть http://dcms-social.ru/user/personalfiles/3913/4270/?id_file=4494&page=1
Автор темы
Киборг, аты можеш етат файл пасматреть http://dcms-social.ru/user/personalfiles/3913/4270/?id_file=4494&page=1