repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modelscli/PagesQuery.php | frontend/modelscli/PagesQuery.php | <?php
namespace app\modelscli;
/**
* This is the ActiveQuery class for [[Pages]].
*
* @see Pages
*/
class PagesQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Pages[]|array
*/
pub... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modelscli/VpnTemplateSearch.php | frontend/modelscli/VpnTemplateSearch.php | <?php
namespace app\modelscli;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\content\models\VpnTemplate;
/**
* VpnTemplateSearch represents the model behind the search form of `app\modules\content\models\VpnTemplate`.
*/
class VpnTemplateSearch extends VpnTemplate
{
/**
* {@inheritd... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modelscli/VpnTemplate.php | frontend/modelscli/VpnTemplate.php | <?php
namespace app\modelscli;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "vpn_template".
*
* @property int $id
* @property string $name
* @property string $filename
* @property int $client
* @proper... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modelscli/EmailTemplate.php | frontend/modelscli/EmailTemplate.php | <?php
namespace app\modelscli;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "email_template".
*
* @property int $id
* @property string|null $name
* @property string|null $title
* @property string|null $html
* @property string|null $txt
*/
class ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/services/ServerPublisher.php | frontend/services/ServerPublisher.php | <?php
namespace app\services;
use yii\httpclient\Client;
use Yii;
use yii\base\InvalidConfigException;
use yii\web\ServerErrorHttpException;
/**
* Service responsible for publishing events to an external server endpoint.
*
* @package app\services
* @example
* ```
* $publisher = new ServerPublisher(Yii::$app->p... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/mail/layouts/text.php | frontend/mail/layouts/text.php | <?php
use yii\helpers\Html;
/** @var \yii\web\View $this view component instance */
/** @var \yii\mail\MessageInterface $message the message being composed */
/** @var string $content main view render result */
?>
<?php $this->beginPage();?>
<?php $this->beginBody();?>
<?= $content ?>
<?php $this->endBody();?>
<?php... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/mail/layouts/gmail.php | frontend/mail/layouts/gmail.php | <?php
use yii\helpers\Html;
?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="application/ld+json">
[{
"@context": "http://schema.org/",
"@type": "Organization",
"logo": "https://<?=Yii::$app->sys->offense_domain?>/images/logo.png"
},{
"@context... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/mail/layouts/html.php | frontend/mail/layouts/html.php | <?php
use yii\helpers\Html;
/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\MessageInterface the message being composed */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/extensions/MemcacheUrlManagerBootstrap.php | frontend/extensions/MemcacheUrlManagerBootstrap.php | <?php
namespace app\extensions;
use yii\base\BootstrapInterface;
use yii\helpers\ArrayHelper;
/**
* Class ModuleBootstrap
*
* @package app\extensions
*/
class MemcacheUrlManagerBootstrap implements BootstrapInterface
{
/**
* @param \yii\base\Application $oApplication
*/
public function bootstrap($o... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/commands/GeneratorController.php | frontend/commands/GeneratorController.php | <?php
namespace app\commands;
use yii\console\Controller;
use yii\console\ExitCode;
use app\modules\target\models\Target;
use app\models\Player;
use app\models\Stream;
use yii\base\UserException;
class GeneratorController extends Controller
{
/**
* Create a local file with the url routes from memcached
*/
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/commands/TesterController.php | frontend/commands/TesterController.php | <?php
namespace app\commands;
use Yii;
use yii\console\Controller;
use Symfony\Component\Mailer\Transport\TransportInterface;
use Symfony\Component\Mailer\Transport\TransportFactory;
use Symfony\Component\Mailer\Transport\DebugTransport;
use Symfony\Component\Mime\Email;
use yii\console\widgets\Table;
/**
* Tester ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/commands/ValidatorController.php | frontend/commands/ValidatorController.php | <?php
namespace app\commands;
use yii\console\Controller;
use yii\console\ExitCode;
use yii\console\widgets\Table;
use yii\helpers\Console;
use app\modules\target\models\Target;
use app\models\Player;
use app\modules\team\models\Team;
use app\models\Profile;
use app\models\Stream;
class ValidatorController extends Con... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/controllers/StaticPageController.php | frontend/controllers/StaticPageController.php | <?php
namespace app\controllers;
use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
class StaticPageController extends \yii\web\Controller
{
public function actionView($slug)
{
$model=$this->findModel($slug);
return $this->render('view',['content'=>$model]);
}
/**
* Finds the... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/controllers/ProfileController.php | frontend/controllers/ProfileController.php | <?php
namespace app\controllers;
use app\models\PlayerDisconnectQueue;
use Yii;
use app\models\Profile;
use app\models\PlayerToken;
use yii\data\ActiveDataProvider;
use \app\modules\target\models\Target;
use \app\modules\game\models\Headshot;
use \app\modules\target\models\TargetQuery;
use yii\helpers\ArrayHelper;
us... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/controllers/LegalController.php | frontend/controllers/LegalController.php | <?php
namespace app\controllers;
use Yii;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
class LegalController extends \app\components\BaseController
{
public function behaviors()
{
return ArrayHelper::merge(parent::behaviors(),[
'access' => [
'cl... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/controllers/SiteController.php | frontend/controllers/SiteController.php | <?php
namespace app\controllers;
use Yii;
use yii\web\Controller;
use yii\web\Response;
use yii\web\BadRequestHttpException;
use yii\base\InvalidArgumentException;
use yii\filters\VerbFilter;
use app\overloads\yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
use app\models\forms\LoginForm;
use app\models\forms... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/controllers/DashboardController.php | frontend/controllers/DashboardController.php | <?php
namespace app\controllers;
use Yii;
use yii\data\ActiveDataProvider;
use yii\data\ArrayDataProvider;
use app\modules\target\models\Target;
use app\modules\target\models\Treasure;
use app\modules\game\models\Headshot;
use app\models\PlayerTreasure;
use app\models\PlayerScore;
use app\models\Profile;
use app\mode... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/ProfileVisibility.php | frontend/components/ProfileVisibility.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
class ProfileVisibility extends Component
{
public static function visible(int $player_id, $visibility): bool
{
if ($visibility === 'public') return true;
if (self::visibilityAllowed($player_id)) retur... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Markdown.php | frontend/components/Markdown.php | <?php
namespace app\components;
use cebe\markdown\GithubMarkdown;
class Markdown extends GithubMarkdown
{
/**
* Add bootstrap classes to tables.
* @inheritdoc
*/
public function renderTable($block)
{
return str_replace('<table>', '<table class="table table-bordered table-striped">'... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Counters.php | frontend/components/Counters.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
class Counters extends Component
{
public static function increment($metric,$val=1)
{
$query=Yii::$app->db->createCommand('INSERT INTO player_counter_nf VALUES (:player_id,:metric,:val) ON DUPLICATE KEY UPD... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/JustGageAssets.php | frontend/components/JustGageAssets.php | <?php
/**
* JustGageAssets class file.
*
* @author Simon Smith <simon@simonsmith.ca>
* @link https://github.com/simonmesmith/yii2-justgage/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @version
*/
namespace app\components;
use yii\web\AssetBundle;
/**
* Asset bundle for JustGa... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/User.php | frontend/components/User.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
use yii\base\InvalidValueException;
use yii\rbac\CheckAccessInterface;
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Mailer.php | frontend/components/Mailer.php | <?php
namespace app\components;
use Yii;
class Mailer extends \yii\symfonymailer\Mailer
{
public function init()
{
parent::init();
$this->useFileTransport = (bool)Yii::$app->sys->mail_useFileTransport;
if (\Yii::$app->sys->dsn !== false) {
$config['dsn']=trim(\Yii::$app->sys->dsn);
} else {
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Img.php | frontend/components/Img.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
/**
* This is the model class for generating and manipulating images.
*
*/
class Img extends Component
{
public static function profile($profile)
{
try {
$fname=Yii::getAlias(sprintf... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Formatter.php | frontend/components/Formatter.php | <?php
namespace app\components;
use Yii;
use yii\apidoc\helpers\ApiMarkdown;
use yii\apidoc\models\Context;
use yii\helpers\HtmlPurifier;
use yii\helpers\Markdown;
use yii\helpers\StringHelper;
use yii\helpers\Html;
class Formatter extends \yii\i18n\Formatter
{
public $dateFormat = 'medium';
public $timeFormat =... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/UserExtraMethods.php | frontend/components/UserExtraMethods.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
use yii\base\InvalidValueException;
use yii\rbac\CheckAccessInterface;
use yii\web\UserEvent;
use yii\web\Response;
use yii\web\ForbiddenHttpException;
/**
* @property null|int $expire
* @property null|int $expireA... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/DisabledRoute.php | frontend/components/DisabledRoute.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
/**
* This is the model class for table "disabled_routes".
*
* @property string $route
* @method disabled
* @method enabled
* @method disabled
*/
class DisabledRoute extends Component
{
public function ini... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/echoCTFView.php | frontend/components/echoCTFView.php | <?php
namespace app\components;
/**
* @property string image
* @property string description
* @property string twitterHandle
*/
class echoCTFView extends \yii\web\View
{
public $loadLayoutOverrides=false;
public $_title;
public $_url;
public $_fluid;
public $_image;
public $_description;
public $_imag... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/Sysconfig.php | frontend/components/Sysconfig.php | <?php
namespace app\components;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
class Sysconfig extends Component
{
public $keyCache;
private $prefetchKeys=[
'sysconfig:disabled_routes',
'sysconfig:player_disabled_routes',
'sysconfig:teams',
'sysconfig:admin_ids',
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/JustGage.php | frontend/components/JustGage.php | <?php
/**
* JustGage class file.
*
* @author Simon Smith <simon@simonsmith.ca>
* @link https://github.com/simonmesmith/yii2-justgage/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @version 1.0.0
*/
namespace app\components;
use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\Ht... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/PlayerEvents.php | frontend/components/PlayerEvents.php | <?php
namespace app\components;
use Yii;
use yii\base\Model;
class PlayerEvents extends Model
{
public static function addToRank($event)
{
Yii::$app->db->createCommand("INSERT IGNORE INTO player_rank (id,player_id) SELECT max(id)+1,:player_id FROM player_rank")->bindValue(':player_id', $event->sender->id)->... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/BaseController.php | frontend/components/BaseController.php | <?php
namespace app\components;
use Yii;
use app\overloads\yii\filters\AccessControl;
/**
* @property bool $eventInactive
* @property bool $eventBetweenStartEnd
* @property bool $teamsRequired
*/
class BaseController extends \yii\web\Controller
{
public function behaviors()
{
return [
'access' => [... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/StopForumSpamValidator.php | frontend/components/validators/StopForumSpamValidator.php | <?php
/**
* Check memcache key for registrations performed by this IP.
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class StopForumSpamValidator extends Validator
{
public $url = 'http://api.stopforumspam.org/api';
public $message="SP: Spam email detecte... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/TotalRegistrationsValidator.php | frontend/components/validators/TotalRegistrationsValidator.php | <?php
/**
* Check MySQL IP counter.
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class TotalRegistrationsValidator extends Validator
{
public $max=10;
public $message="You reached your maximum registrations for this IP!";
public $counter;
public ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/MXServersValidator.php | frontend/components/validators/MXServersValidator.php | <?php
/**
* Check email address MX Records for denied servers.
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class MXServersValidator extends Validator
{
public $range;
public $banned_message="Sorry but you are using an email server that is banned!";
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/HourRegistrationValidator.php | frontend/components/validators/HourRegistrationValidator.php | <?php
/**
* Check memcache key for registrations performed by this IP.
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class HourRegistrationValidator extends Validator
{
public $max=3;
public $message;
public $counter;
public $client_ip;
public... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/LowerRangeValidator.php | frontend/components/validators/LowerRangeValidator.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\components\validators;
use Yii;
use yii\base\InvalidConfigException;
use yii\helpers\ArrayHelper;
use yii\validators\ValidationAsset;
/**
* RangeValidat... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/VerifymailValidator.php | frontend/components/validators/VerifymailValidator.php | <?php
/**
* Validate email with Verifymail.io
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class VerifymailValidator extends Validator
{
public $url = 'https://verifymail.io/api/';
public $message="Verifymail.io: Disposable email detected! Please use a d... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/WhoisValidator.php | frontend/components/validators/WhoisValidator.php | <?php
/**
* Check memcache key for registrations performed by this IP.
*/
namespace app\components\validators;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class WhoisValidator extends Validator
{
public $message="Domain validation error.";
public function init()
{
parent::init();... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/CommonsValidator.php | frontend/components/validators/social/CommonsValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class CommonsValidator extends Validator
{
public $maxlen=15;
public $range=['admin', 'twitter', 'echoctf'];
public $pattern='^[a-zA-Z0-9_]+$';
public $range... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/TwitchValidator.php | frontend/components/validators/social/TwitchValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class TwitchValidator extends CommonsValidator
{
public $maxlen=25;
public $range=['admin', 'twitter', 'echoctf','twitch'];
public $pattern='^[a-zA-Z0-9_]+$';
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/GithubValidator.php | frontend/components/validators/social/GithubValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class GithubValidator extends CommonsValidator
{
public $maxlen=39;
public $range=['admin', 'twitter', 'help','about'];
public $pattern='^[a-zA-Z0-9_-]+$';
p... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/TwitterValidator.php | frontend/components/validators/social/TwitterValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class TwitterValidator extends CommonsValidator
{
public $maxlen=15;
public $range=['admin', 'twitter','about','info'];
public $pattern='^[a-zA-Z0-9_]+$';
pu... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/YoutubeValidator.php | frontend/components/validators/social/YoutubeValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class YoutubeValidator extends CommonsValidator
{
public $maxlen=42;
public $range=['admin', 'twitter', 'help','about'];
public $pattern='^[a-zA-Z0-9_-]+$';
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/validators/social/DiscordValidator.php | frontend/components/validators/social/DiscordValidator.php | <?php
/**
* Twitter Handle Validator
*/
namespace app\components\validators\social;
use yii\validators\Validator;
use yii\helpers\ArrayHelper;
class DiscordValidator extends Validator
{
public $maxlen=32;
public $minlen=2;
public $range=['discordtag', 'everyone', 'here'];
public $pattern='^[a-z0-9_.... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/generators/Robohash.php | frontend/components/generators/Robohash.php | <?php
// Original Class taken from php-robohash
// (C) 2012 hush2 <hushywushy@gmail.com>
// https://github.com/hush2/php-robohash.git
// Extra sets and images from https://github.com/e1ven/Robohash.git
namespace app\components\generators;
use yii\base\Widget;
use yii\helpers\Html;
class Robohash
{
public $text;... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/generators/AvatarGenerator.php | frontend/components/generators/AvatarGenerator.php | <?php
namespace app\components\generators;
class AvatarGenerator
{
public $text;
public $color;
public $set;
// WxH
public $size;
public $width;
public $height;
public $cache;
public $image_dir;
private $hash_index = 0,
$hash_list = [];
const IMAGE_WIDTH = 300,
IMAGE_HE... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/generators/Identicon.php | frontend/components/generators/Identicon.php | <?php
namespace app\components\generators;
class Identicon {
public $text;
public $color;
public $set;
public $width;
public $height;
const IMAGE_WIDTH = 300,
IMAGE_HEIGHT = 300;
private $model;
public function __construct($text, $set = null, $color = null)
{
$this->text = $text;
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/formatters/Anchor.php | frontend/components/formatters/Anchor.php | <?php
namespace app\components\formatters;
use Yii;
class Anchor extends \yii\base\Model {
public static function to($string) {
$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
return strtolower(preg_replace('/[^A-Za-z0-9\-]/', '', $string)); // Removes special chars.
}
}
| php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/components/formatters/RankFormatter.php | frontend/components/formatters/RankFormatter.php | <?php
namespace app\components\formatters;
use Yii;
class RankFormatter extends \yii\base\Model {
public static function ordinalPlace($number) {
if(!in_array(($number % 100), array(11, 12, 13)))
{
switch($number % 10) {
// Handle 1st, 2nd, 3rd
case 1: return $number.'st';
ca... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/actions/ActionColumn.php | frontend/actions/ActionColumn.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\actions;
use Yii;
use Closure;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\Column;
/**
* ActionColumn is a column for the [[GridView]] widg... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/actions/profile/HintsRestAction.php | frontend/actions/profile/HintsRestAction.php | <?php
namespace app\actions\profile;
use Yii;
use yii\data\ActiveDataProvider;
class HintsRestAction extends \yii\rest\IndexAction
{
public $modelClass="\app\models\Hint";
public $serializer='yii\rest\Serializer';
public function run()
{
\Yii::$app->response->format=\yii\web\Response::FORMAT_JSON;
$req... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/actions/profile/NotificationsRestAction.php | frontend/actions/profile/NotificationsRestAction.php | <?php
namespace app\actions\profile;
use Yii;
use yii\data\ActiveDataProvider;
class NotificationsRestAction extends \yii\rest\IndexAction
{
public $modelClass="\app\models\Notification";
public $serializer='yii\rest\Serializer';
public function run()
{
\Yii::$app->response->format=\yii\web\Response::FORMA... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/messages/en/app.php | frontend/messages/en/app.php | <?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/messages/en/yii.php | frontend/messages/en/yii.php | <?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerMetadataSearch.php | frontend/models/PlayerMetadataSearch.php | <?php
namespace app\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\frontend\models\PlayerMetadata;
/**
* PlayerMetadataSearch represents the model behind the search form of `app\modules\frontend\models\PlayerMetadata`.
*/
class PlayerMetadataSearch extends PlayerMetadata
{
public $u... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/ProfileAR.php | frontend/models/ProfileAR.php | <?php
namespace app\models;
use Yii;
use yii\db\Expression;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\behaviors\AttributeTypecastBehavior;
use app\modules\game\models\Headshot;
use app\modules\target\models\Target;
use app\modules\target\models\Writeup;
/**
* This is the model class for table "profile".
*... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerSpin.php | frontend/models/PlayerSpin.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_spin".
*
* @property int $player_id
* @property int|null $counter
* @property int|null $total
* @property string|null $up... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerSsl.php | frontend/models/PlayerSsl.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "player_ssl".
*
* @property int $player_id
* @property string $subject
* @property string $csr
* @property string $crt
* @proper... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerHint.php | frontend/models/PlayerHint.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_hint".
*
* @property int $player_id
* @property int $hint_id
* @property int|null $status
* @property string $ts
*
* @property Player $player
* @property Hint $hint
*/
class Pla... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Player.php | frontend/models/Player.php | <?php
namespace app\models;
use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\db\Expression;
use yii\web\IdentityInterface;
use yii\behaviors\AttributeTypecastBehavior;
use yii\filters\RateLimitInterface;
use app\modules\game\models\Headshot;
/**
* Pl... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Hint.php | frontend/models/Hint.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
use app\modules\target\models\Treasure;
use app\modules\target\models\Finding;
use app\modules\game\models\Badge;
/**
* This is the model class for table "hint".
*
* @property int $id
* @property string $title
* @property string|nu... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerToken.php | frontend/models/PlayerToken.php | <?php
namespace app\models;
use yii\db\Expression;
use yii\behaviors\TimestampBehavior;
use yii\behaviors\AttributeTypecastBehavior;
use Yii;
/**
* This is the model class for table "player_token".
*
* @property int $player_id
* @property string $type
* @property string $token
* @property string $expires_at
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerSslQuery.php | frontend/models/PlayerSslQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerSsl]].
*
* @see PlayerSsl
*/
class PlayerSslQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return PlayerSsl[]|array
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerRank.php | frontend/models/PlayerRank.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_rank".
*
* @property int $id
* @property int $player_id
*
* @property Player $player
*/
class PlayerRank extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
pub... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerLast.php | frontend/models/PlayerLast.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_last".
*
* @property int $id
* @property string $ts
* @property string $on_pui
* @property string $on_vpn
* @property int|null $vpn_remote_address
* @property int|null $vpn_local_... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/NewsQuery.php | frontend/models/NewsQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[News]].
*
* @see News
*/
class NewsQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return News[]|array
*/
public fun... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Profile.php | frontend/models/Profile.php | <?php
namespace app\models;
use Yii;
use yii\db\Query;
use yii\db\Expression;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\behaviors\AttributeTypecastBehavior;
use app\modules\game\models\Headshot;
use app\modules\challenge\models\ChallengeSolver;
use app\modules\target\models\Target;
use app\modules\target\mod... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Stream.php | frontend/models/Stream.php | <?php
namespace app\models;
use Yii;
use yii\helpers\Html;
use app\modules\target\models\Target;
use app\modules\game\models\Badge;
use app\components\formatters\RankFormatter;
/**
* This is the model class for table "stream" implementing frontend methods.
*
* @property string $icon
* @property string $prefix
*... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerAR.php | frontend/models/PlayerAR.php | <?php
namespace app\models;
use Yii;
use yii\base\NotSupportedException;
use yii\db\ActiveRecord;
use app\modules\game\models\Headshot;
use app\modules\target\models\TargetInstance;
/**
* This is the model class that only holds relations for the table "player".
*
* @property integer $id
* @property string $usern... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerHintQuery.php | frontend/models/PlayerHintQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerHint]].
*
* @see PlayerHint
*/
class PlayerHintQuery extends \yii\db\ActiveQuery
{
public function pending()
{
return $this->andWhere('[[status]]=1');
}
public function forTarget(int $target_id)
{
$this->... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerSpinQuery.php | frontend/models/PlayerSpinQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerSpin]].
*
* @see PlayerSpin
*/
class PlayerSpinQuery extends \yii\db\ActiveQuery
{
public function todays()
{
// 'select'=>["t.player_id","t.total","if(DATE(t.updated_at) < DATE(NOW()),0,t.counter) as counter"],
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/HintQuery.php | frontend/models/HintQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[Hint]].
*
* @see Hint
*/
class HintQuery extends \yii\db\ActiveQuery
{
/**
* {@inheritdoc}
* @return Hint[]|array
*/
public function all($db=null)
{
return parent::all($db);
}
/**
* {@inheritdoc}... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerQuery.php | frontend/models/PlayerQuery.php | <?php
namespace app\models;
use Yii;
/**
* This is the ActiveQuery class for [[Player]].
*
* @see Player
*/
class PlayerQuery extends \yii\db\ActiveQuery
{
public function active()
{
return $this->andWhere(['active' => 1, 'status'=>10]);
}
public function academic($academic)
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerCountryRank.php | frontend/models/PlayerCountryRank.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_rank".
*
* @property int $id
* @property int $player_id
*
* @property Player $player
*/
class PlayerCountryRank extends \app\models\ActiveRecordReadOnly
{
public $name;
public ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Notification.php | frontend/models/Notification.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "notification".
*
* @property int $id
* @property int $player_id
* @property string|null $title
* @property string|null $body
* ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Language.php | frontend/models/Language.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "language".
*
* @property string $id
* @property string|null $l
*/
class Language extends \app\models\ActiveRecordReadOnly
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'language';
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Avatar.php | frontend/models/Avatar.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "avatar".
*
* @property string $id
*/
class Avatar extends \app\models\ActiveRecordReadOnly
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerTreasure.php | frontend/models/PlayerTreasure.php | <?php
namespace app\models;
use Yii;
use app\modules\target\models\Treasure;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_treasure".
*
* @property int $player_id
* @property int $treasure_id
* @property string $ts
* @property float $points
*
* @property Player $... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerMetadata.php | frontend/models/PlayerMetadata.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "player_metadata".
*
* @property int $player_id
* @property string|null $identificationFile
* @property string|null $affiliation
*
* @property Player $player
*/
class PlayerMetadata extends \yii\db\ActiveRecord
{
/**
* {@in... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Menu.php | frontend/models/Menu.php | <?php
namespace app\models;
use Yii;
use app\widgets\Menu as RCEmenu;
class Menu
{
public static function getMenu()
{
$menu = RCEmenu::widget(
[
'options' => ['class' => 'nav'],
'itemOptions' => ['class' => 'nav-item'],
'linkTemplate' => '<a href="{url}" class="nav-link">{icon} ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/BannedPlayer.php | frontend/models/BannedPlayer.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "banned_player".
*
* @property int $id
* @property int $old_id
* @property string $username
* @property string $email
* @property string $registered_at
* @property string $banned_at
*/
class BannedPlayer extends \yii\db\ActiveRecor... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerRelation.php | frontend/models/PlayerRelation.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "player_relation".
*
* @property int $player_id
* @property int|null $referred_id
*
* @property Player $player
*/
class PlayerRelation extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tab... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerScore.php | frontend/models/PlayerScore.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_score".
*
* @property int $player_id
* @property int $points
* @property string $ts
*/
class PlayerScore extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
publ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerMetadataQuery.php | frontend/models/PlayerMetadataQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerMetadata]].
*
* @see PlayerMetadata
*/
class PlayerMetadataQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Playe... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerScoreQuery.php | frontend/models/PlayerScoreQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerScore]].
*
* @see PlayerScore
*/
class PlayerScoreQuery extends \yii\db\ActiveQuery
{
public function active()
{
return $this->joinWith('player')->where(['player.status'=>Player::STATUS_ACTIVE]);
//return $this->andW... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Experience.php | frontend/models/Experience.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "experience".
*
* @property int $id
* @property string|null $name
* @property string|null $category
* @property string|null $description
* @property string|null $icon
* @property int|null... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/DummySubscription.php | frontend/models/DummySubscription.php | <?php
/**
* Dummy Subscription module
*/
namespace app\models;
use Yii;
class DummySubscription extends yii\base\Model
{
public function rules()
{
return [];
}
public function attributeLabels()
{
return [];
}
public function getExists()
{
return false;
}
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Country.php | frontend/models/Country.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "country".
*
* @property string $id
* @property string|null $name
*/
class Country extends \app\models\ActiveRecordReadOnly
{
/**
* {@inheritdoc}
*/
public static function ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/LanguageQuery.php | frontend/models/LanguageQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[Language]].
*
* @see Language
*/
class LanguageQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Language[]|array
*... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerDisconnectQueue.php | frontend/models/PlayerDisconnectQueue.php | <?php
namespace app\models;
use Yii;
use app\models\Player;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "player_disconnect_queue".
*
* @property int $player_id
* @property string $created_at
*
* @property Player $player
*/
class PlayerDisconnectQueue ext... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/Sessions.php | frontend/models/Sessions.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "sessions".
*
* @property string $id
* @property int $expire
* @property string $data
* @property int $player_id
* @property string $ip
* @property string $ts
* @property array $decodedData
* @property string $decodedDataAsString
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/NotificationQuery.php | frontend/models/NotificationQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[Notification]].
*
* @see Notification
*/
class NotificationQuery extends \yii\db\ActiveQuery
{
public function my()
{
return $this->from([new \yii\db\Expression('{{%notification}} USE INDEX (`query-index`)')])->andWhere('[[player_id]]=:... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/ActiveRecordReadOnly.php | frontend/models/ActiveRecordReadOnly.php | <?php
namespace app\models;
use Yii;
class ActiveRecordReadOnly extends \yii\db\ActiveRecord
{
public function save($runValidation=true, $attributeNames=null)
{
throw new \LogicException(\Yii::t('app',"Saving is disabled for this model."));
}
} | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerFinding.php | frontend/models/PlayerFinding.php | <?php
namespace app\models;
use Yii;
use app\modules\target\models\Finding;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "player_finding".
*
* @property int $player_id
* @property int $finding_id
* @property string $ts
* @property float $points
*
* @property Player $pl... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/WsToken.php | frontend/models/WsToken.php | <?php
namespace app\models;
use Yii;
use app\models\Player;
/**
* This is the model class for table "ws_token".
*
* @property resource $token
* @property int|null $player_id
* @property resource $subject_id
* @property int $is_server
* @property string $expires_at
*
* @property Player $player
*/
class WsTo... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/StreamAR.php | frontend/models/StreamAR.php | <?php
namespace app\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "stream".
*
* @property string $id
* @property int $player_id
* @property string $model
* @property int $model_id
* @property int... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerRelationQuery.php | frontend/models/PlayerRelationQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerRelation]].
*
* @see PlayerRelation
*/
class PlayerRelationQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Playe... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerDisconnectQueueQuery.php | frontend/models/PlayerDisconnectQueueQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerDisconnectQueue]].
*
* @see PlayerDisconnectQueue
*/
class PlayerDisconnectQueueQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/models/PlayerRelationSearch.php | frontend/models/PlayerRelationSearch.php | <?php
namespace app\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\PlayerRelation;
/**
* PlayerRelationSearch represents the model behind the search form of `app\modules\frontend\models\PlayerRelation`.
*/
class PlayerRelationSearch extends PlayerRelation
{
public $player;
public $... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.