Benz1435
Mar 5 2005, 07:30 PM
first off make a login.html page Code:QUOTE <u>Admin Login</u><table border="0"> <tr> <td><form name="form1" method="post" action="check.php"> <table width="407" border="0"> <tr> <td width="105">Username:<br><input name="username" type="text" id="username"><br> Password:<br><input name="password" type="password" id="password"></td> </tr> </table> <br> <input type="submit" name="Submit" value="Login"> </form>
</td> </tr> </table>
then make a check.php page Code:QUOTE <?php $admin1 = "admin1"; // first admin username $adm_pass1 = "password1"; // first admin password
$admin2 = "admin2"; // second admin username $adm_pass2 = "password2"; // second admin password
if(($username == $admin1 && $password == $adm_pass1) || ($username == $admin2 && $password == $adm_pass2)){ echo "Congratulations <i>" . $_POST['username'] . "</I><br>You may now proceed to the <a href=\"admin.php\">admin area</a>!"; }
else { echo "Username <b>" . $_POST['username'] . "</b> or password <b>" . $_POST['password'] . "</b> is incorrect, please try again"; } ?> Note: to make more than 2 admins just type this: Code:QUOTE $admin3 = "admin3"; // second admin username $adm_pass3 = "password3"; // second admin password Under the other 2 admins names and password and this also: Code:QUOTE || ($username == $admin2 && $password == $adm_pass2) || ($username == $admin3 && $password == $adm_pass3) then the admin area make it and save it as : admin.php No Database Requred!!
Comment/Reply (w/o sign-up)
beeseven
Mar 6 2005, 02:09 AM
It'd work, but is it really a good idea to store the admin passwords in an unencrypted file?
Comment/Reply (w/o sign-up)
shadow skazi
Mar 6 2005, 05:03 AM
QUOTE(beeseven @ Mar 5 2005, 09:09 PM) It'd work, but is it really a good idea to store the admin passwords in an unencrypted file? Yeah, that not safe at all. A good lure for hackers, expecially if you had an annonymous FTP. But uhh...whatever floats your boat.
Comment/Reply (w/o sign-up)
yasir
Mar 6 2005, 02:05 PM
It could work well, but you need to work on the security issues a little more if you dont want hawk lurring down on you through it. Nice though. Cheers! Yasir
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : multiple, admin, login, php, script, doesnt, requre, sql
- Sharepoint Calendars Integrated Into Outlook 2007
Showing multiple Sharepoint Calendars in Outlook 2007 (Company wide De (0)
[phpbb] Member Last-visit Report Script
for phpbb2 databases (0) One flaw in the phpbb2 administration section is a report to list out the 'last-visit'
time/date of the membership. I wrote a script to do exactly that and will be sharing the script with
you here. the first section defines the variables required for the Database connection, finding the
right database, supplying passwords, etc. HTML DEFINE ('DB_USER', 'YOUR DB USER
NAME'); // change these defined values to suit your own situation DEFINE ('DB_PASSWORD',
'YOUR DB PASSWORD'); DEFINE ('DB_HOST', 'localhost'); DEF....
Start Multiple Programs With One Shortcut
Windows XP (25) Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be
wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I
am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is
simply a way to run several MS-DOS commands with just one command. All batch files are run through
Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this
tutorial. Requirements Windows XP (I tested this on XP, but it should work on m....
To Automatically Run Command When Login / Logoff
(3) In case that you need login and / or logoff to execute some commands. You could do this with GPO
login / logoff function. Here is step: 1.) Choose Start Menu -> Run -> type in gpedit.msc 2.)
Expand User -> Windows Settings ->Script ( Logon / Logoff ) 3.) Double-Click either one and a dialog
displayed 4.) Click the add button and then browse the command files that you wish to executed. The
Script Parameters allowed you to pass any extra parameters to the command or applications. Click OK
button. 5.) You command now should displayed on Name / Parameters List Box. Click O....
Background Image Swap Script
Change a Background Image based on clock time (15) Background Image Changer Script To swap the background image from your CSS file according to the
Server Clock Time. 1.) In your CSS file, add the following rule: CODE body { background:
url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the folder, place three images
named morning.png, day.png, night.png. 4.) Also, in the same folder, create an index.php file and
copy/paste the following script. CODE $hour = date('H'); if ($hour $image =
"morning.png"; } elseif ($hour $image = "day.png"; } else { $image = "night.pn....
Simple Php Login And Registration System
(19) Hello. This is my first web tutorial ever. This is basically a simple register and login script.
Yes, I know it’s a bit rubbish but I’m quite new to PHP/MySQL. Here’s the register form. This can
be any file extension you like. I’d recommend calling it register.html . CODE
Register Register Username: Password: First Name:
Last Name: Age: Now create a MySQL database. Then create a
file that will be called CODE mysql-connect.php . Here is the file: CODE $co....
Image Rotator Script (another One)
easy to implement (0) In case you haven't noticed, I have a different Avatar display on the Forum each time the page
is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> For those of you who might want the script to do that, here is the one I am using: HTML
$filesp = glob('*.png'); if(empty($filesp)){ echo 'no images found...die br >';
die(); } else{ foreach ($filesp as $file) { $img_array = trim($file); } } shuffle($img_array);
//select image at random header("C o n t e n t{dash}t y p e: image/png"); // replace th....
Dynamic Signature - Yet Another Way To Do It
Create dynamic sigs for multiple users using .htaccess and RewriteRule (0) Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create
some sort of a status page... And I did that, where I updated my connection status every 60 seconds,
updated my Winamp playlist, and several other interesting things... Then, I figured I could create
an image, and display all that info, and show it on forums, as a signature... And I made a great
PHP script, that look real fancy, and does the job perfectly... So, I was adding the reference to
http://status.galahad.trap17.com/stat.php to all the forums... BUT (there's ....
How To Group Multiple Sets Of Data In Microsoft Excel 2007
(0) How to Group Multiple Sets of Data in Microsoft Excel 2007 Sometimes you may open several
workbooks and work with a number of the same workbooks at a time. You can open this group of files
with Microsoft Excel 2007 simultaneously. But you have to define them as part of a workspace, and
save them in a single Excel 2007 file. To do this, follow below steps: 1- Click On the View tab and
then in the Window group click Save Workspace. The Save Workspace dialog box appears. 2- In the File
name field, type your work name and then Click Save. 3- At the top-left of window, C....
For ... Next Loops And Script Planning
My Fifth PHP Tutorial (2) Be sure to read the other ones. They are located in the TUTORIALS section, and at the time of this
writing all on the first page. Intro To PHP Tutorial 5 - For ... Next Loops and Planning Scripts
Released 4/15/07 By Chris Feilbach aka GhostRider Contact Info: E-mail: assembler7@gmail.com AIM:
emptybinder78 Yahoo: drunkonmarshmellows Website: http://www.ghostrider.trap17.com Before I start
talking about what wonderful things loops are and all the cool stuff they can do, I want to address
something first. I was asked about something to write in PHP. There isn't....
How To: Ip Configuration Script (win Xp)
If you travel a lot with your laptop, and need to switch between diff (0) How To: IP Configuration Script (win XP) If you travel a lot with your laptop, and need to switch
between different IP's in different locations, this script is for you. There are many programs
that handle this task very well, but they cost sometimes pretty big money. This tutorial will show
you how to make your own IP Configuration Script for free. This script is for a static ip address
configuration and is based on a little program called "NETSH.EXE" which is supplied with Windows.
How it works. QUOTE Microsoft Windows XP - Using Netsh Netsh.exe is a....
How To Protect A Directory From Being Viewed
without admin username and password (4) Well i ran across this script awhile back, and i am tired of storing it on my computer, so i am
going to post it here and whenever i need it i will come here and get it /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> hopefully Anyways, it is a
verry simple process just copy and paste this QUOTE if (($user) && ($passwort)) { # get url
$url = $DOCUMENT_ROOT . dirname($PHP_SELF) . "/.htpasswd"; # make .htaccess and .htpasswd
$htaccess_txt = "AuthType Basic" . "\n"; $htaccess_txt .= "AuthName \"protected area\"" . ....
Installing Multiple Os On Your Pc
How to do that (0) Hi everyone, Ok before I start, I want to let you guys know the meanings of some of the
terminologies I will be using in here. Boot loader is a small program which the operating system
places on the selected partition (in most cases, the MBR ). it is a small program that loads the
operating system into the computer’s memory when the system is booted and also starts the
operating system. So, before you can think of configuring your PC to have multiple boot, you should
also know how to play around with 'em boot loaders too. And you should also make sure that y....
Php Script To Make A Link List
From the list of the Directory Files (6) Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
script for the members to enjoy. This one creates a list of links from the contents of the directory
which it is run from. For instance, if you run it from the public_html folder, then all the files
(not the Directores) are listed and linked so when you click on the link, that file is parsed and
output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
An XHTML 1.0 Strict Page to List the files in this directory ....
Php Menu Bulding Script And Site Template
available for download (0) A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
web-site template which used php includes and embedded data to create a &....
Page Generation Time Script
A script to tell how long it took to generate (17) this is a script used to tell you or visitors how fast your page was generated for the person who is
viewing it... Ok it is verry simple!! all you have to do is put this script on every page... that
you want it to be on CODE $starttime = explode(' ', microtime()); $starttime =
$starttime + $starttime ; ?> and put it before everything on the page, for me i put it right
underneith the DOCTYPE script which i think is a bloody waste of space to have it on there, but
anyways.. i put it right below that and it works fine!! now where you want the time it....
Automatic Login
in WinXP (6) Ever wanted to just turn on our computer and when you get back it's already on the desktop?
(Rather then having to login at the welcome screen) Now some computer have this feature by default,
but what if it gets broken, try this. On an Administrator account goto start >> Run, and type
"control userpasswords2" (without the quotes) Uncheck the box that "Users must enter a Username and
Password to use this computer", then press Ok. You will be prompted to enter a default user and
their pasword, then next time you restart the computer it will automaticaly login to that....
Verifying Email Addresses
Using a simple PHP script (9) This simple script will allow you to run some basic checks to make sure that any email address
entered is actually an email address. There is no guarantee offered that this will stop every single
fake email address, but it'll provide some protection. Now, the code! First we need to get the
email address to verify. Here, I get it using POST from an HTML form. CODE //Load email
address from web form $email = $_POST ; Now, we move on to our first check. Does the text that
has been entered look like it could be an email address? This check can be performed....
[php] Simple Newsletter Script
(17) This tutorial will give you the code needed and tell you how to implement it. First off you need to
create a file called mailing.php this will be the file that processes the adding of emails to the
list. CODE $email = $_POST ; $file = fopen("mailing.txt", "a"); fwrite($file, "\n" . $email);
fclose($file); header("Location: mailing_thankyou.php"); ?> Next you need to create a file
called mailing_thankyou.php , simple a page thanking them for signing up. Now create a file called
mailing.txt with nothing in it, when uploaded to the server set it writable (c....
How To Make A Sig Rotator
for people with multiple sigs (85) Today, I will show you how to make a sig rotator similar to mine (refresh a page with my post, and
you will see a different sig each time). We will use the sig rotator to display random sigs here at
trap17. Create a folder called sig.png Actually, the folder can be called anything, but since we
will be using the rotator here, it has to be called sig.png because Invision Power Board may not
allow weird extensions. You can replace png in sig.png with any valid image extensions such as gif
of jpg. Create a file called index.php If you need help renaming a file to .....
Secure The Email Addresses On Your Website!
Wonderful script and useful! And working (10) Just follow the instructions below: /* Secure Email Function by Juan Karlo Aquino de
Guzman Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc E-mail:
http://www.karlo.ph.tc/send.php Usage: showEmail("support@microsoft.com",0); OR
showEmail("support@microsoft.com",1); Types: 0 = ordinary random 1 = more secure random To
include to a script: include_once("email_secure.php"); */ And here is the code :
CODE /* Secure Email Function by Juan Karlo Aquino de Guzman Website:
http://www.karlo.ph.tc and http://....
Simple Login In Visual Basic 6
user interaction example trough login programm (9) First of all, I am NOT a programmer, this is something my friend taught me. It describes basic
interaction with the user, while showing basic functionality of this simple programm. So, without
further ado, we're off to the tutorial: First of all, start your visual basic, when prompted
for new project, select Standard Exe . Next, we need to open code window, so we can start typing
the program. This can be done in two ways, one is double clicking on the form, or selecting Code
from View menu. If you double clicked on the form, you will see following text: CODE ....
Email Script/form With Php
how to make a simple email script using php (37) Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually
put Email me if they want an email link on their site, but there are several cons to this.
First, it's very inconvenient for those people who use web-based mail such as Yahoo!, Hotmail,
or Gmail because that darn Micro$oft Outlook program comes up if one accidently click the link.
Second, you are very suseptible to spam bots because they scan your HTML source code for anything
with the same pattern as an email address and add it to their database. If you are pre....
How To Put A Phpbb Login Box On Your Main Site.
Code and .php included!!! (19) I have included my coded file with this... Ok here is the code. CODE // //Create login area,
replace the phpBB2 in /phpBB2/login.php with your forum's //directory // Prank Place
Forum Index Please enter your username and password to log in.
Username: Password:
Log me on automatically each visit:
I forgot my password You can test this out on my....
Php/mysql Login/register
Tutorial for login with databases. (4) Start register code. Register.php CODE Username: Email: Pass: Verify
Pass: //Login to your database. Make the fields of course..
mysql_connect("localhost","user","pass"); mysql_select_db("database"); //end //if registering,
check fields. if ($action == register) { if (!$user || !$pass || !$email || !$vpass) { print
"You must fill out all fields."; exit; } $dupe1 = mysql_num_rows(mysql_query("select * from
table where user='$user'")); if ($dupe1 > 0) { print "Someone already has that
username."; exit....
Php Quiz Script
Make quizzes for your site. (29) Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
doesnt do anything special but I am going to make an email mod for it so that it will email results
to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
editor and paste in the following code. CODE $qid = "Quiz ID-00"; ?>
Username: 1.) Question number one is? Answer1 Answer2 2.) Question number two is?
Answer1 Answer2 3.) Question number three is? Answer1 Answer2 4.) Question num....
Complete Login And Registration System
doesn't use mysql! (9) kLogin 0.1 QUOTE(readme.txt) Readme file to kLogin 0.1 To use the internet explorer fix:
download the latest IE7 ZIP file
(http://sourceforge.net/project/showfiles.php?group_id=109983&package_id=119707) Extract the ie7
zip file to the root directory of your web server. Example, if you are using a unix/linux server,
it's on "public_html/" or "home/public_html" Open kLogin.php file with your editor and edit the
$info_text or $info_txt variable. Then, extract the kLogin.php file in to the root directory of
your web server also. Just run kShoutBox.php If ....
Php Simple Login Tutorial
Learn how to make a simple login! (75) I have been quite busy lately, trying to design and code my site (far from done XD). And after
having learned how to make a simple login, I will try to write my own tutorial, for you
/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> the tutorial Step 1
: The first step in designing a member system is to plan out exactly what you need. A common impulse
among programmers is to jump right in and start coding. I'll be honest and admit that I'm
guilty of this more so than anyone. However, since I'm in control of this conversation (y....
Complete Login System
With PHP + MYSQL (57) Its an complete login sistem made and tested by me and I think itwill be very usefull for people who
are tryn to learn PHP. First, let's make register.php: CODE include("conn.php"); //
create a file with all the database connections if($do_register){ // if the submit button were
clicked if((!$name) || (!$email) || (!$age) || (!$login) || (!$password) || (!$password2)){ print
"You can't let any fields in blank.\n"; // if the user did not put some field exit; } $name =
stripslashes($name); $email = stripslashes($email); $age = stripslashes($age); $login = s....
Make Yourself Admin On A Computer
(31) Last year, my whole family used one computer, and I could never install anything because my account
was limited, and my parents were scared I would download a virus. One day I decided to try and find
a way to make myself able to install stuff, and I found out, but because of my parents carelessness.
It doesn't work if the Administrator, the one that doesn't show up on logon has a password.
Here's how to do it: Restart your computer, and when it first starts press f8, it's f5 on
some computers, and then select run Windows in safe mode with networking, a....
Looking for multiple, admin, login, php, script, doesnt, requre, sql
|
Searching Video's for multiple, admin, login, php, script, doesnt, requre, sql
See Also,
|
advertisement
|
|