This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* /system/controllers/auth/hooks/registration_validation.php */ | |
| class onAuthRegistrationValidation extends cmsAction { | |
| public function run($data){ | |
| list($errors, $user) = $data; | |
| if ($errors != []) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| # 1.Переменные и типы. | |
| // Переменные начинаются с символа $. | |
| // Затем идет буква или символа подчеркивания, за которым следует любое количество букв, | |
| // цифр или символов подчеркивания. | |
| // Логические значения нечувствительны к регистру | |
| $boolean = true; // или TRUE или True | |
| $boolean = false; // или FALSE или False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class backendSomecontroller extends cmsBackend { | |
| // Код backend'а | |
| public function actionDeleteComponent(){ | |
| $model = new cmsModel(); | |
| $record = $model->getItemByField('controllers', 'name', $this->name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class CrossZero { | |
| private $size; | |
| private $table; | |
| public const EMPTY = "-"; | |
| public const X = "x"; | |
| public const O = "o"; | |
| public function __construct(int $size = 3) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class cmsCacheFiles { | |
| private $cache_path; | |
| public function __construct($config) { | |
| $this->cache_path = $config->cache_path.'data/'; | |
| } | |
| public function set($key, $value, $ttl){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| class Xand0 { | |
| final char SIGN_X = 'x'; | |
| final char SIGN_O = 'o'; | |
| final char SIGN_EMPTY = '.'; | |
| char[][] table; | |
| Random random; | |
| Scanner sc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // system/controllers/division/forms/form_division.php | |
| class formDivisionDivision extends cmsForm { | |
| public function init() { | |
| return [ | |
| [ | |
| "type" => "fieldset", | |
| "childs" => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // /templates/default/widgets/chack/chack.php | |
| <?php | |
| echo $file; | |
| echo $qwe; | |
| ?> | |
| // system/widgets/chack/options.form.php | |
| <?php | |
| class formWidgetChackOptions extends cmsForm { | |
| public function init() { | |
| $a = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class RectDraw | |
| { | |
| public $inscription; // содержание надписи | |
| public $width; // ширина svg изображения | |
| public $bg_color; // цвер фона | |
| public $font_size; // размер шрифта | |
| public $strings = []; | |
| public $error = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @internal @properties &meatAltBase=предполагаемое содержимое атрибута alt;text;[*pagetitle*] &numImg=добавить нумерацию изображений в alt;list;да,нет;да | |
| * @internal @events OnDocFormSave | |
| * @author Борис Федоров <w-navt@yandex.ru> | |
| */ | |
| if (!isset($meatAltBase)) { | |
| $meatAltBase = '[*pagetitle*]'; // предполагаемое содержимое атрибута alt | |
| } | |
| if (!isset($numImg)) { |