function SetToken($id) { $mysql = new MySQL(); $token = generateCode(); $mysql->UpdateString($this->NameBase, 'User', "token='" . $token . "'", "id='" . $id . "'"); return $token; }
function PutSVG($id, $Name, $data, $val) { $mysql = new MySQL(); if ($mysql->UpdateString($this->NameBase, "Maps", "name='" . $Name . "', data='" . $data . "'", "id=" . $id)) { file_put_contents($data, $val); conprint("PutSVG: " . $Name, "1"); return true; } }
function PutLink($id, $Id_OBJ) { $mysql = new MySQL(); if ($mysql->UpdateString($this->NameBase, "Link", "Id_OBJ='" . $Id_OBJ . "'", "id=" . $id)) { conprint("PutLINK: ", "1"); return true; } else { conprint("PutLINK: ", "0"); return false; } }
function ReloadeSmallProfile($Name, $Id_SP) { $mysql = new MySQL(); if ($mysql->UpdateString($this->NameBase, "SmallProfile", "name='" . $Name . "'", "id=" . $Id_SP)) { conprint("ReloadeSmallProfile: " . $Name, "1"); return true; } else { conprint("ReloadeSmallProfile " . $Name, "0"); return false; } }
function ReloadeSmallProfileOne($Id_SPD, $Text) { $mysql = new MySQL(); if (!empty($Text)) { $this->string = "text='" . $Text . "'"; return $mysql->UpdateString($this->NameBase, "SmallProfileData", $this->string, "id=" . $Id_SPD); } else { conprint("Нет данных для обновления SmallProfileData=" . $Id_SP, "0"); return false; } }
function ReloadeFullProfile() { if (!empty($this->Name) && !empty($this->Id_FP)) { $mysql = new MySQL(); if ($mysql->UpdateString("DataBase", "FullProfile", "name='" . $this->Name . "'", "id=" . $this->Id_FP)) { conprint("ReloadeFullProfile С ИМЕНЕМ: " . $this->Name, "1"); return true; } else { conprint("ReloadeFullProfile С ИМЕНЕМ " . $this->Name, "0"); return false; } } else { conprint("ReloadeFullProfile Id_FP или Name не задано", "0"); return false; } }