Файловый менеджер - Редактировать - /var/www/fetish/core/src/stats.php
Назад
<?php namespace fetish; use \fetish\db; use \DateTime; use \DateTimeZone; class stats { public static function uploads($uid) { return db::query("SELECT COUNT(*) as total FROM videos WHERE uid = ? AND active = 1",[$uid])->first()->total ?? 0; } public static function followers($uid) { return db::query("SELECT COUNT(*) as total FROM followers WHERE follow_id = ?",[$uid])->first()->total ?? 0; } public static function following($uid) { return db::query("SELECT COUNT(*) as total FROM followers WHERE user_id = ?",[$uid])->first()->total ?? 0; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка