Esempio n. 1
0
 public function actionGet()
 {
     //todo поправить костыль
     $done = Order::find(['status' => [Order::DONE, Order::DONE_AND_HIDE]])->count();
     $like = StatisticsMenu::getCount(1);
     $subscriber = StatisticsMenu::getCount(3);
     $repost = StatisticsMenu::getCount(4);
     $wrap = Wrap::getStat();
     $data['stat_done_vk'] = $done + $wrap->done_wrap_vk;
     $data['stat_like_vk'] = $like + $wrap->like_wrap_vk;
     $data['stat_repost_vk'] = $repost + $wrap->repost_wrap_vk;
     $data['stat_subscriber_vk'] = $subscriber + $wrap->subscriber_wrap_vk;
     echo json_encode($data);
 }
Esempio n. 2
0
File: main.php Progetto: apuc/api
                <h1>
                    Автоматический сервис накрутки вконтакте и других социальных сетях
                    <small>V 2.0</small>
                </h1>
                <!--                <ol class="breadcrumb">-->
                <!--                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>-->
                <!--                    <li class="active">Dashboard</li>-->
                <!--                </ol>-->
            </section>

            <!-- Main content -->
            <section class="content">
                <!-- Info boxes -->
                <?php 
echo \common\modules\statistics\widgets\StatisticsMenu::widget();
?>
                <!-- /.row -->

                <!-- MAIN -->
                <div class="row">
                    <!-- Left col -->
                    <div class="col-md-8">
                        <!--                        --><? //= Breadcrumbs::widget([
                            //                            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
                            //                        ]) ?>

                        <div id="modal-window-interkassa" class="well modal-window-interkassa">
                            <a class="close-modal-interkassa btn btn-default pull-right" href="#">x</a>

                            <div class="content">