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
| background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82); |
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 | |
| namespace app\models; | |
| use Yii; | |
| use yii\base\Model; | |
| use yii\web\UploadedFile; | |
| class Uploader extends Model | |
| { | |
| public $img; | |
| public function rules() | |
| { |
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
| убираем паджакс у ссылок внутри пджакса ['data-pjax' => 0] |
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
| exportSellerOffersTable = function (url,id) | |
| { | |
| window.open(url+'?id='+id); | |
| }; | |
| <?php | |
| echo Html::button( | |
| 'Экспорт данных', | |
| array('class' => 'btn btn-primary pull-left', | |
| 'onClick'=>sprintf('exportSellerOffersTable("' . Yii::$app->urlManager->createUrl(['/lk/exportselleroffers']) . '",'.$model->lot_data['id'].')')) |
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
| $iv = openssl_random_pseudo_bytes(16); | |
| $secure = base64_encode(openssl_encrypt('misha', 'AES-128-CBC','mykey', OPENSSL_RAW_DATA, $iv)); | |
| echo openssl_decrypt(base64_decode($secure), 'AES-128-CBC','mykey', OPENSSL_RAW_DATA, $iv); | |
| die; |
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
| Options +FollowSymLinks | |
| IndexIgnore */* | |
| RewriteEngine on | |
| # if a directory or a file exists, use it directly | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| # otherwise forward it to index.php | |
| RewriteRule . index.php |
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
| SELECT DATE_FORMAT(STR_TO_DATE('10.11.2012 11:10:12','%d.%m.%Y %H:%i:%s'),'%Y-%m-%d %H:%i:%s'); |
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
| 'mimeTypes' => 'application/zip, text/plain, application/x-dbf, application/vnd.ms-excel', | |
| 'checkExtensionByMimeType' => false |
NewerOlder