Просмотр файла smiliesgenerator/index.php

Размер файла: 3.01Kb
<?php
/////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                             //
//  GscorpySmilieGenerator                                                                         //
//  Current Version : 1.0.0                                                                    //
//  Author : Gscorpy                                                                          //
//  You you can redistribute it and/or modify this script but please always put author's name  //
//  Copyright (c) 2008 Gscorpy. All rights reserved.                                          //
//  Additional scripts can be found at http://gscorpy.net                              //
//  24.03.2008                                                                                 //
/////////////////////////////////////////////////////////////////////////////////////////////////


echo '<?xml version="1.0"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Smilie Generator</title>
<style type="text/css">
body{
font-weight : normal;
font-size : small;
font-family : Verdana, arial;
background-color : #ffffff;
color : #000000;
margin : 0 0 0 0;
}
a {
color : #0000ff;
}
p {
padding : 4px;
margin : 0 2px 0 0;
}
p.c {
text-align : center;
}
div {
margin : 0 2px 0 0;
}
div.footer {
padding : 1px;
text-align : center;
background-color : #eff3f6;
border : 1px dotted #afcddc;
}
div {
margin : 0 2px 0 0;
}
div.c {
padding : 1px;
text-align : center;
}
form {
margin : 2px;
}
form > fieldset {
border : 1px solid #cccccc;
}
input, textarea, select {
margin : 2px;
font-family : Verdana, arial;
font-size : 11px;
}
 </style>
</head>
<body>
<div class="c">
<?php
if(empty($_GET["f"])) $f='y1'; else  $f=$_GET["f"];
if(empty($_GET["e"])) $e='3'; else  $e=$_GET["e"];
if(empty($_GET["l"])) $l='29'; else  $l=$_GET["l"];
if(isset($f)&&isset($l)&&isset($e)) echo '<img src="sm_gen.php?f='.$f.'&amp;l='.$l.'&amp;e='.$e.'" alt="smilie"/><br/>
<a href="sm_gen.php?f='.$f.'&amp;l='.$l.'&amp;e='.$e.'">Download</a>';
include "funct.php";
?>
</div>
<form method="get" action="<? echo $_SERVER["PHP_SELF"]; ?>">
<div>
Create own smilie:<br/>
Face: <select name="f">
<?php
if (!empty($_GET["f"]))echo '<option value="'.$f.'">'.$f.'</option>'; else echo '<option value="">select</option>';
option("faces");
?>
</select><br/>
Lips: <select name="l">
<?php
if (!empty($_GET["l"]))echo '<option value="'.$l.'">'.$l.'</option>'; else echo '<option value="">select</option>';
option("lips");
?>
</select><br/>
Eyes: <select name="e">
<?php
if (!empty($_GET["e"]))echo '<option value="'.$e.'">'.$e.'</option>'; else echo '<option value="">select</option>';
option("eyes");
?>
</select><br/>
</div>
<input type="submit" value="Create" />
</form>
</body>
</html>