4 Steps if you require the clock - 1 Step if you don't ================================================================== Step 1 - Put this in your <head> tag
<?php // ************Begin Configure*************** //Put where you want the email to go $mailto = ""; //Put your subject in here $subject = ""; //Put where you want to redirect after the mail have been sent . $redirect = "";
if (@mail($mailto, $subject, $message, $headers)) { header("Location: $redirect"); } else { // This echo's the error message if the email did not send. // You could change the text in between the <p> tags. echo('<p>Error . Please use your back button to try again.</p>'); } ?>
<?php $host = "localhost"; //Edit here with the host of you database, if you don't know it leave localhost $user = "**********"; //Edit here with your username $pass = "**********"; // Edit here with your password $database = "******"; //Edit here with your database name ?>
Upon review of the Topic you started this morning, (Free php Scripts) (http://www.trap17.com/forums/index.php?act=Post&CODE=08&f=163&t=30888&p=210836&st=5), it was required to insert 11 occurences of bbcodes for the 9 consecutive postings in the one topic. Immediately prior to you starting this topic, you requested a Log-in script and within the hour, you posted a complete script. This leads me to thinking the script was cut and pasted from elsewhere on the web. Generic code such as what was posted can be found all over the web, and posting it on the trap17 site without crediting the original author is Plagarism, plain and simple, which is not tolerated at the trap17 forums. Consequently, the credits for the Log-in script has been reversed in the amount of 66 credits. Since you are new to the trap, no deductions were issued for the other postings, however, please note that this will be your last warning of this sort. Any further plagarism posts will result in more severe punishment.
Please read the trap17 Readme information, as found near the top of every page, near the Shoutbox.
$connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
$sql = "SELECT password FROM users WHERE email = '$_POST[email]'";
$result = mysql_query($sql) or die ("Couldn't execute query.");
$num = mysql_num_rows($result); if ($num == 1) {
$tmppass = mysql_result($result,0);
$sql2 = "SELECT username FROM users WHERE email = '$_POST[email]'";
$result2 = mysql_query($sql2) or die ("Couldn't execute query.");
$tmpname = mysql_result($result2,0);
mail ($_POST['email'], "Username & Password request", "Your username and password for " . $domain . " is : \n" . "Username = " . $tmpname . "\n" . "Password = " . $tmppass, $headers); echo "Success, An email has been sent to you with your requested username & password!"; } else { echo "Error, The email address doesnt exist"; }
$form .= "Register a new username. Be sure to enter a <b>genuine</b> email as it will be used to recover your account.<br>"; $form .= "<form action=\"./register.php\" method=\"POST\">"; $form .= "Username: <br><input type=\"text\" name=\"username\" value=\"$_POST[username]\"><br>"; $form .= "Your email: <br><input type=\"text\" name=\"email\" value=\"$_POST[email]\"><br>"; $form .= "Password: <br><input type=\"password\" name=\"password\" value=\"$_POST[password]\"><br>"; $form .= "<input type=\"submit\" value=\"Create!\">"; $form .= "</form>";
if($_POST[username] == ""){ echo $form; } elseif(strlen($_POST[password]) < 6){ echo $form; echo "<br> Error password must be 6 characters or more";
} else { $connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
$sql = "SELECT username FROM users WHERE username = '$_POST[username]'";
$sql2 = "SELECT email FROM users WHERE email = '$_POST[email]'";
$result = mysql_query($sql) or die ("Couldn't execute query.");
$result2 = mysql_query($sql2) or die ("Couldn't execute query.");
echo "Congratulations $tmpname. Your account has been created and added to database"; echo "<br>You are now logged in."; echo "<br>Click <a href=\"index.php\">here</a> to goto members area";
$connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
$sql = "SELECT email FROM users WHERE email = '$_POST[email]'";
$result = mysql_query($sql) or die ("Couldn't execute query.");
$sql2 = "SELECT vcode FROM users WHERE email = '$_POST[email]'";
$result2 = mysql_query($sql2) or die ("Couldn't execute query.");
$num = mysql_num_rows($result);
if ($num == 1) { $tmpcode = mysql_result($result2,0); if(strlen($tmpcode) < 1){ $query = "UPDATE users SET vcode = '$ticket' WHERE email = '$_POST[email]'"; $resultB = mysql_query($query,$connection) or die ("Coundn't execute query."); mail($_POST['email'],"Password Confirmation.","This is the confirmation code copy and paste it into the form provided" . "\n" . $ticket,$headers); echo "An email has been sent with the confirmation code."; } else { mail($_POST['email'],"Password Confirmation.","This is the confirmation code copy and paste it into the form provided" . "\n" . $tmpcode,$headers); echo "An email has been sent with the confirmation code."; } echo "<br>Paste the confirmation code in the box below."; echo "<form method=\"POST\" action=\"passwordreset.php?step=3\">"; echo "<input type=\"text\" name=\"vcode\" size=\"20\">"; echo "<br>"; echo "<input type=\"submit\" value=\"Submit\" name=\"B1\"></p>"; echo "</form>"; } else { Echo "Error, Email address was not found."; } }
if($step == 3){ $vcode = $_POST['vcode'];
$connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
$sql = "SELECT vcode FROM users WHERE vcode = '$vcode'";
$result = mysql_query($sql) or die ("Couldn't execute query.");
$connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
$sql = "SELECT * FROM users ORDER BY username";
$result = mysql_query($sql) or die ("Couldn't execute query.");
$result2 = mysql_query("SELECT * FROM table1"); $num_rows = mysql_num_rows($result); echo "Below is a list of members which have registered at $domain"; echo "<br> Total members: $num_rows"; echo "<br><table border=\"1\" cellspacing=\"1\" cellpadding=\"3\">"; echo "<tr> <th>Username</th> <th>Email</th> </tr>"; while($row = mysql_fetch_array( $result )) {
$connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error());
/* Creating user table. */ echo "Creating user table in database......"; $query = "CREATE TABLE users (username VARCHAR(255),email VARCHAR(255),password VARCHAR(255),vcode VARCHAR(255))"; if(mysql_query($query)){ echo "Sucessfully created uers table in database.<br>"; } else { echo "Error, tables have not been created.<br>"; }
/* Creating admin table. */ echo "Creating admin table in database......"; $query2 = "CREATE TABLE admin (username VARCHAR(255),email VARCHAR(255),password VARCHAR(255),vcode VARCHAR(255))"; if(mysql_query($query2)){ echo "Sucessfully created admin table in database."; } else { echo "Error, tables have not been created."; }
/* Inserting admin username and password into table. */ echo "<br>Inserting admin username and password into database......"; $query3 = "INSERT INTO admin (username,password,email,vcode) VALUES ('$AdminUsername','$AdminPass','$AdminEmail','')"; if(mysql_query($query3)){ echo "Sucessfully added admin into database.<br> <b>Now remove this file from the server!</b>"; } else { echo "Error, Admin has not been added.<br>"; } ?>
<?php $AdminUsername = "Chris"; /* Username for the administration area */ $AdminPass = "PASSWORD"; /* Password for the administration area */ $AdminEmail = "EMAIL@DOMAIN.com"; /* Email address used with your admin account */
$domain = "YOURDOMAIN.COM"; /* Do NOT enter www. or http:// */ $directory = "/login/"; /* this is the directory location of the script ie.. /login/ be sure to add a slash at the beginning and end */ ?>
if($_POST['tmpname'] == "") { } else { if($_POST[newpassword] == "") { } else { $query4 = "UPDATE users SET password = '$_POST[newpassword]' WHERE username = '$_POST[tmpname]'"; $result4 = mysql_query($query4) or die ("Couldn't execute query."); echo "Success, Password Changed.<br>"; }
$query3 = "UPDATE users SET email = '$_POST[newemail]' WHERE username = '$_POST[tmpname]'"; $result3 = mysql_query($query3) or die ("Couldn't execute query."); echo "Success, Email changed."; }
if($_POST['B2'] == "") { } else { $sql5 = "DELETE FROM users WHERE username = '$_POST[account]'"; $result5 = mysql_query($sql5) or die ("Couldn't execute query."); echo "Success, Account has been deleted."; echo "<br>Click <a href=\"admin.php\">here</a> to go back to account management."; die;
} if($_POST['account'] == ""){
} else { echo "<form method=\"POST\" action=\"admin.php\">"; echo "Username: $_POST[account]"; echo "<input name=\"tmpname\" type=\"hidden\" value=\"$_POST[account]\">"; echo "<br>"; $sql2 = "SELECT email FROM users WHERE username = '$_POST[account]'"; $result2 = mysql_query($sql2) or die ("Couldn't execute query."); $tmpemail = mysql_result($result2,0); echo "Email:"; echo "<br><input type=\"text\" name=\"newemail\" size=\"20\" value=\"$tmpemail\">"; echo "<br>"; echo "New Password (leave blank to keep current password)<br><input type=\"text\" name=\"newpassword\" size=\"20\">"; echo "<br><br>"; echo "<input type=\"submit\" value=\"Save Changes\" name=\"B1\">"; echo "</form>";
}
$sql = "SELECT * FROM users ORDER BY username"; $result = mysql_query($sql) or die ("Couldn't execute query.");
<!-- this script and many others avaliable from A1 javascripts. [url=http://www.A1javascripts.com]http://www.A1javascripts.com[/url]. please keep this information if using this script- all credits to the unknown author --> <script Language="JavaScript"> function tickClock() { // this tells the browser to call the "tickClock()" function every 1 second setTimeout("tickClock()", 1000);
hotscripts also gives a rating so you can see which one is the right one! i love hotscripts. it has so many scripts in its database that you can waste 1GB if you have all of them! that wastes a lot of webspace but also makes ur site look better than yahoo! i dont know y but i thin the yahoo site looks cool.
i know you get lot credits if you post, but i didn't saw admins edited his posts! the best scripts site is www.hotscripts.com get all you need in there!
Courage you don't get any credits off of codes. In fact he lost a lot more because they had to be editted by jlhaslip to add the code tag. Those are some pretty nice scripts. I knew a couple of them but I am not that great with php. Nice resources. Thanks for sharing.
Go to http://www.cheaptechsupport.net/forums/forumdisplay.php?f=48 to download free clan scripts
by snards Only drawbacks are: they have ads, they don't support music, and they say Powered By
Snard Free on them. but they still have all the other functions the original snards script has.....
Hello all. I'm newbie here. I'm excited to be part of this community not just to earn
credits LoL. Look what I have for everybody. To start up I've got something for you--a WAP
script. This is totally for free. This is a community script (forums, chat, blogs, fun and games)
like this here in Trap17 but it's for WAP to be accessed using your mobile phones. >. Have it a
download! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> Do not provide copyrighted material for free. ....
Look around on the forums and you should be able to get snard free. It has some ads but works. If
you have any questions about it, msg snard. He will hve all the info on the free scripts and
hosting. I dont have much of the info on that. But I know he made a free version of it. I dunno what
all it can do but it is free. And I dont 100% know how long it lasts. So... ya.....
This is another website that everything on it is free to use for your website. It contains animated
pictures, still pictures, and horizontal rules. There is a lot of useful script on this site that
was useful to me when the teacher of my high school was showing us how to compose html sites in
Netscape Composer. I'm sure that you will find it useful too.....
If you have a webpage the likelihood is that you will be interested in knowing what kind of people
come to your website. This website http://hosted-scripts.com gives you pre-coded scripts to put on
your website in order to add various statistics. It has the following scripts: Online User counter
- Shows how many users are online at any point in time. Text Hit Counter - How many hits you get on
a page Ip logger + displayer - Shows the user their Ip has been logged and you can choose between
showing them the IP log or hiding it from them. Show page load time - Shows....
www.frozengaming.net sign up there u can dl nettek dastek a undisabled version of snard scripts all
for free. it's amazing eh? well enjoy your free scripts.....
Hey if you were havin troubles finding those perfect scripts for cs, sc, bw, wc3, d2 etc... w/e you
need... You can find it at http://www.clantemplates.com/ You can request sigs, buy expensive
scripts, and best of all get free scripts/templates. I have used some of them for their layouts and
coding because they work nicely for many differenty types of sites you need them for. They have a
huge selection to choose from so don't worry about that. Just check it out and see what they
have, I know you will be satisfied.....
I am currently working on some basic clan scripts. They will be free and will hopefully be out
sometime during the summer. They will be free to anyone who wants a copy. If you want to see the
rough start than you can look at them at www.uca.trap17.com/test I will update them once inawhile
so anyone can see them. If anyone wants to help I could use all the help I can get. If you want to
help than talk to me on aim. I will list everyone that helps in the page about the scripts. I will
give more detail on aim. My aim is: Generalds2001....
24Fun 77 TopScripts v1.0
-------------------------------------------------------------------------------- This is probably
the most exciting JavaScript and DHTML script-collection you get for less than $20!
Download 77 TopScripts stuffed into 1 zip file. The zip file includes all files, images and
instructions to run and install the 77 TopScripts. You may use them on both personal and commercial
web sites. Below are the 77 TopScripts you get in this bundle?: Bikini Trailer animation. Add
sunshine to your website with this happy summer cursor trailer. ....
hello all here is a website for scripts for the website. Click Here Hotscripts I don't
belive noone knows about it /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
/> XD....
Hi guys just thought id let you know about some mega cool DHTML Scripts. From a site i call Dynamic
Drive. the link is as follows: DD Thank me after u have looked at the scripts there:D
GuySpook....
Scripts For Educators I'm a real newbie at this script stuff, but these look pretty
interesting to me. If they really ain't so hot, somebody please straighten me out. Suz....
Hey everyone I got this site from my friend and its really great...you can find all these cool
scripts from here..just try it www.Hotscripts.com /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> ....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.