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/models/News.php | frontend/models/News.php | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "news".
*
* @property int $id
* @property string|null $title
* @property string|null $body
* @property string|null $category
* @property string|null $created_at
* @property string|null $updated_at
*/
class News extends \app\models\... | 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/PlayerTokenQuery.php | frontend/models/PlayerTokenQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerToken]].
*
* @see PlayerToken
*/
class PlayerTokenQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return PlayerToken[]|... | 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/WsTokenQuery.php | frontend/models/WsTokenQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[WsToken]].
*
* @see WsToken
*/
class WsTokenQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return WsToken[]|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/PlayerRankQuery.php | frontend/models/PlayerRankQuery.php | <?php
namespace app\models;
/**
* This is the ActiveQuery class for [[PlayerScore]].
*
* @see PlayerScore
*/
class PlayerRankQuery extends \yii\db\ActiveQuery
{
public function academic($academic=false)
{
$this->joinWith('player');
if(\Yii::$app->sys->academic_grouping!==false)
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/forms/ResetPasswordForm.php | frontend/models/forms/ResetPasswordForm.php | <?php
namespace app\models\forms;
use yii\base\InvalidArgumentException;
use yii\base\Model;
use app\models\Player;
use yii\behaviors\AttributeTypecastBehavior;
/**
* Password reset form
* @property Player|null $player
*/
class ResetPasswordForm extends Model
{
public $password;
/**
* @var \app\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/forms/PasswordResetRequestForm.php | frontend/models/forms/PasswordResetRequestForm.php | <?php
namespace app\models\forms;
use Yii;
use yii\base\Model;
use app\models\Player;
use yii\behaviors\AttributeTypecastBehavior;
/**
* Password reset request form
*/
class PasswordResetRequestForm extends Model
{
public $email;
public $captcha;
/**
* {@inheritdoc}
*/
public function ru... | 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/forms/LoginForm.php | frontend/models/forms/LoginForm.php | <?php
namespace app\models\forms;
use Yii;
use yii\base\Model;
use app\models\Player;
use yii\behaviors\AttributeTypecastBehavior;
/**
* LoginForm is the model behind the login form.
*
* @property Player|null $player This property is read-only.
*
*/
class LoginForm extends Model
{
public $username;
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/forms/SettingsForm.php | frontend/models/forms/SettingsForm.php | <?php
namespace app\models\forms;
use Yii;
use yii\base\Model;
use app\models\Player;
use yii\behaviors\AttributeTypecastBehavior;
/**
* LoginForm is the model behind the login form.
*
* @property Player|null $player The player model we will update after validation
* @property string $new_password The new passwo... | 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/forms/ResendVerificationEmailForm.php | frontend/models/forms/ResendVerificationEmailForm.php | <?php
namespace app\models\forms;
use Yii;
use app\models\Player;
use yii\base\Model;
use yii\behaviors\AttributeTypecastBehavior;
class ResendVerificationEmailForm extends Model
{
/**
* @var string
*/
public $email;
public $captcha;
/**
* {@inheritdoc}
*/
public function ru... | 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/forms/VerifyEmailForm.php | frontend/models/forms/VerifyEmailForm.php | <?php
namespace app\models\forms;
use app\models\Player;
use yii\base\InvalidArgumentException;
use yii\base\Model;
use yii\behaviors\AttributeTypecastBehavior;
class VerifyEmailForm extends Model
{
/**
* @var string
*/
public $token;
/**
* @var Player
*/
private $_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/forms/SignupForm.php | frontend/models/forms/SignupForm.php | <?php
namespace app\models\forms;
use Yii;
use yii\base\Model;
use app\models\Player;
use app\models\PlayerSsl;
use app\models\PlayerRelation;
use yii\behaviors\AttributeTypecastBehavior;
/**
* Signup form
*/
class SignupForm extends Model
{
public $username;
public $email;
public $password;
public $terms_... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/views/sitemap.php | frontend/views/sitemap.php | <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc><?=$BASEURL?></loc>
<lastmod>2005-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<!-- TARGETS -->
<?php foreach($targets as $target):?>
<url>
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Card.php | frontend/widgets/Card.php | <?php
namespace app\widgets;
use yii\helpers\Html;
/**
* This is just an example.
* @property string $defaultHeader
*/
class Card extends \yii\base\Widget
{
/*
* boolean/string Card header type
* true | false | header-icon | header-text | img-top | img-bottom | chart
*/
public $header=true;... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/ProfileActionsWidget.php | frontend/widgets/ProfileActionsWidget.php | <?php
/**
* Profile Actions Widget
*/
namespace app\widgets;
use Yii;
use yii\base\Widget;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ButtonDropdown;
class ProfileActionsWidget extends Widget
{
public $profile;
public function init()
{
parent::init();
}
public function run()
{
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Obfuscator.php | frontend/widgets/Obfuscator.php | <?php
/**
* Widget taken from
* https://github.com/Pfarrer/yii2-email-obfuscator
*/
namespace app\widgets;
use \yii\base\Widget;
use \yii\helpers\Html;
use \yii\web\HttpException;
use \yii\validators\EmailValidator;
class Obfuscator extends Widget {
public $email;
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/widgets/HintsWidget.php | frontend/widgets/HintsWidget.php | <?php
/**
* Hints widget
*/
namespace app\widgets;
use yii\base\Widget;
use yii\helpers\Html;
use yii\helpers\Url;
class HintsWidget extends Widget
{
public function init()
{
parent::init();
}
public function run()
{
$links=[];
$pending=false;
$playerHints=\app\models\... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Menu.php | frontend/widgets/Menu.php | <?php
namespace app\widgets;
use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
use yii\helpers\Html;
/**
* Class Menu
* Theme menu widget.
*/
class Menu extends MenuBase
{
/**
* @inheritdoc
*/
public $linkTemplate='<a href="{url}">{icon} {label}</a>';
public $submenuTemplate="\n<ul class='nav tr... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/MenuBase.php | frontend/widgets/MenuBase.php | <?php
namespace app\widgets;
use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
use yii\helpers\Html;
/**
* Class Menu
* Theme menu widget.
*/
class MenuBase extends \yii\widgets\Menu
{
/**
* Checks if menu item should be visible
*
* @param array $item[]
* @return boolean
*/
protected func... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/NotificationsWidget.php | frontend/widgets/NotificationsWidget.php | <?php
/**
* Notifications widget
*/
namespace app\widgets;
use yii\base\Widget;
use yii\helpers\Html;
class NotificationsWidget extends Widget
{
public function init()
{
parent::init();
}
public function run()
{
$links=[];
$notifications=\app\models\Notification::find()->my(... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Twitter.php | frontend/widgets/Twitter.php | <?php
/**
* Twitter widget
*
* use app\widgets\Twitter;
* Twitter::widget([
* 'message'=>'Message to tweet',
* 'url'=>'url to include to tweet',
* 'related'=>'related twitter account',
* 'linkOptions'=>['class'=>'TweetThis'],
* 'icon'=>'<i class="fab fa-twitter-round"></i>'
* ]);
*
*/
namespa... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Noti.php | frontend/widgets/Noti.php | <?php
namespace app\widgets;
use Yii;
use yii\bootstrap\Widget;
use yii\helpers\ArrayHelper;
use yii\helpers\Json;
class Noti extends Widget
{
/**
* @var array the alert types configuration for the flash messages.
* This array is setup as $key => $value, where:
* - $key is the name of the session fl... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/Alert.php | frontend/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/frontend/widgets/vote/VoteWidgetAsset.php | frontend/widgets/vote/VoteWidgetAsset.php | <?php
namespace app\widgets\vote;
use yii\web\AssetBundle;
class VoteWidgetAsset extends AssetBundle
{
public $js=[
];
public $css=[
'css/bootstrap-select.min.css',
];
// $this->registerJs('$.fn.selectpicker.Constructor.BootstrapVersion = "4";');
public $depends=[];
public function 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/widgets/vote/VoteWidget.php | frontend/widgets/vote/VoteWidget.php | <?php
/**
* Vote widget
* sample usage:
*
* use app\components\widgets\vote\VoteWidget;
* $fakedModel = (object)['title'=> 'A Product', ];
* echo VoteWidget::widget(['model' => $fakedModel]);
*/
namespace app\widgets\vote;
use yii\base\Widget;
use yii\helpers\Html;
class VoteWidget extends Widget
{
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/widgets/vote/views/_vote.php | frontend/widgets/vote/views/_vote.php | <?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
$this->registerJs(
'$("#rating select").on("change", function(event, jqXHR, settings) {
var form = $("#rating");
if(form.find(".has-error").length) {
return false;
}
$.ajax({
url: form.attr("action"),
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/leaderboard/LeaderboardAsset.php | frontend/widgets/leaderboard/LeaderboardAsset.php | <?php
namespace app\widgets\leaderboard;
use yii\web\AssetBundle;
class LeaderboardAsset extends AssetBundle
{
public $js=[
];
public $css=[
];
public $depends=[
];
public function init()
{
// Tell AssetBundle where the assets files are
//$this->sourcePath = __DIR__ ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/leaderboard/Leaderboard.php | frontend/widgets/leaderboard/Leaderboard.php | <?php
/**
* Leaderboard widget
*/
namespace app\widgets\leaderboard;
use Yii;
use yii\base\Widget;
use yii\widgets\ListView;
use yii\helpers\Html;
use yii\data\ActiveDataProvider;
use app\models\PlayerScore;
use app\models\PlayerRank;
use app\models\Profile;
class Leaderboard extends Widget
{
public $divID = 'L... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/leaderboard/views/_score.php | frontend/widgets/leaderboard/views/_score.php | <?php
use app\components\formatters\RankFormatter;
use yii\helpers\Html;
?>
<div class="leader <?=intval($player_id) === intval($model->player_id) ? "bg-dark text-primary" : ""?>" >
<div class="border"></div>
<div class="leader-wrap">
<div class="leader-place"><?=$model->ordinalPlace;?>.</div>
<div... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/leaderboard/views/leaderboard.php | frontend/widgets/leaderboard/views/leaderboard.php | <?php
use yii\widgets\ListView;
echo ListView::widget([
'id'=>$divID,
'dataProvider' => $dataProvider,
'emptyText'=>'<div class="card-body"><b class="text-info">'.\Yii::t('app','No ranks exist at the moment...').'</b></div>',
'pager'=> [
'options'=>['id'=>$pagerID],
'firstPageLabel' => '<i c... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/targetcardactions/TargetCardActions.php | frontend/widgets/targetcardactions/TargetCardActions.php | <?php
namespace app\widgets\targetcardactions;
use Yii;
use yii\base\Widget;
use yii\helpers\Url;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
class TargetCardActions extends Widget
{
public $inline = false;
public $model;
public $identity;
public $htmlOptions = ['class' => 'card bg-dark solves'];
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/widgets/targetcardactions/TargetCardActionsAsset.php | frontend/widgets/targetcardactions/TargetCardActionsAsset.php | <?php
namespace app\widgets\targetcardactions;
use yii\web\AssetBundle;
class TargetCardActionsAsset extends AssetBundle
{
public $js=[
// 'js/votewidget.js'
];
public $css=[
// 'css/votewidget.css'
];
public $depends=[
'yii\web\JqueryAsset'
];
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/frontend/widgets/targetcardactions/views/_actions.php | frontend/widgets/targetcardactions/views/_actions.php | <?php
use yii\helpers\Html;
use yii\helpers\Url;
echo $spinlink;
?>
| php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/stream/StreamWidget.php | frontend/widgets/stream/StreamWidget.php | <?php
/**
* Vote widget
* sample usage:
*
* use app\components\widgets\vote\VoteWidget;
* $fakedModel = (object)['title'=> 'A Product', ];
* echo VoteWidget::widget(['model' => $fakedModel]);
*/
namespace app\widgets\stream;
use yii\base\Widget;
use yii\widgets\ListView;
use yii\helpers\Html;
use yii\data\... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/stream/StreamWidgetAsset.php | frontend/widgets/stream/StreamWidgetAsset.php | <?php
namespace app\widgets\stream;
use yii\web\AssetBundle;
class StreamWidgetAsset extends AssetBundle
{
public $js=[
];
public $css=[
];
public $depends=[
];
public function init()
{
// Tell AssetBundle where the assets files are
//$this->sourcePath = __DIR__ . "/... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/stream/views/_stream.php | frontend/widgets/stream/views/_stream.php | <?php
use yii\helpers\Html;
use app\widgets\Twitter;
?>
<div class="leader">
<div class="leader-wrap">
<div class="leader-name" style="margin-bottom: 0.3em">
<?=$model->formatted;?>, <?=$model->ts_ago?>
<?php $model->twitter=true; echo Twitter::widget(['message'=>\Yii::t('app','Hey check thi... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/stream/views/stream.php | frontend/widgets/stream/views/stream.php | <?php
use yii\widgets\ListView;
echo ListView::widget([
'id'=>$divID,
'options'=>$options,
'emptyText'=>'<div class="card-body"><b class="text-info">'.\Yii::t('app','No activity to report...').'</b></div>',
'dataProvider' => $dataProvider,
'pager'=>[
'class'=>'yii\bootstrap4\LinkPager',
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/solver/SolverWidget.php | frontend/widgets/solver/SolverWidget.php | <?php
/**
* Challenge Solver widget
*/
namespace app\widgets\solver;
use yii\base\Widget;
use yii\helpers\Html;
use app\components\ProfileVisibility as PV;
class SolverWidget extends Widget
{
public $challenge_id;
public $slice = 19;
public $htmlOptions = ['class' => 'card bg-dark solves'];
public functi... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/solver/SolverWidgetAsset.php | frontend/widgets/solver/SolverWidgetAsset.php | <?php
namespace app\widgets\solver;
use yii\web\AssetBundle;
class SolverWidgetAsset extends AssetBundle
{
public $js=[
// 'js/votewidget.js'
];
public $css=[
// 'css/votewidget.css'
];
public $depends=[
'yii\web\JqueryAsset'
];
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/frontend/widgets/solver/views/_card.php | frontend/widgets/solver/views/_card.php | <?php
use yii\helpers\Html;
?>
<div class="<?=$htmlOptions['class']?>">
<h4><i class="fas fa-tasks"></i> <?=count($solvers)>0? count($solvers)." " : ""?>Solvers <small>(newer first)</small></h4>
<div class="card-body table-responsive"><?php
if(!empty($solvers))
{
echo "<code>",implode(", ", array_slic... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/captcha/CaptchaAsset.php | frontend/widgets/captcha/CaptchaAsset.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\widgets\captcha;
use yii\web\AssetBundle;
/**
* This asset bundle provides the javascript files needed for the [[Captcha]] widget.
*
* @author Qiang ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/captcha/Captcha.php | frontend/widgets/captcha/Captcha.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\widgets\captcha;
use Yii;
use yii\base\InvalidConfigException;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\helpers\Url;
use yii\widgets\InputWidg... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/captcha/CaptchaAction.php | frontend/widgets/captcha/CaptchaAction.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\widgets\captcha;
use Yii;
use yii\base\Action;
use yii\base\InvalidConfigException;
use yii\helpers\Url;
use yii\web\Response;
/**
* CaptchaAction rend... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/captcha/CaptchaValidator.php | frontend/widgets/captcha/CaptchaValidator.php | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\widgets\captcha;
use Yii;
use yii\base\InvalidConfigException;
use yii\validators\ValidationAsset;
use yii\validators\Validator;
/**
* CaptchaValidator... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/target/TargetWidgetAsset.php | frontend/widgets/target/TargetWidgetAsset.php | <?php
namespace app\widgets\target;
use yii\web\AssetBundle;
class TargetWidgetAsset extends AssetBundle
{
public $js=[
];
public $css=[
];
public $depends=[
];
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/widgets/target/TargetWidget.php | frontend/widgets/target/TargetWidget.php | <?php
/**
* Vote widget
* sample usage:
*
* use app\components\widgets\vote\VoteWidget;
* $fakedModel = (object)['title'=> 'A Product', ];
* echo VoteWidget::widget(['model' => $fakedModel]);
*/
namespace app\widgets\target;
use yii\base\Widget;
use yii\data\ActiveDataProvider;
use app\modules\target\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/widgets/target/HeadshotsWidget.php | frontend/widgets/target/HeadshotsWidget.php | <?php
/**
* Target Headshots widget
*/
namespace app\widgets\target;
use yii\base\Widget;
use yii\helpers\Html;
use yii\helpers\Url;
use app\components\ProfileVisibility as PV;
class HeadshotsWidget extends Widget
{
public $target_id;
public function init()
{
parent::init();
}
public function run()... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/target/views/target.php | frontend/widgets/target/views/target.php | <?php
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;
use app\widgets\Twitter;
$this->registerJs(
"\$('#target-list abbr[rel=\"tooltip\"], .td-actions a[rel=\"tooltip\"]').tooltip({
trigger : 'hover',
container: '#target-list'
});
\$('#target-list abbr[data-toggle=\"tooltip\"], .td-act... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/target/views/_target_card.php | frontend/widgets/target/views/_target_card.php | <!-- //_target_card -->
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\widgets\Card;
use app\widgets\targetcardactions\TargetCardActions;
use app\modules\game\models\Headshot;
$model_ip=$model->ipoctet;
$display_ip=Html::a($model->ipoctet,$model->ipoctet,["class"=>'copy-to-clipboard text-dark text-bold','swa... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/widgets/target/views/target-list.php | frontend/widgets/target/views/target-list.php | <?php
use yii\widgets\ListView;
use yii\helpers\Html;
use yii\helpers\Url;
use app\widgets\Twitter;
?>
<div class="challenge-index">
<div class="body-content">
<h2><?=$TITLE?></h2>
<?=$CATEGORY?>
<?=
ListView::widget([
'options'=>['class'=>'list-view row'],
'itemOptions' => [
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/assets/AppAsset.php | frontend/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/frontend/assets/MaterialAssetConfig.php | frontend/assets/MaterialAssetConfig.php | <?php
namespace app\assets;
use Yii;
class MaterialAssetConfig
{
public static function sidebarColor()
{
/** @var Asset $bundle */
$bundle=Yii::$app->assetManager->getBundle('app\assets\MaterialAsset');
return $bundle->sidebarColor;
}
public static function sidebarBackground... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/assets/MaterialAsset.php | frontend/assets/MaterialAsset.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 MaterialAs... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/Module.php | frontend/modules/speedprogramming/Module.php | <?php
namespace app\modules\speedprogramming;
/**
* target module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = 'app\modules\speedprogramming\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/frontend/modules/speedprogramming/controllers/DefaultController.php | frontend/modules/speedprogramming/controllers/DefaultController.php | <?php
namespace app\modules\speedprogramming\controllers;
use Yii;
use yii\web\UploadedFile;
use yii\web\NotFoundHttpException;
use yii\data\ActiveDataProvider;
use yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
use app\models\Stream;
use app\modules\speedprogramming\models\SpeedForm;
use app\modules\speedpr... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/models/SpeedProblemSearch.php | frontend/modules/speedprogramming/models/SpeedProblemSearch.php | <?php
namespace app\modules\speedprogramming\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\speedprogramming\models\SpeedProblem;
/**
* SpeedProblemSearch represents the model behind the search form of `app\modules\speedprogramming\models\SpeedProblem`.
*/
class SpeedProblemSearch 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/modules/speedprogramming/models/SpeedForm.php | frontend/modules/speedprogramming/models/SpeedForm.php | <?php
namespace app\modules\speedprogramming\models;
use Yii;
use yii\base\Model;
use yii\web\UploadedFile;
class SpeedForm extends Model
{
public $language;
public $file;
public function rules()
{
return [
[['file'], 'file'],
// ['file', 'file', 'extensions' => ['c', ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/models/SpeedSolutionQuery.php | frontend/modules/speedprogramming/models/SpeedSolutionQuery.php | <?php
namespace app\modules\speedprogramming\models;
/**
* This is the ActiveQuery class for [[SpeedSolution]].
*
* @see SpeedSolution
*/
class SpeedSolutionQuery 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/modules/speedprogramming/models/SpeedSolution.php | frontend/modules/speedprogramming/models/SpeedSolution.php | <?php
namespace app\modules\speedprogramming\models;
use Yii;
use app\models\Player;
use app\modules\team\models\Team;
use app\modules\target\models\Target;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
/**
* This is the model class for table "speed_solution".
*
* @property int $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/modules/speedprogramming/models/SpeedProblemQuery.php | frontend/modules/speedprogramming/models/SpeedProblemQuery.php | <?php
namespace app\modules\speedprogramming\models;
/**
* This is the ActiveQuery class for [[SpeedProblem]].
*
* @see SpeedProblem
*/
class SpeedProblemQuery 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/modules/speedprogramming/models/SpeedProblem.php | frontend/modules/speedprogramming/models/SpeedProblem.php | <?php
namespace app\modules\speedprogramming\models;
use Yii;
/**
* This is the model class for table "speed_problem".
*
* @property int $id
* @property string|null $name
* @property string|null $description
* @property string|null $challenge_image
* @property string|null $validator_image
* @property string|... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/_speed.php | frontend/modules/speedprogramming/views/default/_speed.php | <?php
use app\widgets\Card;
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
use app\widgets\Twitter;
use app\modules\speedprogramming\models\SpeedSolution;
use yii\helpers\Markdown;
$this->registerJsFile('@web/js/plugins/bootstrap-selectpicker.min.js', ['depends' => ['app\assets\MaterialAsset'... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/_speed_form.php | frontend/modules/speedprogramming/views/default/_speed_form.php | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$form = ActiveForm::begin([
'id'=>'speedForm',
'action' => ['/speedprogramming/default/answer','id'=>$problem->id],
'method' => 'post',
'options' => [
'enctype' => 'multipart/form-data',
'... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/view.php | frontend/modules/speedprogramming/views/default/view.php | <?php
use yii\helpers\Html;
use yii\widgets\ListView;
use app\widgets\stream\StreamWidget as Stream;
$this->title = Yii::$app->sys->event_name . ' Problem: ' . $problem->name . ' #' . $problem->id;
//$this->_description=$problem->description;
//$this->_image = \yii\helpers\Url::to($problem->fullLogo, 'https');
$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/modules/speedprogramming/views/default/_speed_item.php | frontend/modules/speedprogramming/views/default/_speed_item.php | <?php
use yii\helpers\Html;
use yii\helpers\HtmlPurifier;
?>
<div class="speedItem">
<h4><?=$index+1?>. <?=Html::encode($model->player->username)?>, programming language: <?= Html::encode($model->language) ?>, status: <?= Html::encode($model->status) ?>, points: <?= Html::encode($model->points) ?></h4>
</div>
| php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/index.php | frontend/modules/speedprogramming/views/default/index.php | <?php
use yii\widgets\Pjax;
use app\widgets\Card;
use app\widgets\target\TargetWidget;
use app\widgets\leaderboard\Leaderboard;
use app\widgets\stream\StreamWidget as Stream;
use yii\widgets\ListView;
$this->_fluid = "-fluid";
$this->title = Yii::$app->sys->event_name . ' Speed programming';
$this->_description = Yii... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/_speed_grid.php | frontend/modules/speedprogramming/views/default/_speed_grid.php | <?php
use yii\widgets\ListView;
use yii\data\ActiveDataProvider;
use app\modules\speedprogramming\models\SpeedSolution;
$dataProvider = new ActiveDataProvider([
'query' => SpeedSolution::find()->where(['problem_id'=>$problem->id])->orderBy(['created_at'=>SORT_ASC]),
'pagination' => [
'pageSize' => 20,
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/speedprogramming/views/default/_problem_card.php | frontend/modules/speedprogramming/views/default/_problem_card.php | <?php
use app\widgets\Card;
use yii\helpers\Html;
use app\modules\game\models\Headshot;
switch ($model->difficulty) {
case 1:
$color = 'primary';
break;
case 2:
$color = 'warning';
break;
case 3:
$color = 'danger';
break;
default:
$color = 'primary';
}
$suffix = '';
?>
<div 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/modules/help/Module.php | frontend/modules/help/Module.php | <?php
namespace app\modules\help;
/**
* help module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace='app\modules\help\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/frontend/modules/help/controllers/CreditsController.php | frontend/modules/help/controllers/CreditsController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use yii\data\ActiveDataProvider;
use app\modules\help\models\Credits;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
class CreditsController extends \app\components\BaseController
{
public function behaviors()
{
$parent = paren... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/controllers/RuleController.php | frontend/modules/help/controllers/RuleController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use app\modules\help\models\Rule;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
/**
* RuleController implements the CRUD actions for Rule... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/controllers/InstructionController.php | frontend/modules/help/controllers/InstructionController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use app\modules\help\models\Instruction;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
/**
* InstructionController implements the CRUD a... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/controllers/DefaultController.php | frontend/modules/help/controllers/DefaultController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use app\modules\help\models\Faq;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
/**
* FaqController implements the CRUD actions for Faq mo... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/controllers/FaqController.php | frontend/modules/help/controllers/FaqController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use app\modules\help\models\Faq;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
/**
* FaqController implements the CRUD actions for Faq mo... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/controllers/ExperienceController.php | frontend/modules/help/controllers/ExperienceController.php | <?php
namespace app\modules\help\controllers;
use Yii;
use app\models\Experience;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use app\overloads\yii\filters\AccessControl;
/**
* FaqController implements the CRUD actions for Faq 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/modules/help/models/Faq.php | frontend/modules/help/models/Faq.php | <?php
namespace app\modules\help\models;
use Yii;
/**
* This is the model class for table "faq".
*
* @property int $id
* @property string|null $title
* @property string|null $body
* @property int|null $weight
*/
class Faq extends \app\models\ActiveRecordReadOnly
{
/**
* {@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/modules/help/models/FaqQuery.php | frontend/modules/help/models/FaqQuery.php | <?php
namespace app\modules\help\models;
/**
* This is the ActiveQuery class for [[Faq]].
*
* @see Faq
*/
class FaqQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Faq[]|array
*/
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/modules/help/models/RuleQuery.php | frontend/modules/help/models/RuleQuery.php | <?php
namespace app\modules\help\models;
/**
* This is the ActiveQuery class for [[Rule]].
*
* @see Rule
*/
class RuleQuery extends \yii\db\ActiveQuery
{
public function forPlayerType($player_type = "offense")
{
return $this->andWhere(['OR',['player_type'=>$player_type],['player_type'=>'both']]);
}
/... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/models/Credits.php | frontend/modules/help/models/Credits.php | <?php
namespace app\modules\help\models;
use Yii;
/**
* This is the model class for table "credits".
*
* @property int $id
* @property string $title
* @property string $body
* @property int $weight
*/
class Credits extends \app\models\ActiveRecordReadOnly
{
/**
* {@inheritdoc}
*/
public stat... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/models/Instruction.php | frontend/modules/help/models/Instruction.php | <?php
namespace app\modules\help\models;
use Yii;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "instruction".
*
* @property int $id
* @property string|null $title
* @property string|null $player_type
* @property string|null $message
* @property int $weight
* @property ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/help/models/Rule.php | frontend/modules/help/models/Rule.php | <?php
namespace app\modules\help\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
use yii\behaviors\AttributeTypecastBehavior;
/**
* This is the model class for table "rule".
*
* @property int $id
* @property string $title
* @property string $player_type
* @property string $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/modules/tutorial/Module.php | frontend/modules/tutorial/Module.php | <?php
namespace app\modules\tutorial;
/**
* challenge module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace='app\modules\tutorial\controllers';
/**
* {@inheritdoc}
*/
public function init()
{
parent::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/modules/tutorial/controllers/DefaultController.php | frontend/modules/tutorial/controllers/DefaultController.php | <?php
namespace app\modules\tutorial\controllers;
use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ActiveDataProvider;
use app\overloads\yii\filters\AccessControl;
use app\modules\tutorial\models\Tutorial;
use app\modules\tutorial\models\TutorialTask;
use yi... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTaskSearch.php | frontend/modules/tutorial/models/TutorialTaskSearch.php | <?php
namespace app\modules\tutorial\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\tutorial\models\TutorialTask;
/**
* TutorialTaskSearch represents the model behind the search form of `app\modules\gameplay\models\TutorialTask`.
*/
class TutorialTaskSearch extends TutorialTask
{
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTaskDependencySearch.php | frontend/modules/tutorial/models/TutorialTaskDependencySearch.php | <?php
namespace app\modules\tutorial\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\tutorial\models\TutorialTaskDependency;
/**
* TutorialTaskDependencySearch represents the model behind the search form of `app\modules\tutorial\models\TutorialTaskDependency`.
*/
class TutorialTaskDepe... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTargetQuery.php | frontend/modules/tutorial/models/TutorialTargetQuery.php | <?php
namespace app\modules\tutorial\models;
/**
* This is the ActiveQuery class for [[TutorialTarget]].
*
* @see TutorialTarget
*/
class TutorialTargetQuery 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/modules/tutorial/models/TutorialTargetSearch.php | frontend/modules/tutorial/models/TutorialTargetSearch.php | <?php
namespace app\modules\tutorial\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\tutorial\models\TutorialTarget;
/**
* TutorialTargetSearch represents the model behind the search form of `app\modules\tutorial\models\TutorialTarget`.
*/
class TutorialTargetSearch extends TutorialTar... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialSearch.php | frontend/modules/tutorial/models/TutorialSearch.php | <?php
namespace app\modules\tutorial\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\modules\tutorial\models\Tutorial;
/**
* TutorialSearch represents the model behind the search form of `app\modules\tutorial\models\Tutorial`.
*/
class TutorialSearch extends Tutorial
{
/**
* {@inherit... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTaskDependencyQuery.php | frontend/modules/tutorial/models/TutorialTaskDependencyQuery.php | <?php
namespace app\modules\tutorial\models;
/**
* This is the ActiveQuery class for [[TutorialTaskDependency]].
*
* @see TutorialTaskDependency
*/
class TutorialTaskDependencyQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialQuery.php | frontend/modules/tutorial/models/TutorialQuery.php | <?php
namespace app\modules\tutorial\models;
/**
* This is the ActiveQuery class for [[Tutorial]].
*
* @see Tutorial
*/
class TutorialQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @return Tutori... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/Tutorial.php | frontend/modules/tutorial/models/Tutorial.php | <?php
namespace app\modules\tutorial\models;
use Yii;
use app\modules\target\models\Target;
/**
* This is the model class for table "tutorial".
*
* @property int $id
* @property string|null $title
* @property string|null $description
* @property string|null $created_at
* @property string|null $updated_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/modules/tutorial/models/TutorialTarget.php | frontend/modules/tutorial/models/TutorialTarget.php | <?php
namespace app\modules\tutorial\models;
use Yii;
use app\modules\target\models\Target;
/**
* This is the model class for table "tutorial_target".
*
* @property int $tutorial_id
* @property int $target_id
* @property int|null $weight
*
* @property Target $target
* @property Tutorial $tutorial
*/
class Tu... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTask.php | frontend/modules/tutorial/models/TutorialTask.php | <?php
namespace app\modules\tutorial\models;
use Yii;
/**
* This is the model class for table "tutorial_task".
*
* @property int $id
* @property int|null $tutorial_id
* @property string|null $title
* @property string|null $description
* @property int|null $points
* @property string|null $answer
* @property ... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/PlayerTutorialTaskQuery.php | frontend/modules/tutorial/models/PlayerTutorialTaskQuery.php | <?php
namespace app\modules\tutorial\models;
/**
* This is the ActiveQuery class for [[PlayerTutorialTask]].
*
* @see PlayerTutorialTask
*/
class PlayerTutorialTaskQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inh... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/PlayerTutorialTask.php | frontend/modules/tutorial/models/PlayerTutorialTask.php | <?php
namespace app\modules\tutorial\models;
use Yii;
use app\models\Player;
/**
* This is the model class for table "player_tutorial_task".
*
* @property int $player_id
* @property int $tutorial_task_dependency_id
* @property int $points
* @property string|null $created_at
* @property string|null $updated_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/modules/tutorial/models/TutorialTaskDependency.php | frontend/modules/tutorial/models/TutorialTaskDependency.php | <?php
namespace app\modules\tutorial\models;
use Yii;
use app\models\Player;
/**
* This is the model class for table "tutorial_task_dependency".
*
* @property int $id
* @property int|null $tutorial_task_id
* @property int $item_id
* @property string|null $item
*
* @property PlayerTutorialTask[] $playerTutori... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/tutorial/models/TutorialTaskQuery.php | frontend/modules/tutorial/models/TutorialTaskQuery.php | <?php
namespace app\modules\tutorial\models;
/**
* This is the ActiveQuery class for [[TutorialTask]].
*
* @see TutorialTask
*/
class TutorialTaskQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* {@inheritdoc}
* @r... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/subscription/Module.php | frontend/modules/subscription/Module.php | <?php
namespace app\modules\subscription;
use yii\base\BootstrapInterface;
use yii\helpers\ArrayHelper;
/**
* challenge module definition class
*/
class Module extends \yii\base\Module implements BootstrapInterface
{
public $prices;
public $priceIds;
/**
* {@inheritdoc}
*/
public $controllerNamespace... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/subscription/controllers/PerkController.php | frontend/modules/subscription/controllers/PerkController.php | <?php
namespace app\modules\subscription\controllers;
use Yii;
use yii\helpers\ArrayHelper;
use yii\data\ActiveDataProvider;
use yii\base\UserException;
use app\overloads\yii\filters\AccessControl;
use app\modules\target\models\Target;
use app\modules\network\models\PrivateNetworkTarget;
use app\modules\network\mo... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/subscription/controllers/DefaultController.php | frontend/modules/subscription/controllers/DefaultController.php | <?php
namespace app\modules\subscription\controllers;
use Yii;
use app\overloads\yii\filters\AccessControl;
use yii\helpers\ArrayHelper;
use yii\data\ActiveDataProvider;
use \app\modules\subscription\models\PlayerSubscription;
use \app\modules\subscription\models\PlayerPaymentHistory;
use \app\modules\subscription\m... | php | BSD-2-Clause | 842f644a0b15af85ba5ffda841b32b40121c3063 | 2026-01-05T04:18:44.767387Z | false |
echoCTF/echoCTF.RED | https://github.com/echoCTF/echoCTF.RED/blob/842f644a0b15af85ba5ffda841b32b40121c3063/frontend/modules/subscription/actions/WebhookRestAction.php | frontend/modules/subscription/actions/WebhookRestAction.php | <?php
namespace app\modules\subscription\actions;
use Yii;
use yii\data\ActiveDataProvider;
use yii\web\NotFoundHttpException;
use yii\db\Expression;
use app\models\Player;
use app\models\Notification;
use app\modules\subscription\models\PlayerSubscription;
use app\modules\subscription\models\Subscription;
use app\m... | 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.