This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require("inc/core.php"); | |
$row = $db->query("SELECT type,original FROM photos WHERE id =".$_GET['i']); | |
$row = $row->fetch_assoc(); | |
$loc = $row['original']; | |
if($type == "image/jpeg") { | |
echo $row['original']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_GET['a'] = "addalbum") { | |
} elseif($_GET['a'] = "manalbum") { | |
} elseif($_GET['a'] = "editalbum") { | |
} else { | |
echo "e"; | |
$gallery = $db->query("SELECT * FROM albums ORDER BY name ASC"); | |
echo "<table>"; | |
while($row = $gallery->fetch_assoc()) { | |
echo "<tr><td><a href=\"admin.php?p=gallery&a=editalbum&i=".$row['id']."\">Edit Details</a></td>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void PlayerInteract(BlockDamageEvent event) { | |
Player player = event.getPlayer(); | |
boolean enabledShovel = plugin.getShovelState(player); | |
Block block = event.getBlock(); | |
ItemStack itemInHand = event.getItemInHand(); | |
if(enabledShovel == true && itemInHand.getType() == org.bukkit.Material.GOLD_SPADE) { | |
if(block.getType() == org.bukkit.Material.SNOW || block.getType() == org.bukkit.Material.SNOW_BLOCK) { | |
event.setInstaBreak(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.done(function(data) { | |
// Whatever data is | |
if(data.redirect !== undefined) { | |
window.location = data.redirect; | |
} else if(data.error !== undefined) { | |
_error | |
.text(data.error) | |
.show(); | |
} | |
}) |