Guest User

Untitled

a guest
Jul 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 73.36 KB | None | 0 0
  1. $ curl -d '{"ejemplo": "datos"}' --header "Content-Type:application/json" https://iohealth.nimbeo.com/ihealth/subscription
  2. <!DOCTYPE html>
  3. <html>
  4.   <head>
  5.     <meta charset="utf-8">
  6.     <title>Whoops! There was an error.</title>
  7.  
  8.     <style>.cf:before, .cf:after {content: " ";display: table;} .cf:after {clear: both;} .cf {*zoom: 1;}
  9. body {
  10.   font: 14px helvetica, arial, sans-serif;
  11.   color: #2B2B2B;
  12.   background-color: #D4D4D4;
  13.   padding:0;
  14.   margin: 0;
  15.   max-height: 100%;
  16. }
  17.   a {
  18.     text-decoration: none;
  19.   }
  20.  
  21. .container{
  22.     height: 100%;
  23.     width: 100%;
  24.     position: fixed;
  25.     margin: 0;
  26.     padding: 0;
  27.     left: 0;
  28.     top: 0;
  29. }
  30.  
  31. .branding {
  32.   position: absolute;
  33.   top: 10px;
  34.   right: 20px;
  35.   color: #777777;
  36.   font-size: 10px;
  37.     z-index: 100;
  38. }
  39.   .branding a {
  40.     color: #CD3F3F;
  41.   }
  42.  
  43. header {
  44.   padding: 30px 20px;
  45.   color: white;
  46.   background: #272727;
  47.   box-sizing: border-box;
  48.   border-left: 5px solid #CD3F3F;
  49. }
  50.   .exc-title {
  51.     margin: 0;
  52.     color: #616161;
  53.     text-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  54.   }
  55.     .exc-title-primary { color: #CD3F3F; }
  56.     .exc-message {
  57.       font-size: 32px;
  58.       margin: 5px 0;
  59.       word-wrap: break-word;
  60.     }
  61.  
  62. .stack-container {
  63.     height: 100%;
  64.     position: relative;
  65. }
  66.  
  67. .details-container {
  68.   height: 100%;
  69.   overflow: auto;
  70.   float: right;
  71.   width: 70%;
  72.   background: #DADADA;
  73. }
  74.   .details {
  75.     padding: 10px;
  76.     padding-left: 5px;
  77.     border-left: 5px solid rgba(0, 0, 0, .1);
  78.   }
  79.  
  80. .frames-container {
  81.   height: 100%;
  82.   overflow: auto;
  83.   float: left;
  84.   width: 30%;
  85.   background: #FFF;
  86. }
  87.   .frame {
  88.     padding: 14px;
  89.     background: #F3F3F3;
  90.     border-right: 1px solid rgba(0, 0, 0, .2);
  91.     cursor: pointer;
  92.   }
  93.     .frame.active {
  94.       background-color: #4288CE;
  95.       color: #F3F3F3;
  96.               box-shadow: inset -2px 0 0 rgba(255, 255, 255, .1);
  97.       text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  98.     }
  99.  
  100.     .frame:not(.active):hover {
  101.       background: #BEE9EA;
  102.     }
  103.  
  104.     .frame-class, .frame-function, .frame-index {
  105.       font-weight: bold;
  106.     }
  107.  
  108.     .frame-index {
  109.       font-size: 11px;
  110.       color: #BDBDBD;
  111.     }
  112.  
  113.     .frame-class {
  114.       color: #4288CE;
  115.     }
  116.       .active .frame-class {
  117.         color: #BEE9EA;
  118.       }
  119.  
  120.     .frame-file {
  121.       font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
  122.       word-wrap:break-word;
  123.     }
  124.  
  125.       .frame-file .editor-link {
  126.         color: #272727;
  127.       }
  128.  
  129.     .frame-line {
  130.       font-weight: bold;
  131.       color: #4288CE;
  132.     }
  133.  
  134.     .active .frame-line { color: #BEE9EA; }
  135.     .frame-line:before {
  136.       content: ":";
  137.     }
  138.  
  139.     .frame-code {
  140.       padding: 10px;
  141.       padding-left: 5px;
  142.       background: #BDBDBD;
  143.       display: none;
  144.       border-left: 5px solid #4288CE;
  145.     }
  146.  
  147.     .frame-code.active {
  148.       display: block;
  149.     }
  150.  
  151.     .frame-code .frame-file {
  152.       background: #C6C6C6;
  153.       color: #525252;
  154.       text-shadow: 0 1px 0 #E7E7E7;
  155.       padding: 10px 10px 5px 10px;
  156.  
  157.       border-top-right-radius: 6px;
  158.       border-top-left-radius:  6px;
  159.  
  160.       border: 1px solid rgba(0, 0, 0, .1);
  161.       border-bottom: none;
  162.       box-shadow: inset 0 1px 0 #DADADA;
  163.     }
  164.  
  165.     .code-block {
  166.       padding: 10px;
  167.       margin: 0;
  168.       box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  169.     }
  170.  
  171.     .linenums {
  172.       margin: 0;
  173.       margin-left: 10px;
  174.     }
  175.  
  176.     .frame-comments {
  177.       box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  178.       border: 1px solid rgba(0, 0, 0, .2);
  179.       border-top: none;
  180.  
  181.       border-bottom-right-radius: 6px;
  182.       border-bottom-left-radius:  6px;
  183.  
  184.       padding: 5px;
  185.       font-size: 12px;
  186.       background: #404040;
  187.     }
  188.  
  189.     .frame-comments.empty {
  190.       padding: 8px 15px;
  191.     }
  192.  
  193.     .frame-comments.empty:before {
  194.       content: "No comments for this stack frame.";
  195.       font-style: italic;
  196.       color: #828282;
  197.     }
  198.  
  199.     .frame-comment {
  200.       padding: 10px;
  201.       color: #D2D2D2;
  202.     }
  203.       .frame-comment a {
  204.         color: #BEE9EA;
  205.         font-weight: bold;
  206.         text-decoration: none;
  207.       }
  208.         .frame-comment a:hover {
  209.           color: #4bb1b1;
  210.         }
  211.  
  212.     .frame-comment:not(:last-child) {
  213.       border-bottom: 1px dotted rgba(0, 0, 0, .3);
  214.     }
  215.  
  216.     .frame-comment-context {
  217.       font-size: 10px;
  218.       font-weight: bold;
  219.       color: #86D2B6;
  220.     }
  221.  
  222. .data-table-container label {
  223.   font-size: 16px;
  224.   font-weight: bold;
  225.   color: #4288CE;
  226.   margin: 10px 0;
  227.   padding: 10px 0;
  228.  
  229.   display: block;
  230.   margin-bottom: 5px;
  231.   padding-bottom: 5px;
  232.   border-bottom: 1px dotted rgba(0, 0, 0, .2);
  233. }
  234.   .data-table {
  235.     width: 100%;
  236.     margin: 10px 0;
  237.   }
  238.  
  239.   .data-table tbody {
  240.     font: 13px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
  241.   }
  242.  
  243.   .data-table thead {
  244.     display: none;
  245.   }
  246.  
  247.   .data-table tr {
  248.     padding: 5px 0;
  249.   }
  250.  
  251.   .data-table td:first-child {
  252.     width: 20%;
  253.     min-width: 130px;
  254.     overflow: hidden;
  255.     font-weight: bold;
  256.     color: #463C54;
  257.     padding-right: 5px;
  258.  
  259.   }
  260.  
  261.   .data-table td:last-child {
  262.     width: 80%;
  263.     -ms-word-break: break-all;
  264.     word-break: break-all;
  265.     word-break: break-word;
  266.     -webkit-hyphens: auto;
  267.     -moz-hyphens: auto;
  268.     hyphens: auto;
  269.   }
  270.  
  271.   .data-table span.empty {
  272.     color: rgba(0, 0, 0, .3);
  273.     font-style: italic;
  274.   }
  275.   .data-table label.empty {
  276.     display: inline;
  277.   }
  278.  
  279. .handler {
  280.   padding: 10px;
  281.   font: 14px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
  282. }
  283.  
  284. .handler.active {
  285.   color: #BBBBBB;
  286.   background: #989898;
  287.   font-weight: bold;
  288. }
  289.  
  290. /* prettify code style
  291. Uses the Doxy theme as a base */
  292. pre .str, code .str { color: #BCD42A; }  /* string  */
  293. pre .kwd, code .kwd { color: #4bb1b1;  font-weight: bold; }  /* keyword*/
  294. pre .com, code .com { color: #888; font-weight: bold; } /* comment */
  295. pre .typ, code .typ { color: #ef7c61; }  /* type  */
  296. pre .lit, code .lit { color: #BCD42A; }  /* literal */
  297. pre .pun, code .pun { color: #fff; font-weight: bold;  } /* punctuation  */
  298. pre .pln, code .pln { color: #e9e4e5; }  /* plaintext  */
  299. pre .tag, code .tag { color: #4bb1b1; }  /* html/xml tag  */
  300. pre .htm, code .htm { color: #dda0dd; }  /* html tag */
  301. pre .xsl, code .xsl { color: #d0a0d0; }  /* xslt tag */
  302. pre .atn, code .atn { color: #ef7c61; font-weight: normal;} /* html/xml attribute name */
  303. pre .atv, code .atv { color: #bcd42a; }  /* html/xml attribute value  */
  304. pre .dec, code .dec { color: #606; }  /* decimal  */
  305. pre.prettyprint, code.prettyprint {
  306.   font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
  307.   background: #333;
  308.   color: #e9e4e5;
  309. }
  310.   pre.prettyprint {
  311.     white-space: pre-wrap;
  312.   }
  313.  
  314.   pre.prettyprint a, code.prettyprint a {
  315.     text-decoration:none;
  316.   }
  317.  
  318.   .linenums li {
  319.     color: #A5A5A5;
  320.   }
  321.  
  322.   .linenums li.current{
  323.     background: rgba(255, 100, 100, .07);
  324.     padding-top: 4px;
  325.     padding-left: 1px;
  326.   }
  327.     .linenums li.current.active {
  328.       background: rgba(255, 100, 100, .17);
  329.     }
  330.  
  331. #plain-exception {
  332.     display: none;
  333. }
  334.  
  335. #copy-button {
  336.     display: none;
  337.     float: right;
  338.     cursor: pointer;   
  339.     border: 0;
  340. }
  341.  
  342. .clipboard {
  343.     width:            29px;
  344.     height:           28px;
  345.     background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAcCAYAAACdz7SqAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gUUByMD0ZSoGQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAACAklEQVRIx72Wv0sbYRjHP29y1VoXxR9UskjpXTaHoBUcpGgKkS5OZ1Ec/QeKOIhalEghoOCqQsGhFAWbISKYyaFDS1BKKW0TCYrQSdElXSReh9bkksu9iZdLbnrvvee9z/N83+d9nldo2gvjzd5Hxp4246W6J5tJszsxwvxPIbXzwBQDLgABvM1P6JsAwzCkdopl5vqIuWev2K4QpH/4QjjQci/nPCVny3iaNzMcrVUsC1sChFMpwtTu8dTqx7J9dR3a2BngUb0j7Xr+jtjasBR8f+jpNqqqoqoqmqblxjOJq/8GTfhCK8TWhmmykdhRpEIIhBCWMcD51wQXN3KwY3nvYGYgQPbXOMHJKOlMA77QCvsbugXsOFLZ+5+jGULBtyQuFB4PzlrAVSWSGWaptpdbjAcniaZv6RhcIL6VByvVZqsQouBMdutJkrrVrr1/gdjqN4Ze/3DvyBwcnnF9I7N4gC8YYdqNSHP7uD5G/7pdJRrl/ecIva1t9IRcgpolLk6qQic8eB+6GOkdrDjSf/OiTD91CS4r+jXrMqWkrgvUtuDbeVNTKGzw6SRDto5QBc5Yehlg0WbTc8mwHCeld1u+yZSySySlspTHFmZUeIkrgBYvtvPcyBdXkqWKq5OLmbk/luqVYjPOd3lxLXf/J/P7mJ0oCL/fX1Yfs4RO5CxW8C97dLBw2Q3fUwAAAABJRU5ErkJggg==');
  346.     background-repeat: no-repeat;
  347. }
  348.  
  349. .help button {
  350.     cursor: help;
  351.     height:   28px;
  352.     float: right;
  353.     margin-left: 10px;
  354. }
  355.  
  356. .help button:hover + #help-overlay {
  357.     display: block;
  358. }
  359.  
  360. #help-overlay {
  361.     pointer-events: none;
  362.     display: none;
  363.     position: absolute;
  364.     top: 0;
  365.     left: 0;
  366.     width: 100%;
  367.     height: 100%;
  368.     background-color: rgba(54, 54, 54, 0.5);
  369. }
  370.  
  371. #help-overlay div {
  372.     width: 200px;
  373.     padding: 5px;
  374.     color: #463c54;
  375.     background-color: white;
  376.     border-radius: 10px;
  377. }
  378.  
  379. #help-clipboard {
  380.     position: absolute;
  381.     right: 30px;
  382.     top: 90px;
  383. }
  384.  
  385. #help-framestack {
  386.     position: absolute;
  387.     left: 200px;
  388.     top: 50px;
  389. }
  390.  
  391. #help-exc-message {
  392.     position: absolute;
  393.     left: 65%;
  394.     top: 10px;
  395. }
  396.  
  397. #help-code {
  398.     position: absolute;
  399.     right: 30px;
  400.     top: 250px;
  401. }
  402.  
  403. #help-request {
  404.     position: absolute;
  405.     right: 30px;
  406.     top: 480px;
  407. }
  408.  
  409. #help-appinfo {
  410.     position: absolute;
  411.     right: 30px;
  412.     top: 550px;
  413. }
  414.  
  415. /* inspired by githubs kbd styles */
  416. kbd {
  417.     -moz-border-bottom-colors: none;
  418.     -moz-border-left-colors: none;
  419.     -moz-border-right-colors: none;
  420.     -moz-border-top-colors: none;
  421.     background-color: #fcfcfc;
  422.     border-color: #ccc #ccc #bbb;
  423.     border-image: none;
  424.     border-radius: 3px;
  425.     border-style: solid;
  426.     border-width: 1px;
  427.     box-shadow: 0 -1px 0 #bbb inset;
  428.     color: #555;
  429.     display: inline-block;
  430.     font-size: 11px;
  431.     line-height: 10px;
  432.     padding: 3px 5px;
  433.     vertical-align: middle;
  434. }
  435. </style>
  436.   </head>
  437.   <body>
  438.  
  439.     <div class="Whoops container">
  440.  
  441.       <div class="stack-container">
  442.         <div class="frames-container cf ">
  443.             <div class="frame active" id="frame-line-0">
  444.       <div class="frame-method-info">
  445.         <span class="frame-index">19.</span>
  446.         <span class="frame-class">ErrorException</span>
  447.         <span class="frame-function"></span>
  448.       </div>
  449.  
  450.     <span class="frame-file">
  451.       &hellip;/&shy;app/&shy;controllers/&shy;IHealthController.php<!--
  452.    --><span class="frame-line">206</span>
  453.     </span>
  454.   </div>
  455.   <div class="frame " id="frame-line-1">
  456.       <div class="frame-method-info">
  457.         <span class="frame-index">18.</span>
  458.         <span class="frame-class">Illuminate\Exception\Handler</span>
  459.         <span class="frame-function">handleError</span>
  460.       </div>
  461.  
  462.     <span class="frame-file">
  463.       &hellip;/&shy;app/&shy;controllers/&shy;IHealthController.php<!--
  464.    --><span class="frame-line">206</span>
  465.     </span>
  466.   </div>
  467.   <div class="frame " id="frame-line-2">
  468.       <div class="frame-method-info">
  469.         <span class="frame-index">17.</span>
  470.         <span class="frame-class">IHealthController</span>
  471.         <span class="frame-function">log_test</span>
  472.       </div>
  473.  
  474.     <span class="frame-file">
  475.       &hellip;/&shy;app/&shy;controllers/&shy;IHealthController.php<!--
  476.    --><span class="frame-line">223</span>
  477.     </span>
  478.   </div>
  479.   <div class="frame " id="frame-line-3">
  480.       <div class="frame-method-info">
  481.         <span class="frame-index">16.</span>
  482.         <span class="frame-class">IHealthController</span>
  483.         <span class="frame-function">subscription</span>
  484.       </div>
  485.  
  486.     <span class="frame-file">
  487.       <#unknown><!--
  488.    --><span class="frame-line">0</span>
  489.     </span>
  490.   </div>
  491.   <div class="frame " id="frame-line-4">
  492.       <div class="frame-method-info">
  493.         <span class="frame-index">15.</span>
  494.         <span class="frame-class"></span>
  495.         <span class="frame-function">call_user_func_array</span>
  496.       </div>
  497.  
  498.     <span class="frame-file">
  499.       &hellip;/&shy;vendor/&shy;laravel/&shy;framework/&shy;src/&shy;Illuminate/&shy;Routing/&shy;Controller.php<!--
  500.    --><span class="frame-line">231</span>
  501.     </span>
  502.   </div>
  503.   <div class="frame " id="frame-line-5">
  504.       <div class="frame-method-info">
  505.         <span class="frame-index">14.</span>
  506.         <span class="frame-class">Illuminate\Routing\Controller</span>
  507.         <span class="frame-function">callAction</span>
  508.       </div>
  509.  
  510.     <span class="frame-file">
  511.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  512.    --><span class="frame-line">3819</span>
  513.     </span>
  514.   </div>
  515.   <div class="frame " id="frame-line-6">
  516.       <div class="frame-method-info">
  517.         <span class="frame-index">13.</span>
  518.         <span class="frame-class">Illuminate\Routing\ControllerDispatcher</span>
  519.         <span class="frame-function">call</span>
  520.       </div>
  521.  
  522.     <span class="frame-file">
  523.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  524.    --><span class="frame-line">3807</span>
  525.     </span>
  526.   </div>
  527.   <div class="frame " id="frame-line-7">
  528.       <div class="frame-method-info">
  529.         <span class="frame-index">12.</span>
  530.         <span class="frame-class">Illuminate\Routing\ControllerDispatcher</span>
  531.         <span class="frame-function">dispatch</span>
  532.       </div>
  533.  
  534.     <span class="frame-file">
  535.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  536.    --><span class="frame-line">3012</span>
  537.     </span>
  538.   </div>
  539.   <div class="frame " id="frame-line-8">
  540.       <div class="frame-method-info">
  541.         <span class="frame-index">11.</span>
  542.         <span class="frame-class">Illuminate\Routing\Router</span>
  543.         <span class="frame-function">Illuminate\Routing\{closure}</span>
  544.       </div>
  545.  
  546.     <span class="frame-file">
  547.       <#unknown><!--
  548.    --><span class="frame-line">0</span>
  549.     </span>
  550.   </div>
  551.   <div class="frame " id="frame-line-9">
  552.       <div class="frame-method-info">
  553.         <span class="frame-index">10.</span>
  554.         <span class="frame-class"></span>
  555.         <span class="frame-function">call_user_func_array</span>
  556.       </div>
  557.  
  558.     <span class="frame-file">
  559.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  560.    --><span class="frame-line">3370</span>
  561.     </span>
  562.   </div>
  563.   <div class="frame " id="frame-line-10">
  564.       <div class="frame-method-info">
  565.         <span class="frame-index">9.</span>
  566.         <span class="frame-class">Illuminate\Routing\Route</span>
  567.         <span class="frame-function">run</span>
  568.       </div>
  569.  
  570.     <span class="frame-file">
  571.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  572.    --><span class="frame-line">3037</span>
  573.     </span>
  574.   </div>
  575.   <div class="frame " id="frame-line-11">
  576.       <div class="frame-method-info">
  577.         <span class="frame-index">8.</span>
  578.         <span class="frame-class">Illuminate\Routing\Router</span>
  579.         <span class="frame-function">dispatchToRoute</span>
  580.       </div>
  581.  
  582.     <span class="frame-file">
  583.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  584.    --><span class="frame-line">3025</span>
  585.     </span>
  586.   </div>
  587.   <div class="frame " id="frame-line-12">
  588.       <div class="frame-method-info">
  589.         <span class="frame-index">7.</span>
  590.         <span class="frame-class">Illuminate\Routing\Router</span>
  591.         <span class="frame-function">dispatch</span>
  592.       </div>
  593.  
  594.     <span class="frame-file">
  595.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  596.    --><span class="frame-line">702</span>
  597.     </span>
  598.   </div>
  599.   <div class="frame " id="frame-line-13">
  600.       <div class="frame-method-info">
  601.         <span class="frame-index">6.</span>
  602.         <span class="frame-class">Illuminate\Foundation\Application</span>
  603.         <span class="frame-function">dispatch</span>
  604.       </div>
  605.  
  606.     <span class="frame-file">
  607.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  608.    --><span class="frame-line">678</span>
  609.     </span>
  610.   </div>
  611.   <div class="frame " id="frame-line-14">
  612.       <div class="frame-method-info">
  613.         <span class="frame-index">5.</span>
  614.         <span class="frame-class">Illuminate\Foundation\Application</span>
  615.         <span class="frame-function">handle</span>
  616.       </div>
  617.  
  618.     <span class="frame-file">
  619.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  620.    --><span class="frame-line">5797</span>
  621.     </span>
  622.   </div>
  623.   <div class="frame " id="frame-line-15">
  624.       <div class="frame-method-info">
  625.         <span class="frame-index">4.</span>
  626.         <span class="frame-class">Illuminate\Session\Middleware</span>
  627.         <span class="frame-function">handle</span>
  628.       </div>
  629.  
  630.     <span class="frame-file">
  631.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  632.    --><span class="frame-line">6404</span>
  633.     </span>
  634.   </div>
  635.   <div class="frame " id="frame-line-16">
  636.       <div class="frame-method-info">
  637.         <span class="frame-index">3.</span>
  638.         <span class="frame-class">Illuminate\Cookie\Queue</span>
  639.         <span class="frame-function">handle</span>
  640.       </div>
  641.  
  642.     <span class="frame-file">
  643.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  644.    --><span class="frame-line">6351</span>
  645.     </span>
  646.   </div>
  647.   <div class="frame " id="frame-line-17">
  648.       <div class="frame-method-info">
  649.         <span class="frame-index">2.</span>
  650.         <span class="frame-class">Illuminate\Cookie\Guard</span>
  651.         <span class="frame-function">handle</span>
  652.       </div>
  653.  
  654.     <span class="frame-file">
  655.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  656.    --><span class="frame-line">8367</span>
  657.     </span>
  658.   </div>
  659.   <div class="frame " id="frame-line-18">
  660.       <div class="frame-method-info">
  661.         <span class="frame-index">1.</span>
  662.         <span class="frame-class">Stack\StackedHttpKernel</span>
  663.         <span class="frame-function">handle</span>
  664.       </div>
  665.  
  666.     <span class="frame-file">
  667.       &hellip;/&shy;bootstrap/&shy;compiled.php<!--
  668.    --><span class="frame-line">639</span>
  669.     </span>
  670.   </div>
  671.   <div class="frame " id="frame-line-19">
  672.       <div class="frame-method-info">
  673.         <span class="frame-index">0.</span>
  674.         <span class="frame-class">Illuminate\Foundation\Application</span>
  675.         <span class="frame-function">run</span>
  676.       </div>
  677.  
  678.     <span class="frame-file">
  679.       &hellip;/&shy;public/&shy;index.php<!--
  680.    --><span class="frame-line">49</span>
  681.     </span>
  682.   </div>
  683.         </div>
  684.         <div class="details-container cf">
  685.           <header>
  686.             <div class="exception">
  687.   <h3 class="exc-title">
  688.                   <span class="exc-title-primary">ErrorException</span>
  689.                     <span title="Exception Code">(E_NOTICE)</span>
  690.       </h3>
  691.  
  692.   <div class="help">
  693.     <button title="show help">HELP</button>
  694.  
  695.     <div id="help-overlay">
  696.       <div id="help-framestack">Callstack information; navigate with mouse or keyboard using <kbd>Ctrl+&uparrow;</kbd> or <kbd>Ctrl+&downarrow;</kbd></div>
  697.       <div id="help-clipboard">Copy-to-clipboard button</div>
  698.       <div id="help-exc-message">Exception message and its type</div>
  699.       <div id="help-code">Code snippet where the error was thrown</div>
  700.       <div id="help-request">Server state information</div>
  701.       <div id="help-appinfo">Application provided context information</div>
  702.     </div>
  703.   </div>
  704.  
  705.   <button id="copy-button" class="clipboard" data-clipboard-target="plain-exception" title="copy exception into clipboard"></button>
  706.   <span id="plain-exception">ErrorException thrown with message &quot;Array to string conversion&quot;
  707.  
  708. Stacktrace:
  709. #19 ErrorException in /home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php:206
  710. #18 Illuminate\Exception\Handler:handleError in /home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php:206
  711. #17 IHealthController:log_test in /home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php:223
  712. #16 IHealthController:subscription in &lt;#unknown&gt;:0
  713. #15 call_user_func_array in /home/data/http/coolreport-iohealth/coolreport/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:231
  714. #14 Illuminate\Routing\Controller:callAction in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3819
  715. #13 Illuminate\Routing\ControllerDispatcher:call in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3807
  716. #12 Illuminate\Routing\ControllerDispatcher:dispatch in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3012
  717. #11 Illuminate\Routing\Router:Illuminate\Routing\{closure} in &lt;#unknown&gt;:0
  718. #10 call_user_func_array in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3370
  719. #9 Illuminate\Routing\Route:run in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3037
  720. #8 Illuminate\Routing\Router:dispatchToRoute in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:3025
  721. #7 Illuminate\Routing\Router:dispatch in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:702
  722. #6 Illuminate\Foundation\Application:dispatch in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:678
  723. #5 Illuminate\Foundation\Application:handle in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:5797
  724. #4 Illuminate\Session\Middleware:handle in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:6404
  725. #3 Illuminate\Cookie\Queue:handle in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:6351
  726. #2 Illuminate\Cookie\Guard:handle in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:8367
  727. #1 Stack\StackedHttpKernel:handle in /home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php:639
  728. #0 Illuminate\Foundation\Application:run in /home/data/http/coolreport-iohealth/coolreport/public/index.php:49
  729. </span>
  730.  
  731.   <p class="exc-message">
  732.     Array to string conversion  </p>
  733. </div>
  734.           </header>
  735.           <div class="frame-code-container ">
  736.             <div class="frame-code active" id="frame-code-0">
  737.         <div class="frame-file">
  738.                                 Open:
  739.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fapp%2Fcontrollers%2FIHealthController.php&line=206" class="editor-link">
  740.               <strong>/home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php</strong>
  741.             </a>
  742.                   </div>
  743.                     <pre class="code-block prettyprint linenums:199">   {
  744.  
  745.         $nombre_archivo = &quot;logs.txt&quot;;
  746.  
  747.         if($archivo = fopen($nombre_archivo, &quot;a&quot;))
  748.         {
  749.  
  750.             if(fwrite($archivo, date(&quot;d m Y H:m:s&quot;). &quot; &quot;. $mensaje. &quot;\n&quot;))
  751.             {
  752. </pre>              //echo &quot;Se ha ejecutado correctamente&quot;;
  753.                  
  754.                 <div class="frame-comments empty">
  755.                   </div>
  756.  
  757.       </div>
  758.             <div class="frame-code " id="frame-code-1">
  759.         <div class="frame-file">
  760.                                 Open:
  761.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fapp%2Fcontrollers%2FIHealthController.php&line=206" class="editor-link">
  762.               <strong>/home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php</strong>
  763.             </a>
  764.                   </div>
  765.                     <pre class="code-block prettyprint linenums:199">   {
  766.  
  767.         $nombre_archivo = &quot;logs.txt&quot;;
  768.  
  769.         if($archivo = fopen($nombre_archivo, &quot;a&quot;))
  770.         {
  771.  
  772.             if(fwrite($archivo, date(&quot;d m Y H:m:s&quot;). &quot; &quot;. $mensaje. &quot;\n&quot;))
  773.             {
  774. </pre>              //echo &quot;Se ha ejecutado correctamente&quot;;
  775.                  
  776.                 <div class="frame-comments empty">
  777.                   </div>
  778.  
  779.       </div>
  780.             <div class="frame-code " id="frame-code-2">
  781.         <div class="frame-file">
  782.                                 Open:
  783.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fapp%2Fcontrollers%2FIHealthController.php&line=223" class="editor-link">
  784.               <strong>/home/data/http/coolreport-iohealth/coolreport/app/controllers/IHealthController.php</strong>
  785.             </a>
  786.                   </div>
  787.                     <pre class="code-block prettyprint linenums:216">       }
  788.     }
  789.  
  790.     public function subscription (){
  791.  
  792.         $data = Input::json()-&gt;all();
  793.  
  794.         $this-&gt;log_test($data);
  795.  
  796. </pre>      $curl = array(&#039;status&#039; =&gt; &#039;OK&#039;, &#039;data&#039; =&gt; $data );
  797.                  
  798.                 <div class="frame-comments empty">
  799.                   </div>
  800.  
  801.       </div>
  802.             <div class="frame-code " id="frame-code-3">
  803.         <div class="frame-file">
  804.                                 <strong>&lt;#unknown&gt;</strong>
  805.                   </div>
  806.        
  807.                 <div class="frame-comments empty">
  808.                   </div>
  809.  
  810.       </div>
  811.             <div class="frame-code " id="frame-code-4">
  812.         <div class="frame-file">
  813.                                 Open:
  814.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fvendor%2Flaravel%2Fframework%2Fsrc%2FIlluminate%2FRouting%2FController.php&line=231" class="editor-link">
  815.               <strong>/home/data/http/coolreport-iohealth/coolreport/vendor/laravel/framework/src/Illuminate/Routing/Controller.php</strong>
  816.             </a>
  817.                   </div>
  818.                     <pre class="code-block prettyprint linenums:224">    * @param  array   $parameters
  819.      * @return \Symfony\Component\HttpFoundation\Response
  820.      */
  821.     public function callAction($method, $parameters)
  822.     {
  823.         $this-&gt;setupLayout();
  824.  
  825.         $response = call_user_func_array(array($this, $method), $parameters);
  826.  
  827.         // If no response is returned from the controller action and a layout is being</pre>
  828.                  
  829.                 <div class="frame-comments empty">
  830.                   </div>
  831.  
  832.       </div>
  833.             <div class="frame-code " id="frame-code-5">
  834.         <div class="frame-file">
  835.                                 Open:
  836.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3819" class="editor-link">
  837.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  838.             </a>
  839.                   </div>
  840.                     <pre class="code-block prettyprint linenums:3812">    {
  841.         Controller::setFilterer($this-&gt;filterer);
  842.         return $this-&gt;container-&gt;make($controller);
  843.     }
  844.     protected function call($instance, $route, $method)
  845.     {
  846.         $parameters = $route-&gt;parametersWithoutNulls();
  847.         return $instance-&gt;callAction($method, $parameters);
  848.     }
  849.     protected function before($instance, $route, $request, $method)</pre>
  850.                  
  851.                 <div class="frame-comments empty">
  852.                   </div>
  853.  
  854.       </div>
  855.             <div class="frame-code " id="frame-code-6">
  856.         <div class="frame-file">
  857.                                 Open:
  858.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3807" class="editor-link">
  859.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  860.             </a>
  861.                   </div>
  862.                     <pre class="code-block prettyprint linenums:3800">    }
  863.     public function dispatch(Route $route, Request $request, $controller, $method)
  864.     {
  865.         $instance = $this-&gt;makeController($controller);
  866.         $this-&gt;assignAfter($instance, $route, $request, $method);
  867.         $response = $this-&gt;before($instance, $route, $request, $method);
  868.         if (is_null($response)) {
  869.             $response = $this-&gt;call($instance, $route, $method);
  870.         }
  871.         return $response;</pre>
  872.                  
  873.                 <div class="frame-comments empty">
  874.                   </div>
  875.  
  876.       </div>
  877.             <div class="frame-code " id="frame-code-7">
  878.         <div class="frame-file">
  879.                                 Open:
  880.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3012" class="editor-link">
  881.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  882.             </a>
  883.                   </div>
  884.                     <pre class="code-block prettyprint linenums:3005">    protected function getClassClosure($controller)
  885.     {
  886.         $d = $this-&gt;getControllerDispatcher();
  887.         return function () use($d, $controller) {
  888.             $route = $this-&gt;current();
  889.             $request = $this-&gt;getCurrentRequest();
  890.             list($class, $method) = explode(&#039;@&#039;, $controller);
  891.             return $d-&gt;dispatch($route, $request, $class, $method);
  892.         };
  893.     }</pre>
  894.                  
  895.                 <div class="frame-comments empty">
  896.                   </div>
  897.  
  898.       </div>
  899.             <div class="frame-code " id="frame-code-8">
  900.         <div class="frame-file">
  901.                                 <strong>&lt;#unknown&gt;</strong>
  902.                   </div>
  903.        
  904.                 <div class="frame-comments empty">
  905.                   </div>
  906.  
  907.       </div>
  908.             <div class="frame-code " id="frame-code-9">
  909.         <div class="frame-file">
  910.                                 Open:
  911.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3370" class="editor-link">
  912.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  913.             </a>
  914.                   </div>
  915.                     <pre class="code-block prettyprint linenums:3363">        }
  916.     }
  917.     public function run()
  918.     {
  919.         $parameters = array_filter($this-&gt;parameters(), function ($p) {
  920.             return isset($p);
  921.         });
  922.         return call_user_func_array($this-&gt;action[&#039;uses&#039;], $parameters);
  923.     }
  924.     public function matches(Request $request, $includingMethod = true)</pre>
  925.                  
  926.                 <div class="frame-comments empty">
  927.                   </div>
  928.  
  929.       </div>
  930.             <div class="frame-code " id="frame-code-10">
  931.         <div class="frame-file">
  932.                                 Open:
  933.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3037" class="editor-link">
  934.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  935.             </a>
  936.                   </div>
  937.                     <pre class="code-block prettyprint linenums:3030">    }
  938.     public function dispatchToRoute(Request $request)
  939.     {
  940.         $route = $this-&gt;findRoute($request);
  941.         $this-&gt;events-&gt;fire(&#039;router.matched&#039;, array($route, $request));
  942.         $response = $this-&gt;callRouteBefore($route, $request);
  943.         if (is_null($response)) {
  944.             $response = $route-&gt;run($request);
  945.         }
  946.         $response = $this-&gt;prepareResponse($request, $response);</pre>
  947.                  
  948.                 <div class="frame-comments empty">
  949.                   </div>
  950.  
  951.       </div>
  952.             <div class="frame-code " id="frame-code-11">
  953.         <div class="frame-file">
  954.                                 Open:
  955.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=3025" class="editor-link">
  956.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  957.             </a>
  958.                   </div>
  959.                     <pre class="code-block prettyprint linenums:3018">        return isset($group[&#039;namespace&#039;]) ? $group[&#039;namespace&#039;] . &#039;\\&#039; . $uses : $uses;
  960.     }
  961.     public function dispatch(Request $request)
  962.     {
  963.         $this-&gt;currentRequest = $request;
  964.         $response = $this-&gt;callFilter(&#039;before&#039;, $request);
  965.         if (is_null($response)) {
  966.             $response = $this-&gt;dispatchToRoute($request);
  967.         }
  968.         $response = $this-&gt;prepareResponse($request, $response);</pre>
  969.                  
  970.                 <div class="frame-comments empty">
  971.                   </div>
  972.  
  973.       </div>
  974.             <div class="frame-code " id="frame-code-12">
  975.         <div class="frame-file">
  976.                                 Open:
  977.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=702" class="editor-link">
  978.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  979.             </a>
  980.                   </div>
  981.                     <pre class="code-block prettyprint linenums:695">            if (!is_null($response)) {
  982.                 return $this-&gt;prepareResponse($response, $request);
  983.             }
  984.         }
  985.         if ($this-&gt;runningUnitTests() &amp;&amp; !$this[&#039;session&#039;]-&gt;isStarted()) {
  986.             $this[&#039;session&#039;]-&gt;start();
  987.         }
  988.         return $this[&#039;router&#039;]-&gt;dispatch($this-&gt;prepareRequest($request));
  989.     }
  990.     public function terminate(SymfonyRequest $request, SymfonyResponse $response)</pre>
  991.                  
  992.                 <div class="frame-comments empty">
  993.                   </div>
  994.  
  995.       </div>
  996.             <div class="frame-code " id="frame-code-13">
  997.         <div class="frame-file">
  998.                                 Open:
  999.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=678" class="editor-link">
  1000.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1001.             </a>
  1002.                   </div>
  1003.                     <pre class="code-block prettyprint linenums:671">        });
  1004.     }
  1005.     public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
  1006.     {
  1007.         try {
  1008.             $this-&gt;refreshRequest($request = Request::createFromBase($request));
  1009.             $this-&gt;boot();
  1010.             return $this-&gt;dispatch($request);
  1011.         } catch (\Exception $e) {
  1012.             if (!$catch || $this-&gt;runningUnitTests()) {</pre>
  1013.                  
  1014.                 <div class="frame-comments empty">
  1015.                   </div>
  1016.  
  1017.       </div>
  1018.             <div class="frame-code " id="frame-code-14">
  1019.         <div class="frame-file">
  1020.                                 Open:
  1021.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=5797" class="editor-link">
  1022.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1023.             </a>
  1024.                   </div>
  1025.                     <pre class="code-block prettyprint linenums:5790">    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
  1026.     {
  1027.         $this-&gt;checkRequestForArraySessions($request);
  1028.         if ($this-&gt;sessionConfigured()) {
  1029.             $session = $this-&gt;startSession($request);
  1030.             $request-&gt;setSession($session);
  1031.         }
  1032.         $response = $this-&gt;app-&gt;handle($request, $type, $catch);
  1033.         if ($this-&gt;sessionConfigured()) {
  1034.             $this-&gt;closeSession($session);</pre>
  1035.                  
  1036.                 <div class="frame-comments empty">
  1037.                   </div>
  1038.  
  1039.       </div>
  1040.             <div class="frame-code " id="frame-code-15">
  1041.         <div class="frame-file">
  1042.                                 Open:
  1043.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=6404" class="editor-link">
  1044.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1045.             </a>
  1046.                   </div>
  1047.                     <pre class="code-block prettyprint linenums:6397">    public function __construct(HttpKernelInterface $app, CookieJar $cookies)
  1048.     {
  1049.         $this-&gt;app = $app;
  1050.         $this-&gt;cookies = $cookies;
  1051.     }
  1052.     public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
  1053.     {
  1054.         $response = $this-&gt;app-&gt;handle($request, $type, $catch);
  1055.         foreach ($this-&gt;cookies-&gt;getQueuedCookies() as $cookie) {
  1056.             $response-&gt;headers-&gt;setCookie($cookie);</pre>
  1057.                  
  1058.                 <div class="frame-comments empty">
  1059.                   </div>
  1060.  
  1061.       </div>
  1062.             <div class="frame-code " id="frame-code-16">
  1063.         <div class="frame-file">
  1064.                                 Open:
  1065.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=6351" class="editor-link">
  1066.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1067.             </a>
  1068.                   </div>
  1069.                     <pre class="code-block prettyprint linenums:6344">    public function __construct(HttpKernelInterface $app, Encrypter $encrypter)
  1070.     {
  1071.         $this-&gt;app = $app;
  1072.         $this-&gt;encrypter = $encrypter;
  1073.     }
  1074.     public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
  1075.     {
  1076.         return $this-&gt;encrypt($this-&gt;app-&gt;handle($this-&gt;decrypt($request), $type, $catch));
  1077.     }
  1078.     protected function decrypt(Request $request)</pre>
  1079.                  
  1080.                 <div class="frame-comments empty">
  1081.                   </div>
  1082.  
  1083.       </div>
  1084.             <div class="frame-code " id="frame-code-17">
  1085.         <div class="frame-file">
  1086.                                 Open:
  1087.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=8367" class="editor-link">
  1088.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1089.             </a>
  1090.                   </div>
  1091.                     <pre class="code-block prettyprint linenums:8360">    public function __construct(HttpKernelInterface $app, array $middlewares)
  1092.     {
  1093.         $this-&gt;app = $app;
  1094.         $this-&gt;middlewares = $middlewares;
  1095.     }
  1096.     public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
  1097.     {
  1098.         return $this-&gt;app-&gt;handle($request, $type, $catch);
  1099.     }
  1100.     public function terminate(Request $request, Response $response)</pre>
  1101.                  
  1102.                 <div class="frame-comments empty">
  1103.                   </div>
  1104.  
  1105.       </div>
  1106.             <div class="frame-code " id="frame-code-18">
  1107.         <div class="frame-file">
  1108.                                 Open:
  1109.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fbootstrap%2Fcompiled.php&line=639" class="editor-link">
  1110.               <strong>/home/data/http/coolreport-iohealth/coolreport/bootstrap/compiled.php</strong>
  1111.             </a>
  1112.                   </div>
  1113.                     <pre class="code-block prettyprint linenums:632">        if ($this-&gt;isBooted()) {
  1114.             $this-&gt;fireAppCallbacks(array($callback));
  1115.         }
  1116.     }
  1117.     public function run(SymfonyRequest $request = null)
  1118.     {
  1119.         $request = $request ?: $this[&#039;request&#039;];
  1120.         $response = with($stack = $this-&gt;getStackedClient())-&gt;handle($request);
  1121.         $response-&gt;send();
  1122.         $stack-&gt;terminate($request, $response);</pre>
  1123.                  
  1124.                 <div class="frame-comments empty">
  1125.                   </div>
  1126.  
  1127.       </div>
  1128.             <div class="frame-code " id="frame-code-19">
  1129.         <div class="frame-file">
  1130.                                 Open:
  1131.             <a href="subl://open?url=file://%2Fhome%2Fdata%2Fhttp%2Fcoolreport-iohealth%2Fcoolreport%2Fpublic%2Findex.php&line=49" class="editor-link">
  1132.               <strong>/home/data/http/coolreport-iohealth/coolreport/public/index.php</strong>
  1133.             </a>
  1134.                   </div>
  1135.                     <pre class="code-block prettyprint linenums:42">| Once we have the application, we can simply call the run method,
  1136. | which will execute the request and send the response back to
  1137. | the client&#039;s browser allowing them to enjoy the creative
  1138. | and wonderful application we have whipped up for them.
  1139. |
  1140. */
  1141.  
  1142. $app-&gt;run();</pre>
  1143.                  
  1144.                 <div class="frame-comments empty">
  1145.                   </div>
  1146.  
  1147.       </div>
  1148.   </div>
  1149.           <div class="details">
  1150.   <div class="data-table-container" id="data-tables">
  1151.           <div class="data-table" id="sg-get-data">
  1152.                     <label>GET Data</label>
  1153.             <table class="data-table">
  1154.               <thead>
  1155.                 <tr>
  1156.                   <td class="data-table-k">Key</td>
  1157.                   <td class="data-table-v">Value</td>
  1158.                 </tr>
  1159.               </thead>
  1160.                           <tr>
  1161.                 <td>page</td>
  1162.                 <td>/ihealth/subscription</td>
  1163.               </tr>
  1164.                         </table>
  1165.               </div>
  1166.           <div class="data-table" id="sg-post-data">
  1167.                     <label class="empty">POST Data</label>
  1168.             <span class="empty">empty</span>
  1169.               </div>
  1170.           <div class="data-table" id="sg-files">
  1171.                     <label class="empty">Files</label>
  1172.             <span class="empty">empty</span>
  1173.               </div>
  1174.           <div class="data-table" id="sg-cookies">
  1175.                     <label class="empty">Cookies</label>
  1176.             <span class="empty">empty</span>
  1177.               </div>
  1178.           <div class="data-table" id="sg-session">
  1179.                     <label class="empty">Session</label>
  1180.             <span class="empty">empty</span>
  1181.               </div>
  1182.           <div class="data-table" id="sg-serverrequest-data">
  1183.                     <label>Server/Request Data</label>
  1184.             <table class="data-table">
  1185.               <thead>
  1186.                 <tr>
  1187.                   <td class="data-table-k">Key</td>
  1188.                   <td class="data-table-v">Value</td>
  1189.                 </tr>
  1190.               </thead>
  1191.                           <tr>
  1192.                 <td>USER</td>
  1193.                 <td>http</td>
  1194.               </tr>
  1195.                           <tr>
  1196.                 <td>HOME</td>
  1197.                 <td>/srv/http</td>
  1198.               </tr>
  1199.                           <tr>
  1200.                 <td>HTTP_CONTENT_LENGTH</td>
  1201.                 <td>20</td>
  1202.               </tr>
  1203.                           <tr>
  1204.                 <td>HTTP_CONTENT_TYPE</td>
  1205.                 <td>application/json</td>
  1206.               </tr>
  1207.                           <tr>
  1208.                 <td>HTTP_ACCEPT</td>
  1209.                 <td>*/*</td>
  1210.               </tr>
  1211.                           <tr>
  1212.                 <td>HTTP_USER_AGENT</td>
  1213.                 <td>curl/7.47.0</td>
  1214.               </tr>
  1215.                           <tr>
  1216.                 <td>HTTP_HOST</td>
  1217.                 <td>iohealth.nimbeo.com</td>
  1218.               </tr>
  1219.                           <tr>
  1220.                 <td>REDIRECT_STATUS</td>
  1221.                 <td>200</td>
  1222.               </tr>
  1223.                           <tr>
  1224.                 <td>SERVER_NAME</td>
  1225.                 <td>iohealth.nimbeo.com</td>
  1226.               </tr>
  1227.                           <tr>
  1228.                 <td>SERVER_PORT</td>
  1229.                 <td>443</td>
  1230.               </tr>
  1231.                           <tr>
  1232.                 <td>SERVER_ADDR</td>
  1233.                 <td>176.58.120.132</td>
  1234.               </tr>
  1235.                           <tr>
  1236.                 <td>REMOTE_PORT</td>
  1237.                 <td>2572</td>
  1238.               </tr>
  1239.                           <tr>
  1240.                 <td>REMOTE_ADDR</td>
  1241.                 <td>88.23.75.156</td>
  1242.               </tr>
  1243.                           <tr>
  1244.                 <td>SERVER_SOFTWARE</td>
  1245.                 <td>nginx/1.6.2</td>
  1246.               </tr>
  1247.                           <tr>
  1248.                 <td>GATEWAY_INTERFACE</td>
  1249.                 <td>CGI/1.1</td>
  1250.               </tr>
  1251.                           <tr>
  1252.                 <td>REQUEST_URI</td>
  1253.                 <td>/ihealth/subscription</td>
  1254.               </tr>
  1255.                           <tr>
  1256.                 <td>HTTPS</td>
  1257.                 <td>on</td>
  1258.               </tr>
  1259.                           <tr>
  1260.                 <td>SERVER_PROTOCOL</td>
  1261.                 <td>HTTP/1.1</td>
  1262.               </tr>
  1263.                           <tr>
  1264.                 <td>DOCUMENT_ROOT</td>
  1265.                 <td>/home/data/http/coolreport-iohealth/coolreport/public</td>
  1266.               </tr>
  1267.                           <tr>
  1268.                 <td>DOCUMENT_URI</td>
  1269.                 <td>/index.php</td>
  1270.               </tr>
  1271.                           <tr>
  1272.                 <td>SCRIPT_NAME</td>
  1273.                 <td>/index.php</td>
  1274.               </tr>
  1275.                           <tr>
  1276.                 <td>SCRIPT_FILENAME</td>
  1277.                 <td>/home/data/http/coolreport-iohealth/coolreport/public/index.php</td>
  1278.               </tr>
  1279.                           <tr>
  1280.                 <td>CONTENT_LENGTH</td>
  1281.                 <td>20</td>
  1282.               </tr>
  1283.                           <tr>
  1284.                 <td>CONTENT_TYPE</td>
  1285.                 <td>application/json</td>
  1286.               </tr>
  1287.                           <tr>
  1288.                 <td>REQUEST_METHOD</td>
  1289.                 <td>POST</td>
  1290.               </tr>
  1291.                           <tr>
  1292.                 <td>QUERY_STRING</td>
  1293.                 <td>page=/ihealth/subscription&amp;</td>
  1294.               </tr>
  1295.                           <tr>
  1296.                 <td>FCGI_ROLE</td>
  1297.                 <td>RESPONDER</td>
  1298.               </tr>
  1299.                           <tr>
  1300.                 <td>PHP_SELF</td>
  1301.                 <td>/index.php</td>
  1302.               </tr>
  1303.                           <tr>
  1304.                 <td>REQUEST_TIME_FLOAT</td>
  1305.                 <td>1531923883.1881</td>
  1306.               </tr>
  1307.                           <tr>
  1308.                 <td>REQUEST_TIME</td>
  1309.                 <td>1531923883</td>
  1310.               </tr>
  1311.                         </table>
  1312.               </div>
  1313.           <div class="data-table" id="sg-environment-variables">
  1314.                     <label class="empty">Environment Variables</label>
  1315.             <span class="empty">empty</span>
  1316.               </div>
  1317.       </div>
  1318.  
  1319.     <div class="data-table-container" id="handlers">
  1320.     <label>Registered Handlers</label>
  1321.           <div class="handler active">
  1322.         0. Whoops\Handler\PrettyPageHandler      </div>
  1323.       </div>
  1324.  
  1325. </div>
  1326.         </div>
  1327.       </div>
  1328.     </div>
  1329.  
  1330.     <script src="//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.3.5/ZeroClipboard.min.js"></script>
  1331.     <script src="//cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js"></script>
  1332.     <script>/* Zepto v1.1.3 - zepto event ajax form ie - zeptojs.com/license */
  1333. var Zepto=function(){function L(t){return null==t?String(t):j[T.call(t)]||"object"}function Z(t){return"function"==L(t)}function $(t){return null!=t&&t==t.window}function _(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function D(t){return"object"==L(t)}function R(t){return D(t)&&!$(t)&&Object.getPrototypeOf(t)==Object.prototype}function M(t){return"number"==typeof t.length}function k(t){return s.call(t,function(t){return null!=t})}function z(t){return t.length>0?n.fn.concat.apply([],t):t}function F(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function q(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function H(t,e){return"number"!=typeof e||c[F(t)]?e:e+"px"}function I(t){var e,n;return u[t]||(e=a.createElement(t),a.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),u[t]=n),u[t]}function V(t){return"children"in t?o.call(t.children):n.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function U(n,i,r){for(e in i)r&&(R(i[e])||A(i[e]))?(R(i[e])&&!R(n[e])&&(n[e]={}),A(i[e])&&!A(n[e])&&(n[e]=[]),U(n[e],i[e],r)):i[e]!==t&&(n[e]=i[e])}function B(t,e){return null==e?n(t):n(t).filter(e)}function J(t,e,n,i){return Z(e)?e.call(t,n,i):e}function X(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function W(e,n){var i=e.className,r=i&&i.baseVal!==t;return n===t?r?i.baseVal:i:void(r?i.baseVal=n:e.className=n)}function Y(t){var e;try{return t?"true"==t||("false"==t?!1:"null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?n.parseJSON(t):t:e):t}catch(i){return t}}function G(t,e){e(t);for(var n in t.childNodes)G(t.childNodes[n],e)}var t,e,n,i,C,N,r=[],o=r.slice,s=r.filter,a=window.document,u={},f={},c={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},l=/^\s*<(\w+|!)[^>]*>/,h=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,d=/^(?:body|html)$/i,m=/([A-Z])/g,g=["val","css","html","text","data","width","height","offset"],v=["after","prepend","before","append"],y=a.createElement("table"),x=a.createElement("tr"),b={tr:a.createElement("tbody"),tbody:y,thead:y,tfoot:y,td:x,th:x,"*":a.createElement("div")},w=/complete|loaded|interactive/,E=/^[\w-]*$/,j={},T=j.toString,S={},O=a.createElement("div"),P={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},A=Array.isArray||function(t){return t instanceof Array};return S.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=O).appendChild(t),i=~S.qsa(r,e).indexOf(t),o&&O.removeChild(t),i},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},N=function(t){return s.call(t,function(e,n){return t.indexOf(e)==n})},S.fragment=function(e,i,r){var s,u,f;return h.test(e)&&(s=n(a.createElement(RegExp.$1))),s||(e.replace&&(e=e.replace(p,"<$1></$2>")),i===t&&(i=l.test(e)&&RegExp.$1),i in b||(i="*"),f=b[i],f.innerHTML=""+e,s=n.each(o.call(f.childNodes),function(){f.removeChild(this)})),R(r)&&(u=n(s),n.each(r,function(t,e){g.indexOf(t)>-1?u[t](e):u.attr(t,e)})),s},S.Z=function(t,e){return t=t||[],t.__proto__=n.fn,t.selector=e||"",t},S.isZ=function(t){return t instanceof S.Z},S.init=function(e,i){var r;if(!e)return S.Z();if("string"==typeof e)if(e=e.trim(),"<"==e[0]&&l.test(e))r=S.fragment(e,RegExp.$1,i),e=null;else{if(i!==t)return n(i).find(e);r=S.qsa(a,e)}else{if(Z(e))return n(a).ready(e);if(S.isZ(e))return e;if(A(e))r=k(e);else if(D(e))r=[e],e=null;else if(l.test(e))r=S.fragment(e.trim(),RegExp.$1,i),e=null;else{if(i!==t)return n(i).find(e);r=S.qsa(a,e)}}return S.Z(r,e)},n=function(t,e){return S.init(t,e)},n.extend=function(t){var e,n=o.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){U(t,n,e)}),t},S.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],s=i||r?e.slice(1):e,a=E.test(s);return _(t)&&a&&i?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:o.call(a&&!i?r?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},n.contains=function(t,e){return t!==e&&t.contains(e)},n.type=L,n.isFunction=Z,n.isWindow=$,n.isArray=A,n.isPlainObject=R,n.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},n.inArray=function(t,e,n){return r.indexOf.call(e,t,n)},n.camelCase=C,n.trim=function(t){return null==t?"":String.prototype.trim.call(t)},n.uuid=0,n.support={},n.expr={},n.map=function(t,e){var n,r,o,i=[];if(M(t))for(r=0;r<t.length;r++)n=e(t[r],r),null!=n&&i.push(n);else for(o in t)n=e(t[o],o),null!=n&&i.push(n);return z(i)},n.each=function(t,e){var n,i;if(M(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},n.grep=function(t,e){return s.call(t,e)},window.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){j["[object "+e+"]"]=e.toLowerCase()}),n.fn={forEach:r.forEach,reduce:r.reduce,push:r.push,sort:r.sort,indexOf:r.indexOf,concat:r.concat,map:function(t){return n(n.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return n(o.apply(this,arguments))},ready:function(t){return w.test(a.readyState)&&a.body?t(n):a.addEventListener("DOMContentLoaded",function(){t(n)},!1),this},get:function(e){return e===t?o.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return r.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return Z(t)?this.not(this.not(t)):n(s.call(this,function(e){return S.matches(e,t)}))},add:function(t,e){return n(N(this.concat(n(t,e))))},is:function(t){return this.length>0&&S.matches(this[0],t)},not:function(e){var i=[];if(Z(e)&&e.call!==t)this.each(function(t){e.call(this,t)||i.push(this)});else{var r="string"==typeof e?this.filter(e):M(e)&&Z(e.item)?o.call(e):n(e);this.forEach(function(t){r.indexOf(t)<0&&i.push(t)})}return n(i)},has:function(t){return this.filter(function(){return D(t)?n.contains(this,t):n(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!D(t)?t:n(t)},last:function(){var t=this[this.length-1];return t&&!D(t)?t:n(t)},find:function(t){var e,i=this;return e="object"==typeof t?n(t).filter(function(){var t=this;return r.some.call(i,function(e){return n.contains(e,t)})}):1==this.length?n(S.qsa(this[0],t)):this.map(function(){return S.qsa(this,t)})},closest:function(t,e){var i=this[0],r=!1;for("object"==typeof t&&(r=n(t));i&&!(r?r.indexOf(i)>=0:S.matches(i,t));)i=i!==e&&!_(i)&&i.parentNode;return n(i)},parents:function(t){for(var e=[],i=this;i.length>0;)i=n.map(i,function(t){return(t=t.parentNode)&&!_(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return B(e,t)},parent:function(t){return B(N(this.pluck("parentNode")),t)},children:function(t){return B(this.map(function(){return V(this)}),t)},contents:function(){return this.map(function(){return o.call(this.childNodes)})},siblings:function(t){return B(this.map(function(t,e){return s.call(V(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return n.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=I(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=Z(t);if(this[0]&&!e)var i=n(t).get(0),r=i.parentNode||this.length>1;return this.each(function(o){n(this).wrapAll(e?t.call(this,o):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){n(this[0]).before(t=n(t));for(var e;(e=t.children()).length;)t=e.first();n(t).append(this)}return this},wrapInner:function(t){var e=Z(t);return this.each(function(i){var r=n(this),o=r.contents(),s=e?t.call(this,i):t;o.length?o.wrapAll(s):r.append(s)})},unwrap:function(){return this.parent().each(function(){n(this).replaceWith(n(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var i=n(this);(e===t?"none"==i.css("display"):e)?i.show():i.hide()})},prev:function(t){return n(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return n(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(e){var i=this.innerHTML;n(this).empty().append(J(this,t,e,i))})},text:function(e){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=e===t?"":""+e})},attr:function(n,i){var r;return"string"==typeof n&&i===t?0==this.length||1!==this[0].nodeType?t:"value"==n&&"INPUT"==this[0].nodeName?this.val():!(r=this[0].getAttribute(n))&&n in this[0]?this[0][n]:r:this.each(function(t){if(1===this.nodeType)if(D(n))for(e in n)X(this,e,n[e]);else X(this,n,J(this,i,t,this.getAttribute(n)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&X(this,t)})},prop:function(e,n){return e=P[e]||e,n===t?this[0]&&this[0][e]:this.each(function(t){this[e]=J(this,n,t,this[e])})},data:function(e,n){var i=this.attr("data-"+e.replace(m,"-$1").toLowerCase(),n);return null!==i?Y(i):t},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?n(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(e){this.value=J(this,t,e,this.value)})},offset:function(t){if(t)return this.each(function(e){var i=n(this),r=J(this,t,e,i.offset()),o=i.offsetParent().offset(),s={top:r.top-o.top,left:r.left-o.left};"static"==i.css("position")&&(s.position="relative"),i.css(s)});if(0==this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(t,i){if(arguments.length<2){var r=this[0],o=getComputedStyle(r,"");if(!r)return;if("string"==typeof t)return r.style[C(t)]||o.getPropertyValue(t);if(A(t)){var s={};return n.each(A(t)?t:[t],function(t,e){s[e]=r.style[C(e)]||o.getPropertyValue(e)}),s}}var a="";if("string"==L(t))i||0===i?a=F(t)+":"+H(t,i):this.each(function(){this.style.removeProperty(F(t))});else for(e in t)t[e]||0===t[e]?a+=F(e)+":"+H(e,t[e])+";":this.each(function(){this.style.removeProperty(F(e))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(n(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?r.some.call(this,function(t){return this.test(W(t))},q(t)):!1},addClass:function(t){return t?this.each(function(e){i=[];var r=W(this),o=J(this,t,e,r);o.split(/\s+/g).forEach(function(t){n(this).hasClass(t)||i.push(t)},this),i.length&&W(this,r+(r?" ":"")+i.join(" "))}):this},removeClass:function(e){return this.each(function(n){return e===t?W(this,""):(i=W(this),J(this,e,n,i).split(/\s+/g).forEach(function(t){i=i.replace(q(t)," ")}),void W(this,i.trim()))})},toggleClass:function(e,i){return e?this.each(function(r){var o=n(this),s=J(this,e,r,W(this));s.split(/\s+/g).forEach(function(e){(i===t?!o.hasClass(e):i)?o.addClass(e):o.removeClass(e)})}):this},scrollTop:function(e){if(this.length){var n="scrollTop"in this[0];return e===t?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var n="scrollLeft"in this[0];return e===t?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),i=this.offset(),r=d.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(n(t).css("margin-top"))||0,i.left-=parseFloat(n(t).css("margin-left"))||0,r.top+=parseFloat(n(e[0]).css("border-top-width"))||0,r.left+=parseFloat(n(e[0]).css("border-left-width"))||0,{top:i.top-r.top,left:i.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||a.body;t&&!d.test(t.nodeName)&&"static"==n(t).css("position");)t=t.offsetParent;return t})}},n.fn.detach=n.fn.remove,["width","height"].forEach(function(e){var i=e.replace(/./,function(t){return t[0].toUpperCase()});n.fn[e]=function(r){var o,s=this[0];return r===t?$(s)?s["inner"+i]:_(s)?s.documentElement["scroll"+i]:(o=this.offset())&&o[e]:this.each(function(t){s=n(this),s.css(e,J(this,r,t,s[e]()))})}}),v.forEach(function(t,e){var i=e%2;n.fn[t]=function(){var t,o,r=n.map(arguments,function(e){return t=L(e),"object"==t||"array"==t||null==e?e:S.fragment(e)}),s=this.length>1;return r.length<1?this:this.each(function(t,a){o=i?a:a.parentNode,a=0==e?a.nextSibling:1==e?a.firstChild:2==e?a:null,r.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!o)return n(t).remove();G(o.insertBefore(t,a),function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},n.fn[i?t+"To":"insert"+(e?"Before":"After")]=function(e){return n(e)[t](this),this}}),S.Z.prototype=n.fn,S.uniq=N,S.deserializeValue=Y,n.zepto=S,n}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(t){function l(t){return t._zid||(t._zid=e++)}function h(t,e,n,i){if(e=p(e),e.ns)var r=d(e.ns);return(s[l(t)]||[]).filter(function(t){return!(!t||e.e&&t.e!=e.e||e.ns&&!r.test(t.ns)||n&&l(t.fn)!==l(n)||i&&t.sel!=i)})}function p(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function d(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!u&&t.e in f||!!e}function g(t){return c[t]||u&&f[t]||t}function v(e,i,r,o,a,u,f){var h=l(e),d=s[h]||(s[h]=[]);i.split(/\s/).forEach(function(i){if("ready"==i)return t(document).ready(r);var s=p(i);s.fn=r,s.sel=a,s.e in c&&(r=function(e){var n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?s.fn.apply(this,arguments):void 0}),s.del=u;var l=u||r;s.proxy=function(t){if(t=j(t),!t.isImmediatePropagationStopped()){t.data=o;var i=l.apply(e,t._args==n?[t]:[t].concat(t._args));return i===!1&&(t.preventDefault(),t.stopPropagation()),i}},s.i=d.length,d.push(s),"addEventListener"in e&&e.addEventListener(g(s.e),s.proxy,m(s,f))})}function y(t,e,n,i,r){var o=l(t);(e||"").split(/\s/).forEach(function(e){h(t,e,n,i).forEach(function(e){delete s[o][e.i],"removeEventListener"in t&&t.removeEventListener(g(e.e),e.proxy,m(e,r))})})}function j(e,i){return(i||!e.isDefaultPrevented)&&(i||(i=e),t.each(E,function(t,n){var r=i[t];e[t]=function(){return this[n]=x,r&&r.apply(i,arguments)},e[n]=b}),(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?i.returnValue===!1:i.getPreventDefault&&i.getPreventDefault())&&(e.isDefaultPrevented=x)),e}function T(t){var e,i={originalEvent:t};for(e in t)w.test(e)||t[e]===n||(i[e]=t[e]);return j(i,t)}var n,e=1,i=Array.prototype.slice,r=t.isFunction,o=function(t){return"string"==typeof t},s={},a={},u="onfocusin"in window,f={focus:"focusin",blur:"focusout"},c={mouseenter:"mouseover",mouseleave:"mouseout"};a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",t.event={add:v,remove:y},t.proxy=function(e,n){if(r(e)){var i=function(){return e.apply(n,arguments)};return i._zid=l(e),i}if(o(n))return t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},b=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$)/,E={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,s,a,u,f){var c,l,h=this;return e&&!o(e)?(t.each(e,function(t,e){h.on(t,s,a,e,f)}),h):(o(s)||r(u)||u===!1||(u=a,a=s,s=n),(r(a)||a===!1)&&(u=a,a=n),u===!1&&(u=b),h.each(function(n,r){f&&(c=function(t){return y(r,t.type,u),u.apply(this,arguments)}),s&&(l=function(e){var n,o=t(e.target).closest(s,r).get(0);return o&&o!==r?(n=t.extend(T(e),{currentTarget:o,liveFired:r}),(c||u).apply(o,[n].concat(i.call(arguments,1)))):void 0}),v(r,e,u,a,s,l||c)}))},t.fn.off=function(e,i,s){var a=this;return e&&!o(e)?(t.each(e,function(t,e){a.off(t,i,e)}),a):(o(i)||r(s)||s===!1||(s=i,i=n),s===!1&&(s=b),a.each(function(){y(this,e,s,i)}))},t.fn.trigger=function(e,n){return e=o(e)||t.isPlainObject(e)?t.Event(e):j(e),e._args=n,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,n){var i,r;return this.each(function(s,a){i=T(o(e)?t.Event(e):e),i._args=n,i.target=a,t.each(h(a,e.type||e),function(t,e){return r=e.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),r},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)}}),["focus","blur"].forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.each(function(){try{this[e]()}catch(t){}}),this}}),t.Event=function(t,e){o(t)||(e=t,t=e.type);var n=document.createEvent(a[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),j(n)}}(Zepto),function(t){function l(e,n,i){var r=t.Event(n);return t(e).trigger(r,i),!r.isDefaultPrevented()}function h(t,e,i,r){return t.global?l(e||n,i,r):void 0}function p(e){e.global&&0===t.active++&&h(e,null,"ajaxStart")}function d(e){e.global&&!--t.active&&h(e,null,"ajaxStop")}function m(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||h(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void h(e,n,"ajaxSend",[t,e])}function g(t,e,n,i){var r=n.context,o="success";n.success.call(r,t,o,e),i&&i.resolveWith(r,[t,o,e]),h(n,r,"ajaxSuccess",[e,n,t]),y(o,e,n)}function v(t,e,n,i,r){var o=i.context;i.error.call(o,n,e,t),r&&r.rejectWith(o,[n,e,t]),h(i,o,"ajaxError",[n,i,t||e]),y(e,n,i)}function y(t,e,n){var i=n.context;n.complete.call(i,e,t),h(n,i,"ajaxComplete",[e,n]),d(n)}function x(){}function b(t){return t&&(t=t.split(";",2)[0]),t&&(t==f?"html":t==u?"json":s.test(t)?"script":a.test(t)&&"xml")||"text"}function w(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function E(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=w(e.url,e.data),e.data=void 0)}function j(e,n,i,r){return t.isFunction(n)&&(r=i,i=n,n=void 0),t.isFunction(i)||(r=i,i=void 0),{url:e,data:n,success:i,dataType:r}}function S(e,n,i,r){var o,s=t.isArray(n),a=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),r&&(n=i?r:r+"["+(a||"object"==o||"array"==o?n:"")+"]"),!r&&s?e.add(u.name,u.value):"array"==o||!i&&"object"==o?S(e,u,i,n):e.add(n,u)})}var i,r,e=0,n=window.document,o=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,s=/^(?:text|application)\/javascript/i,a=/^(?:text|application)\/xml/i,u="application/json",f="text/html",c=/^\s*$/;t.active=0,t.ajaxJSONP=function(i,r){if(!("type"in i))return t.ajax(i);var f,h,o=i.jsonpCallback,s=(t.isFunction(o)?o():o)||"jsonp"+ ++e,a=n.createElement("script"),u=window[s],c=function(e){t(a).triggerHandler("error",e||"abort")},l={abort:c};return r&&r.promise(l),t(a).on("load error",function(e,n){clearTimeout(h),t(a).off().remove(),"error"!=e.type&&f?g(f[0],l,i,r):v(null,n||"error",l,i,r),window[s]=u,f&&t.isFunction(u)&&u(f[0]),u=f=void 0}),m(l,i)===!1?(c("abort"),l):(window[s]=function(){f=arguments},a.src=i.url.replace(/\?(.+)=\?/,"?$1="+s),n.head.appendChild(a),i.timeout>0&&(h=setTimeout(function(){c("timeout")},i.timeout)),l)},t.ajaxSettings={type:"GET",beforeSend:x,success:x,error:x,complete:x,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:u,xml:"application/xml, text/xml",html:f,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(e){var n=t.extend({},e||{}),o=t.Deferred&&t.Deferred();for(i in t.ajaxSettings)void 0===n[i]&&(n[i]=t.ajaxSettings[i]);p(n),n.crossDomain||(n.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(n.url)&&RegExp.$2!=window.location.host),n.url||(n.url=window.location.toString()),E(n),n.cache===!1&&(n.url=w(n.url,"_="+Date.now()));var s=n.dataType,a=/\?.+=\?/.test(n.url);if("jsonp"==s||a)return a||(n.url=w(n.url,n.jsonp?n.jsonp+"=?":n.jsonp===!1?"":"callback=?")),t.ajaxJSONP(n,o);var j,u=n.accepts[s],f={},l=function(t,e){f[t.toLowerCase()]=[t,e]},h=/^([\w-]+:)\/\//.test(n.url)?RegExp.$1:window.location.protocol,d=n.xhr(),y=d.setRequestHeader;if(o&&o.promise(d),n.crossDomain||l("X-Requested-With","XMLHttpRequest"),l("Accept",u||"*/*"),(u=n.mimeType||u)&&(u.indexOf(",")>-1&&(u=u.split(",",2)[0]),d.overrideMimeType&&d.overrideMimeType(u)),(n.contentType||n.contentType!==!1&&n.data&&"GET"!=n.type.toUpperCase())&&l("Content-Type",n.contentType||"application/x-www-form-urlencoded"),n.headers)for(r in n.headers)l(r,n.headers[r]);if(d.setRequestHeader=l,d.onreadystatechange=function(){if(4==d.readyState){d.onreadystatechange=x,clearTimeout(j);var e,i=!1;if(d.status>=200&&d.status<300||304==d.status||0==d.status&&"file:"==h){s=s||b(n.mimeType||d.getResponseHeader("content-type")),e=d.responseText;try{"script"==s?(1,eval)(e):"xml"==s?e=d.responseXML:"json"==s&&(e=c.test(e)?null:t.parseJSON(e))}catch(r){i=r}i?v(i,"parsererror",d,n,o):g(e,d,n,o)}else v(d.statusText||null,d.status?"error":"abort",d,n,o)}},m(d,n)===!1)return d.abort(),v(null,"abort",d,n,o),d;if(n.xhrFields)for(r in n.xhrFields)d[r]=n.xhrFields[r];var T="async"in n?n.async:!0;d.open(n.type,n.url,T,n.username,n.password);for(r in f)y.apply(d,f[r]);return n.timeout>0&&(j=setTimeout(function(){d.onreadystatechange=x,d.abort(),v(null,"timeout",d,n,o)},n.timeout)),d.send(n.data?n.data:null),d},t.get=function(){return t.ajax(j.apply(null,arguments))},t.post=function(){var e=j.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=j.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,i){if(!this.length)return this;var a,r=this,s=e.split(/\s/),u=j(e,n,i),f=u.success;return s.length>1&&(u.url=s[0],a=s[1]),u.success=function(e){r.html(a?t("<div>").html(e.replace(o,"")).find(a):e),f&&f.apply(r,arguments)},t.ajax(u),this};var T=encodeURIComponent;t.param=function(t,e){var n=[];return n.add=function(t,e){this.push(T(t)+"="+T(e))},S(n,t,e),n.join("&").replace(/%20/g,"+")}}(Zepto),function(t){t.fn.serializeArray=function(){var n,e=[];return t([].slice.call(this.get(0).elements)).each(function(){n=t(this);var i=n.attr("type");"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&("radio"!=i&&"checkbox"!=i||this.checked)&&e.push({name:n.attr("name"),value:n.val()})}),e},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(e)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(t){"__proto__"in{}||t.extend(t.zepto,{Z:function(e,n){return e=e||[],t.extend(e,t.fn),e.selector=n||"",e.__Z=!0,e},isZ:function(e){return"array"===t.type(e)&&"__Z"in e}});try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;window.getComputedStyle=function(t){try{return n(t)}catch(e){return null}}}}(Zepto);
  1334. </script>
  1335.     <script>Zepto(function($) {
  1336.   prettyPrint();
  1337.  
  1338.   var $frameContainer = $('.frames-container');
  1339.   var $container      = $('.details-container');
  1340.   var $activeLine     = $frameContainer.find('.frame.active');
  1341.   var $activeFrame    = $container.find('.frame-code.active');
  1342.   var $ajaxEditors    = $('.editor-link[data-ajax]');
  1343.   var headerHeight    = $('header').height();
  1344.  
  1345.   var highlightCurrentLine = function() {
  1346.     // Highlight the active and neighboring lines for this frame:
  1347.     var activeLineNumber = +($activeLine.find('.frame-line').text());
  1348.     var $lines           = $activeFrame.find('.linenums li');
  1349.     var firstLine        = +($lines.first().val());
  1350.  
  1351.     $($lines[activeLineNumber - firstLine - 1]).addClass('current');
  1352.     $($lines[activeLineNumber - firstLine]).addClass('current active');
  1353.     $($lines[activeLineNumber - firstLine + 1]).addClass('current');
  1354.   }
  1355.  
  1356.   // Highlight the active for the first frame:
  1357.   highlightCurrentLine();
  1358.  
  1359.   $frameContainer.on('click', '.frame', function() {
  1360.     var $this  = $(this);
  1361.     var id     = /frame\-line\-([\d]*)/.exec($this.attr('id'))[1];
  1362.     var $codeFrame = $('#frame-code-' + id);
  1363.  
  1364.     if ($codeFrame) {
  1365.       $activeLine.removeClass('active');
  1366.       $activeFrame.removeClass('active');
  1367.  
  1368.       $this.addClass('active');
  1369.       $codeFrame.addClass('active');
  1370.  
  1371.       $activeLine  = $this;
  1372.       $activeFrame = $codeFrame;
  1373.  
  1374.       highlightCurrentLine();
  1375.  
  1376.       $container.scrollTop(headerHeight);
  1377.     }
  1378.   });
  1379.  
  1380.   if (typeof ZeroClipboard !== "undefined") {
  1381.       ZeroClipboard.config({
  1382.           moviePath: '//ajax.cdnjs.com/ajax/libs/zeroclipboard/1.3.5/ZeroClipboard.swf',
  1383.       });
  1384.  
  1385.       var clipEl = document.getElementById("copy-button");
  1386.       var clip = new ZeroClipboard( clipEl );
  1387.       var $clipEl = $(clipEl);
  1388.  
  1389.       // show the button, when swf could be loaded successfully from CDN
  1390.       clip.on("load", function() {
  1391.           $clipEl.show();
  1392.       });
  1393.   }
  1394.  
  1395.   $(document).on('keydown', function(e) {
  1396.       if(e.ctrlKey) {
  1397.           // CTRL+Arrow-UP/Arrow-Down support:
  1398.           // 1) select the next/prev element
  1399.           // 2) make sure the newly selected element is within the view-scope
  1400.           // 3) focus the (right) container, so arrow-up/down (without ctrl) scroll the details
  1401.           if (e.which === 38 /* arrow up */) {
  1402.               $activeLine.prev('.frame').click();
  1403.               $activeLine[0].scrollIntoView();
  1404.               $container.focus();
  1405.               e.preventDefault();
  1406.           } else if (e.which === 40 /* arrow down */) {
  1407.               $activeLine.next('.frame').click();
  1408.               $activeLine[0].scrollIntoView();
  1409.               $container.focus();
  1410.               e.preventDefault();
  1411.           }
  1412.       }
  1413.   });
  1414.  
  1415.   // Avoid to quit the page with some protocol (e.g. IntelliJ Platform REST API)
  1416.   $ajaxEditors.on('click', function(e){
  1417.     e.preventDefault();
  1418.     $.get(this.href);
  1419.   });
  1420. });
  1421. </script>
  1422.   </body>
  1423. </html>
Add Comment
Please, Sign In to add comment