[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/opt/PhpStorm-141.2462/bin/webide.png
Exec="/opt/PhpStorm-141.2462/bin/phpstorm.sh"
Comment=Develop with pleasure!!!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
Actions=Project1;Project2;Project3;
[Desktop Action Project1]
Name=Project1
Exec=sh -c "/opt/PhpStorm-141.2462/bin/phpstorm.sh /var/www/Project1/"
OnlyShowIn=Unity;
[Desktop Action Project2]
Name=Project2
Exec=sh -c "/opt/PhpStorm-141.2462/bin/phpstorm.sh /var/www/Project2/"
OnlyShowIn=Unity;
[Desktop Action Project3]
Name=Project3
Exec=sh -c "/opt/PhpStorm-141.2462/bin/phpstorm.sh /var/www/Project3/"
OnlyShowIn=Unity;
shim: {
'app' : {
deps: ['focus']
}
}
RewriteEngine ON
RewriteCond %{QUERY_STRING} ^p=(.*)
RewriteRule ^.+$ index.php?page=%1 [L]
$stats = array();
$stats_by_group_id = array();
foreach($stats['response'] as $day_stats) {
$date = new DateTime($day_stats['day']);
$date = $date->format('Y-m-') . '01';
foreach($day_stats['cities'] as $id_city => $day_stats_city) {
if (!isset($stats_by_group_id[$id_city])) {
$stats_by_group_id[$id_city] = array(
'date' => $date,
'visitors' => 0,
'cities' => 0
);
}
$stats_by_group_id[$id_city]['visitors'] += $day_stats_city['visitors'];
$stats_by_group_id[$id_city]['cities'] += $day_stats_city['cities'];
}
}