--- /dev/null
+<?php
+
+namespace app\controllers;
+
+use yii\web\Controller;
+
+class ProfileController extends Controller
+{
+ public function actionIndex() { return $this->render('index'); }
+}
\ No newline at end of file
$return_array=[];
$return_array=outSelect($val,$name_id,$name_txt,$category_arr,0, 0,"",$mass_start);
-foreach($arrs2 as $ide => $vale) {
+foreach($arrs2 ?? [] as $ide => $vale) {
//echo"<br> ++ $ide => $vale ";
$return_array[$ide]=$vale;
}
if(empty($row["val"]) and !empty($row["select_val"])) $row["val"]=$row["select_val"];
-$image_config=json_decode($row["image_config"], true,JSON_UNESCAPED_UNICODE);
+$image_config=json_decode($row["image_config"] ?? '{"ext" : ""}', true,JSON_UNESCAPED_UNICODE);
$ext_1=explode(",",$image_config["ext"]);
/*file*/
if($pole_arr["type"]=="image") {
-$image_config=json_decode($forma[$name]["image_config"], true,JSON_UNESCAPED_UNICODE);
+$image_config=json_decode($forma[$name]["image_config"] ?? '{"ext" : "", "param" : []}', true,JSON_UNESCAPED_UNICODE);
$ext_1=$image_config["ext"];
$sel="";
}
-echo"><i>".$item[$name]."</i><br> $img </span>"; }
+echo"><i>".$item[$name]."</i><br> " . ($img ?? "") . " </span>"; }
/*file*/
/*button*/
if($pole_arr["type"]=="button") echo"<div class=\"col-12 col-12 text-center \">
-<button class=\"btn btn-lg btn-success ".$forma[$name]["class"]."\" type=\"submit\" name=$name value=\"".$forma[$name]["value"]."\" ".$forma[$name]["attr"].">
+<button class=\"btn btn-lg btn-success ".($forma[$name]["class"] ?? "")."\" type=\"submit\" name=$name value=\"".$forma[$name]["value"]."\" ".($forma[$name]["attr"] ?? "").">
".$forma[$name]["value"]."</button>
</div>";
-<?
-include_once ("startup.php");
-include_once("inc/db.php");
-include_once("inc/base_new.php");
-include_once("inc/design_new.php");
-include_once("inc/uni.php");
-include_once("inc/uni2.php");
-//include_once("inc/db_bz24.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
+include_once(dirname(__DIR__, 2) . "/inc/design_new.php");
+include_once(dirname(__DIR__, 2) . "/inc/uni.php");
+include_once(dirname(__DIR__, 2) . "/inc/uni2.php");
-$store_arr=outSelectsql("0","city_store","id","","name","WHERE 1","",[0=>"-не выбрано-"]);
+$store_arr=outSelectsql("0","city_store","id","","name","WHERE 1 = 1","",[0=>"-не выбрано-"]);
$astore_arr=outSelectsql("0","admin","id","","name","WHERE group_id='50'","",[0=>"-не выбрано-"]);
$group_arr=outSelectsql("0","admin_group","id","","name","WHERE id='35' or id='30' or id='40' or id='21' ","",[0=>"-не выбрано-"]);
-include_once"templates/bottom.php";
+//include_once"templates/bottom.php";
--- /dev/null
+<?php
+
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/profile/index.php';
\ No newline at end of file