コード例 #1
0
ファイル: user.php プロジェクト: egozza/SVGmaps
 function SetToken($id)
 {
     $mysql = new MySQL();
     $token = generateCode();
     $mysql->UpdateString($this->NameBase, 'User', "token='" . $token . "'", "id='" . $id . "'");
     return $token;
 }
コード例 #2
0
ファイル: editsvg.php プロジェクト: egozza/SVGmaps
 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;
     }
 }
コード例 #3
0
ファイル: Link.php プロジェクト: egozza/SVGmaps
 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;
     }
 }
コード例 #4
0
ファイル: TypeObject.php プロジェクト: egozza/SVGmaps
 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;
     }
 }
コード例 #5
0
ファイル: object.php プロジェクト: egozza/SVGmaps
 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;
     }
 }
コード例 #6
0
ファイル: TypeObjectRep.php プロジェクト: egozza/SVGmaps
 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;
     }
 }