<script>
var ctx = document.getElementById('myChart');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: [ 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
location = /site/ {
return 301 /site;
}
location = /site/ {
return 301 $scheme://site.ru/site;
}
#!/usr/bin/php -q
<?php
require('phpagi.php');
$agi = new AGI();
$cid = $agi->request[ 'agi_callerid' ];
$cidname = $agi->request[ 'agi_calleridname' ];
$dnid = $agi->request[ 'agi_dnid' ];
$date = date ( 'Y-m-d H:i:s' );
$answeredtime = $argv[ 1 ]; //${ANSWEREDTIME}
$dialstatus = $argv[ 2 ];//${DIALSTATUS} -
$data = array("direction"=>"out","callee"=>$dnid,"caller"=>$cid,"date"=>$date,"status"=>$dialstatus);
Структура таблицы в бд + если можно примерную логику