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 | |
| $db = Yii::$app->db; | |
| $sql = $db->queryBuilder->batchInsert($table, $fields, $rows); | |
| $db->createCommand($sql . ' ON DUPLICATE KEY UPDATE')->execute(); |
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
| cd /path/to/humhub/protected | |
| php yii search/rebuild |
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
| ALTER TABLE c6iddis.market_price CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; | |
| ----------------------- | |
| for all schema | |
| ---------------------- | |
| USE INFORMATION_SCHEMA; | |
| SELECT | |
| CONCAT("ALTER TABLE `", TABLE_SCHEMA,"`.`", TABLE_NAME, "` CONVERT TO CHARACTER SET UTF8 COLLATE utf8_general_ci;") | |
| AS MySQLCMD FROM TABLES |
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
| public function behaviors() | |
| { | |
| return [ | |
| 'access' => [ | |
| 'class' => AccessControl::className(), | |
| 'rules' => [ | |
| [ | |
| 'actions' => ['update'], | |
| 'allow' => true, | |
| 'matchCallback' => function ($rule, $action) { |
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
| 1. Запустить regedit и открыть раздел: | |
| HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\WinLogon | |
| 2. Установить параметр AutoAdminLogon = 1 | |
| 3. Добавить параметр DefaultUserName и присвоить ему имя пользователя, | |
| с которым будет происходить автоматический вход в систему (в ХР он уже есть) | |
| 4. Добавить параметр DefaultPassword и присвоить ему пароль, |
NewerOlder