ob_start("ob_gzhandler");
//Professional Edition 2.3.1
//Code CopyRight 2005 - 2006 by Sean T.
//WebSite: stprojects.com
//E-Mail: info@stprojects.com
$step = $_POST['step'];
$filename = './';
if ($step==""){
$step="default";
}
function index() {
echo '
�Bienvenido!
Para empezar el procesamiento de un slogan publicitario para tu nombre, por favor tipo tu nombre en la forma. Tipo entra y entonces tu nuevo lema se engendrar� para usted.
';
echo '';
}
function step2($filename) {
//Format Info
$post = $_POST['name'];
$find = '/username/';
$file = "./core/slogans.php";
$quotes = file($file);
//Safty
$search = array ("''si", // Strip out javascript
"'<[\/\!]*?[^<>]*?>'si", // Strip out HTML tags
"'([\r\n])[\s]+'", // Strip out white space
"'&(quot|#34);'i", // Replace HTML entities
"'&(amp|#38);'i",
"'&(lt|#60);'i",
"'&(gt|#62);'i",
"'&(nbsp|#160);'i",
"'&(iexcl|#161);'i",
"'&(cent|#162);'i",
"'&(pound|#163);'i",
"'&(copy|#169);'i",
"'(\d+);'e"); // evaluate as php
$text_replace = array ("",
"",
"\\1",
"\"",
"&",
"<",
">",
" ",
chr(161),
chr(162),
chr(163),
chr(169),
"chr(\\1)");
$name = preg_replace($search, $text_replace, $post);
//make slogan
$string = $quotes[rand(0, sizeof($quotes)-1)];
$patterns[1] = $find;
$replacements[1] = $name;
$results = preg_replace($patterns, $replacements, $string);
$link = mysql_pconnect("mysql9.servage.net", "funstuff", "ineedfunstuffbaby");
if (!$link) {
die('');
}
mysql_select_db("funstuff", $link);
$sql = sprintf("INSERT INTO `slogan_sp_log` (`id` , `timestamp` , `ip` , `slogan`) VALUES ('', NOW( ) , '%s', '%s')",
mysql_real_escape_string(long2ip(ip2long($_SERVER['REMOTE_ADDR']))),
mysql_real_escape_string($results));
$sql2 = "UPDATE slogan_sp_counter SET count=(count + 1) WHERE id=1";
mysql_query($sql, $link);
mysql_query($sql2, $link);
//Main Text
echo '';
}
?>
¡El Oficial Eslogan Fabricante!
|
¡El Oficial Eslogan Fabricante! Edici�n Profesional 2.3
|
|
¡No la original y no el mejores, sino nosotros tenemos 359 lemas!
|
|
| |