General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old December 4th, 2002, 04:00 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Talking Upload / Download files - Scripts for you!

I have attatched the scripts as I said I would - sorry it took me so long but I am in the middle of writing a report for uni - as well as trying to revise for my exams next week

Hope they work for you as well as they do for me - you can let me know what you think (go easy on me though! )

Oh yeach - nearly forgot, these scripts are not designed with security in mind - if you wanna alter them to be more secure or for your personal projects fell free to do so.

GeeeeeeeeeeeeeeeeeEEEEEEEEEEEEEEEEEEeeeeeeeeeee

PS. If anyone has got a nice password script that WORKS, that can check username and passwords input from a form against a table of usernames / passwords held in mysql - I would love a copy!
Attached Files
File Type: zip myscripts.zip (5.6 KB, 557 views)

Reply With Quote
  #2  
Old December 4th, 2002, 05:58 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Thanks for that, I appreciate it. Regards your login from database, wouldn't that be fairly simple to achieve? You have one file defining your functions (login function and no_permission) function, then and page that basically looks like:

PHP Code:
if (submit)
{
// code to run if page has been submitted

// in here you'd have another if else loop such as:

if (userandpasswordmatch)

// you'd simply use an SQL query to check that the username and 
// the MD5 hash of the users password match what you have in 
// the database
{
loginfunction(user,pass)
}
else
{
no_permission()
}

}
else
{
show form that user can enter username and pass


Reply With Quote
  #3  
Old December 4th, 2002, 08:53 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
hey, you might want to add that script to devscripts

Reply With Quote
  #4  
Old December 4th, 2002, 09:04 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
OK noob here but is this what you are asking for?

PHP Code:
<form action="LogonCheck.php" method="post" name="Logon" id="Logon" >
<
table width="0%" border="0" align="center" cellpadding="0" cellspacing="0">
  <
tr>
      <
td bgcolor="#003366"><font color="#FFFFFF">Logon:</font></td>
    <
td><input name="logon" type="text" id="logon"></td>
  </
tr>
  <
tr>
      <
td bgcolor="#003366"><font color="#FFFFFF">Password:&nbsp;&nbsp;</font></td>
    <
td><input name="password" type="password" id="password"></td>
  </
tr>
  <
tr bgcolor="#000000">
      <
td align="center"><font color="#FFFFFF"
        <
input type="submit" name="Submit" value="Submit">
        </
font></td>
      <
td align="center"><font color="#FFFFFF">
<
input type="reset" name="Submit2" value="Reset">
        </
font></td>
  </
tr>
</
table>
</
form>




$link mysql_connect("localhost""user""pass");
mysql_select_db("db"$link);            
$name mysql_query("SELECT name FROM member WHERE name = '$logon' AND password = PASSWORD('$password')"$link);
$num_rows mysql_num_rows($name);

if (
$num_rows <= 0)
    {
        echo 
"<p align= center>You either entered your user name or password wrong.</p>";
        exit;
    }

include (
"includes/private.php");
echo 
"<p align= center>You are now loged in</p>";
echo 
"<br>";
?> 


Sorry I havent gotten the PHP Self thing down yet to keep on the same page. So this is a 2 page example the HTML then the PHP checking the information. If you like and use this and can set it to one page with PHP self...Mind sharing it back...LOL thanks.

Thanks,
Attila
__________________
Thanks,
Attila
http://www.glorynaspiration.com
http://www.abitofthings.com

Reply With Quote
  #5  
Old December 4th, 2002, 09:25 PM
Gee Gee is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 61 Gee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
yeach,

thnX attila I will have a look at that and try it out!

PS. Where abouts do I add my scripts, cannot find it... oh yeach - while im on - I also cannot find a full listings of all the tutorials that the site holds. I'm just dumB I suppose, but its true, I cannot find them LOL.

Point me in the right direction would Yaz?

Reply With Quote
  #6  
Old December 4th, 2002, 11:58 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
PS. Where abouts do I add my scripts, cannot find it... oh yeach - while im on -


Firstly you need to be a member to add your script, so you need to sign up and login. Then you should see the famous, add script button lol

Quote:
I also cannot find a full listings of all the tutorials that the site holds. I'm just dumB I suppose, but its true, I cannot find them LOL.


Are you talking about devArticles, or devScripts??

im not tooo sure what you mean by this?

Reply With Quote
  #7  
Old December 5th, 2002, 12:00 AM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Gee to find all the Tutorials on this site go in the upper left click on home then when the website loades click on see all it is right above featured products. Then pick wha you need help with for a tutorial...Here is the list.

ADO.NET
Apache
ASP
ASP.NET
C#
C++
Cold Fusion
COM/COM+
Flash
HTML
IIS
Interviews
Java
JavaScript
MySQL
Perl
PHP
Reviews
SOAP
SQL Server
VB.Net
Visual Basic
Web Services
XML


I do not beleive they are all listed on one page....And if they are I am

Too many hours searching!

Reply With Quote
  #8  
Old January 5th, 2003, 02:17 PM
maurocubaque maurocubaque is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Bogota
Posts: 2 maurocubaque User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to maurocubaque
SQL file

Hi there, I've been working with your files, but I'm confused about the SQL used by you to make your files work. Could you publish those little file here?

Thanks in advance.

Mauricio Cubaque
URL

Reply With Quote
  #9  
Old January 5th, 2003, 04:12 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
LOL who's files? Be more dexcriptive please.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Upload / Download files - Scripts for you!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway