Namaz vakitleri

Rate This Thread:
2 users voted for this thread: show list
Loading...
Page 1 of 8 123 ... LastLast
Results 1 to 5 of 36

Thread: Namaz vakitleri

  1. Go to Thank YouDownload #1
    Go to Thank You
    Üye bahri's Avatar

    Info

    Go to Top of Post

    Default Namaz vakitleri

    Selamün aleyküm,

    Arkadaşlar kol saatinden namaz vakitlerini göre bilmek için diyanet sitesinden vakitleri bot ile alabiliyorum fakat bir sorunum var.

    Sorun hangi vakit içinde oldugunu renkli yazdırabilme bu konuda yardımcı olbilecek arkadaşlara şimdiden teşekkküler.

    Faydalandığım bot php script.

    Code:
    1. <!DOCTYPE html><html>
    2. <head>
    3. <meta charset="utf-8"/>
    4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    5. <meta name="description"
    6. content="xx xx Namaz Vakitleri"/>
    7. <title>
    8. xx xxx Namaz Vakitleri Diyanet Takvimine Göre:
    9. </title>
    10. <link rel="stylesheet" type="text/css" href="css/style.css"/>
    11. <script src="js/main.js"></script>
    12. <script>
    13. (function(tau) {
    14. var page,
    15. list,
    16. listHelper;
    17. /* Check for a circular device */
    18. if (tau.support.shape.circle) {
    19. document.addEventListener('pagebeforeshow', function(e) {
    20. page = e.target;
    21. list = page.querySelector('.ui-listview');
    22. if (list) {
    23. /* Create SnapListView and binding rotary event using tau.helper */
    24. listHelper = tau.helper.SnapListStyle.create(list);
    25. }
    26. });
    27. document.addEventListener('pagebeforehide', function(e) {
    28. listHelper.destroy();
    29. });
    30. }
    31. }(tau));
    32. </script>
    33. </head>
    34. <body>
    35. <div class="contents">
    36. <div style='margin:auto;'>
    37. <span class="content_text" id="textbox">
    38. <?php
    39. function siteConnect($site)
    40. {
    41. $ch = curl_init();
    42. $hc = "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)";
    43. curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
    44. curl_setopt($ch, CURLOPT_URL, $site);
    45. curl_setopt($ch, CURLOPT_USERAGENT, $hc);
    46. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    47. $site = curl_exec($ch);
    48. curl_close($ch);
    49. preg_match_all('@var _imsakTime = "(.*?)"@si',$site,$imsak);
    50. preg_match_all('@var _gunesTime = "(.*?)"@si',$site,$gunes);
    51. preg_match_all('@var _ogleTime = "(.*?)"@si',$site,$ogle);
    52. preg_match_all('@var _ikindiTime = "(.*?)"@si',$site,$ikindi);
    53. preg_match_all('@var _aksamTime = "(.*?)"@si',$site,$aksam);
    54. preg_match_all('@var _yatsiTime = "(.*?)"@si',$site,$yatsi);
    55. echo "<center><h2>İmsak: ".$imsak[1][0]."</center></h2>";
    56. echo "<center><h2>Güneş: ".$gunes[1][0]."</center></h2>";
    57. echo "<center><h2>Öğle: ".$ogle[1][0]."</center></h2>";
    58. echo "<center><h2>İkindi: ".$ikindi[1][0]."</center></h2>";
    59. echo "<center><h2>Akşam: ".$aksam[1][0]."</center></h2>";
    60. echo "<center><h2>Yatsı: ".$yatsi[1][0]."</center></h2>";
    61. }
    62. $giris = siteConnect('https://namazvakitleri.diyanet.gov.tr/tr-tr/xxx/prayer-time-for-xx-xx');
    63. ?>
    64. </div></span>
    65. </div>
    66. </div>
    67. </body>
    68. </html>
    Mesala öğle vakti 13:00 ise bu vakit gelince diğer vakit girinceye kadar ne biliyim yeşil renk gibi yazsa diğer vakitleri de mavi gibi. Bunun için ne gibi bir ekleme ilave kod gerekli?

    Selam ve saygılar,
    Bahri
    Last edited by bahri; 05.03.20 at 03:40.




  2. The Following 3 Users Say Thank You to bahri For This Useful Post:

  3. Go to Thank YouDownload #2
    Go to Thank You
    Yönetici yilmaz's Avatar

    Info

    Go to Top of Post

    Ançak bu kadar oluyor.
    Vakti giren yaşil oluyor , ama vakti çıkan yeşil kaluyor.
    Demo


    PHP Code:
    1. <!DOCTYPE html><html>
    2. <head>
    3. <meta charset="utf-8"/>
    4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    5. <meta name="description"
    6. content="xx xx Namaz Vakitleri"/>
    7. <title>
    8. xx xxx Namaz Vakitleri Diyanet Takvimine Göre:
    9. </title>
    10. <link rel="stylesheet" type="text/css" href="css/style.css"/>
    11. <script src="js/main.js"></script>
    12. <script>
    13. (function(tau) {
    14. var page,
    15. list,
    16. listHelper;
    17. /* Check for a circular device */
    18. if (tau.support.shape.circle) {
    19. document.addEventListener('pagebeforeshow', function(e) {
    20. page = e.target;
    21. list = page.querySelector('.ui-listview');
    22. if (list) {
    23. /* Create SnapListView and binding rotary event using tau.helper */
    24. listHelper = tau.helper.SnapListStyle.create(list);
    25. }
    26. });
    27. document.addEventListener('pagebeforehide', function(e) {
    28. listHelper.destroy();
    29. });
    30. }
    31. }(tau));
    32. </script>
    33. </head>
    34. <body>
    35. <div class="contents">
    36. <div style='margin:auto;'>
    37. <span class="content_text" id="textbox">
    38. <?php
    39. function siteConnect($site)
    40. {
    41. $ch curl_init();
    42. $hc "YahooSeeker-Testing/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; Yahoo! Search - Web Search)";
    43. curl_setopt($chCURLOPT_REFERER'http://www.google.com');
    44. curl_setopt($chCURLOPT_URL$site);
    45. curl_setopt($chCURLOPT_USERAGENT$hc);
    46. curl_setopt($chCURLOPT_RETURNTRANSFER1);
    47. $site curl_exec($ch);
    48. //echo $site;
    49. curl_close($ch);
    50. preg_match_all('@var _imsakTime = "(.*?)"@si',$site,$imsak);
    51. preg_match_all('@var _gunesTime = "(.*?)"@si',$site,$gunes);
    52. preg_match_all('@var _ogleTime = "(.*?)"@si',$site,$ogle);
    53. preg_match_all('@var _ikindiTime = "(.*?)"@si',$site,$ikindi);
    54. preg_match_all('@var _aksamTime = "(.*?)"@si',$site,$aksam);
    55. preg_match_all('@var _yatsiTime = "(.*?)"@si',$site,$yatsi);
    56. $im $imsak[1][0];
    57. $gu $gunes[1][0];
    58. $og $ogle[1][0];
    59. $ik $ikindi[1][0];
    60. $ak $aksam[1][0];
    61. $ya $yatsi[1][0];
    62. $saat date("H:i");
    63. if ($im $saat){ $vakit_im ' style="color:green"';} 
    64. echo "<center><h2$vakit_im>İmsak: $im</h2></center>";
    65. if ($gu $saat){ $vakit_gu ' style="color:green"';} 
    66. echo "<center><h2$vakit_gu>Güneş: $gu</h2></center>";
    67. if ($og $saat){ $vakit_og ' style="color:green"';} 
    68. echo "<center><h2$vakit_og>Öğle: $og</h2></center>";
    69. if ($ik $saat){ $vakit_ik ' style="color:green"';} 
    70. echo "<center><h2$vakit_ik>İkindi: $ik</h2></center>";
    71. if ($ak $saat){ $vakit_ak ' style="color:green"';} 
    72. echo "<center><h2$vakit_ak>Akşam: $ak</h2></center>";
    73. if ($ya $saat){ $vakit_ya ' style="color:green"';} 
    74. echo "<center><h2$vakit_ya>Yatsı: $ya</h2></center>";
    75. }
    76. $giris siteConnect('https://namazvakitleri.diyanet.gov.tr/tr-tr/xxx/prayer-time-for-xx-xx');
    77. ?>
    78. </div></span>
    79. </div>
    80. </div>
    81. </body>
    82. </html>


  4. The Following 5 Users Say Thank You to yilmaz For This Useful Post:

  5. Go to Thank YouDownload #3
    Go to Thank You
    Üye bahri's Avatar

    Info

    Go to Top of Post

    Saol usta bu kadarı da iyi en azından ayırt edebilirim en son yeşil geçerli diye.


  6. The Following 3 Users Say Thank You to bahri For This Useful Post:

  7. Go to Thank YouDownload #4
    Go to Thank You
    Üye kudret443's Avatar

    Info

    Go to Top of Post

    Quote Originally Posted by yilmaz View Post
    ançak bu kadar oluyor.
    Vakti giren yaşil oluyor , ama vakti çıkan yeşil kaluyor.
    demo


    PHP Code:
    1. <!doctype html><html>
    2. <head>
    3. <meta charset="utf-8"/>
    4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    5. <meta name="description"
    6. content="xx xx namaz vakitleri"/>
    7. <title>
    8. xx xxx namaz vakitleri diyanet takvimine göre:
    9. </title>
    10. <link rel="stylesheet" type="text/css" href="css/style.css"/>
    11. <script src="js/main.js"></script>
    12. <script>
    13. (function(tau) {
    14. var page,
    15. list,
    16. listhelper;
    17. /* check for a circular device */
    18. if (tau.support.shape.circle) {
    19. document.addeventlistener('pagebeforeshow', function(e) {
    20. page = e.target;
    21. list = page.queryselector('.ui-listview');
    22. if (list) {
    23. /* create snaplistview and binding rotary event using tau.helper */
    24. listhelper = tau.helper.snapliststyle.create(list);
    25. }
    26. });
    27. document.addeventlistener('pagebeforehide', function(e) {
    28. listhelper.destroy();
    29. });
    30. }
    31. }(tau));
    32. </script>
    33. </head>
    34. <body>
    35. <div class="contents">
    36. <div style='margin:auto;'>
    37. <span class="content_text" id="textbox">
    38. <?php
    39. function siteconnect($site)
    40. {
    41. $ch curl_init();
    42. $hc "yahooseeker-testing/v3.9 (compatible; mozilla 4.0; msie 5.5; yahoo! Search - web search)";
    43. curl_setopt($chcurlopt_referer'http://www.google.com');
    44. curl_setopt($chcurlopt_url$site);
    45. curl_setopt($chcurlopt_useragent$hc);
    46. curl_setopt($chcurlopt_returntransfer1);
    47. $site curl_exec($ch);
    48. //echo $site;
    49. curl_close($ch);
    50. preg_match_all('@var _imsaktime = "(.*?)"@si',$site,$imsak);
    51. preg_match_all('@var _gunestime = "(.*?)"@si',$site,$gunes);
    52. preg_match_all('@var _ogletime = "(.*?)"@si',$site,$ogle);
    53. preg_match_all('@var _ikinditime = "(.*?)"@si',$site,$ikindi);
    54. preg_match_all('@var _aksamtime = "(.*?)"@si',$site,$aksam);
    55. preg_match_all('@var _yatsitime = "(.*?)"@si',$site,$yatsi);
    56. $im $imsak[1][0];
    57. $gu $gunes[1][0];
    58. $og $ogle[1][0];
    59. $ik $ikindi[1][0];
    60. $ak $aksam[1][0];
    61. $ya $yatsi[1][0];
    62. $saat date("h:i");
    63. if ($im $saat){ $vakit_im ' style="color:green"';} 
    64. echo "<center><h2$vakit_im>imsak: $im</h2></center>";
    65. if ($gu $saat){ $vakit_gu ' style="color:green"';} 
    66. echo "<center><h2$vakit_gu>güneş: $gu</h2></center>";
    67. if ($og $saat){ $vakit_og ' style="color:green"';} 
    68. echo "<center><h2$vakit_og>öğle: $og</h2></center>";
    69. if ($ik $saat){ $vakit_ik ' style="color:green"';} 
    70. echo "<center><h2$vakit_ik>ikindi: $ik</h2></center>";
    71. if ($ak $saat){ $vakit_ak ' style="color:green"';} 
    72. echo "<center><h2$vakit_ak>akşam: $ak</h2></center>";
    73. if ($ya $saat){ $vakit_ya ' style="color:green"';} 
    74. echo "<center><h2$vakit_ya>yatsı: $ya</h2></center>";
    75. }
    76. $giris siteconnect('https://namazvakitleri.diyanet.gov.tr/tr-tr/xxx/prayer-time-for-xx-xx');
    77. ?>
    78. </div></span>
    79. </div>
    80. </div>
    81. </body>
    82. </html>
    kodda bi sikintimi var acaba deniyorum ama hata aliyorum. Kontrol edermisiniz veya güncellermisiniz


  8. Go to Thank YouDownload #5
    Go to Thank You
    Üye kudret443's Avatar

    Info

    Go to Top of Post

    Kodda bi sikinti mi var acaba kontrol eder misiniz??


  9. The Following User Says Thank You to kudret443 For This Useful Post:

Page 1 of 8 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •