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 | |
function setndToTelegram($titleMsg, $senderName, $senderPhone, $yourToken, $yourChatId) | |
{ | |
$token = $yourToken;//"vapiummoscow";//"<ВАШ ТОКЕН>"; | |
$chat_id = $yourChatId;//"ls25081990";//"<ВАШ ID чата>"; | |
//$values = $hook->getValues(); | |
#Получаем название формы | |
//$formName = $modx->getOption('formName', $formit->config, 'form-'.$modx->resource->get('id')); |
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
<div class="chat-message-form"> | |
<?php | |
$user = JFactory::getUser(); | |
if(in_array('2', $user->groups)) { // check for group with id: 2 | |
?> | |
<form action="#"> | |
<input class="chat-new-message" name="new-message" type="text" placeholder="Напишите сообщение" /> | |
<button class="chat-send-message" id="mod-chat-btn" type="button"></button> | |
</form> | |
<?php |
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
<form action="#"> | |
<input type="hidden" name="Username" id="mod-chat-username" value="<?php echo JFactory::getUser()->get('username'); ?>"> | |
<input class="chat-new-message" name="new-message" id="mod-chat-message" type="text" placeholder="Напишите сообщение" /> | |
<button class="chat-send-message" id="mod-chat-btn" type="button"></button> | |
</form> |
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 | |
//Если работаем внутри модуля или компонента | |
echo JText::_('MOD_LOGIN_VALUE_USERNAME'); //Просто указываем название свойства и получаем занчение | |
?> |
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
{ | |
"server":{ | |
"ip":"78.24.217.121", | |
}, | |
"projects":[ | |
"name":"GabeCoin", | |
"type":"Game", | |
"serverDir":"/home/WebSofter/web/test.websofter.ru/public_html/game/", | |
"modules":[ | |
"mod_ws_roullete":{"dir":"modules/mod_ws_roullete"}, |
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
[ | |
{ | |
"name":"netstat --tcp --listening --program", | |
"description":"Выводит PID всех запущенных процессов" | |
}, | |
{ | |
"name":"kill %pid%", | |
"description":"Убивает процесс по номеру PID" | |
}, | |
{ |
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
echo gmdate("H:i:s", 685); |
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
$(document).ready(function(){ | |
$( document.body ).on( 'click', '#datapicker', function() { | |
//alert(""); | |
$(this).datepicker({showOn:'focus'}).focus(); | |
}); | |
}(jQuery)); |
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 disabledDays = ["1-10-2017","5-10-2017","10-10-2017","11-10-2017","15-10-2017","7-10-2017"]; | |
/* utility functions */ | |
function nationalDays(date) { | |
var m = date.getMonth(), d = date.getDate(), y = date.getFullYear(); | |
//console.log('Checking (raw): ' + m + '-' + d + '-' + y); | |
for (i = 0; i < disabledDays.length; i++) { | |
if($.inArray((m+1) + '-' + d + '-' + y,disabledDays) != -1 || new Date() > date) { | |
//console.log('bad: ' + (m+1) + '-' + d + '-' + y + ' / ' + disabledDays[i]); |
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
#Хедер | |
.navbar-header | |
.nav | |
.navbar-nav | |
#Контент | |
.container | |
.row | |
.col- [offset-] | |
.col-sm-[offset-] | |
.col-md-[offset-] |
OlderNewer