[B][URL="http://www.google.com/webhp?hl=en"]Google[IMG]http://www.google.com/images/nav_logo3.png[/IMG][/URL][/B]
[URL="http://www.google.com/advanced_search?q=php&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw"]Advanced Search[/URL]
[URL="http://www.google.com/preferences?q=php&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw"]Preferences[/URL]
[B]Web[/B] [URL="http://books.google.com/books?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=wOH&q=php&oe=UTF-8&um=1&ie=UTF-8&sa=N&tab=wp&ei=QkagSerTKJj-NKyC1ecL&oi=property_suggestions&resnum=0&ct=property-revision&cd=1"]Books[/URL] [URL="http://www.google.com/codesearch?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=wOH&q=php&oe=UTF-8&um=1&ie=UTF-8&sa=N&tab=wk&ei=QkagSerTKJj-NKyC1ecL&oi=property_suggestions&resnum=0&ct=property-revision&cd=2"]Code[/URL] [URL="http://blogsearch.google.com/blogsearch?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=wOH&q=php&oe=UTF-8&um=1&ie=UTF-8&sa=N&tab=wb&ei=QkagSerTKJj-NKyC1ecL&oi=property_suggestions&resnum=0&ct=property-revision&cd=3"]Blogs[/URL] [URL="http://groups.google.com/groups?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=wOH&q=php&oe=UTF-8&um=1&ie=UTF-8&sa=N&tab=wg&ei=QkagSerTKJj-NKyC1ecL&oi=property_suggestions&resnum=0&ct=property-revision&cd=4"]Groups[/URL]
Results [B]1[/B] - [B]10[/B] of about [B]9,440,000,000[/B] for [B]php[/B] [[URL="http://www.google.com/url?q=http://www.answers.com/php&r=67&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=dict&ct=d&usg=AFQjCNF2sqgg2JE_qvrNom5KiBJp-chXrA"]definition[/URL]]. ([B]0.06[/B] seconds)
[B]Sponsored Links[/B]
[LIST=1]
[*][B][URL="http://www.google.com/aclk?sa=l&ai=CyLWTQkagSablKZjkM7PLiYgP56i9YpvnvK8Ipdj9ChABILZUKAJQrMOAufv_____AWDJnveJmKT0EqABn5Ge_wPIAQGqBBZP0EBMmyKnddZogkmpfBX_PcJY3upD&num=1&sig=AGiWqtzzauXHT9Eo434Rs2r_a7JlbTuqkw&q=http://www.zend.com/"]Zend - The [B]PHP[/B] Company[/URL][/B]
Quickly Build, Deploy & Effectively
Manage [B]PHP[/B] Apps that Can Scale.
Zend.com/[B]PHP[/B]
[*][B][URL="http://www.google.com/aclk?sa=l&ai=CS0VZQkagSablKZjkM7PLiYgPnqHTIZDdlusFuI70BBACILZUKAJQmJmHr_v_____AWDJnveJmKT0EqAB5N6J_wPIAQGqBBZP0AAqryKkddZogkmpfBX_PcJY3upD&num=2&sig=AGiWqtxaeOojFsxMbKwquv1N2uF_YaBxUA&q=http://phphtmledit.com/"][B]PHP[/B] Online HTML Editor[/URL][/B]
Leading Online HTML Editor for [B]PHP[/B]
Fast, Easy and Reliable. Try Demo!
[B]php[/B]htmledit.com
[/LIST]
[B]Search Results[/B]
[LIST=1]
[*][B][URL="http://us.php.net/"][I]PHP: Hypertext Preprocessor[/I][/URL][/B]
Dec 4, 2008 [B]...[/B] [I]PHP[/I] is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. [B]...[/B]
us.[B]php[/B].net/ - 38k - [URL="http://74.125.95.132/search?q=cache:nYEPrG8YR4EJ:us.php.net/+php&hl=en&ct=clnk&cd=1&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:us.php.net/"]Similar pages[/URL]
[*][B][URL="http://www.php.net/"][I]PHP: Hypertext Preprocessor[/I][/URL][/B]
Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic websites: native APIs to Apache and [B]...[/B]
[URL="http://www.%3Cb%3Ephp%3C/b%3E"]www.[B]php[/B][/URL].net/ - 38k - [URL="http://74.125.95.132/search?q=cache:cdtJ0E-0ieIJ:www.php.net/+php&hl=en&ct=clnk&cd=2&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.php.net/"]Similar pages[/URL]
[*][B][URL="http://www.php.net/downloads.php"][I]PHP[/I]: Downloads[/URL][/B]
Most Linux distributions come with [I]PHP[/I] these days, so if you do not want to compile your own, go to your distribution's download site. [B]...[/B]
[URL="http://www.%3Cb%3Ephp%3C/b%3E"]www.[B]php[/B][/URL].net/downloads.[B]php[/B] - 10k - [URL="http://74.125.95.132/search?q=cache:FxgAY1NcXMQJ:www.php.net/downloads.php+php&hl=en&ct=clnk&cd=3&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.php.net/downloads.php"]Similar pages[/URL]
[URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=+site:www.php.net+php"]More results from www.php.net »[/URL]
[*][B][URL="http://en.wikipedia.org/wiki/PHP"][I]PHP[/I] - Wikipedia, the free encyclopedia[/URL][/B]
[I]PHP[/I] is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be [B]...[/B]
en.wikipedia.org/wiki/[B]PHP[/B] - 167k - [URL="http://74.125.95.132/search?q=cache:-SAKR_Di1LIJ:en.wikipedia.org/wiki/PHP+php&hl=en&ct=clnk&cd=4&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:en.wikipedia.org/wiki/PHP"]Similar pages[/URL]
[*][B][URL="http://www.w3schools.com/PHP/DEfaULT.asP"][I]PHP[/I] Tutorial[/URL][/B]
[I]PHP[/I] is a powerful server-side scripting language for creating dynamic and [B]...[/B] At W3Schools you will find complete references of all [I]PHP[/I] functions: [B]...[/B]
[URL="http://www.w3schools.com/"]W3Schools Online Web Tutorials[/URL][B]PHP[/B]/DEfaULT.asP - 26k - [URL="http://74.125.95.132/search?q=cache:lAcLhNXmgPAJ:www.w3schools.com/PHP/DEfaULT.asP+php&hl=en&ct=clnk&cd=5&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.w3schools.com/PHP/DEfaULT.asP"]Similar pages[/URL]
[*][B][URL="http://www.php.com/"][I]PHP[/I] | [I]Parents Helping Parents[/I][/URL][/B]
Feb 17, 2009 [B]...[/B] Helping children with special needs receive the love, hope, respect and services they need to achieve their full potential by strengthening [B]...[/B]
[URL="http://www.%3Cb%3Ephp%3C/b%3E"]www.[B]php[/B][/URL].com/ - 12k - [URL="http://74.125.95.132/search?q=cache:ZB-zYYjslDMJ:www.php.com/+php&hl=en&ct=clnk&cd=6&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.php.com/"]Similar pages[/URL]
[*][B][URL="http://www.phpbuilder.com/"]PHPBuilder.com, the best resource for [I]PHP[/I] tutorials, templates [B]...[/B][/URL][/B]
Feb 19, 2009 [B]...[/B] PHPBuilder.com, the resource for [I]PHP[/I] tutorials, templates, [I]PHP[/I] manuals, content management systems, scripts, classes and more for the [I]PHP[/I] [B]...[/B]
[URL="http://www.%3Cb%3Ephp%3C/b%3E"]www.[B]php[/B][/URL]builder.com/ - 69k - [URL="http://74.125.95.132/search?q=cache:GU8RrycHivsJ:www.phpbuilder.com/+php&hl=en&ct=clnk&cd=7&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.phpbuilder.com/"]Similar pages[/URL]
[*][B][URL="http://www.hotscripts.com/category/php/"][I]PHP[/I] | Hot Scripts[/URL][/B]
Directory which lists free and commercial scripts for webmasters to download.
[URL="http://www.hotscripts.com/category/"]| Hot Scripts[/URL][B]php[/B]/ - 24k - [URL="http://74.125.95.132/search?q=cache:K9HtoSsETa8J:www.hotscripts.com/category/php/+php&hl=en&ct=clnk&cd=8&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.hotscripts.com/category/php/"]Similar pages[/URL]
[*][B][URL="http://php.resourceindex.com/"]The [I]PHP[/I] Resource Index[/URL][/B]
Site with complete script, code snippets, documentation and other [I]PHP[/I] related resources. In affiliation with cgi-resources.com Around 700 entries.
[B]php[/B].resourceindex.com/ - 16k - [URL="http://74.125.95.132/search?q=cache:oa9qRaYJWesJ:php.resourceindex.com/+php&hl=en&ct=clnk&cd=9&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:php.resourceindex.com/"]Similar pages[/URL]
[*][B][URL="http://www.zend.com/"][I]PHP[/I] Web Application Server - [I]PHP[/I] Developer tools - [I]PHP[/I] Training [B]...[/B][/URL][/B]
Zend provides [I]PHP[/I] programming platform, [I]PHP[/I] development & Production tools, and [I]PHP[/I] Training & Certification to enable delivery of business-critical [B]...[/B]
[URL="http://www.zend.com/"]PHP Web Application Server - PHP Developer tools - PHP Training & Certification - Zend.com[/URL] - 28k - [URL="http://74.125.95.132/search?q=cache:YTYgOcvx92kJ:www.zend.com/+php&hl=en&ct=clnk&cd=10&gl=us&client=firefox-a"]Cached[/URL] - [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=related:www.zend.com/"]Similar pages[/URL]
[*][B][URL="http://books.google.com/books?q=php&source=bll&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=book_group&resnum=11&ct=title&cad=bottom-3results"]Book results for [I]php[/I][/URL][/B]
[URL="http://books.google.com/books?id=tywvv3ULal0C&dq=php&printsec=frontcover&source=bll&ots=hNelh8Yo2O&sig=JXkRgIY2lUVZi_NtLBbLVUB8TvQ&hl=en&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=book_result&resnum=11&ct=result"]Programming [I]PHP[/I][/URL] - by Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre - 521 pages
[URL="http://books.google.com/books?id=B_OCVIL_W80C&dq=php&printsec=frontcover&source=bll&ots=kmydT8d5BX&sig=TvYs4Or5FcvRSI7OkpLSDtYYaTk&hl=en&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=book_result&resnum=12&ct=result"]Beginning [I]PHP[/I] and MySQL 5: From Novice to ...[/URL] - by W. Jason Gilmore - 913 pages
[URL="http://books.google.com/books?id=PVvmMRSGzFEC&dq=php&printsec=frontcover&source=bll&ots=u3BwzkEwUJ&sig=usLJ_pZEkX7BG-RA4ezEL3ZFsn4&hl=en&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=book_result&resnum=13&ct=result"]Learning [I]PHP[/I] 5: A Pain-free Introduction to ...[/URL] - by David Sklar - 350 pages
[/LIST]
Searches related to: [B]php[/B][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=phpbb&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=1"][B]phpbb[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+nuke&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=2"]php [B]nuke[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+example&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=3"]php [B]example[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+iis&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=4"]php [B]iis[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=ruby+on+rails&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=5"][B]ruby on rails[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+date&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=6"]php [B]date[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+array&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=7"]php [B]array[/B][/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php+explode&revid=171658225&ei=QkagSerTKJj-NKyC1ecL&sa=X&oi=revisions_inline&resnum=0&ct=broad-revision&cd=8"]php [B]explode[/B][/URL]
1[URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=10&sa=N"]2[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=20&sa=N"]3[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=30&sa=N"]4[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=40&sa=N"]5[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=50&sa=N"]6[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=60&sa=N"]7[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=70&sa=N"]8[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=80&sa=N"]9[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=90&sa=N"]10[/URL][URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&q=php&start=10&sa=N"]Next[/URL][CENTER]
[URL="http://www.google.com/swr?q=php&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw&swrnum=9440000000"]Search within results[/URL] - [URL="http://www.google.com/language_tools?q=php&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw"]Language Tools[/URL] - [URL="http://www.google.com/intl/en/help.html"]Search Tips[/URL] - [URL="http://www.google.com/quality_form?q=php&hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=flw"]Dissatisfied? Help us improve[/URL] - [URL="http://www.google.com/experimental/"]Try Google Experimental[/URL]
[URL="http://www.google.com/"]Google Home[/URL] - [URL="http://www.google.com/intl/en/ads/"]Advertising Programs[/URL] - [URL="http://www.google.com/services/"]Business Solutions[/URL] - [URL="http://www.google.com/intl/en/privacy.html"]Privacy[/URL] - [URL="http://www.google.com/intl/en/about.html"]About Google[/URL]
[/CENTER]
OohhhhhSignature generator is almost done for Gesior Website
TODO:
Select background
Signature generator is almost done for Gesior Website
TODO:
Select background
<?PHP
//Made by Master-m
$main_content .= '<form method="get" action="PATH-TO-SIGNATURE.PHP-FILE">
Name: <input name="name" type="text" value="" SIZE="20" maxlength="25" />
<input type="submit" value="Create Signature" title="Create Signature" />
</form>';
?>
case "signature";
$topic = "Signature";
$subtopic = "signature";
include("signature.php");
break;
$Mysql_Host = 'localhost'; //The location of your MYSQL Server
$Mysql_User = 'root'; //The Username for your MYSQL Server
$Mysql_Password = 'yourpassword'; //The Password for your MYSQL Server
$Mysql_Database = 'yourdatabse'; //The Database name for your TFS Server
<input name="Sds" type="text" value="http://localhost/sign.php?name='.$name.'"" size="55" maxlength="55" /> <br><br>';
To whatever you whant:
<?php
$config = array
(
'database' => 'localhost;root;password;forgottenserver',
'urlbar' => 'character',
'vocations' => array ( 0 => "Rookie" , 1 => "Sorcerer" , 2 => "Druid" , 3 => "Paladin" , 4 => "Knight" , 5 => "Master Sorcerer" , 6 => "Elder Druid" , 7 => "Royal Paladin" , 8 => "Elite Knight" ),
'towns' => array ( 0 => "Rookgaard" , 1 => "Thais" , 2 => "Venore" ),
'backgrounds' => array ( 0 => 'background1' , 1 => 'background2' ),
'color' => '0,0,0' # Red, Green, Blue
);
class signature
{
// Database functions.
function connectDatabase ( $database ) { $database = explode ( ";" , $database ); @mysql_connect ( $database[0] , $database[1] , $database[2] ); @mysql_select_db ( $database[3] ); }
function query ( $query ) { return @mysql_query ( $query ); }
function fetchArray ( $query ) { return @mysql_fetch_array ( $query ); }
function secure ( $query ) { return @mysql_real_escape_string ( $query ); }
function numRows ( $query ) { return @mysql_num_rows ( $query ); }
// Signature functions.
function characterInfo ( $character , $vocations , $towns )
{
$character = $this -> secure ( $character );
$character = "SELECT `id` , `name` , `sex` , `promotion` , `vocation` , `town_id` , `rank_id` , `online` , `level` , `lastlogin` FROM `players` WHERE `name` = '{$character}'";
$numRows = $this -> numRows ( $this -> query ( $character ) );
$character = $this -> fetchArray ( $this -> query ( $character ) );
$name = "Name: " . $character['name'] . " (" . ( $character['online'] == 1 ? 'online' : 'offline' ) . ")";
$sex = "\nSex: " . ( $character['sex'] == 1 ? 'Male' : 'Female' );
$level = "\nLevel: " . $character['level'];
$profession = "\nProfession: " . ( $character['promotion'] != 0 ? $vocations[$character['vocation']+4] : $vocations[$character['vocation']] );
$residence = "\nResidence: " . $towns[$character['town_id']];
$lastlogin = "\nLast Login: " . date ( "M d Y, H:i:s" , $character['lastlogin'] );
if ( $numRows == 1 )
return $name . $sex . $level . $profession . $residence . $lastlogin;
else
return "A character with that name does not exist.";
}
function printSignature ( $database , $backgrounds , $color , $urlbar , $character , $bgimage, $vocations , $towns )
{
if ( empty ( $_GET ) ):
?>
<form method="get">
Name: <input type="text" name="<?PHP echo $urlbar; ?>" /><br /><br />
<?PHP
foreach ( $backgrounds as $bg => $value ):
echo '<input type="radio" name="image" value="' . $bg . '" /> <img src="' . $backgrounds[$bg] . '.png" /><br />';
endforeach;
?>
<input type="submit" value="Create Signature" />
</form>
<?PHP
else:
$this -> connectDatabase ( $database );
$content = $this -> characterInfo ( $character , $vocations , $towns );
header ( "Content-type: image/png" );
$color = explode ( ',' , $color );
$texts = explode ( "\n" , $content );
$image = imagecreatefrompng ( $backgrounds[$bgimage] . ".png" );
$i = 0;
foreach ( $texts as $text ):
$i++;
imagestring (
$image,
2, 7, 12 * $i,
$text,
imagecolorallocate ( $image , $color[0] , $color[1] , $color[2] )
);
endforeach;
imagepng ( $image );
imagedestroy ( $image );
endif;
}
}
$image = new signature();
$image -> printSignature ( $config['database'] , $config['backgrounds'] , $config['color'] , $config['urlbar'] , $_GET[$config['urlbar']] , $_GET['image'] , $config['vocations'] , $config['towns'] );
?>
<?PHP
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));
if(empty($name)) {
$main_content .= 'Here you can generate a signature for your player.<BR> <FORM ACTION="index.php?subtopic=signature" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Generate Signature</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE>
</form>
';
}
else
{
if(check_name($name)) {
$player = $ots->createObject('Player');
$player->find($name);
if($player->isLoaded()) {
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));
$main_content .= '<div align="center"><img src="sign.php?name='.$name.'&image='.$_POST['bg'].'" />';
$main_content .= '<p></p>';
$main_content .= '<strong>Image Source: </strong> <br>
<input name="Sds" type="text" value="http://localhost/xania/sign.php?name='.$name.'"" size="55" maxlength="55" /> <br><br>';
$main_content .= '<strong>Forum Code: </strong> <br>
<input name="Sds" type="text" value="[IMG]http://localhost/xania/sign.php?name='.$name.' [/IMG] " size="55" maxlength="55" />
</div>';
}
else
{
$search_errors[] = 'Character <b>'.$name.'</b> does not exist.';
//gracz nie istnieje - komunikat
}
}
else
{
$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';
//niepoprawne imie gracza
}
if(!empty($search_errors)) {
$main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>';
foreach($search_errors as $search_error)
$main_content .= '<li>'.$search_error;
$main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';
$main_content .= '<BR><FORM ACTION="index.php?subtopic=signature" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Generate Signature</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE>
</FORM>';
}
}
?>
@up
Fixed:
Replace signature.php with this one:
PHP:<?PHP $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); if(empty($name)) { $main_content .= 'Here you can generate a signature for your player.<BR> <FORM ACTION="index.php?subtopic=signature" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Generate Signature</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE> </form> '; } else { if(check_name($name)) { $player = $ots->createObject('Player'); $player->find($name); if($player->isLoaded()) { $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); $main_content .= '<div align="center"><img src="sign.php?name='.$name.'&image='.$_POST['bg'].'" />'; $main_content .= '<p></p>'; $main_content .= '<strong>Image Source: </strong> <br> <input name="Sds" type="text" value="http://localhost/xania/sign.php?name='.$name.'"" size="55" maxlength="55" /> <br><br>'; $main_content .= '<strong>Forum Code: </strong> <br> <input name="Sds" type="text" value="[IMG]http://localhost/xania/sign.php?name='.$name.' [/IMG] " size="55" maxlength="55" /> </div>'; } else { $search_errors[] = 'Character <b>'.$name.'</b> does not exist.'; //gracz nie istnieje - komunikat } } else { $search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.'; //niepoprawne imie gracza } if(!empty($search_errors)) { $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($search_errors as $search_error) $main_content .= '<li>'.$search_error; $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; $main_content .= '<BR><FORM ACTION="index.php?subtopic=signature" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Generate Signature</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE> </FORM>'; } } ?>