This file contains 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 | |
$par = isset($_POST['params'])?$_POST['params']:[]; | |
print send_otrs($_POST['method'], $par); | |
function send_otrs($method, $data) | |
{ | |
$data['UserLogin'] = 'oktell'; | |
$data['Password'] = 'oktell'; | |
$ch = curl_init('http://192.168.5.101/otrs/nph-genericinterface.pl/Webservice/oktell/' . $method); |
This file contains 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
package Kernel::GenericInterface::Invoker::Oktell::TicketStateChange; | |
use strict; | |
use warnings; | |
use Kernel::System::VariableCheck qw(IsString IsStringWithData); | |
use Kernel::System::ObjectManager; | |
local $Kernel::OM = Kernel::System::ObjectManager->new(); | |
our $ObjectManagerDisabled = 1; |
This file contains 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
var __users = {} | |
var otrs = { | |
ticket: { | |
get: function (id, callback) { | |
var method = 'ticket/get' | |
var params = { | |
'TicketID': id, | |
'DynamicFields': 1, | |
'AllArticles': 1 | |
} |
This file contains 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
var options = $('select#routeNumber option'); | |
var arr = options.map(function (_, o) { | |
return {t: $(o).text(), v: o.value, r:$(o).prop('-data-role'),n:$(o).prop('-data-name')}; | |
}).get(); | |
arr.sort(function (o1, o2) { | |
return parseInt(o1.t) > parseInt(o2.t) ? 1 : parseInt(o1.t) < parseInt(o2.t) ? -1 : 0; | |
}); | |
options.each(function (i, o) { | |
o.value = arr[i].v; | |
$(o).text(arr[i].t); |
This file contains 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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerAdmin webmaster@localhost | |
ServerName lk.imaginpeople.com | |
DocumentRoot /var/www/imaginpeople.com/public | |
SetEnv custom_ROOT /var/www/imaginpeople.com | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None |
This file contains 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
[Thu, 19 Nov 2015 07:12:06.980016 +0300] M#43582 \PHPDaemon\Core\Pool:Servers\WebSocket up. | |
[Thu, 19 Nov 2015 07:12:06.994425 +0300] M#43582 \PHPDaemon\Core\Pool:\PHPDaemon\Servers\WebSocket\Pool up. | |
[Thu, 19 Nov 2015 07:12:07.015732 +0300] W#43584 \MyWebSocket up. | |
[Thu, 19 Nov 2015 07:12:08.216939 +0300] Spawning 1 worker(s) | |
[Thu, 19 Nov 2015 07:12:08.533961 +0300] W#43586 \MyWebSocket up. | |
[Thu, 19 Nov 2015 07:12:12.417157 +0300] W#43584 crashed by error 'Class 'Test' not found' at /var/www/rijen/1a/server/MyWebSocket.php:78 | |
[Thu, 19 Nov 2015 07:12:12.437178 +0300] Spawning 1 worker(s) | |
[Thu, 19 Nov 2015 07:12:12.753582 +0300] W#43589 \MyWebSocket up. |
This file contains 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
{ | |
"Ticket": [ | |
{ | |
"DynamicField_ProcessManagementActivityID": null, | |
"GroupID": "8", | |
"CreateTimeUnix": "1447928049", | |
"OwnerID": "3", | |
"Title": "Заявитель: TESTzzz", | |
"ArchiveFlag": "n", | |
"Age": 52, |
This file contains 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
ID TICKET_ID ARTICLE_TYPE_ID ARTICLE_SENDER_TYPE_ID A_FROM A_REPLY_TO A_TO A_CC A_SUBJECT A_MESSAGE_ID A_MESSAGE_ID_MD5 A_IN_REPLY_TO A_REFERENCES A_CONTENT_TYPE A_BODY INCOMING_TIME CONTENT_PATH VALID_ID CREATE_TIME CREATE_BY CHANGE_TIME CHANGE_BY | |
3323 1428 1 1 s.rijen@yandex.ru Информация о картах -- NULL text/plain; charset=utf8 fsdfds 1447925300 2015/11/19 1 2015-11-19 15:28:20 16 2015-11-19 15:28:20 16 |
This file contains 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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateDownloadsStructure extends Migration { | |
/** | |
* Run the migrations. | |
* |
This file contains 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
Received: from smtp3m.mail.yandex.net ([77.88.61.130]) | |
by mxback3m.mail.yandex.net with LMTP id pCgepl8i | |
for <s.rijen@ya.ru>; Wed, 25 Nov 2015 08:44:59 +0300 | |
Received: from smtp3m.mail.yandex.net (localhost [127.0.0.1]) | |
by smtp3m.mail.yandex.net (Yandex) with ESMTP id DD40027A0113 | |
for <s.rijen@ya.ru>; Wed, 25 Nov 2015 08:44:59 +0300 (MSK) | |
Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id t29N84WMSS-ix1eJNfH; | |
Wed, 25 Nov 2015 08:44:59 +0300 | |
(using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) | |
(Client certificate not present) |
OlderNewer