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/backend/components/validators/VerifymailValidator.php | backend/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/backend/components/validators/WhoisValidator.php | backend/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/backend/components/validators/social/CommonsValidator.php | backend/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/backend/components/validators/social/TwitchValidator.php | backend/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/backend/components/validators/social/GithubValidator.php | backend/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/backend/components/validators/social/TwitterValidator.php | backend/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/backend/components/validators/social/YoutubeValidator.php | backend/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/backend/components/validators/social/DiscordValidator.php | backend/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/backend/components/columns/ProfileColumn.php | backend/components/columns/ProfileColumn.php | <?php
namespace app\components\columns;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
/**
* Column for username link to player profile
* [[idkey]] The profile id path to be used for generating the link to the profile
* [[field]] The field name to retrieve the value from
* [[attribute]] Reflects to the attri... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/columns/ActionColumn.php | backend/components/columns/ActionColumn.php | <?php
namespace app\components\columns;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap5\Modal;
use yii\web\JsExpression;
class ActionColumn extends \yii\grid\ActionColumn
{
protected static $modalRendered = false;
public $contentOptions = ['class' => 'text-center', 'style' => 'white-space: nowrap;... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/columns/BooleanColumn.php | backend/components/columns/BooleanColumn.php | <?php
namespace app\components\columns;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\base\InvalidConfigException;
/**
* Column for boolean value
* [[attribute]] Reflects to the attribute name expected from the model
*/
class BooleanColumn extends \yii\grid\DataColumn
{
public function init()
{
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/components/columns/AcademicColumn.php | backend/components/columns/AcademicColumn.php | <?php
namespace app\components\columns;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\base\InvalidConfigException;
/**
* Column for boolean value
* [[attribute]] Reflects to the attribute name expected from the model
*/
class AcademicColumn extends \yii\grid\DataColumn
{
public function init()
{... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/messages/en/app.php | backend/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/backend/messages/en/yii.php | backend/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/backend/models/DbMenu.php | backend/models/DbMenu.php | <?php
namespace app\models;
use yii\db\ActiveRecord;
class DbMenu extends ActiveRecord
{
public static function tableName()
{
return 'mui_menu';
}
public function rules()
{
return [
[['label'], 'required'],
[['url'], 'string', 'max' => 255],
['visibility', 'each', 'rule' => ['in'... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/models/LoginForm.php | backend/models/LoginForm.php | <?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* Login form
* @property User|null $user
*/
class LoginForm extends Model
{
public $username;
public $password;
public $rememberMe=true;
private $_user;
/**
* {@inheritdoc}
*/
public function rules()
{
ret... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/models/User.php | backend/models/User.php | <?php
namespace app\models;
use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* User model
*
* @property integer $id
* @property string $username
* @property string $password_hash
* @property string $password_reset_token... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/models/DbMenuSearch.php | backend/models/DbMenuSearch.php | <?php
namespace app\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
/**
* DbMenuSearch represents the model behind the search form of `app\models\DbMenu`.
*/
class DbMenuSearch extends DbMenu
{
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['label', 'url', 'visibilit... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/site/login.php | backend/views/site/login.php | <?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap5\ActiveForm */
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap5\ActiveForm;
$this->title='Login';
$this->params['breadcrumbs'][]=$this->title;
?>
<div class="site-login">
<h1><?= Html::encode($this->title) ?></h1>
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/site/index.php | backend/views/site/index.php | <?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use app\modules\gameplay\models\Target;
use app\modules\gameplay\models\Finding;
use app\modules\gameplay\models\Treasure;
use app\modules\gameplay\models\Challenge;
use app\modules\gameplay\models\Question;
use app\modules\frontend\models\Player;
use app\module... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/site/error.php | backend/views/site/error.php | <?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title=$name;
?>
<div class="site-error">
<h1><?= Html::encode($this->title) ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encode($message)) ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/console/metadata/view.php | backend/views/console/metadata/view.php | # Metadata for <?=$metadata->target->name?> (ID: <?=$metadata->target_id?>)
<?php if($metadata->scenario):?>
## Scenario
<?=$metadata->scenario."\n"?>
<?php endif;?>
<?php if($metadata->solution):?>
## Solution
<?=$metadata->solution."\n"?>
<?php endif;?>
<?php if($metadata->pre_credits):?>
## Pre Credits
<?=$metadata... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/common/_notify.php | backend/views/common/_notify.php | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
?>
<div class="notification-form">
<?php $form = ActiveForm::begin(['id' => 'notifyForm-' . uniqid()]); ?>
<div class="row">
<div class="col-md-6">
<?= $form->field($notificationModel, 'category')->dropDownList(\app\m... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/layouts/main.php | backend/views/layouts/main.php | <?php
/* @var $this \yii\web\View */
/* @var $content string */
use app\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap5\Nav;
use yii\bootstrap5\NavBar;
use yii\bootstrap5\Breadcrumbs;
use app\assets\AppAsset;
$this->title = Yii::$app->sys->event_name . ' mUI: ' . $this->title;
AppAsset::register($this);
$thi... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/migration/templates/routine.php | backend/views/migration/templates/routine.php | <?php
/**
* This view is used by console/controllers/MigrateController.php
* The following variables are available in this view:
*/
/* @var $className string the new migration class name */
/* @var $routineName string the name of the routine */
/* @var $returns string the type of data returned */
/* @var $determini... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/migration/templates/procedure.php | backend/views/migration/templates/procedure.php | <?php
/**
* This view is used by console/controllers/MigrateController.php
* The following variables are available in this view:
*/
/* @var $className string the new migration class name */
echo "<?php\n";
?>
use yii\db\Migration;
class <?= $className ?> extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF E... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/migration/templates/event.php | backend/views/migration/templates/event.php | <?php
/**
* @var string $className
* @var string $action
* @var string $eventName
* @var int $intervalValue
* @var string $intervalUnit
* @var string $starts
*/
?>
<?php echo "<?php\n"; ?>
use yii\db\Migration;
class <?= $className ?> extends Migration
{
public $DROP_SQL = "DROP EVENT IF EXISTS {{%<?= $e... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/migration/templates/trigger.php | backend/views/migration/templates/trigger.php | <?php
/**
* This view is used by console/controllers/MigrateController.php
* The following variables are available in this view:
*/
/* @var $className string the new migration class name */
/* @var $timing string the timing of the event BEFORE|AFTER */
/* @var $event string the type of event INSERT|UPDATE|DELETE */... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/menu/_form.php | backend/views/menu/_form.php | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\DbMenu as Menu;
/* @var $model Menu */
$parents = Menu::find()->select(['label','id'])->indexBy('id')->column();
?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'label')->textInput() ?>
<?= $form->field($model, 'url')->textInput... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/menu/index.php | backend/views/menu/index.php | <?php
use yii\grid\GridView;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\settings\models\CreditsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Menu');
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/menu/tree.php | backend/views/menu/tree.php | <?php
use yii\helpers\Url;
use yii\web\JqueryAsset;
\yii\web\JqueryAsset::register($this); // ensures $ is available
use yii\web\View;
$this->registerCssFile('//cdnjs.cloudflare.com/ajax/libs/nestable2/1.6.0/jquery.nestable.min.css');
$this->registerJsFile('//cdnjs.cloudflare.com/ajax/libs/nestable2/1.6.0/jquery.nes... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/menu/update.php | backend/views/menu/update.php | <?php
use yii\helpers\Html;
$this->title = Yii::t('app', 'Update Menu: {name}', [
'name' => $model->label,
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Menu'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->label, 'url' => ['view', 'id' => $model->id]];
$this->params['b... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/views/menu/create.php | backend/views/menu/create.php | <?php
use yii\helpers\Html;
$this->title=Yii::t('app', 'Create Menu entry');
$this->params['breadcrumbs'][]=['label' => Yii::t('app', 'menu'), 'url' => ['index']];
$this->params['breadcrumbs'][]=$this->title;
?>
<div class="menu-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251103_122602_add_suspended_url_route.php | backend/migrations/m251103_122602_add_suspended_url_route.php | <?php
use yii\db\Migration;
class m251103_122602_add_suspended_url_route extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert('url_route', ['source' => 'suspended', 'destination' => 'site/suspendend', 'weight' => 600],true);
}
/**
* {@inheritdoc... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250905_085712_add_dynamic_treasures_column_to_target_table.php | backend/migrations/m250905_085712_add_dynamic_treasures_column_to_target_table.php | <?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%target}}`.
*/
class m250905_085712_add_dynamic_treasures_column_to_target_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%target}}', 'dynamic_treasures', $this->boolea... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251013_212443_update_trigger_before_delete_on_player_table.php | backend/migrations/m251013_212443_update_trigger_before_delete_on_player_table.php | <?php
use yii\db\Migration;
class m251013_212443_update_trigger_before_delete_on_player_table extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tbd_player}}";
public $CREATE_SQL="CREATE TRIGGER {{%tbd_player}} BEFORE DELETE ON {{%player}} FOR EACH ROW
thisBegin:BEGIN
DECLARE tid INT default 0;
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251125_074851_create_private_network_table.php | backend/migrations/m251125_074851_create_private_network_table.php | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%private_network}}`.
* Has foreign keys to the tables:
*
* - `{{%player}}`
*/
class m251125_074851_create_private_network_table extends Migration
{
/**
* {@inheritdoc}
*/
public function up()
{
if ($this->db->schema->getTableSchem... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250903_211309_update_trigger_after_insert_on_stream.php | backend/migrations/m250903_211309_update_trigger_after_insert_on_stream.php | <?php
use yii\db\Migration;
class m250903_211309_update_trigger_after_insert_on_stream extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_stream}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_stream}} AFTER INSERT ON {{%stream}} FOR EACH ROW
thisBegin:BEGIN
DECLARE lteam_id INT;
IF (@T... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250709_112518_update_tai_headshot_add_points.php | backend/migrations/m250709_112518_update_tai_headshot_add_points.php | <?php
use yii\db\Migration;
class m250709_112518_update_tai_headshot_add_points extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_headshot}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_headshot}} AFTER INSERT ON {{%headshot}} FOR EACH ROW
thisBegin:BEGIN
DECLARE private_instance int;
DECLA... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250903_210652_add_player_id_column_to_team_stream_table.php | backend/migrations/m250903_210652_add_player_id_column_to_team_stream_table.php | <?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%team_stream}}`.
*/
class m250903_210652_add_player_id_column_to_team_stream_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%team_stream}}', 'stream_id', $this->bigInteger(20)->unsig... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251207_100542_create_mui_menu_table.php | backend/migrations/m251207_100542_create_mui_menu_table.php | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%mui_menu}}`.
*/
class m251207_100542_create_mui_menu_table extends Migration
{
/**
* {@inheritdoc}
*/
public function up()
{
$this->createTable('{{%mui_menu}}', [
'id' => $this->primaryKey(),
'label' => $this->string(255... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250921_104021_delete_unused_sysconfig_keys.php | backend/migrations/m250921_104021_delete_unused_sysconfig_keys.php | <?php
use yii\db\Migration;
class m250921_104021_delete_unused_sysconfig_keys extends Migration
{
public $delkeys = [
'join_team_with_token',
'strict_activation',
'registerForm_academic',
'registerForm_fullname',
'patreon_menu',
'quick_activation',
'award_points',
];
/**
* {@inhe... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251107_082209_update_procedure_player_maintenance_use_index.php | backend/migrations/m251107_082209_update_procedure_player_maintenance_use_index.php | <?php
use yii\db\Migration;
class m251107_082209_update_procedure_player_maintenance_use_index extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF EXISTS {{%player_maintenance}}";
public $CREATE_SQL="CREATE PROCEDURE {{%player_maintenance}}()
BEGIN
DECLARE player_require_approval,player_delete_inactive_af... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251215_105113_create_event_ws_token_expiration.php | backend/migrations/m251215_105113_create_event_ws_token_expiration.php | <?php
use yii\db\Migration;
class m251215_105113_create_event_ws_token_expiration extends Migration
{
public $DROP_SQL = "DROP EVENT IF EXISTS {{%ev_ws_token_expiration}}";
public $CREATE_SQL = "CREATE EVENT {{%ev_ws_token_expiration}} ON SCHEDULE EVERY 10 MINUTE ON COMPLETION PRESERVE ENABLE DO
BEGIN
DEL... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250818_191857_update_player_treasure_check_findings_after_insert_trigger.php | backend/migrations/m250818_191857_update_player_treasure_check_findings_after_insert_trigger.php | <?php
use yii\db\Migration;
class m250818_191857_update_player_treasure_check_findings_after_insert_trigger extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_player_treasure}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_player_treasure}} AFTER INSERT ON {{%player_treasure}} FOR EACH ROW
thisBe... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250914_091828_create_procedure_get_player_networks.php | backend/migrations/m250914_091828_create_procedure_get_player_networks.php | <?php
use yii\db\Migration;
class m250914_091828_create_procedure_get_player_networks extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF EXISTS {{%get_player_pf_networks}}";
public $CREATE_SQL="CREATE PROCEDURE {{%get_player_pf_networks}}(IN usid INT)
BEGIN
SELECT codename as netname FROM network WHERE... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250928_133214_update_trigger_after_update_on_player_last_table.php | backend/migrations/m250928_133214_update_trigger_after_update_on_player_last_table.php | <?php
use yii\db\Migration;
class m250928_133214_update_trigger_after_update_on_player_last_table extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tau_player_last}}";
public $CREATE_SQL="CREATE TRIGGER {{%tau_player_last}} AFTER UPDATE ON {{%player_last}} FOR EACH ROW
thisBegin:BEGIN
IF (@TRIGG... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251104_084144_update_trigger_after_update_on_player_table.php | backend/migrations/m251104_084144_update_trigger_after_update_on_player_table.php | <?php
use yii\db\Migration;
class m251104_084144_update_trigger_after_update_on_player_table extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tau_player}}";
public $CREATE_SQL="CREATE TRIGGER {{%tau_player}} AFTER UPDATE ON {{%player}} FOR EACH ROW
thisBegin:BEGIN
DECLARE ltitle VARCHAR(30) DEF... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250903_214032_update_trigger_after_delete_on_stream.php | backend/migrations/m250903_214032_update_trigger_after_delete_on_stream.php | <?php
use yii\db\Migration;
class m250903_214032_update_trigger_after_delete_on_stream extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tad_stream}}";
public $CREATE_SQL="CREATE TRIGGER {{%tad_stream}} AFTER DELETE ON {{%stream}} FOR EACH ROW
thisBegin:BEGIN
IF (@TRIGGER_CHECKS = FALSE) THEN
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250826_170248_update_procedure_repopulate_team_stream.php | backend/migrations/m250826_170248_update_procedure_repopulate_team_stream.php | <?php
use yii\db\Migration;
class m250826_170248_update_procedure_repopulate_team_stream extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF EXISTS {{%repopulate_team_stream}}";
public $CREATE_SQL="CREATE PROCEDURE {{%repopulate_team_stream}}(IN tid INT)
BEGIN
DECLARE `_rollback` BOOL DEFAULT false;
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251112_130505_add_dashboard_news_url_route.php | backend/migrations/m251112_130505_add_dashboard_news_url_route.php | <?php
use yii\db\Migration;
class m251112_130505_add_dashboard_news_url_route extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert('url_route', ['source' => 'dashboard/news/<id:\d+>', 'destination' => 'dashboard/news', 'weight' => 115],true);
}
/**
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250903_213807_perform_team_repopulation.php | backend/migrations/m250903_213807_perform_team_repopulation.php | <?php
use yii\db\Migration;
class m250903_213807_perform_team_repopulation extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->db->createCommand("CALL repopulate_all_team_streams()")->execute();
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "m25... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250709_112833_update_tai_player_treasure_remove_headshot_stream_msg.php | backend/migrations/m250709_112833_update_tai_player_treasure_remove_headshot_stream_msg.php | <?php
use yii\db\Migration;
class m250709_112833_update_tai_player_treasure_remove_headshot_stream_msg extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_player_treasure}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_player_treasure}} AFTER INSERT ON {{%player_treasure}} FOR EACH ROW
thisBegin:B... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250826_155619_create_procedure_repopulate_all_team_streams.php | backend/migrations/m250826_155619_create_procedure_repopulate_all_team_streams.php | <?php
use yii\db\Migration;
class m250826_155619_create_procedure_repopulate_all_team_streams extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF EXISTS {{%repopulate_all_team_streams}}";
public $CREATE_SQL="CREATE PROCEDURE {{%repopulate_all_team_streams}}()
BEGIN
DECLARE done INT DEFAULT 0;
DECLAR... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250818_191856_create_abuser_table.php | backend/migrations/m250818_191856_create_abuser_table.php | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%abuser}}`.
* Has foreign keys to the tables:
*
* - `{{%player}}`
*/
class m250818_191856_create_abuser_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%abuser}}', [
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251111_095121_update_trigger_after_insert_on_player_target_help_add_check.php | backend/migrations/m251111_095121_update_trigger_after_insert_on_player_target_help_add_check.php | <?php
use yii\db\Migration;
class m251111_095121_update_trigger_after_insert_on_player_target_help_add_check extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_player_target_help}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_player_target_help}} AFTER INSERT ON {{%player_target_help}} FOR EACH RO... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250823_192525_create_trigger_after_update_on_headshot_table.php | backend/migrations/m250823_192525_create_trigger_after_update_on_headshot_table.php | <?php
use yii\db\Migration;
class m250823_192525_create_trigger_after_update_on_headshot_table extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tau_headshot}}";
public $CREATE_SQL="CREATE TRIGGER {{%tau_headshot}} AFTER UPDATE ON {{%headshot}} FOR EACH ROW
thisBegin:BEGIN
IF (@TRIGGER_CHECKS = ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250903_211650_update_procedure_repopulate_team_stream.php | backend/migrations/m250903_211650_update_procedure_repopulate_team_stream.php | <?php
use yii\db\Migration;
class m250903_211650_update_procedure_repopulate_team_stream extends Migration
{
public $DROP_SQL="DROP PROCEDURE IF EXISTS {{%repopulate_team_stream}}";
public $CREATE_SQL="CREATE PROCEDURE {{%repopulate_team_stream}}(IN tid INT)
BEGIN
DECLARE `_rollback` BOOL DEFAULT false;
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251125_095103_create_private_network_target_table.php | backend/migrations/m251125_095103_create_private_network_target_table.php | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%private_network_target}}`.
* Has foreign keys to the tables:
*
* - `{{%private_network}}`
* - `{{%target}}`
*/
class m251125_095103_create_private_network_target_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp(... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251126_122227_add_private_network_url_route.php | backend/migrations/m251126_122227_add_private_network_url_route.php | <?php
use yii\db\Migration;
class m251126_122227_add_private_network_url_route extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert('url_route', ['source' => 'network/private/<id:\d+>', 'destination' => 'network/private/view', 'weight' => 631], true);
$this->upsert('... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251214_115824_create_ws_token_table.php | backend/migrations/m251214_115824_create_ws_token_table.php | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%ws_token}}`.
*/
class m251214_115824_create_ws_token_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%ws_token}}', [
'token' => 'VARBINARY(32) PRIMARY KEY',
'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/backend/migrations/m241110_214630_from_v0_25_0_to_v1_0_0.php | backend/migrations/m241110_214630_from_v0_25_0_to_v1_0_0.php | <?php
use yii\db\Migration;
/**
* Class m241110_214630_from_v0_25_0_to_v1_0_0
*/
class m241110_214630_from_v0_25_0_to_v1_0_0 extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$is_existing=$this->db->createCommand("SELECT COUNT(*) FROM init_data")->queryScalar();
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250709_112826_update_tai_player_finding_remove_headshot_stream_msg.php | backend/migrations/m250709_112826_update_tai_player_finding_remove_headshot_stream_msg.php | <?php
use yii\db\Migration;
class m250709_112826_update_tai_player_finding_remove_headshot_stream_msg extends Migration
{
public $DROP_SQL="DROP TRIGGER IF EXISTS {{%tai_player_finding}}";
public $CREATE_SQL="CREATE TRIGGER {{%tai_player_finding}} AFTER INSERT ON {{%player_finding}} FOR EACH ROW
thisBegin:BEGIN... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250709_112001_add_first_headshot_points_column_to_target_table.php | backend/migrations/m250709_112001_add_first_headshot_points_column_to_target_table.php | <?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%target}}`.
*/
class m250709_112001_add_first_headshot_points_column_to_target_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%target}}', 'first_headshot_points', $this... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m251123_081343_add_subscription_perk_url_route.php | backend/migrations/m251123_081343_add_subscription_perk_url_route.php | <?php
use yii\db\Migration;
class m251123_081343_add_subscription_perk_url_route extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert('url_route', ['source' => 'subscription/perk/configure/<id>', 'destination' => 'subscription/perk/configure', 'weight' => 725], true);
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations/m250709_112000_add_headshot_points_column_to_target_table.php | backend/migrations/m250709_112000_add_headshot_points_column_to_target_table.php | <?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%target}}`.
*/
class m250709_112000_add_headshot_points_column_to_target_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%target}}', 'headshot_points', $this->integer()-... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/JumpToWidget.php | backend/widgets/JumpToWidget.php | <?php
namespace app\widgets;
use yii\jui\AutoComplete;
use yii\helpers\Url;
use yii\web\JsExpression;
class JumpToWidget extends \yii\base\Widget
{
/** @var string Input name */
public $name = 'jumpto';
/** @var string Placeholder text */
public $placeholder = '🔍 Jump to...';
/** @var string|ar... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/DbMenuWidget.php | backend/widgets/DbMenuWidget.php | <?php
namespace app\widgets;
use Yii;
use yii\base\Widget;
use app\models\DbMenu;
use yii\helpers\Html;
/**
* DbMenuWidget
*
* Renders a navigation menu based on records stored in the DbMenu table.
* Menu items are built recursively, filtered by user visibility rules,
* and marked as active based on the current... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/NotifyButton.php | backend/widgets/NotifyButton.php | <?php
namespace app\widgets;
use yii\base\Widget;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap5\Modal;
use yii\web\JsExpression;
class NotifyButton extends Widget
{
public $url; // URL to load via AJAX
public $label = '<i class="fas fa-paper-plane"></i> Notify';
public $title = 'S... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/ProfileLink.php | backend/widgets/ProfileLink.php | <?php
namespace app\widgets;
use Yii;
use app\modules\frontend\models\Profile;
/**
* Profile Link widget renders link to a player profile based on one of:
* email, profile_id, player_id, username
* Requires at least one of the keys to be provided.
*
* @author Pantelis Roditis <proditis@echothrust.com>
*/
class... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/BooleanTransform.php | backend/widgets/BooleanTransform.php | <?php
namespace app\widgets;
/**
* Base class that performs simple html transformations for boolean values.
*/
class BooleanTransform
{
/**
* Convert boolean value to checkmark or X
* @param mixed $val
* @return string
*/
public static function toCheck($val)
{
if($val===true || $val===1 || $val... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/Alert.php | backend/widgets/Alert.php | <?php
namespace app\widgets;
use Yii;
/**
* Alert widget renders a message from session flash. All flash messages are displayed
* in the sequence they were assigned using setFlash. You can set message as following:
*
* ```php
* Yii::$app->session->setFlash('error', 'This is the message');
* Yii::$app->session->... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/sleifer/autocompleteAjax/ActiveAssets.php | backend/widgets/sleifer/autocompleteAjax/ActiveAssets.php | <?php
namespace app\widgets\sleifer\autocompleteAjax;
use \yii\web\AssetBundle;
/**
* @author Ismael Sleifer <ismaelsleifer@gmail.com>
*/
class ActiveAssets extends AssetBundle
{
public $sourcePath = '@app/widgets/sleifer/autocompleteAjax/assets';
public $js = [
];
public $depends = [
'yii\web\JqueryAsset'... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/sleifer/autocompleteAjax/AutocompleteAjax.php | backend/widgets/sleifer/autocompleteAjax/AutocompleteAjax.php | <?php
namespace app\widgets\sleifer\autocompleteAjax;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\InputWidget;
use yii\helpers\BaseHtml;
class AutocompleteAjax extends InputWidget
{
public $startQuery = true;
public $multiple = false;
public $url = [];
public $options = [];
public ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/statscard/StatsCard.php | backend/widgets/statscard/StatsCard.php | <?php
namespace app\widgets\statscard;
use Yii;
use yii\helpers\Html;
/**
* Render a stats card widget
*
* @author Pantelis Roditis <proditis@echothrust.com>
*/
class StatsCard extends \yii\bootstrap5\Widget
{
public $icon;
public $color;
public $today;
public $yesterday;
public $total;
public $title... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/widgets/statscard/StatsCardModel.php | backend/widgets/statscard/StatsCardModel.php | <?php
namespace app\widgets\statscard;
use yii\base\UserException;
/**
* Render a stats card widget based on a modelClass
*
* @author Pantelis Roditis <proditis@echothrust.com>
*/
class StatsCardModel extends StatsCard
{
public $modelClass;
public $field;
public function init(): void
{
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/backend/widgets/statscard/views/_today_yesterday.php | backend/widgets/statscard/views/_today_yesterday.php | <div class="card card-stats mb-4 mb-xl-0">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0"><?= $title ?></h5>
<span class="h2 font-weight-bold mb-0"><?= $total ?></span>
</div>
<div class="col-auto">
<div c... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/assets/AppAsset.php | backend/assets/AppAsset.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\assets;
use yii\web\AssetBundle;
/**
* Main application asset bundle.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset ex... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m220102_214745_populate_url_routes.php | backend/migrations-init/m220102_214745_populate_url_routes.php | <?php
use yii\db\Migration;
/**
* Class m220102_214745_populate_url_routes
*/
class m220102_214745_populate_url_routes extends Migration
{
public $url_rules = [
'login' => 'site/login',
'logout' => 'site/logout',
'register' => 'site/register',
'request-password-reset' => 'site/request-password-res... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m230110_205547_create_terms_and_conditions_page.php | backend/migrations-init/m230110_205547_create_terms_and_conditions_page.php | <?php
use yii\db\Migration;
/**
* Class m230110_205547_create_terms_and_conditions_page
*/
class m230110_205547_create_terms_and_conditions_page extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$pages=intval($this->db->createCommand("SELECT count(*) FROM pages WHER... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m200309_081940_populate_countries.php | backend/migrations-init/m200309_081940_populate_countries.php | <?php
use yii\db\Migration;
/**
* Class m200309_081940_populate_countries
*/
class m200309_081940_populate_countries extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$CREATE_SQL="INSERT IGNORE INTO country VALUES ('UNK', 'Not set');
INSERT IGNORE INTO country VALUES ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m231101_181938_add_default_instructions.php | backend/migrations-init/m231101_181938_add_default_instructions.php | <?php
use yii\db\Migration;
/**
* Class m231101_181938_add_default_instructions
*/
class m231101_181938_add_default_instructions extends Migration
{
public $entries=[
['title'=>'Connecting to the infrastructure','player_type'=>'offense', 'message'=>"<p>In order to connect to the infrastructure and be ab... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m220109_124642_populate_vpn_template.php | backend/migrations-init/m220109_124642_populate_vpn_template.php | <?php
use yii\db\Migration;
/**
* Class m220109_124642_populate_vpn_template
*/
class m220109_124642_populate_vpn_template extends Migration
{
public $template=[
'name'=> 'echoCTF',
'filename'=> 'echoCTF.ovpn',
'description' =>'echoCTF.RED OpenVPN client configuration',
'active' =>1,
'v... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m200309_094731_populate_hints.php | backend/migrations-init/m200309_094731_populate_hints.php | <?php
use yii\db\Migration;
/**
* Class m200309_094731_populate_hints
*/
class m200309_094731_populate_hints extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert("hint",['id'=>-1,'title'=>'Welcome to the gig']);
}
/**
* {@inheritdoc}
*/
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m251207_102327_populate_mui_menu.php | backend/migrations-init/m251207_102327_populate_mui_menu.php | <?php
use yii\db\Migration;
class m251207_102327_populate_mui_menu extends Migration
{
public $items = [
[
'label' => '<i class="bi bi-globe2"></i> Content',
'url' => ['/content/default/index'],
'icon' => 'fas fa-money-check-alt',
'visibility' => 'admin',
'items' => [
['lab... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m230110_205525_create_privacy_policy_page.php | backend/migrations-init/m230110_205525_create_privacy_policy_page.php | <?php
use yii\db\Migration;
/**
* Class m230110_205525_create_privacy_policy_page
*/
class m230110_205525_create_privacy_policy_page extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$pages=intval($this->db->createCommand("SELECT count(*) FROM pages WHERE id=2")->qu... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m241108_100648_populate_default_sysconfig_keys.php | backend/migrations-init/m241108_100648_populate_default_sysconfig_keys.php | <?php
use yii\db\Migration;
/**
* Class m241108_100648_populate_default_sysconfig_keys
*/
class m241108_100648_populate_default_sysconfig_keys extends Migration
{
public $keys = [
'approved_avatar'=>1,
'avatar_robohash_set'=>'set1',
'challenge_home'=>'@web/uploads',
'country_rankings'=>1,
'das... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m200309_075759_populate_levels.php | backend/migrations-init/m200309_075759_populate_levels.php | <?php
use yii\db\Migration;
/**
* Class m200309_075759_populate_levels
*/
class m200309_075759_populate_levels extends Migration
{
public $experiences = [
['name' => 'New', 'description' => 'User just started', 'icon' => 'default.png'],
['name' => 'Securitas', 'description' => 'test', 'icon' => 'default.p... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m231101_181919_add_default_rules.php | backend/migrations-init/m231101_181919_add_default_rules.php | <?php
use yii\db\Migration;
/**
* Class m231101_181919_add_default_rules
*/
class m231101_181919_add_default_rules extends Migration
{
public $entries=[
['title'=>'Respect the moderators and other participants','player_type'=>'offense','message'=>"Other participants and the moderators are not part of th... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m200309_082230_populate_avatars.php | backend/migrations-init/m200309_082230_populate_avatars.php | <?php
use yii\db\Migration;
/**
* Class m200309_082230_populate_avatars
*/
class m200309_082230_populate_avatars extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$CREATE_SQL="INSERT IGNORE INTO avatar value ('256_10.png'),('256_11.png'),('256_12.png'),('256_13.png'),... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m231101_182034_add_default_faq.php | backend/migrations-init/m231101_182034_add_default_faq.php | <?php
use yii\db\Migration;
/**
* Class m231101_182034_add_default_faq
*/
class m231101_182034_add_default_faq extends Migration
{
public $entries=[
['title'=>'How many restarts are allowed?','body'=>"<p>Every user is allowed 10 restart requests per day. User requests are added to a queue which is proce... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m220619_232218_add_default_layout_overrides.php | backend/migrations-init/m220619_232218_add_default_layout_overrides.php | <?php
use yii\db\Migration;
/**
* Class m220619_232218_add_default_layout_overrides
*/
class m220619_232218_add_default_layout_overrides extends Migration
{
public $events=[
[
'name' => 'echoCTF Birthday',
'route' => '',
'player_id' => '',
'guest' => 0,
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m251218_101302_add_ws_token_servers_token.php | backend/migrations-init/m251218_101302_add_ws_token_servers_token.php | <?php
use yii\db\Migration;
class m251218_101302_add_ws_token_servers_token extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->upsert('ws_token',[
'token'=>'server123token',
'subject_id'=>'server-publisher',
'is_server'=>1,
'expires... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/migrations-init/m211204_005430_load_default_email_templates.php | backend/migrations-init/m211204_005430_load_default_email_templates.php | <?php
use yii\db\Migration;
/**
* Class m211204_005430_load_default_email_templates
*/
class m211204_005430_load_default_email_templates extends Migration
{
public $TPL=[
['name'=>'emailChangeVerify','title'=>"emailChangeVerify",'txt'=>'<?php use yii\helpers\Html; ?>
Hello,
You just requested that this email... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modules/content/Module.php | backend/modules/content/Module.php | <?php
namespace app\modules\content;
/**
* content module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = 'app\modules\content\controllers';
/**
* {@inheritdoc}
*/
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/backend/modules/content/controllers/CreditsController.php | backend/modules/content/controllers/CreditsController.php | <?php
namespace app\modules\content\controllers;
use Yii;
use app\modules\content\models\Credits;
use app\modules\content\models\CreditsSearch;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
/**
* CreditsController implements the CRUD actions for Credits model.
*/
class... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modules/content/controllers/EmailTemplateController.php | backend/modules/content/controllers/EmailTemplateController.php | <?php
namespace app\modules\content\controllers;
use Yii;
use app\modules\content\models\EmailTemplate;
use app\modules\content\models\EmailTemplateSearch;
use app\modules\frontend\models\Player;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
/**
* EmailTemplateControlle... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modules/content/controllers/RuleController.php | backend/modules/content/controllers/RuleController.php | <?php
namespace app\modules\content\controllers;
use Yii;
use app\modules\content\models\Rule;
use app\modules\content\models\RuleSearch;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
/**
* RuleController implements the CRUD actions for Rule model.
*/
class RuleControl... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modules/content/controllers/InstructionController.php | backend/modules/content/controllers/InstructionController.php | <?php
namespace app\modules\content\controllers;
use Yii;
use app\modules\content\models\Instruction;
use app\modules\content\models\InstructionSearch;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
/**
* InstructionController implements the CRUD actions for Instruction ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/backend/modules/content/controllers/DefaultController.php | backend/modules/content/controllers/DefaultController.php | <?php
namespace app\modules\content\controllers;
use Yii;
use yii\filters\VerbFilter;
use app\modules\settings\models\Sysconfig;
use yii\helpers\ArrayHelper;
/**
* Default controller for the `content` module
*/
class DefaultController extends \app\components\BaseController
{
/**
* {@inheritdoc}
*/
publ... | 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.