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!!
Reply
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?
Reply
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.
Reply
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
Reply
Recent Queries:--
admin/login.php - 145.13 hr back. (1)
-
how to get admin/login.php database - 371.88 hr back. (1)
-
index of/ admin/login.php - 405.71 hr back. (1)
-
php "email results" sql - 426.29 hr back. (1)
Similar Topics
Keywords : multiple admin login php script doesnt requre sql- 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...
Simple Login In Visual Basic 6
- user interaction example trough login programm (6)
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 ...
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 <?php $hour =
date('H'); if ($hour < 12 ) { $image =
"morning.png"; } ...
Make Yourself Admin On A Computer
- (28)
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...
Start Multiple Programs With One Shortcut
- Windows XP (15)
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...
Php Quiz Script
- Make quizzes for your site. (20)
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 <?php $qid = "Quiz ID-00"; ?>
<html> <head> <title><? echo "Gamers Pub $qid";
?></title> </head> <body> <p><h3><? echo "...
How To Put A Phpbb Login Box On Your Main Site.
- Code and .php included!!! (18)
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 // <form
action="/phpBB2/login.php" method="post" target="_top"> <table
width="25%" cellspacing="2" cellpadding="2" border="0"
align="center"> <tr> <td align="left"
class="nav"><a href="/phpBB2/index.php" class="nav">Prank Place
Forum Index</a></td>...
Php Simple Login Tutorial
- Learn how to make a simple login! (63)
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...
Simple Php Login And Registration System
- (10)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
http-equiv="Content-Type" content="text/ht...
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 kShoutBo...
[phpbb] Member Last-visit Report Script
- for phpbb2 databases (0)
Automatic Login
- in WinXP (5)
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...
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...
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); }...
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 ...
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 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...
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 ....
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...
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...
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 ...
Email Script/form With Php
- how to make a simple email script using php (35)
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 yo...
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 <?php $starttime = explode(' ',
microtime()); $starttime = $starttime[1] + $starttime[0];
?> 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.. ...
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 <?php /* Secure Email Function by Juan Karlo Aquino de Guzman Website:
http://www.karlo....
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 &...
Script To Build A List Of Links
- from filenames and h3 tags (2)
Another Unordered List Script If you remember this Script , that tutorial was about creating
an un-ordered list of links from a list of files contained in a Folder which was specifically named
in the script. This current Tutorial goes several steps beyond that first Tutorial by being able to
create a list from several folder names and, more importantly, the script reads the list of links
from a 'flat file' rather than depending on the name of the folder to be hard coded in the
script. It is only one small step to have the folder names found in a mysql ...
Multiple Classes In Html
- you can use more than one at a time (8)
Multiple Classes in Css Styles Classes are used in html pages to give certain defined
attributes to elements. They are useful when the attributes are to be used in more than one place on
a page. (Named Id's are only allowed once per page, but I digress... might have a tutorial on
that some day.) Sometimes you want Red text and sometimes you want Bold text. Easy enough to do,
simply define a class and apply it to the element you want red or bold. Use this class where you
want on the page, since classes are enabled to be used in several spots, for different u...
How To Use Trap17 Cgi Formmail
- a built-in script in every hosting (15)
This tutorial is using TRAP17 hosting's built-in script called cgiemail. There are several
hundreds of free scripts you can download and install it yourself but why not use what is already
provided for you, if all you need is a simple submit and data collection? Let's begin. There
are three things you need to remember: 1) you can rename the file however you'd like 2) two
files (which I'll name them submitForm.html and template.txt ) must be in the same directory
3) first two lines in template.txt must EXIST. Write your submitForm.html (where you ...
Verifying Email Addresses
- Using a simple PHP script (8)
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 <?php //Load
email address from web form $email = $_POST['email']; Now, we move on
to our first check. Does the text that has been entered look like it could b...
Looking for multiple, admin, login, php, script, doesnt, requre, sql
|
|
Searching Video's for multiple, admin, login, php, script, doesnt, requre, sql
|
advertisement
|
|