Tsunami
Feb 13 2007, 11:07 PM
ok the way this is gonna work is ... from monday to saturday you will be asking for scripts that go along with the theme... then on sunday every one will vote on a new theme for the next week... any one can ask for a script... any one can post a script... the script DOESN'T NECESSARILY NEED TO BE ASKED FOR inorder for you to post it... just make sure it goes along with the theme... or you will loose all respect  any ways this weeks theme is SECURITY So for the first script i thought i would show you how to make the randomly generated number images that you see on most registration pages.... i am not going to go into too much detail because this post would be a mile long if i did so here is the code: CODE <?php Header("(anti-spam-(anti-spam-content-type:)) image/gif"); $fface = "fonts/TIMES.TTF"; if(!$_GET['num']) $text = rand(100,999); else $text = $_GET['num']; if(!isset($s)) $s=25; $size = imagettfbbox($s,0,$fface,$text); $dx = abs($size[2]-$size[0]); $dy = abs($size[5]-$size[3]); $xpad=9; $ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad); $background = ImageColorAllocate($im, 0,0,0);
imagesetthickness($im,1); $typeis = "circle"; for($i = 0; $i <= 10; $i++) { $mycol = ImageColorAllocate($im, rand(0,255),rand(0,255),rand(0,255));
if($typeis == "line") ImageLine($im, rand(0,$dx+$xpad),rand(0,$dy+$ypad),rand(0,$dx+$xpad),rand(0,$dy+$ypad), $mycol); else ImageEllipse($im, rand(0,$dx+$xpad),rand(0,$dy+$ypad), 20,20, $mycol); }
$shadow = ImageColorAllocate($im, 100,100,100); $textcol = ImageColorAllocate($im, 150,150,150); ImageTTFText($im, $s, 0, (int)($xpad/2)+2, $dy+(int)($ypad/2), $shadow,$fface, $text); ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-2, $textcol,$fface, $text); ImageGif($im); ImageDestroy($im); ?> Ok... some of the nice features of this script is that it allows you to pass in a number generated from the client page or you can just have one randomly generated... if you want to check for validity, i would pass it in... but here are previews of both: here is a preview Tsunami's number generatorGo ahead.. reload the page... or try it on your own site... To do a randomly generated number... just use this as an image tag: http://tsunamicentral.trap17.com/randnum.php3to use your own... put a number in like so: http://tsunamicentral.trap17.com/randnum.php3?num=YOUR#HEREright click and save as... ITS A PICTURE!!! enjoy
Reply
Similar Topics
Keywords : themed scripts weekly theme- Releasing Wap/php Scripts?
- (3)
I have created two great scripts one a wap download/ftp-upload script, the other a wapCHAT. How can
i stop them removing my copyright?...
Downloading Scripts
- scripts need (2)
I Need Free Scripts
- PhP or ASP (21)
I need some where i can get Ip traking system, Autosurf or Autotraffic, and such other challenging
scripts. Where can I get them ? i saw some in Hotscripts.com. /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> /unsure.gif' border='0'
style='vertical-align:middle' alt='unsure.gif' /> ...
Good Scripts
- post Good Scripts name here (10)
Hi dears I want make good sciprs list here i need your help , plz post good scripts name here i
know vb , IPB , PHPnuke, Postnuke, phpbb , Xoops, mambo , wordpress plz post all kind of php
scripts here like upload manager , file manager , image manager , blog manager , time , date ,
portal , shoping manager , forum , shoutbox , chat , adv , counter , topsite , download area ,
upload area , Calculators , Auctions script , Multi-Level Marketing script , Click Tracking , News
Publishing script , blogs , Polls and Voting script , Database script (like phpmyadmin) , Search...
Scripts
- For Hosting (5)
Does anybody knows where I can obtain scripts for opening my own hosting provider web-site?...
Wamp Packages Needed To Test Scripts
- Set up Apache, PHP, etc on your machine (1)
In order to test php scripts on your localhost machine, you require a system that includes php
parsing. A WAMP set-up 'usually' includes a database server, and a database manager, too.
For Windows machines, theses are usually referred to as WAMP because they include Apache, Mysql, and
PHP for Windows, hence the acronym WAMP. Wikipedia has a listing of the available packages with
details about the included versions and often a link to the wikipedia article describing them. The
list can be found at http://en.wikipedia.org/wiki/Comparison_of_WAMPs Personally, I...
Running Php Web Scripts On A Local Machine
- (6)
hi all I'm VERY new to PHP and I'm having a slight problem... I want to be able to run PHP
scripts on my computer without installing a web browser. Let's say I have this code....
myScript.php CODE <HTML> <HEAD> <TITLE>PHP
Example</TITLE> </HEAD> <BODY> [color=#009900] <?php
print "This is an awesome scripting example."; ?>[/color]
</BODY> </HTML> ok. if I open this with Firefox or IE or any other Browser, I
will get a blank docu...
Php Scripts Free For Every One
- list of the best php scripts sites (12)
so what's you favourites php scripts sites? mine are : 1- hotscript 2- phpbuilder 3-
developershed 4- internet so what's yours? /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" />...
Phpbb Customization?
- wappy is not so great with web scripts :-) (7)
ok i feel a little silly posting this as im sure the answers are simple but im really not used to
working with pre-made web scripts that have so many files: Q1. I have added a real cool army theme
to my phpBB with a matching smiley set and its looking good, i also have the matching rank icons but
where on earth do i upload them in the script? Q2. Which file in my template/style/script do i need
to edit to place some extra links at the bottom of my index page, for example a link back to my main
site or some link exchange links/web partners?...
Papular Wap Scripts 4 Your Sites
- collection of WAP scripts (3)
Redirect script webbrowser from wap to web and wapbrowser from web to wap. CODE <?
$htmlredirect = "http://kralj.frih.net"; $wmlredirect =
"http://kralj.r8.org";
if(strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.WML") > 0){
header("Location: ".$wmlredirect);} else{ header("Location:
".$htmlredirect); exit;} ?>
================================================================== Graphic counter. !!!
Dont forget to create count...
How Do Scripts Select To Be Placed In Fantastico
- Question (2)
hi all i write famp3 in hotscripts. i want continue next version of this script or an other but i
have one question How do Scripts Select To be placed in fantastic ? cpanel search in scripts website
and Select ? or cpanel choise top rate scripts ? some scripts is new and they are not popular !
if my script take top rate or popular cpanel choise it for fantastic or not ? my next Question is
fantastic 2 is true or not ? somewhere i heard fantastic 2 or hot fantastic ! is it true ?
thanks all /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="sm...
Free Web Forum Scripts?
- Question on web forum scripts (7)
Can someone please tell me which of the free forum scripts is the best and why? I like these forums
but i notice the script is not free lol ;-)...
Uploading From Url
- any scripts? (9)
Is there any scripts that allows user to upload files from a certain url to your server?...
Php, Some Easy Scripts
- Just wanted to say i learned alot (3)
Yo fella's i made some easy to use php scripts. If you need a specific script you can always
ask me. /laugh.gif' border='0' style='vertical-align:middle' alt='laugh.gif' /> Sry i made
them in dutch but i will translate them /rolleyes.gif' border='0' style='vertical-align:middle'
alt='rolleyes.gif' /> ...
Good Free Php Scripts
- (10)
Hi I found this nice script here descriptions: An automated script submission tool would be
great, but because every script directory's submission process is so unique, automation is
nearly impossible. So we built Script Promotion Wizard, a free tool you can add to your web site or
use on a local server that will help you manage script promotion to script directories. With Script
Promotion Wizard, you can save script profiles, and add addition script directories as you learn
about them. The script is very easy to install and use, is completely free and contai...
Password Strength / User Availablity Scripts ?
- (2)
many of u guys would already have noticed that now a days , on most of the websites , when some one
sign in...as he puts his desired username in the textbox , the page shows that it is not available
or it is available...without pushing any button etc.. and the second thing , when some one writes
the password , on the same screen , it shows that password is weak or password is strong... i think
it is done with php ... can some one give me a link to any page where i can access these scripts ?
or some one can help me regarding this ?? Thanks for helping always....
Need Scripts For Testing Server's Limitation
- (6)
There are lots of web hosting provider and some of them are free. How can you know what problem
your PHP scripts would involved in when you get a web hosting which supports PHP. I have found 2
problems. One is about the function mail(), the other is about safe mode. Of course, there may be
others problems, I hope someone can adds the problem in this thread for more detail discussion. The
first question is how I can know the function mail() work properly. If you use function mail() in
your PHP scripts, error message may be shown if the server does not support sendmail....
Executing Scripts Without Include() Function
- php function to execute a script w/o showing html markup (3)
Hi guys. I have another newbish PHP question. /laugh.gif' border='0' style='vertical-align:middle'
alt='laugh.gif' /> Today, I decided to make a new navigation bar for my site. It doesn't look
good because I just started learning Flash today, so I was basically feeling my way around the
application. Anyways, if you use Flash and you try to validate your site at http://w3.validator.org
, you get a lot of errors for some weird reason. So I was thinking about separating the markup for
embed Flash from the rest of the site's source code. The problem with that i...
Php Scripts
- (2)
Hwo nows, when can i get free php scripts? /rolleyes.gif' border='0' style='vertical-align:middle'
alt='rolleyes.gif' /> ...
Php Programmers, How Long To Finish Your Scripts?
- time spent on creating php scripts (23)
Hello. I am currently working on kShoutBox 0.5 which has many new features. Now I realize that
it's really really and i mean really difficult to create a PHP script because it really do takes
your time. Example when I don't know what to do or what function to use, i check out the php
manual, and you know, i use the old tradition "Trial and Error"....
Misc Cool Scprits
- I'm looking for some cool scripts (8)
Well I'm looking for some cool php scirpts to spruce up my website a little and make it more
interactive. Does anyone have some scripts that are easy to apply and customise? I would be
enternally greatful, since all the pre-installed scipts on the trap17 cpanel take up loads and loads
of webspace. Thanks....
Some Scripts..
- (1)
I got some scripts i been wanting.. see im making a SubProfile for AIM and i want to make it myself
b/c i had ads and i did a vistor counter but i cant get IP Logger and i want the ip to show in
profile and crap then i wanted to make a guestbook sort of thing can ne1 help...
Looking for themed, scripts, weekly, theme, week
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for themed, scripts, weekly, theme, week
*MORE FROM TRAP17.COM*
|
advertisement
|
|