[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"custom-urls-\u002Fmodx\u002Fauth-as":3,"categories-menu":10,"post-knopka-avtorizovatsya-v-spiske-polzovateley-v-adminke":120,"post-content-knopka-avtorizovatsya-v-spiske-polzovateley-v-adminke":158,"post-comments-yy6x55uwn90hzkzz0786ev1q":1291,"tags":1292},{"type":4,"entity":5,"path":8},"post",{"documentId":6,"slug":7},"yy6x55uwn90hzkzz0786ev1q","knopka-avtorizovatsya-v-spiske-polzovateley-v-adminke",{"uri":9},"\u002Fmodx\u002Fauth-as",[11,31,104],{"id":12,"documentId":13,"name":14,"slug":15,"desc":16,"published":17,"uri":18,"showmenu":17,"createdAt":19,"updatedAt":20,"publishedAt":21,"locale":22,"heading":16,"order":23,"posts":24},4,"dw88ipzixowg4rbtqhna1fck","Личное","self",null,true,"\u002Fself","2026-05-17T11:06:55.868Z","2026-05-19T09:58:08.297Z","2026-05-19T09:58:08.291Z","en",0,[25,28],{"id":26,"documentId":27},61,"otr8hblo0fac9ovggct48osv",{"id":29,"documentId":30},76,"z77qh8cg0mcz533087epr6xu",{"id":32,"documentId":33,"name":34,"slug":35,"desc":16,"published":17,"uri":36,"showmenu":17,"createdAt":37,"updatedAt":38,"publishedAt":39,"locale":22,"heading":16,"order":40,"posts":41},2,"oxow5hzkizd4dgongka7hxvf","Рабочее","work","\u002Fwork","2026-05-15T07:43:18.016Z","2026-05-19T09:58:08.301Z","2026-05-19T09:58:08.295Z",1,[42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,92,95,98,101],{"id":43,"documentId":44},71,"tciv16vv801l5eg5m4rx3gal",{"id":46,"documentId":47},80,"x8y72z9yibyjcllzwes23h43",{"id":49,"documentId":50},81,"v06yaukpbxnypv0bh0s48osu",{"id":52,"documentId":53},82,"wgd4f0022pq1pwbvq04rq0x0",{"id":55,"documentId":56},83,"i8wiipabpbxtcofme04ncqjy",{"id":58,"documentId":59},84,"ny1dz9tknms3219nrc5oaahy",{"id":61,"documentId":62},89,"igz67vanm4ke94cilkgrts2i",{"id":64,"documentId":65},95,"fa4sibhpf6ohmet6qo3s4ywx",{"id":67,"documentId":68},96,"u7g77d0bu0rv1u67qea9kglu",{"id":70,"documentId":71},98,"exnbib5xi3fgt7mku9q8ithc",{"id":73,"documentId":74},99,"bja31j10up0ffiqw1j5nfr79",{"id":76,"documentId":77},100,"ztrhdkce10c349k6jngsqz72",{"id":79,"documentId":80},101,"gsf74mv1zc39kkejpvy70lfk",{"id":82,"documentId":83},102,"m7c1icp5gt0x73ssyc67atvc",{"id":85,"documentId":86},103,"yz8vml65wloblc0dsp1okc8l",{"id":88,"documentId":89},104,"lquxceynryigq9wdydiwby7f",{"id":91,"documentId":6},105,{"id":93,"documentId":94},106,"ns37ttwnqxfc86lw6355bx9n",{"id":96,"documentId":97},107,"bjlqk6v41quti6geq9hs4ta6",{"id":99,"documentId":100},108,"ztumsu968y7otczfxrol0o19",{"id":102,"documentId":103},109,"xxxi8etz2ay3839xvw2oz9ym",{"id":105,"documentId":106,"name":107,"slug":108,"desc":16,"published":17,"uri":109,"showmenu":17,"createdAt":110,"updatedAt":111,"publishedAt":112,"locale":22,"heading":16,"order":32,"posts":113},3,"cat0obshestvennoe000001","Общественное","public","\u002Fpublic","2026-05-15T18:29:50.696Z","2026-05-19T09:58:05.992Z","2026-05-19T09:58:05.985Z",[114,117],{"id":115,"documentId":116},74,"u55grcuibxa3e64ymhoaav2v",{"id":118,"documentId":119},92,"rcz3w4mhmhb54ps3o8j462fp",{"id":91,"documentId":6,"title":121,"slug":7,"content":122,"desc":123,"intro":124,"uri":9,"published":17,"publishedDate":125,"showComments":17,"canComment":17,"telegramId":16,"telegramLink":16,"telegramHash":16,"telegramSetReaction":17,"telegramPasteImage":126,"telegramPasteTitle":126,"telegramPasteLink":126,"internalMeta":127,"createdAt":129,"updatedAt":130,"publishedAt":131,"locale":16,"coverCaption":132,"showOnHome":17,"category":133,"cover":16,"tags":134,"author":142,"comments":23,"reactions":157},"Кнопка \"Авторизоваться\" в списке пользователей в админке","Данный плагин реализует возможность, находясь в админке, авторизоваться под любым существующим юзером на фронтенде.\r\n\r\nСоздайте плагин `ManagerAuthAs` на 2 события: `OnHandleRequest` и `OnManagerPageBeforeRender`.\r\n\r\nКод плагина:\r\n\r\n```php\r\nswitch ($modx->event->name) {\r\n    case 'OnHandleRequest':\r\n        if (@$_GET['action'] === 'manager\u002Fauth_as') {\r\n            $auth_user_id = (int)$_GET['user_id'];\r\n            $auth_contexts = $modx->user->getSessionContexts();\r\n            if (!empty($auth_user_id) && !empty($auth_contexts['mgr']) && $modx->context->key !== 'mgr') {\r\n                if ($user = $modx->getObject('modUser', $auth_user_id)) {\r\n                    $modx->user = $user;\r\n                    $contexts = $modx->getIterator('modContext', ['key:!=' => 'mgr']);\r\n                    foreach ($contexts as $context) {\r\n                        $modx->user->addSessionContext($context->key);\r\n                        $modx->getUser($context->key, true);\r\n                    }\r\n                }\r\n            }\r\n            $modx->sendRedirect($modx->makeUrl($modx->getOption('site_start')));\r\n        }\r\n        break;\r\n\r\n    case 'OnManagerPageBeforeRender':\r\n        switch ($controller->config['controller']) {\r\n            case 'security\u002Fuser':\r\n                $controller->addHtml(\"\r\n                \u003Cscript type='text\u002Fjavascript'>\r\n                    Ext.ComponentMgr.onAvailable('modx-panel-users', function () {\r\n                        Ext.override(MODx.grid.User, {\r\n                            getMenu: MODx.grid.User.prototype.getMenu.createSequence(function (grid, rowIndex) {\r\n                                var data = grid.getStore().getAt(rowIndex).data;\r\n                                if (!data.active || data.blocked) {\r\n                                    return;\r\n                                }\r\n                                this.addContextMenuItem(['-', {\r\n                                    text: 'Авторизоваться',\r\n                                    handler: function () {\r\n                                        window.open(MODx.config.site_url + '?action=manager\u002Fauth_as&user_id=' + data.id)\r\n                                    }, scope: this\r\n                                }])\r\n                            })\r\n                        })\r\n                    });\r\n                \u003C\u002Fscript>\r\n                \");\r\n                break;\r\n        }\r\n        break;\r\n}\r\n```","","Данный плагин реализует возможность, находясь в админке, авторизоваться под любым существующим юзером на фронтенде.","2025-01-28T09:20:00.000Z",false,{"addToTelegram":128,"editInTelegram":128,"removeFromTelegram":128},"false","2026-05-16T14:27:45.387Z","2026-05-17T10:15:25.950Z","2026-05-17T10:15:25.940Z","ManagerAuthAs",{"id":32,"documentId":33,"name":34,"slug":35,"desc":16,"published":17,"uri":36,"showmenu":17,"createdAt":37,"updatedAt":38,"publishedAt":39,"locale":22,"heading":16,"order":40},[135],{"id":136,"documentId":137,"name":138,"slug":139,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":140,"updatedAt":140,"publishedAt":141,"locale":22,"heading":16,"desc":16},6,"mau3qzs4gq9pxckgymu674yr","MODX","modx","2026-05-16T10:03:44.164Z","2026-05-16T10:03:44.154Z",{"id":40,"documentId":143,"username":144,"provider":123,"confirmed":17,"blocked":126,"telegramId":145,"telegramData":146,"icon":16,"firstname":150,"lastname":149,"phone":147,"locale":16,"role":151,"avatar":16},"mr9zlrq1858u3k1t8r6dmlly","pavelgvozdb","133652371",{"id":145,"phone":147,"premium":126,"language":148,"lastname":149,"username":144,"firstname":150},"77025551199","ru","Гвоздь","Павел",{"id":105,"documentId":152,"name":153,"description":154,"type":155,"createdAt":156,"updatedAt":156,"publishedAt":156,"locale":16},"agv9d9dnu7pxc9ked3amj647","Admin","Главный админ блога — полный доступ к управлению на фронтенде","admin","2026-05-15T18:45:58.088Z",{"like":32,"dislike":23},{"data":159,"body":160,"toc":1289},{"title":123,"description":124},{"type":161,"children":162},"root",[163,170,199,204,1283],{"type":164,"tag":165,"props":166,"children":167},"element","p",{},[168],{"type":169,"value":124},"text",{"type":164,"tag":165,"props":171,"children":172},{},[173,175,181,183,189,191,197],{"type":169,"value":174},"Создайте плагин ",{"type":164,"tag":176,"props":177,"children":179},"code",{"className":178},[],[180],{"type":169,"value":132},{"type":169,"value":182}," на 2 события: ",{"type":164,"tag":176,"props":184,"children":186},{"className":185},[],[187],{"type":169,"value":188},"OnHandleRequest",{"type":169,"value":190}," и ",{"type":164,"tag":176,"props":192,"children":194},{"className":193},[],[195],{"type":169,"value":196},"OnManagerPageBeforeRender",{"type":169,"value":198},".",{"type":164,"tag":165,"props":200,"children":201},{},[202],{"type":169,"value":203},"Код плагина:",{"type":164,"tag":205,"props":206,"children":211},"pre",{"className":207,"code":208,"language":209,"meta":123,"style":210},"language-php shiki shiki-themes github-light catppuccin-mocha","switch ($modx->event->name) {\n    case 'OnHandleRequest':\n        if (@$_GET['action'] === 'manager\u002Fauth_as') {\n            $auth_user_id = (int)$_GET['user_id'];\n            $auth_contexts = $modx->user->getSessionContexts();\n            if (!empty($auth_user_id) && !empty($auth_contexts['mgr']) && $modx->context->key !== 'mgr') {\n                if ($user = $modx->getObject('modUser', $auth_user_id)) {\n                    $modx->user = $user;\n                    $contexts = $modx->getIterator('modContext', ['key:!=' => 'mgr']);\n                    foreach ($contexts as $context) {\n                        $modx->user->addSessionContext($context->key);\n                        $modx->getUser($context->key, true);\n                    }\n                }\n            }\n            $modx->sendRedirect($modx->makeUrl($modx->getOption('site_start')));\n        }\n        break;\n\n    case 'OnManagerPageBeforeRender':\n        switch ($controller->config['controller']) {\n            case 'security\u002Fuser':\n                $controller->addHtml(\"\n                \u003Cscript type='text\u002Fjavascript'>\n                    Ext.ComponentMgr.onAvailable('modx-panel-users', function () {\n                        Ext.override(MODx.grid.User, {\n                            getMenu: MODx.grid.User.prototype.getMenu.createSequence(function (grid, rowIndex) {\n                                var data = grid.getStore().getAt(rowIndex).data;\n                                if (!data.active || data.blocked) {\n                                    return;\n                                }\n                                this.addContextMenuItem(['-', {\n                                    text: 'Авторизоваться',\n                                    handler: function () {\n                                        window.open(MODx.config.site_url + '?action=manager\u002Fauth_as&user_id=' + data.id)\n                                    }, scope: this\n                                }])\n                            })\n                        })\n                    });\n                \u003C\u002Fscript>\n                \");\n                break;\n        }\n        break;\n}\n","php","--shiki-default:#24292e;--shiki-dark:#cdd6f4;--shiki-default-bg:#fff;--shiki-dark-bg:#1e1e2e",[212],{"type":164,"tag":176,"props":213,"children":214},{"__ignoreMap":123},[215,268,287,342,386,428,546,609,641,704,740,789,836,845,854,863,929,938,951,960,977,1021,1039,1066,1075,1084,1093,1102,1111,1120,1129,1138,1147,1156,1165,1174,1183,1192,1201,1210,1219,1228,1241,1254,1262,1274],{"type":164,"tag":216,"props":217,"children":219},"span",{"class":218,"line":40},"line",[220,226,232,238,244,249,253,258,263],{"type":164,"tag":216,"props":221,"children":223},{"style":222},"--shiki-default:#D73A49;--shiki-dark:#CBA6F7",[224],{"type":169,"value":225},"switch",{"type":164,"tag":216,"props":227,"children":229},{"style":228},"--shiki-default:#24292E;--shiki-dark:#9399B2",[230],{"type":169,"value":231}," (",{"type":164,"tag":216,"props":233,"children":235},{"style":234},"--shiki-default:#24292E;--shiki-dark:#CDD6F4",[236],{"type":169,"value":237},"$modx",{"type":164,"tag":216,"props":239,"children":241},{"style":240},"--shiki-default:#D73A49;--shiki-dark:#94E2D5",[242],{"type":169,"value":243},"->",{"type":164,"tag":216,"props":245,"children":246},{"style":234},[247],{"type":169,"value":248},"event",{"type":164,"tag":216,"props":250,"children":251},{"style":240},[252],{"type":169,"value":243},{"type":164,"tag":216,"props":254,"children":255},{"style":234},[256],{"type":169,"value":257},"name",{"type":164,"tag":216,"props":259,"children":260},{"style":228},[261],{"type":169,"value":262},")",{"type":164,"tag":216,"props":264,"children":265},{"style":228},[266],{"type":169,"value":267}," {\n",{"type":164,"tag":216,"props":269,"children":270},{"class":218,"line":32},[271,276,282],{"type":164,"tag":216,"props":272,"children":273},{"style":222},[274],{"type":169,"value":275},"    case",{"type":164,"tag":216,"props":277,"children":279},{"style":278},"--shiki-default:#032F62;--shiki-dark:#A6E3A1",[280],{"type":169,"value":281}," 'OnHandleRequest'",{"type":164,"tag":216,"props":283,"children":284},{"style":228},[285],{"type":169,"value":286},":\n",{"type":164,"tag":216,"props":288,"children":289},{"class":218,"line":105},[290,295,299,304,309,314,319,324,329,334,338],{"type":164,"tag":216,"props":291,"children":292},{"style":222},[293],{"type":169,"value":294},"        if",{"type":164,"tag":216,"props":296,"children":297},{"style":228},[298],{"type":169,"value":231},{"type":164,"tag":216,"props":300,"children":301},{"style":240},[302],{"type":169,"value":303},"@",{"type":164,"tag":216,"props":305,"children":306},{"style":234},[307],{"type":169,"value":308},"$_GET",{"type":164,"tag":216,"props":310,"children":311},{"style":228},[312],{"type":169,"value":313},"[",{"type":164,"tag":216,"props":315,"children":316},{"style":278},[317],{"type":169,"value":318},"'action'",{"type":164,"tag":216,"props":320,"children":321},{"style":228},[322],{"type":169,"value":323},"]",{"type":164,"tag":216,"props":325,"children":326},{"style":240},[327],{"type":169,"value":328}," ===",{"type":164,"tag":216,"props":330,"children":331},{"style":278},[332],{"type":169,"value":333}," 'manager\u002Fauth_as'",{"type":164,"tag":216,"props":335,"children":336},{"style":228},[337],{"type":169,"value":262},{"type":164,"tag":216,"props":339,"children":340},{"style":228},[341],{"type":169,"value":267},{"type":164,"tag":216,"props":343,"children":344},{"class":218,"line":12},[345,350,355,359,364,368,372,376,381],{"type":164,"tag":216,"props":346,"children":347},{"style":234},[348],{"type":169,"value":349},"            $auth_user_id ",{"type":164,"tag":216,"props":351,"children":352},{"style":240},[353],{"type":169,"value":354},"=",{"type":164,"tag":216,"props":356,"children":357},{"style":228},[358],{"type":169,"value":231},{"type":164,"tag":216,"props":360,"children":361},{"style":222},[362],{"type":169,"value":363},"int",{"type":164,"tag":216,"props":365,"children":366},{"style":228},[367],{"type":169,"value":262},{"type":164,"tag":216,"props":369,"children":370},{"style":234},[371],{"type":169,"value":308},{"type":164,"tag":216,"props":373,"children":374},{"style":228},[375],{"type":169,"value":313},{"type":164,"tag":216,"props":377,"children":378},{"style":278},[379],{"type":169,"value":380},"'user_id'",{"type":164,"tag":216,"props":382,"children":383},{"style":228},[384],{"type":169,"value":385},"];\n",{"type":164,"tag":216,"props":387,"children":389},{"class":218,"line":388},5,[390,395,399,404,408,413,417,423],{"type":164,"tag":216,"props":391,"children":392},{"style":234},[393],{"type":169,"value":394},"            $auth_contexts ",{"type":164,"tag":216,"props":396,"children":397},{"style":240},[398],{"type":169,"value":354},{"type":164,"tag":216,"props":400,"children":401},{"style":234},[402],{"type":169,"value":403}," $modx",{"type":164,"tag":216,"props":405,"children":406},{"style":240},[407],{"type":169,"value":243},{"type":164,"tag":216,"props":409,"children":410},{"style":234},[411],{"type":169,"value":412},"user",{"type":164,"tag":216,"props":414,"children":415},{"style":240},[416],{"type":169,"value":243},{"type":164,"tag":216,"props":418,"children":420},{"style":419},"--shiki-default:#6F42C1;--shiki-default-font-style:inherit;--shiki-dark:#89B4FA;--shiki-dark-font-style:italic",[421],{"type":169,"value":422},"getSessionContexts",{"type":164,"tag":216,"props":424,"children":425},{"style":228},[426],{"type":169,"value":427},"();\n",{"type":164,"tag":216,"props":429,"children":430},{"class":218,"line":136},[431,436,440,445,451,456,461,465,470,475,479,483,488,492,497,502,506,510,514,519,523,528,533,538,542],{"type":164,"tag":216,"props":432,"children":433},{"style":222},[434],{"type":169,"value":435},"            if",{"type":164,"tag":216,"props":437,"children":438},{"style":228},[439],{"type":169,"value":231},{"type":164,"tag":216,"props":441,"children":442},{"style":240},[443],{"type":169,"value":444},"!",{"type":164,"tag":216,"props":446,"children":448},{"style":447},"--shiki-default:#005CC5;--shiki-default-font-style:inherit;--shiki-dark:#89B4FA;--shiki-dark-font-style:italic",[449],{"type":169,"value":450},"empty",{"type":164,"tag":216,"props":452,"children":453},{"style":228},[454],{"type":169,"value":455},"(",{"type":164,"tag":216,"props":457,"children":458},{"style":234},[459],{"type":169,"value":460},"$auth_user_id",{"type":164,"tag":216,"props":462,"children":463},{"style":228},[464],{"type":169,"value":262},{"type":164,"tag":216,"props":466,"children":467},{"style":240},[468],{"type":169,"value":469}," &&",{"type":164,"tag":216,"props":471,"children":472},{"style":240},[473],{"type":169,"value":474}," !",{"type":164,"tag":216,"props":476,"children":477},{"style":447},[478],{"type":169,"value":450},{"type":164,"tag":216,"props":480,"children":481},{"style":228},[482],{"type":169,"value":455},{"type":164,"tag":216,"props":484,"children":485},{"style":234},[486],{"type":169,"value":487},"$auth_contexts",{"type":164,"tag":216,"props":489,"children":490},{"style":228},[491],{"type":169,"value":313},{"type":164,"tag":216,"props":493,"children":494},{"style":278},[495],{"type":169,"value":496},"'mgr'",{"type":164,"tag":216,"props":498,"children":499},{"style":228},[500],{"type":169,"value":501},"])",{"type":164,"tag":216,"props":503,"children":504},{"style":240},[505],{"type":169,"value":469},{"type":164,"tag":216,"props":507,"children":508},{"style":234},[509],{"type":169,"value":403},{"type":164,"tag":216,"props":511,"children":512},{"style":240},[513],{"type":169,"value":243},{"type":164,"tag":216,"props":515,"children":516},{"style":234},[517],{"type":169,"value":518},"context",{"type":164,"tag":216,"props":520,"children":521},{"style":240},[522],{"type":169,"value":243},{"type":164,"tag":216,"props":524,"children":525},{"style":234},[526],{"type":169,"value":527},"key ",{"type":164,"tag":216,"props":529,"children":530},{"style":240},[531],{"type":169,"value":532},"!==",{"type":164,"tag":216,"props":534,"children":535},{"style":278},[536],{"type":169,"value":537}," 'mgr'",{"type":164,"tag":216,"props":539,"children":540},{"style":228},[541],{"type":169,"value":262},{"type":164,"tag":216,"props":543,"children":544},{"style":228},[545],{"type":169,"value":267},{"type":164,"tag":216,"props":547,"children":549},{"class":218,"line":548},7,[550,555,559,564,568,572,576,581,585,590,595,600,605],{"type":164,"tag":216,"props":551,"children":552},{"style":222},[553],{"type":169,"value":554},"                if",{"type":164,"tag":216,"props":556,"children":557},{"style":228},[558],{"type":169,"value":231},{"type":164,"tag":216,"props":560,"children":561},{"style":234},[562],{"type":169,"value":563},"$user ",{"type":164,"tag":216,"props":565,"children":566},{"style":240},[567],{"type":169,"value":354},{"type":164,"tag":216,"props":569,"children":570},{"style":234},[571],{"type":169,"value":403},{"type":164,"tag":216,"props":573,"children":574},{"style":240},[575],{"type":169,"value":243},{"type":164,"tag":216,"props":577,"children":578},{"style":419},[579],{"type":169,"value":580},"getObject",{"type":164,"tag":216,"props":582,"children":583},{"style":228},[584],{"type":169,"value":455},{"type":164,"tag":216,"props":586,"children":587},{"style":278},[588],{"type":169,"value":589},"'modUser'",{"type":164,"tag":216,"props":591,"children":592},{"style":228},[593],{"type":169,"value":594},",",{"type":164,"tag":216,"props":596,"children":597},{"style":234},[598],{"type":169,"value":599}," $auth_user_id",{"type":164,"tag":216,"props":601,"children":602},{"style":228},[603],{"type":169,"value":604},"))",{"type":164,"tag":216,"props":606,"children":607},{"style":228},[608],{"type":169,"value":267},{"type":164,"tag":216,"props":610,"children":612},{"class":218,"line":611},8,[613,618,622,627,631,636],{"type":164,"tag":216,"props":614,"children":615},{"style":234},[616],{"type":169,"value":617},"                    $modx",{"type":164,"tag":216,"props":619,"children":620},{"style":240},[621],{"type":169,"value":243},{"type":164,"tag":216,"props":623,"children":624},{"style":234},[625],{"type":169,"value":626},"user ",{"type":164,"tag":216,"props":628,"children":629},{"style":240},[630],{"type":169,"value":354},{"type":164,"tag":216,"props":632,"children":633},{"style":234},[634],{"type":169,"value":635}," $user",{"type":164,"tag":216,"props":637,"children":638},{"style":228},[639],{"type":169,"value":640},";\n",{"type":164,"tag":216,"props":642,"children":644},{"class":218,"line":643},9,[645,650,654,658,662,667,671,676,680,685,690,695,699],{"type":164,"tag":216,"props":646,"children":647},{"style":234},[648],{"type":169,"value":649},"                    $contexts ",{"type":164,"tag":216,"props":651,"children":652},{"style":240},[653],{"type":169,"value":354},{"type":164,"tag":216,"props":655,"children":656},{"style":234},[657],{"type":169,"value":403},{"type":164,"tag":216,"props":659,"children":660},{"style":240},[661],{"type":169,"value":243},{"type":164,"tag":216,"props":663,"children":664},{"style":419},[665],{"type":169,"value":666},"getIterator",{"type":164,"tag":216,"props":668,"children":669},{"style":228},[670],{"type":169,"value":455},{"type":164,"tag":216,"props":672,"children":673},{"style":278},[674],{"type":169,"value":675},"'modContext'",{"type":164,"tag":216,"props":677,"children":678},{"style":228},[679],{"type":169,"value":594},{"type":164,"tag":216,"props":681,"children":682},{"style":228},[683],{"type":169,"value":684}," [",{"type":164,"tag":216,"props":686,"children":687},{"style":278},[688],{"type":169,"value":689},"'key:!='",{"type":164,"tag":216,"props":691,"children":692},{"style":240},[693],{"type":169,"value":694}," =>",{"type":164,"tag":216,"props":696,"children":697},{"style":278},[698],{"type":169,"value":537},{"type":164,"tag":216,"props":700,"children":701},{"style":228},[702],{"type":169,"value":703},"]);\n",{"type":164,"tag":216,"props":705,"children":707},{"class":218,"line":706},10,[708,713,717,722,727,732,736],{"type":164,"tag":216,"props":709,"children":710},{"style":222},[711],{"type":169,"value":712},"                    foreach",{"type":164,"tag":216,"props":714,"children":715},{"style":228},[716],{"type":169,"value":231},{"type":164,"tag":216,"props":718,"children":719},{"style":234},[720],{"type":169,"value":721},"$contexts ",{"type":164,"tag":216,"props":723,"children":724},{"style":240},[725],{"type":169,"value":726},"as",{"type":164,"tag":216,"props":728,"children":729},{"style":234},[730],{"type":169,"value":731}," $context",{"type":164,"tag":216,"props":733,"children":734},{"style":228},[735],{"type":169,"value":262},{"type":164,"tag":216,"props":737,"children":738},{"style":228},[739],{"type":169,"value":267},{"type":164,"tag":216,"props":741,"children":743},{"class":218,"line":742},11,[744,749,753,757,761,766,770,775,779,784],{"type":164,"tag":216,"props":745,"children":746},{"style":234},[747],{"type":169,"value":748},"                        $modx",{"type":164,"tag":216,"props":750,"children":751},{"style":240},[752],{"type":169,"value":243},{"type":164,"tag":216,"props":754,"children":755},{"style":234},[756],{"type":169,"value":412},{"type":164,"tag":216,"props":758,"children":759},{"style":240},[760],{"type":169,"value":243},{"type":164,"tag":216,"props":762,"children":763},{"style":419},[764],{"type":169,"value":765},"addSessionContext",{"type":164,"tag":216,"props":767,"children":768},{"style":228},[769],{"type":169,"value":455},{"type":164,"tag":216,"props":771,"children":772},{"style":234},[773],{"type":169,"value":774},"$context",{"type":164,"tag":216,"props":776,"children":777},{"style":240},[778],{"type":169,"value":243},{"type":164,"tag":216,"props":780,"children":781},{"style":234},[782],{"type":169,"value":783},"key",{"type":164,"tag":216,"props":785,"children":786},{"style":228},[787],{"type":169,"value":788},");\n",{"type":164,"tag":216,"props":790,"children":792},{"class":218,"line":791},12,[793,797,801,806,810,814,818,822,826,832],{"type":164,"tag":216,"props":794,"children":795},{"style":234},[796],{"type":169,"value":748},{"type":164,"tag":216,"props":798,"children":799},{"style":240},[800],{"type":169,"value":243},{"type":164,"tag":216,"props":802,"children":803},{"style":419},[804],{"type":169,"value":805},"getUser",{"type":164,"tag":216,"props":807,"children":808},{"style":228},[809],{"type":169,"value":455},{"type":164,"tag":216,"props":811,"children":812},{"style":234},[813],{"type":169,"value":774},{"type":164,"tag":216,"props":815,"children":816},{"style":240},[817],{"type":169,"value":243},{"type":164,"tag":216,"props":819,"children":820},{"style":234},[821],{"type":169,"value":783},{"type":164,"tag":216,"props":823,"children":824},{"style":228},[825],{"type":169,"value":594},{"type":164,"tag":216,"props":827,"children":829},{"style":828},"--shiki-default:#005CC5;--shiki-dark:#CBA6F7",[830],{"type":169,"value":831}," true",{"type":164,"tag":216,"props":833,"children":834},{"style":228},[835],{"type":169,"value":788},{"type":164,"tag":216,"props":837,"children":839},{"class":218,"line":838},13,[840],{"type":164,"tag":216,"props":841,"children":842},{"style":228},[843],{"type":169,"value":844},"                    }\n",{"type":164,"tag":216,"props":846,"children":848},{"class":218,"line":847},14,[849],{"type":164,"tag":216,"props":850,"children":851},{"style":228},[852],{"type":169,"value":853},"                }\n",{"type":164,"tag":216,"props":855,"children":857},{"class":218,"line":856},15,[858],{"type":164,"tag":216,"props":859,"children":860},{"style":228},[861],{"type":169,"value":862},"            }\n",{"type":164,"tag":216,"props":864,"children":866},{"class":218,"line":865},16,[867,872,876,881,885,889,893,898,902,906,910,915,919,924],{"type":164,"tag":216,"props":868,"children":869},{"style":234},[870],{"type":169,"value":871},"            $modx",{"type":164,"tag":216,"props":873,"children":874},{"style":240},[875],{"type":169,"value":243},{"type":164,"tag":216,"props":877,"children":878},{"style":419},[879],{"type":169,"value":880},"sendRedirect",{"type":164,"tag":216,"props":882,"children":883},{"style":228},[884],{"type":169,"value":455},{"type":164,"tag":216,"props":886,"children":887},{"style":234},[888],{"type":169,"value":237},{"type":164,"tag":216,"props":890,"children":891},{"style":240},[892],{"type":169,"value":243},{"type":164,"tag":216,"props":894,"children":895},{"style":419},[896],{"type":169,"value":897},"makeUrl",{"type":164,"tag":216,"props":899,"children":900},{"style":228},[901],{"type":169,"value":455},{"type":164,"tag":216,"props":903,"children":904},{"style":234},[905],{"type":169,"value":237},{"type":164,"tag":216,"props":907,"children":908},{"style":240},[909],{"type":169,"value":243},{"type":164,"tag":216,"props":911,"children":912},{"style":419},[913],{"type":169,"value":914},"getOption",{"type":164,"tag":216,"props":916,"children":917},{"style":228},[918],{"type":169,"value":455},{"type":164,"tag":216,"props":920,"children":921},{"style":278},[922],{"type":169,"value":923},"'site_start'",{"type":164,"tag":216,"props":925,"children":926},{"style":228},[927],{"type":169,"value":928},")));\n",{"type":164,"tag":216,"props":930,"children":932},{"class":218,"line":931},17,[933],{"type":164,"tag":216,"props":934,"children":935},{"style":228},[936],{"type":169,"value":937},"        }\n",{"type":164,"tag":216,"props":939,"children":941},{"class":218,"line":940},18,[942,947],{"type":164,"tag":216,"props":943,"children":944},{"style":222},[945],{"type":169,"value":946},"        break",{"type":164,"tag":216,"props":948,"children":949},{"style":228},[950],{"type":169,"value":640},{"type":164,"tag":216,"props":952,"children":954},{"class":218,"line":953},19,[955],{"type":164,"tag":216,"props":956,"children":957},{"emptyLinePlaceholder":17},[958],{"type":169,"value":959},"\n",{"type":164,"tag":216,"props":961,"children":963},{"class":218,"line":962},20,[964,968,973],{"type":164,"tag":216,"props":965,"children":966},{"style":222},[967],{"type":169,"value":275},{"type":164,"tag":216,"props":969,"children":970},{"style":278},[971],{"type":169,"value":972}," 'OnManagerPageBeforeRender'",{"type":164,"tag":216,"props":974,"children":975},{"style":228},[976],{"type":169,"value":286},{"type":164,"tag":216,"props":978,"children":980},{"class":218,"line":979},21,[981,986,990,995,999,1004,1008,1013,1017],{"type":164,"tag":216,"props":982,"children":983},{"style":222},[984],{"type":169,"value":985},"        switch",{"type":164,"tag":216,"props":987,"children":988},{"style":228},[989],{"type":169,"value":231},{"type":164,"tag":216,"props":991,"children":992},{"style":234},[993],{"type":169,"value":994},"$controller",{"type":164,"tag":216,"props":996,"children":997},{"style":240},[998],{"type":169,"value":243},{"type":164,"tag":216,"props":1000,"children":1001},{"style":234},[1002],{"type":169,"value":1003},"config",{"type":164,"tag":216,"props":1005,"children":1006},{"style":228},[1007],{"type":169,"value":313},{"type":164,"tag":216,"props":1009,"children":1010},{"style":278},[1011],{"type":169,"value":1012},"'controller'",{"type":164,"tag":216,"props":1014,"children":1015},{"style":228},[1016],{"type":169,"value":501},{"type":164,"tag":216,"props":1018,"children":1019},{"style":228},[1020],{"type":169,"value":267},{"type":164,"tag":216,"props":1022,"children":1024},{"class":218,"line":1023},22,[1025,1030,1035],{"type":164,"tag":216,"props":1026,"children":1027},{"style":222},[1028],{"type":169,"value":1029},"            case",{"type":164,"tag":216,"props":1031,"children":1032},{"style":278},[1033],{"type":169,"value":1034}," 'security\u002Fuser'",{"type":164,"tag":216,"props":1036,"children":1037},{"style":228},[1038],{"type":169,"value":286},{"type":164,"tag":216,"props":1040,"children":1042},{"class":218,"line":1041},23,[1043,1048,1052,1057,1061],{"type":164,"tag":216,"props":1044,"children":1045},{"style":234},[1046],{"type":169,"value":1047},"                $controller",{"type":164,"tag":216,"props":1049,"children":1050},{"style":240},[1051],{"type":169,"value":243},{"type":164,"tag":216,"props":1053,"children":1054},{"style":419},[1055],{"type":169,"value":1056},"addHtml",{"type":164,"tag":216,"props":1058,"children":1059},{"style":228},[1060],{"type":169,"value":455},{"type":164,"tag":216,"props":1062,"children":1063},{"style":278},[1064],{"type":169,"value":1065},"\"\n",{"type":164,"tag":216,"props":1067,"children":1069},{"class":218,"line":1068},24,[1070],{"type":164,"tag":216,"props":1071,"children":1072},{"style":278},[1073],{"type":169,"value":1074},"                \u003Cscript type='text\u002Fjavascript'>\n",{"type":164,"tag":216,"props":1076,"children":1078},{"class":218,"line":1077},25,[1079],{"type":164,"tag":216,"props":1080,"children":1081},{"style":278},[1082],{"type":169,"value":1083},"                    Ext.ComponentMgr.onAvailable('modx-panel-users', function () {\n",{"type":164,"tag":216,"props":1085,"children":1087},{"class":218,"line":1086},26,[1088],{"type":164,"tag":216,"props":1089,"children":1090},{"style":278},[1091],{"type":169,"value":1092},"                        Ext.override(MODx.grid.User, {\n",{"type":164,"tag":216,"props":1094,"children":1096},{"class":218,"line":1095},27,[1097],{"type":164,"tag":216,"props":1098,"children":1099},{"style":278},[1100],{"type":169,"value":1101},"                            getMenu: MODx.grid.User.prototype.getMenu.createSequence(function (grid, rowIndex) {\n",{"type":164,"tag":216,"props":1103,"children":1105},{"class":218,"line":1104},28,[1106],{"type":164,"tag":216,"props":1107,"children":1108},{"style":278},[1109],{"type":169,"value":1110},"                                var data = grid.getStore().getAt(rowIndex).data;\n",{"type":164,"tag":216,"props":1112,"children":1114},{"class":218,"line":1113},29,[1115],{"type":164,"tag":216,"props":1116,"children":1117},{"style":278},[1118],{"type":169,"value":1119},"                                if (!data.active || data.blocked) {\n",{"type":164,"tag":216,"props":1121,"children":1123},{"class":218,"line":1122},30,[1124],{"type":164,"tag":216,"props":1125,"children":1126},{"style":278},[1127],{"type":169,"value":1128},"                                    return;\n",{"type":164,"tag":216,"props":1130,"children":1132},{"class":218,"line":1131},31,[1133],{"type":164,"tag":216,"props":1134,"children":1135},{"style":278},[1136],{"type":169,"value":1137},"                                }\n",{"type":164,"tag":216,"props":1139,"children":1141},{"class":218,"line":1140},32,[1142],{"type":164,"tag":216,"props":1143,"children":1144},{"style":278},[1145],{"type":169,"value":1146},"                                this.addContextMenuItem(['-', {\n",{"type":164,"tag":216,"props":1148,"children":1150},{"class":218,"line":1149},33,[1151],{"type":164,"tag":216,"props":1152,"children":1153},{"style":278},[1154],{"type":169,"value":1155},"                                    text: 'Авторизоваться',\n",{"type":164,"tag":216,"props":1157,"children":1159},{"class":218,"line":1158},34,[1160],{"type":164,"tag":216,"props":1161,"children":1162},{"style":278},[1163],{"type":169,"value":1164},"                                    handler: function () {\n",{"type":164,"tag":216,"props":1166,"children":1168},{"class":218,"line":1167},35,[1169],{"type":164,"tag":216,"props":1170,"children":1171},{"style":278},[1172],{"type":169,"value":1173},"                                        window.open(MODx.config.site_url + '?action=manager\u002Fauth_as&user_id=' + data.id)\n",{"type":164,"tag":216,"props":1175,"children":1177},{"class":218,"line":1176},36,[1178],{"type":164,"tag":216,"props":1179,"children":1180},{"style":278},[1181],{"type":169,"value":1182},"                                    }, scope: this\n",{"type":164,"tag":216,"props":1184,"children":1186},{"class":218,"line":1185},37,[1187],{"type":164,"tag":216,"props":1188,"children":1189},{"style":278},[1190],{"type":169,"value":1191},"                                }])\n",{"type":164,"tag":216,"props":1193,"children":1195},{"class":218,"line":1194},38,[1196],{"type":164,"tag":216,"props":1197,"children":1198},{"style":278},[1199],{"type":169,"value":1200},"                            })\n",{"type":164,"tag":216,"props":1202,"children":1204},{"class":218,"line":1203},39,[1205],{"type":164,"tag":216,"props":1206,"children":1207},{"style":278},[1208],{"type":169,"value":1209},"                        })\n",{"type":164,"tag":216,"props":1211,"children":1213},{"class":218,"line":1212},40,[1214],{"type":164,"tag":216,"props":1215,"children":1216},{"style":278},[1217],{"type":169,"value":1218},"                    });\n",{"type":164,"tag":216,"props":1220,"children":1222},{"class":218,"line":1221},41,[1223],{"type":164,"tag":216,"props":1224,"children":1225},{"style":278},[1226],{"type":169,"value":1227},"                \u003C\u002Fscript>\n",{"type":164,"tag":216,"props":1229,"children":1231},{"class":218,"line":1230},42,[1232,1237],{"type":164,"tag":216,"props":1233,"children":1234},{"style":278},[1235],{"type":169,"value":1236},"                \"",{"type":164,"tag":216,"props":1238,"children":1239},{"style":228},[1240],{"type":169,"value":788},{"type":164,"tag":216,"props":1242,"children":1244},{"class":218,"line":1243},43,[1245,1250],{"type":164,"tag":216,"props":1246,"children":1247},{"style":222},[1248],{"type":169,"value":1249},"                break",{"type":164,"tag":216,"props":1251,"children":1252},{"style":228},[1253],{"type":169,"value":640},{"type":164,"tag":216,"props":1255,"children":1257},{"class":218,"line":1256},44,[1258],{"type":164,"tag":216,"props":1259,"children":1260},{"style":228},[1261],{"type":169,"value":937},{"type":164,"tag":216,"props":1263,"children":1265},{"class":218,"line":1264},45,[1266,1270],{"type":164,"tag":216,"props":1267,"children":1268},{"style":222},[1269],{"type":169,"value":946},{"type":164,"tag":216,"props":1271,"children":1272},{"style":228},[1273],{"type":169,"value":640},{"type":164,"tag":216,"props":1275,"children":1277},{"class":218,"line":1276},46,[1278],{"type":164,"tag":216,"props":1279,"children":1280},{"style":228},[1281],{"type":169,"value":1282},"}\n",{"type":164,"tag":1284,"props":1285,"children":1286},"style",{},[1287],{"type":169,"value":1288},".shiki,html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}.dark .shiki,html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":123,"searchDepth":32,"depth":32,"links":1290},[],[],[1293,1306,1313,1322,1331,1342,1350,1358,1366,1374,1382,1390,1398,1406,1414],{"id":856,"documentId":1294,"name":1295,"slug":1296,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1297,"updatedAt":1297,"publishedAt":1298,"locale":22,"heading":16,"desc":16,"posts":1299},"aju4latl5hi6906pt0ktlb1g","Linux","linux","2026-05-16T10:03:45.426Z","2026-05-16T10:03:45.422Z",[1300,1301,1302,1303,1304,1305],{"id":61,"documentId":62},{"id":64,"documentId":65},{"id":67,"documentId":68},{"id":70,"documentId":71},{"id":85,"documentId":86},{"id":96,"documentId":97},{"id":136,"documentId":137,"name":138,"slug":139,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":140,"updatedAt":140,"publishedAt":141,"locale":22,"heading":16,"desc":16,"posts":1307},[1308,1309,1310,1311,1312],{"id":49,"documentId":50},{"id":52,"documentId":53},{"id":76,"documentId":77},{"id":91,"documentId":6},{"id":93,"documentId":94},{"id":953,"documentId":1314,"name":1315,"slug":1316,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1317,"updatedAt":1317,"publishedAt":1318,"locale":22,"heading":16,"desc":16,"posts":1319},"bfi7bs1ny52g8tz3ok8wrngy","macOS","macos","2026-05-16T10:33:46.268Z","2026-05-16T10:33:46.265Z",[1320,1321],{"id":43,"documentId":44},{"id":58,"documentId":59},{"id":962,"documentId":1323,"name":1324,"slug":1325,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1326,"updatedAt":1326,"publishedAt":1327,"locale":22,"heading":16,"desc":16,"posts":1328},"georvivt518jgm5vp8rcv0kv","Инструменты","instrumenty","2026-05-16T10:33:46.941Z","2026-05-16T10:33:46.938Z",[1329,1330],{"id":55,"documentId":56},{"id":79,"documentId":80},{"id":1131,"documentId":1332,"name":1333,"slug":1334,"textcolor":16,"bgcolor":16,"published":17,"uri":1335,"createdAt":1336,"updatedAt":1336,"publishedAt":1337,"locale":22,"heading":1338,"desc":123,"posts":1339},"dcyh9y95rmthzo6oip4ftoez","AI","ai","\u002Fai","2026-05-30T10:54:12.198Z","2026-05-30T10:54:12.192Z","Искусственный интеллект",[1340,1341],{"id":99,"documentId":100},{"id":102,"documentId":103},{"id":105,"documentId":1343,"name":1344,"slug":1345,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1346,"updatedAt":1346,"publishedAt":1347,"locale":22,"heading":16,"desc":16,"posts":1348},"tfr5asfr2apchhtgxje8epz1","Стихи","stihi","2026-05-16T10:03:43.872Z","2026-05-16T10:03:43.861Z",[1349],{"id":26,"documentId":27},{"id":388,"documentId":1351,"name":1352,"slug":1353,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1354,"updatedAt":1354,"publishedAt":1355,"locale":22,"heading":16,"desc":16,"posts":1356},"c7joczpqlb928nxr2l5qyg9m","Мысли","mysli","2026-05-16T10:03:44.061Z","2026-05-16T10:03:44.054Z",[1357],{"id":115,"documentId":116},{"id":611,"documentId":1359,"name":1360,"slug":1361,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1362,"updatedAt":1362,"publishedAt":1363,"locale":22,"heading":16,"desc":16,"posts":1364},"dwpf4sx017aq366ygh46evsc","Психология","psihologiya","2026-05-16T10:03:44.268Z","2026-05-16T10:03:44.264Z",[1365],{"id":118,"documentId":119},{"id":838,"documentId":1367,"name":1368,"slug":1369,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1370,"updatedAt":1370,"publishedAt":1371,"locale":22,"heading":16,"desc":16,"posts":1372},"qolbs7a9lkvr15oytyy3gj03","CSS","css","2026-05-16T10:03:45.289Z","2026-05-16T10:03:45.283Z",[1373],{"id":82,"documentId":83},{"id":847,"documentId":1375,"name":1376,"slug":1377,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1378,"updatedAt":1378,"publishedAt":1379,"locale":22,"heading":16,"desc":16,"posts":1380},"lz1k1ridxwxre34lzf0jfl3t","SASS","sass","2026-05-16T10:03:45.319Z","2026-05-16T10:03:45.314Z",[1381],{"id":82,"documentId":83},{"id":865,"documentId":1383,"name":1384,"slug":1385,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1386,"updatedAt":1386,"publishedAt":1387,"locale":22,"heading":16,"desc":16,"posts":1388},"czaf643kmvvab1xf4gx3ddh9","VPN","vpn","2026-05-16T10:03:45.455Z","2026-05-16T10:03:45.446Z",[1389],{"id":85,"documentId":86},{"id":940,"documentId":1391,"name":1392,"slug":1393,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1394,"updatedAt":1394,"publishedAt":1395,"locale":22,"heading":16,"desc":16,"posts":1396},"gpitv9ds3usb3p8j7sgajglb","SEO","seo","2026-05-16T10:33:46.002Z","2026-05-16T10:33:45.995Z",[1397],{"id":46,"documentId":47},{"id":979,"documentId":1399,"name":1400,"slug":1401,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1402,"updatedAt":1402,"publishedAt":1403,"locale":22,"heading":16,"desc":16,"posts":1404},"htsr27rbn93onqsys2gavt4m","Phpstorm","phpstorm","2026-05-16T10:33:46.959Z","2026-05-16T10:33:46.956Z",[1405],{"id":55,"documentId":56},{"id":1113,"documentId":1407,"name":1408,"slug":1409,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1410,"updatedAt":1410,"publishedAt":1411,"locale":22,"heading":16,"desc":16,"posts":1412},"l9ruh02w7yl3rvez05s8ndv7","Node.js","node-js","2026-05-16T10:33:47.947Z","2026-05-16T10:33:47.944Z",[1413],{"id":73,"documentId":74},{"id":1122,"documentId":1415,"name":1416,"slug":1417,"textcolor":16,"bgcolor":16,"published":17,"uri":16,"createdAt":1418,"updatedAt":1418,"publishedAt":1419,"locale":22,"heading":16,"desc":16,"posts":1420},"xkffo03bgoiimugiwqgryrx0","Крипта","kripta","2026-05-16T10:33:48.241Z","2026-05-16T10:33:48.237Z",[1421],{"id":88,"documentId":89}]