if (!$q->setAuthUser()) { unset($AuthUser); die; } // require_once '../config/config.php'; //подключаем конфиг бд require_once '../nodes/autotags_add.php'; //теговая система require_once '../lib/lang/rus.php'; //семантика блока //GET Setup for Video parameters GET_Setup_Video(); //Выдача в зависимости от юзера if (RoleState() == 1 or RoleState() == 2) { $isStack = "_stack"; } if (RoleState() == 0) { $isStack = ""; } //if var $getVideo is ok, get video data from base to variable set if (isset($getVideo)) { $q->getVideo($getVideo, $isStack, "SetGlobals"); } //Предварительные переменные $dateNow = date('Y-m-d H:i:s'); $errorCount = 0; $errorInfo = ""; //Перевод данных массивов в строки $getBroadcast_Type = implode(",", $getBroadcast_Type); $getMotion_Type = implode(",", $getMotion_Type); ?>
require_once "../lib/login.php"; // классы ситемы login $login = new Login(); require_once '../lib/vimeo/vimeo.php'; //классы для работы с vimeo API require_once '../nodes/autotags_add.php'; //теговая система require_once '../lib/lang/rus.php'; //семантика блока $Input = array("getTitle" => $_POST['title'], "getAuthors" => $_POST['authors'], "getLocation" => $_POST['location'], "getYear" => $_POST['year'], "getBrand" => $_POST['brand'], "getTv_Channel" => $_POST['tv'], "getMotion_Type" => $_POST['motion'], "getBroadcast_Type" => $_POST['broadcast'], "getTempo" => $_POST['tempo'], "getRating" => $_POST['rating'], "getCost" => $_POST['cost'], "getTags_SA" => $_POST['sa'], "getTags_Fashion" => $_POST['fashion'], "getTags_Arts" => $_POST['arts'], "getTags_Music" => $_POST['music'], "getTags_Others" => $_POST['tags'], "getBy_User" => $_POST['by_user'], "getVideo" => $_POST['video'], "getToken" => $_POST['_token']); extract(SecureVars($Input), EXTR_OVERWRITE); if (!$q->setAuthUser()) { unset($AuthUser); } // set-unset $AuthUser $Role = RoleState(); if ($Role == 1 or $Role == 2) { $isStack = "_stack"; } if ($Role == 0) { $isStack = ""; } //Предварительные переменные $dateNow = date('Y-m-d H:i:s'); $errorCount = 0; $errorInfo = ""; //---------Base Routing // Situation 0: no code or isVideoExist or even getVideo if (empty($getCode) or $isVideoExist > 0) { if (!isset($getVideo)) { $ps = "(0)setDefault";