using System.Collections; using System.Collections.Generic; using UnityEngine; using Random = UnityEngine.Random; using System.Globalization; public class ThisOnly : MonoBehaviour { #if UNITY_WEBGL && !UNITY_EDITOR public static string getpath(){ /*_G.path="https://software.ciemetric.com/"; if(_G.PATH=="free")_G.path="https://ukitchenit.com/"; if(_G.PATH=="free_test")_G.path="https://ukitchenit.com/";*/ //if(_G._file != "" && _G._file != null)_P.PathServer="../"; return _P.PathServer; } #else public static string getpath() { /*_G.path="https://software.ciemetric.com/"; if(_G.PATH=="free")_G.path="https://ukitchenit.com/"; if(_G.PATH=="free_test")_G.path="https://ukitchenit.com/"; //_G.path = "https://ciemetric-public.s3.ca-central-1.amazonaws.com/ALIWEBGL/"; //if(_G.PATH=="free")_G.path= "https://ciemetric-public.s3.ca-central-1.amazonaws.com/ALIWEBGL/";*/ return _P.PathServer; } #endif public static bool SinkCheck(int nO) { bool Ok = false; //string sv = Get.CabValue(_G.OBJs[nO][1], 30); string sv = Get.LibraryValue(_G.OBJs[nO][1], CsvHeaders.Allow_Sink, DataTypes.Cabinet); if (_P.SinkOnly) { if (sv == "sink" || sv == "Sink" || sv == "y") Ok = true; } else { Ok = true; } return Ok; } public static bool ResizeCheck(string cat) { bool Ok = false; if (cat == "cabi" || cat == "deco") { Ok = true; } return Ok; } public static string getUrlPDF() { //_P.PathServer = getpath(); //_P.PathServer="https://software.ciemetric.com/"; return "https://ukitchenit.com/" + "fpdf/pdfset.php";//+ "?" + Random.value.ToString(); } public static string getUrlPDFPLAN() { //_P.PathServer = getpath(); //_G.path = "https://ciemetric-public.s3.ca-central-1.amazonaws.com/ALIWEBGL/"; //return _P.PathServer + "fpdf/pdfsetplan.php"+ "?" + Random.value.ToString(); return "https://ukitchenit.com/"+ "fpdf/pdfsetplan.php"+ "?" + Random.value.ToString(); //return _G.path+"fpdf/pdfsetplantest.php"+"?"+Random.value.ToString(CultureInfo.InvariantCulture); // return _G.path+"fpdf/pdfsetplan.php"+"?"+Random.value.ToString(CultureInfo.InvariantCulture); } public static string geturlSaveWeb() { //_P.PathServer = getpath(); return _P.PathServer + "members/savecloud.php";//new } public static string geturlLoadweb() { // _P.PathServer = getpath(); return _P.PathServer + "members/" + _G.PATH + "/cloud/";//new } public static string geturlIncrease() { //_P.PathServer = getpath(); return _P.PathServer + "members/" + _G.PATH + "/increasejn.php" + "?" + Random.value.ToString(CultureInfo.InvariantCulture); } public static string geturljobNumber() { //_P.PathServer = getpath(); return _P.PathServer + "members/" + _G.PATH + "/jobnumber/jn.txt" + "?" + Random.value.ToString(CultureInfo.InvariantCulture); } public static string geturlaccesCode() { //_P.PathServer = getpath(); return _P.PathServer + "members/" + _G.PATH + "/jobnumber/access.txt" + "?" + Random.value.ToString(CultureInfo.InvariantCulture); } public static bool UIT(){ //if(_G.PATH=="free_test" || _G.PATH=="free" || _G.PATH=="kwizine" || _G.PATH=="kabsolution" || _G.PATH=="baindepot" || _G.PATH=="kitchensdepot"){_G.UIT=true;return true;} _G.UIT=true; return true; } }