PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи

Страниц (9): [1] 2 3 4 5 6 7 8 9 »

> Найдено сообщений: 135
mclord Отправлено: 25 Сентября, 2011 - 21:13:12 • Тема: помогите css не коректно читает исправте • Форум: Напишите за меня, пожалуйста

Ответов: 3
Просмотров: 57
в общем вот этот код не читается в ие думаю что остальной тоже
CODE (htmlphp):
скопировать код в буфер обмена
  1.  
  2.  
  3. td.mx1
  4. {
  5.         background-color: #9ACD32;
  6.        font-size:11px;
  7.         font-family: Verdana, Arial, Helvetica, sans-serif;
  8.         color:#ffffff;
  9.        font-weight: bold;
  10.  
  11. }
  12.  
  13. td.mx
  14. {
  15.         font-size:11px;
  16.         font-family: Verdana, Arial, Helvetica, sans-serif;
  17.         color:#000000;
  18.  
  19. }
  20.  
  21. .row {height: 26px;
  22.         cursor: pointer;
  23.         cursor: hand;
  24.         background-color: #FFFFFF;
  25. }
  26.  
  27. .row:hover {height: 26px;
  28.         background-color: #FFD365;
  29. }
  30.  
  31. .caption {height: 26px;
  32.         background-color: #74b3ef;
  33.        color: #ffffff;
  34.        font-weight: bold;
  35. }
  36.  
  37. .caption a {height: 26px;
  38.         color: #555;
  39.        text-decoration: none;
  40. }
  41.  
  42. .caption a:hover {height: 26px;
  43.         color: #555;
  44.        text-decoration: underline;
  45. }
  46.  
  47. .caption td {height: 26px;
  48.         padding: 4px 6px 4px 6px;
  49. }
  50.  
mclord Отправлено: 25 Сентября, 2011 - 20:53:38 • Тема: помогите css не коректно читает исправте • Форум: Напишите за меня, пожалуйста

Ответов: 3
Просмотров: 57
CODE (htmlphp):
скопировать код в буфер обмена
  1.  
  2. td.mx1
  3. {
  4.         background-color: #9ACD32;
  5.         font-size:11px;
  6.         font-family: Verdana, Arial, Helvetica, sans-serif;
  7.         color:#ffffff;
  8.         font-weight: bold;
  9.  
  10. }
  11.  
  12. td.mx
  13. {
  14.         font-size:11px;
  15.         font-family: Verdana, Arial, Helvetica, sans-serif;
  16.         color:#000000;
  17.  
  18. }
  19.  
  20. .row {height: 26px;
  21.         cursor: pointer;
  22.         cursor: hand;
  23.         background-color: #FFFFFF;
  24. }
  25.  
  26. .row:hover {height: 26px;
  27.         background-color: #FFD365;
  28. }
  29.  
  30. .caption {height: 26px;
  31.         background-color: #74b3ef;
  32.         color: #ffffff;
  33.         font-weight: bold;
  34. }
  35.  
  36. .caption a {height: 26px;
  37.         color: #555;
  38.         text-decoration: none;
  39. }
  40.  
  41. .caption a:hover {height: 26px;
  42.         color: #555;
  43.         text-decoration: underline;
  44. }
  45.  
  46. .caption td {height: 26px;
  47.         padding: 4px 6px 4px 6px;
  48. }
  49. html,body {margin:0;padding:0;background:#fff url(../images/base-bg.gif);width:100%;height:100%; font-family:Arial, Helvetica, sans-serif;}
  50. * html #wrap{height: 100%;}
  51. p,td { font-family:Arial, Helvetica, sans-serif; margin-top: 0px;}
  52. a img{border:0;}
  53. a{
  54.         color: #000000;
  55.         text-decoration: underline;
  56. }
  57. a:hover{
  58.         color: #1a60e1;
  59.         text-decoration: none;
  60. }
  61. a.hidden {text-decoration: none;color: #000;cursor:default;}
  62. form {margin:0;padding:0;}
  63. ul {margin-left:20px;margin-top:0px;padding:1px;list-style-type: square;line-height: 16px;}
  64. h1 {font-size: 16px;font-weight: bold;color: #000;margin: 0 0 5px 0; font-style:oblique;}
  65.  
  66. .bottom_addr {font-size: 11px;color: #000000;padding: 2px 0 13px 0; text-align:center;}
  67. .bottom_addr a {text-decoration: none;color: #000000}
  68. .bottom_addr a:hover {text-decoration: underline;color: #000000}
  69.  
  70. .bottom_menu {color: #000;text-align: center;padding-top: 14px;padding-bottom: 4px; font-size:11px;}
  71. .bottom_menu a {color: #000;text-decoration: none;}
  72. .bottom_menu a:hover {color: #000;text-decoration: underline;}
  73.  
  74. #menu {color: #000;font-weight: bold;padding: 0;white-space: nowrap; background:url(../images/menu-bg.gif) no-repeat; width:650px; margin:0 auto; height:39px;}
  75. #menu td{ font-size:13px; font-family:"trebuchet MS"; text-align:center; padding:5px 14px 0 14px;}
  76. #menu a{text-decoration:underline;color: #000;}
  77. #menu a:hover {color: #6a6862;text-decoration: underline;}
  78.  
  79. .body_txt {color: #000;text-align: justify;padding: 5px 15px 0 5px;vertical-align: top; font-size:12px;}
  80. #body{margin:9px 0 15px 0;}
  81. .login_form {background-image: url(../images/login-form-bg.gif);background-repeat: repeat-x;height: 20px;width: 110px;border-width: 1px;border-style: solid;font-size: 11px;padding-top: 3px;padding-left: 1px;}
  82.  
  83. #wrap{position:relative; min-height:100%; margin:0 auto; width:100%;}
  84. #page{width:720px;margin:0 auto; padding: 0 1px 1px 1px; border: 1px solid #009900; border-top:none; background:#FFF;}
  85. #footer{width:720px; background-color:#89d43f;}
  86. #header{}
  87. #logo{position:absolute; margin: 122px 0 0 63px;}
  88. #company_name {font-size: 24px;font-style:oblique;color:#000; font-family:"trebuchet MS"; position:absolute; margin:162px 0 0 160px;}
  89. .right-block{background:url(../images/right-block-bg.gif) repeat-y; font-size:11px; padding:0 10px 0 10px;}
  90. .right-block ul{margin:0 0 0 17px;}
  91. .right-block p{margin:0 0 3px 0;}
  92.  
mclord Отправлено: 25 Сентября, 2011 - 19:35:31 • Тема: помогите скрипт работает не коректно в ie • Форум: Напишите за меня, пожалуйста

Ответов: 4
Просмотров: 48
отоброжается по разному в браузерах
mclord Отправлено: 25 Сентября, 2011 - 19:23:00 • Тема: помогите скрипт работает не коректно в ie • Форум: Напишите за меня, пожалуйста

Ответов: 4
Просмотров: 48
откройте сайт http://money227[dot]ru/
через гугл хром и ие
mclord Отправлено: 25 Сентября, 2011 - 18:16:46 • Тема: помогите скрипт работает не коректно в ie • Форум: Напишите за меня, пожалуйста

Ответов: 4
Просмотров: 48
PHP:
скопировать код в буфер обмена
  1.  
  2. <? @include("templates/head.inc.php"); ?>
  3. <script language="JavaScript" type="text/javascript">
  4.     var select1 = 0;
  5.     var select2 = 0;
  6.     var temp1 = 0;
  7.     var temp2 = 0;
  8.  
  9.     function goto_list() {
  10.       document.location='index.php?c1='+document.select_currency.from.value+'&c2='+document.select_currency.to.value;
  11.     }
  12.  
  13.     function auto_direct(select1, select2) {
  14.       if (select1 == 1) {
  15.         temp1 = select1;
  16.       }
  17.       if (select2 == 1) {
  18.         temp2 = select2;
  19.       }
  20.       if ((temp1 == 1)&&(temp2 == 1)) {
  21.         goto_list();
  22.       }
  23.     }
  24.  
  25.     nr = false;
  26.     function f_cl(url) {
  27.       if (nr) {
  28.         nr = false;
  29.         return false;
  30.       }
  31.       window.open('go.php?'+url);
  32.     }
  33.  
  34.    
  35.   </script>  
  36. <?PHP
  37.  
  38. include ('db.php');
  39.  
  40. function itfalse($x)
  41.           {
  42.               global $se;        $ok=0;
  43.              for ($j = 3; $j < 15; $j++)
  44.                {
  45.                    if ($se[$x][$j] == 40)   { $ok++; }
  46.                }     return $ok;
  47.  
  48.           }
  49.           function iscount2($x,$y)
  50.           {
  51.            if (($x == 7) and ($y == 7)) { return 0; }
  52.            if (($x == 1) and ($y == 0)) { return 1; }
  53.            if (($x == 3) )  { return 2; }
  54.            if (($x == 2) and ($y == 6)) { return 3; }
  55.            if (($x == 2) and ($y == 1))  { return 4; }
  56.            if (($x == 6) and ($y == 5))  { return 5; }
  57.            if (($x == 7) and ($y == 4))  { return 6; }
  58.            if (($x == 1) and ($y == 2))  { return 7; }
  59.            if (($x == 6) and ($y == 6))  { return 8; }
  60.  
  61.            if (($x == 4))  { return 9; }
  62.           }
  63.                     function iscount($x,$y)  //1 2 digit
  64.           {
  65.            if ( ($x == 1) and ($y == 0) )  { return 1; }
  66.            if (($x == 5) and ($y == 4)) { return 2; }
  67.            if (($x == 2) and ($y == 7)) { return 3; }
  68.            if (($x == 2) and ($y == 10))  { return 4; }
  69.            if (($x == 7) and ($y == 5)) { return 5; }
  70.            if (($x == 8) and ($y == 5))  { return 6; }
  71.               if (($x == 1) and ($y == 3))  { return 7; }
  72.            if (($x == 7) and ($y == 7))  { return 8; }
  73.            if (($x == 5) and ($y == 8))  { return 9; }
  74.             if (($x == 8) and ($y == 8))  { return 0; }
  75.  
  76.           }
  77.  
  78.                        
  79. function curl_redir_exec($ch)
  80. {
  81. static $curl_loops = 0;
  82. static $curl_max_loops = 20;
  83. if ($curl_loops++ >= $curl_max_loops)
  84. {
  85. $curl_loops = 0;
  86. return FALSE;
  87. }
  88. curl_setopt($ch, CURLOPT_HEADER, true);
  89. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  90. $data = curl_exec($ch);
  91. list($header, $data) = explode("\n\n", $data, 2);
  92. $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  93. if ($http_code == 301 || $http_code == 302)
  94. {
  95. $matches = array();
  96. preg_match('/Location:(.*?)\n/', $header, $matches);
  97. $url = @parse_url(trim(array_pop($matches)));
  98. if (!$url)
  99. {
  100. //couldn't process the url to redirect to
  101. $curl_loops = 0;
  102. return $data;
  103. }
  104. $last_url = parse_url(curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
  105. if (!$url['scheme'])
  106. $url['scheme'] = $last_url['scheme'];
  107. if (!$url['host'])
  108. $url['host'] = $last_url['host'];
  109. if (!$url['path'])
  110. $url['path'] = $last_url['path'];
  111. $new_url = $url['scheme'] . '://' . $url['host'] . $url['path'] . ($url['query']?'?'.$url['query']:'');
  112. curl_setopt($ch, CURLOPT_URL, $new_url);
  113. //debug('Redirecting to', $new_url);
  114. return curl_redir_exec($ch);
  115. } else {
  116. $curl_loops=0;
  117. return $data;
  118. }
  119. }
  120.  
  121. function getPage($url)
  122. {
  123.         $ch = curl_init();
  124.         curl_setopt ($ch, CURLOPT_URL,$url);
  125.         curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
  126.         curl_setopt ($ch, CURLOPT_TIMEOUT, 1);
  127.         @curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  128.         curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  129.         $result = curl_exec ($ch);
  130.         curl_close($ch);
  131.         return $result;
  132. }
  133.  
  134.  
  135. ?>
  136.  
  137. <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" align="left" width="100%">
  138. <tr>
  139. <td width="100%" style='padding-top: 7px; padding-bottom: 7px; padding-left: 10px; padding-right: 10px; '>
  140. <br><br>
  141.   <center><form action="index.php" method="get" name="select_currency">
  142.   <select name="from" onchange="auto_direct(1, 0)">
  143.        
  144. <?PHP
  145.  
  146. $c1= $_GET["c1"];
  147. $c2= $_GET["c2"];
  148.  
  149. if ($c1=="" && $c2=="")
  150.  
  151. {$c1=1; $c2=2;}
  152.  
  153. foreach ($decode as $i=>$value)
  154. { if ($decode[$i] <>"") {echo"<option value=".$i;
  155. if ($i==$c1) {echo " selected";}
  156. echo ">".$decode[$i]."</option>";}
  157. }
  158.  
  159. ?>
  160. </select> на <select name="to" onchange="auto_direct(0, 1)">
  161.        
  162. <?PHP
  163. $i=0;
  164. foreach ($decode as $i=>$value)
  165. { if ($decode[$i] <>"") {echo"<option value=".$i;
  166. if ($i==$c2) {echo " selected";}
  167. echo ">".$decode[$i]."</option>";}
  168. }
  169.  
  170. ?>
  171.  
  172.  </select> <script language="JavaScript" type="text/javascript">
  173.     document.write('<a href="javascript:goto_list()"><b>Найти</b><'+'/a>');
  174.   </script>
  175.   <noscript>
  176.     <input type="submit" style="margin-top: 12px; margin-bottom: 2px" value="Найти курсы">
  177.   </noscript>
  178.  
  179. </form></center>
  180. </td>
  181. </tr>
  182. </table>
  183. <br><br>
  184. <center><hr><h2>Обмен <?PHP echo $decode[$c1]; ?> на <?PHP echo $decode[$c2]; ?></h2><hr></center><br><br>
  185. <div class="exchvar">
  186. &nbsp;&nbsp;<a href="index.php?c1=<?PHP echo $c2; ?>&c2=<?PHP echo $c1; ?>"><b>Обратный обмен</a></b> | <a href="index.php?c1=1&c2=20"><b>Обмен WMZ на WMU</b></a> | <a href="index.php?c1=2&c2=20"><b>Обмен WMR на WMU</b></a></div><br>
  187. <table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#0B8D0B" width="100%" id="AutoNumber4">
  188.       <thead>
  189.       <tr class="caption"><td>&nbsp;Обменник</td><td width="90">Отдаете</td><td width="90">Получаете</td><td width="90" class="alignright">Резерв</td><td class="alignright" width="35">BL&nbsp;</td></tr>
  190.       </thead>
  191.       <tbody>
  192.  
  193. <?PHP
  194. $start = microtime(true);
  195. foreach ($obmennik as $k=>$valueo)
  196.  
  197. {$file = @getpage ($obmennik[$k]["kurs_url"]);
  198.  
  199. $file = explode(";", $file);
  200.  
  201. if ($obmennik[$k] <>"" && (!$file)==false)  
  202.  
  203.  {     
  204.         foreach ($file as $line_num => $file)
  205.         {
  206.        
  207.         $array = explode(",",trim($file,";"));
  208.         if ($c1==$array[0] && $c2==$array[1])
  209.  
  210.                 {
  211.                 $kursy[$k][1]=$array[2];
  212.                 $kursy[$k][2]=$array[3];
  213.                 if ($kursy[$k][1]<>"") {$nn=1; }
  214.                 }
  215.         }
  216.  }
  217.  
  218. }
  219.  
  220. //if(is_array($kursy) && isset($kursy[1][1]))
  221. //foreach ($kursy as $kurs => $kursy) {
  222. //if ($kursy[$kurs][1]<>"" && $kursy[$kurs][2]<>"")
  223. // {$nn=1;}
  224. //}
  225. //if ($kursy[0][1]<>"")
  226. if ($nn==1)
  227.  
  228. {
  229. asort ($kursy);
  230.  
  231. $sum=0;
  232. $sk=0;
  233. $n=0;
  234. foreach($kursy as $key => $val)
  235.    {
  236.  
  237. $res=$kursy[$key][2];
  238. $print1=1;
  239. $print=$kursy[$key][1];
  240.          if ($print<1) {$print1=(1/$print);
  241. $print=1;
  242. }
  243.  
  244. $reserve=round($res,2);
  245. if ($reserve<=0) {$reserve=0;}
  246.  
  247. $wmid = @getpage('http://stats.wmtransfer.com/Levels/pWMIDLevel.aspx?wmid='.$obmennik[$key]["wmid"].'&w=35&h=18&bg=0XDBE2E9');
  248.     $img = @imagecreatefromstring($wmid);
  249.     for ($i = 4; $i < 35; $i++)
  250. {
  251. for ($j = 3; $j < 15; $j++)
  252. {
  253. $se[$i][$j] = (@imagecolorat ($img, $i, $j));
  254.          }
  255.           }
  256.           $is = false;
  257.           $w = '';
  258.  
  259.                if ( (itfalse(4) ==6 ) and (itfalse(5) ==7 ) and (itfalse(6) ==1 ) and (itfalse(7) ==2 ) and (itfalse(8) == 7 )  )
  260.              {
  261.                $is = true;
  262.                $w='no';
  263.              }
  264.  
  265.           if (!( itfalse(18) or itfalse(20) or itfalse(19) or ($is) ) )
  266.           {
  267.                //one digit
  268.  
  269.                    $p1 =  itfalse(23,$se);
  270.                    $p2 =   itfalse(28,$se);
  271.                    $w = (iscount($p1, $p2));
  272.                    $is = true;
  273.           }
  274.  
  275.           if ( ! ( itfalse(13) or itfalse(14) or itfalse(12) or ($is)  )   )
  276.           {
  277.                //two digit
  278.  
  279.                    $p1 =  itfalse(17,$se);
  280.                    $p2 =   itfalse(22,$se);
  281.                    $w = (iscount($p1, $p2));
  282.  
  283.                   $p1 =  itfalse(25,$se);
  284.                    $p2 =   itfalse(30,$se);
  285.                    $w .= (iscount($p1, $p2));
  286.                    $is = true;
  287.           }
  288.  
  289.            if (!( itfalse(7) or itfalse(8) or itfalse(6) or ($is) ) )
  290.           {
  291.  
  292.                //tree digit
  293.                     $p1 = itfalse(11,$se);
  294.                    $p2 =  itfalse(16,$se);
  295.                   $w  = (iscount2($p1, $p2));
  296.  
  297.                   $p1 =  itfalse(18,$se);
  298.                    $p2 =  itfalse(23,$se);
  299.                    $w.=(iscount2($p1, $p2));
  300.  
  301.                    $p1 =  itfalse(25,$se);
  302.                    $p2 =  itfalse(30,$se);
  303.                    $w.= (iscount2($p1, $p2));
  304.                     $is = true;
  305.           }
  306.           if ($is == false)
  307.           {
  308.  
  309.               $p1 = itfalse(6,$se);
  310.                    $p2 =  itfalse(11,$se);
  311.                    $w = (iscount2($p1, $p2));
  312.  
  313.                    $p1 = itfalse(13,$se);
  314.                    $p2 =  itfalse(18,$se);
  315.                    $w.= (iscount2($p1, $p2));
  316.  
  317.                    $p1 = itfalse(20,$se);
  318.                    $p2 =  itfalse(25,$se);
  319.                    $w.= (iscount2($p1, $p2));
  320.  
  321.                    $p1 = itfalse(27,$se);
  322.                    $p2 =  itfalse(32,$se);
  323.                    $w.= (iscount2($p1, $p2));
  324.           }
  325.                      
  326.  
  327. echo'      
  328. <tr class="row" onClick="f_cl('.$key.')">
  329. <td>&nbsp;'.$obmennik[$key]["name"].'</td>
  330.  
  331. <td><b>'.number_format (round($print,2),2).'</b> '.$decode[$c1].'</td>
  332. <td><b>'.number_format (round($print1,2),2).'</b> '.$decode[$c2].'</td>
  333. <td class="alignright">'.number_format ($reserve,2).'</td>
  334. <td class="alignright">'.$w.'</td>
  335. </tr>';
  336.  
  337. $sum2=$sum2+$reserve;
  338. if ($print1==1){
  339. $sum1=$print*$reserve;
  340. }
  341. else {
  342. $sum1=$print1*$reserve;
  343. }
  344. $n=$n+1;
  345. $sum=$sum+$sum1;
  346. }
  347. $end = microtime(true);
  348. $time = date("H:i:s");
  349. echo '</tbody></table><br><br>';
  350. echo ('<HR><h2>Статистика</h2><HR><br><br>' );
  351. echo ('Всего обменных пунктов: <b>'.$n.'</b><br><br>' );
  352. echo ('Всего резервов: <b>'.number_format (round($sum2,2),2).' '.$decode[$c2].'</b><br><br>');
  353. echo ('Cредний курс <b>'.$decode[$c1].'/'.$decode[$c2].'</b> с учетом резервов: <b>'.number_format(round(($sum/$sum2),4),2).'</b><br><br>');
  354. echo ('Обновление: <b>'.$time.'</b> ( По Москве )<br><br>' );
  355. echo ('Время выполнения скрипта: <b>'.(round($end-$start, 4)).' c</b><br><br>');
  356. }
  357. else {echo '<tr><td></td></tr></tbody></table><br><b>Обмен в данном направлении не производится ни одним из имеющихся в базе обменных пунктов</b><br><br>';};
  358. ?>
  359. <br>
  360. </body>
  361. </html>
  362. <? @include("templates/foot.inc.php"); ?>
  363.  
mclord Отправлено: 22 Сентября, 2011 - 20:19:42 • Тема: помогите дописать скрипт • Форум: Напишите за меня, пожалуйста

Ответов: 10
Просмотров: 91
неа
mclord Отправлено: 22 Сентября, 2011 - 19:58:47 • Тема: помогите дописать скрипт • Форум: Напишите за меня, пожалуйста

Ответов: 10
Просмотров: 91
так
mclord Отправлено: 22 Сентября, 2011 - 19:39:03 • Тема: помогите дописать скрипт • Форум: Напишите за меня, пожалуйста

Ответов: 10
Просмотров: 91
http://youpass[dot]ru/ вот сайт
длина пароля можно сделать хоть сколько а мне надо чтобы было 50 максимум символов выдовало
mclord Отправлено: 22 Сентября, 2011 - 18:35:49 • Тема: помогите дописать скрипт • Форум: Напишите за меня, пожалуйста

Ответов: 10
Просмотров: 91
вы поняли что вы написали ? maxlength="2" а максимум символов сколько может герироваться пароль должен равняться 50
mclord Отправлено: 22 Сентября, 2011 - 18:29:01 • Тема: помогите дописать скрипт • Форум: Напишите за меня, пожалуйста

Ответов: 10
Просмотров: 91
<input type=text name=length size=5 value=1 name=length maxlength="1">&nbsp;(max: 9)<br>
а мне надо чтобы максимум симовлов можно было вводить ну 50
бывший код каторый изночально был
<input type=text name=length size=5 value=10><br>
mclord Отправлено: 20 Сентября, 2011 - 07:41:31 • Тема: помощь в обратных связях разделах • Форум: Напишите за меня, пожалуйста

Ответов: 1
Просмотров: 35
надо сделать чтобы в меню можно было выбирать кому посылать суппорт админ и тд
PHP:
скопировать код в буфер обмена
  1.  
  2. <html>
  3. <head>
  4. <title>Написать нам</title>
  5. <style type="text/css">
  6. textarea {
  7.  background-color: #FEEFE7;
  8.  border: 3px double #004F00;
  9.  color: #420F88;
  10. }
  11. input{
  12.  background-color: #FEEFE7;
  13.  border: 3px double #004F00;
  14.  color: #420F88;
  15. }
  16. .button{
  17.  background-color: #FEEFE7;
  18.  border: 3px double #004F00;
  19.  color: #307438;
  20.  font-weight: bold;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <!-- Ниже Javasccript, который проверяет форму перед отправкой на заполненность -->
  26. <script language="JavaScript">
  27. <!--
  28. required = new Array("imya", "email", "tema", "text", "zkod");
  29. required_show = new Array("Ваше Имя", "Ваш E-mail", "Тема", "Сообщение", "Каптча");
  30. function sendm () {
  31. var i, j;
  32. for(j=0; j<required.length; j++) {
  33. for (i=0; i<document.forms[0].length; i++) {
  34.  if (document.forms[0].elements[i].name == required[j] && document.forms[0].elements[i].value == "" ) {
  35. alert('Пожалуйста, заполните поле ' + required_show[j]);
  36. document.forms[0].elements[i].focus();
  37. return false;
  38. }
  39. }
  40. }
  41. return true;
  42. }
  43. -->
  44. </script><p>
  45. <?
  46. $vmylo='simanovskiy.grigoriy@gmail.com'; //Здесь впишите свой е-мэил, на который хотите получать письма
  47. $s_imya=$_POST['imya'];
  48. $s_email=$_POST['email'];
  49. $s_tema=$_POST['tema'];
  50. $s_text=$_POST['text'];
  51. if(isset($_POST['send'])){
  52. if($s_imya=="" or $s_email=="" or $s_tema=="" or $s_text==""){
  53. echo '<center><img src="'.$ns.'/images/error.png" alt="ошибка"></center>';
  54. echo '<center><font color="red"><strong>Пожалуйста, заполните все поля!</strong></font></center>';
  55. print '<center><a href="'.$ns.'/index.php?send">Вернуться назад</a></center>';
  56. include('engine/templates/foot.inc.php');
  57. }
  58. if(!preg_match('/^(([^<>()[\]\\.,;:\s@"\']+(\.[^<>()[\]\\.,;:\s@"\']+)*)|("[^"\']+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-zA-Z\d\-]+\.)+[a-zA-Z]{2,}))$/', $s_email))
  59. {
  60. echo '<center><img src="'.$ns.'/images/error.png" alt="ошибка"></center>';
  61. echo '<center><font color="red"><strong>Введён некорректный e-mail адрес!</strong></font></center>';
  62. print '<center><a href="'.$ns.'/index.php?send">Вернуться назад</a></center>';
  63. include('engine/templates/foot.inc.php');
  64. }
  65. if($_SESSION['secpic']!=strtolower($_POST['zkod'])){
  66. echo '<center><img src="'.$ns.'/images/error.png" alt="ошибка"></center>';
  67. print '<center><font color="red"><strong>Неверный защитный код!</strong></font></center>';
  68. print '<center><a href="'.$ns.'/index.php?send">Вернуться назад</a></center>';
  69. include('engine/templates/foot.inc.php');
  70. }
  71. $to = ''.$vmylo.'';
  72. $subject = ''.$s_tema.'';
  73. $msg = '<html>
  74.    <head>
  75.        <title>Письмо с Вашего сайта</title>
  76.    </head>
  77.    <body>
  78.         <p>Здравствуйте!                С вашего сайта пришло следующее сообщение:<br />                '.$s_text.'<br />               Имя отправителя: '.$s_imya.'            Ip отправителя: '.$_SERVER['REMOTE_ADDR'].'             Домен Вашего сайта: '.$_SERVER['SERVER_NAME'].'
  79.                 </p>
  80.    </body>
  81. </html>';
  82. $mailheaders = "Content-type: text/html; charset=windows-1251 \r\n";
  83. $mailheaders .= "From: $s_email\n";
  84. mail($to, $subject, $msg, $mailheaders);
  85. echo '<center><img src="'.$ns.'/images/ok.png" alt="ok"></center>';
  86. echo '<center><font color="green"><b>Спасибо, Ваше сообщение отправлено!</b></font></center>';
  87. echo '<center><font color="green"><b>Буквально через 4 секунды, Вас автоматически перенаправит на главную страницу...</b></font></center>';
  88. unset($_SESSION['secpic']);
  89. include('engine/templates/foot.inc.php');
  90. echo <<<HTML
  91. <script language="JavaScript">
  92. setTimeout("document.location=\"$ns\";",4000);
  93. </script>
  94. HTML;
  95. }
  96. ?>
  97. <table align="center" border="0">
  98. <form name="sendmaksik" action="<?=$ns; ?>/index.php?send" method="POST" onSubmit="return sendm();">
  99. <tr><td><b>Ваше Имя:</b><br /><input type="text" name="imya" size="35" maxlength="20" /></td></tr>
  100. <tr><td><b>Ваш E-mail:</b><br /><input type="text" name="email" size="35" maxlength="25" /></td></tr>
  101. <tr><td><b>Тема:</b><br /><input type="text" name="tema" size="35" maxlength="45" /></td></tr>
  102. <tr><td><b>Сообщение:</b><br /><textarea name="text" rows="5" cols="27">
  103. </textarea></td></tr>
  104. <tr><td><img src="<?=$ns; ?>/system/kapcha.php" alt="капча" /></td></tr>
  105. <tr><td><b>Каптча:</b><br /><input type="text" name="zkod" size="35" maxlength="5" /></td></tr>
  106. <tr><td></td></tr>
  107. <tr><td><input type="submit" name="send" value="Отправить письмо" class="button" /></td></tr>
  108. </form>
  109. </table></p>
  110. </body>
  111. </html>
  112.  
mclord Отправлено: 16 Сентября, 2011 - 03:19:10 • Тема: помогите настроить php в $send • Форум: Напишите за меня, пожалуйста

Ответов: 8
Просмотров: 59
в общем плачу сотку кто поможет пишите в асю 2645432
mclord Отправлено: 15 Сентября, 2011 - 23:27:52 • Тема: помогите настроить php в $send • Форум: Напишите за меня, пожалуйста

Ответов: 8
Просмотров: 59
не коректно отоброжает http://youpass[dot]ru/index.php?send
(Добавление)
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/nulled227/domains/youpass. ru/public_html/index.php on line 33 вот ошибка
mclord Отправлено: 15 Сентября, 2011 - 22:52:50 • Тема: помогите настроить php в $send • Форум: Напишите за меня, пожалуйста

Ответов: 8
Просмотров: 59
не подходит так как вы сказали
mclord Отправлено: 15 Сентября, 2011 - 22:08:46 • Тема: помогите настроить php в $send • Форум: Напишите за меня, пожалуйста

Ответов: 8
Просмотров: 59
вот код но не могу понять чем заменять $ спедцсимвол какой у него
PHP:
скопировать код в буфер обмена
  1.  
  2. <?
  3. $send = <<<SEND
  4. <?
  5. $sait = $_SERVER['SERVER_NAME']; вот где ошибку выводит
  6. ?>
  7. SEND;
  8. ?>
  9.  

Страниц (9): [1] 2 3 4 5 6 7 8 9 »
Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB