-<?
+<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
-<?
+<?php
// необходимые HTTP-заголовки
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
-<?
+<?php
include_once("/var/www/www-root/data/www/bazacvetov24.ru/inc/db.php");
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
-<?
+<?php
function deal($deal,$field_tip='lead') {
global $arr_type, $db ;
-<?
+<?php
header('Access-Control-Allow-Origin: *');
define('SECRET_FILE', __DIR__ . '/token_amo__1234u5u6uvhvhfdjhrrtghhr2022.json');
define('SUBDOMAIN', 'bazacvetov24');
-<?
+<?php
function func_import_json($value,$tip,$max="") {
-<?
+<?php
global $mysqli;
-<?
+<?php
// форматированно выводит ошибки при добавлении данных через формы
-<?
+<?php
$store_arr["Ванеева 181"]=1;
$store_arr["Белинка"]=2;
-<?
+<?php
// обновляем заказ если его нет в системе вносим - заказ формируем из амо
-<?
+<?php
function import_cloudpayments($date="") {
global $db;
//exit();
// write new timestamp file compress_timestamp.php for php execution code
-$infofile='<?'.PHP_EOL;
+$infofile='<?php '.PHP_EOL;
$infofile.='$compress_stamp='.$unix_timestamp.';'.PHP_EOL;
$infofile.='?>'.PHP_EOL;
file_put_contents ('compress_timestamp.php',$infofile,LOCK_EX); //file loaded by ThreeColTemplate1.php to get unique stamp id
-<?
+<?php
$compress_stamp=1646055591;
?>
-<?
+<?php
/*
define('DB_HOST', '127.0.0.1');
define('DB_NAME', 'erp');
-<?
+<?php
$config = [
'DB_HOST' => '127.0.0.1',
'DB_USER' => 'bazacvetov24',
-<?
+<?php
ob_start();
?>
<!DOCTYPE html><html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0" />
-<title><? if(empty($_CRM_TITLE)) echo"ERP BioWork"; else echo $_CRM_TITLE; ?></title><link rel="stylesheet" href="/assets/css/css.css"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+<title><?php if(empty($_CRM_TITLE)) echo"ERP BioWork"; else echo $_CRM_TITLE; ?></title><link rel="stylesheet" href="/assets/css/css.css"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/assets/css/font-icons/font-awesome/css/font-awesome.min.css"><link rel="stylesheet" href="/assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
<link rel="stylesheet" href="/assets/css/font-icons/entypo/css/entypo.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
<link rel="stylesheet" href="/assets/css/bootstrap.css"><link rel="stylesheet" href="/assets/css/neon-core.css?v=1"><link rel="stylesheet" href="/assets/css/neon-theme.css"><link rel="stylesheet" href="/assets/css/neon-forms.css?v1"><link rel="stylesheet" href="/assets/css/custom.css">
-<?
+<?php
if(isset($CONFIG_SETKA["crm_color"])) $stl=$CONFIG_SETKA["crm_color"];
?><link href="/js/jquery-ui/jquery-ui.css" rel="stylesheet"><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script src="/js/jquery-ui/jquery-ui.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js"></script>
<base href="https://<?=$_CONFIG_SITE["name_site"]?>/"/>
-</head><?
+</head><?php
if(!empty($_SESSION["admin_id"])) {
<img src="/i/logo_sm.png" height="20" alt="" />
</a>
</div>
-<?
+<?php
$manager_id=(int)$_SESSION['manager_id'];
$admin_id=(int)$_SESSION['admin_id'];
-<?
+<?php
function crm_menu($time_cache=3200) {
global $light,$_CONFIG_SITE,$CONFIG_SETKA,$db;
ob_start();
?>
<!DOCTYPE html><html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0" />
-<title><? if(empty($_CRM_TITLE)) echo"CRM BioWork"; else echo $_CRM_TITLE; ?></title><link rel="stylesheet" href="/assets/css/css.css"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
+<title><?php if(empty($_CRM_TITLE)) echo"CRM BioWork"; else echo $_CRM_TITLE; ?></title><link rel="stylesheet" href="/assets/css/css.css"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/assets/css/font-icons/font-awesome/css/font-awesome.min.css"><link rel="stylesheet" href="/assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
<link rel="stylesheet" href="/assets/css/font-icons/entypo/css/entypo.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic">
<link rel="stylesheet" href="/assets/css/bootstrap.css"><link rel="stylesheet" href="/assets/css/neon-core.css?v=1"><link rel="stylesheet" href="/assets/css/neon-theme.css"><link rel="stylesheet" href="/assets/css/neon-forms.css?v1"><link rel="stylesheet" href="/assets/css/custom.css">
-<?
+<?php
if(isset($CONFIG_SETKA["crm_color"])) $stl=$CONFIG_SETKA["crm_color"];
if(!empty($stl)) echo"<link rel=\"stylesheet\" href=\"/assets/css/skins/$stl.css\">";
echo'<link rel="stylesheet" href="/assets/css/status.css?'.$csst.'">';
?><link href="/js/jquery-ui/jquery-ui.css" rel="stylesheet"><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script src="/js/jquery-ui/jquery-ui.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js"></script>
<base href="https://<?=$_CONFIG_SITE["name_site"]?>/"/>
-</head><?
+</head><?php
if(!empty($_SESSION["admin_id"])) {
$db::sql("UPDATE `admin` SET lasttime=NOW() WHERE `id` = :id LIMIT 1", ['id' => $_SESSION["admin_id"]]);
}
<img src="/i/logo_sm.png" height="20" alt="" />
</a>
</div>
-<?
+<?php
$manager_id=(int)$_SESSION['manager_id'];
$admin_id=(int)$_SESSION['admin_id'];
<ul id="main-menu2" class="main-menu navbar-nav"></ul>
</div>
</header>
-<?
+<?php
/*<div class="sidebar-menu">
<style>.modal {overflow-y: auto;}
.modal-open { overflow: auto;}</style>
-<?
+<?php
-<?
+<?php
function latlng2distance($gps, $gps2) {
$gpsarr=explode(",",$gps);
-<?
+<?php
//require_once dirname(__FILE__)."/image_bmp.php";
/*
Пример использования:
-<?
+<?php
function get_export_id($export_val, $entity="admin", $export_id=1) {
global $db,$arr__export;
if(empty($arr__export["$entity$export_id"])) {
-<?
+<?php
require "startup.php";
if(!is_administrator()) header("Location: index.php");
if($_SESSION['group_id']==0) header("Location: index.php");
</body>
</html>
-<?
+<?php
Notice: probably you should'nt use all of this in same script :)
-<?phpb
+<?php
//include only that one, rest required files will be included from it
include "qrlib.php"
-<?
+<?php
$_CONFIG["salary"]["normal_count_shift"]=[25=>15,30=>15,35=>15,50=>15];
-<?
+<?php
function make_links_clickable($text)
{
-<?
+<?php
// округляет до определенного числа
function ceilCoefficient($number, $rate = 1)
return (string) "{$this->url}/xml/";
}
- protected static function parseXml($xml)
+ protected function parseXml($xml)
{
$domXml = simplexml_load_string($xml);
$arr = array();
return (string) "{$this->url}/xml/state.php";
}
- protected static function parseXml($xml)
+ protected function parseXml($xml)
{
$domXml = simplexml_load_string($xml);
$arr = array();
return (string) "{$this->url}/xml/balance.php";
}
- protected static function parseXml($xml)
+ protected function parseXml($xml)
{
$domXml = simplexml_load_string($xml);
$arr = array();
$this->item['end'] = $end;
}
- protected static function parseXml($xml)
+ protected function parseXml($xml)
{
$domXml = simplexml_load_string($xml);
$arr = array();
-<?
+<?php
class Thumbs
{
public function __construct($filename)
-<?
+<?php
function store_select($form=1,$pole_name="id",$store_all=0) {
global $db;
});
});
</script>
-<?
+<?php
}
-<?
+<?php
$_CONFIG["entity_arr"]=array(
"lead"=>array("name"=>"Сделки/заказы", "table"=>"orders_amo"),
"client"=>array("name"=>"Клиент", "table"=>"contacts","type_id"=>0),
-<?
+<?php
function connect_mysql_crm(){
global $_CONFIG_SITE;
-<?
+<?php
function upload_file($name,$check_id,$id,$param=array("path"=>"data/{name}","ext"=>array("jpg"),"resizeimg"=>array("image_sm"=>array("path"=>"data/{name}","width"=>1300,"height"=>1300)))) {
global $_CONFIG_SITE, $db,$sql_table_image, $return_mess;
$error="";
</div>
</form>
- <?
+ <?php
-<?
+<?php
include_once("inc/db.php");
include_once("inc/base_new.php");
-<?
+<?php
include_once ("startup.php");
include_once("inc/db.php");
include_once("inc/base_new.php");
-<?
+<?php
include_once ("startup.php");
include_once("inc/db.php");
include_once("inc/base_new.php");
</div>
</div>
-<?
+<?php
include_once"templates/bottom.php";
-<?
+<?php
include_once("startup.php");
include_once("inc/db.php");
include_once("inc/base_new.php");
-<?
+<?php
include_once("startup.php");
include_once("inc/db.php");
include_once("inc/base_new.php");
<span class="fa fa-heart text-danger">База Цветов 24.ру</span>
-<?
+<?php
global $tstart,$light,$modul,$act, $db, $CONFIG_SETKA;
if(isset($CONFIG_SETKA["crm_color"])) $light=$CONFIG_SETKA["crm_color"];
$totaltime=round((microtime(1)-$tstart),4);
<script src="/azea/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
-<?
+<?php
echo'<script src="/cache/menutop_'.$_SESSION["admin_id"].'.js?r='.date("YdmHi").'"></script>
<script src="/azea/assets/plugins/sidemenu/sidemenu.js?r=12"></script>';
-<?
+<?php
if(empty($_SESSION["admin_id"])) { header("Location: /login/login2/"); exit(); }
global $tstart,$light,$modul,$act, $db, $CONFIG_SETKA,$_CONFIG;
<!--Favicon -->
-<?
+<?php
// <link rel="icon" href="/azea/assets/images/brand/favicon.ico" type="image/x-icon"/>
require_once('inc/compress_timestamp.php'); //load timestamp created by compress.php module
//sets field $compress_stamp=unix_timestamp
</head>
- <body class="app sidebar-mini<? if($_SESSION["teme_color"]=="dark") echo" dark-mode"; ?>
+ <body class="app sidebar-mini<?php if($_SESSION["teme_color"]=="dark") echo" dark-mode"; ?>
- <?
+ <?php
// if($_SESSION["sidenav"]=="collapse") echo" sidenav-toggled";
// desctop hide menu
<ul class="side-menu app-sidebar3 noprint" id="main_menu_l">
-<?
+<?php
if(empty($_SESSION["lasttime"]) or ( $_SESSION["lasttime"] <(time()-20) ) ) {
$db::sql("UPDATE admin set lasttime=NOW() WHERE id=?", $_SESSION["admin_id"]);
</form>
</div><!-- SEARCH -->
- <? if(is_mobile()) { ?>
+ <?php if(is_mobile()) { ?>
<div class="d-flex order-lg-2 ms-auto"> <span class="mt-4 header-avatar1">
<img src="/<?=$_SESSION["avatarka"]?>" height=40 alt="img" class="avatar">
</span></div>
<svg xmlns="http://www.w3.org/2000/svg" class="header-icon" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"/></svg><span class="pulse "></span>
</a>
</div> -->
- <? } ?>
+ <?php } ?>
<div class="d-flex order-lg-2 ms-auto main-header-end">
<button class="navbar-toggler navresponsive-toggler d-md-none ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent-4" aria-controls="navbarSupportedContent-4" aria-expanded="true" aria-label="Toggle navigation">
-<? /*
+<?php /*
<!-- Theme-Layout
<div class="dropdown header-fullscreen d-flex" >
<a class="nav-link icon full-screen-link p-0" id="fullscreen-button">
<div class="small text-muted">3 часа назад</div>
</div>
</a>
- <? /* <a href="email-inbox.html" class="dropdown-item border-bottom d-flex ps-4">
+ <?php /* <a href="email-inbox.html" class="dropdown-item border-bottom d-flex ps-4">
<div class="notifyimg text-secondary bg-secondary-transparent border-secondary"> <i class="fa fa-shopping-cart"></i></div>
<div>
<span class="fs-13">Order Placed</span>
-<?
+<?php
if(empty($_SESSION["admin_id"])) { header("Location: /login/login2/"); exit(); }
global $tstart,$light,$modul,$act, $db, $CONFIG_SETKA;?>
<!DOCTYPE html>
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
<title>ERP</title>
-<?
+<?php
require_once('/var/www/mebel-online/data/www/erp.bazacvetov24.ru/inc/compress_timestamp.php'); //load timestamp created by compress.php module
//sets field $compress_stamp=unix_timestamp
// if (stripos($_SERVER['HTTP_ACCEPT_ENCODING'],'GZIP')!==false) $gz='gz';else $gz=null;
]
])->label(false)); ?>
-<? /*
+<?php/*
<?php PrintBlockHelper::printBlock('Статусы групп уроков', $filterForm->field($filterModel, 'lesson_group_status')
->widget(Select2::class, [
'data' => $lessonGroupStatuses,