{include file='admin/arcade/header.html'} {include file='admin/arcade/menu.html'} {php} if ($_POST['submit']) { $shortname = $_POST['shortname']; $title = $_POST['title']; $file = $_POST['file']; $width = $_POST['width']; $height = $_POST['height']; $miniimage = $_POST['miniimage']; $stdimage = $_POST['stdimage']; $isreverse = $_POST['isreverse']; $description = $_POST['description']; $shortname = strip_tags($shortname); $shortname = trim($shortname); $title = strip_tags($title); $title = trim($title); $width = strip_tags($width); $width = trim($width); $file = strip_tags($file); $file = trim($file); $height = strip_tags($height); $height = trim($height); $miniimage = strip_tags($miniimage); $miniimage = trim($miniimage); $stdimage = strip_tags($stdimage); $stdimage = trim($stdimage); $isreverse = strip_tags($isreverse); $isreverse = trim($isreverse); if ($shortname == "") { echo "
Please enter a category name."; } else if ($title == "") { echo "
Please enter a valid title."; } else if ($description == "") { echo "
Please enter a valid description."; } else if ($file == "") { echo "
Please enter a valid .swf file name."; } else if ($miniimage == "") { echo "
Please enter a valid mini image name."; } else if ($stdimage == "") { echo "
Please enter a valid standard image name."; } else if ($isreverse == "") { echo "
Please enter a valid reverse score setting."; } else { $sql = "INSERT INTO `arcade_games` (shortname, title, description, file, width, height, miniimage, stdimage, isreverse) VALUES ('$shortname', '$title', '$description', '$file', '$width', '$height', '$miniimage', '$stdimage', '$isreverse')"; $result=mysql_query($sql) or die(mysql_error()); echo "Congratulations, your arcade game has been entered!"; } } echo"
In most cases, you will need to look at the
default install file (usually install.php or name.game.php) that
came with the game you are trying to install.
"; {/php} {include file='admin/arcade/footer.html'}