Commit 4e38f5b09ebe69353c3b3749d30e332613244dc5
1 parent
248e1b6b
Exists in
master
remoção de programas antigos
Showing
3 changed files
with
14 additions
and
10 deletions
Show diff stats
classesphp/classe_temas.php
@@ -1151,22 +1151,24 @@ function: pegadata | @@ -1151,22 +1151,24 @@ function: pegadata | ||
1151 | 1151 | ||
1152 | Retorna o valor do elemento DATA | 1152 | Retorna o valor do elemento DATA |
1153 | */ | 1153 | */ |
1154 | - function pegadata() | ||
1155 | - { | ||
1156 | - if(!$this->layer){return "erro";} | 1154 | + function pegadata(){ |
1155 | + if(!$this->layer){ | ||
1156 | + return "erro"; | ||
1157 | + } | ||
1157 | $metadata = $this->layer->getmetadata("editorsql"); | 1158 | $metadata = $this->layer->getmetadata("editorsql"); |
1158 | - if(strtolower($metadata) != "nao") | ||
1159 | - return $this->layer->data; | ||
1160 | - else | ||
1161 | - return "O layer não permite a alteracao do elemento DATA"; | 1159 | + if(strtolower($metadata) == "sim"){ |
1160 | + return $this->layer->data; | ||
1161 | + } | ||
1162 | + else{ | ||
1163 | + return "O layer não permite a alteracao do elemento DATA"; | ||
1164 | + } | ||
1162 | } | 1165 | } |
1163 | /* | 1166 | /* |
1164 | function: alteradata | 1167 | function: alteradata |
1165 | 1168 | ||
1166 | Altera o valor do elemento DATA | 1169 | Altera o valor do elemento DATA |
1167 | */ | 1170 | */ |
1168 | - function alteradata($data,$removemeta="nao") | ||
1169 | - { | 1171 | + function alteradata($data,$removemeta="nao") { |
1170 | if(!$this->layer){return "erro";} | 1172 | if(!$this->layer){return "erro";} |
1171 | $data = str_ireplace("delete","",$data); | 1173 | $data = str_ireplace("delete","",$data); |
1172 | $data = str_ireplace("insert","",$data); | 1174 | $data = str_ireplace("insert","",$data); |
@@ -1174,7 +1176,7 @@ Altera o valor do elemento DATA | @@ -1174,7 +1176,7 @@ Altera o valor do elemento DATA | ||
1174 | $data = str_ireplace("create","",$data); | 1176 | $data = str_ireplace("create","",$data); |
1175 | $data = str_ireplace("alter","",$data); | 1177 | $data = str_ireplace("alter","",$data); |
1176 | $metadata = $this->layer->getmetadata("editorsql"); | 1178 | $metadata = $this->layer->getmetadata("editorsql"); |
1177 | - if(strtolower($metadata) != "nao"){ | 1179 | + if(strtolower($metadata) == "sim"){ |
1178 | $this->layer->set("data",$data); | 1180 | $this->layer->set("data",$data); |
1179 | $this->layer->setMetaData("cache",""); | 1181 | $this->layer->setMetaData("cache",""); |
1180 | if($removemeta == "sim"){ | 1182 | if($removemeta == "sim"){ |
classesphp/parse_cgi.php
classesphp/proxy.php