PHP 57
Config.php-simple Guest on 2nd September 2020 12:30:11 PM
  1. <?
  2. // --------------------------------------------------------------------------
  3. // Foto-Webcam.eu
  4. // Global configuration
  5. //
  6. // Flori Radlherr, http://www.radlherr.de
  7. // This is free software, see COPYING for details.
  8. // --------------------------------------------------------------------------
  9.  
  10. // The website
  11. #$webcam['server']= "www.foto-webcam.eu";
  12. $webcam['uri']=    "/webcam";
  13.  
  14. // Image upload
  15. $webcam['uploadkey']=   "replacethistoyourkey";
  16. $webcam['topOffset']=   200;
  17. $webcam['maxGamma']=    1.5;
  18. $webcam['maxIso']=      400;
  19. $webcam['maxExposure']= 0;
  20.  
  21. // Standard image formats
  22. $webcam['aspectRatio']= 16/9;
  23. $webcam['mainWidth']=   816;
  24. $webcam['hdWidth']=     1200;
  25. $webcam['thumbWidth']=  114;
  26. $webcam['hugeWidth']=   4272;
  27. $webcam['hugeHeight']=  2848;
  28.  
  29. // Additional formats stored in "current" folder
  30. $webcam['resolutions']= Array(150,180,240,320,400,640,720,816,1200,1600);
  31.  
  32. // When to refresh a shown image
  33. $webcam['actMinute']=   2;
  34.  
  35. // When to capture the image
  36. $webcam['captureInterval']= 600;
  37. $webcam['captureOffset']= 0;
  38. // Special capture times mmddHHMM (regexp format) -> New year firework
  39. $webcam['specialTimes']= "/(12312354|12312357|01010003|01010006)/";
  40.  
  41. // This message is shown if no current image could be obtained
  42. $webcam['errorMsg']=
  43.         "Wegen einer technischen Störung ist die Kamera derzeit offline";
  44.  
  45. // List additional cameras on this site or cross-linked
  46. // each is: Array(Name, Current-Image-Url, Link-Url, Title)
  47. // Hint: for local cams, both Urls shall be null
  48. $webcam['overview']= Array(
  49.   Array("beispiel", null, null,
  50.         "Beispiel zum Test")
  51. );
  52.  
  53. $webcam['extOverview']= Array(
  54.   Array("lienz",
  55.         "http://www.foto-webcam.eu/webcam/lienz/current/",
  56.         "http://www.foto-webcam.eu/webcam/lienz/",
  57.         "foto-webcam.eu: Lienz / Zettersfeld"),
  58.   Array("lorenzalm",
  59.         "http://www.panorama-blick.at/webcam/lorenzalm/current",
  60.         "http://www.panorama-blick.at/webcam/lorenzalm/",
  61.         "panorama-blick.at: Mörtschach im Mölltal / Kärnten"),
  62. );
  63.  
  64. // ----------------------------------------------------------------------------
  65. // Generate HTML navigation header
  66. $webcam['navHeader']= function() {
  67.   global $webcam;
  68.   print "<!DOCTYPE html>
  69.  <html><head>
  70.  <title>${webcam['title']}</title>
  71.  <style>
  72.    body {
  73.      font-family: arial,helvetica,sans-serif;
  74.      font-size: 14px;
  75.    }
  76.    #short-title {
  77.      position: absolute;
  78.      padding-top: 50px;
  79.      padding-bottom: 50px;
  80.      text-align: center;
  81.      top: 10px;
  82.      left: 10px;
  83.      width: 150px;
  84.      border: 1px solid #c0c0c0;
  85.    }
  86.    #left-box {
  87.      position: absolute;
  88.      padding-top: 20px;
  89.      padding-bottom: 20px;
  90.      top: 200px;
  91.      left: 10px;
  92.      width: 150px;
  93.      border: 1px solid #c0c0c0;
  94.    }
  95.    .right {
  96.      position: absolute;
  97.      top: 0px;
  98.      left: 180px;
  99.      width: 720px;
  100.      padding-top: 10px;
  101.    }
  102.  </style>
  103.  </head><body>
  104.    <div id='short-title'>${webcam['short']}</div>
  105.    <div id='left-box'></div>
  106.    <div class='right'>";
  107. };
  108.  
  109. // ----------------------------------------------------------------------------
  110. // Generate page footer
  111. $webcam['navFooter']= function() {
  112.   print "</div></body></html>";
  113. }
  114. ?>

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.