General fixes

+Fixed a little mistake

NOTE: In order to play this version of the game properly, you need to refresh your browser cache
This commit is contained in:
iopietro
2018-06-21 15:50:49 +02:00
parent fc562d92dd
commit 10de3dd1b3
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -48,6 +48,6 @@ $artifactInfo = Artifacts::getArtifactInfo($artifact);
</table>
<?php
if($village['owner'] != 3) echo '<a href="admin.php?p=returnArtifact&artid='.$artifact['id'].'">Return to Natars</a>';
if($village['owner'] != 3) echo '<a href="admin.php?action=returnArtifact&artid='.$artifact['id'].'">Return to Natars</a>';
?>
+6 -5
View File
@@ -413,11 +413,12 @@ if (!empty($_GET['p'])) {
function inaktiv() {event.srcElement.className='fl2'; }
function del(e,id){
if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
if(e == 'oas'){ var conf = confirm('Dou you really want to delete oasis id '+id+'?'); }
if(conf){return true;}else{return false;}
if(e == 'arti'){ var conf = confirm('Dou you really want delete artifact id '+id+'?'); }
if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
if(e == 'oas'){ var conf = confirm('Dou you really want to delete oasis id '+id+'?'); }
return conf;
}
</script>
<script type="text/javascript">
+2 -1
View File
@@ -43,9 +43,10 @@ function inaktiv() {event.srcElement.className='fl2'; }
function del(e,id){
if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
if(e == 'arti'){ var conf = confirm('Dou you really want delete artifact id '+id+'?'); }
if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
if(conf){return true;}else{return false;}
return conf;
}
</script>
+3 -3
View File
@@ -7299,7 +7299,7 @@ References: User ID/Message ID, Mode
return (isset($cachedValue[$type]) ? $cachedValue[$type] : []);
}
$q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref ORDER BY size";
$q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND del = 0 ORDER BY size";
$result = $this->mysqli_fetch_all(mysqli_query($this->dblink,$q));
// cache all types and return the requested one
@@ -7394,8 +7394,8 @@ References: User ID/Message ID, Mode
function deleteArtifact($id){
list($id) = $this->escape_input((int) $id);
$q = "UPDATE " . TB_PREFIX . "artefacts WHERE id = $id SET del = 1";
$q = "UPDATE " . TB_PREFIX . "artefacts SET del = 1 WHERE id = $id";
return mysqli_query($this->dblink, $q);
}